IronOCRを使ってC#でスクリーンショットからテキストを読み取る方法
IronOCR の ReadScreenshot メソッドは、画像サイズの違いやノイズに対応しながら、スクリーンショットから効率よくテキストを抽出します。PNG、JPG、BMP などの一般的な画像形式に対応しています。
スクリーンショットを使うと、情報をすばやく共有し、重要なデータを記録できます。一方、画像サイズがさまざまでノイズも含まれるため、OCRでテキストを抽出するのは容易ではありません。
IronOCR は、ReadScreenshot などの専用メソッドでこの問題に対応します。このメソッドは一般的な画像形式に対応し、スクリーンショットから情報を抽出するよう最適化されています。標準のOCRメソッドとは異なり、自動ノイズ除去やコントラストの強調など、スクリーンショットに合わせた前処理を行います。
この機能を使用するには、[IronOcr.Extension.AdvancedScan]パッケージをインストールします。 この拡張機能は、特に最新のアプリケーションのUI要素、システムフォント、アンチエイリアステキストに対して、スクリーンショットのテキスト認識精度を高める高度なコンピュータビジョン機能を提供します。
IronOCR の ReadScreenshot を使うには、スクリーンショットを OcrInput に読み込んで ReadScreenShot を呼び出します。返された OcrPhotoResult から、抽出したテキスト、信頼度スコア、テキスト領域をすぐに取得できます。最小限の設定で、画像からすばやく利用可能なテキストを取り出せます。
-
1IronOCR を NuGet Package Manager でインストールします
-
2このコード スニペットをコピーして実行します。
OcrPhotoResult result = new IronTesseract().ReadScreenShot(new OcrInput().LoadImage("screenshot.png"));Dim result As OcrPhotoResult = New IronTesseract().ReadScreenShot(New OcrInput().LoadImage("screenshot.png"))Dim result As OcrPhotoResult = New IronTesseract().ReadScreenShot(New OcrInput().LoadImage("screenshot.png")) -
3実際の環境でテストするためにデプロイする
今日からご自身のプロジェクトでIronOCRを使い始めるには、無料トライアルをお試しください。
このガイドでは、コード例と結果オブジェクトのプロパティを使って、IronOCR でスクリーンショットのテキストを認識する方法を説明します。特定領域の処理、複数言語の処理、バッチ処理の高速化も取り上げます。
最小限のワークフロー(5ステップ)
- スクリーンショットを読み取るためのC#ライブラリをダウンロード
- 処理対象のスクリーンショット画像を読み込みます。
ReadScreenshotメソッドを使用して画像からテキストを抽出します- OcrPhotoResultプロパティから抽出データを取得し、後続の処理に使用します。
- 必要に応じて、抽出したテキストを保存またはエクスポートします。
ReadScreenshotを使用してスクリーンショットからテキストを抽出する方法
IronOCRでスクリーンショットを読み込むには、ReadScreenshotメソッドを利用してください。これはOcrInputをパラメータとして受け取ります。 このメソッドは、ライブラリの標準的なReadよりもスクリーンショットに最適化されています。 最適化には、UI要素の自動検出、アンチエイリアスフォントの処理の改善、異なるオペレーティングシステム間でのシステムフォントの認識の改善などが含まれます。
どのようなスクリーンショットが最適ですか?
以下のコード例では、さまざまなフォントやサイズのテキストを含む画像を入力に使います。ReadScreenshot メソッドは、特に次のようなテキストの認識に適しています。
- システムUIフォント(Windows、macOS、Linux)
- 最新アプリケーションのアンチエイリアステキスト
- フォントサイズとスタイルの混在
- 複雑な背景に重ねられたテキスト
- コンソール出力とターミナルのスクリーンショット
- さまざまなウェブフォントを使用したブラウザコンテンツ
最適な結果を得るには、画面本来の解像度でスクリーンショットを撮影し、圧縮せずに保存してください。このメソッドはさまざまな画像形式に対応していますが、可逆圧縮のPNG形式が文字の鮮明さを最もよく保ちます。

ReadScreenshotメソッドを実装する方法
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);
Console.WriteLine(result.TextRegions.First().Region.X);
Console.WriteLine(result.TextRegions.Last().Region.Width);
Console.WriteLine(result.Confidence);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);
Console.WriteLine(result.TextRegions.First().Region.X);
Console.WriteLine(result.TextRegions.Last().Region.Width);
Console.WriteLine(result.Confidence);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)
Console.WriteLine(result.TextRegions.First().Region.X)
Console.WriteLine(result.TextRegions.Last().Region.Width)
Console.WriteLine(result.Confidence)
End UsingImports 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)
Console.WriteLine(result.TextRegions.First().Region.X)
Console.WriteLine(result.TextRegions.Last().Region.Width)
Console.WriteLine(result.Confidence)
End Using複雑なシナリオの場合は、前処理を追加してスクリーンショットの読み取り処理を強化します:
using IronOcr;
using System;
// Configure OCR engine with specific settings for screenshots
var ocr = new IronTesseract()
{
// Set language for better accuracy with non-English content
Language = OcrLanguage.English,
// Configure for screen-resolution images
Configuration = new TesseractConfiguration()
{
PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd,
// Enable whitelist for specific characters if needed
WhiteListCharacters = null
}
};
using var inputScreenshot = new OcrInput();
// Load screenshot with specific DPI setting for consistency
inputScreenshot.LoadImage("screenshotOCR.png");
// Apply preprocessing for better accuracy
inputScreenshot.DeNoise(); // Remove screenshot artifacts
inputScreenshot.Sharpen(); // Enhance text edges
// Perform OCR with error handling
try
{
OcrPhotoResult result = ocr.ReadScreenShot(inputScreenshot);
// Process results with confidence threshold
if (result.Confidence > 0.8)
{
Console.WriteLine($"High confidence text extraction: {result.Text}");
}
else
{
Console.WriteLine("Low confidence - consider image preprocessing");
}
}
catch (Exception ex)
{
Console.WriteLine($"OCR Error: {ex.Message}");
}using IronOcr;
using System;
// Configure OCR engine with specific settings for screenshots
var ocr = new IronTesseract()
{
// Set language for better accuracy with non-English content
Language = OcrLanguage.English,
// Configure for screen-resolution images
Configuration = new TesseractConfiguration()
{
PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd,
// Enable whitelist for specific characters if needed
WhiteListCharacters = null
}
};
using var inputScreenshot = new OcrInput();
// Load screenshot with specific DPI setting for consistency
inputScreenshot.LoadImage("screenshotOCR.png");
// Apply preprocessing for better accuracy
inputScreenshot.DeNoise(); // Remove screenshot artifacts
inputScreenshot.Sharpen(); // Enhance text edges
// Perform OCR with error handling
try
{
OcrPhotoResult result = ocr.ReadScreenShot(inputScreenshot);
// Process results with confidence threshold
if (result.Confidence > 0.8)
{
Console.WriteLine($"High confidence text extraction: {result.Text}");
}
else
{
Console.WriteLine("Low confidence - consider image preprocessing");
}
}
catch (Exception ex)
{
Console.WriteLine($"OCR Error: {ex.Message}");
}Imports IronOcr
Imports System
' Configure OCR engine with specific settings for screenshots
Dim ocr As New IronTesseract() With {
' Set language for better accuracy with non-English content
.Language = OcrLanguage.English,
' Configure for screen-resolution images
.Configuration = New TesseractConfiguration() With {
.PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd,
' Enable whitelist for specific characters if needed
.WhiteListCharacters = Nothing
}
}
Using inputScreenshot As New OcrInput()
' Load screenshot with specific DPI setting for consistency
inputScreenshot.LoadImage("screenshotOCR.png")
' Apply preprocessing for better accuracy
inputScreenshot.DeNoise() ' Remove screenshot artifacts
inputScreenshot.Sharpen() ' Enhance text edges
' Perform OCR with error handling
Try
Dim result As OcrPhotoResult = ocr.ReadScreenShot(inputScreenshot)
' Process results with confidence threshold
If result.Confidence > 0.8 Then
Console.WriteLine($"High confidence text extraction: {result.Text}")
Else
Console.WriteLine("Low confidence - consider image preprocessing")
End If
Catch ex As Exception
Console.WriteLine($"OCR Error: {ex.Message}")
End Try
End UsingImports IronOcr
Imports System
' Configure OCR engine with specific settings for screenshots
Dim ocr As New IronTesseract() With {
' Set language for better accuracy with non-English content
.Language = OcrLanguage.English,
' Configure for screen-resolution images
.Configuration = New TesseractConfiguration() With {
.PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd,
' Enable whitelist for specific characters if needed
.WhiteListCharacters = Nothing
}
}
Using inputScreenshot As New OcrInput()
' Load screenshot with specific DPI setting for consistency
inputScreenshot.LoadImage("screenshotOCR.png")
' Apply preprocessing for better accuracy
inputScreenshot.DeNoise() ' Remove screenshot artifacts
inputScreenshot.Sharpen() ' Enhance text edges
' Perform OCR with error handling
Try
Dim result As OcrPhotoResult = ocr.ReadScreenShot(inputScreenshot)
' Process results with confidence threshold
If result.Confidence > 0.8 Then
Console.WriteLine($"High confidence text extraction: {result.Text}")
Else
Console.WriteLine("Low confidence - consider image preprocessing")
End If
Catch ex As Exception
Console.WriteLine($"OCR Error: {ex.Message}")
End Try
End UsingOcrPhotoResultが返すプロパティ

コンソール出力には、スクリーンショットから抽出されたすべてのテキストが表示されます。以下では、OcrPhotoResult のプロパティとその使い方を説明します。
Text: OCR入力から抽出したテキストです。認識されたすべてのテキストを1つの文字列にまとめ、改行や空白を含む元のレイアウトを保持します。Confidence: 認識の統計的な信頼度を0~1で示す倍精度浮動小数点型のプロパティです。1が最高値です。アプリケーションの品質管理に使用できます。TextRegion: スクリーンショット上でテキストが見つかった領域を返すプロパティを持つTextRegionオブジェクトの配列。 デフォルトでは、すべてのTextRegionはIronOCRモデルから派生したRectangleクラスです。 それにはxとyの座標、そして矩形のheightとwidthが含まれています。
TextRegionsを使用すると、次のことが可能です:
- スクリーンショットの特定領域からテキストを抽出
- UI要素の位置を特定
- テキスト位置に基づいてクリック可能なオーバーレイを作成
- 特定の領域を対象とするOCR処理を実装
以下は、個々のテキスト領域を処理する例です:
using IronOcr;
using System;
using System.Linq;
var ocr = new IronTesseract();
using var input = new OcrInput();
input.LoadImage("screenshot.png");
OcrPhotoResult result = ocr.ReadScreenShot(input);
// Process each text region individually
foreach (var region in result.TextRegions)
{
Console.WriteLine($"Text: {region.TextInRegion}");
Console.WriteLine($"Location: X={region.Region.X}, Y={region.Region.Y}");
Console.WriteLine($"Size: {region.Region.Width}x{region.Region.Height}");
Console.WriteLine($"Confidence: {region.RegionConf:P2}");
Console.WriteLine("---");
}
// Find specific UI elements by text content
var buttonRegion = result.TextRegions
.FirstOrDefault(r => r.TextInRegion.Contains("Submit", StringComparison.OrdinalIgnoreCase));
if (buttonRegion != null)
{
Console.WriteLine($"Found button at: {buttonRegion.Region.X}, {buttonRegion.Region.Y}");
}using IronOcr;
using System;
using System.Linq;
var ocr = new IronTesseract();
using var input = new OcrInput();
input.LoadImage("screenshot.png");
OcrPhotoResult result = ocr.ReadScreenShot(input);
// Process each text region individually
foreach (var region in result.TextRegions)
{
Console.WriteLine($"Text: {region.TextInRegion}");
Console.WriteLine($"Location: X={region.Region.X}, Y={region.Region.Y}");
Console.WriteLine($"Size: {region.Region.Width}x{region.Region.Height}");
Console.WriteLine($"Confidence: {region.RegionConf:P2}");
Console.WriteLine("---");
}
// Find specific UI elements by text content
var buttonRegion = result.TextRegions
.FirstOrDefault(r => r.TextInRegion.Contains("Submit", StringComparison.OrdinalIgnoreCase));
if (buttonRegion != null)
{
Console.WriteLine($"Found button at: {buttonRegion.Region.X}, {buttonRegion.Region.Y}");
}Imports IronOcr
Imports System
Imports System.Linq
Dim ocr = New IronTesseract()
Using input = New OcrInput()
input.LoadImage("screenshot.png")
Dim result As OcrPhotoResult = ocr.ReadScreenShot(input)
' Process each text region individually
For Each region In result.TextRegions
Console.WriteLine($"Text: {region.TextInRegion}")
Console.WriteLine($"Location: X={region.Region.X}, Y={region.Region.Y}")
Console.WriteLine($"Size: {region.Region.Width}x{region.Region.Height}")
Console.WriteLine($"Confidence: {region.RegionConf:P2}")
Console.WriteLine("---")
Next
' Find specific UI elements by text content
Dim buttonRegion = result.TextRegions _
.FirstOrDefault(Function(r) r.TextInRegion.Contains("Submit", StringComparison.OrdinalIgnoreCase))
If buttonRegion IsNot Nothing Then
Console.WriteLine($"Found button at: {buttonRegion.Region.X}, {buttonRegion.Region.Y}")
End If
End UsingImports IronOcr
Imports System
Imports System.Linq
Dim ocr = New IronTesseract()
Using input = New OcrInput()
input.LoadImage("screenshot.png")
Dim result As OcrPhotoResult = ocr.ReadScreenShot(input)
' Process each text region individually
For Each region In result.TextRegions
Console.WriteLine($"Text: {region.TextInRegion}")
Console.WriteLine($"Location: X={region.Region.X}, Y={region.Region.Y}")
Console.WriteLine($"Size: {region.Region.Width}x{region.Region.Height}")
Console.WriteLine($"Confidence: {region.RegionConf:P2}")
Console.WriteLine("---")
Next
' Find specific UI elements by text content
Dim buttonRegion = result.TextRegions _
.FirstOrDefault(Function(r) r.TextInRegion.Contains("Submit", StringComparison.OrdinalIgnoreCase))
If buttonRegion IsNot Nothing Then
Console.WriteLine($"Found button at: {buttonRegion.Region.X}, {buttonRegion.Region.Y}")
End If
End Using高度なスクリーンショット処理技術
多言語スクリーンショットの処理
複数言語を含むスクリーンショットを扱う場合、IronOCRは信頼できる多言語サポートを提供します。 これは、国際的なアプリケーションや多言語ユーザーインターフェイスのスクリーンショットに役立ちます:
using IronOcr;
// Configure for multiple languages
var ocr = new IronTesseract();
ocr.AddSecondaryLanguage(OcrLanguage.ChineseSimplified);
ocr.AddSecondaryLanguage(OcrLanguage.Japanese);
using var input = new OcrInput();
input.LoadImage("multilingual-screenshot.png");
// Process with language detection
OcrPhotoResult result = ocr.ReadScreenShot(input);
Console.WriteLine($"Extracted multilingual text: {result.Text}");using IronOcr;
// Configure for multiple languages
var ocr = new IronTesseract();
ocr.AddSecondaryLanguage(OcrLanguage.ChineseSimplified);
ocr.AddSecondaryLanguage(OcrLanguage.Japanese);
using var input = new OcrInput();
input.LoadImage("multilingual-screenshot.png");
// Process with language detection
OcrPhotoResult result = ocr.ReadScreenShot(input);
Console.WriteLine($"Extracted multilingual text: {result.Text}");Imports IronOcr
' Configure for multiple languages
Dim ocr As New IronTesseract()
ocr.AddSecondaryLanguage(OcrLanguage.ChineseSimplified)
ocr.AddSecondaryLanguage(OcrLanguage.Japanese)
Using input As New OcrInput()
input.LoadImage("multilingual-screenshot.png")
' Process with language detection
Dim result As OcrPhotoResult = ocr.ReadScreenShot(input)
Console.WriteLine($"Extracted multilingual text: {result.Text}")
End UsingImports IronOcr
' Configure for multiple languages
Dim ocr As New IronTesseract()
ocr.AddSecondaryLanguage(OcrLanguage.ChineseSimplified)
ocr.AddSecondaryLanguage(OcrLanguage.Japanese)
Using input As New OcrInput()
input.LoadImage("multilingual-screenshot.png")
' Process with language detection
Dim result As OcrPhotoResult = ocr.ReadScreenShot(input)
Console.WriteLine($"Extracted multilingual text: {result.Text}")
End Usingバッチ処理用のパフォーマンス最適化
複数のスクリーンショットを処理する場合は、以下の最適化戦略を実行してください:
using IronOcr;
using System.Collections.Generic;
using System.Threading.Tasks;
public async Task ProcessScreenshotBatchAsync(List<string> screenshotPaths)
{
var ocr = new IronTesseract();
// Process screenshots in parallel for better performance
var tasks = screenshotPaths.Select(async path =>
{
using var input = new OcrInput();
input.LoadImage(path);
// Apply consistent preprocessing
input.DeNoise();
var result = await Task.Run(() => ocr.ReadScreenShot(input));
return new { Path = path, Result = result };
});
var results = await Task.WhenAll(tasks);
// Process results
foreach (var item in results)
{
Console.WriteLine($"File: {item.Path}");
Console.WriteLine($"Text: {item.Result.Text}");
Console.WriteLine($"Confidence: {item.Result.Confidence:P2}");
}
}using IronOcr;
using System.Collections.Generic;
using System.Threading.Tasks;
public async Task ProcessScreenshotBatchAsync(List<string> screenshotPaths)
{
var ocr = new IronTesseract();
// Process screenshots in parallel for better performance
var tasks = screenshotPaths.Select(async path =>
{
using var input = new OcrInput();
input.LoadImage(path);
// Apply consistent preprocessing
input.DeNoise();
var result = await Task.Run(() => ocr.ReadScreenShot(input));
return new { Path = path, Result = result };
});
var results = await Task.WhenAll(tasks);
// Process results
foreach (var item in results)
{
Console.WriteLine($"File: {item.Path}");
Console.WriteLine($"Text: {item.Result.Text}");
Console.WriteLine($"Confidence: {item.Result.Confidence:P2}");
}
}Imports IronOcr
Imports System.Collections.Generic
Imports System.Threading.Tasks
Public Async Function ProcessScreenshotBatchAsync(screenshotPaths As List(Of String)) As Task
Dim ocr = New IronTesseract()
' Process screenshots in parallel for better performance
Dim tasks = screenshotPaths.Select(Async Function(path)
Using input = New OcrInput()
input.LoadImage(path)
' Apply consistent preprocessing
input.DeNoise()
Dim result = Await Task.Run(Function() ocr.ReadScreenShot(input))
Return New With {Key .Path = path, Key .Result = result}
End Using
End Function)
Dim results = Await Task.WhenAll(tasks)
' Process results
For Each item In results
Console.WriteLine($"File: {item.Path}")
Console.WriteLine($"Text: {item.Result.Text}")
Console.WriteLine($"Confidence: {item.Result.Confidence:P2}")
Next
End FunctionImports IronOcr
Imports System.Collections.Generic
Imports System.Threading.Tasks
Public Async Function ProcessScreenshotBatchAsync(screenshotPaths As List(Of String)) As Task
Dim ocr = New IronTesseract()
' Process screenshots in parallel for better performance
Dim tasks = screenshotPaths.Select(Async Function(path)
Using input = New OcrInput()
input.LoadImage(path)
' Apply consistent preprocessing
input.DeNoise()
Dim result = Await Task.Run(Function() ocr.ReadScreenShot(input))
Return New With {Key .Path = path, Key .Result = result}
End Using
End Function)
Dim results = Await Task.WhenAll(tasks)
' Process results
For Each item In results
Console.WriteLine($"File: {item.Path}")
Console.WriteLine($"Text: {item.Result.Text}")
Console.WriteLine($"Confidence: {item.Result.Confidence:P2}")
Next
End FunctionスクリーンショットOCRのベストプラクティス
- キャプチャ品質: ネイティブ解像度でスケーリングなしのスクリーンショットをキャプチャ
- 画像形式の選択: 画質を落とさないよう、可逆圧縮のPNG形式を使用
- 前処理: スクリーンショットのコンテンツに基づいて適切なフィルタを適用
- 信頼度のしきい値: 精度が重要なアプリケーションでは、信頼度に基づく検証を実装
- 進行状況の追跡: 時間のかかる処理では、進行状況の追跡を実装
一般的なユースケース
ReadScreenshotメソッドは次の用途に最適です:
- 自動UIテストと検証
- デジタル資産管理システム
- エラーメッセージをキャプチャするためのカスタマーサポートツール
- ドキュメント自動化
- スクリーンリーダー用のアクセシビリティツール
- ゲームおよびストリーミングアプリケーション
IronOCR機能との統合
スクリーンショットの読み取りは、IronOCRのほかの機能と組み合わせて使えます。OCR結果の操作ではさまざまな形式でデータを出力する方法を、Tesseractの設定では認識精度を細かく調整する方法を確認できます。
まとめ
IronOCR の ReadScreenshot メソッドは、スクリーンショットからのテキスト抽出に特化しています。専用の前処理、高い認識精度、詳細な結果データを活用して、スクリーンショットを安定して処理するアプリケーションを構築できます。自動化ツール、アクセシビリティ対応、データ抽出システムなどに対し、ReadScreenshot メソッドは本番環境に必要な性能と精度を備えています。
よくある質問
IronOCR の `ReadScreenshot` メソッドを使用する主な利点は何ですか?
IronOCR の ReadScreenshot メソッドは、スクリーンショットからのテキスト読み取りに最適化されており、自動ノイズ除去やUI要素検出などの機能を提供し、テキスト認識の精度を向上させます。
IronOCR の `ReadScreenshot` メソッドは、どの画像フォーマットに対応していますか?
IronOCR の ReadScreenshot メソッドは、PNG、JPG、BMP などの一般的なファイル形式をサポートしており、さまざまなスクリーンショットタイプに対応できます。
IronOCR はスクリーンショット内の異なるテキストフォントやサイズをどのように処理しますか?
IronOCR の ReadScreenshot メソッドは、システムUIフォント、アンチエイリアスされたテキスト、混合フォントサイズの認識に優れており、複雑な背景にオーバーレイされていても正確にテキストを抽出します。
IronOCR の `ReadScreenshot` メソッドは、多言語のスクリーンショットを処理できますか?
はい、IronOCR はマルチ言語テキスト認識の信頼できるサポートを提供しており、複数の国際言語が含まれるスクリーンショットにも効果的です。
IronOCR はスクリーンショットからのテキスト抽出を改善するためにどのような前処理技術を使用しますか?
IronOCR は、ノイズ除去やコントラスト強調などの前処理技術を使用して、スクリーンショットからのテキスト抽出精度を向上させます。
IronOCR の `ReadScreenshot` メソッドを使用するために必要なツールをインストールするにはどうすればよいですか?
ReadScreenshot 関数を使用するには、NuGetからIronOcrライブラリをインストールし、高度なスクリーンショットテキスト認識機能のためにオプションの IronOcr.Extension.AdvancedScan パッケージもインストールしてください。
`ReadScreenshot` メソッドを使用するとき、`OcrPhotoResult` はどのようなプロパティを返しますか?
OcrPhotoResult は、抽出されたテキスト、信頼度スコア、テキスト領域などのプロパティを返し、認識されたテキストの詳細情報とそのスクリーンショット内の位置を提供します。
IronOCR はスクリーンショットからのテキスト抽出で高い精度をどのように保証しますか?
IronOCR は、アンチエイリアスフォントやUIフォントの自動検出などの最適化を行い、スクリーンショット特有の課題に適した高度な前処理を適用して、高い精度を保証します。
IronOCR を使用する場合、スクリーンショットには PNG フォーマットが最適ですか?
はい、PNG フォーマットはロスレス圧縮によりテキストの明瞭さを最もよく保つため、スクリーンショットには推奨され、より正確なOCR結果が得られます。
IronOCR の `ReadScreenshot` メソッドの一般的なユースケースは何ですか?
ReadScreenshot メソッドの一般的なユースケースには、自動UIテスト、デジタル資産管理、カスタマーサポートツール、ドキュメントの自動化、スクリーンリーダーのアクセシビリティツールなどが含まれます。
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。