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)
Sets the anchor information (anchors or biases) for YoloV2 or other systems.
struct _AILIADetectorObject AILIADetectorObject
int AILIA_API ailiaDetectorGetObjectCount(struct AILIADetector *detector, unsigned int *obj_count)
Gets the number of detection results.
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)
Performs object detection.
int AILIA_API ailiaDetectorSetInputShape(struct AILIADetector *detector, unsigned int input_width, unsigned int input_height)
Sets the size of the input image for YoloV3 or YoloX model.
void AILIA_API ailiaDestroyDetector(struct AILIADetector *detector)
Destroys the detector instance.
int AILIA_API ailiaDetectorGetObject(struct AILIADetector *detector, AILIADetectorObject *obj, unsigned int obj_idx, unsigned int version)
Gets the detection results.
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)
Creates a detector instance.
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