Hi experts,
I'm trying to display processed images, which were stored in cv::mat.
is it able to convert the images and display them?
Are there any examples that I can refer to?
Thanks.
Hi experts,
I'm trying to display processed images, which were stored in cv::mat.
is it able to convert the images and display them?
Are there any examples that I can refer to?
Thanks.
Hi,
You could refer the below sample application to read a YUV image from a file and send to display node.
/cfs-file/__key/communityserver-discussions-components-files/791/6064.main.c
You could follow the same approach for your usecase
Regards,
Nikhil
Hi,
Thanks for providing this example!
I have a few questions about it.
First, I want to send a cv::mat to display node, which does not have a file path, can I achieve this using provided example?
Second, will this code be slow (< 30FPS)? Are there any faster way to perform this?
Thanks!
Hi,
You can take the file input as the reference. In that function, we do vxMapImagePatch() do get the data ptr of the image. You could copy the contents of cv::mat into that address and then do vxUnmapImagePatch() and send it to the display node.
Second, will this code be slow (< 30FPS)? Are there any faster way to perform this?
The Display runs at 60 FPS, so it would depend on how fast you feed the input here.
Regards,
Nikhil