Class BaseRecognitionSettings
Namespace: Aspose.OCR
Assembly: Aspose.OCR.dll (25.8.0)
Settings for the image recognition. Contains elements that allow customizing the recognition process.
public abstract class BaseRecognitionSettings
Inheritance
object ← BaseRecognitionSettings
Derived
CarPlateRecognitionSettings , IDCardRecognitionSettings , InvoiceRecognitionSettings , PassportRecognitionSettings , ReceiptRecognitionSettings , 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
AllowedSymbols
Set the allowed characters with alphabet property.
public string AllowedSymbols { get; set; }
Property Value
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
IgnoredSymbols
Sets blacklist for recognition symbols.
public string IgnoredSymbols { get; set; }
Property Value
Language
Gets or sets the language used for OCR.
public Language Language { get; set; }
Property Value
ThreadsCount
Gets or sets the number fo threads for processing.
public int ThreadsCount { get; set; }