• Hardware Platform (Jetson / GPU) Jetson
• DeepStream Version 6.1
• JetPack Version (valid for Jetson only) 4.x
• TensorRT Version 8.4
• Issue Type( questions, new requirements, bugs) questions
Hello. I’m trying to customize dsexample plugin with cuda based opencv processing.
And i’m struggling an error misalined address
for hours.
The error occurs when i run gstreamer pipeline which includes this customzied dsexample
The code goes below.
frame_meta = (NvDsFrameMeta *) (l_frame->data);
if (NvBufSurfaceMapEglImage(surface, frame_meta->batch_id)) {
GST_ELEMENT_ERROR (dsexample, STREAM, FAILED,
("failed"), (NULL));
goto error;
}
cv::Mat in_mat;
NvBufSurfaceMemSet(surface, frame_meta->batch_id, 0, 0);
const int aDstOrder[] = {2,0,1,3};
cv::cuda::GpuMat gpuMat, gpuMat2;
gpuMat =
cv::cuda::GpuMat(surface->surfaceList[frame_meta->batch_id].planeParams.height[0],
surface->surfaceList[frame_meta->batch_id].planeParams.width[0], CV_8UC4,
(void *) surface->surfaceList[frame_meta->batch_id].mappedAddr.eglImage,
surface->surfaceList[frame_meta->batch_id].planeParams.pitch[0]);
cv::cuda::cvtColor(gpuMat, gpuMat2, cv::COLOR_RGBA2BGR);
i think i’m missing some understandings of Jetson architecture.
I searched the Internet for this issue for very hours, but couldn’t find any help.
Give me some advice.
Best regards.