aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/areas_of_interest/aoi_projection.md
diff options
context:
space:
mode:
Diffstat (limited to 'docs/user_guide/areas_of_interest/aoi_projection.md')
-rw-r--r--docs/user_guide/areas_of_interest/aoi_projection.md22
1 files changed, 22 insertions, 0 deletions
diff --git a/docs/user_guide/areas_of_interest/aoi_projection.md b/docs/user_guide/areas_of_interest/aoi_projection.md
new file mode 100644
index 0000000..7ffc42d
--- /dev/null
+++ b/docs/user_guide/areas_of_interest/aoi_projection.md
@@ -0,0 +1,22 @@
+---
+title: AOI projection
+---
+
+AOI projection
+==============
+
+An AOI3D scene can be rotated and translated according to a pose estimation before to project it onto camera frame as an AOI2D scene.
+
+![AOI projection](../../img/aoi_projection.png)
+
+``` python
+...
+
+# Assuming pose estimation is done (tvec and rmat)
+
+# Project AOI 3D scene according pose estimation and camera intrinsic parameters
+aoi2D_scene = aoi3D_scene.project(tvec, rmat, aruco_camera.K)
+
+# Draw AOI 2D scene
+aoi2D_scene.draw(frame)
+```