随笔分类 - halcon机器视觉学习
在玩视觉的路上把坑记录下来
摘要:1、HsmartWindow 报错问题 2、HwindowCtronl绘制图形未结束又点击绘制导致错误 3、论坛转贴 常见问题 4、找圆找线部分参数设置 5、实现基于形状的模板匹配 6、一维测量-卡尺 7、直线/圆拟合 1-- HsmartWindow 控件除了会调用halcondonet.dll外
阅读全文
摘要:HTuple imgWidth, imgHeight; int winRow, winCol, winWidth, winHeight,partWidth, partHeight; try { HOperatorSet.GetImageSize( image,out imgWidth, out im
阅读全文
摘要:try { bool flag = e.Delta > 0; if (flag) { HTuple htuple = 1.0; HTuple htuple2 = 1.0; HTuple htuple3 = 1.0; bool flag2 = htuple >= 32.0; if (flag2) {
阅读全文
摘要:read_image (Image, 'D:/Working/工程项目/多张图像拼接/1.0D-3.5HZ_C001H001S0001/1.tif') dev_open_window_fit_image (Image, 0, 0, -1, -1, WindowHandle) dev_display
阅读全文
摘要:HsmartWindow 控件除了会调用halcondonet.dll外还会调用halcon.dll,如果程序根目录不存在halcon.dll,则会通过全局变量找到halcon mevtec目录去调用,这样是没有问题的; 如果根目录下存在halcon.dll,则会优先调用根目录下的文件,然后halc
阅读全文
摘要:read_image (Image, 'fabrik') 读取资源,各种格式的图片都可以读取 threshold (Image, Region, 120, 255) shape_trans (Region, RegionTrans, 'convex') 二值化后得到一些像素点 并用shape_tra
阅读全文
摘要:shape_trans(region,regionTrans,'mode') many mode have different result; check this mode by yourself; This is Note about Filter in Halcon. 开运算,腐蚀 膨胀,闭运
阅读全文
摘要:2019-07-23 简单获取目标区域: 1 dev_close_window () 2 dev_open_window (0, 0, 512, 512, 'black', WindowHandle) 3 4 dev_open_file_dialog ('read_image', 'default'
阅读全文