文書読み取り
IronOCRを使用して請求書やレポートから正確にテキストとデータを抽出し、機能の構築を迅速化します。
文書読み取り
1
スキャン文書の読み取り
物理的な文書や画像ベースのPDFを機械可読テキストに正確にデジタル化します。検索可能なアーカイブの作成、紙のフォームからのデータ入力の自動化、スキャンしたコンテンツへのアクセスやインデックス作成に最適です。当社のエンジンは、一般的なスキャンの不完全性の処理に優れています。
次の方法を学んでください:C# でスキャンされたドキュメントを読み取るusing IronOcr;
using System;
// Instantiate OCR engine
var ocr = new IronTesseract();
// Configure OCR engine
using var input = new OcrInput();
input.LoadImage("potter.tiff");
// Perform OCR
OcrResult result = ocr.ReadDocument(input);
Console.WriteLine(result.Text);Imports IronOcr
Imports System
' Instantiate OCR engine
Dim ocr As New IronTesseract()
' Configure OCR engine
Using input As New OcrInput()
input.LoadImage("potter.tiff")
' Perform OCR
Dim result As OcrResult = ocr.ReadDocument(input)
Console.WriteLine(result.Text)
End Using2
請求書文書を読む
請求書から構造化データをインテリジェントに抽出することで、買掛金のワークフローを自動化します。単純なテキスト抽出にとどまらず、請求書番号、支払期日、合計金額、ベンダー名などのキーと値のペアを、さまざまなレイアウトやテンプレートでも取得できます。
ドキュメント内の複雑なテーブルを読み取るusing IronOcr;
// Instantiate OCR engine
var ocr = new IronTesseract();
// Enable table detection
ocr.Configuration.ReadDataTables = true;
using var input = new OcrPdfInput("sample.pdf");
var result = ocr.Read(input);
// Retrieve the data
var table = result.Tables[0].DataTable;
// Print the retrieved item to the console
Console.WriteLine($"The first item in the table is: {result.Tables[0].DataTable.Rows[0][0]}");Imports IronOcr
' Instantiate OCR engine
Dim ocr As New IronTesseract()
' Enable table detection
ocr.Configuration.ReadDataTables = True
Using input As New OcrPdfInput("sample.pdf")
Dim result = ocr.Read(input)
' Retrieve the data
Dim table = result.Tables(0).DataTable
' Print the retrieved item to the console
Console.WriteLine($"The first item in the table is: {result.Tables(0).DataTable.Rows(0)(0)}")
End Using3
写真を読む
スマートフォンの写真やカメラの画像を使用可能なテキストに変換します。経費追跡のために領収書をキャプチャしたり、ホワイトボードのメモをデジタル化したり、製品ラベルから情報を抽出したり、道路標識やポスターからテキストを読み取ったりするモバイルアプリケーションに最適です。
C#で写真を読み取るusing IronOcr;
var ocr = new IronTesseract();
using var inputPhoto = new OcrInput();
inputPhoto.LoadImageFrame("ocr.tiff", 0);
// Read photo
OcrPhotoResult result = ocr.ReadPhoto(inputPhoto);
// Extract the text in the first region
string textinregion = result.TextRegions[0].TextInRegion;
// Print the text in the first region
Console.WriteLine($"Full Scnned Photo Text: {textinregion}");Imports IronOcr
Dim ocr = New IronTesseract()
Using inputPhoto = New OcrInput()
inputPhoto.LoadImageFrame("ocr.tiff", 0)
' Read photo
Dim result As OcrPhotoResult = ocr.ReadPhoto(inputPhoto)
' Extract the text in the first region
Dim textinregion As String = result.TextRegions(0).TextInRegion
' Print the text in the first region
Console.WriteLine($"Full Scnned Photo Text: {textinregion}")
End Using4
スクリーンショットを読む
アプリケーションウィンドウ、ユーザーインターフェイス、Webコンテンツから画面上のテキストを即座にキャプチャして処理します。他のアプリケーションのUI要素を読み取り、他のアプリケーションとシームレスに統合します。
C#でスクリーンショットを読み取るusing IronOcr;
using System;
using System.Linq;
// Instantiate OCR engine
var ocr = new IronTesseract();
using var inputScreenshot = new OcrInput();
inputScreenshot.LoadImage("screenshotOCR.png");
// Perform OCR
OcrPhotoResult result = ocr.ReadScreenShot(inputScreenshot);
// Output screenshot information
Console.WriteLine(result.Text);Imports IronOcr
Imports System
Imports System.Linq
' Instantiate OCR engine
Dim ocr = New IronTesseract()
Using inputScreenshot = New OcrInput()
inputScreenshot.LoadImage("screenshotOCR.png")
' Perform OCR
Dim result As OcrPhotoResult = ocr.ReadScreenShot(inputScreenshot)
' Output screenshot information
Console.WriteLine(result.Text)
End Using準備はできましたか?
Nuget Downloads 6,236,385|バージョン:2026.9リリースされたばかり