Class BaseRecognitionSettings

Class BaseRecognitionSettings

Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.2.0)

Settings for the image recognition. Contains elements that allow customizing the recognition process.

public class BaseRecognitionSettings

Inheritance

objectBaseRecognitionSettings

Derived

RecognitionSettings

Inherited Members

object.GetType(), object.MemberwiseClone(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()

Constructors

BaseRecognitionSettings(Language)

Initializes a new instance of the Aspose.OCR.RecognitionSettings class with full set of properties.

public BaseRecognitionSettings(Language language = Language.Latin)

Parameters

language Language

Language used for OCR.

Properties

AllowedCharacters

Allowed characters set. Determines the type of characters allowed for recognition result.

public CharactersAllowedType AllowedCharacters { get; set; }

Property Value

CharactersAllowedType

AllowedSymbols

Set the allowed characters with alphabet property.

public string AllowedSymbols { get; set; }

Property Value

string

AutomaticColorInversion

Detect images with white text on dark/black background and automatically choose a special OCR algorithm for them.

public bool AutomaticColorInversion { get; set; }

Property Value

bool

DetectAreasMode

Allows to select the optimal mode for document type areas: document, photo, plain text, column, image.

public DetectAreasMode DetectAreasMode { get; set; }

Property Value

DetectAreasMode

IgnoredSymbols

Sets blacklist for recognition symbols.

public string IgnoredSymbols { get; set; }

Property Value

string

Language

Gets or sets the language used for OCR. Determines the alphabet used during recognition. Multi-language by default.

public Language Language { get; set; }

Property Value

Language

LinesFiltration

Allows to recognize text in the tables (regions surrounded lines).

public bool LinesFiltration { get; set; }

Property Value

bool

ThreadsCount

Gets or sets the number fo threads for processing. By default, 0 means that the image will be processed with the number of threads equal to your number of processors. ThreadsCount = 1 means that the image will be processed in the main thread.

public int ThreadsCount { get; set; }

Property Value

int

UpscaleSmallFont

Allows you to use additional algorithms specifically for small font recognition. Useful for images with small size characters.

public bool UpscaleSmallFont { get; set; }

Property Value

bool

 English