如何在Opencv中从相机中删除帧? [英] How Do I Delete A Frame From A Camera In Opencv?

查看:148
本文介绍了如何在Opencv中从相机中删除帧?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我编写了一个程序,可以使用红色对象在网络摄像头框架上绘图。现在为了擦除我的绘图,我使用了mousemove事件或左键单击事件,这使我能够擦除绘图,一切正常。但是当我在网络摄像头框架上绘制了很多东西并使用鼠标事件擦除绘图时可能会有点忙乱。所以,我想知道是否有一种方法我可以实际删除整个框架并获得一个没有绘图的新框架。可能吗?谢谢

I have written a program which enables me to draw on the webcam frame using a red colored object. Now for erasing my drawing, i have used the mousemove event or the left click event which enables me to erase the drawing and everything works fine. But when i have drawn a lot of stuffs on the webcam frame and use the mouse event to erase the drawing can be little hectic. So, i was wondering if there was a way i can actually delete the whole frame and get a fresh frame with no drawing in it. Is it possible? Thanks

推荐答案

您必须在流程开始时复制原始框架。如果您还存储了所有步骤,则可以实现UnDo功能,该功能仅重复第一步。
you must make a copy of the original frame at start of the process. If you also store allsteps you can implement an "UnDo" function which only repeats the first steps.


这篇关于如何在Opencv中从相机中删除帧?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆