omair18 / Tiny-Yolov3-OpenCV-Cpp

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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


Languages

Language:C++ 66.6%Language:Python 31.0%Language:Shell 1.2%Language:CMake 1.1%