Skip to content

Commit ec44600

Browse files
authored
Update tracking-i2c.py
1 parent c9a998c commit ec44600

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

home/CheekyMonkey/tracking-i2c.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
#
88

99
import time
10+
from org.myrobotlab.opencv import OpenCVFilterPyramidDown
1011

1112
xPin = 0;
1213
yPin = 1;
@@ -90,7 +91,12 @@
9091
tracker.y.setInverted(True);
9192
sleep(1);
9293

93-
opencv.capture();
94+
# additional PyramidDown filter for improved framerate on the Pi (~15 fps)
95+
PreFilterPyramidDown = OpenCVFilterPyramidDown("PreFilterPyramidDown")
96+
tracker.preFilters.add(PreFilterPyramidDown)
97+
tracker.opencv.setDisplayFilter("PreFilterPyramidDown")
98+
99+
#opencv.capture();
94100

95101
# do lk optical point tracking
96102
# tracker.startLKTracking();

0 commit comments

Comments
 (0)