This application demonstrates the Perspective Warp function of NVIDIA VPI with OpenCV ArUco module.
- NVIDIA Jetson Series Developer Kits
- NVIDIA JetPack 4.5 or later
- USB Camera
- Install OpenCV which includes the ArUco module. The pre-installed OpenCV of JetPack does not include the ArUco module. The install_opencv4.5.0_Jetson.sh script can be used to build OpenCV with ArUco module in addtion to the GPU support. The build takes 2~3 hours on Jetson.
- Download this repository.
$ git clone https://github.com/MACNICA-CLAVIS-NV/vpi_perspective_warp_aruco
- Build the application.
$ cd vpi_perspective_warp_aruco $ mkdir build $ cd build $ cmake .. $ make
- Print the marker sheet.
- Excute the application and place the marker sheet in front of the camera.
$ ./vpi_perspective_warp_aruco --video video_file_to_be_warped
./vpi_perspective_warp_aruco --video /opt/nvidia/vpi1/samples/assets/dashcam.mp4