mv path/to/cpp_mnist path/to/caffe/examples
cd path/to/caffe
make
./build/examples/cpp_mnist/classification.bin
It will show the picture to be recognized. It may be too small to be found. Press any key to continue. Then the terminal will print the result.
For more details, please go to My Blog