Stream class from VPI Python library missing constructor on Jetson Nano

Howdy all,
I’m trying to get the Python example code for stereo disparity provided in the VPI documentation to work, but when I try to run it, I get:

    streamLeft = vpi.Stream()
TypeError: vpi.Stream: No constructor defined!

Note that this is on line 71 of the provided example code. I tried changing those lines to

streamLeft = vpi.Stream(0)

and

streamRight = vpi.Stream(1)

in case they needed identifiers, but it still didn’t work. I’m guessing I’m missing something here, or I need to update somehow (I have been using apt to update packages regularly).
I am using the Python 3.6 installation that comes with the NVIDIA Jetson Nano Ubuntu image.
Thanks in advance,
Travis

Hi,
Please make sure you have two cameras connected and both can be launched in gst-launch-1.0 command:

$ gst-launch-1.0 nvarguscamerasrc sensor-id=0(or 1) ! nvoverlaysink

Ahhhh, that was the issue. Thank you!

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.