Skip to main content

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.5.tar.gz (23.1 kB view details)

Uploaded Source

Built Distribution

person_detector-0.0.5-py3-none-any.whl (22.0 kB view details)

Uploaded Python 3

File details

Details for the file person_detector-0.0.5.tar.gz.

File metadata

  • Download URL: person_detector-0.0.5.tar.gz
  • Upload date:
  • Size: 23.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.12

File hashes

Hashes for person_detector-0.0.5.tar.gz
Algorithm Hash digest
SHA256 849f6ed4dd87833eccf446b97ffb6a2833118daeea35bf919fd473c110e39b7a
MD5 6d640f50dcd64cbe31fdfd4da1e3890c
BLAKE2b-256 74cfd0a4682077fb1241da0060248ebeb76129c404cf8379503ca77a6f5a51cd

See more details on using hashes here.

File details

Details for the file person_detector-0.0.5-py3-none-any.whl.

File metadata

File hashes

Hashes for person_detector-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 f50da980fa6664e405e4f0fc099fb8e15701d0d34269e7cd04586106cf7334c6
MD5 5ce8c1fd74b26e512720260147ec9d1c
BLAKE2b-256 65a0590a0ff1947a914c2a8c91edaf14dde3f259b55762933989d82fb39190df

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page