layout | title | keywords | description | needAutoGenerateSidebar |
---|---|---|---|---|
default-layout |
How to add other languages support in the OCR Demo |
dynamic .net twain, ocr languages |
How to add other languages support in the OCR Demo |
true |
-
Open the solution in IDE You can find it in C:\Program Files (x86)\Dynamsoft\Dynamic .NET TWAIN {Version number}\Samples\C# Samples\OCRDemo after installation. After opening it, please navigate to Form1.cs.
-
Download the language package from this link into the language folder. In our sample, it's C:\Program Files (x86)\Dynamsoft\Dynamic .NET TWAIN {Version number}\Samples\Bin\tessdata. Let's take Arabic as an example. You can download from this page and put it to that folder.
-
Add the code in Form1_Load function.
languages.Add("Arabic", "ara"); // the first value represents the string shown in the form and the second one should be the same as the file name of the language package.
-
Run the solution to see how it works