ailia
1.4.0.0
|
object classification library More...
Go to the source code of this file.
Classes | |
struct | _AILIAClassifierClass |
Macros | |
#define | AILIA_CLASSIFIER_CLASS_VERSION (1) |
Typedefs | |
typedef struct _AILIAClassifierClass | AILIAClassifierClass |
Functions | |
int AILIA_API | ailiaCreateClassifier (struct AILIAClassifier **classifier, struct AILIANetwork *net, unsigned int format, unsigned int channel, unsigned int range) |
Creates a classifier instance. More... | |
void AILIA_API | ailiaDestroyClassifier (struct AILIAClassifier *classifier) |
Destroys the classifier instance. More... | |
int AILIA_API | ailiaClassifierCompute (struct AILIAClassifier *classifier, const void *src, unsigned int src_stride, unsigned int src_width, unsigned int src_height, unsigned int src_format, unsigned int max_class_count) |
Performs object classification. More... | |
int AILIA_API | ailiaClassifierGetClassCount (struct AILIAClassifier *classifier, unsigned int *cls_count) |
Gets the number of classification results. More... | |
int AILIA_API | ailiaClassifierGetClass (struct AILIAClassifier *classifier, AILIAClassifierClass *obj, unsigned int cls_idx, unsigned int version) |
Gets the classification results. More... | |
object classification library
#define AILIA_CLASSIFIER_CLASS_VERSION (1) |
typedef struct _AILIAClassifierClass AILIAClassifierClass |
int AILIA_API ailiaClassifierCompute | ( | struct AILIAClassifier * | classifier, |
const void * | src, | ||
unsigned int | src_stride, | ||
unsigned int | src_width, | ||
unsigned int | src_height, | ||
unsigned int | src_format, | ||
unsigned int | max_class_count | ||
) |
Performs object classification.
classifier | A classifier instance pointer |
src | Image data (32 bpp) |
src_stride | The number of bytes in 1 line |
src_width | Image width |
src_height | Image height |
src_format | Image format (AILIA_IMAGE_FORMAT_*) |
max_class_count | The maximum number of classification results |
int AILIA_API ailiaClassifierGetClass | ( | struct AILIAClassifier * | classifier, |
AILIAClassifierClass * | obj, | ||
unsigned int | cls_idx, | ||
unsigned int | version | ||
) |
Gets the classification results.
classifier | A classifier instance pointer |
cls | Class information |
cls_idx | Class index |
version | AILIA_CLASSIFIER_CLASS_VERSION |
If ailiaClassifierCompute() is not run at all, the function returns AILIA_STATUS_INVALID_STATE . The classification results are sorted in the order of estimated probability.
int AILIA_API ailiaClassifierGetClassCount | ( | struct AILIAClassifier * | classifier, |
unsigned int * | cls_count | ||
) |
Gets the number of classification results.
classifier | A classifier instance pointer |
cls_count | The number of classes |
int AILIA_API ailiaCreateClassifier | ( | struct AILIAClassifier ** | classifier, |
struct AILIANetwork * | net, | ||
unsigned int | format, | ||
unsigned int | channel, | ||
unsigned int | range | ||
) |
Creates a classifier instance.
classifier | A pointer to a classifier instance pointer |
net | A network instance pointer |
format | The network image format (AILIA_NETWORK_IMAGE_FORMAT_*) |
channel | The network image channel (AILIA_NETWORK_IMAGE_CHANNEL_*) |
range | The network image range (AILIA_NETWORK_IMAGE_RANGE_*) |
void AILIA_API ailiaDestroyClassifier | ( | struct AILIAClassifier * | classifier | ) |
Destroys the classifier instance.
classifier | A classifier instance pointer |