Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.2 KB

how-to-add-languages.md

File metadata and controls

25 lines (18 loc) · 1.2 KB
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

How to add other languages support in the OCR Demo

  1. 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.

  2. 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.

  3. 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.
  4. Run the solution to see how it works

ArabicOCR