APP下载

基于LABVIEW的双目视觉电路板定位系统

2020-07-29王磊

微型电脑应用 2020年7期

摘 要: 双目视觉技术可用于PCB 裸板的缺陷检测,而精确定位则是这一应用的前提。利用LabVIEW的IMAQ Vision模块,进行了电路板的双目视觉定位技术的研究,通过搭建双目视觉定位系统,并对双目相机进行标定,获得给定电路板的图像;对电路板进行边沿检测,建立坐标系统,完成电路板测试点的位置确定;经视差计算,获得电路板测试点的位置坐标,完成定位。经过对不同测试点进行试验验证,本系统具有较好的准确性及稳定性。

关键词: 双目视觉; 相机标定; 图像处理; LabVIEW

中图分类号: TP216+.3文献标志码: B

Binocular Vision Circuit Board Location System Based on Labview

WANG Lei

(College of Electronics and Information Engineering, Ankang University, Ankang, Shanxi 725000, China)

Abstract: Binocular vision technology can be used for defect detection of PCB bare plate, and accurate positioning is the basis of this application. In this paper, using IMAQ vision module of LabVIEW, the research on binocular vision positioning technology of circuit board is carried out. By building binocular vision system and calibrating binocular camera, the image of a given circuit board is obtained. Circuit board edge detection, coordinate system and line searching are carried out to determine the position of test points of circuit board. The position coordinates of the board test points complete the positioning of the board test points. The system has good accuracy and stability through the test of different test points of circuit boards.

Key words: binocular vision; camera calibration; image processing; LabVIEW

0 引言

隨着计算机技术、数字图像处理等理论的发展,机器视觉已成为研究的热点。人们使用相机等装置将外界实物转化为数字信息,进行视觉信息处理,从而获取物体的形状、位置等信息。人类双眼同时观察事物能分辨远近,在机器视觉中,也可用两台相机从不同位置观测同一事物,从而得到差别视角下的图像,经过计算同一像素的视差来获得三维信息。目前,双目视觉技术已在众多领域得到应用[1-3]。

电子线路板(PCB)的制造工艺非常复杂,从基材板到成品需要经过十多个工序。为减少工作量,降低复杂度,双目视觉技术可应用于PCB板制作中,对尚未安装电子元器件的PCB裸板进行缺陷检测。其中高精度的图像处理及分析是这一应用的核心技术。而要提高图像测量系统的精度,首先要完成对电路板的精确定位。完成这一点可以通过提高硬件配置,选用高分辨率的设备来实现,但是实际生产中,企业往往受限于生产成本而难以及时升级或更新硬件。……

登录APP查看全文