Metadata-Version: 2.1
Name: yolov5-evaluator
Version: 0.0.21
Summary: Wrapper package for yolov5 
Home-page: UNKNOWN
Author: LIHONGYIN
Author-email: hongyin163@163.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
Requires-Dist: Cython
Requires-Dist: matplotlib (>=3.2.2)
Requires-Dist: numpy (>=1.18.5)
Requires-Dist: opencv-python (>=4.1.2)
Requires-Dist: pillow
Requires-Dist: PyYAML (>=5.3)
Requires-Dist: scipy (>=1.4.1)
Requires-Dist: tensorboard (>=2.2)
Requires-Dist: torch (==1.6.0)
Requires-Dist: torchvision (==0.7.0)
Requires-Dist: tqdm (>=4.41.0)

# `yolov5-evaluator`

>  Wrapper for the detection program for ease of use yolov5.

## Install

```
pip install yolov5-evaluator
```

## Use
```
from yolov5 import eval

result=eval.detectByPath('./inference/images/01.jpg','./weights/v5-2/last.pt',640)
print(result)


image=cv2.imread('./inference/images/01.jpg')
result=eval.detectByImg(image,'./weights/v5-2/last.pt',640)
print(result)
```

## params
```

eval.detectByPath(source,weight,imgsz)

eval.detectByImage(image,weight,imgsz)

```


