All Projects → doleron → yolov4-opencv-cpp-python

doleron / yolov4-opencv-cpp-python

Licence: MIT license
Example of using YOLO v4 with OpenCV, C++ and Python

Programming Languages

C++
36643 projects - #6 most used programming language
python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to yolov4-opencv-cpp-python

tensorflow-yolov4
YOLOv4 Implemented in Tensorflow 2.
Stars: ✭ 136 (+257.89%)
Mutual labels:  yolov4
yolov34-cpp-opencv-dnn
基于opencv的4种YOLO目标检测,C++和Python两个版本的实现,仅仅只依赖opencv库就可以运行
Stars: ✭ 152 (+300%)
Mutual labels:  yolov4
yolov4-triton-tensorrt
This repository deploys YOLOv4 as an optimized TensorRT engine to Triton Inference Server
Stars: ✭ 224 (+489.47%)
Mutual labels:  yolov4
object-detection-indonesian-traffic-signs-using-yolo-algorithm
Pendeteksian rambu lalu lintas khas Indonesia menggunakan dataset custom dan menggunakan algoritma Deep Learning You Only Look Once v4
Stars: ✭ 26 (-31.58%)
Mutual labels:  yolov4
yolov4 trt ros
YOLOv4 object detector using TensorRT engine
Stars: ✭ 89 (+134.21%)
Mutual labels:  yolov4
Streamlit-Applications
Deep Learning and Computer Vision Applications using Streamlit
Stars: ✭ 55 (+44.74%)
Mutual labels:  yolov4
YOLO-Streaming
Push-pull streaming and Web display of YOLO series
Stars: ✭ 56 (+47.37%)
Mutual labels:  yolov4
Comet.Box
Collection of Object Detection and Segmentation Pipelines🛸🚀
Stars: ✭ 24 (-36.84%)
Mutual labels:  yolov4
Perception-of-Autonomous-mobile-robot
Perception of Autonomous mobile robot,Using ROS,rs-lidar-16,By SLAM,Object Detection with Yolov5 Based DNN
Stars: ✭ 40 (+5.26%)
Mutual labels:  yolov4
simpleAICV-pytorch-ImageNet-COCO-training
SimpleAICV:pytorch training example on ImageNet(ILSVRC2012)/COCO2017/VOC2007+2012 datasets.Include ResNet/DarkNet/RetinaNet/FCOS/CenterNet/TTFNet/YOLOv3/YOLOv4/YOLOv5/YOLOX.
Stars: ✭ 276 (+626.32%)
Mutual labels:  yolov4
Udacity
This repo includes all the projects I have finished in the Udacity Nanodegree programs
Stars: ✭ 57 (+50%)
Mutual labels:  yolov4
ncnn-yolov4-int8
NCNN+Int8+YOLOv4 quantitative modeling and real-time inference
Stars: ✭ 20 (-47.37%)
Mutual labels:  yolov4
ScaledYOLOv4
Scaled-YOLOv4: Scaling Cross Stage Partial Network
Stars: ✭ 1,944 (+5015.79%)
Mutual labels:  yolov4
VG AlexeyAB darknet
A forked AlexeyAB Darknet repo with extra convenient functions.
Stars: ✭ 82 (+115.79%)
Mutual labels:  yolov4
go-darknet
Go bindings for Darknet (YOLO v4 / v3)
Stars: ✭ 56 (+47.37%)
Mutual labels:  yolov4
LibtorchTutorials
This is a code repository for pytorch c++ (or libtorch) tutorial.
Stars: ✭ 463 (+1118.42%)
Mutual labels:  yolov4
YOLOv4-PyTorch
PyTorch re-implementation of YOLOv4 architecture
Stars: ✭ 44 (+15.79%)
Mutual labels:  yolov4
odam
ODAM - Object detection and Monitoring
Stars: ✭ 16 (-57.89%)
Mutual labels:  yolov4
Deep-Learning-with-GoogleColab
Deep Learning Applications (Darknet - YOLOv3, YOLOv4 | DeOldify - Image Colorization, Video Colorization | Face-Recognition) with Google Colaboratory - on the free Tesla K80/Tesla T4/Tesla P100 GPU - using Keras, Tensorflow and PyTorch.
Stars: ✭ 63 (+65.79%)
Mutual labels:  yolov4
YOLOv4MLNet
Use the YOLO v4 and v5 (ONNX) models for object detection in C# using ML.Net
Stars: ✭ 61 (+60.53%)
Mutual labels:  yolov4

yolov4-opencv-cpp-python

Example of performing inference with Darknet YOLO V4, OpenCV 4.4.0 DNN, C++ and Python

Looking for YOLO V5 OpenCV C++/Python inference? Check this repository

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 

If your machine/OpenCV install are CUDA capable you can try out running using the GPU:

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

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++ -O3 cpp/yolo.cpp -o yolo_example `pkg-config --cflags --libs opencv4`
./yolo_example

Or using CUDA if available:

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

running the examples

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

Which YOLO version should I use?

This repository uses YOLO V4 but it is not the only YOLO version out there. You can read this article to learn more about YOLO versions and choose the more suitable one for you.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].