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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for sparrow-tracky-0.4.0.dev1659384236.tar.gz
Algorithm Hash digest
SHA256 625ee9728ccd7591ae6fcfab8b6ebd58ea806ad54812447699751e327fb89801
MD5 3fe9a2daf280f2d839334ae01a65ca3a
BLAKE2b-256 ae34fb30dbea035afe60b836aace018bc0b3c315144c2eb10835e3b2e0291487

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sparrow_tracky-0.4.0.dev1659384236-py3-none-any.whl
Algorithm Hash digest
SHA256 1da2844d33a8d0503d8dae08c1ef58c9ff23a2e48c731a1e46ce32b1c3020ca5
MD5 0107a173984dbcd39fd56eda210aa9bd
BLAKE2b-256 a5813b5119848b2ddca527733f84ebea1b9c0e92880aca1b0e8c9aca6f057a90

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