14 #if !defined(INCLUDED_AILIA_DETECTOR)
15 #define INCLUDED_AILIA_DETECTOR
37 #define AILIA_DETECTOR_OBJECT_VERSION (1)
90 #define AILIA_DETECTOR_ALGORITHM_YOLOV1 (0)
91 #define AILIA_DETECTOR_ALGORITHM_YOLOV2 (1)
92 #define AILIA_DETECTOR_ALGORITHM_YOLOV3 (2)
93 #define AILIA_DETECTOR_ALGORITHM_YOLOV4 (3)
94 #define AILIA_DETECTOR_ALGORITHM_YOLOX (4)
95 #define AILIA_DETECTOR_ALGORITHM_SSD (8)
97 #define AILIA_DETECTOR_FLAG_NORMAL (0)
130 int AILIA_API ailiaCreateDetector(
struct AILIADetector** detector,
struct AILIANetwork* net,
unsigned int format,
unsigned int channel,
unsigned int range,
unsigned int algorithm,
unsigned int category_count,
unsigned int flags);
172 int AILIA_API ailiaDetectorCompute(
struct AILIADetector* detector,
const void* src,
unsigned int src_stride,
unsigned int src_width,
unsigned int src_height,
unsigned int src_format,
float threshold,
float iou);
#define AILIA_API
Definition: ailia.h:28
int AILIA_API ailiaDetectorSetAnchors(struct AILIADetector *detector, float *anchors, unsigned int anchors_count)
YoloV2などのためにアンカーズ (anchorsまたはbiases) の情報を設定します。
struct _AILIADetectorObject AILIADetectorObject
int AILIA_API ailiaDetectorGetObjectCount(struct AILIADetector *detector, unsigned int *obj_count)
検出結果の数を取得します。
int AILIA_API ailiaDetectorCompute(struct AILIADetector *detector, const void *src, unsigned int src_stride, unsigned int src_width, unsigned int src_height, unsigned int src_format, float threshold, float iou)
物体検出を行います。
int AILIA_API ailiaDetectorSetInputShape(struct AILIADetector *detector, unsigned int input_width, unsigned int input_height)
YoloV3またはYoloXでのモデルへの入力画像サイズを指定します。
void AILIA_API ailiaDestroyDetector(struct AILIADetector *detector)
検出オブジェクトを破棄します。
int AILIA_API ailiaDetectorGetObject(struct AILIADetector *detector, AILIADetectorObject *obj, unsigned int obj_idx, unsigned int version)
検出結果を取得します。
int AILIA_API ailiaCreateDetector(struct AILIADetector **detector, struct AILIANetwork *net, unsigned int format, unsigned int channel, unsigned int range, unsigned int algorithm, unsigned int category_count, unsigned int flags)
検出オブジェクトを作成します。
Definition: ailia_detector.h:39
float h
Definition: ailia_detector.h:87
float w
Definition: ailia_detector.h:79
unsigned int category
Definition: ailia_detector.h:47
float prob
Definition: ailia_detector.h:55
float y
Definition: ailia_detector.h:71
float x
Definition: ailia_detector.h:63