https://github.com/kazuhito00/opencv-readnetfromtensorflow-sample
OpenCV 4.X系のreadNetFromTensorflow()の動作サンプル。
https://github.com/kazuhito00/opencv-readnetfromtensorflow-sample
object-detection opencv opencv-readnetfromtensorflow-sample readnetfromtensorflow
Last synced: about 1 month ago
JSON representation
OpenCV 4.X系のreadNetFromTensorflow()の動作サンプル。
- Host: GitHub
- URL: https://github.com/kazuhito00/opencv-readnetfromtensorflow-sample
- Owner: Kazuhito00
- License: mit
- Created: 2020-04-08T15:45:41.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-11T08:56:18.000Z (about 6 years ago)
- Last Synced: 2025-07-10T05:21:53.321Z (12 months ago)
- Topics: object-detection, opencv, opencv-readnetfromtensorflow-sample, readnetfromtensorflow
- Language: Python
- Homepage:
- Size: 10.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# OpenCV-readNetFromTensorflow-sample
OpenCV 4.X系のreadNetFromTensorflow()の動作サンプルです。
# Requirement
* OpenCV 4.0.0(or later)
# Note
以下のリポジトリのモデルをreadNetFromTensorflow()用に変換して使用しています。
https://github.com/Kazuhito00/hand-detection-3class-MobilenetV2-SSDLite
# Reference
OpenCV公式の説明に沿って変換を行っています。
https://github.com/opencv/opencv/wiki/TensorFlow-Object-Detection-API
変換はmodelディレクトリの中で以下のコマンドで実行できます。
```bash
python tf_text_graph_ssd.py --input frozen_inference_graph.pb --config ssd_mobilenet_v2_coco.config --output graph.pbtxt
```
# Usage
サンプルの実行方法は以下です。
```bash
python sample.py
```
# Author
高橋かずひと(https://twitter.com/KzhtTkhs)
# License
OpenCV-readNetFromTensorflow-sample is under [MIT license](https://en.wikipedia.org/wiki/MIT_License).
# OpenCV License
OpenCVはBSDライセンスの元で配布されています。
本リポジトリでは以下を使用しています。
* tf_text_graph_ssd.py
* tf_text_graph_common.py
* ssd_mobilenet_v2_coco.config
https://github.com/opencv/opencv/blob/master/LICENSE