注册登陆后可查看附件和大图,以及购买相关内容
您需要 登录 才可以下载或查看,没有账号?注册会员
x
NI Vision Builder for Automated Inspection 2020&2023入门教程
目录 版权声明... 11 读者利益... 11 感谢... 11 NI VBAI2020&2023版教程主要修正内容... 12 第一章 NI Vision Builder for Automated Inspection概述... 13 1.1 VBAI简介... 13 1.2 VBAI安装资源获取... 14 1.3 VBAI安装... 14 1.4 VBAI正版许可证... 15 第二章 VBAI欢迎界面... 24 2.1 VBAI欢迎界面布局... 25 2.2 Select a target to run Vision Builder AI选择运行VBAI的目标(仅VBAI2020支持)... 27 2.2.1 Refres Target List刷新目标列表... 27 2.2.2 Add Target连接设备... 29 2.2.3 Add Simulated Target添加仿真设备... 34 2.3 Config Inspection配置检测... 38 2.4 Run Inspection运行检测... 42 2.4.1 运行检测界面的Inspection检测菜单... 46 2.4.2 运行检测界面的Help帮助菜单... 47 2.5 Getting Start获取开始/Help帮助/Community and Online Support社区和在线支持... 49 第三章 VBAI配置界面... 50 3.1 配置界面菜单... 50 3.1.1 File文件... 50 3.1.2 Edit编辑... 82 3.1.3 View查看... 90 3.1.4 Operate操作... 99 3.1.5 Tools工具... 127 3.1.6 Help帮助... 206 3.2 配置界面快捷按钮... 208 3.3 VBAI主窗口... 221 3.4 VBAI次窗口... 222 3.5 VBAI图像信息栏... 223 3.6 State状态栏... 224 3.6.1 状态名称栏... 225 3.6.2 步骤控制快捷按钮... 225 3.6.3 为此状态显示结果图像... 228 3.6.4 状态的具体检测步骤... 233 3.6.5 检测状态结果状态... 233 3.7 功能与函数... 236 3.7.1 Acquire Images采集图像... 237 3.7.2 Enhance Images增强图像... 238 3.7.3 Locate Features定位特征... 239 3.7.4 Measure Features测量特征... 240 3.7.5 Check for Presence存在检查... 241 3.7.6 Indentify Parts识别零件... 242 3.7.8 Communicate通信... 243 3.7.9 Use Additional Tools使用附加工具... 244 第四章 Acquire Images采集图像... 245 4.1 Acquire Image采集图像... 246 4.1.1 Main主体... 248 4.1.2 Image Trigger图像触发... 250 4.1.3 Calibration标定... 252 4.2 Acquire Image(1394, GigE, or USB)采集图像(1394,GigE,或USB)... 253 4.2.1 Main主体... 254 4.2.2 Common通用... 262 4.2.3 Attibutes属性... 265 4.2.4 Calibration标定... 266 4.2.5 Acquire Image could not be initialized采集图像不能初始化... 291 4.2.6 TimeOut超时... 295 4.3 Read/Write Camera Attributes读/写相机属性... 297 4.3.1 Main主体... 299 4.3.2 Attributes属性... 301 4.4 Read Image File读取图像文件... 309 4.4.1 Main主体... 311 4.4.2 Calibration标定... 329 4.5 Select Image选择图像... 331 4.5.1 Main主体... 333 第五章 Enhance Images增强图像... 335 5.1 Flat Field Correction平场校正... 337 5.1.1 Flat Field Correction平场校正前置图像... 340 5.1.2 Flat Field Correction Setup-使用模型在线校正... 342 5.1.3 Flat Field Creation Wizard平场创建向导... 359 5.1.4 Flat Field Correction Setup-用指定亮场图像进行校正... 371 5.1.5 Update Flat Field Resource更新平场资源... 379 5.1.6 平场校正综合实例... 383 5.2 Vision Assistant视觉助手简介... 396 5.3 Filter Image滤波图像... 397 5.3.1 Main主体... 399 5.3.2 Filters滤波器... 406 5.4 Threshold Image阈值图像... 449 5.4.1 灰度图像阈值... 451 5.4.2 彩色图像阈值... 482 5.5 Segment Color Image分割彩色图像... 494 5.5.1 Main主体... 496 5.5.2 Color Classification Training Interface颜色分类训练接口程序... 498 5.5.3 Settings设置... 560 5.5.4 Pixel Mapping像素映射... 568 5.5.5 Limits范围... 569 5.5.6 颜色分割实例... 572 5.6 Calibrate Image标定图像... 580 5.6.1 Main主体... 582 5.6.2 Calibaration Data标定数据... 585 5.7 Create Region of Interest创建兴趣区域... 587 5.7.1 Main主体... 589 5.7.2 Coordinates坐标... 590 5.7.3 Limits范围... 607 第六章 VBAI中的Vision Assisntat视觉助手... 607 6.1 Main主体... 610 6.2 VBAI视觉助手界面布局菜单介绍... 611 6.2.1 VBAI视觉助手布局... 611 6.2.2 File文件菜单... 614 6.2.3 Edit编辑菜单... 618 6.2.4 Image图像菜单... 619 6.2.5 Color颜色菜单... 620 6.2.6 Grayscale灰度菜单... 621 6.2.7 Binray二值菜单... 622 6.2.8 View查看菜单... 623 6.2.9 Tools工具菜单... 624 6.2.10 Help帮助菜单... 626 6.3 Processing Functions: Image处理函数:图像... 627 6.3.1 Get Image获取图像... 628 6.3.2 Histogram直方图... 638 6.3.3 Line Profile线剖面图... 646 6.3.4 Measure测量... 652 6.3.5 3D View三维视图... 667 6.3.6 Brightness亮度... 675 6.3.7 Image Mask图像掩模... 689 6.3.8 Geometry几何... 712 6.3.9 Image Buffer图像缓存... 727 6.3.10 Set Bit Depth设置位深... 738 6.4 Processing Functions: Color处理函数:颜色... 747 6.4.1 Color Operators颜色算子... 747 6.4.2 Extract Color Planes提取颜色平面... 828 6.4.3 Color Threshold颜色阈值... 834 6.5 Processing Functions Grayscale处理函数:灰度... 845 6.5.1 Lookup Table查找表... 845 6.5.2 Filters滤波器... 861 6.5.3 Gray Morphology灰度形态学... 864 6.5.4 Gray Morphology Reconstruction灰度形态学重建... 886 6.5.5 FFT Filter快速傅立叶变换滤波器... 903 6.5.6 Threshold阈值... 915 6.5.7 Watershed Segmentation分水岭分割... 917 6.5.8 Operators算子... 932 6.5.9 Conversion转换... 989 6.5.10 Set Bit Depth设置位深... 1003 6.5.11 Extract FFT Plane提取快速傅立叶变换平面... 1003 6.6 Processing Functions Binary处理函数:二值... 1006 6.6.1 Basic Morphology基础形态学... 1006 6.6.2 Adv.Morphology高级形态学... 1040 6.6.3 Particle Filter粒子滤波器... 1059 6.6.4 Invert Binary Image反转二值图像... 1068 6.6.5 Binary Morphological Reconstruction二值形态学重建... 1069 第七章 Locate Features定位特征... 1081 7.1 Find Edges查找边缘... 1082 7.1.1 Main主体... 1084 7.1.2 Settings设置... 1090 7.1.3 Advanced高级... 1100 7.1.4 Limits范围... 1101 7.1.5 Set Inspection Status设置检测状态... 1104 7.2 Find Straight Edge查找直边... 1110 7.2.1 Main主体... 1114 7.2.2 Settings设置... 1115 7.2.3 Advanced高级... 1131 7.2.4 Limits范围... 1133 7.3 Adv. Straight Edge高级直边... 1138 7.3.1 Main主体... 1142 7.3.2 Edge Detectror Settings边缘检测器设置... 1143 7.3.3 Straight Edge Settings直边设置... 1154 7.3.4 Limits范围... 1157 7.4 Find Circular Edge查找圆边... 1159 7.4.1 Main主体... 1162 7.4.2 Settings设置... 1162 7.4.3 Advanced高级... 1166 7.4.4 Limits范围... 1171 7.5 Match Pattern匹配模式... 1177 7.5.1 Main主体... 1180 7.5.2 Specifications规格... 1190 7.5.3 Options选项... 1208 7.5.4 Limits范围... 1224 7.6 Set Coordinate System设置坐标系... 1226 7.6.1 Main主体... 1228 7.6.2 Limits范围... 1232 7.7 Detect Objects检测目标... 1233 7.7.1 Main主体... 1236 7.7.2 Threshold阈值... 1237 7.7.3 Settings设置... 1238 7.7.4 Filter滤波器... 1241 7.7.5 Limits范围... 1246 7.8 Map Defects映射缺陷... 1249 7.8.1 Main主体... 1252 7.8.2 Specifications规格... 1253 7.8.3 Options选项... 1257 7.8.4 Defects缺陷... 1258 7.8.5 Limits范围... 1262 7.9 Track Object跟踪目标... 1264 7.9.1 Main主体... 1266 7.9.2 Settings设置... 1274 7.9.3 Limits范围... 1279 7.10 Match Color Pattern匹配颜色模式... 1290 7.10.1 Main主体... 1291 7.10.2 Template模板... 1294 7.10.3 Settings设置... 1295 7.10.4 Limits范围... 1298 第八章 Measure Features测量特征... 1300 8.1 Measure Intensity测量强度... 1300 8.1.1 Main主体... 1302 8.1.2 Histogram直方图... 1308 8.1.3 Limits范围... 1313 8.2 Measure Colors测量颜色... 1315 8.2.1 Main主体... 1316 8.2.2 Histogram直方图... 1317 8.2.3 Limits范围... 1320 8.3 Count Pixels计数像素... 1323 8.3.1 Main主体... 1326 8.3.2 Settings设置... 1327 8.3.3 Limits范围... 1329 8.4 Max Caliper最大卡尺... 1333 8.4.1 Main主体... 1335 8.4.2 Settings设置... 1336 8.4.3 Limits范围... 1342 8.5 Caliper卡尺... 1344 8.5.1 Main主体... 1346 8.5.2 Settings设置... 1347 8.5.3 Limits范围... 1353 8.6 Geometry几何... 1354 8.6.1 几何函数参数介绍... 1356 8.6.2 Distance距离... 1362 8.6.3 Distance Projection距离投影... 1363 8.6.4 Mid Point Distance中点距离... 1365 8.6.5 X Distance Between Lines at Y 在Y处直线之间的距离... 1366 8.6.7 Y Distance Between Lines at X 在X处直线之间的距离... 1368 8.6.8 Mid Point中点... 1369 8.6.9 Perpendicular Projection垂直投影... 1370 8.6.10 Lines Intersection直线交点... 1372 8.6.11 Bisecting Line角平分线... 1381 8.6.12 Mid Line中线... 1382 8.6.13 Angle from Horizontal水平夹角... 1383 8.6.14 Angle from Vertical垂直夹角... 1387 8.6.15 Angle Defined by 3 Points由3点定义的角度... 1389 8.6.16 Angle Defined by 4 Points由4点定义的角度... 1390 8.6.17 Center of Mass质心... 1393 8.6.18 Area面积... 1396 8.6.19 Line and Circle Intersection直线和圆交点... 1398 8.6.20 Circles Intersection圆交点... 1401 8.6.21 Circle Tangent Lines to Point圆切线到点... 1403 8.6.22 Line Fit线拟合... 1405 8.6.23 Circle Fit圆拟合... 1410 8.6.24 Ellipse Fit椭圆拟合... 1416 8.6.25 Circumscribed Circle外接圆... 1418 8.6.26 Inscribed Circle内切圆... 1420 第九章 Check for Presence存在检查... 1423 9.1 Detect Objects检测目标... 1424 9.2 Measure Intensity测量强度... 1425 9.3 Count Pixels计数像素... 1425 9.4 Map Defects映射缺陷... 1425 9.5 Match Colors匹配颜色... 1425 9.5.1 Main主体... 1426 9.5.2 Template模板... 1429 9.5.3 Settings设置... 1433 9.5.4 Limits范围... 1437 9.6 Find Edges查找边缘... 1438 9.7 Inspect Contours检测轮廓... 1438 9.7.1 Main主体... 1441 9.7.2 Extract Contour提取轮廓... 1442 9.7.3 Compare Contours比较轮廓... 1451 9.7.4 Limits范围... 1459 9.8 Detect Defects检测缺陷... 1460 9.8.1 Main主体... 1463 9.8.2 Alignment对齐... 1468 9.8.3 Settings设置... 1471 9.8.4 Filter滤波器... 1472 9.8.5 Limits范围... 1474 9.9 Match Pattern匹配模式... 1476 9.10 Match Color Pattern匹配颜色模式... 1476 9.11 Detect Texture Defects检测纹理缺陷... 1476 9.11.1 Main主体... 1477 9.11.2 NI Texture Training Interface纹理训练接口程序... 1481 9.11.3 Segmentation分割... 1500 9.11.4 Filter滤波器... 1501 9.11.5 Limits范围... 1503 第十章 Identify Parts识别零件... 1506 10.1 Read/Verify Text读取/验证文本... 1506 10.1.1 Main主体... 1509 10.1.2 Mode模式... 1510 10.1.3 NI OCR Training Interface光学字符识别训练接口程序... 1514 10.1.4 Threshold阈值... 1552 10.1.5 Size大小... 1557 10.1.6 Options选项... 1558 10.1.7 Limits范围... 1567 10.2 Classify Objects分类目标... 1575 10.2.1 Main主体... 1578 10.2.2 NI Particle Classification Training Interface粒子分类训练接口程序... 1579 10.2.3 Threshold阈值... 1617 10.2.4 Options选项... 1618 10.2.5 Classify分类... 1620 10.2.6 Limits范围... 1622 10.3 Classify Colors分类颜色... 1625 10.3.1 Main主体... 1626 10.3.2 NI Color Classification Training Interface颜色分类训练接口程序... 1628 10.3.3 Classify分类... 1628 10.3.4 Limits范围... 1629 10.4 Read 1D Barcode读取一维条码... 1633 10.4.1 Main主体... 1635 10.4.2 Settings设置... 1640 10.4.3 Results结果... 1646 10.4.4 Limits范围... 1649 10.5 Read 2D Barcode读取二维条码... 1652 10.5.1 Main主体... 1656 10.5.2 Settings设置... 1657 10.5.3 Grading分级(Data Matrix专用)... 1663 10.5.4 Limits范围... 1666 第十一章 Communicate通信... 1672 11.1 Read/Write I/O (Vision RIO)读/写输入/输出(不介绍)... 1673 11.2 Generate Pulse (Vision RIO)生成脉冲(不介绍)... 1674 11.3 Read/Write I/O读/写输入/输出(不介绍)... 1674 11.4 Generate Pulse生成脉冲(不介绍)... 1674 11.5 Read/Write I/O(NI-DAQmx)读/写输入/输出(不介绍)... 1675 11.6 Serial I/O串行输入/输出... 1675 11.6.1 Configuration配置界面... 1676 11.6.2 串行I/O设备实例... 1677 11.6.3 串口设置... 1704 11.7 TCP I/O传输控制协议输入/输出(不介绍)... 1710 11.8 Modbus Slave Modbus从机(不介绍)... 1710 11.9 Ethernet/IP以太网/互联网协议(不介绍)... 1710 11.10 Ethernet/IP Adapter以太网/互联网协议适配器(不介绍)... 1711 11.11 OPC UA开放性生产控制和统一架构(不介绍)... 1711 第十二章 Use Additional Tools使用附加工具... 1711 12.1 Set Inspection status设置检测状态... 1713 12.2 Calculator计算器... 1713 12.2.1 Main主体... 1715 12.2.2 Measuments测量... 1728 12.2.3 Limit范围... 1730 12.3 Logic Calculator逻辑计算器... 1736 12.4 Set Variable设置变量... 1753 12.5 Array Operator数组算子... 1763 12.6 Run LabVIEW VI运行LabVIEW VI 1773 12.7 Custom Overlay自定义覆盖... 1799 12.7.1 Main主体... 1805 12.7.2 Custom Overlay自定义覆盖... 1806 12.7.3 Layer Management图层管理... 1830 12.8 Display Image显示图像... 1834 12.9 Delay延迟... 1844 12.10 Data Logging数据记录... 1857 12.10.1 Measurements Logged记录的测量... 1859 12.10.2 Data Formatting数据格式... 1861 12.10.3 Destination目标... 1863 12.11 Image Logging图像记录... 1871 12.11.1 Log to Local Drive记录到本地驱动器... 1877 12.11.2 Log to FTP Server记录到FTP服务器... 1883 12.12 Read/Write Variables to INI File读/写变量到配置文件... 1893 12.13 User Input用户输入... 1903 12.14 Update Inspection UI更新检测界面... 1914 12.15 Select Inspection选择检测... 1937 12.15.1 选择检测的使用范围与方法... 1937 12.15.2 Inspection Path Value检测路径值... 1951 12.15.3 Inspection Table Value检测表值... 1964 第十三章 State Diagram状态图... 1981 13.1 Inspection Setup检测设置... 1984 13.2 Inspection Cleanup检测清除... 1985 13.3 Select Inspection选择检测... 1986 13.4 Inspection State Diagram检测状态图... 1987 13.4.1 Creating New States创建新状态... 1988 13.4.2 Creating Transitions Between States创建状态之间的转换... 1996 13.4.3 Modifying Transition Priorities修改转换属性... 2004 13.4.4 Modifying State Diagram Objects修改状态图目标... 2008 13.4.5 Deleting State Diagram Objects删除状态图目标... 2010 13.4.6 检测状态图对齐... 2012 13.4.7 检测状态图编辑... 2015 13.4.8 检测状态图实例... 2022 第十四章 LabVIEW调用VBAI脚本... 2065 14.1 LabVIEW中VBAI API函数介绍... 2066 14.1.1 VBAI Interface - Open Connection打开连接... 2069 14.1.2 VBAI Interface - Close Connection关闭连接... 2071 14.1.3 VBAI Interface - Launch Local VBAI Engine启动本地引擎... 2071 14.1.4 VBAI Interface - Close Local VBAI Engine关闭本地引擎... 2075 14.1.5 VBAI Interface - Get VBAI Engine Status获取引擎状态... 2076 14.1.6 VBAI Interface - Enumerate VBAI Engines枚举引擎... 2076 14.1.7 VBAI Interface - Get Target Inspections获取目标检测... 2080 14.1.8 VBAI Interface - Open Inspection打开检测... 2083 14.1.9 VBAI Interface - Get Inspection Info获取检测信息... 2084 14.1.10 VBAI Interface - Get Inspection Steps获取检测步骤... 2085 14.1.11 VBAI Interface - Get Inspection State Diagram获取检测状态图... 2088 14.1.12 VBAI Interface - Target Date & Time目标日期时间... 2091 14.1.13 VBAI Interface - Run Inspection Once运行检测一次... 2093 14.1.14 VBAI Interface - Start Inspection开始检测... 2094 14.1.15 VBAI Interface - Stop Inspection停止检测... 2095 14.1.16 VBAI Interface - Get Inspection Image (Polymorphic)获取检测图像(多态)... 2097 14.1.17 VBAI Interface - Get Inspection Results获取检测结果... 2103 14.1.18 VBAI Interface - Enable Inspection Measurements启用检测测量... 2106 14.1.19 VBAI Interface - Get Inspection Measurements (Polymorphic)获取检测测量(多态) 2107 14.1.20 VBAI Interface - Reset Inspection Statistics重置检测统计... 2111 14.1.21 VBAI Interface - Get Inspection Statistics获取检测统计... 2113 14.1.22 VBAI Interface - Set Variable设置变量... 2115 14.2 LabVIEW通过VBAI API调用VBAI脚本例子... 2117 14.2.1 官方对话框打开脚本示例... 2117 14.2.2 打开VBAI脚本序列... 2136 14.2.3 调用VBAI状态机示例... 2140 第十五章 自定义步骤... 2149 15.1 Import Vision Builder AI Step导入VBAI步骤... 2153 15.2 Create Custom Step创建自定义步骤... 2175 15.2.1 创建自定义步骤向导... 2175 15.2.2 创建自定义步骤Manual Threshould官方示例... 2185 15.2.3 创建Straight Edge Caliper直边卡尺自定义步骤... 2233 15.3 Test Your Custom Step in Vision Builder Al在VBAI中测试自定义步骤... 2292 15.4 Save Your Custom Step for Distribution保存自定义步骤以便分发... 2292 第十六章 VBAI检测脚本实例... 2293 16.1 多条码识别... 2293 16.2 钢管槽方向判断... 2306 16.3 医疗布标签方向与类别检测... 2317 16.4 塑料产品水口长度检测... 2321 16.5 瓶盖有无拧紧检测... 2323 16.6 塑料载物盒(料盘)计数... 2327 16.7 镀膜玻璃正反判断... 2331 16.8 螺丝有无螺牙检测... 2333 16.9 手机指示灯颜色识别... 2339 16.10 鼓簧有无与变形检测... 2343 16.11 喇叭同心度检测... 2345 16.12 塑料件有无喷银粉检测... 2348 16.13 钢柱表面缺陷检测... 2350 16.14 五金零件正反方向判断... 2360 16.15 Mark点定位... 2371 16.16 五金圆管变形毛刺检测... 2373
|