目标检测的输入是一张图像,输出包括图像的类别、该图像所含的所有目标物体以及它们对应的位置。
学习Google公司开源的TensorFlow Object Detection API的使用,在TensorFlow中进行目标检测。
TensorFlow Object Detection API中实现了许多深度学习目标检测的框架,包括Faster R-CNN。
一、安装TensorFlow Object Detection API
1、下载TensorFlow Object Detection API:在地址https://github.com/tensorflow/models下,在ubuntu16.04中通过git下载,下载的过程可能较慢。下载完成后得到一个名为models的文件夹。
git clone https://github.com/tensorflow/models.git
2、安装protoc并编译proto文件:登录网址https://github.com/google/protobuf/releases下载已经编译好的文件包,ubuntu 64位系统下载protoc-3.11.0-linux-x86_64.zip,解压后讲bin/protoc文件复制到系统的可执行目录
sudo cp bin/protoc /usr/bin/protoc
确认protoc版本在2.6.0以上,否则会出错。
由于在object_detection/protos/中有一些是proto文件