图片识别需要用到opencv,
1、安装环境
Ubuntu下:
apt-get install build-essential
apt-get install cmake git libgtk2.0-dev pkg-config libavcodec-dev libavformat-dev libswscale-dev
apt-get install python-dev python-numpy libtbb2 libtbb-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev libdc1394-dev
centos 可以使用yum 进行安装
2、下载
使用GitHub Desktop工具下载源代码,
地址:https://github.com/opencv/opencv.git
3、配置安装
cd opencv-master
cmake -D CMAKE_BUILD_TYPE=Release -D CMAKE_INSTALL_PREFIX=/usr/local ..
make -j7
make install