vpi_perspective_warp_aruco

What does this application do?

This application demonstrates the Perspective Warp function of NVIDIA VPI with OpenCV ArUco module.

Prerequisites

  • NVIDIA Jetson Series Developer Kits
  • NVIDIA JetPack 4.5 or later
  • USB Camera

Installation

  1. 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.
  2. Download this repository.
    $ git clone https://github.com/MACNICA-CLAVIS-NV/vpi_perspective_warp_aruco
    
  3. Build the application.
    $ cd vpi_perspective_warp_aruco
    $ mkdir build
    $ cd build
    $ cmake ..
    $ make
    

Execution

  1. Print the marker sheet.
  2. Excute the application and place the marker sheet in front of the camera.
$ ./vpi_perspective_warp_aruco --video video_file_to_be_warped

Example

./vpi_perspective_warp_aruco --video /opt/nvidia/vpi1/samples/assets/dashcam.mp4