0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

PythonからのYOLO v3 導入

Posted at

前提

https://github.com/arunponnusamy/object-detection-opencv
に従う。

git clone https://github.com/arunponnusamy/object-detection-opencv.git

本家のナイーブな方法、keras-yolov3も試したが、失敗。

要件

  • Python 3 (2は未検証)
  • opencv
  • numpy

pip install opencv-pythonしておく

学習済みのweightsのダウンロード

$ wget https://pjreddie.com/media/files/yolov3.weights
さっき落としてきたobject-detecction-opencvに入れる

テストコードの実行

python yolo_opencv.py --image dog.jpg --config yolov3.cfg --weights yolov3.weights --classes yolov3.txt

実行画面

image.png
こんな感じで物体認識されている。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?