cant find ReleaseCapture in opencv while using python?

后端 未结 1 923
遇见更好的自我
遇见更好的自我 2020-12-20 23:04

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. The

相关标签:
1条回答
  • 2020-12-20 23:32

    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

    0 讨论(0)
提交回复
热议问题