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 bindin开发者_如何学编程g.
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
精彩评论