Detector library
Project description
aef-nattanon-py-lib
Install
$ pip install aef-nattanon-py
Simple Demo
# Import aef_nattanon_py from your library
import aef_nattanon_py as aef
import cv2
# Multiplication
multiplication = aef.Multiplication(2)
print(multiplication.multiply(5)) # 10
# direct_by_img_path
myDetector = aef.Detector('coco.names', 'yolov3-tiny.cfg', 'yolov3-tiny.weights')
myDetector.detact_by_img_path('my-photo.jpeg')
cv2.imshow("Image", myDetector.detect_img)
cv2.waitKey(100)
# direct_by_frame
cap = cv2.VideoCapture(0)
while True:
_, frame = cap.read()
myDetector.detact_by_frame(frame)
cv2.imshow("Image", myDetector.detect_img)
cv2.waitKey(1)
cv2.destroyAllWindows()
# YoloV3Director
myDetector = aef.YoloV3Detector()
cap = cv2.VideoCapture(0)
while True:
_, frame = cap.read()
myDetector.detect_by_frame(frame)
cv2.imshow("Image", myDetector.detect_img)
cv2.waitKey(1)
cv2.destroyAllWindows()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
aef-nattanon-py-0.2.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for aef_nattanon_py-0.2.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3ab7c8cba97e3d8f19fd8356e4bf83a648a13cb6700c7c7a45f780ae8c793d2b |
|
MD5 | eb13f8e1e60772f3eaf31693605a1092 |
|
BLAKE2b-256 | dbb0db2ce03d01527e2d9a66be444a9e86183fdf52d5967887a919a62230f36b |