ImgAdjustInvertedTextRects |
Top Previous Next |
Prototype
intInvertedZones:=ImgAdjustInvertedTexRects(intImageHandle, floatMinWidth, floatMinHeight)
Description
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 representing the number of zones found and inverted.
Notes
This function can work only on monochrome images.
Example
// Adjust inverted zones with minimal size 2" x 1/2" zones:=ImgAdjustInvertedTextRects(_CurrentImage, 2.0 , 0.5);
// Log a message ApplicationLog('Zones inverted adjusted: '+ IntToStr(zones)); |