create_texture_inspection_modelT_create_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model (Operator)

Name

create_texture_inspection_modelT_create_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model — Erzeugen eines Texturinspektionsmodells.

Signatur

create_texture_inspection_model( : : ModelType : TextureInspectionModel)

Herror T_create_texture_inspection_model(const Htuple ModelType, Htuple* TextureInspectionModel)

void CreateTextureInspectionModel(const HTuple& ModelType, HTuple* TextureInspectionModel)

void HTextureInspectionModel::HTextureInspectionModel(const HString& ModelType)

void HTextureInspectionModel::HTextureInspectionModel(const char* ModelType)

void HTextureInspectionModel::HTextureInspectionModel(const wchar_t* ModelType)   (Nur Windows)

void HTextureInspectionModel::CreateTextureInspectionModel(const HString& ModelType)

void HTextureInspectionModel::CreateTextureInspectionModel(const char* ModelType)

void HTextureInspectionModel::CreateTextureInspectionModel(const wchar_t* ModelType)   (Nur Windows)

static void HOperatorSet.CreateTextureInspectionModel(HTuple modelType, out HTuple textureInspectionModel)

public HTextureInspectionModel(string modelType)

void HTextureInspectionModel.CreateTextureInspectionModel(string modelType)

def create_texture_inspection_model(model_type: str) -> HHandle

Beschreibung

create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model erzeugt ein neues Texturinspektionsmodell TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModeltexture_inspection_model vom Typ ModelTypeModelTypeModelTypeModelTypemodelTypemodel_type. Aktuell wird nur der Modelltyp 'basic'"basic""basic""basic""basic""basic" unterstützt.

Die Parameter des Modells können mit get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param abgefragt und mit set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param manipuliert werden.

Das Konzept der Texturinspektion ist bei der Einleitung zum Kapitel Inspektion / Texturinspektion beschrieben.

Ausführungsinformationen

Dieser Operator liefert ein Handle zurück. Es ist zu beachten, dass der Zustand einer Instanz dieses Handletyps durch bestimmte Operatoren geändert werden kann, obwohl das Handle als Eingabeparameter in diesen Operatoren verwendet wird.

Parameter

ModelTypeModelTypeModelTypeModelTypemodelTypemodel_type (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Typ des erzeugten Texturinspektionsmodells.

Defaultwert: 'basic' "basic" "basic" "basic" "basic" "basic"

Werteliste: 'basic'"basic""basic""basic""basic""basic"

TextureInspectionModelTextureInspectionModelTextureInspectionModelTextureInspectionModeltextureInspectionModeltexture_inspection_model (output_control)  texture_inspection_model HTextureInspectionModel, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle des Texturinspektionsmodells.

Beispiel (HDevelop)

* Create texture inspection model
create_texture_inspection_model ('basic', TextureInspectionModel)
* Make this short example fast:
set_texture_inspection_model_param (TextureInspectionModel, \
                                    'gmm_em_max_iter', 1)
* Read and add training images
read_image (TrainImage, 'carpet/carpet_01')
add_texture_inspection_model_image (TrainImage, TextureInspectionModel, \
                                    Indices)
* Train the model
train_texture_inspection_model (TextureInspectionModel)
* Read and apply a test image
read_image (TestImage, 'carpet/carpet_02')
apply_texture_inspection_model (TestImage, DefectCandidates, \
                                TextureInspectionModel, \
                                TextureInspectionResultID)

Ergebnis

Der Operator create_texture_inspection_modelcreate_texture_inspection_modelCreateTextureInspectionModelCreateTextureInspectionModelCreateTextureInspectionModelcreate_texture_inspection_model gibt 2 (H_MSG_TRUE) zurück.

Nachfolger

set_texture_inspection_model_paramset_texture_inspection_model_paramSetTextureInspectionModelParamSetTextureInspectionModelParamSetTextureInspectionModelParamset_texture_inspection_model_param, get_texture_inspection_model_paramget_texture_inspection_model_paramGetTextureInspectionModelParamGetTextureInspectionModelParamGetTextureInspectionModelParamget_texture_inspection_model_param, add_texture_inspection_model_imageadd_texture_inspection_model_imageAddTextureInspectionModelImageAddTextureInspectionModelImageAddTextureInspectionModelImageadd_texture_inspection_model_image

Modul

Matching