Skip to main content
Version: Version 1.0.2

[ImageProcessingParams] INI file section

These options define how the OCR engine preprocesses individual image blocks by adjusting their rotation, mirroring, or color inversion to ensure correct text orientation and recognition.


InvertImage​

KeyTypeDefault
InvertImageBooleanfalse

Specifies if the image colors in the block are inverted.
If this property is true, Pdftools OCR Service inverts the image of a block before recognition.


MirrorImage​

KeyTypeDefault
MirrorImageBooleanfalse

Specifies if the image in the block is mirrored around the vertical axis.
If this property is true, Pdftools OCR Service mirrors the image of a block before recognition.


RotationType​

KeyTypeDefault
RotationTypeRotationTypeEnumRT_NoRotation

Specifies the orientation of a text in a block relative to the normal reading position.

Supported values are in RotationTypeEnum.

  • This property cannot be set to RT_UnknownRotation.
  • The default value RT_NoRotation means that the orientation is normal.

RotationTypeEnum​

The RotationTypeEnum defines the set of possible rotation modes that can be applied to an image during preprocessing, such as 90° clockwise or upside down. It is used to control the Rotation key in OCR configuration profiles.

  • RT_Clockwise: Rotate an image 90° clockwise.
  • RT_Counterclockwise: Rotate an image 90° counterclockwise.
  • RT_NoRotation: Do not rotate an image.
  • RT_Upsidedown: Rotate an image upside down.
  • RT_UnknownRotation: The rotation angle is undefined.