jetson.inference.detectNet.Detect which format of img parameter?


i’m working in python3.6 with jetson module on a TX2.
The pictures are from a IDS camera and i need to know how can i pass frame from IDS camera to Detect(img,width,height,overlay) method of jetson.inference

Thanks in advance

Hi Federico, are the images a Numpy array? If so, see this example to convert the images to CUDA memory format that detectNet.Detect function can use:

The Numpy array that’s passed into this should be 4-channel RGBA, as detectNet expects to work with 4-channel RGBA image.

Also, if you are using OpenCV to capture the image, see this post for the conversion: