About object detection(mobileNet-ssd) tensorflow/language:c++
cd mobileNet-ssd
catkin_make
rosrun mobileNet mobileNet_pb
or
./devel/lib/mobileNet/mobileNet_pb
rosrun mobileNet mobileNet_opencv
or
./devel/lib/mobileNet/mobileNet_opencv
python src/mobileNet/python/ssd-mobilenet.py
tensorflow ops::ReadFile/DecodePng
load_image_into_numpy_array(numpy)
cv::imread(imagePath)
Status status = ReadBinaryProto(Env::Default(),MODEL_PATH,&graph_def);
with gfile.FastGFile(PATH_TO_PB) as f:
graph_def = tf.GraphDef()
graph_def.ParseFromString(f.read())
sess.graph.as_default()
tf.import_graph_def(graph_def,name='')
or
with open(PATH_TO_PB) as f:
graph_def = tf.GraphDef()
.......
dnn::Net net = cv:
:readNetFromTensorflow(weights, prototxt);