Jump to content

OpenCV: Difference between revisions

192 bytes added ,  27 February 2020
Line 57: Line 57:
     else:
     else:
         break
         break
</syntaxhighlight>
;Getting the resolution
<syntaxhighlight lang="python">
width = int(video_capture.get(cv2.CAP_PROP_FRAME_WIDTH))
height = int(video_capture.get(cv2.CAP_PROP_FRAME_HEIGHT))
</syntaxhighlight>
</syntaxhighlight>