HALCON例程:novelty_detection_svm.hdev

* This example program shows you how to use the novelty detection mode of
* the SVM classifier to perform a web inspection task.  The novelty detection
* basically classifies feature vectors that are not contained in the training
* samples as a new class (hence the name).  For the web inspection task,
* the SVM hence can be used to detect textures that do not correspond to the
* texture of the trained good objects.
* 这个示例程序向您展示了如何使用SVM分类器的新颖性检测模式来执行web检查任务。
新颖性检测基本上是将不包含在训练样本中的特征向量分类为一个新类(因此得名)。
因此,在web检测任务中,SVM可以用来检测与训练好的目标纹理不一致的纹理。

*显示设置
dev_update_off ()
* 
read_image (Image, 'plastic_mesh/plastic_mesh_01')//读图
get_image_size (Image, Width, Height)//获得图像尺寸
dev_close_window ()
dev_open_window (0, 0, Width, Height, 'black', WindowHandle)
dev_set_color ('red')
set_display_font (WindowHandle, 16, 'mono', 'true', 'false')

* The texture filters used for the classification will return artifacts at the image
* borders because the images of the plastic mesh to be in
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值