• Welcome to the world's largest Chinese hacker forum

    Welcome to the world's largest Chinese hacker forum, our forum registration is open! You can now register for technical communication with us, this is a free and open to the world of the BBS, we founded the purpose for the study of network security, please don't release business of black/grey, or on the BBS posts, to seek help hacker if violations, we will permanently frozen your IP and account, thank you for your cooperation. Hacker attack and defense cracking or network Security

    business please click here: Creation Security  From CNHACKTEAM

halcon-dev _ display _ shape _ matching _ results显示基于形状的匹配结果


Recommended Posts

auahbtn0psr4718.png

e2tu11z2rvz4719.jpg

在HDevelop中

开发_关闭_窗口()

read_image (Image,' D:/bb/tu/3.jpg ')

rgb1_to_gray(图像,灰度图像)

****截取模板图像:B字母****

gen _矩形1(矩形,16,120,69,172)

reduce_domain(灰度图像,矩形,图像缩小)

create _ shape _ model(图像缩小,' auto ',-0.2,0.2,' auto ',' auto ',' use_polarity ',' auto ',' auto ',ModelID)

*创建形状模板

find_shape_model (GrayImage,ModelID,-0.2,0.2,0.5,6,0.5,'最小平方',0,0.9,行,列,角度,分数)

*形状模板匹配

获取图像大小(图像,宽度,高度)

dev_open_window(10,10宽度,高度,'黑色WindowHandle)

Color:=['红色','绿色','蓝色','青色','洋红色','黄色]

开发_显示_形状_匹配_结果(模型ID,颜色,行,列,角度,1,1,0)

*显示基于形状的匹配结果

*参数1:形状模板身份

*参数2:用于显示匹配结果的颜色

*默认值: '红色'

* 建议值: '红色','绿色','蓝色',['红色','绿色','蓝色'],['红色','绿色','蓝色','青色','洋红色','黄色]

*参数3:找到的模型实例的行坐标

*参数4:找到的模型实例的列坐标

*参数5:找到的模型实例的旋转角度

*参数6:水平方向的缩放比例默认值:1

*参数7:垂直方向的缩放比例默认值:1

*参数8:找到的模型实例的索引默认值:0

*【查找_形状_模型执行了多少次】

ppu01ijlyo14720.png

在QtCreator中

开发_显示_形状_匹配_结果这个指令在C中存在病菌

mmwewsjriev4721.png

Link to comment
Share on other sites