ailiaDetectorCompute method

int ailiaDetectorCompute(
  1. Pointer<AILIADetector> detector,
  2. Pointer<Void> src,
  3. int src_stride,
  4. int src_width,
  5. int src_height,
  6. int src_format,
  7. double threshold,
  8. double iou
)

~japanese @brief 物体検出を行います。 @param detector 検出オブジェクトポインタ @param src 画像データ(32bpp) @param src_stride 1ラインのバイト数 @param src_width 画像幅 @param src_height 画像高さ @param src_format 画像フォーマット (AILIA_IMAGE_FORMAT_*) @param threshold 検出しきい値(0.1f等)(小さいほど検出されやすくなり、検出数増加) @param iou 重複除外しきい値(0.45f等)(小さいほど重複を許容せず検出数減少) @return 成功した場合は \ref AILIA_STATUS_SUCCESS 、そうでなければエラーコードを返す。

~english @brief Performs object detection. @param detector A detector instance pointer @param src Image data (32 bpp) @param src_stride The number of bytes in 1 line @param src_width Image width @param src_height Image height @param src_format Image format (AILIA_IMAGE_FORMAT_*) @param threshold The detection threshold (for example, 0.1f) (The smaller it is, the easier the detection will be and the more detected objects found.) @param iou Iou threshold (for example, 0.45f) (The smaller it is, the fewer detected objects found, as duplication is not allowed.) @return If this function is successful, it returns \ref AILIA_STATUS_SUCCESS , or an error code otherwise.

Implementation

int ailiaDetectorCompute(
  ffi.Pointer<AILIADetector> detector,
  ffi.Pointer<ffi.Void> src,
  int src_stride,
  int src_width,
  int src_height,
  int src_format,
  double threshold,
  double iou,
) {
  return _ailiaDetectorCompute(
    detector,
    src,
    src_stride,
    src_width,
    src_height,
    src_format,
    threshold,
    iou,
  );
}