aboutsummaryrefslogtreecommitdiff
path: root/docs/user_guide/areas_of_interest/aoi_scene_projection.md
blob: ad50f6f15c3e497c219b1c8b7a5801770742ee81 (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)
```