ImgAdjustInvertedTextZones
Previous  Top  Next

Prototype

intInvertedZones:=ImgAdjustInvertedTextZones(intImageHandle, floatMinWidth, floatMinHeight)

Description

It can invert white-on-black text zones to normal black-on-white text zones. You can obtain better OCR performances and better compression.

Parameters

intImageHandle: integer value corresponding to the image handle.
floatMinWidth: float value that specifies the minimal width, in inches, of a zone to be inverted.
floatMinWidth: float value that specifies the minimal height, in inches, of a zone to be inverted.

Returned value

Integer value rapresenting the number of zones found and inverted.

Notes

This function can work only on monochrome images.

Example

//It adjusts inverted zones with minimal size 2" x 1/2"
zones:=ImgAdjustInvertedTextZones(_CurrentImage, 2.0 , 0.5);

//It shows a message 
ApplicationLog(_CurrentAgent,'Zones inverted adjusted: '+ IntToStr(zones));