Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Can't run sample dnn program

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?