mirror of
https://github.com/ck-zhang/EyePy.git
synced 2026-01-05 11:09:29 -06:00
Remove warning
This commit is contained in:
3
demo.py
3
demo.py
@@ -96,7 +96,8 @@ def main():
|
||||
|
||||
if filter_method == "kalman":
|
||||
prediction = kalman.predict()
|
||||
x_pred, y_pred = int(prediction[0]), int(prediction[1])
|
||||
x_pred = int(prediction[0][0])
|
||||
y_pred = int(prediction[1][0])
|
||||
|
||||
# Clamp the predicted gaze point to the screen boundaries
|
||||
x_pred = max(0, min(x_pred, screen_width - 1))
|
||||
|
||||
Reference in New Issue
Block a user