Fe-59 / yolov4-opencv-cpp-python

Example of using YOLO v4 with OpenCV, C++ and Python

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

yolov4-opencv-cpp-python

Example of using YOLO v4 with OpenCV, C++ and Python

Prerequisites

Make sure you have already on your system:

  • OpenCV 4.0+
  • Python 3.7+
  • Any modern Linux OS (tested on Ubuntu 20.04)
  • GCC 9.0+

Running the python script

The python code is here.

git clone https://github.com/doleron/yolov4-opencv-cpp-python.git
cd yolov4-opencv-cpp-python
python python/yolo.py 

Running the C++ program

The C++ code is here.

git clone https://github.com/doleron/yolov4-opencv-cpp-python.git
cd yolov4-opencv-cpp-python
g++ -O2 cpp/yolo.cpp -o yolo_example `pkg-config --cflags --libs opencv4`
./yolo_example

running the examples

PS.: Video sample from https://www.youtube.com/watch?v=NyLF8nHIquM

About

Example of using YOLO v4 with OpenCV, C++ and Python

License:MIT License


Languages

Language:C++ 61.7%Language:Python 38.3%