schwittlick / ofxDarknet

darknet neural network addon for openFrameworks
MIT License
496 stars 89 forks source link

yolo 9000 for object detection #45

Open srividya91 opened 4 years ago

srividya91 commented 4 years ago

Hello Everyone, i am trying to use yolo 9000 for object detection. i read yolo9000.cfg file using darknet. but, i am unable to read the weight files using darkflow.. could any one please help me out..

` net=cv2.dnn.readNetFromDarknet("(r"C:\Users\Desktop\darknet-master\darknet-master\cfg\yolo9000.cfg")

net1=cv2.dnn.readNetFromDarknet(r"C:\Users\Desktop\darknet-master\darknet-master\yolo9000.weights")`

error Traceback (most recent call last) in ----> 1 net1=cv2.dnn.readNetFromDarknet(r"C:\Users\Desktop\darknet-master\darknet-master\yolo9000.weights")

error: OpenCV(4.1.2) C:\projects\opencv-python\opencv\modules\dnn\src\darknet\darknet_importer.cpp:207: error: (-212:Parsing error) Failed to parse NetParameter file: C:\Users\Desktop\darknet-master\darknet-master\yolo9000.weights in function 'cv::dnn::dnn4_v20190902::readNetFromDarknet'