Halcon水果分类的案例学习classify_citrus_fruits.hdev

本文通过详细解读Halcon的classify_citrus_fruits.hdev案例,深入探讨如何利用Halcon进行水果分类。内容包含个人对代码的理解和注释,旨在帮助读者掌握Halcon图像识别技术。
摘要由CSDN通过智能技术生成

放了些个人理解的注释

* This example program shows how to apply a general GMM
* classification to distinguish citrus fruits using the
* features 'area' and 'circularity'. Additionally, the
* 2D feature space for the extracted fruits is visualized.
* 
read_image (Image, 'color/citrus_fruits_01')
get_image_pointer1 (Image, Pointer, Type, Width, Height)
dev_close_window ()
dev_open_window (0, 0, Width, Height, 'white', WindowHandle)
set_display_font (WindowHandle, 12, 'mono', 'true', 'false')
dev_set_draw ('margin')
dev_set_line_width (2)
dev_display (Image)
dev_update_window ('off')
dev_update_pc ('off')
dev_update_var ('off')
* 
FeaturesArea := []               //空数组
FeaturesCircularity := []
ClassName := ['orange','lemon']
* 
* Create a GMM classifier
create_class_gmm (2, 2, 1, 'spherical', 'normalization', 10, 42, GMMHandle) 
         
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值