Preparing search index...

    Function transformResult

    • Applies a scale and a vertical offset to every frame and corner point of a recognition result, including its blocks, lines and elements.

      Parameters

      • result: TextRecognitionResult

        Result to transform

      • scale: number

        Factor applied to every coordinate

      • offsetY: number

        Offset added to the vertical position after scaling

      Returns TextRecognitionResult

      The transformed result