Python bindings for YOLO v2 (https://pjreddie.com/darknet/yolo/) detector function with ctypes.
- Command line tools (gcc)
- PIL
pip install pillow
git clone https://github.com/pjreddie/darknet
cd darknet
make
wget http://pjreddie.com/media/files/yolo.weights
cd src
gcc -c -fPIC *.c
gcc -shared -fPIC -o libdarknet.so *.o -lc
cp ./libdarknet.so ../
cd ..
Put all your test files to darknet/data directory and run the script.
python python_wrapper.py