Skip to main content

Simple IoU-based face tracker with persistent IDs

Project description

unicorner-face-tracker

A lightweight Python library for tracking face bounding boxes across frames using IoU, assigning persistent track IDs.

Features

  • Pure-Python, zero-dependency apart from NumPy.
  • Simple IoU-based greedy matching.
  • Configurable disappearance frames and IoU threshold.
  • PyPI-ready, MIT-licensed, suitable for commercial use.

Installation

pip install unicorner-face-tracker

Usage

from unicorner_face_tracker.face_tracker import FaceTracker, TrackedFace

Create a tracker

tracker = FaceTracker(max_disappeared=5, iou_threshold=0.3)

Each frame, supply detections as list of (x, y, w, h) tuples:

detections = [(10,20,50,50), (200,100,60,60)] tracks = tracker.update(detections)

for t in tracks: print(t.track_id, t.bbox, t.disappeared)

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

unicorner_face_tracker-0.1.0.tar.gz (3.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

unicorner_face_tracker-0.1.0-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file unicorner_face_tracker-0.1.0.tar.gz.

File metadata

  • Download URL: unicorner_face_tracker-0.1.0.tar.gz
  • Upload date:
  • Size: 3.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for unicorner_face_tracker-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3e59ec840b8e8a2d92c9933a4b3bb0da5091da03708fb2fd06a79a9e35eb04ce
MD5 a9f42b8f436982d46379cda8e494aa29
BLAKE2b-256 11b96d9c7dba8782ea7dc236a614f474f5f37a75a77799b20a28f1586fbae241

See more details on using hashes here.

File details

Details for the file unicorner_face_tracker-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for unicorner_face_tracker-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1141a2be582d415f1e477499b7180856ad8b91676d6eefd3337a979d7aec0439
MD5 ec4e1f7d5c2d37e5de2f9d6f4c02c4d0
BLAKE2b-256 18077dda24c912404d956d520413bf0d0a883e3c3258e04e8317c7c8c0ab468b

See more details on using hashes here.

Supported by

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