Alternatives To Pyyolo
Project NameStarsDownloadsRepos Using ThisPackages Using ThisMost Recent CommitTotal ReleasesLatest ReleaseOpen IssuesLicenseLanguage
Yolo3 4 Py521
1a year ago7March 18, 20214apache-2.0Python
A Python wrapper on Darknet. Compatible with YOLO V3.
5 years ago38C
Simple python wrapper for YOLO.
Python Wrapper For Yolo32
6 years ago1Python
Python bindings for YOLO v2 ( with ctypes.
3 years ago7July 19, 20201mitPython
Easy to use Python wrapper for YOLO Real-Time Object Detection Library
4 years agoapache-2.0Python
Python Wrapper for Yolo
4 years agoPython
A dead simple python wrapper for darknet that works with OpenCV 4.1, CUDA 10.1
Alternatives To Pyyolo
Select To Compare

Alternative Project Comparisons


A Python Wrapper for Yolo


This application is tested on Ubuntu 64bit environment. Tested in python2 environment. I have added typing support also. Therefore you will get function suggestions when you using this library with an IDE.

You will need git and make in order to build this application.

sudo apt-get update
sudo apt-get install build-essential
sudo apt-get install git-core

Then you will need numpy and opencv-python packages as 3rd party python packages. You can build OpenCV from sources for python and C++ and enable OpenCV while building darknet (Recommended way).

Or you can install OpenCV directly from pip. Then you won't be able to build darknet with OpenCV

pip install opencv-python

Building and Installing

First you need to download and build darknet.

git clone
cd pyyolo
python build_ext

This will download darknet from its original repository and build the shared library.

You can pass the following additional options while you building the darknet sources.

# To provide custom darknet location
# If you did not provide this, darknet will be downloaded to current location
DARKNET_HOME=/home/user/darknet python build_ext

# To force rebuilding sources
REBUILD=1 python build_ext

# To enable OpenCV
OPENCV=1 python build_ext

# To enable GPU
GPU=1 python build_ext

# To enable OpenMP
OPENMP=1 python build_ext

# To enable cuDNN
CUDNN=1 python build_ext

# You can combine more than one option for building.
CUDNN=1 GPU=1 python build_ext

Then you can install the pyyolo to the system by:

pip install -U .


The detect function in darknet can be used to run YOLO models. Similar function is defined in pyyolo module also.

I have given an example code on how to use this with YOLO. First you need to download YOLO weights, cfg files and meta files. YOLO weights can be downloaded from their website. Other files comes with darknet.

You will need to install OpenCV to run this example.

You can download the example code and change the names_filepath, cfg_filepath and weights_filepath. Then get your image which you will need to detect objects and give its path to image_filepath.

You can run the code by python to visualize the output.

Same way, is there to test this on videos.

Popular Python Wrapper Projects
Popular Darknet Projects
Popular Application Programming Interfaces Categories
Related Searches

Get A Weekly Email With Trending Projects For These Categories
No Spam. Unsubscribe easily at any time.
Python Wrapper