[ImageProcessingParams] INI file section
These options control how the OCR engine transforms individual image blocks before recognition by adjusting their rotation, mirroring, or color inversion to ensure correct text orientation. When both rotation and mirroring are configured, rotation is applied first, followed by mirroring.
InvertImage
| Key | Type | Default |
|---|---|---|
InvertImage | Boolean | false |
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
| Key | Type | Default |
|---|---|---|
MirrorImage | Boolean | false |
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
| Key | Type | Default |
|---|---|---|
RotationType | RotationTypeEnum | RT_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_NoRotationmeans 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 RotationType 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.