部分代码
vc = cv2.VideoCapture('./test.mp4')
#省略部分。。。。
while True:
ret, frame = vc.read()
if frame is None:
break
报错显示:
ret, frame = vc.read()
TypeError: Incorrect type of self (must be 'VideoCapture' or its derivative)
部分代码
vc = cv2.VideoCapture('./test.mp4')
#省略部分。。。。
while True:
ret, frame = vc.read()
if frame is None:
break
报错显示:
ret, frame = vc.read()
TypeError: Incorrect type of self (must be 'VideoCapture' or its derivative)