Draw using OpenCV on frame

How can I draw something on my current frame (say like point) using OpenCV if I’m using DeepStream using python bindings? Is this feature available now?

Image data accessing is not available in current release, please wait for the upcoming release.

Also you can use OSD to draw on the frame buffer, you can refer to test1 python app funtion osd_sink_pad_buffer_probe for how to draw text onto the buffer,
here is header file for OSD, sources/includes/nvll_osd_struct.h sources/includes/nvll_osd_api.h
and documentation about OSD,

There is a sample app for this type of operation in the new v0.9 release. You can download that and the pre-requisite DS SDK 5.0 Dev Preview release at https://developer.nvidia.com/deepstream-getting-started

The relevant sample app is at https://github.com/NVIDIA-AI-IOT/deepstream_python_apps/tree/master/apps/deepstream-imagedata-multistream

at the moment, can i access image data and change it ? thanks

Yes, we have python sample deepstream-imagedata-multistream, which can access the frame buffer and save it to file.

1 Like