f= cv2.dnn.readNet(prototxtPath, weightsPath) cv2.error: OpenCV(4.4.0) C:\caffe\caffe_io.cpp:1121: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "\deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'

asked 2020-10-04 21:16:06 -0600

I am working with object detection in open cv and getting this error in vs code but it works perfectly in pycharm plz guide me where I am wrong

edit retag flag offensive close merge delete

Comments

just believe, what the error says - the path to your prototxt is wrong.

(try to use foward slashes, \deploy.prototxt looks pretty invalid to me)

berak gravatar imageberak ( 2020-10-05 01:27:57 -0600 )edit