Jetson Orin NX supports OFA backend in VPI.
So, I tried to use “Stereo Disparity Estimator” sample script with OFA backend.
But, I got the following error.
ValueError: VPI_ERROR_INVALID_IMAGE_FORMAT: Unsupported disparity format
Environment
Jetson Orin NX(16GB)
JetPack 5.1
VPI 2.2.4
I used Python API
Steps to reproduce
$ cd /opt/nvidia/vpi2/samples/02-stereo_disparity
$ python3 main.py ofa ../assets/chair_stereo_left.png ../assets/chair_stereo_right.png
Traceback (most recent call last):
File "main.py", line 123, in <module>
disparity = vpi.stereodisp(left, right, downscale = downscale, out_confmap=confidenceMap, window=5, maxdisp=maxDisparity)
ValueError: VPI_ERROR_INVALID_IMAGE_FORMAT: Unsupported disparity format
Therefore, I think that ofa-vic is more appropriate than ofa.
Is my understanding correct?
And, I found that the behavior of backend option is different between C++ sample code and python sample code.
So, the C++ sample code works fine with ofa option.