运行环境Ubuntu 16.04
安装anaconda
从官方网站下载anaconda安装包
sudo bash Anaconda2-4.4.0.-Linux-x86_64.sh
下载demo
https://github.com/datitran/Object-Detector-App
git clone https://github.com/datitran/Object-Detector-App.git
修改environment.yml文件最后部分的路径信息为自己的目录。
通过conda安装环境
conda env create -f environment.yml
运行测试程序
source activate object-detection
python object_detection_app.py
效果如下
参考资料
https://medium.com/towards-data-science/building-a-real-time-object-recognition-app-with-tensorflow-and-opencv-b7a2b4ebdc32