IronOCR でのスラッシュゼロの処理
This article was translated from English: Does it need improvement?
TranslatedView the article in English
スラッシュ付きのゼロは正しく認識されず、g、6、または 8 として識別されますか?
これは、Tesseract 言語パックの問題である可能性があります。
次の言語パックは、スラッシュ付きゼロに関するこの問題の解決に役立つ可能性があります。
スラッシュゼロOCR
これを IronOCR 機能と組み合わせて使用し、カスタム言語パックを読み込むことができます。
IronOCRのカスタム言語の例
// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main(string[] args)
{
// Initialize IronTesseract class
var Ocr = new IronTesseract();
// Use a custom Tesseract language file, which may help with recognizing slashed zeros
Ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata");
// Specify the OCR input image
using (var Input = new OcrInput(@"images\image.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
}
}// Import the IronOcr namespace
using IronOcr;
class Program
{
static void Main(string[] args)
{
// Initialize IronTesseract class
var Ocr = new IronTesseract();
// Use a custom Tesseract language file, which may help with recognizing slashed zeros
Ocr.UseCustomTesseractLanguageFile("custom_tesseract_files/custom.traineddata");
// Specify the OCR input image
using (var Input = new OcrInput(@"images\image.png"))
{
// Perform OCR on the input image
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}
}
}$vbLabelText $csharpLabel
準備はできましたか?
Nuget ダウンロード 5,299,091 | バージョン: 2025.12 リリース






