Can't run sample dnn program [closed]
I am using Opencv 3.1.0 on ubuntu 14.04. I have successfully built Opencv and wanted to try reading a caffe model and classifying.
I used the program and models from this tutorial
I am able to compile the program but running it gives me the error below-
OpenCV Error: Unspecified error (FAILED: fs.is_open(). Can't open "bvlc_googlenet.prototxt") iReadProtoFromTextFile, file /home/kevmepls/opt/opencv_contrib/modules/dnn/src/caffe/caffe_io.cpp, line 1077
Can't load network by using the following files:
prototxt: bvlc_googlenet.prototxt
caffemodel: bvlc_googlenet.caffemodel
bvlc_googlenet.caffemodel can be downloaded here:
http://dl.caffe.berkeleyvision.org/bvlc_googlenet.caffemodel
I don't understand why it can't read the models?
hmm, a simple ifstream failed to open . not much magic here. it'sprobably about the path, can you try to put all files & your binary into te same folder ?
Hi break, I actually put all the models and image in the same folder with the program and still the error comes.
shame, again. that would have been too easy... (out of ideas, now)