Drawing lines on NvBuffer

Hello,

I’m wondering what is the best way to draw diagonal lines on an NvBuffer. I can draw arrows with NVOSD but not lines…

Thanks

Hi,
You can use GPU through CUDA or CPU.
For using GPU, please check

NvEGLImageFromFd()
HandleEGLImage()
NvDestroyEGLImage()

For using CPU, please refer to DO_CPU_PROCESS in 10_camera_recording