Commit 336f8ee7 authored by mac's avatar mac

c

parent c82d0178
...@@ -102,9 +102,9 @@ def video2comix(args): ...@@ -102,9 +102,9 @@ def video2comix(args):
vc = cv2.VideoCapture(inputmp4) vc = cv2.VideoCapture(inputmp4)
print('video open status:', vc.isOpened()) print('video open status:', vc.isOpened())
# 获取视频宽度 # width
frame_width = int(vc.get(cv2.CAP_PROP_FRAME_WIDTH)) frame_width = int(vc.get(cv2.CAP_PROP_FRAME_WIDTH))
# 获取视频高度 # height
frame_height = int(vc.get(cv2.CAP_PROP_FRAME_HEIGHT)) frame_height = int(vc.get(cv2.CAP_PROP_FRAME_HEIGHT))
print('video w,h:', str(frame_width), ',', str(frame_height)) print('video w,h:', str(frame_width), ',', str(frame_height))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment