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
object ← BaseRecognitionSettings
Derived
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
DetectAreasMode
Allows to select the optimal mode for document type areas: document, photo, plain text, column, image.
public DetectAreasMode DetectAreasMode { 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
LinesFiltration
Allows to recognize text in the tables (regions surrounded lines).
public bool LinesFiltration { get; set; }
Property Value
ThreadsCount
Gets or sets the number fo threads for processing.
public int ThreadsCount { get; set; }
Property Value
UpscaleSmallFont
Allows you to use additional algorithms specifically for small font recognition. Useful for images with small size characters.
public bool UpscaleSmallFont { get; set; }