blob: 7ffc42dd23eb6e4792f401f63106943f8162d715 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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)
```
|