Skip to content

Commit 3fd49be

Browse files
committed
Minor server tweaks
1 parent dd12677 commit 3fd49be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

server_raspberrypi/main.py

+6-6
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,9 @@
107107
params.filterByColor = True
108108
params.filterByArea = True
109109
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
113113
params.filterByCircularity = False
114114
params.filterByConvexity = False
115115
params.filterByInertia = False
@@ -171,8 +171,8 @@ def blobby(request):
171171
# IR reflective surfaces in the camera's view, like glasses lenses.
172172
if (
173173
(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
176176
):
177177
# Send the (x_diff, y_diff) to the receiving computer.
178178
# For performance stats, I'm also sending the frame time on
@@ -208,7 +208,7 @@ def blobby(request):
208208
# Run the loop forever until Ctrl-C
209209
try:
210210
picam2.pre_callback = blobby
211-
sleep(10000000) # run for one hundred days
211+
sleep(60 * 60 * 8) # run for 8 hours, or 1 workday
212212
except KeyboardInterrupt:
213213
pass
214214

0 commit comments

Comments
 (0)