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

Uploaded Source

Built Distribution

person_detector-0.0.4-py3-none-any.whl (21.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: person_detector-0.0.4.tar.gz
  • Upload date:
  • Size: 21.4 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.4.tar.gz
Algorithm Hash digest
SHA256 a8db74600d4c9f63f1d6f145c2a3f6d90d0ad6779826fec2c7f18f5eb9e4c6bb
MD5 0e8a5d7840538c7e4bdff06c4a11c0ea
BLAKE2b-256 185bc0df21cb827bfa4bdbc8726cb189fa1e97233aab63d62316097964b39626

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for person_detector-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 c0e6dd694f606ef4bd8d2118e67aabdb90b26e52b966c3e070a7c430e5b79390
MD5 b958d5a55d9c3fb127cd7fbf4e99b330
BLAKE2b-256 0af8f9145cc89e5510aa6fe9eea13dacab243ab0dbe91a8d3e620421708d48f8

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