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

Uploaded Source

Built Distribution

File details

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

File metadata

File hashes

Hashes for sparrow-tracky-0.4.0.dev1659454736.tar.gz
Algorithm Hash digest
SHA256 19cf72c6ac598b588b9cf22c75089283c785a7b17c0a17ca2f05d6b377429b93
MD5 c60828f4309e3761668f10c2810d7103
BLAKE2b-256 0f60954a7c1db0df5b91e562212950194174a9a2b77f9758a6ffbdc5d4f6bdab

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for sparrow_tracky-0.4.0.dev1659454736-py3-none-any.whl
Algorithm Hash digest
SHA256 d9b147cd5ee8fcfcc55b5be3c45d14efb57a83ea45aee20f34cec7efa5a3d88b
MD5 aec48e0f41a2790f20f149bae12beb40
BLAKE2b-256 8efae43d7129b259665241af3ae1a7a4b535c5538eb0231f15eaa4cf1a167ec5

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