Preparing search index...

    Function upscaleFactorFor

    • Computes the upscale factor that brings characters to ML Kit's optimal size.

      Parameters

      • characterHeight: number | undefined

        Estimated character height in pixels, see medianLineHeight

      Returns number | undefined

      Scale factor greater than 1, or undefined when the characters are unknown or already big enough