ABCDEFGHIJKLMNOPQRSTUV
1
This spreadsheet tracks performance benchmarks for algorithms on the OpenMV Cam per OpenMV Cam Model.
2
3
4
Image Operations
5
Image operations modify every pixel in the image. These algorithms work on either a line-by-line or kernel (neighborhood) basis. Line-by-line operations typically are extremely fast and show the performance of the processor's memory bus versus it's core performance. Kernel operations are more CPU intensive and show which processor is more capable.
6
7
8
9
10
Pixformat Conversion
11
Binary Operations
12
Math Operations
13
Filter Operations
14
YOLO Models
15
Test Script
16
Performance testing is done using the below script on each OpenMV Cam. The framebuffer count is set to 1 to ensure that the processor is not receiving frames in the background and that nothing else is happening to stress the system so we get accurate results. Results are collected in microseconds and then averaged.
17
18
19
20
21
import sensor, image, time

sensor.reset()
sensor.set_pixformat(sensor.GRAYSCALE)
sensor.set_framesize(sensor.QVGA)
sensor.set_framebuffers(1)

count = 0
avg = 0

while(True):
img = sensor.snapshot()
start = time.ticks_us()

img.to_jpeg() # Algorithm to test

avg += time.ticks_diff(time.ticks_us(), start)
count += 1
print("%0.2f" % ((avg / count) / 1000))
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100