CdrDocumentBinarizationMode

This type defines the binarization mode.

Type Description
CdrDocumentBinarizationSkipped Deactivates forced binarization of CIDoc images. Activating this setting may improve OCR results for grayscale and colored images.

This setting is compatible with the following preprocessing methods.

  • Binarisation
  • Despeckle [IG]
  • Invert

This setting is compatible with the following recognition engines.

  • FineReader 10
  • FineReader 11
  • Cairo OMR
  • QualitySoft Barcode

This setting is not compatible with the following preprocessing methods.

  • Box & Comb Removal
  • Clean Border [IG]
  • Lines Manager

This setting is not compatible with the following recognition engines.

  • Kadmos 5
  • Cleqs Barcode
  • Transcripts

You can use non-compatible methods and/or engines with this setting active provided that preprocessing includes Binarisation. In case of incompatible preprocessing methods, Binarisation must appear prior to the method.

Note: This binarization is a simple threshold based method and does not produce results identical to the dynamic binarization which is performed when
CdrDocumentBinarizationSkipped
is not active.

Sample Code

The following sample code shows how to activate the setting.

Private Sub ScriptModule_Initialize(ByVal ModuleName As String)
   Settings.DocumentBinarizationMode = CdrDocumentBinarizationSkipped
End Sub
CdrDocumentBinarizationAdvanced Default setting.

Executes advanced document binarization.