mirror of
https://github.com/EyeTrackVR/EyeTrackVR.git
synced 2025-09-26 23:09:28 +08:00
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
This commit is contained in:
parent
764baa539d
commit
5a451b4aa5
@ -235,8 +235,8 @@ class Ransac:
|
||||
if yu > 0:
|
||||
out_y = max(0.0, min(1.0, yu))
|
||||
|
||||
output_tuple = (True, out_x, out_y, False)
|
||||
self.output_images_and_update(larger_threshold, EyeInformation(InformationOrigin.BLOB, out_x, out_y, False))
|
||||
return
|
||||
self.output_images_and_update(larger_threshold, EyeInformation(InformationOrigin.BLOB, 0, 0, True))
|
||||
print('[INFO] BLINK Detected.')
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user