I am trying to release a cam capture which has been acquired by the API call
camera = cv.CaptureFromCAM(-1)
How can I release it. There is a function named "ReleaseCapture" but it has no python binding.
Can anybody suggest any alternative?
Thanks a lot
I found a similar answered question here
capture = cv.CaptureFromCAM(0)
frame = cv.QueryFrame(capture)
#some code ...
del(capture)
be carefull of using frame or another image captured from cam after deleting capture
regards
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With