fix up video thumbnailing issue, seems I repalce cv2 with cv2.cv2 in a couple of spots
This commit is contained in:
@@ -1702,8 +1702,8 @@ def GenVideoThumbnail(job, file):
|
|||||||
res = first_res
|
res = first_res
|
||||||
frame = first_frame
|
frame = first_frame
|
||||||
|
|
||||||
w = vcap.get(cv2.cv2.CAP_PROP_FRAME_WIDTH)
|
w = vcap.get(cv2.CAP_PROP_FRAME_WIDTH)
|
||||||
h = vcap.get(cv2.cv2.CAP_PROP_FRAME_HEIGHT)
|
h = vcap.get(cv2.CAP_PROP_FRAME_HEIGHT)
|
||||||
if w > h:
|
if w > h:
|
||||||
factor = w / THUMBSIZE
|
factor = w / THUMBSIZE
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user