EGLStream(CUDA) -> cv::cuda::GpuMat using Argus & nppi

please don’t use opencv, y’d better code using nvsurface

---- Replied Message ----

From | jahwan.oh via NVIDIA Developer |

  • | - |
    Date | 08/10/2023 17:07 |
    To | |
    Cc | |
    Subject | [NVIDIA Developer Forums] [AI & Data Science/Computer Vision & Image Processing] EGLStream(CUDA) → cv::cuda::GpuMat using Argus & nppi |

| jahwan.oh
August 10 |

  • | - |

Thank you for the reply,

I also trying to check the image is wrapped well in opencv container by: cuEglFrame → cv::cuda::gpuMat → cv::Mat -->imwrite

it seems the data is fine because cuEglFrame → cuda kernal (in jetson multimedia api → histogram) is working,
but any opencv function gives error. ex)imwrite, or sometimes download from gpuMat to cpu Mat…

I saw your comment as below, so I was wondering if you successfully done with opencv related stuff in your test.

I then tried to and cv::imwrite(cpuMat) , it throws unspecified launch failure as well.

For example I used these posts to wrap the data to opencv Mats.

NvBufSurface and OpenCV DeepStream SDK

• Hardware Platform Jetson • DeepStream Version 6 • JetPack Version 4.6 • TensorRT Version 8 • Issue Type questions I am following the instructions from the documentation to access the frames from the NvBufSurface’s surfaceList. The documentation suggests using dataPtr, but in nvbfsurface.h we can find this comment for the field: /** Holds a pointer to allocated memory. Not valid for \ref NVBUF_MEM_SURFACE_ARRAY or \ref NVBUF_MEM_HANDLE. */ void * dataPtr; SInce NVBUF_MEM_SURFACE_A…

I get image from NvBufSurface but i cvtColor NV12 to RGB Error. why? General Topics and Other SDKs

v4l2camerasrc->nvvideoconvert1->nvstreammux->nvvideoconvert2->nvtransform->nveglglessink static GstPadProbeReturn nvvidconvert2_sink_pad_buffer_probe (GstPad * pad, GstPadProbeInfo * info, gpointer u_data) { GstBuffer *buf = (GstBuffer *)info->data; NvDsMetaList * l_frame = NULL; NvDsUserMeta *user_meta = NULL; NvDsMetaList * l_user_meta = NULL; NvDsBatchMeta *batch_meta = gst_buffer_get_nvds_batch_meta(buf); for (l_frame = batch_meta->frame_meta_list; l_frame !=NULL; l_frame = l_frame…


1 Like