>py yolo.py --video-path='F:/Data_Science/Python37/Scripts/YOLO/videos/lowres.mp4'
Traceback (most recent call last):
File "yolo.py", line 88, in <module>
net = cv.dnn.readNetFromDarknet(FLAGS.config, FLAGS.weights)
cv2.error: OpenCV(4.0.1) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_importer.cpp:214: error:
(-212:Parsing error) Failed to parse NetParameter file: ./yolov3-
coco/yolov3.weights in function 'cv::dnn::dnn4_v20181221::readNetFromDarknet'
为什么我得到一个解析错误?谁能帮我解决这个问题?
我有一个类似的错误,问题出在文件路径中。绝对文件路径解决了这个问题。