OCR: How to C#
Using OCR SDK for C#.NET
Sample C#.NET Codes
Supported Languages
  |  
Home ›› XImage.OCR ›› C# OCR: Supported Languages

C#: OCR SDK Supported Languages


Details for OCR Multi-language Support and Source Preparation




You are able to recognize multiple languages by using OCR SDK for .NET in C# programming, such as English, French, Russian, Spanish, and so on. In this tutorial, you may have an overview of all supported languages. And we also tell you how to use source files in C# OCR application.




C# OCR: Multi-language Support



RasterEdge OCR module supports recognizing various language types, like English, Spanish, French, German, Italian, Russian, etc. You may click to see all languages, corresponding abbreviations (used in API as string parameter) and source (trained data) file name.


Supported Languages

Abbreviation

traineddata

English

eng

eng.traineddata

Spanish

spa

spa.traineddata

French

fra

fra.traineddata

German

deu

deu.traineddata

Italian

ita

ita.traineddata

Russian

rus

rus.traineddata

Portuguese

por

por.traineddata

Dutch

nld

nld.traineddata

Arabic

ara

ara.traineddata

Korean

kor

kor.traineddata


Please note that, for Arabic, there are 8 source files in all, including ara.traineddata, ara.cube.word-freq, ara.cube.size, ara.cube.params, ara.cube.nn, ara.cube.lm, ara.cube.fold, and ara.cube.bigrams.




C# OCR: Source Preparation



To successfully implement high performance OCR recognition in your Visual C# project, you may firstly know how to prepare Source files. OCR Source files for different languages can be found in the download package under RasterEdge.DocImageSDK\Source. Before using OCR functionality, you may specify the source directory using the following C# code. For APS.NET project, this is a must.




public static int SetTrainResourcePath(string strResource);


   


Source Preparation Example


By default, if your C# OCR application is a desktop application, the source directory is set to the directory of application, which is [applicationFolder]\Source\. For example, if you want to recognize English characters using OCR technology, please make sure the file eng.traineddata is retrievable in the path [applicationFolder]\Source\eng.traineddata. See illustrations as below.