Skip to content

Commit 7f34583

Browse files
committed
Released version 0.2 to PyPI
1 parent 53fdd47 commit 7f34583

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

Readme.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# YOLO3-4-Py
2-
[![PyPI Badge](https://img.shields.io/badge/PyPI-0.1.0-blue.svg)](https://pypi.org/project/yolo34py)
3-
[![PyPI Badge](https://img.shields.io/badge/PyPI-0.1.0--gpu-blue.svg)](https://pypi.org/project/yolo34py-gpu)
2+
[![PyPI Badge](https://img.shields.io/badge/PyPI-0.2.0-blue.svg)](https://pypi.org/project/yolo34py)
3+
[![PyPI Badge](https://img.shields.io/badge/PyPI-0.2.0--gpu-blue.svg)](https://pypi.org/project/yolo34py-gpu)
44
[![Build Status](https://travis-ci.org/madhawav/YOLO3-4-Py.svg?branch=master)](https://travis-ci.org/madhawav/YOLO3-4-Py)
55

66
A Python wrapper on [Darknet](https://github.com/pjreddie/darknet). Compatible with latest [YOLO V3](https://pjreddie.com/darknet/yolo).

src/pypi_readme.md

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
A Python wrapper on [pjreddie's](https://pjreddie.com/) implementation (authors' implementation) of [YOLO V3 Object Detector](https://pjreddie.com/darknet/yolo) on [Darknet](https://github.com/pjreddie/darknet).
2-
Also compatible with other Darknet Object Detection models.
2+
This wrapper is also compatible with other Darknet object detection models.
33

44
![OutputImage](https://raw.githubusercontent.com/madhawav/YOLO3-4-Py/master/doc/output.jpg)
55
Image source: http://absfreepic.com/free-photos/download/crowded-cars-on-street-4032x2272_48736.html
66

77
# Prerequisites
88
* Python 3.6+
99
* Linux x86-64 Operating System
10-
* nVidia CUDA SDK (for GPU version only. Make sure nvcc is available in PATH variable.)
10+
* NVIDIA CUDA SDK (for GPU version only. Make sure nvcc is available in PATH variable.)
1111

1212
# Sample Usage
1313
Note: This sample code requires OpenCV with python bindings installed. (`pip3 install opencv-python==3.4.0`)
1414

1515
1) Create a directory to host sample code and navigate to it.
16-
2) Download and execute [this script](https://github.com/madhawav/YOLO3-4-Py/blob/master/download_models.sh) to download model files.
16+
2) Download and execute [this script](https://github.com/madhawav/YOLO3-4-Py/blob/master/tools/download_models.sh) to download model files.
1717
3) Create sampleApp.py with following code. Specify SAMPLE_INPUT_IMAGE.
1818
```python
1919
from pydarknet import Detector, Image
@@ -26,38 +26,43 @@ Note: This sample code requires OpenCV with python bindings installed. (`pip3 in
2626

2727
results = net.detect(img_darknet)
2828

29-
for cat, score, bounds in results:
29+
for category, score, bounds in results:
3030
x, y, w, h = bounds
3131
cv2.rectangle(img, (int(x - w / 2), int(y - h / 2)), (int(x + w / 2), int(y + h / 2)), (255, 0, 0), thickness=2)
32-
cv2.putText(img,str(cat.decode("utf-8")),(int(x),int(y)),cv2.FONT_HERSHEY_COMPLEX,1,(255,255,0))
32+
cv2.putText(img, category ,(int(x),int(y)),cv2.FONT_HERSHEY_COMPLEX,1,(255,255,0))
3333

3434
cv2.imshow("output", img)
3535
cv2.waitKey(0)
3636
```
3737
4) Execute sampleApp.py `python sampleApp.py`.
3838

3939
# Installation
40-
yolo34py comes in 2 variants, _CPU Only Version_ and _GPU Version_. Installation may take a while since it involves downloading and compiling of darknet.
40+
yolo34py comes in 2 variants, _CPU Only Version_ and _GPU Version_.
41+
Installation may take a while since it involves downloading and compiling darknet.
4142

4243
## __CPU Only Version__
4344
This version is configured on darknet compiled with flag GPU = 0.
4445
```bash
46+
pip3 install requests # Used to download darknet
47+
pip3 install cython
4548
pip3 install numpy
4649
pip3 install yolo34py
4750
```
4851

4952
## GPU Version:
5053
This version is configured on darknet compiled with flag GPU = 1.
5154
```bash
55+
pip3 install requests # Used to download darknet
56+
pip3 install cython
5257
pip3 install numpy
5358
pip3 install yolo34py-gpu
5459
```
5560

5661

5762
# More Information
5863
* For more details on yolo34py (This python wrapper):
59-
- GitHub Repo: https://github.com/madhawav/YOLO3-4-Py
60-
- This is the place to discuss about issues of yolo34py.
64+
- GitHub: https://github.com/madhawav/YOLO3-4-Py
65+
- This is the place to discuss issues of yolo34py.
6166
- Your contributions are greatly appreciated.
6267
* For more details on YOLO V3:
6368
- Website from Authors: https://pjreddie.com/yolo
@@ -68,4 +73,4 @@ pip3 install yolo34py-gpu
6873

6974
# License
7075
* yolo34py (this wrapper) is under [Apache License 2.0](https://github.com/madhawav/YOLO3-4-Py/blob/master/LICENSE).
71-
* The version of darknet wrapped by yolo34py is [public domain](https://github.com/madhawav/darknet/blob/master/LICENSE).
76+
* The version of darknet wrapped by yolo34py is in [public domain](https://github.com/madhawav/darknet/blob/master/LICENSE).

src/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@
9292
long_description=get_readme(),
9393
long_description_content_type="text/markdown",
9494
cmdclass=cmd_class,
95-
version='0.2rc1',
95+
version='0.2',
9696
ext_modules=ext_modules,
9797
platforms=["linux-x86_64"],
9898
setup_requires=[

0 commit comments

Comments
 (0)