Github网址
https://github.com/qqwweee/keras-yolo3
安装 (Installation)
1. 克隆存储库
git clone https://github.com/qqwweee/keras-yolo3.git
测试 (Testing)
1. Download YOLOv3 weights from YOLO website(http://pjreddie.com/darknet/yolo/).
放置目录:keras-yolo3/
wget https://pjreddie.com/media/files/yolov3.weights
2. Convert the Darknet YOLO model to a Keras model.
python convert.py yolov3.cfg yolov3.weights model_data/yolo.h5
3. Run YOLO detection.
python yolo_video.py [OPTIONS...] ‐‐image, for image detection mode, OR
python yolo_video.py [video_path] [output_path (optional)]
举例:
python yolo_video.py ‐‐image
python yolo_video.py ‐‐input test_data/library1.mp4 ‐‐output test_data/library_detected.mp4
期间可能遇到的错误:
raise IOError("Couldn't open webcam or video")
OSError: Couldn't open webcam or video