//PM> Install-Package IronOcr.Languages.Arabic
//PM> Install-Package IronOcr.Languages.Chinese
using IronOcr;
using System;
var Ocr = new IronTesseract();
// Add a primary language (Default is English)
Ocr.Language = OcrLanguage.English;
// Add as many secondary languages as you like
Ocr.AddSecondaryLanguage(OcrLanguage.Arabic);
Ocr.AddSecondaryLanguage(OcrLanguage.ChineseSimplified);
using var ocrInput = new OcrInput();
ocrInput.LoadImage(@"images\image.png");
var Result = Ocr.Read(ocrInput);
Console.WriteLine(Result.Text);
'PM> Install-Package IronOcr.Languages.Arabic
'PM> Install-Package IronOcr.Languages.Chinese
Imports IronOcr
Imports System
Private Ocr = New IronTesseract()
' Add a primary language (Default is English)
Ocr.Language = OcrLanguage.English
' Add as many secondary languages as you like
Ocr.AddSecondaryLanguage(OcrLanguage.Arabic)
Ocr.AddSecondaryLanguage(OcrLanguage.ChineseSimplified)
Dim ocrInput As New OcrInput()
ocrInput.LoadImage("images\image.png")
Dim Result = Ocr.Read(ocrInput)
Console.WriteLine(Result.Text)
Install-Package IronOcr
Multiple Languages for 1 Document
IronOCR supports 125 international languages.
It is possible to use More than one language at a Time to read documents that contain words in more than one language.
You may also use downloaded or proprietary languages and fonts following the Tesseract .traineddata file format standard.
Related Docs Links
Ready to get started? Version: 2024.10 just released