How to run detectnet-camera on OpenCV captured frame instead of gstreamer?

Hi, I’m trying to get detectnet-camera run on frames captured by OpenCV instead GStreamer. Till now, I can see the frames taken by OpenCV (with imshow) however it keeps print “0 bounding boxes detected” on the terminal. What can be th problem? I’m not changing anything but taking the frames from the camera using OpenCV.

Hi,

Could you check if your image goes through the same format/value conversion as GStreamer?
It should be NV12 → RGBA → substract mean:
https://github.com/dusty-nv/jetson-inference/blob/master/util/camera/gstCamera.cpp

Thanks.