# RapidPoseTriangulation

Fast triangulation of multiple persons from multiple camera views.

<div align="center">
    <img src="media/2d-k.jpg" alt="2D detections"" width="65%"/>
    <b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</b>
    <img src="media/3d-p.jpg" alt="3D detections" width="30%"/>
    <br>
    <br>
    <img src="media/2d-p.jpg" alt="3D to 2D projection" width="95%"/>
</div>

<br>

## Build

- Clone this project with submodules: 
    ```bash
    git clone --recurse-submodules https://gitlab.com/Percipiote/RapidPoseTriangulation.git
    cd RapidPoseTriangulation/
    ```

- Build docker container:
  ```bash
  docker build --progress=plain -t rapidposetriangulation .
  ./run_container.sh
  ```

- Test with samples:
  ```bash
  python3 /RapidPoseTriangulation/scripts/test_triangulate.py
  ```

- Test with _skelda_ dataset:
  ```bash
  export CUDA_VISIBLE_DEVICES=0
  python3 /RapidPoseTriangulation/scripts/test_skelda_dataset.py
  ```

<br>

## Debugging

```bash
cd /RapidPoseTriangulation/swig/ && make all && cd ../tests/ && python3 test_interface.py
```
