ImageGear .NET - Updated
SingleLanguageDetection Property




ImageGear24.Recognition Assembly > ImageGear.Recognition Namespace > ImGearRecRecognitionSettings Class : SingleLanguageDetection Property
Enables or disables automatic single language detection before performing recognition.
Syntax
'Declaration
 
Public Property SingleLanguageDetection As Boolean
'Usage
 
Dim instance As ImGearRecRecognitionSettings
Dim value As Boolean
 
instance.SingleLanguageDetection = value
 
value = instance.SingleLanguageDetection
public bool SingleLanguageDetection {get; set;}
public: __property bool get_SingleLanguageDetection();
public: __property void set_SingleLanguageDetection( 
   bool value
);
public:
property bool SingleLanguageDetection {
   bool get();
   void set (    bool value);
}
Remarks

When Automatic Single Language Detection is enabled, the engine works in a special mode: when the first processing function is called, it tries to determine the language of the page by inspecting the letters and words found on it. The language with the highest number of characters will be selected when a page contains multiple languages. When processing further pages, the language of the previous page will be used if the language cannot be determined.

When Automatic Single Language Detection is disabled, the language of the document must be known and specified before calling the first processing function. More than one language can be specified even if the document contains text written in those languages, but it is suggested to use few (fewer than 5) languages only. The recognition engine uses all those language dictionaries to recognize the words on the document.

Note: Automatic detection of Arabic and Thai is not supported. Very clean documents in Greek, Russian and other Cyrillic languages can be processed with Single Language Detection, but making your application depend on automatic detection of these languages is not encouraged.

See Also

Reference

ImGearRecRecognitionSettings Class
ImGearRecRecognitionSettings Members