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:
Kyle Machulis 2022-06-08 17:49:58 -07:00
parent 764baa539d
commit 5a451b4aa5

View File

@ -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.')