fix up video thumbnailing issue, seems I repalce cv2 with cv2.cv2 in a couple of spots

This commit is contained in:
2022-07-15 22:50:11 +10:00
parent fa713d76b4
commit 34c759b7a0

View File

@@ -1702,8 +1702,8 @@ def GenVideoThumbnail(job, file):
res = first_res
frame = first_frame
w = vcap.get(cv2.cv2.CAP_PROP_FRAME_WIDTH)
h = vcap.get(cv2.cv2.CAP_PROP_FRAME_HEIGHT)
w = vcap.get(cv2.CAP_PROP_FRAME_WIDTH)
h = vcap.get(cv2.CAP_PROP_FRAME_HEIGHT)
if w > h:
factor = w / THUMBSIZE
else: