Hardware Platform (Jetson / GPU) NX • DeepStream Version 6.11 • JetPack Version (valid for Jetson only) 5.02 • TensorRT Version 8.4
I am using preprocess plug-in, the source is a 800x512 rtsp h264 stream. For I need a gray frame before to calculate the ROI params,
I insert a piece of codes:
cv::Mat yuv;
yuv.create(height, width, CV_8UC1);
memcpy(yuv.data, surface->surfacelist[frameIndex].mappedAddr.addr[0],heightwidthsizeof(uchar));