We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4e13d42 commit 8821ffdCopy full SHA for 8821ffd
1 file changed
samples/video-decoding.py
@@ -39,8 +39,8 @@ def decode_video():
39
# video_file = "Put your video file path here."
40
# vc = cv2.VideoCapture(video_file)
41
42
- video_width = vc.get(cv2.CAP_PROP_FRAME_WIDTH)
43
- video_height = vc.get(cv2.CAP_PROP_FRAME_HEIGHT)
+ video_width = int(vc.get(cv2.CAP_PROP_FRAME_WIDTH))
+ video_height = int(vc.get(cv2.CAP_PROP_FRAME_HEIGHT))
44
vc.set(3, video_width) #set width
45
vc.set(4, video_height) #set height
46
0 commit comments