Skip to content

Commit

Permalink
Adds extract-by-index example
Browse files Browse the repository at this point in the history
  • Loading branch information
domstoppable committed Oct 15, 2024
1 parent 925a46a commit d10ecfa
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions examples/basic_usage.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,10 @@

cv2.imshow('Gaze sample comparison', frame)
cv2.pollKey()

cv2.destroyAllWindows()

# Extract data by index
print("64th Gaze Sample:", recording.gaze.data[64])
cv2.imshow('64th scene frame (push any key to quit)', recording.scene.data[64].bgr)
cv2.waitKey(0)

0 comments on commit d10ecfa

Please sign in to comment.