How to use OpenCV MAT image frames with detectnet?

Hi nralka2007, the DNN itself uses NCHW format, however the detectNet code performs pre-processing to convert the image from float4 RGBA image into NCHW (so you needn’t be concerned with NCHW).

I believe you need to use the cudaRGB8ToRGBA32() function from cudaRGB.h to convert your data into float4 RGBA. You then pass this float4 RGBA image (residing in CUDA device memory) to detectNet::Detect()