网淘巴来吧,欢迎您!

返回首页 微信
微信
手机版
手机版

clear_texture_inspection_model -清除纹理检测模型并释放分配的内存

2022-11-13 新闻来源:网淘巴 围观:252
''

简短描述

clear_texture_inspection_model -清除纹理检测模型并释放分配的内存

签名

clear_texture_inspection_model( : : TextureInspectionModel : )

描述

操作符clear_texture_inspection_model删除一个由create_texture_inspection_model创建的纹理检查模型。释放模型使用的所有内存。模型的句柄在TextureInspectionModel中传递。在操作员调用后无效。

参数

texture[文]_inspec[章]tion_mo[来]del(-ar[自]ray)&ra[网]rr;(int[淘]eger)

纹理检查模型的句柄。

例程

* Create texture inspection model
create_texture_inspection_model ('basic', TextureInspectionModel)
* 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)
* Clean up
clear_texture_inspection_model (TextureInspectionModel)

返回结果

 

免责申明
部分文章来自各大搜索引擎,如有侵权,请与我联系删除。
打赏

本文链接:https://www.wtao8.com/post/251.html 转载需授权!

分享到:

相关文章

龙年
大发