Bump pixel difference thresholds
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is passing

This commit is contained in:
Lauri Võsandi 2022-12-13 23:18:04 +02:00
parent 3a5461b91e
commit eb9961c77f

View File

@ -246,7 +246,7 @@ async def motion_detector(reference_frame, download_queue, upload_queue):
reference_frame.put(y) reference_frame.put(y)
try: try:
app.ctx.mask = cv2.inRange(cv2.absdiff(y, app.ctx.mask = cv2.inRange(cv2.absdiff(y,
reference_frame.get()), 25, 65535) reference_frame.get()), 50, 65535)
except ReferenceFrame.NotEnoughFrames: except ReferenceFrame.NotEnoughFrames:
app.ctx.mask = None app.ctx.mask = None
motion_detected = False motion_detected = False