Coder Social home page Coder Social logo

python-wrapper-for-yolo's Introduction

Python-wrapper-for-YOLO

Python bindings for YOLO v2 (https://pjreddie.com/darknet/yolo/) detector function with ctypes.

Install perequisites.

  • Command line tools (gcc)
  • PIL
pip install pillow

Download YOLOv2 source code

git clone https://github.com/pjreddie/darknet
cd darknet

Replace makefile with the one from this repository and run make

make
wget http://pjreddie.com/media/files/yolo.weights

Create shared library object and copy it to your darknet directory

cd src
gcc -c -fPIC *.c
gcc -shared -fPIC  -o libdarknet.so  *.o -lc
cp ./libdarknet.so ../
cd ..

Copy python_wrapper.py from this repository to your darknet directory

Put all your test files to darknet/data directory and run the script.

python python_wrapper.py

python-wrapper-for-yolo's People

Contributors

ivonatau avatar rgrosset avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

python-wrapper-for-yolo's Issues

Some questions ...

Hello,

I appreciate your reply for these important questions:

  1. Does your code support GPU (CUDA, CuDNN) for the maximum acceleration?
  2. in the code you mentioned:

mylib = ctypes.cdll.LoadLibrary('libdarknet.so')

Where should I find the libdarknet.so file?

  1. is it possible to test the code with a single image?
  2. How can we feed the code with video from the camera?
  3. Does your code draw bounding boxes over detected objects and handles the coordinates?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.