create_texture_inspection_model
— Erzeugen eines Texturinspektionsmodells.
create_texture_inspection_model( : : ModelType : TextureInspectionModel)
create_texture_inspection_model
erzeugt ein neues
Texturinspektionsmodell TextureInspectionModel
vom Typ
ModelType
. Aktuell ist nur der Typ
'basic' verfügbar.
Die Parameter des Modells können mit
get_texture_inspection_model_param
abgefragt und mit
set_texture_inspection_model_param
manipuliert werden.
Das Konzept der Texturinspektion ist bei der Einleitung zum Kapitel Inspektion / Texturinspektion beschrieben.
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.
ModelType
(input_control) string →
(string)
Typ des erzeugten Texturinspektionsmodells.
Defaultwert: 'basic'
TextureInspectionModel
(output_control) texture_inspection_model →
(handle)
Handle des Texturinspektionsmodells.
* 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)
Der Operator create_texture_inspection_model
gibt 2 (H_MSG_TRUE) zurück.
set_texture_inspection_model_param
,
get_texture_inspection_model_param
,
add_texture_inspection_model_image
Matching