Metadata-Version: 2.4
Name: ailia_tracker
Version: 1.1.1
Summary: ailia Tracker
Home-page: https://ailia.jp/
Author: ax Inc.
Author-email: contact@axinc.jp
License: https://ailia.ai/en/license/
Requires-Python: >3.6
Description-Content-Type: text/markdown
Dynamic: author
Dynamic: author-email
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: requires-python
Dynamic: summary

# ailia Tracker Python API

!! CAUTION !!
“ailia” IS NOT OPEN SOURCE SOFTWARE (OSS).
As long as user complies with the conditions stated in [License Document](https://ailia.ai/license/), user may use the Software for free of charge, but the Software is basically paid software.

## About ailia Tracker

ailia Tracker is a library for tracking the movement of objects based on object detection results. It provides a C API for native applications and a C# API for Unity. By using ailia Tracker, you can easily implement object tracking in your application.

## Install from pip

You can install the ailia SDK free evaluation package with the following command.

```
pip3 install ailia_tracker
```

## Install from package

You can install the ailia SDK from Package with the following command.

```
python3 bootstrap.py
pip3 install .
```

## Usage

```python
import ailia_tracker

tracker = ailia_tracker.AiliaTracker()

for frame in frames:
    for detection in detections(frame):
        tracker.add_target(detection.category, detection.prob, detection.x, detection.y, detection.w, detection.h)
    tracker.compute()
    for obj in tracker.get_objects():
        print(obj.id, obj.category, obj.prob, obj.x, obj.y, obj.w, obj.h)
```

The coordinates of `add_target` and the tracking results are normalized to the image size (1 for the image width / height).

## API specification

https://github.com/ailia-ai/ailia-sdk
