ailia_tracker  1.0.0.0
Classes | Macros | Typedefs | Functions
ailia_tracker.h File Reference
#include "ailia.h"
#include "ailia_detector.h"
Include dependency graph for ailia_tracker.h:

Go to the source code of this file.

Classes

struct  _AILIATrackerObject
 
struct  _AILIATrackerSettings
 

Macros

#define AILIA_API   __stdcall
 
#define AILIA_TRACKER_ALGORITHM_BYTE_TRACK   (0)
 ByteTrack. More...
 
#define AILIA_TRACKER_OBJECT_VERSION   (1)
 
#define AILIA_TRACKER_SETTINGS_VERSION   (1)
 

Typedefs

typedef struct _AILIATrackerObject AILIATrackerObject
 
typedef struct _AILIATrackerSettings AILIATrackerSettings
 

Functions

int AILIA_API ailiaTrackerCreate (struct AILIATracker **tracker, int algorithm, AILIATrackerSettings settings, int version)
 Creates a AILIATracker instance. More...
 
int AILIA_API ailiaTrackerAddTarget (struct AILIATracker *tracker, AILIADetectorObject target_object)
 Set tracking target. More...
 
int AILIA_API ailiaTrackerCompute (struct AILIATracker *tracker)
 Perform tracking. More...
 
int AILIA_API ailiaTrackerGetObjectCount (struct AILIATracker *tracker, unsigned int *obj_count)
 Gets the number of detection results. More...
 
int AILIA_API ailiaTrackerGetObject (struct AILIATracker *tracker, AILIATrackerObject *obj, unsigned int index, unsigned int version)
 Gets the detection results. More...
 
int AILIA_API ailiaTrackerDestroy (struct AILIATracker *tracker)
 It destroys the AILIATracker instance. More...
 
const char *AILIA_API ailiaTrackerGetErrorDetail (struct AILIATracker *tracker)
 Returns the details of errors. More...
 

Macro Definition Documentation

◆ AILIA_API

#define AILIA_API   __stdcall

◆ AILIA_TRACKER_ALGORITHM_BYTE_TRACK

#define AILIA_TRACKER_ALGORITHM_BYTE_TRACK   (0)

ByteTrack.

◆ AILIA_TRACKER_OBJECT_VERSION

#define AILIA_TRACKER_OBJECT_VERSION   (1)

◆ AILIA_TRACKER_SETTINGS_VERSION

#define AILIA_TRACKER_SETTINGS_VERSION   (1)

Typedef Documentation

◆ AILIATrackerObject

◆ AILIATrackerSettings

Function Documentation

◆ ailiaTrackerAddTarget()

int AILIA_API ailiaTrackerAddTarget ( struct AILIATracker *  tracker,
AILIADetectorObject  target_object 
)

Set tracking target.

Parameters
trackerAn AILIATracker instance pointer
target_objectsTracking 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
trackerAn 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()

int AILIA_API ailiaTrackerCreate ( struct AILIATracker **  tracker,
int  algorithm,
AILIATrackerSettings  settings,
int  version 
)

Creates a AILIATracker instance.

Parameters
trackerA pointer to the AILIATracker instance pointer
algorithmAILIA_TRAÇKER_ALGORITHM_*
settingsAILIATrackerSettings
versionAILIA_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
trackerAn 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
trackerThe 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
trackerA AILIATracker instance pointer
objObject information
indexObject index
versionAILIA_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
trackerAn AILIATracker instance pointer
obj_countThe number of objects
Returns
If this function is successful, it returns AILIA_STATUS_SUCCESS , or an error code otherwise.