在 IronOCR 中使用阿拉伯数字
This article was translated from English: Does it need improvement?
TranslatedView the article in English
阿拉伯語、波斯語和烏爾都語的語言包無法識別阿拉伯數字嗎?
這是一個已知的關於Tesseract語言包的問題。
下列語言包可能有助於解決阿拉伯數字的問題:
https://github.com/Shreeshrii/tessdata_arabic
這可以與 IronOCR 功能一起使用以載入自訂語言包:
https://ironsoftware.com/csharp/ocr/languages/#custom-language-example
using IronOcr; var Ocr = new IronTesseract();
Ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata");
using (var Input = new OcrInput(@"images\image.png"))
{
var Result = Ocr.Read(Input);
Console.WriteLine(Result.Text);
}
using IronOcr; var Ocr = new IronTesseract();
Ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata");
using (var Input = new OcrInput(@"images\image.png"))
{
var Result = Ocr.Read(Input);
Console.WriteLine(Result.Text);
}
Imports IronOcr
Private Ocr = New IronTesseract()
Ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata")
Using Input = New OcrInput("images\image.png")
Dim Result = Ocr.Read(Input)
Console.WriteLine(Result.Text)
End Using
VB C#