ONNXModelPreprocessor
class ONNXModelPreprocessor(onnxModel: OnnxInferenceModel?, outputIndex: Int) : Preprocessor
Content copied to clipboard
Applies the given onnxModel as a preprocessing stage.
Constructors
ONNXModelPreprocessor
Link copied to clipboard
fun ONNXModelPreprocessor(onnxModel: OnnxInferenceModel?, outputIndex: Int = 0)
Content copied to clipboard
Functions
apply
Link copied to clipboard
open override fun apply(data: FloatArray, inputShape: ImageShape): FloatArray
Content copied to clipboard