Hi, I’m trying to warp video with some Vision Programming Interface methods. I believe the below code works, except I’m not sure how to show the output. Trying with OpenCV “imshow”, I get ‘src is not a numpy array, neither a scalar’.
What is a good way to show the output variable here? Any help appriciated!
Just tried running the perspective warp python example using one of the videos from /opt/nvidia/vpi1/samples/assets folder. Had to change the output file ending from mp4 to avi, otherwise I get:
OpenCV: FFMPEG: tag 0x4745504d/ ‘MPEG’ is not supported with codec id 2
Fixing that, my original problem still persists:
AttributeError: ‘vpi.Image’ object has no attribute ‘rlock_cpu’.
EDIT
I noticed the sample from my vpi1 folder is different from the nvidia forum example. I’ve manage to get the code running, even using a webcam as input.
I’m still unsure how to show the output, not as a video, but as live video, like I’d do with cv2.imshow for example. Any suggestions? Thanks!
hi, why can not make it successfully when i add imshow() of opencv to a vpi program, while imread() and imwrite() work well? ——version vpi1.1 platform jetson tx2a