diff options
author | Theo De La Hogue | 2023-09-23 07:22:23 +0200 |
---|---|---|
committer | Theo De La Hogue | 2023-09-23 07:22:23 +0200 |
commit | 23fa1a7835b3c7cfd976b1d160878289b1f0657c (patch) | |
tree | acc107a975536f5d57ae269063efe7b613e6bc84 /docs/user_guide/ar_environment/environment_exploitation.md | |
parent | b947573f7dbccb5b2b13b64677192145f2dbb864 (diff) | |
download | argaze-23fa1a7835b3c7cfd976b1d160878289b1f0657c.zip argaze-23fa1a7835b3c7cfd976b1d160878289b1f0657c.tar.gz argaze-23fa1a7835b3c7cfd976b1d160878289b1f0657c.tar.bz2 argaze-23fa1a7835b3c7cfd976b1d160878289b1f0657c.tar.xz |
Fixing code annotation. Removing useless documentation section. Fixing documentation cross reference.
Diffstat (limited to 'docs/user_guide/ar_environment/environment_exploitation.md')
-rw-r--r-- | docs/user_guide/ar_environment/environment_exploitation.md | 36 |
1 files changed, 0 insertions, 36 deletions
diff --git a/docs/user_guide/ar_environment/environment_exploitation.md b/docs/user_guide/ar_environment/environment_exploitation.md deleted file mode 100644 index 9e4b236..0000000 --- a/docs/user_guide/ar_environment/environment_exploitation.md +++ /dev/null @@ -1,36 +0,0 @@ -Environment exploitation -======================== - -Once loaded, [ArCamera](../../argaze.md/#argaze.ArFeatures.ArCamera) assets can be exploited as illustrated below: - -```python -# Access to AR environment ArUco detector passing it a image where to detect ArUco markers -ar_camera.aruco_detector.detect_markers(image) - -# Access to an AR environment scene -my_first_scene = ar_camera.scenes['my first AR scene'] - -try: - - # Try to estimate AR scene pose from detected markers - tvec, rmat, consistent_markers = my_first_scene.estimate_pose(ar_camera.aruco_detector.detected_markers) - - # Project AR scene into camera image according estimated pose - # Optional visual_hfov argument is set to 160° to clip AOI scene according a cone vision - aoi2D_scene = my_first_scene.project(tvec, rmat, visual_hfov=160) - - # Draw estimated AR scene axis - my_first_scene.draw_axis(image) - - # Draw AOI2D scene projection - aoi2D_scene.draw(image) - - # Do something with AOI2D scene projection - ... - -# Catch exceptions raised by estimate_pose and project methods -except (ArFeatures.PoseEstimationFailed, ArFeatures.SceneProjectionFailed) as e: - - print(e) - -``` |