iArunava / YOLOv3-Object-Detection-with-OpenCV

This project implements a real-time image and video object detection classifier using pretrained yolov3 models.
MIT License
320 stars 173 forks source link

readNetFromDarknet Parsing error #14

Open jisohyun1224 opened 4 years ago

jisohyun1224 commented 4 years ago

import cv2 import matplotlib.pyplot as plt import cvlib as cv from cvlib.object_detection import draw_bbox img = cv2.imread('dog-cycle-car.png') bbox, label, conf = cv.detect_common_objects(img) output_image = draw_bbox(img, bbox, label, conf) plt.imshow(output_image) plt.show()

OpenCV(4.1.1) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_importer.cpp:207: error: (-212:Parsing error) Failed to parse NetParameter file: C:\Users\지소현.cvlib\object_detection\yolo\yolov3\yolov3.cfg in function 'cv::dnn::dnn4_v20190621::readNetFromDarknet'

how can i solve this :((

bhavesh0124 commented 4 years ago

!wget "https://pjreddie.com/media/files/yolov3.weights" Run this command and save the yolo.weight file in yolov3-coco

skykongkong8 commented 3 years ago

did you solved this??