RecognitionSettings Class

Settings for the image recognition. Contains elements that allow customizing the recognition process.
Inheritance Hierarchy
SystemObject
  Aspose.OCRRecognitionSettings

Namespace:  Aspose.OCR
Assembly:  Aspose.OCR (in Aspose.OCR.dll) Version: 21.7.0
Syntax
public class RecognitionSettings

The RecognitionSettings type exposes the following members.

Constructors
  NameDescription
Public methodRecognitionSettings
Initializes a new instance of the RecognitionSettings class with full set of properties.
Properties
  NameDescription
Public propertyAutoSkew
Gets or sets a flag indicating whether automatic image skew correction should be enabled. Enabled (true) by default.
Public propertyDetectAreas
Gets or sets a flag indicating whether automatic text areas detection should be enabled.
Remarks
Enables Document Structure Recognition module. This takes more time and memory to process an image, but provides more accurate results on complex cases. Disable (set to false) for faster image processing or in case of images with simple structure.
Public propertyIgnoredCharacters
Sets blacklist for recognition symbols.
Public propertyLanguage
Gets or sets the language used for OCR.
Remarks
Determines the alphabet used during recognition. Multi-language by default.
Public propertyLinesFiltration
Allows to recognize text in the tables (regions surrounded lines).
Public propertyRecognitionAreas
Gets or sets the list of text areas for processing.
Remarks
Allows to manually specify the areas with text for more accurate recognition. If custom areas are set DetectAreas and AutoSkew properties will be ignored.
Disables DetectAreas and AutoSkew.
Public propertyRecognizeSingleLine
Sets single-line image recognition. Disabled (false) by default. Disable all the processing steps associated with splitting into lines. Set this parameter to true if your image contains only one line. Disables RecognitionAreas settings, so all areas settings will be ignored.
Public propertySkewAngle
Gets or sets angle in degrees for image rotation.
Remarks
Setting this value will disable the AutoSkew property, so that auto skew correction is not applied. Zero by default.
Public propertyThresholdValue
Gets or sets custom threshold value for image binarization. Range from 1 to 255.
Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
See Also