opencv 调用 TensorFlow 训练好的模型

2019-01-08  本文已影响0人  不做秃顶的程序猿

官方教程

背景

opencv 要使用 TensorFlow object_detection 自定义数据集训练后的模型

方法

opencv 提供了 load TensorFlow model 的方法

retval = cv.dnn.readNetFromTensorflow(bufferModel, bufferConfig)
python export_inference_graph.py \
--input_type image_tensor \
--pipeline_config_path data/ssd_mobilenet_v1.config  \
--trained_checkpoint_prefix training/model.ckpt-***  \
--output_directory output_inference_graph
 python tf_text_graph_ssd.py \
--input /path/to/model.pb \
--config /path/to/example.config \
--output /path/to/graph.pbtx 
上一篇 下一篇

猜你喜欢

热点阅读