Ask Your Question

Revision history [back]

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'

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