その他
IronOCRの他の多くの機能をご覧ください - すべてのOCRニーズに最適なライブラリです!
対応ファイルタイプ
1
マルチページ/フレームTIFF & GIF
TIFFやGIF形式で保存された複数ページのドキュメントを簡単に処理します。IronOcrは一度の操作で全てのページやフレームを読み込むので、ファイルを手動で分割する手間が省けます。
マルチフレーム/ページ GIF および TIFF を読み取る 方法を学ぶ。using IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Import TIFF/TIF
using var imageInput = new OcrImageInput("sample.tiff");
// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(imageInput);Imports IronOcr
' Instantiate IronTesseract
Dim ocrTesseract As New IronTesseract()
' Import TIFF/TIF
Using imageInput = New OcrImageInput("sample.tiff")
' Perform OCR
Dim ocrResult As OcrResult = ocrTesseract.Read(imageInput)
End Using2
PDF / PDFストリーム
PDFファイルまたはメモリストリームから直接テキストを正確に抽出し、ネイティブPDFとスキャン(画像ベース)PDFの両方を簡単に扱えます。
次の方法を学んでください:.NET C# で PDF を読むusing IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Add PDF
using var pdfInput = new OcrPdfInput("sample.pdf");
// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(pdfInput);Imports IronOcr
' Instantiate IronTesseract
Dim ocrTesseract As New IronTesseract()
' Add PDF
Using pdfInput As New OcrPdfInput("sample.pdf")
' Perform OCR
Dim ocrResult As OcrResult = ocrTesseract.Read(pdfInput)
End Using3
画像 (jpg, png, bmp)
IronOCRはJPG、PNG、BMPなどの標準的な画像フォーマットをサポートしています。ファイルパスを指定するだけで、あとはIronOCRが処理します。
以下の方法を学びましょう:.NET C# で読み取り結果を抽出するusing IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Add image
using var imageInput = new OcrImageInput("Potter.png");
// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(imageInput);Imports IronOcr
' Instantiate IronTesseract
Dim ocrTesseract As New IronTesseract()
' Add image
Using imageInput = New OcrImageInput("Potter.png")
' Perform OCR
Dim ocrResult As OcrResult = ocrTesseract.Read(imageInput)
End Using
パフォーマンスブースター
1
マルチスレッドTesseract OCR
並行処理を完全にサポートし、スケーラビリティと応答性の高いアプリケーションを構築します。複数のドキュメントを異なるスレッドで同時に安全に処理し、高性能なサーバーサイドのデプロイメントを実現します。
マルチスレッド Tesseract OCR in C# の方法を学んでください。using IronOcr;
var ocrTesseract = new IronTesseract();
using var ocrInput = new OcrInput();
ocrInput.LoadPdf("sample.pdf");
// Image processing is automatically multi-threaded
ocrInput.Deskew();
// OCR reading is automatically multi-threaded too
var ocrResult = ocrTesseract.Read(ocrInput);Imports IronOcr
Dim ocrTesseract = New IronTesseract()
Using ocrInput = New OcrInput()
ocrInput.LoadPdf("sample.pdf")
' Image processing is automatically multi-threaded
ocrInput.Deskew()
' OCR reading is automatically multi-threaded too
Dim ocrResult = ocrTesseract.Read(ocrInput)
End Using2
中断トークン
長時間実行されるOCRタスクの制御を維持します。アボートトークンを使用して、プロセスを優雅に中断またはキャンセルします。これは、リソースを管理したり、ユーザーがキャンセル可能な操作を実装したりする場合に便利です。
以下の方法を学びましょう:C# Tesseract アボートトークンusing IronOcr;
using System.Threading;
// Opens a Large PDF which may need to be cancelled early
IronTesseract ocrTesseract = new IronTesseract() { Language = OcrLanguage.English };
using var ocrInput = new OcrInput();
ocrInput.LoadPdf("sample.pdf");
// Starts a read on the PDF using IronOCR
OcrReadTask ocrRead = ocrTesseract.ReadAsync(ocrInput);
Thread.Sleep(1000); // Time passes...
// Cancellation Example:
ocrRead.Cancel();
ocrRead.Wait();Imports IronOcr
Imports System.Threading
' Opens a Large PDF which may need to be cancelled early
Dim ocrTesseract As New IronTesseract() With {.Language = OcrLanguage.English}
Using ocrInput As New OcrInput()
ocrInput.LoadPdf("sample.pdf")
' Starts a read on the PDF using IronOCR
Dim ocrRead As OcrReadTask = ocrTesseract.ReadAsync(ocrInput)
Thread.Sleep(1000) ' Time passes...
' Cancellation Example:
ocrRead.Cancel()
ocrRead.Wait()
End Using3
タイムアウト
困難なファイルや破損したファイルでアプリケーションがハングアップするのを防ぎます。OCRプロセスに特定のタイムアウト時間を設定し、リソース管理とシステムの安定性を向上させます。
C#テッセラクトのタイムアウトの方法を学びます。using IronOcr;
int cancel_time = 1000;
// Opens a Large PDF which may need to be cancelled early
IronTesseract ocrTesseract = new IronTesseract() { Language = OcrLanguage.English };
var ocrInput = new OcrInput();
ocrInput.LoadPdf("large-report.pdf");
// Starts a read on the PDF using IronOCR with specified cancel time
OcrReadTask ocrRead = ocrTesseract.ReadAsync(ocrInput, cancel_time);Imports IronOcr
Dim cancel_time As Integer = 1000
' Opens a Large PDF which may need to be cancelled early
Dim ocrTesseract As New IronTesseract() With {.Language = OcrLanguage.English}
Dim ocrInput = New OcrInput()
ocrInput.LoadPdf("large-report.pdf")
' Starts a read on the PDF using IronOCR with specified cancel time
Dim ocrRead As OcrReadTask = ocrTesseract.ReadAsync(ocrInput, cancel_time)4
OCR プロセストラッキング
0%から100%までのOCR操作の進行状況をリアルタイムで監視します。これにより、プログレスバーでユーザーにフィードバックを提供したり、大規模なジョブの完了時間をより正確に見積もることができます。
以下の方法を学びましょう:.NET C# での進捗追跡の使用方法using IronOcr;
var ocrTesseract = new IronTesseract();
// Subscribe to OcrProgress event
ocrTesseract.OcrProgress += (_, ocrProgressEventsArgs) =>
{
Console.WriteLine("Progress(%) | Duration");
Console.WriteLine(" " + ocrProgressEventsArgs.ProgressPercent + "% | " + ocrProgressEventsArgs.Duration.TotalSeconds + "s");
};
using var input = new OcrInput();
input.LoadPdf("Experiences-in-Biodiversity-Research-A-Field-Course.pdf");
// Progress events will fire during the read operation
var result = ocrTesseract.Read(input);Imports IronOcr
Dim ocrTesseract = New IronTesseract()
' Subscribe to OcrProgress event
AddHandler ocrTesseract.OcrProgress, Sub(_, ocrProgressEventsArgs)
Console.WriteLine("Progress(%) | Duration")
Console.WriteLine(" " & ocrProgressEventsArgs.ProgressPercent & "% | " & ocrProgressEventsArgs.Duration.TotalSeconds & "s")
End Sub
Using input = New OcrInput()
input.LoadPdf("Experiences-in-Biodiversity-Research-A-Field-Course.pdf")
' Progress events will fire during the read operation
Dim result = ocrTesseract.Read(input)
End Using準備はできましたか?
Nuget Downloads 6,236,385|バージョン:2026.9リリースされたばかり