Error:I am getting an error like:cv2.error: OpenCV(3.4.5) C:\projects\opencv-python\opencv\modules\dnn\src\caf caffe_io.cpp:1121: error: (-2:Unspecified error) FAILED: fs.is_open()
Hi , I have started working on opencv , following the online tutorials. I have been stuck at a point.It seems you also faced the same.Please help me getting a solution for it. I am using windows as a platform .
File "object_detection.py", line 36, in <module> net = cv2.dnn.readNetFromCaffe(args["prototxt"], args["model"]) cv2.error: OpenCV(3.4.5) C:\projects\opencv-python\opencv\modules\dnn\src\caf caffe_io.cpp:1121: error: (-2:Unspecified error) FAILED: fs.is_open(). Can't open "deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'stion
it did not find the
deploy.prototxt
, just believe it, it isnt there. your path was probably wrong. please check, and try with an absolute path to those files.