I am currently trying to get the stereo disparity estimator in the VPI to work with Python but there is a problem with the import section. No module error is thrown. When currently installed modules are checked, VPI is not on the list.
import vpi
Gives “no module named vpi” error. I can’t import VPI using Python 3.7.1. Python 2.7 also gives the same error.
However, i think the VPI 1.1 is installed on the system because when I check with
apt show cache nvidia-vpi
The log result is below
#################################
Package: nvidia-vpi
Version: 4.5.1-b17
Priority: standard
Section: metapackages
Maintainer: NVIDIA Corporation
Installed-Size: 199 kB
Depends: libnvvpi1 (= 1.0.15), vpi1-dev (= 1.0.15), vpi1-samples (= 1.0.15), vpi1-demos (= 1.0.15)
Homepage: http://developer.nvidia.com/jetson
Download-Size: 29,3 kB
APT-Manual-Installed: yes
APT-Sources: https://repo.download.nvidia.com/jetson/t210 r32.5/main arm64 Packages
Description: NVIDIA Vpi Meta Package
N: Unable to locate package cache
N: Unable to locate package cache
N: There is 1 additional record. Please use the '-a' switch to see it
I can also run the VPI Remap demo with the “VPI Demos V1.0” on the desktop. It opens a folder with a single demo in it. It is the “VPI Remap Demo 1.0”. When I run it, it connects to my camera and 4 video streams with different transformations (mirror, pinch, whirl, waves) run simultaneously on CUDA.
Please noted that VPI is compiled with the default python version, which should be version 3.6.
Would you mind importing it with python 3.6 to see if it works?