blob: bdb3fe0ee4c60a49d6b12c1d08218067c1e5a240 (
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 image 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(image)
```
|