Ask Your Question
0

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()

asked 2019-02-07 09:27:15 -0600

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

berak gravatar image

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

s.a.: http://answers.opencv.org/question/20...

edit retag flag offensive close merge delete

Comments

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.

berak gravatar imageberak ( 2019-02-07 09:30:49 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
0

answered 2019-02-07 11:16:35 -0600

Thanks Berak..I was running with wrong directory..Thanks!!!

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2019-02-07 09:27:15 -0600

Seen: 2,214 times

Last updated: Feb 07 '19