A PyTorch implementation of a YOLO v3 Object Detector
YOLOv3のPyTorch実装版です。
ayooshkathuria/pytorch-yolo-v3の実装を活用させていただいています。
導入方法
pip install pyolov3
使い方
- Webカメラを使ったサンプルコード
import cv2
from pyolov3 import get_detector
yolo = get_detector("coco", 0.5) # 使用したい学習済みモデルとConfidenceの閾値を設定
cap = cv2.VideoCapture(0)
while True:
ret, frame = cap.read()
detimg, result = yolo.detect(frame)
print(result)
cv2.imshow("test", detimg)
key = cv2.waitKey(1)
if key == ord("q"):
break
cap.release()
cv2.destroyAllWindows()
使用できる学習済みモデル
現状は以下のモデルを指定できます。
- MS COCO
- 80クラス検出モデル
Detector("coco", confidence)と指定
- Open Images Dataset
- 600クラス検出モデル
Detector("openimages", confidence)と指定
- WIDER FACE
- 顔検出モデル
Detector("widerface", confidence)と指定
Metadata
Release files for pyolov3 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyolov3-0.1.2.tar.gz | 18.0 kB | Without provenance | Details for pyolov3-0.1.2.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyolov3-0.1.2-py3-none-any.whl | Python 3 | none | any | Details for pyolov3-0.1.2-py3-none-any.whl |
Total release size: 37.9 kB
Release files / pyolov3-0.1.2.tar.gz
| Download URL | pyolov3-0.1.2.tar.gz |
|---|---|
| Size | 18.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f29caaba058e6116d6a05a996e24369db3b77e85a5033ab67f1ccc347bd89cef
|
|
BLAKE2b-256 checksum How to use checksums |
8da809fcd7b25ad12bd69c2ae45abf8f8e72846e59f7ea9bfa75819929d0473c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.8 CPython/3.7.6 Linux/5.3.0-53-generic
|
Release files / pyolov3-0.1.2-py3-none-any.whl
| Download URL | pyolov3-0.1.2-py3-none-any.whl |
|---|---|
| Size | 19.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
fc184bc99bab78c6c8a24b15a27b42cfb419a011e7b96079c27430d697604b05
|
|
BLAKE2b-256 checksum How to use checksums |
465befddaed401cc8305d13126812e2e8f0226a83a59b5f77a985a977827bbbb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.0.8 CPython/3.7.6 Linux/5.3.0-53-generic
|
Security for pyolov3 0.1.2
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.