Wrapper package for yolov5 inference:v3.0
Project description
Yolo v5 Inference Engine
Basically a wrapper for the detection program for ease of use.
How to install:
pip install yolov5processor
How to use:
from yolov5processor.infer import ExecuteInference
model = ExecuteInference(weight="path-to-weight.pt", confidence=0.4, \
img_size=640, agnostic_nms=False, gpu=False, iou=0.5)
image = cv2.imread("imagepath.jpg")
pred = model.predict(image)
Analyse the Output:
print(pred)
{
"points": [100, 120, 400, 500],
"conf": 0.7,
"class": "apple"
}
points key represents the bounding box coordinates in the order x1, y1, x2, y2 respectively. conf key represents the confidence. class key represents the object class.
Update:
- Added compatibility with torch 1.9 and torchvision 0.10
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
yolov5processor-1.2.tar.gz
(85.5 kB
view details)
Built Distribution
File details
Details for the file yolov5processor-1.2.tar.gz
.
File metadata
- Download URL: yolov5processor-1.2.tar.gz
- Upload date:
- Size: 85.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | c52aeeeaaf14b98c3c82fffa0e9d8f9061f2736d9e6596914286ce2a2e374a55 |
|
MD5 | 5cce7b295e93a27d1dc5f5752a094abd |
|
BLAKE2b-256 | 90a5955e3bc473c87f5732835c751e4acb4ae07ecfd866ce95f7ec019b23a971 |
File details
Details for the file yolov5processor-1.2-py3-none-any.whl
.
File metadata
- Download URL: yolov5processor-1.2-py3-none-any.whl
- Upload date:
- Size: 96.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.1 importlib_metadata/4.6.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.1 CPython/3.7.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ccd55db1c4e21961c6c0d4c47c88ddcf68f4304decd7aba291d8d050c8dcb48e |
|
MD5 | 39eec8b20508c332d41c2948b36ec0ad |
|
BLAKE2b-256 | cfb002acf732f450b58be62788102ebc5c6e4215aaaabbee26fb713d111ada05 |