机器视觉仿真设计
2021-05-19陈卫国
陈卫国



摘 要:机器视觉技术在工业自动化领域应用广泛,但机器视觉硬件成本较高,高校机器视觉实验室存在设备台套数不够的问题,同时要找到一种开发模式,使得机械类学生在现有基础知识储备的基础上,能够开发机器视觉项目。为解决这些问题,该文以物体形状识别和尺寸测量两个案例,详细介绍了康耐视智能相机In-Sight视觉开发软件中Easybuilder和电子表格两种仿真设计方法。使用该方法可以在没有智能相机的情况下对视觉算法进行研究,缓解了硬件不足的问题,该设计方法不需大量编程,效果直观、可视,应用步骤简明,适合机械类学生应用。应用该方法在SKARB-12型工业机器人工作站中完成视觉导引,效果良好。
关键词:机器视觉 智能相机 Easybuilder 电子表格
中图分类号:TP18 文献标识码:A 文章编号:1672-3791(2021)02(a)-0021-04
Design of Machine Vision Simulation
CHEN Weiguo*
(Hunan University of Arts and Sciences, Changde, Hunan Province, 415000 China)
Abstract: Machine vision technology is widely used in the field of industrial automation, but the cost of machine vision hardware is relatively high. The machine vision laboratory of colleges and universities has the problem of insufficient equipment sets. At the same time, it is necessary to find a development mode that enable mechanical students to develop machine vision projects on the basis of existing basic knowledge reserves. To solve these problems, this paper uses two cases of object shape recognition and size measurement to introduce in detail the Easybuilder and spreadsheet simulation design methods in the In-Sight vision development software for Cognex smart cameras. Using this method, the visual algorithm can be researched without a smart camera, and the problem of insufficient hardware is alleviated. The design method does not require a lot of programming, the effect is intuitive and visible, the application steps are simple and it is suitable for mechanical students. This method is used to complete the visual guidance in the SKARB-12 industrial robot workstation with good results.
Key Words:Machine vision;Smart camera;Easybuilder;Spread sheet
机器视觉在工业自动化生产中得到广泛应用[1],特别是在工业机器人应用领域[2]。机器视觉系统成本较高,高校实验室机器视觉实验设备台套数不够。同时,对于机械电子工程专业学生,特别是纯机械类的学生来说,无论是使用halcon进行开发[3],还是采用MATLAB开发[4],知识储备均不够。本文介绍基于康耐视智能相机和In-Sight视觉软件的机器视觉仿真系统的结构,研究在Easybuilder和電子表格两种编程方式下,形状识别、定位及视觉系统与上位机通信的仿真设计方法。
1 机器视觉总体方案设计
机器视觉的解决方案较多[5-6],考虑到机械类学生知识体系的情况,我们选择的机器视觉总……
