11_camera_object_identification error

Seeing the following error after following the sample instructions:

nvidia@tegra-ubuntu:~/tegra_multimedia_api/samples/11_camera_object_identification/opencv_consumer_lib$ make
g++ -c -fPIC -Wall -Wextra -O2 -g pkg-config --cflags opencv -IOME/Work/caffe/caffe-master/include -I/usr/local/cuda/include -IOME/Work/caffe/caffe-master/build/src opencv_consumer.cpp
In file included from opencv_consumer.cpp:39:0:
Classifier.h:20:27: fatal error: caffe/caffe.hpp: No such file or directory
compilation terminated.
Makefile:59: recipe for target ‘opencv_consumer.o’ failed
make: *** [opencv_consumer.o] Error 1


Seems like caffe is not downloaded/built. Do you do the below step?

b) Download Caffe source package from the following website:


       And copy the package to `$HOME` directory on the target board
       with the following command:

           $ mkdir -pv $HOME/Work/caffe
           $ cp caffe-master.zip $HOME/Work/caffe/
           $ cd $HOME/Work/caffe/ && unzip caffe-master.zip


I get the same error while compiling the OpenCV consumer library for 11_camera_object_identification sample.
Caffe is downloaded and built. I have also verified it by running the tests for Caffe.

Are there any other potential root causes?


The error should not be seen if you install Caffe correctly:

Classifier.h:20:27: fatal error: caffe/caffe.hpp: No such file or directory

Are you on r28.1?

so i have the same error code, with only one small difference included from opencv_consumer.cpp:41:0:.
so how do i check to see if caffe is properly downloaded or built?, i followed all the instructions in the tutorial, so i’m not sure where i’ve messed up.
i also tried to redo the first step where i unzip caffe-master.zip, but it prompted me asking if i wished to replace the files, having this pop up i assume this means that caffe was installed?

Hi lawrencl,
We suggest use TensorRT and refer to below samples: