ailia  1.5.0.0
ailia_classifier.h
Go to the documentation of this file.
1 
15 #if !defined(INCLUDED_AILIA_CLASSIFIER)
16 #define INCLUDED_AILIA_CLASSIFIER
17 
18 /* コアライブラリ */
19 
20 #include "ailia.h"
21 #include "ailia_format.h"
22 
23 /* 呼び出し規約 */
24 
25 #ifdef __cplusplus
26 extern "C" {
27 #endif
28 
29 /****************************************************************
30  * 識別オブジェクトのインスタンス
31  **/
32 
33 struct AILIAClassifier;
34 
35 /****************************************************************
36  * 識別情報
37  **/
38 
39 #define AILIA_CLASSIFIER_CLASS_VERSION (1)
40 
41 typedef struct _AILIAClassifierClass {
49  int category;
57  float prob;
59 
81 int AILIA_API ailiaCreateClassifier(struct AILIAClassifier** classifier, struct AILIANetwork* net, unsigned int format, unsigned int channel, unsigned int range);
82 
92 void AILIA_API ailiaDestroyClassifier(struct AILIAClassifier* classifier);
93 
119 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);
120 
136 int AILIA_API ailiaClassifierGetClassCount(struct AILIAClassifier* classifier, unsigned int* cls_count);
137 
163 int AILIA_API ailiaClassifierGetClass(struct AILIAClassifier* classifier, AILIAClassifierClass* obj, unsigned int cls_idx, unsigned int version);
164 
165 #ifdef __cplusplus
166 }
167 #endif
168 #endif /* !defined(INCLUDED_AILIA_CLASSIFIER) */
inference library
#define AILIA_API
Definition: ailia.h:28
struct _AILIAClassifierClass AILIAClassifierClass
int AILIA_API ailiaClassifierGetClassCount(struct AILIAClassifier *classifier, unsigned int *cls_count)
Gets the number of classification results.
int AILIA_API ailiaClassifierGetClass(struct AILIAClassifier *classifier, AILIAClassifierClass *obj, unsigned int cls_idx, unsigned int version)
Gets the classification results.
int AILIA_API ailiaCreateClassifier(struct AILIAClassifier **classifier, struct AILIANetwork *net, unsigned int format, unsigned int channel, unsigned int range)
Creates a classifier instance.
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.
void AILIA_API ailiaDestroyClassifier(struct AILIAClassifier *classifier)
Destroys the classifier instance.
AILIA format definition and conversion.
Definition: ailia_classifier.h:41
int category
Definition: ailia_classifier.h:49
float prob
Definition: ailia_classifier.h:57