#include "ailia.h"
#include "ailia_detector.h"
Go to the source code of this file.
◆ AILIA_API
#define AILIA_API __stdcall |
◆ AILIA_TRACKER_ALGORITHM_BYTE_TRACK
#define AILIA_TRACKER_ALGORITHM_BYTE_TRACK (0) |
◆ AILIA_TRACKER_OBJECT_VERSION
#define AILIA_TRACKER_OBJECT_VERSION (1) |
◆ AILIA_TRACKER_SETTINGS_VERSION
#define AILIA_TRACKER_SETTINGS_VERSION (1) |
◆ AILIATrackerObject
◆ AILIATrackerSettings
◆ ailiaTrackerAddTarget()
int AILIA_API ailiaTrackerAddTarget |
( |
struct AILIATracker * |
tracker, |
|
|
AILIADetectorObject |
target_object |
|
) |
| |
Set tracking target.
- Parameters
-
tracker | An AILIATracker instance pointer |
target_objects | Tracking target |
- Returns
- If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
◆ ailiaTrackerCompute()
int AILIA_API ailiaTrackerCompute |
( |
struct AILIATracker * |
tracker | ) |
|
Perform tracking.
- Parameters
-
tracker | An AILIATracker instance pointer |
- Returns
- If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
Get the recognition result with ailiaTrackerGetObject API.
◆ ailiaTrackerCreate()
Creates a AILIATracker instance.
- Parameters
-
tracker | A pointer to the AILIATracker instance pointer |
algorithm | AILIA_TRAÇKER_ALGORITHM_* |
settings | AILIATrackerSettings |
version | AILIA_TRACKER_SETTINGS_VERSION |
- Returns
- If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
Creates a AILIATracker instance.
◆ ailiaTrackerDestroy()
int AILIA_API ailiaTrackerDestroy |
( |
struct AILIATracker * |
tracker | ) |
|
It destroys the AILIATracker instance.
- Parameters
-
tracker | An AILIATracker instance pointer |
- Returns
- If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
◆ ailiaTrackerGetErrorDetail()
const char* AILIA_API ailiaTrackerGetErrorDetail |
( |
struct AILIATracker * |
tracker | ) |
|
Returns the details of errors.
- Parameters
-
tracker | The AILIATracker instance pointer |
- Returns
- Error details
The return value does not have to be released. The string is valid until the next ailiaTracker API function is called.
◆ ailiaTrackerGetObject()
int AILIA_API ailiaTrackerGetObject |
( |
struct AILIATracker * |
tracker, |
|
|
AILIATrackerObject * |
obj, |
|
|
unsigned int |
index, |
|
|
unsigned int |
version |
|
) |
| |
Gets the detection results.
- Parameters
-
tracker | A AILIATracker instance pointer |
obj | Object information |
index | Object index |
version | AILIA_TRACKER_OBJECT_VERSION |
- Returns
- If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.
If ailiaDetectorCompute() is not run at all, the function returns AILIA_STATUS_INVALID_STATE . The detection results are sorted in the order of estimated probability.
◆ ailiaTrackerGetObjectCount()
int AILIA_API ailiaTrackerGetObjectCount |
( |
struct AILIATracker * |
tracker, |
|
|
unsigned int * |
obj_count |
|
) |
| |
Gets the number of detection results.
- Parameters
-
tracker | An AILIATracker instance pointer |
obj_count | The number of objects |
- Returns
- If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.