开发者

how can we start and stop the webcam in opencv?

开发者 https://www.devze.com 2023-03-20 05:04 出处:网络
I am trying to capture images from webcam using opencv. When i call cvQueryFrame() the image is read and the cam starts. I want cam to stop because it will be used by 开发者_如何学Pythonother applicat

I am trying to capture images from webcam using opencv. When i call cvQueryFrame() the image is read and the cam starts. I want cam to stop because it will be used by 开发者_如何学Pythonother application.

Can anyone help me with this?

Thanks a lot.


Isn't cvReleaseCapture() working ?

I would just stop the frame query, (stop the loop you use to capture frame) and then simply release the capture... Is it what you are searching for ? Here is the documentation

0

精彩评论

暂无评论...
验证码 换一张
取 消