blob: a23d06939a429869ef7a52f14bac03a9b136da2c (
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 scene projection
---
AOI scene projection
====================
An [AOI3DScene](/argaze/#argaze.AreaOfInterest.AOI3DScene) can be rotated and translated according to a pose estimation before to project it onto camera frame as an [AOI2DScene](/argaze/#argaze.AreaOfInterest.AOI2DScene).
![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)
```
|