File tree 1 file changed +6
-6
lines changed
1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change 107
107
params .filterByColor = True
108
108
params .filterByArea = True
109
109
params .blobColor = args .blob_color
110
- params .minArea = 25
111
- params .minThreshold = 150
112
- params .minRepeatability = 3
110
+ params .minArea = 15
111
+ params .minThreshold = 200
112
+ params .minRepeatability = 1
113
113
params .filterByCircularity = False
114
114
params .filterByConvexity = False
115
115
params .filterByInertia = False
@@ -171,8 +171,8 @@ def blobby(request):
171
171
# IR reflective surfaces in the camera's view, like glasses lenses.
172
172
if (
173
173
(x_diff ** 2 > 0 or y_diff ** 2 > 0 )
174
- and x_diff ** 2 < 10
175
- and y_diff ** 2 < 10
174
+ and x_diff ** 2 < 50
175
+ and y_diff ** 2 < 50
176
176
):
177
177
# Send the (x_diff, y_diff) to the receiving computer.
178
178
# For performance stats, I'm also sending the frame time on
@@ -208,7 +208,7 @@ def blobby(request):
208
208
# Run the loop forever until Ctrl-C
209
209
try :
210
210
picam2 .pre_callback = blobby
211
- sleep (10000000 ) # run for one hundred days
211
+ sleep (60 * 60 * 8 ) # run for 8 hours, or 1 workday
212
212
except KeyboardInterrupt :
213
213
pass
214
214
You can’t perform that action at this time.
0 commit comments