Image Transformer
object ImageTransformer
Stateless utility for geometric image transformations (rotations, flips) used to correct image orientation before OCR processing.
Types
Functions
Link copied to clipboard
Applies a rotation angle (0, 90, 180, 270) to the given image.
Link copied to clipboard
Rotates the image 180 degrees.
Link copied to clipboard
Rotates the image 270 degrees clockwise.
Link copied to clipboard
Rotates the image 90 degrees clockwise.
Link copied to clipboard
fun transformImage(img: BufferedImage, transformation: ImageTransformer.Transformation): BufferedImage
Transforms an image using the specified transformation type.