5,323
edits
(→Video) |
|||
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> | ||