查看: 16|回复: 0

halcon多模板匹配操作

[复制链接]

255

主题

1

回帖

1300

积分

管理员

积分
1300
QQ
发表于 2025-7-12 16:48:53 | 显示全部楼层 |阅读模式


  1. read_image (Image, 'rings/mixed_01.png')

  2. gen_circle (ROI_0, 255.152, 407.84, 47.4414)

  3. reduce_domain (Image, ROI_0, ImageReduced)

  4. create_scaled_shape_model (ImageReduced, 'auto', -0.39, 0.79, 'auto', 0.5, 1.5, 'auto', 'auto', 'use_polarity', 'auto', 'auto', ModelID1)

  5. gen_rectangle1 (ROI_02, 125.297, 336.797, 208.775, 441.817)

  6. reduce_domain (Image, ROI_02, ImageReduced1)

  7. create_scaled_shape_model (ImageReduced1, 'auto', -0.39, 0.79, 'auto',0.5, 1.5, 'auto', 'auto', 'use_polarity', 'auto', 'auto', ModelID2)


  8. find_scaled_shape_models (Image, [ModelID1,ModelID2], -0.39, 0.78, 0.5, 1.5, 0.7, 6, 0.5, 'least_squares', 0, 0.9, Row, Column, Angle, Scale, Score, Model)

  9. dev_display_shape_matching_results ([ModelID1,ModelID2], 'red', Row, Column, Angle, Scale, Scale, Model)
复制代码


高级模式
B Color Image Link Quote Code Smilies

本版积分规则

关于我们

企业文化

人才招聘

常见问题

建议反馈

合作伙伴

商务合作

新闻媒体

产品服务

客户案例

联系我们

联系电话:14776878570(同VX号)

邮箱:14776878570@163.com(同VX号)

工作时间:周一至周六(早上8点至下午10点)

关注微信公众号

QQ|Archiver|手机版|小黑屋|鸿翔机器人

GMT+8, 2025-8-6 00:47 , Processed in 0.060919 second(s), 18 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2025 Discuz! Team.