Skip to main content
This method increases the local contrast of the image. Such preprocessing may increase recognition quality of low contrast images. The images for which this preprocessing method is effective include:
  • photos or scans of documents with texture or pictures in the background. With the normal binarization procedure, the characters that coincide with darker areas of background may be lost or recognized unreliably. If you apply this method before recognition, such areas are detected, and contrast is increased, with the result that after binarization the characters stand out more distinctly.
    enhance1This picture is low-contrast as a whole, and in the areas where the background is green the text can be lost. Applying EnhanceLocalContrast before recognition helps to retrieve, for example, the issue date field quite reliably.
    • photos or scans of documents with highly colorful background or text highlighting.
      enhance2On this picture the column highlighted in dark-blue is recognized poorly. But if this method is applied during preprocessing, the recognition quality improves.
      We recommend that you call this method at the beginning of a preprocessing procedure (before orientation and resolution detection, but after the image cropping).
      This method can be used for color and gray images only.

      Syntax

      C++

      HRESULT EnhanceLocalContrast();
      

      C#

      void EnhanceLocalContrast();
      

      Visual Basic .NET

      Sub EnhanceLocalContrast()
      

      Return values

      This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

      See also

      ImageDocument