收起
以下回复参考:皆我百晓生、券券喵儿等免费微信小程序作答:
问题原因是在调用cv2.videoCapture()时,videoCapture的首字母应该大写,即VideoCapture。请将代码中的cap=cv2.videoCapture(filePath)修改为cap=cv2.VideoCapture(filePath)。
cv2.videoCapture()
videoCapture
VideoCapture
cap=cv2.videoCapture(filePath)
cap=cv2.VideoCapture(filePath)
报告相同问题?