Skip to content

Commit 5a451b4

Browse files
committed
fix: Only ever return one blob when blob tracking
Forgot to return after finding our first, largest blob during blob tracking, meaning we'd possibly return many blobs even though we can't do anything with that info. Fixes #20
1 parent 764baa5 commit 5a451b4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

RANSACApp/ransac.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ def blob_tracking_fallback(self):
235235
if yu > 0:
236236
out_y = max(0.0, min(1.0, yu))
237237

238-
output_tuple = (True, out_x, out_y, False)
239238
self.output_images_and_update(larger_threshold, EyeInformation(InformationOrigin.BLOB, out_x, out_y, False))
239+
return
240240
self.output_images_and_update(larger_threshold, EyeInformation(InformationOrigin.BLOB, 0, 0, True))
241241
print('[INFO] BLINK Detected.')
242242

0 commit comments

Comments
 (0)