/Tiny-Yolov3-OpenCV-Cpp

Use OpenCV DNN module to load Tiny Yolov3 weights and cfg files for detection.

Primary LanguageC++

Tiny-YOLOv3

OpenCV >= 3.4.5

Download the Models

Download weights and cfg files from darknet website

How to run the code

Command line usage for object detection using Tiny-YOLOv3

  • C++:

    • Build

      mkdir build
      cd build
      cmake ../
      make
    • A single image:

      ./detector --image=bird.jpg
    • A video file:

       ./detector --video=run.mp4
  • Python

    • A single image:

      python3 object_detection_yolo.py --image=bird.jpg
    • A video file:

      python3 object_detection_yolo.py --video=run.mp4