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.6.tar.gz
(88.8 kB
view hashes)
Built Distribution
Close
Hashes for yolov7_package-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f68071b3440a84e1e3aae4ffbe0567f68f89019dc0b0d16fa78ec2add6374c24 |
|
MD5 | 3a5023599c9332776295b93d0612c754 |
|
BLAKE2b-256 | 8afaab12860ac6ff0eddcfb919507b3a5b542154987e50324815b06c45eef7fd |