Ask Your Question

Revision history [back]

Create a new window on top of camera feed

I have an application for OpenCV where I am looking to create a camera feed and then draw on top of the camera feed. My first thought is that I probably need a new window or view on top of the camera feed as I will be doing a lot of updating and drawing on top of the camera feed and it does not make sense to update the cv::Mat that is being displayed in the camera feed. Am I thinking about this wrong? If not, is there a way to create a new transparent window on top of the camera feed that I can draw to?

Create a new window on top of camera feed

I have an application for OpenCV where I am looking to create a camera feed and then draw on top of the camera feed. My first thought is that I probably need two windows or views. One to output the camera feed only and the other would be a new transparent window or view sitting on top of the camera feed as window that I will be doing a lot of updating and drawing on top of the camera feed and could draw to. For performance reasons I figure it does not make sense to update the cv::Mat in the window that is being displayed in outputting the camera feed. feed so I will do it on top of the camera feed in a new window as I will be doing a lot of drawing, computation, and updating. Am I thinking about this wrong? in the correct way? Is this something that can be done in OpenCV? If not, is there a way to create a new transparent window on top of the camera feed that I can draw to?so, how would something like this be setup?