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) // YOLOV1 91 #define AILIA_DETECTOR_ALGORITHM_YOLOV2 (1) // YOLOV2 92 #define AILIA_DETECTOR_ALGORITHM_YOLOV3 (2) // YOLOV3 93 #define AILIA_DETECTOR_ALGORITHM_YOLOV4 (3) // YOLOV4 94 #define AILIA_DETECTOR_ALGORITHM_YOLOX (4) // YOLOX 95 #define AILIA_DETECTOR_ALGORITHM_SSD (8) // SSD(Single Shot multibox Detector) 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);
struct _AILIADetectorObject AILIADetectorObject
unsigned int category
Definition: ailia_detector.h:47
float x
Definition: ailia_detector.h:63
float y
Definition: ailia_detector.h:71
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.
float w
Definition: ailia_detector.h:79
void AILIA_API ailiaDestroyDetector(struct AILIADetector *detector)
Destroys the detector instance.
float h
Definition: ailia_detector.h:87
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.
int AILIA_API ailiaDetectorGetObjectCount(struct AILIADetector *detector, unsigned int *obj_count)
Gets the number of detection results.
float prob
Definition: ailia_detector.h:55
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.
#define AILIA_API
Definition: ailia.h:27
int AILIA_API ailiaDetectorGetObject(struct AILIADetector *detector, AILIADetectorObject *obj, unsigned int obj_idx, unsigned int version)
Gets the detection results.
Definition: ailia_detector.h:39
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.