YotsukaD

constructor(modelPath: String, inputSize: Triple<Int, Int, Int> = Triple(3, 640, 640), scoreThreshold: Float = 0.3f, numClasses: Int = 3, useGpu: Boolean = true, context: Context? = null)

YotsukaD インスタンスを生成します。

Parameters

modelPath

YotsukaDのモデルファイルのパス

inputSize

モデルの入力サイズ(チャンネル、高さ、幅)

scoreThreshold

検出スコアの閾値(この値以上の検出結果のみ返す)

numClasses

モデルのクラス数

useGpu

GPU を使用する場合は true

Throws

初期化に失敗した場合