halcon:CAD类型的相关操作

大很多场合,需要在视觉程序中导入CAD文档,比如,在3C行业,需要对手机外壳进行CNC加工,或者点胶操作,此时,需要获取产品的各个点的数据。如果将CAD直接导入,就会大的减少编程工作量,同时也能达到很高的精度。

以下为Halcon自带例程:

* This example program shows how to read DXF files and how to
* use this CAD description of objects to generate shape models.
* The program is a slightly modified copy of the example program
* examples/hdevelop/Applications/Object-Recognition-2D/
* pm_multiple_models.hdev.
* The following modifications to this program were made:
* - The model images are created from the DXF description of
*   the objects.
* - The parameters of the operator find_shape_models were
*   slightly relaxed because the DXF object description does
*   not fit exactly to the objects in the search image because
*   the images were taken with an uncalibrated and slightly
*   oblique viewing camera.
* This program shows how to use HALCON's shape-based
* matching to find multiple different models in one call to
* find_shape_models. Note that this is one mode of operation
* that is frequently useful. However, the number of
* applications that can be solved with this mechanism is much
* larger. Other applications where finding multiple models
* in one call is useful are applications where the same object
* can only occur in small angle ranges around a discrete set
* of angles, e.g., 0°, 90°, 180°, and 270°. In these cases,
* it would be wasteful to train the model for the full 360°
* rotation range and to match the model in this range. Instead,
* four models using the small angle ranges around the discrete
* set of angles should be generated from the same model image
* and used in the matching stage using four different angle
* ranges.
* 
dev_update_pc ('off')
dev_update_window ('off')
dev_update_var ('off')
dev_close_window ()
dev_open_window (0, 0, 646, 482, 'black', WindowHandle)
dev_set_part (0, 0, 481, 645)
dev_
  • 1
    点赞
  • 4
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值