Skip to content

create_lexiconCreateLexiconCreateLexiconcreate_lexiconT_create_lexicon🔗

説明🔗

create_lexiconCreateLexiconCreateLexiconcreate_lexiconT_create_lexicon — 単語の tuple から辞書を作成する。

書式🔗

create_lexicon( string Name, string Words, out lexicon LexiconHandle )void CreateLexicon( const HTuple& Name, const HTuple& Words, HTuple* LexiconHandle )static void HOperatorSet.CreateLexicon( HTuple name, HTuple words, out HTuple lexiconHandle )def create_lexicon( name: str, words: Sequence[str] ) -> HHandle

Herror T_create_lexicon( const Htuple Name, const Htuple Words, Htuple* LexiconHandle )

void HLexicon::HLexicon( const HString& Name, const HTuple& Words )

void HLexicon::HLexicon( const char* Name, const HTuple& Words )

void HLexicon::HLexicon( const wchar_t* Name, const HTuple& Words ) (Windows only)

public HLexicon( string name, HTuple words )

void HLexicon::CreateLexicon( const HString& Name, const HTuple& Words )

void HLexicon::CreateLexicon( const char* Name, const HTuple& Words )

void HLexicon::CreateLexicon( const wchar_t* Name, const HTuple& Words ) (Windows only)

void HLexicon.CreateLexicon( string name, HTuple words )

説明🔗

create_lexiconCreateLexicon は Wordswordswords の tuple に基づき新しい辞 書を作成します。固有のテキスト Namenamename を指定することによっ て、例えば、do_ocr_word_mlpDoOcrWordMlp によって使用されるような構文表 現から辞書を後で参照することができます。

HALCON の辞書サポートは現在自然言語向けではないことに注意してくだ さい。むしろ、限られた数千程度の有効な単語、例えば国や製品名を区別 するためだけに必要な OCR アプリケーションの後処理のステップとして 意図されています。MVTec は辞書を提供しません。

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 並列演算処理には未対応

このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。

パラメーター🔗

Namenamename (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

新しい辞書のための固有名

初期値: 'lex1'"lex1"

Wordswordswords (input_control) string-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)

新しい辞書のための単語リスト

初期値: ['word1', 'word2', 'word3']["word1", "word2", "word3"]

LexiconHandlelexiconHandlelexicon_handle (output_control) lexicon → (handle)HTuple (HHandle)HLexicon, HTuple (IntPtr)HHandleHtuple (handle)

辞書ハンドル

他のオペレーターとの組み合わせ🔗

組み合わせ

後処理の候補

do_ocr_word_mlpDoOcrWordMlp, do_ocr_word_svmDoOcrWordSvm

他の選択候補

import_lexiconImportLexicon

関連項目

lookup_lexiconLookupLexicon, suggest_lexiconSuggestLexicon

モジュール🔗

OCR/OCV