Yolov5TFLiteDetector

open class Yolov5TFLiteDetector

Functions

Link copied to clipboard
open fun addGPUDelegate()
添加GPU代理
Link copied to clipboard
open fun addNNApiDelegate()
添加NNapi代理
Link copied to clipboard
open fun addThread(thread: Int)
添加线程数
Link copied to clipboard
open fun detect(bitmap: Bitmap): ArrayList<Recognition>
检测步骤
Link copied to clipboard
open fun getInputSize(): Size
Link copied to clipboard
open fun getLabelFile(): String
Link copied to clipboard
open fun getModelFile(): String
Link copied to clipboard
open fun getOutputSize(): Array<Int>
Link copied to clipboard
open fun initialModel(activity: Activity, KEY: String)
初始化模型, 可以通过 addNNApiDelegate(), addGPUDelegate()提前加载相应代理
Link copied to clipboard
open fun setModelFile(modelFile: String)