How do i use cuda images in python openCV

i get my camera using
camera = jetson.utils.VideoSource(“/dev/video0”)

and capture images using
img = camera.Capture()

is there any way for me to convert this captured image into a numpy array or other type that can be used in openCV?

what i end up doing with openCV is horizontally concatenating the images, so if there is a way to do that with cuda images that would also be helpful

Hi,

Please check the python sample from jetson-utils below:

There is a cuda-to-cv.py and a cuda-to-numpy.py that should meet your use case.

Thanks.

1 Like

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