From d10ecfa6da349b0dda0c71bfb5982a8bda536173 Mon Sep 17 00:00:00 2001 From: Dominic Canare Date: Tue, 15 Oct 2024 07:43:53 -0400 Subject: [PATCH] Adds extract-by-index example --- examples/basic_usage.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/examples/basic_usage.py b/examples/basic_usage.py index e2a915d..902d937 100644 --- a/examples/basic_usage.py +++ b/examples/basic_usage.py @@ -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)