専門的な読み取り
プレーンテキストを超えて、パスポート(MRZ)、小切手(MICR)、ナンバープレート、バーコードを専用の高性能ツールで正確に読み取ります。
専門的な読み取り
ナンバープレートの読み取り
自動駐車管理、セキュリティゲートアクセス、車両追跡のための堅牢な自動ナンバープレート認識(ANPR)システムを構築します。当社のエンジンは、さまざまな角度、距離、照明条件からナンバープレートを正確に読み取るように訓練されています。
OCRを使ってナンバープレートを読み取るusing IronOcr;
using System;
var ocr = new IronTesseract();
ocr.Configuration.WhiteListCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_";
using var inputLicensePlate = new OcrInput();
inputLicensePlate.LoadImage("plate.jpeg");
// Read license plate
OcrLicensePlateResult result = ocr.ReadLicensePlate(inputLicensePlate);
// Retrieve license plate number and confidence value
string output = $"{result.Text}\nResult Confidence: {result.Confidence}";
Console.WriteLine(output);Imports IronOcr
Imports System
Dim ocr = New IronTesseract()
ocr.Configuration.WhiteListCharacters = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789_"
Using inputLicensePlate = New OcrInput()
inputLicensePlate.LoadImage("plate.jpeg")
' Read license plate
Dim result As OcrLicensePlateResult = ocr.ReadLicensePlate(inputLicensePlate)
' Retrieve license plate number and confidence value
Dim output As String = $"{result.Text}{vbLf}Result Confidence: {result.Confidence}"
Console.WriteLine(output)
End Usingパスポートの読み取り
国際パスポートやIDカードのMRZ(Machine-Readable Zone)から瞬時にデータを抽出することで、本人確認と顧客オンボーディングを合理化します。手入力のミスをなくし、チェックインやコンプライアンス・プロセスを加速します。
C#でRead Passportを使用する方法を学びますusing IronOcr;
using System;
// Instantiate OCR engine
var ocr = new IronTesseract();
using var inputPassport = new OcrInput();
inputPassport.LoadImage("passport.jpg");
// Perform OCR
OcrPassportResult result = ocr.ReadPassport(inputPassport);
// Output name and passport number
Console.WriteLine(result.PassportInfo.GivenNames);
Console.WriteLine(result.PassportInfo.PassportNumber);Imports IronOcr
Imports System
' Instantiate OCR engine
Dim ocr = New IronTesseract()
Using inputPassport = New OcrInput()
inputPassport.LoadImage("passport.jpg")
' Perform OCR
Dim result As OcrPassportResult = ocr.ReadPassport(inputPassport)
' Output name and passport number
Console.WriteLine(result.PassportInfo.GivenNames)
Console.WriteLine(result.PassportInfo.PassportNumber)
End UsingMICR小切手の読み取り
小切手のE-13B MICRフォントを確実に読み取り、銀行預金処理や金融ワークフローを自動化します。当社の専用エンジンは、ルーティング番号、口座番号、小切手の金額などの重要なデータに対して最高の精度を保証します。
// Import the IronOCR namespace
using IronOcr;
// Create a new instance of IronTesseract for performing OCR operations
var Ocr = new IronTesseract();
// Set the OCR language to MICR to recognize magnetic ink characters
// Must have MICR (IronOcr.Languages.MICR) installed beforehand
Ocr.Language = OcrLanguage.MICR;
// Specify the file path of the input image containing MICR text
using (var Input = new OcrInput())
{
Input.LoadImage("sampleChequeImage.png");
// Run the OCR engine to read the MICR text from the input image
var Result = Ocr.Read(Input);
// Output the recognized text to the console
Console.WriteLine(Result.Text);
}' Import the IronOCR namespace
Imports IronOcr
' Create a new instance of IronTesseract for performing OCR operations
Dim Ocr = New IronTesseract()
' Set the OCR language to MICR to recognize magnetic ink characters
' Must have MICR (IronOcr.Languages.MICR) installed beforehand
Ocr.Language = OcrLanguage.MICR
' Specify the file path of the input image containing MICR text
Using Input = New OcrInput()
Input.LoadImage("sampleChequeImage.png")
' Run the OCR engine to read the MICR text from the input image
Dim Result = Ocr.Read(Input)
' Output the recognized text to the console
Console.WriteLine(Result.Text)
End UsingバーコードとQRコードの読み取り
QRコードを含む、すべての主要な1次元および2次元バーコード形式を検出し、デコードします。在庫管理、物流追跡、POSシステム、モバイル発券アプリケーションのための多目的なソリューションです。
以下の方法を学びましょう:.NET C# でバーコードとQRコードを読み取る方法using IronOcr;
// Instantiate IronTesseract
IronTesseract ocrTesseract = new IronTesseract();
// Enable barcode reading
ocrTesseract.Configuration.ReadBarCodes = true;
// Add PDF
using var imageInput = new OcrPdfInput("pdfWithBarcodes.pdf");
// Perform OCR
OcrResult ocrResult = ocrTesseract.Read(imageInput);
// Output detected barcodes and text values
Console.WriteLine(ocrResult.Text);
Console.WriteLine(ocrResult.Barcodes[0].Value);Imports IronOcr
' Instantiate IronTesseract
Dim ocrTesseract As New IronTesseract()
' Enable barcode reading
ocrTesseract.Configuration.ReadBarCodes = True
' Add PDF
Using imageInput = New OcrPdfInput("pdfWithBarcodes.pdf")
' Perform OCR
Dim ocrResult As OcrResult = ocrTesseract.Read(imageInput)
' Output detected barcodes and text values
Console.WriteLine(ocrResult.Text)
Console.WriteLine(ocrResult.Barcodes(0).Value)
End UsingコンピュータビジョンOCR
コンピュータ・ビジョンの力を使って、高度に訓練されたモデルでテキストを検出します。IronOCRはOpenCVを利用して画像内のテキストを含む領域を識別します。特にノイズの多い画像や文書内のテキストブロックの散在に役立ちます!
以下の方法を学びましょう:コンピュータビジョンにおけるOCRチュートリアル(ライセンス、字幕、請求書)using IronOcr;
var ocr = new IronTesseract();
using var input = new OcrInput();
input.LoadImage("sample.png");
// Make sure to also install IronOcr.Extensions.AdvancedScan to use this method
input.FindTextRegion(Scale: 2.0, DilationAmount: 20, Binarize: true, Invert: true);
OcrResult result = ocr.Read(input);
string resultText = result.Text;Imports IronOcr
Dim ocr = New IronTesseract()
Using input = New OcrInput()
input.LoadImage("sample.png")
' Make sure to also install IronOcr.Extensions.AdvancedScan to use this method
input.FindTextRegion(Scale:=2.0, DilationAmount:=20, Binarize:=True, Invert:=True)
Dim result As OcrResult = ocr.Read(input)
Dim resultText As String = result.Text
End Using手書き画像からのテキスト抽出
IronOCRは手書き画像からテキストを簡単に抽出することもできます。IronOCRは特殊な方法を用いて、画像から手書きテキストを素早く効率的にスキャンし抽出することができます。
テキストを検索および置換する方法を学ぶ準備はできましたか?
Nuget Downloads 6,236,385|バージョン:2026.9リリースされたばかり