CustomPreprocessor

class CustomPreprocessor(customPreprocessor: Preprocessor?) : Preprocessor

This wrapper preprocessor applies the passed custom preprocessor to be used in Preprocessing DSL.

Constructors

CustomPreprocessor
Link copied to clipboard
fun CustomPreprocessor(customPreprocessor: Preprocessor?)

Functions

apply
Link copied to clipboard
open override fun apply(data: FloatArray, inputShape: ImageShape): FloatArray

Transforms data with inputShape to the new data with the same shape.