blob: 4d06e874108f981ed32a3824e930b38b22fe05e8 (
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 optic parameters
aoi2D_scene = aoi3D_scene.project(tvec, rmat, optic_parameters.K)
# Draw AOI 2D scene
aoi2D_scene.draw(frame)
```
|