ClassesClassesClassesClasses | | | | Operators

create_lexiconT_create_lexiconCreateLexiconcreate_lexiconCreateLexiconCreateLexicon (Operator)


create_lexiconT_create_lexiconCreateLexiconcreate_lexiconCreateLexiconCreateLexicon — Create a lexicon from a tuple of words.


create_lexicon( : : Name, Words : LexiconHandle)

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

Herror create_lexicon(const HTuple& Name, const HTuple& Words, Hlong* LexiconHandle)

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

void CreateLexicon(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::CreateLexicon(const HString& Name, const HTuple& Words)

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

void HOperatorSetX.CreateLexicon(
[in] VARIANT Name, [in] VARIANT Words, [out] VARIANT* LexiconHandle)

void HLexiconX.CreateLexicon(
[in] BSTR Name, [in] VARIANT Words)

static void HOperatorSet.CreateLexicon(HTuple name, HTuple words, out HTuple lexiconHandle)

public HLexicon(string name, HTuple words)

void HLexicon.CreateLexicon(string name, HTuple words)


create_lexiconcreate_lexiconCreateLexiconcreate_lexiconCreateLexiconCreateLexicon creates a new lexicon based on a tuple of WordsWordsWordsWordsWordswords. By specifying a unique textual NameNameNameNameNamename, you can later refer to the lexicon from syntax expressions like those used, e.g., by do_ocr_word_mlpdo_ocr_word_mlpDoOcrWordMlpdo_ocr_word_mlpDoOcrWordMlpDoOcrWordMlp.

Note that lexicon support in HALCON is currently not aimed at natural languages. Rather, it is intended as a post-processing step in OCR applications that only need to distinguish between a limited set of not more than a few thousand valid words, e.g., country or product names. MVTec itself does not provide any lexica.


This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.


NameNameNameNameNamename (input_control)  string HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Unique name for the new lexicon.

Default value: 'lex1' "lex1" "lex1" "lex1" "lex1" "lex1"

WordsWordsWordsWordsWordswords (input_control)  string-array HTupleHTupleHTupleVARIANTHtuple (string) (string) (HString) (char*) (BSTR) (char*)

Word list for the new lexicon.

Default value: ['word1','word2','word3'] ["word1","word2","word3"] ["word1","word2","word3"] ["word1","word2","word3"] ["word1","word2","word3"] ["word1","word2","word3"]

LexiconHandleLexiconHandleLexiconHandleLexiconHandleLexiconHandlelexiconHandle (output_control)  lexicon HLexicon, HTupleHTupleHLexicon, HTupleHLexiconX, VARIANTHtuple (integer) (IntPtr) (Hlong) (Hlong) (Hlong) (Hlong)

Handle of the lexicon.

Possible Successors

do_ocr_word_mlpdo_ocr_word_mlpDoOcrWordMlpdo_ocr_word_mlpDoOcrWordMlpDoOcrWordMlp, do_ocr_word_svmdo_ocr_word_svmDoOcrWordSvmdo_ocr_word_svmDoOcrWordSvmDoOcrWordSvm



See also

lookup_lexiconlookup_lexiconLookupLexiconlookup_lexiconLookupLexiconLookupLexicon, suggest_lexiconsuggest_lexiconSuggestLexiconsuggest_lexiconSuggestLexiconSuggestLexicon



ClassesClassesClassesClasses | | | | Operators