Metadata-Version: 2.1
Name: simple-tracker
Version: 0.1.2
Summary: Track multiple objects using just x, y coordinates
Home-page: https://github.com/bherbruck/simple_tracker
Author: Brennen Herbruck
Author-email: brennen.hrbruck@gmail.com
License: UNKNOWN
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown

# simple_tracker

[license-image]: https://img.shields.io/npm/l/make-coverage-badge.svg
[license-url]: https://opensource.org/licenses/MIT

[ci-image]: https://github.com/bherbruck/simple_tracker/workflows/Python%20package/badge.svg
[ci-url]: https://github.com/bherbruck/simple_tracker/actions?query=workflow%3A%22Python+package%22

[![License][license-image]][license-url]
[![Python package][ci-image]][ci-url]

Track multiple objects using just x, y coordinates!

simple_tracker is a simple cemtrpod object tracker and requires no external dependencies other than the Python standard library. It is originally designed to count and track objects on [OpenMV](https://openmv.io/) MicroPython boards and will see future use with opencv-python on Raspberry Pi.

## In action

This was made using an OpenMV cam and the example [here](examples/openmv/simple_tracking.py)

![Video](docs/media/tacking3.gif)

## Installation
```bash
$ pip install git+https://github.com/bherbruck/simple_tracker
```
or
```bash
$ pip install simple-tracker
```
## Usage
All you need to do is pass a list of tuples (x, y) to the Tracker.update() method
```python
from simple_tracker import Tracker

tracker = Tracker()
while True:
    centroids = some_detection_algorithm()
    tracker.update(centroids)
```

