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. --- .../user_guide/aruco_markers_pipeline/configuration_and_execution.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'docs/user_guide/aruco_markers_pipeline') diff --git a/docs/user_guide/aruco_markers_pipeline/configuration_and_execution.md b/docs/user_guide/aruco_markers_pipeline/configuration_and_execution.md index 4f3ce5b..4f05beb 100644 --- a/docs/user_guide/aruco_markers_pipeline/configuration_and_execution.md +++ b/docs/user_guide/aruco_markers_pipeline/configuration_and_execution.md @@ -56,7 +56,10 @@ Then, here is how to load the JSON file: from argaze.ArUcoMarkers import ArUcoCamera # Load ArUcoCamera -aruco_camera = ArUcoCamera.ArUcoCamera.from_json('./configuration.json') +with ArUcoCamera.ArUcoCamera.from_json('./configuration.json') as aruco_camera: + + # Do something with ArUcoCamera + ... ``` Now, let's understand the meaning of each JSON entry. -- cgit v1.1