cv2.error: OpenCV(4.5.5) 👎 error: (-5:Bad argument) in function 'resize' #46
Mostafizur15
started this conversation in
General
Replies: 1 comment
-
just put a comma in the dimensions tuple |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
def rescaleFrame(frame,scale=0.75):
width = int(frame.shape[1]*scale)
height = int(frame.shape[0]scale)
dimensions = (heightwidth)
return cv.resize(frame, dimensions,interpolation=cv.INTER_AREA)
captur = cv.VideoCapture("vdo.mp4")
while True:
isTrue, frame=captur.read()
frame_resized=rescaleFrame(frame)
captur.release()
cv.destroyAllWindows()
please tell me why this code giving me
.--->>>>>>>>>> cv2.error: OpenCV(4.5.5) 👎 error: (-5:Bad argument) in function 'resize'
this error....
Beta Was this translation helpful? Give feedback.
All reactions