From 9c42e9f1ee8208e14dadcb73cf030a9baef236ed Mon Sep 17 00:00:00 2001 From: Théo de la Hogue Date: Wed, 28 Feb 2024 18:48:40 +0100 Subject: Updating the use of with statement in documentation. --- docs/user_guide/gaze_analysis_pipeline/visualisation.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'docs/user_guide/gaze_analysis_pipeline/visualisation.md') diff --git a/docs/user_guide/gaze_analysis_pipeline/visualisation.md b/docs/user_guide/gaze_analysis_pipeline/visualisation.md index e046ddf..b8156a5 100644 --- a/docs/user_guide/gaze_analysis_pipeline/visualisation.md +++ b/docs/user_guide/gaze_analysis_pipeline/visualisation.md @@ -94,17 +94,17 @@ def main(): # Assuming ArFrame is loaded ... - # Create a window to display ArFrame - cv2.namedWindow(ar_frame.name, cv2.WINDOW_AUTOSIZE) + # Create a window to display ArFrame + cv2.namedWindow(ar_frame.name, cv2.WINDOW_AUTOSIZE) - # Assuming that timestamped gaze positions are being processed by ArFrame.look method - ... + # Assuming that timestamped gaze positions are being processed by ArFrame.look method + ... - # Update ArFrame image display - cv2.imshow(ar_frame.name, ar_frame.image()) + # Update ArFrame image display + cv2.imshow(ar_frame.name, ar_frame.image()) - # Wait 10 ms - cv2.waitKey(10) + # Wait 10 ms + cv2.waitKey(10) if __name__ == '__main__': -- cgit v1.1