Ask Your Question

Revision history [back]

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 n "deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'stion/204774/cant-open-deployprototxttxt-in-function-cvdnnreadprotofromtextfile/

click to hide/show revision 2
None

updated 2019-02-07 09:29:17 -0600

berak gravatar image

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 n open "deploy.prototxt" in function 'cv::dnn::ReadProtoFromTextFile'stion/204774/cant-open-deployprototxttxt-in-function-cvdnnreadprotofromtextfile/'cv::dnn::ReadProtoFromTextFile'stion

s.a.: http://answers.opencv.org/question/204774/cant-open-deployprototxttxt-in-function-cvdnnreadprotofromtextfile/