ClassesClasses | | Operators

create_text_modelcreate_text_modelCreateTextModelCreateTextModel (Operator)

Name

create_text_modelcreate_text_modelCreateTextModelCreateTextModel — Create a text model.

Warning

create_text_modelcreate_text_modelCreateTextModelCreateTextModelCreateTextModel is obsolete and is only provided for reasons of backward compatibility. New applications should use create_text_model_readercreate_text_model_readerCreateTextModelReaderCreateTextModelReaderCreateTextModelReader instead.

Signature

create_text_model( : : : TextModel)

Herror create_text_model(Hlong* TextModel)

Herror T_create_text_model(Htuple* TextModel)

void CreateTextModel(HTuple* TextModel)

void HTextModel::HTextModel()

void HTextModel::CreateTextModel()

static void HOperatorSet.CreateTextModel(out HTuple textModel)

public HTextModel()

void HTextModel.CreateTextModel()

Description

create_text_modelcreate_text_modelCreateTextModelCreateTextModelCreateTextModel creates a new TextModelTextModelTextModelTextModeltextModel which describes the text to be segmented by find_textfind_textFindTextFindTextFindText. Set and query Parameters of TextModelTextModelTextModelTextModeltextModel via set_text_model_paramset_text_model_paramSetTextModelParamSetTextModelParamSetTextModelParam and get_text_model_paramget_text_model_paramGetTextModelParamGetTextModelParamGetTextModelParam.

Calls of create_text_modelcreate_text_modelCreateTextModelCreateTextModelCreateTextModel are equivalent to (and should be replaced by) calls of create_text_model_readercreate_text_model_readerCreateTextModelReaderCreateTextModelReaderCreateTextModelReader with ModeModeModeModemode set to 'manual'"manual""manual""manual""manual".

Since memory is allocated for the text model during the call of create_text_modelcreate_text_modelCreateTextModelCreateTextModelCreateTextModel and during the following operations, the model should be freed explicitly by the operator clear_text_modelclear_text_modelClearTextModelClearTextModelClearTextModel as soon as it is no longer used.

Execution Information

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.

Parameters

TextModelTextModelTextModelTextModeltextModel (output_control)  text_model HTextModel, HTupleHTupleHtuple (integer) (IntPtr) (Hlong) (Hlong)

New text model.

Result

create_text_modelcreate_text_modelCreateTextModelCreateTextModelCreateTextModel returns the value 2 (H_MSG_TRUE).

Module

OCR/OCV


ClassesClasses | | Operators