CustomPreprocessor
class CustomPreprocessor(customPreprocessor: Preprocessor?) : Preprocessor
Content copied to clipboard
This wrapper preprocessor applies the passed custom preprocessor to be used in Preprocessing DSL.
Constructors
CustomPreprocessor
Link copied to clipboard
Functions
apply
Link copied to clipboard
open override fun apply(data: FloatArray, inputShape: ImageShape): FloatArray
Content copied to clipboard
Transforms data with inputShape to the new data with the same shape.