Iron TesseractをC#で使用する方法
C# の Iron Tesseract は、IronTesseract インスタンスを作成し、それに言語と OCR 設定を構成してから、画像または PDF を含む OcrInput オブジェクトに対して Read() メソッドを呼び出すことで使用します。 これは、Tesseract 5の最適化エンジンを使用して、テキストの画像を検索可能なPDFに変換します。
IronOCR は、Iron Tesseract と呼ばれるカスタマイズおよび最適化された Tesseract 5 を利用するための直感的な API を提供します。 IronOCRとIronTesseractを使用することで、テキストの画像やスキャンされた文書をテキストと検索可能なPDFに変換できます。 ライブラリは125の国際言語をサポートしており、バーコード読み取りやコンピュータビジョンのような高度な機能を含んでいます。
この例は、IronTesseractを特定の設定で構成し、1行のコードでOCRを実行する方法を示しています。
-
1IronOCR を NuGet Package Manager でインストールします
-
2このコード スニペットをコピーして実行します。
var result = new IronOcr.IronTesseract { Language = IronOcr.OcrLanguage.English, Configuration = new IronOcr.TesseractConfiguration { ReadBarCodes = false, RenderSearchablePdf = true, WhiteListCharacters = "ABCabc123" } }.Read("image.png");Dim result = New IronOcr.IronTesseract With { .Language = IronOcr.OcrLanguage.English, .Configuration = New IronOcr.TesseractConfiguration With { .ReadBarCodes = False, .RenderSearchablePdf = True, .WhiteListCharacters = "ABCabc123" } }.Read("image.png")Dim result = New IronOcr.IronTesseract With { .Language = IronOcr.OcrLanguage.English, .Configuration = New IronOcr.TesseractConfiguration With { .ReadBarCodes = False, .RenderSearchablePdf = True, .WhiteListCharacters = "ABCabc123" } }.Read("image.png") -
3実際の環境でテストするためにデプロイする
今日からご自身のプロジェクトでIronOCRを使い始めるには、無料トライアルをお試しください。
基本的なOCRワークフロー
- NuGetでOCRライブラリをインストールして画像を読み取る
- カスタム
Tesseract 5を活用してOCRを実行する - 画像やPDFファイルなどの処理したいドキュメントをロードする
- 抽出されたテキストをコンソールやファイルに出力する
- 結果を検索可能なPDFとして保存する
IronTesseractインスタンスをどのように作成しますか?
このコードでTesseractオブジェクトを初期化する:
using IronOcr;
IronTesseract ocr = new IronTesseract();using IronOcr;
IronTesseract ocr = new IronTesseract();Imports IronOcr
Dim ocr As New IronTesseract()Imports IronOcr
Dim ocr As New IronTesseract()IronTesseractの挙動をカスタマイズするために、異なる言語を選択したり、バーコード読み取りを有効にしたり、文字をホワイトリスト/ブラックリストに登録できます。 IronOCRは、OCRプロセスを微調整するための包括的な設定オプションを提供します:
IronTesseract ocr = new IronTesseract
{
Configuration = new TesseractConfiguration
{
ReadBarCodes = false,
RenderHocr = true,
TesseractVariables = null,
WhiteListCharacters = null,
BlackListCharacters = "`ë|^",
},
MultiThreaded = false,
Language = OcrLanguage.English,
EnableTesseractConsoleMessages = true, // False as default
};IronTesseract ocr = new IronTesseract
{
Configuration = new TesseractConfiguration
{
ReadBarCodes = false,
RenderHocr = true,
TesseractVariables = null,
WhiteListCharacters = null,
BlackListCharacters = "`ë|^",
},
MultiThreaded = false,
Language = OcrLanguage.English,
EnableTesseractConsoleMessages = true, // False as default
};Dim ocr As New IronTesseract With {
.Configuration = New TesseractConfiguration With {
.ReadBarCodes = False,
.RenderHocr = True,
.TesseractVariables = Nothing,
.WhiteListCharacters = Nothing,
.BlackListCharacters = "`ë|^"
},
.MultiThreaded = False,
.Language = OcrLanguage.English,
.EnableTesseractConsoleMessages = True
}Dim ocr As New IronTesseract With {
.Configuration = New TesseractConfiguration With {
.ReadBarCodes = False,
.RenderHocr = True,
.TesseractVariables = Nothing,
.WhiteListCharacters = Nothing,
.BlackListCharacters = "`ë|^"
},
.MultiThreaded = False,
.Language = OcrLanguage.English,
.EnableTesseractConsoleMessages = True
}設定が完了すると、Tesseractの機能を使用してOcrInputオブジェクトを読み取ることができます。 OcrInputクラスは、さまざまな入力形式を読み込むための柔軟な方法を提供します:
IronTesseract ocr = new IronTesseract();
using OcrInput input = new OcrInput();
input.LoadImage("attachment.png");
OcrResult result = ocr.Read(input);
string text = result.Text;IronTesseract ocr = new IronTesseract();
using OcrInput input = new OcrInput();
input.LoadImage("attachment.png");
OcrResult result = ocr.Read(input);
string text = result.Text;Dim ocr As New IronTesseract()
Using input As New OcrInput()
input.LoadImage("attachment.png")
Dim result As OcrResult = ocr.Read(input)
Dim text As String = result.Text
End UsingDim ocr As New IronTesseract()
Using input As New OcrInput()
input.LoadImage("attachment.png")
Dim result As OcrResult = ocr.Read(input)
Dim text As String = result.Text
End Using複雑なシナリオでは、マルチスレッド機能を活用して、複数の文書を同時に処理し、バッチ操作のパフォーマンスを大幅に向上させることができます。 IronTesseract には、その作業がどれだけ並行して実行されるかを制限する2つのプロパティもあります。MaxDegreeOfParallelism は単一の Read 呼び出し内で同時に OCR 処理されるページの数を制限し、MultiThreaded は最低限で最も予測可能なメモリフットプリントのために並行読み取りを完全にオフにします。 これらは、非同期およびマルチスレッドガイドでカバーされています。
Advanced Tesseractの設定変数とは何ですか?
IronOcr Tesseractインターフェースは、IronOcr.TesseractConfigurationクラスを通じてTesseractの設定変数を完全に制御することができます。 これらの高度な設定は、低品質のスキャンを修正するまたは特定の文書タイプを読み取るなど、特定の使用例に応じたOCRパフォーマンスの最適化を可能にします。
コードでTesseract設定をどのように使用しますか?
using IronOcr;
using System;
IronTesseract Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.English;
Ocr.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd;
// Configure Tesseract Engine
Ocr.Configuration.TesseractVariables["tessedit_parallelize"] = false;
using var input = new OcrInput();
input.LoadImage("/path/file.png");
OcrResult Result = Ocr.Read(input);
Console.WriteLine(Result.Text);using IronOcr;
using System;
IronTesseract Ocr = new IronTesseract();
Ocr.Language = OcrLanguage.English;
Ocr.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd;
// Configure Tesseract Engine
Ocr.Configuration.TesseractVariables["tessedit_parallelize"] = false;
using var input = new OcrInput();
input.LoadImage("/path/file.png");
OcrResult Result = Ocr.Read(input);
Console.WriteLine(Result.Text);Imports IronOcr
Imports System
Private Ocr As New IronTesseract()
Ocr.Language = OcrLanguage.English
Ocr.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd
' Configure Tesseract Engine
Ocr.Configuration.TesseractVariables("tessedit_parallelize") = False
Dim input = New OcrInput()
input.LoadImage("/path/file.png")
Dim Result As OcrResult = Ocr.Read(input)
Console.WriteLine(Result.Text)Imports IronOcr
Imports System
Private Ocr As New IronTesseract()
Ocr.Language = OcrLanguage.English
Ocr.Configuration.PageSegmentationMode = TesseractPageSegmentationMode.AutoOsd
' Configure Tesseract Engine
Ocr.Configuration.TesseractVariables("tessedit_parallelize") = False
Dim input = New OcrInput()
input.LoadImage("/path/file.png")
Dim Result As OcrResult = Ocr.Read(input)
Console.WriteLine(Result.Text)IronOCRはまた、異なる文書タイプ向けに専門的な設定を提供します。例えば、パスポートを読み取るまたはMICR小切手を処理する時に、特定の前処理フィルタと領域検出を適用して精度を向上させることができます。
財務文書の構成例
// Example: Configure for financial documents
IronTesseract ocr = new IronTesseract
{
Language = OcrLanguage.English,
Configuration = new TesseractConfiguration
{
PageSegmentationMode = TesseractPageSegmentationMode.SingleBlock,
TesseractVariables = new Dictionary<string, object>
{
["tessedit_char_whitelist"] = "0123456789.$,",
["textord_heavy_nr"] = false,
["edges_max_children_per_outline"] = 10
}
}
};
// Apply preprocessing filters for better accuracy
using OcrInput input = new OcrInput();
input.LoadPdf("financial-document.pdf");
input.Deskew();
input.EnhanceResolution(300);
OcrResult result = ocr.Read(input);// Example: Configure for financial documents
IronTesseract ocr = new IronTesseract
{
Language = OcrLanguage.English,
Configuration = new TesseractConfiguration
{
PageSegmentationMode = TesseractPageSegmentationMode.SingleBlock,
TesseractVariables = new Dictionary<string, object>
{
["tessedit_char_whitelist"] = "0123456789.$,",
["textord_heavy_nr"] = false,
["edges_max_children_per_outline"] = 10
}
}
};
// Apply preprocessing filters for better accuracy
using OcrInput input = new OcrInput();
input.LoadPdf("financial-document.pdf");
input.Deskew();
input.EnhanceResolution(300);
OcrResult result = ocr.Read(input);Imports IronOcr
' Example: Configure for financial documents
Dim ocr As New IronTesseract With {
.Language = OcrLanguage.English,
.Configuration = New TesseractConfiguration With {
.PageSegmentationMode = TesseractPageSegmentationMode.SingleBlock,
.TesseractVariables = New Dictionary(Of String, Object) From {
{"tessedit_char_whitelist", "0123456789.$,"},
{"textord_heavy_nr", False},
{"edges_max_children_per_outline", 10}
}
}
}
' Apply preprocessing filters for better accuracy
Using input As New OcrInput()
input.LoadPdf("financial-document.pdf")
input.Deskew()
input.EnhanceResolution(300)
Dim result As OcrResult = ocr.Read(input)
End UsingImports IronOcr
' Example: Configure for financial documents
Dim ocr As New IronTesseract With {
.Language = OcrLanguage.English,
.Configuration = New TesseractConfiguration With {
.PageSegmentationMode = TesseractPageSegmentationMode.SingleBlock,
.TesseractVariables = New Dictionary(Of String, Object) From {
{"tessedit_char_whitelist", "0123456789.$,"},
{"textord_heavy_nr", False},
{"edges_max_children_per_outline", 10}
}
}
}
' Apply preprocessing filters for better accuracy
Using input As New OcrInput()
input.LoadPdf("financial-document.pdf")
input.Deskew()
input.EnhanceResolution(300)
Dim result As OcrResult = ocr.Read(input)
End Using完全なTesseract構成変数のリストは何ですか?
これらはIronTesseract.Configuration.TesseractVariables["key"] = value;を使用して設定できます。 設定変数を使用すると、特定のドキュメントで最適な結果を得るためにOCRの動作を微調整することができます。 OCRパフォーマンスの最適化に関する詳細ガイダンスは、当社の高速OCR設定ガイドを参照してください。
| Tesseract 設定変数 | Default | 意味 |
|---|---|---|
| classify_num_cp_levels | 3 | クラスプルーナーレベルの数 |
| textord_debug_tabfind | 0 | デバッグタブの検出 |
| textord_debug_bugs | 0 | タブ検索のバグに関する出力をオンにする |
| textord_testregion_left | -1 | デバッグレポートの四角形の左端 |
| textord_testregion_top | -1 | デバッグレポートの四角形の上端 |
| textord_testregion_right | 2147483647 | デバッグ長方形の右端 |
| textord_testregion_bottom | 2147483647 | デバッグ用四角形の下端 |
| textord_tabfind_show_partitions | 0 | パーティション境界を表示し、>1 の場合は待機します |
| devanagari_split_debuglevel | 0 | 分割された shiro-rekha プロセスのデバッグ レベル。 |
| edges_max_children_per_outline | 10 | キャラクターアウトライン内の子の最大数 |
| edges_max_children_layers | 5 | 文字アウトライン内のネストされた子の最大レイヤー数 |
| edges_children_per_grandchild | 10 | チャッキングアウトラインの重要度比 |
| edges_children_count_limit | 45 | ブロブに許容される最大穴数 |
| edges_min_nonhole | 12 | ボックス内の文字の最小ピクセル数 |
| edges_patharea_ratio | 40 | 許容可能な子供の輪郭の最大レンズ面積 |
| textord_fp_chop_error | 2 | チョップセルの最大許容曲げ |
| textord_tabfind_show_images | 0 | 画像のブロブを表示 |
| textord_skewsmooth_offset | 4 | スムーズファクター |
| textord_skewsmooth_offset2 | 1 | スムーズファクター |
| textord_test_x | -2147483647 | 検査患者の座標 |
| textord_test_y | -2147483647 | 検査患者の座標 |
| textord_min_blobs_in_row | 4 | 勾配をカウントする前の最小ブロブ数 |
| textord_spline_minblobs | 8 | 各スプラインセグメントの最小ブロブ数 |
| textord_spline_medianwin | 6 | スプライン分割のウィンドウサイズ |
| textord_max_blob_overlaps | 4 | 大きなブロブが重ねられるブロブの最大数 |
| textord_min_xheight | 10 | 最小信頼ピクセルxheight |
| textord_lms_line_trials | 12 | 実行するラインフィットの数 |
| oldbl_holed_losscount | 10 | フォールバックラインが使用される前の最大損失 |
| pitsync_linear_version | 6 | 新しい高速アルゴリズムを使用する |
| pitsync_fake_depth | 1 | 最大前進偽造生成 |
| textord_tabfind_show_strokewidths | 0 | 線幅を表示 |
| textord_dotmatrix_gap | 3 | 壊れたピクセルピッチの最大ピクセルギャップ |
| textord_debug_block | 0 | デバッグを行うブロック |
| textord_pitch_range | 2 | ピッチ上の最大範囲テスト |
| textord_words_veto_power | 5 | 拒否権を上回って可決するために必要な行数 |
| equationdetect_save_bi_image | 0 | 入力したbi画像を保存 |
| equationdetect_save_spt_image | 0 | 特殊文字画像を保存 |
| equationdetect_save_seed_image | 0 | シード画像を保存する |
| equationdetect_save_merged_image | 0 | 結合した画像を保存する |
| poly_debug | 0 | 古いポリゴンをデバッグする |
| poly_wide_objects_better | 1 | 広いものについてはより正確な概算 |
| wordrec_display_splits | 0 | 分割表示 |
| textord_debug_printable | 0 | デバッグウィンドウを印刷可能にする |
| textord_space_size_is_variable | 0 | true の場合、文字のピッチは固定されていますが、単語区切りのスペースの幅は可変であると見なされます。 |
| textord_tabfind_show_initial_partitions | 0 | パーティション境界を表示 |
| textord_tabfind_show_reject_blobs | 0 | ノイズとして拒否されたブロブを表示 |
| textord_tabfind_show_columns | 0 | 列の境界を表示 |
| textord_tabfind_show_blocks | 0 | 最終ブロック境界を表示 |
| textord_tabfind_find_tables | 1 | 実行テーブル検出 |
| devanagari_split_debugimage | 0 | 分割された shiro-rekha プロセスのデバッグ イメージを作成するかどうか。 |
| textord_show_fixed_cuts | 0 | 固定ピッチのセル境界を描く |
| edges_use_new_outline_complexity | 0 | 新しいアウトライン複雑度モジュールを使用する |
| edges_debug | 0 | このモジュールのデバッグをオンにする |
| edges_children_fix | 0 | キャラのような子の箱型の親を削除する |
| gapmap_debug | 0 | どのブロックにテーブルがあるかを伝える |
| gapmap_use_ends | 0 | 行の最初と最後に大きなスペースを使用する |
| gapmap_no_isolated_quanta | 0 | ギャップが2クォンタム以上であることを確認する |
| textord_heavy_nr | 0 | ノイズを徹底的に除去 |
| textord_show_initial_rows | 0 | 行の累積を表示 |
| textord_show_parallel_rows | 0 | ページ相関行を表示 |
| textord_show_expanded_rows | 0 | 展開後に行を表示する |
| textord_show_final_rows | 0 | 最終フィッティング後の行を表示 |
| textord_show_final_blobs | 0 | 事前アサイン後のブロブ境界を表示する |
| textord_test_landscape | 0 | テストは陸上/港湾に関するものです |
| textord_parallel_baselines | 1 | 平行ベースラインを強制する |
| textord_straight_baselines | 0 | 直線ベースラインを強制する |
| textord_old_baselines | 1 | 古いベースラインアルゴリズムを使用する |
| textord_old_xheight | 0 | 古いxheightアルゴリズムを使用する |
| textord_fix_xheight_bug | 1 | スプラインベースラインを使用する |
| textord_fix_makerow_bug | 1 | 複数のベースラインを防ぐ |
| textord_debug_xheights | 0 | xheightアルゴリズムのテスト |
| textord_biased_skewcalc | 1 | 線の長さによるバイアススキューの推定 |
| textord_interpolating_skew | 1 | ギャップを補間する |
| textord_new_initial_xheight | 1 | テストxheightメカニズムを使用する |
| textord_debug_blob | 0 | テストBLOB情報を印刷する |
| textord_really_old_xheight | 0 | オリジナルのwiseowl xheightを使用する |
| textord_oldbl_debug | 0 | 古いベースライン生成をデバッグする |
| textord_debug_baselines | 0 | デバッグベースライン生成 |
| textord_oldbl_paradef | 1 | パラデフォルトメカニズムを使用する |
| textord_oldbl_split_splines | 1 | 分割された段付きスプライン |
| textord_oldbl_merge_parts | 1 | 疑わしいパーティションを結合する |
| oldbl_corrfix | 1 | 高さの相関関係を改善する |
| oldbl_xhfix | 0 | xheightのモードしきい値のバグを修正 |
| textord_ocropus_mode | 0 | オクロプスのベースラインを作成する |
| textord_tabfind_only_strokewidths | 0 | ストローク幅のみ実行 |
| textord_tabfind_show_initialtabs | 0 | タブ候補を表示 |
| textord_tabfind_show_finaltabs | 0 | タブベクトルを表示 |
| textord_show_tables | 0 | 表領域を表示 |
| textord_tablefind_show_mark | 0 | デバッグテーブルのマーキング手順の詳細 |
| textord_tablefind_show_stats | 0 | テーブル検索で使用されるページ統計を表示する |
| textord_tablefind_recognize_tables | 0 | テーブルレイアウトとフィルタリングのためのテーブル認識機能を有効にします。 |
| textord_all_prop | 0 | すべてのドキュメントはプロポーショナルテキストです |
| textord_debug_pitch_test | 0 | 固定ピッチテストのデバッグ |
| textord_disable_pitch_test | 0 | dp固定ピッチアルゴリズムをオフにする |
| textord_fast_pitch_test | 0 | さらに高速なピッチアルゴリズムを実行する |
| textord_debug_pitch_metric | 0 | 完全なメトリックを書く |
| textord_show_row_cuts | 0 | 行レベルのカットを描く |
| textord_show_page_cuts | 0 | ページレベルのカットを描く |
| textord_pitch_cheat | 0 | 固定/プロップの正しい答えを使用する |
| textord_blockndoc_fixed | 0 | ドキュメント/ブロック全体の固定ピッチを試みる |
| textord_show_initial_words | 0 | 別々の単語を表示 |
| textord_show_new_words | 0 | 別々の単語を表示 |
| textord_show_fixed_words | 0 | 強制的に固定ピッチの単語を表示する |
| textord_blocksall_fixed | 0 | プロップブロックについての不満 |
| textord_blocksall_prop | 0 | 固定ピッチブロックについての不満 |
| textord_blocksall_testing | 0 | 不満を言うときに統計をダンプする |
| textord_test_mode | 0 | 現在のテストを実行する |
| textord_pitch_rowsimilarity | 0.08 | 同一性のためのxheightの割合 |
| words_initial_lower | 0.5 | 最大初期クラスターサイズ |
| words_initial_upper | 0.15 | 最小初期クラスター間隔 |
| words_default_prop_nonspace | 0.25 | xheightの割合 |
| words_default_fixed_space | 0.75 | xheightの割合 |
| words_default_fixed_limit | 0.6 | 許容されるサイズの差異 |
| textord_words_definite_spread | 0.3 | 非ファジー間隔領域 |
| textord_spacesize_ratiofp | 2.8 | 最小スペース/非スペース比率 |
| textord_spacesize_ratioprop | 2 | 最小スペース/非スペース比率 |
| textord_fpiqr_ratio | 1.5 | ピッチIQR/ギャップIQR閾値 |
| textord_max_pitch_iqr | 0.2 | ピッチのXh分数ノイズ |
| textord_fp_min_width | 0.5 | 適切なブロブの最小幅 |
| textord_underline_offset | 0.1 | 無視するxの割合 |
| ambigs_debug_level | 0 | Unichar の曖昧さのデバッグレベル |
| classify_debug_level | 0 | デバッグレベルを分類する |
| classify_norm_method | 1 | 正規化方法... |
| matcher_debug_level | 0 | マッチャーデバッグレベル |
| matcher_debug_flags | 0 | マッチャーデバッグフラグ |
| classify_learning_debug_level | 0 | 学習デバッグレベル: |
| matcher_permanent_classes_min | 1 | 常設クラスの最小数 |
| プロトタイプ作成のためのmatcher_min_examples | 3 | 信頼できる構成しきい値 |
| プロトタイプ作成のための十分な例のマッチング | 5 | 曖昧さが見えなくても適応を可能にする |
| classify_adapt_proto_threshold | 230 | 適応型0-255における良好なプロトの閾値 |
| classify_adapt_feature_threshold | 230 | 適応0-255中の良好な特徴の閾値 |
| classify_class_pruner_threshold | 229 | クラス剪定しきい値 0-255 |
| classify_class_pruner_multiplier | 15 | クラスプルーナー乗数 0-255: |
| classify_cp_cutoff_strength | 7 | クラスプルーナーカットオフ強度: |
| classify_integer_matcher_multiplier | 10 | 整数マッチャー乗数 0-255: |
| dawg_debug_level | 0 | 一般的なデバッグ情報を表示するには 1 に設定し、詳細を表示するには 2 に設定し、すべてのデバッグメッセージを表示するには 3 に設定します。 |
| hyphen_debug_level | 0 | ハイフンでつながれた単語のデバッグ レベル。 |
| stopper_smallword_size | 2 | 辞書外の単語として扱われる辞書単語のサイズ |
| stopper_debug_level | 0 | ストッパーデバッグレベル |
| tessedit_truncate_wordchoice_log | 10 | リストに保持する最大単語数 |
| max_permuter_attempts | 10000 | 順列化の際に考慮する文字の最大選択肢数。この制限は、ユーザーパターンが指定されている場合に特に役立ちます。あまりにも一般的なパターンを指定すると、DAWG検索が過剰な数の選択肢を探索する可能性があるためです。 |
| repair_unchopped_blobs | 1 | 切り取られていないブロブを修正する |
| chop_debug | 0 | チョップデバッグ |
| chop_split_length | 10000 | 分割長さ |
| chop_same_distance | 2 | 同じ距離 |
| chop_min_outline_points | 6 | アウトライン上のポイントの最小数 |
| chop_seam_pile_size | 150 | seam_pile 内の最大シーム数 |
| chop_inside_angle | -50 | 最小内角曲げ |
| chop_min_outline_area | 2000 | 最小アウトライン領域 |
| chop_centered_maxwidth | 90 | 切り刻まれた(より小さい)ブロブの幅。これを超えると、切り刻まれたブロブが中心近くになくてもかまいません。 |
| chop_x_y_weight | 3 | X / Y 長さ 重量 |
| wordrec_debug_level | 0 | wordrecのデバッグレベル |
| wordrec_max_join_chunks | 4 | 関連付ける破片の最大数 |
| segsearch_debug_level | 0 | SegSearch デバッグレベル |
| segsearch_max_pain_points | 2000 | キューに保存される問題点の最大数 |
| segsearch_max_futile_classifications | 20 | より適切な単語の選択に至らなかったチャンクあたりの問題点分類の最大数。 |
| language_model_debug_level | 0 | 言語モデルのデバッグレベル |
| language_model_ngram_order | 8 | 文字ngramモデルの最大次数 |
| 言語モデルビタービリストの最大プルーニング可能数 | 10 | BLOB_CHOICEsに記録される各ビタビリスト内のプルーニング可能なエントリ(PrunablePath()がtrueであるエントリ)の最大数 |
| language_model_viterbi_list_max_size | 500 | BLOB_CHOICEに記録されるビタビリストの最大サイズ |
| language_model_min_compound_length | 3 | 複合語の最小長 |
| wordrec_display_segmentations | 0 | ディスプレイセグメンテーション |
| tessedit_pageseg_mode | 6 | ページ セグメント モード: 0 = osd のみ、1 = 自動 + osd、2 = 自動のみ、3 = 自動、4 = 列、5 = ブロック垂直、6 = ブロック、7 = 行、8 = 単語、9 = 単語円形、10 = 文字、11 = スパース テキスト、12 = スパース テキスト + osd、13 = 生の行 (tesseract/publictypes.h の PageSegMode 列挙型の値) |
| tessedit_ocr_engine_mode | 2 | 実行するOCRエンジン(Tesseract、LSTM、両方)を指定します。デフォルトでは、利用可能な最も精度の高いエンジンが読み込まれ、実行されます。 |
| pageseg_devanagari_split_strategy | 0 | ページ分割を実行するときに、デーヴァナーガリー文字の文書のトップライン分割プロセスを使用するかどうか。 |
| ocr_devanagari_split_strategy | 0 | OCR 実行中にデーヴァナーガリー文字文書のトップライン分割プロセスを使用するかどうか。 |
| bidi_debug | 0 | BiDiのデバッグレベル |
| applybox_debug | 1 | デバッグレベル |
| applybox_page | 0 | ボックスを適用するページ番号 |
| tessedit_bigram_debug | 0 | バイグラム修正のデバッグ出力の量。 |
| debug_noise_removal | 0 | 小さなアウトラインの再割り当てをデバッグする |
| noise_maxperblob | 8 | ブロブに適用する最大分音記号数 |
| noise_maxperword | 16 | 単語に適用できる発音区別記号の最大数 |
| debug_x_ht_level | 0 | デバッグの再見積もり |
| quality_min_initial_alphas_reqd | 2 | 良い言葉で言えばアルファ |
| tessedit_tess_adaption_mode | 39 | TESSの適応決定アルゴリズム |
| multilang_debug_level | 0 | マルチランゲージデバッグ情報を出力します。 |
| paragraph_debug_level | 0 | 段落のデバッグ情報を出力します。 |
| tessedit_preserve_min_wd_len | 2 | これより長いwdのみ保存します |
| crunch_rating_max | 10 | チャンネルごとの評価の調整長さ |
| crunch_pot_indicators | 1 | 潜在的指標はいくつ必要か |
| crunch_leave_lc_strings | 4 | 長い小文字の文字列を含む単語を圧縮しないでください |
| crunch_leave_uc_strings | 4 | 長い小文字の文字列を含む単語を圧縮しないでください |
| crunch_long_repetitions | 3 | 長い繰り返しで単語を覚える |
| crunch_debug | 0 | 書かれている通り |
| fixsp_non_noise_limit | 1 | 両側にノイズのない BLB がいくつありますか? |
| fixsp_done_mode | 1 | 間隔をあけるために何をするか |
| debug_fix_space_level | 0 | コンテキスト固定空間デバッグ |
| x_ht_acceptance_tolerance | 8 | フォントデータ外のブロブ上部の最大許容偏差 |
| x_ht_min_change | 8 | 実際に試す前のxhtの最小変更 |
| superscript_debug | 0 | 下付き文字と上付き文字修正プログラムのデバッグレベル |
| jpg_quality | 85 | JPEG品質レベルを設定する |
| user_defined_dpi | 0 | 入力画像のDPIを指定する |
| min_characters_to_try | 50 | OSD中に試行する最小文字数を指定します |
| suspect_level | 99 | 容疑者マーカーレベル |
| suspect_short_words | 2 | これより長い辞書ワードを疑わないでください |
| tessedit_reject_mode | 0 | 拒否アルゴリズム |
| tessedit_image_border | 2 | 画像のエッジ限界付近のRej blbs |
| min_sane_x_ht_pixels | 8 | これ以外のx-ht ltまたはeqを拒否します |
| tessedit_page_number | -1 | -1 -> すべてのページ、それ以外の場合は処理する特定のページ |
| tessedit_parallelize | 1 | 可能な場合は並行して実行する |
| lstm_choice_mode | 2 | hOCR出力に代替シンボルの選択肢を含めることができます。有効な入力値は0、1、2です。0がデフォルト値です。1を指定すると、タイムステップごとに代替シンボルの選択肢が含まれます。2を指定すると、代替シンボルの選択肢はラティスではなくCTCプロセスから抽出されます。選択肢は文字ごとにマッピングされます。 |
| lstm_choice_iterations | 5 | lstm_choice_mode でビームサーチのカスケード反復回数を設定します。結果を生成するには、lstm_choice_mode を 0 より大きい値に設定する必要があることに注意してください。 |
| tosp_debug_level | 0 | デバッグデータ |
| tosp_enough_space_samples_for_median | 3 | それとも平均を使うべきでしょうか |
| tosp_redo_kern_limit | 10 | 行の再推定に必要なサンプル数 |
| tosp_few_samples | 40 | テーブルとして扱うために必要なギャップの数(1つの大きなギャップ) |
| tosp_short_row | 20 | 証明書を使用するために必要なギャップはなく、証明書スペースは少ない |
| tosp_sanity_method | 1 | 愚かな行動を避ける方法 |
| textord_max_noise_size | 7 | ノイズのピクセルサイズ |
| textord_baseline_debug | 0 | ベースラインデバッグレベル |
| textord_noise_sizefraction | 10 | 最大値の大きさの割合 |
| textord_noise_translimit | 16 | 通常のブロブの遷移 |
| textord_noise_sncount | 1 | 行を保存するためのスーパーノルムBLOB |
| use_ambigs_for_adaption | 0 | キャラクターに適応するかどうかを決定するためにアンビグスを使用する |
| prioritize_division | 0 | ブロブの分割をチョッピングよりも優先する |
| classify_enable_learning | 1 | 適応分類器を有効にする |
| tess_cn_matching | 0 | 文字正規化マッチング |
| tess_bn_matching | 0 | ベースライン正規化マッチング |
| classify_enable_adaptive_matcher | 1 | 適応分類器を有効にする |
| classify_use_pre_adapted_templates | 0 | 事前に適応された分類テンプレートを使用する |
| classify_save_adapted_templates | 0 | 適応したテンプレートをファイルに保存する |
| classify_enable_adaptive_debugger | 0 | マッチデバッガーを有効にする |
| classify_nonlinear_norm | 0 | 非線形線密度正規化 |
| disable_character_fragments | 1 | 分類器の結果に文字の断片を含めない |
| classify_debug_character_fragments | 0 | フラグメントのトレーニング用のグラフィカルデバッグウィンドウを表示します |
| matcher_debug_separate_windows | 0 | マッチングのデバッグには 2 つの異なるウィンドウを使用します。1 つはプロト用、もう 1 つは機能用です。 |
| classify_bln_numeric_mode | 0 | 入力が数字[0-9]であると仮定します。 |
| load_system_dawg | 1 | システムワードドッグをロードします。 |
| load_freq_dawg | 1 | 頻繁に使用される単語 dawg を読み込みます。 |
| load_unambig_dawg | 1 | 明確な単語 dawg を読み込みます。 |
| load_punc_dawg | 1 | 句読点パターンを dawg にロードします。 |
| load_number_dawg | 1 | 数字パターンを dawg にロードします。 |
| load_bigram_dawg | 1 | 特別な単語のバイグラムを dawg にロードします。 |
| use_only_first_uft8_step | 0 | 対数確率を計算するときは、指定された文字列の最初の UTF8 ステップのみを使用します。 |
| stopper_no_acceptable_choices | 0 | AcceptableChoice() が常に false を返すようにします。すべてのセグメンテーションを調査する必要がある場合に便利です。 |
| segment_nonalphabetic_script | 0 | アルファベット特有のトリックは使用しないでください。筆記体や固定ピッチのスクリプトの場合は、traineddata設定ファイルでtrueに設定してください。 |
| save_doc_words | 0 | 文書を保存 |
| merge_fragments_in_matrix | 1 | 評価マトリックス内のフラグメントをマージし、マージ後に削除します |
| wordrec_enable_assoc | 1 | アソシエータの有効化 |
| force_word_assoc | 0 | enable_assoc の値に関わらず、associator を強制的に実行します。これは、コンポーネントのグループ化が必要な CJK 言語で使用されます。 |
| chop_enable | 1 | チョップ有効 |
| chop_vertical_creep | 0 | 垂直クリープ |
| chop_new_seam_pile | 1 | 新しいseam_pileを使用する |
| assume_fixed_pitch_char_segment | 0 | 文字分割に固定ピッチヒューリスティックを含める |
| wordrec_skip_no_truth_words | 0 | BlamerBundleに記録された真実の単語のみOCRを実行します |
| wordrec_debug_blamer | 0 | Blamerデバッグメッセージを出力する |
| wordrec_run_blamer | 0 | 間違いの責任を他人に押し付けようとする |
| save_alt_choices | 1 | チョッピングとセグメンテーション検索中に見つかった代替パスを保存する |
| language_model_ngram_on | 0 | 文字ngramモデルの使用をオン/オフにする |
| 言語モデルngram使用_最初のuft8ステップのみ | 0 | 対数確率を計算するときは、指定された文字列の最初の UTF8 ステップのみを使用します。 |
| 言語モデルngram空間_区切り言語 | 1 | 単語はスペースで区切られます |
| language_model_use_sigmoidal_certainty | 0 | 確実性のためにシグモイドスコアを使用する |
| tessedit_resegment_from_boxes | 0 | ボックスファイルからセグメンテーションとラベル付けを行う |
| tessedit_resegment_from_line_boxes | 0 | 単語/行ボックスファイルから文字ボックスファイルへの変換 |
| tessedit_train_from_boxes | 0 | ボックス化された文字からトレーニングデータを生成する |
| tessedit_make_boxes_from_boxes | 0 | ボックス化された文字からさらにボックスを生成する |
| tessedit_train_line_recognizer | 0 | 入力を行に分割し、ボックスがある場合は再マップする |
| tessedit_dump_pageseg_images | 0 | ページ分割中に作成された中間画像をダンプする |
| tessedit_do_invert | 1 | LSTMRecognizeWordで画像を反転してみましょう |
| tessedit_ambigs_training | 0 | 曖昧さに対するトレーニングを実行する |
| tessedit_adaption_debug | 0 | 適応のためのデバッグ情報を生成して印刷する |
| applybox_learn_chars_and_char_frags_mode | 0 | 文字の断片(特別な低露出モードで行われる)と断片化されていない文字の両方を学習します。 |
| applybox_learn_ngrams_mode | 0 | 各境界ボックスにはngramが含まれていると想定されます。アウトラインが水平方向に重なり合うngramのみを学習します。 |
| tessedit_display_outwords | 0 | 出力単語を描く |
| tessedit_dump_choices | 0 | ダンプ文字の選択肢 |
| tessedit_timing_debug | 0 | 印刷タイミング統計 |
| tessedit_fix_fuzzy_spaces | 1 | 曖昧な空間を改善しよう |
| tessedit_unrej_any_wd | 0 | 言葉の妥当性は気にしない |
| tessedit_fix_hyphens | 1 | 二重ハイフンをクランチしますか? |
| tessedit_enable_doc_dict | 1 | ドキュメント辞書に単語を追加する |
| tessedit_debug_fonts | 0 | 文字ごとにフォント情報を出力 |
| tessedit_debug_block_rejection | 0 | ブロックと行の統計 |
| tessedit_enable_bigram_correction | 1 | 単語バイグラム辞書に基づいた修正を有効にします。 |
| tessedit_enable_dict_correction | 0 | 辞書に基づいて単語単位の修正を有効にします。 |
| enable_noise_removal | 1 | レイアウト分析を混乱させ、発音区別記号とノイズを判別する際に、小さなアウトラインを削除して条件付きで再割り当てします。 |
| tessedit_minimal_rej_pass1 | 0 | パス1の出力に対して最小限の拒否を行う |
| tessedit_test_adaption | 0 | テスト適応基準 |
| test_pt | 0 | ポイントのテスト |
| paragraph_text_based | 1 | テキスト認識後に段落検出を実行する(より正確) |
| lstm_use_matrix | 1 | lstmで評価行列/ビーム検索を使用する |
| tessedit_good_quality_unrej | 1 | 優れたドキュメントの拒否を減らす |
| tessedit_use_reject_spaces | 1 | スペースを拒否しますか? |
| tessedit_preserve_blk_rej_perfect_wds | 1 | ブロック拒否では部分的に拒否された単語のみを拒否する |
| tessedit_preserve_row_rej_perfect_wds | 1 | 行拒否では部分的に拒否された単語のみを拒否します |
| tessedit_dont_blkrej_good_wds | 0 | 単語分割品質メトリックを使用する |
| tessedit_dont_rowrej_good_wds | 0 | 単語分割品質メトリックを使用する |
| tessedit_row_rej_good_docs | 1 | 優れたドキュメントに行拒否を適用する |
| tessedit_reject_bad_qual_wds | 1 | 品質の悪いWDSはすべて拒否する |
| tessedit_debug_doc_rejection | 0 | ページ統計 |
| tessedit_debug_quality_metrics | 0 | デバッグファイルにデータを出力する |
| bland_unrej | 0 | チェックなしで拒否されない可能性 |
| unlv_tilde_crunching | 0 | チルダクランチの非常に悪い言葉をマークする |
| hocr_font_info | 0 | hocr出力にフォント情報を追加する |
| hocr_char_boxes | 0 | hocr出力に各文字の座標を追加する |
| crunch_early_merge_tess_fails | 1 | ワードクランチの前ですか? |
| crunch_early_convert_bad_unlv_chs | 0 | 早く出せよ~^? |
| crunch_terrible_garbage | 1 | 書かれている通り |
| crunch_leave_ok_strings | 1 | 賢明な弦に触れないでください |
| crunch_accept_ok | 1 | okstringで受け入れ可能性を使用する |
| crunch_leave_accept_strings | 0 | ポットクランチはしないでください |
| crunch_include_numerals | 0 | アルファ数字をフィドルする |
| tessedit_prefer_joined_punct | 0 | 句読点の報酬結合 |
| tessedit_write_block_separators | 0 | 出力にブロック区切りを書き込む |
| tessedit_write_rep_codes | 0 | 繰り返し文字コードを書く |
| tessedit_write_unlv | 0 | .unlv出力ファイルを書き込む |
| tessedit_create_txt | 0 | .txt出力ファイルを書き込む |
| tessedit_create_hocr | 0 | .html hOCR出力ファイルを書き込む |
| tessedit_create_alto | 0 | .xml ALTOファイルを書き込む |
| tessedit_create_lstmbox | 0 | LSTMトレーニング用の.boxファイルを書き込む |
| tessedit_create_tsv | 0 | .tsv出力ファイルを書き込む |
| tessedit_create_wordstrbox | 0 | WordStr形式の.box出力ファイルを書き込む |
| tessedit_create_pdf | 0 | .pdf出力ファイルを書き込む |
| textonly_pdf | 0 | 非表示のテキストレイヤーを1つだけ含むPDFを作成する |
| suspect_constrain_1Il | 0 | UNLVは11文字を拒否したまま |
| tessedit_minimal_rejection | 0 | テスの失敗のみを拒否する |
| tessedit_zero_rejection | 0 | 何も拒否しない |
| tessedit_word_for_word | 0 | 出力にWERDごとに1つの単語だけを含める |
| tessedit_zero_kelvin_rejection | 0 | 何も拒否しないでください |
| tessedit_rejection_debug | 0 | 適応デバッグ |
| tessedit_flip_0O | 1 | コンテキスト 0O O0 フリップ |
| rej_trust_doc_dawg | 0 | 11l conf. detectorでDOC dawgを使用する |
| rej_1Il_use_dict_word | 0 | 辞書語テストを使用する |
| rej_1Il_trust_permuter_type | 1 | 二重チェックはしない |
| rej_use_tess_accepted | 1 | 個別拒否制御 |
| rej_use_tess_blanks | 1 | 個別拒否制御 |
| rej_use_good_perm | 1 | 個別拒否制御 |
| rej_use_sensible_wd | 0 | 延長、切り替え、確認 |
| rej_alphas_in_number_perm | 0 | 延長、切り替え、確認 |
| tessedit_create_boxfile | 0 | ボックス付きテキストの出力 |
| tessedit_write_images | 0 | IPEから画像をキャプチャする |
| interactive_display_mode | 0 | インタラクティブに実行しますか? |
| tessedit_override_permuter | 1 | dict_wordによると |
| tessedit_use_primary_params_model | 0 | 多言語モードでは、主要言語のパラメータモデルを使用します。 |
| textord_tabfind_show_vlines | 0 | デバッグ行の検出 |
| textord_use_cjk_fp_model | 0 | CJK固定ピッチモデルを使用する |
| poly_allow_detailed_fx | 0 | 特徴抽出者が元のアウトラインを確認できるようにする |
| tessedit_init_config_only | 0 | 設定ファイルのみを使用して初期化します。インスタンスをOCRではなくレイアウト解析のみに使用する場合に便利です。 |
| textord_equation_detect | 0 | 方程式検出器をオンにする |
| textord_tabfind_vertical_text | 1 | 垂直検出を有効にする |
| textord_tabfind_force_vertical_text | 0 | 縦書きテキストページモードの使用を強制する |
| preserve_interword_spaces | 0 | 複数の単語間のスペースを保持する |
| pageseg_apply_music_mask | 1 | 五線譜を検出し、交差する要素を削除します |
| textord_single_height_mode | 0 | スクリプトにはxheightがないので、単一モードを使用します |
| tosp_old_to_method | 0 | スペース統計は事前チョッピングを使用しますか? |
| tosp_old_to_constrain_sp_kn | 0 | old_to_method の単語間ギャップと単語内ギャップの相対値を制限します。 |
| tosp_only_use_prop_rows | 1 | 固定ピッチ行を使用するには統計をブロックしますか? |
| tosp_force_wordbreak_on_punct | 0 | スペースで区切られていない言語で長い行を区切るために句読点で単語の区切りを強制する |
| tosp_use_pre_chopping | 0 | スペース統計は事前チョッピングを使用しますか? |
| tosp_old_to_bug_fix | 0 | 古いコード内の疑わしいバグを修正 |
| tosp_block_use_cert_spaces | 1 | 明らかなスペースのみを統計する |
| tosp_row_use_cert_spaces | 1 | 明らかなスペースのみを統計する |
| tosp_narrow_blobs_not_cert | 1 | 明らかなスペースのみを統計する |
| tosp_row_use_cert_spaces1 | 1 | 明らかなスペースのみを統計する |
| tosp_recovery_isolated_row_stats | 1 | 証明書のスペースが不十分な場合は行のみを使用する |
| tosp_only_small_gaps_for_kern | 0 | より良い推測 |
| tosp_all_flips_fuzzy | 0 | 任意のフリップをコンテキストに渡しますか? |
| tosp_fuzzy_limit_all | 1 | kn->spファジー制限をテーブルに制限しない |
| textord_no_rejects | 0 | ノイズの塊は取り除かない |
| textord_show_blobs | 0 | ソートされていないBLOBを表示する |
| textord_show_boxes | 0 | ソートされていないBLOBを表示する |
| textord_noise_rejwords | 1 | ノイズのような単語を拒否する |
| textord_noise_rejrows | 1 | ノイズのような行を拒否する |
| textord_noise_debug | 0 | デバッグ行ガベージ検出器 |
| classify_learn_debug_str | 学習をデバッグするためのクラスstr | |
| user_words_file | ユーザーが指定した単語のファイル名。 | |
| user_words_suffix | tessdata にあるユーザー指定の単語の接尾辞。 | |
| user_patterns_file | ユーザーが提供するパターンのファイル名。 | |
| user_patterns_suffix | tessdata にあるユーザー提供のパターンの接尾辞。 | |
| output_ambig_words_file | 辞書で見つかった曖昧さの出力ファイル | |
| word_to_debug | ストッパーデバッグ情報を標準出力に出力する単語 | |
| tessedit_char_blacklist | 認識しない文字のブラックリスト | |
| tessedit_char_whitelist | 認識する文字のホワイトリスト | |
| tessedit_char_unblacklist | tessedit_char_blacklist を上書きする文字のリスト | |
| tessedit_write_params_to_file | すべてのパラメータを指定されたファイルに書き込みます。 | |
| applybox_exposure_pattern | .exp | 露出値は画像ファイル名にこのパターンに従って記述されます。画像ファイル名は[lang].[fontname].exp [num].tifの形式となります。 |
chs_leading_punct('"</td><td>行頭の句読点</td><td></td></tr> <tr><td>chs_trailing_punct1</td><td>).,;:?!</td><td>1番目の末尾の句読点 </td></tr> <tr><td>chs_trailing_punct2)'" | 2番目の末尾の句読点 | |
| outlines_odd | %| | 標準外のアウトライン数 |
| outlines_2ij!?%":; | 標準外のアウトライン数 | |
| numeric_punctuation | ., | 点数。数字以内のchsが期待される |
| unrecognised_char | | | 未確認のBLOBの出力文字 |
| ok_repeated_ch_non_alphanum_wds | -?*= | NNが拒否を解除できるようにする |
| conflict_set_I_l_1 | イル1 [] | Il1 競合セット |
| file_type | .tif | ファイル名拡張子 |
| tessedit_load_sublangs | これと一緒に読み込む言語のリスト | |
| page_separator | ページ区切り(デフォルトはフォームフィード制御文字) | |
| classify_char_norm_range | 0.2 | 文字の正規化範囲... |
| classify_max_rating_ratio | 1.5 | 分類器の評価間の拒否比率 |
| classify_max_certainty_margin | 5.5 | 分類器の確実性の違いを拒否する |
| matcher_good_threshold | 0.125 | 良い試合(0-1) |
| matcher_reliable_adaptive_result | 0 | 素晴らしい試合 (0-1) |
| matcher_perfect_threshold | 0.02 | パーフェクトマッチ(0-1) |
| matcher_bad_match_pad | 0.15 | 悪いマッチパッド(0-1) |
| matcher_rating_margin | 0.1 | 新しいテンプレートの余白(0-1) |
| matcher_avg_noise_size | 12 | 平均ノイズブロブ長 |
| matcher_clustering_max_angle_delta | 0.015 | プロトタイプクラスタリングの最大角度デルタ |
| classify_misfit_junk_penalty | 0 | 非数値が想定されるテキスト行の位置から垂直方向に外れている場合に適用するペナルティ |
| rating_scale | 1.5 | 評価倍率 |
| certainty_scale | 20 | 確実性のスケーリング係数 |
| tessedit_class_miss_scale | 0.00390625 | 使用されていない機能のスケール係数 |
| classify_adapted_pruning_factor | 2.5 | 適応度の低い結果を刈り込むと、最良の結果よりもはるかに悪くなります |
| classify_adapted_pruning_threshold | -1 | classify_adapted_pruning_factor が開始されるしきい値 |
| 文字断片分類_ガベージ確実性しきい値 | -3 | 文字全体に見えない断片をトレーニングと適応から除外する |
| speckle_large_max_size | 0.3 | 最大スペックルサイズ |
| speckle_rating_penalty | 10 | 騒音の最悪評価に罰金を追加 |
| xheight_penalty_subscripts | 0.125 | 単語に上付き文字または下付き文字が含まれている場合は、スコアのペナルティ (0.1 = 10%) が加算されますが、それ以外は問題ありません。 |
| xheight_penalty_inconsistent | 0.25 | xheight が矛盾している場合は、スコア ペナルティ (0.1 = 10%) が追加されます。 |
| segment_penalty_dict_frequent_word | 1 | 大文字と小文字が区別され、指定された言語で頻繁に使用される単語一致のスコア乗数 (低いほど良い)。 |
| segment_penalty_dict_case_ok | 1.1 | 大文字と小文字が適切に一致する単語のスコア乗数 (低いほど良い)。 |
| segment_penalty_dict_case_bad | 1.3125 | 大文字と小文字の問題がある可能性のある単語一致のデフォルトのスコア乗数 (低いほど良い)。 |
| segment_penalty_dict_nonword | 1.25 | 辞書の単語と一致しないグリフフラグメントセグメンテーションのスコア乗数 (低いほど良い)。 |
| certainty_scale | 20 | 確実性のスケーリング係数 |
| stopper_nondict_certainty_base | -2.5 | 辞書にない単語の確信度閾値 |
| stopper_phase2_certainty_rejection_offset | 1 | 確実性オフセットを拒否 |
| stopper_certainty_per_char | -0.5 | 小さい単語サイズを超える各辞書文字に追加する確実性。 |
| stopper_allowable_character_badness | 3 | 単語に許容される最大変動(シグマ単位) |
| doc_dict_pending_threshold | 0 | 保留中の辞書を使用する際の最も確実な方法 |
| doc_dict_certainty_threshold | -2.25 | 文書辞書に挿入できる単語の確実性が最も低い |
| tessedit_certainty_threshold | -2.25 | 良いブロブ制限 |
| chop_split_dist_knob | 0.5 | スプリット長さ調整 |
| chop_overlap_knob | 0.9 | 分割オーバーラップ調整 |
| chop_center_knob | 0.15 | スプリットセンター調整 |
| chop_sharpness_knob | 0.06 | 分割シャープネス調整 |
| chop_width_change_knob | 5 | 幅変更調整 |
| chop_ok_split | 100 | OK分割制限 |
| chop_good_split | 50 | 優れた分割制限 |
| segsearch_max_char_wh_ratio | 2 | 最大文字幅と高さの比率 |
最良の結果を得るために、IronOCRの画像前処理フィルタをOCRを適用する前に使用することをお勧めします。 これらのフィルタは、特に低品質のスキャンや表のような複雑な文書を扱う際に、精度を劇的に向上させることができます。
よくある質問
C#でOCRのためにIron Tesseractをどのようにセットアップしますか?
C#でIron Tesseractを使用するには、IronTesseractインスタンスを作成し、希望する言語とOCR設定で構成した後、画像またはPDFを含むOcrInputオブジェクト上でRead()メソッドを呼び出します。このセットアップにより、効率的なテキスト認識と検索可能なPDFへの変換が可能になります。
Iron Tesseractがサポートする高度な機能は何ですか?
最適化されたTesseract 5エンジンに基づくIron Tesseractは、バーコードの読み取り、コンピュータビジョン、複数言語のOCR処理をサポートします。文字のホワイトリスト/ブラックリスト化や特定のOCRプロセスのためのカスタマイズ可能な設定変数などの機能が含まれています。
Iron Tesseractは複数の言語に対応していますか?
はい、Iron Tesseractは125の国際的な言語に対するOCRをサポートしています。ドキュメントのニーズに最適な言語設定を行うことで、正確なテキスト抽出が可能です。
Iron TesseractでOCRの精度をどのように向上させられますか?
Iron TesseractでOCRの精度を向上させるには、その画像前処理フィルターを活用します。これらのフィルターは、特に低品質なスキャンや複雑な文書レイアウトを処理する際に、入力画像を最適化し、OCR結果を改善します。
Iron Tesseractを使用してバーコードを読み取ることは可能ですか?
はい、Iron Tesseractをバーコード読み取りに設定することができます。TesseractConfigurationオプションでバーコード読み取りを有効にすると、テキストと共にバーコードデータを抽出できます。
金融文書を処理するためにIron Tesseractをどのように設定しますか?
金融文書を処理するためには、PageSegmentationModeをSingleBlockに設定し、金融テキストで一般的な数字や記号の文字ホワイトリスト化を指定してください。正確さを向上させるために、Deskewや解像度の向上などの前処理フィルタを適用します。
Iron Tesseractにおけるマルチスレッドの役割は何ですか?
Iron Tesseractのマルチスレッドは、複数の文書を同時に処理することを可能にし、バッチ操作のパフォーマンスを大幅に向上させ、大規模なデータセットからの迅速なテキスト抽出を実現します。
Iron TesseractでOCR結果を検索可能なPDFとして保存するにはどうすればいいですか?
TesseractConfigurationでRenderSearchablePdfをtrueに設定することで、Iron TesseractでOCR結果を検索可能なPDFとして保存できます。これにより、テキストレイアウトが維持され、ドキュメントのアクセス性が向上します。
Tesseractの設定変数とは何で、それらはどのように使用されますか?
Iron TesseractにおけるTesseractの設定変数は、OCR処理のカスタマイズを可能にします。これらはIronTesseract.Configuration.TesseractVariablesを通じて設定でき、低品質なスキャンの修正や特定のドキュメント形式の対象化などの最適化を可能にします。
Iron TesseractでOCRのために画像をどのように読み込みますか?
Iron Tesseractでは、OcrInputクラスを使用してOCR用の画像を読み込むことができます。このクラスは、PNG、JPEG、PDFなどのさまざまな形式を読み込むメソッドを提供し、その後IronTesseractインスタンスによって処理され、テキストの抽出と読み取りが行われます。
Curtis Chauは、カールトン大学でコンピュータサイエンスの学士号を取得し、Node.js、TypeScript、JavaScript、およびReactに精通したフロントエンド開発を専門としています。直感的で美しいユーザーインターフェースを作成することに情熱を持ち、Curtisは現代のフレームワークを用いた開発や、構造の良い視覚的に魅力的なマニュアルの作成を楽しんでいます。