Skip to main content

Object tracking and metrics

Project description

Sparrow Tracky

Sparrow Tracky is a Python package that implements basic object tracking and related metrics. The object tracking algorithm is a simplification of SORT and is designed for prototyping in Python -- not for production. The metrics Multi-Object Detection Accuracy (MODA) and Multi-Object Tracking Accuracy (MOTA) are useful for measuring the quality of box predictions.

Quick Start Example

Installation

pip install -U sparrow-tracky

Measuring MODA on frame boxes

import numpy as np
from sparrow_datums import FrameBoxes, PType
from sparrow_tracky import compute_moda

boxes = FrameBoxes(np.ones((4, 4)), PType.absolute_tlwh)
moda = compute_moda(boxes, boxes + 0.1)
moda

# Expected result
# MODA(false_negatives=0, false_positives=0, n_truth=4)

moda.value

# Expected result
# 1.0

Adding MODA objects

moda + moda

# Expected result
# MODA(false_negatives=0, false_positives=0, n_truth=8)

(moda + moda).value

# Expected result
# 1.0

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

sparrow-tracky-0.4.0.dev1659380363.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file sparrow-tracky-0.4.0.dev1659380363.tar.gz.

File metadata

File hashes

Hashes for sparrow-tracky-0.4.0.dev1659380363.tar.gz
Algorithm Hash digest
SHA256 d0fc942d932eaa1476c02abab56300ccfad3aaf8d2f19705a5fbc7ee3b1e5534
MD5 dec6ca345b8f264cfecb18e90d8af71d
BLAKE2b-256 a1b3e5643b71c2e885cfc3682a95cbed7c3cc725f6234a718b11a7d0df07fc8b

See more details on using hashes here.

File details

Details for the file sparrow_tracky-0.4.0.dev1659380363-py3-none-any.whl.

File metadata

File hashes

Hashes for sparrow_tracky-0.4.0.dev1659380363-py3-none-any.whl
Algorithm Hash digest
SHA256 6514eecd721a0ad16421bf9aded90930f86d9012428b7bf624a99a3315cf2163
MD5 40f0b965631eddf8003ad2879cfa3d44
BLAKE2b-256 6c5cd1e2690f509c9429dfd8e64644d13fd2e8f4560ca951e62fdc606b6d4190

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