Bindings for yolov7 in one class
Project description
WongKinYiu/yolov7 as independent package
Bindings for yolov7 project (https://github.com/WongKinYiu/yolov7)
Example of usage:
from detect import Yolov7Detector
import cv2
if __name__ == '__main__':
img = cv2.imread('img.jpg')
#img = cv2.resize(img, [640, 640])
det = Yolov7Detector()
classes, boxes, scores = det.detect(img)
print(classes, boxes, scores)
img = det.draw_on_image(img, boxes[0], scores[0], classes[0])
print(img.shape)
cv2.imshow("image", img)
cv2.waitKey()
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
yolov7_package-0.0.9.tar.gz
(89.4 kB
view hashes)
Built Distribution
Close
Hashes for yolov7_package-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9221f1f5c78c2c1d859bc1a62eeff48a766727cda0249e88c74957a64a204c1b |
|
MD5 | fc206c5a9ab33a7c72e1a4fafff7b1c2 |
|
BLAKE2b-256 | 2283541c859dd22f2974affe2b74fc32b5a52b381ba39f74a01d2e2352368f48 |