A high level API for detecting and tracking people.
Project description
Person Detector
Highly performant, and accurate, real-time person tracking with YOLOv10 and ByteTrack
Command-Line Interface
Clone repo and navigate to project directory
git clone git@github.com:k3y5tr0k3/person-detector.git && cd person-detector
Install requirements
pip install -r requirements.txt
Example usage
Detections from Image
python -m src.main --image 'path/to/image.jpg' --detection --show
Detections from Video
python -m src.main --video 'path/to/video.mp4' --detection --show
Trajectory Tracking from Video
python -m src.main -video 'path/to/video.mp4' --tracking --show
For more info, use the help flag
python -m src.main --help
Utility Functions
Convert video to images
python -m src.main --video2images 'path/to/video.mp4
Generate Developer Documentation (Optional)
pdoc ./src
Using as package in your project
Install with PIP
pip install py-person-detector
Example Usage
Detecting people in an image
import pathlib
from person_detector.detector import Detector
detector = Detector(show=True)
image_path = pathlib.Path("path/to/image.jpg")
detector.detect_image(image_path)
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
person_detector-0.0.3.tar.gz
(20.5 kB
view details)
Built Distribution
File details
Details for the file person_detector-0.0.3.tar.gz
.
File metadata
- Download URL: person_detector-0.0.3.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ba8493ae715e1cc0981063afd896a916f012d60f4bdf5eb2e8109629d5823f8a |
|
MD5 | 383d0e73744a9764d22ca3c036a82201 |
|
BLAKE2b-256 | 65f12f60d757efbeb046a223b589979fe5c387112535a7ae913e34230d14f86c |
File details
Details for the file person_detector-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: person_detector-0.0.3-py3-none-any.whl
- Upload date:
- Size: 21.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.12
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5d45eb6c5d3bff4dd12704836b96b593afb222312cf3fca057b74c06c9aa4846 |
|
MD5 | 8a78bcc23631bc406d6ec70b9a344cbf |
|
BLAKE2b-256 | b266b6df924eb684a66033b850ab3d3d9426ee375a656b854f4850d7750da9c5 |