ImageGear .NET v25.1 - Updated
Item Property (ImGearOCRLanguageEnabled)




ImageGear.OCR Assembly > ImageGear.OCR Namespace > ImGearOCRLanguageEnabled Class : Item Property
An ImGearOCRLanguage enumeration value that specifies the language to be enabled or disabled for recognition.
Enables or disables an OCR language.
Syntax
'Declaration
 
Public Default Property Item( _
   ByVal index As ImGearOCRLanguage _
) As Boolean
'Usage
 
Dim instance As ImGearOCRLanguageEnabled
Dim index As ImGearOCRLanguage
Dim value As Boolean
 
instance.Item(index) = value
 
value = instance.Item(index)
public bool this[ 
   ImGearOCRLanguage index
]; {get; set;}
public: __property bool get_Item   ImGearOCRLanguage index
;
public: __property void set_Item   ImGearOCRLanguage index,
   bool value
;
public:
property bool default [ImGearOCRLanguage] {
   bool get(ImGearOCRLanguage index);
   void set (ImGearOCRLanguage indexbool value);
}

Parameters

index
An ImGearOCRLanguage enumeration value that specifies the language to be enabled or disabled for recognition.

Property Value

Boolean value.
Exceptions
ExceptionDescription
Given language is not supported by current recognition language.
Given language is not compatible with some language in the set.
Remarks

As far as the values of ImGearOCRLanguage are languages, groups of languages and countries the language may correspond with few counties and be a member of few groups. Result set of languages is calculated on recognition level when ImGearOCRPage.Recognize method is called. Language may be duplicated in result set. For example, this[ImGearOCRLanguage.German] is true and this[ImGearOCRLanguage.Switzerland] is true. In this case second occurrence of German language that is member of Switzerland group will be removed. One language is included to result set only one time.

The list of languages is separated into a few language groups. The languages from one group may be incompatible with languages from other groups. When the languages from different groups are enabled, recognition may return an error. To avoid using incompatible languages, the following list of language groups should be used:

  1. Greek language.
  2. Latin and Cyrillic language group unites CentralEurope languages, Cyrillic languages, WesternEurope languages, Turkish language and Baltic languages. This set of languages includes: Afrikaans, Albanian, Andorra, Argentina, Australia, Austria, AzerbaijanCyrillic, AzerbaijanLatin, Baltic, Basque, Belarusian, Belgium, Bosnian, Brazil, Bulgarian, Canada, Catalan, CentralAmerica, CentralEurope, Chile, Colombia, Croatian, Cyrillic, Czech, Danish, Dutch, English, Estonian, Faroese, Finnish, French, Frisian, German, GreatBritain, Guarani, Hani, Hungarian, Icelandic, Indonesian, Irish, Italian, JapanLatinOnly, KazakhCyrillic, KazakhLatin, KirghizCyrillic, Kirundi, Latin, Latvian, Liechtenstein, Lithuanian, Luxembourgish, Macedonian, Malay, Mexico, Netherlands, NewZealand, Norwegian, Polish, Portuguese, Quechua, RhaetoRomanic, Romanian, Russian, Rwanda, Scandinavia, SerbianCyrillic, Shona, Slovak, Slovenian, Somali, Sorbian, SouthAfrica, SouthAmerica, Spanish, Swahili, Swedish, Switzerland, TajikCyrillic, Turkish, TurkmenCyrillic, TurkmenLatin, Ukrainian, USA, UzbekCyrillic, UzbekLatin, Venezuela, WesternEurope, Wolof, Xhosa, Zulu.
  3. ChineseSimplified and ChineseTraditional languages.
  4. ChineseHongKong language.
  5. Japanese language.
  6. Korean language.
  7. Thai language.

See Also

Reference

ImGearOCRLanguageEnabled Class
ImGearOCRLanguageEnabled Members