ailiaDetectorSetAnchors method
- Pointer<
AILIADetector> detector, - Pointer<
Float> anchors, - int anchors_count
~japanese @brief YoloV2などのためにアンカーズ (anchorsまたはbiases) の情報を設定します。 @param detector 検出オブジェクトポインタ @param anchors アンカーズの寸法 (検出ボックスの形状、高さと幅) @param anchors_count アンカーズの数 (anchorsの配列サイズの半分) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。 @details YoloV2などは学習時に決定された複数の検出ボックスを使用して物体検出を行います。このAPIで学習時に決定された検出ボックスの形状を設定することで、正しい推論を行います。 anchorsには{x,y,x,y...}の形式で格納します。 anchors_countが5の場合、anchorsは10次元の配列になります。
~english @brief Sets the anchor information (anchors or biases) for YoloV2 or other systems. @param detector A detector instance pointer @param anchors The anchor dimensions (the shape, height and width of the detection box) @param anchors_count The number of anchors (half of the anchors array size) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise. @details YoloV2 and other systems perform object detection with multiple detection boxes determined during training. By using this API function to set the shape of the detection box determined during training, correct inferences can be made. The {x, y, x, y ...} format is used for anchor storage. If anchors_count has a value of 5, then anchors is a 10-dimensional array.
Implementation
int ailiaDetectorSetAnchors(
ffi.Pointer<AILIADetector> detector,
ffi.Pointer<ffi.Float> anchors,
int anchors_count,
) {
return _ailiaDetectorSetAnchors(
detector,
anchors,
anchors_count,
);
}