- Jetson Xavier or XavierNX
- JetPack 4.4 Product Release (GA)
- VPI-0.3
$ cd /home/nvidia/
$ mkdir opencv4.3.0
$ wget https://raw.githubusercontent.com/AastaNV/JEP/master/script/install_opencv4.3.0_Jetson.sh
$ sudo chmod +x install_opencv4.3.0_Jetson.sh
$ ./install_opencv4.3.0_Jetson.sh opencv4.3.0
$ git clone https://github.com/AastaNV/00-video_stabilization.git
$ cd 00-video_stabilization
$ cmake .
$ make
$ ./vpi_sample_stabilization
- Use S16 gray scale image format.
- Use CUDA to allow larger minNMSDistance (PVA only support minNMSDistance=8)
- Apply algorithm on S16 image format
- Wrap bbox by making a fake bounding box center with keypoint with w=h=32
- Use CUDA
- Apply algorithm on S16 image format
- Use global translation as approximate - [TODO] User should add foreground removal and IIR filter matrix on their own
- Matrix need to apply on the center of the image. Transform will look like this:
| 1 0 2/w | | 1 0 mx | | 1 0 -2/w |
T = | 0 1 2/h | * | 0 1 my | * | 0 1 -2/h |
| 0 0 1 | | 0 0 1 | | 0 0 1 |
- [TODO] User should add foreground removal and IIR filter on their own.
- Use PVA
- Apply algorithm on NV12 image format
- Flow should look like this
(OpenCV BGR) -> ImageFormatConverter -> (VPI NV12) -> PerspectiveImageWarp -> (VPI NV12) -> ImageFormatConverter -> (OpenCV BGR)