【缺陷检测】基于计算机视觉实现印刷电路板自动缺陷检测含Matlab代码

1 简介

印刷电路板(PCB)是集成各种电子元器件的信息载体,在各个领域得到了广泛的应用.随着技术的不断发展和工艺水平的不断提高,PCB朝着层数更多,密度更高的方向发展.然而,如何在高度自动化的生产现场自动检测PCB板一直是研究人员的难题.本课题确定了利用光学摄像技术,微机控制技术,图像处理分析技术来自动检测PCB的方法,为PCB的自动检测提供了一个切实可行的方案. 

2 部分代码

function varargout = Mainyinshua(varargin)% Prepared by OON CHEE YEE, 27737268% MAINYINSHUA MATLAB code for Mainyinshua.fig%      MAINYINSHUA, by itself, creates a new MAINYINSHUA or raises the existing%      singleton*.%%      H = MAINYINSHUA returns the handle to a new MAINYINSHUA or the handle to%      the existing singleton*.%%      MAINYINSHUA('CALLBACK',hObject,eventData,handles,...) calls the local%      function named CALLBACK in MAINYINSHUA.M with the given input arguments.%%      MAINYINSHUA('Property','Value',...) creates a new MAINYINSHUA or raises the%      existing singleton*.  Starting from the left, property value pairs are%      applied to the GUI before Mainyinshua_OpeningFcn gets called.  An%      unrecognized property name or invalid value makes property application%      stop.  All inputs are passed to Mainyinshua_OpeningFcn via varargin.%%      *See GUI Options on GUIDE's Tools menu.  Choose "GUI allows only one%      instance to run (singleton)".%% See also: GUIDE, GUIDATA, GUIHANDLES be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global template      fullname_temp = uigetfile({'*.jpg*'}, 'Select File to Open');           template = imread(fullname_temp);           axes(handles.axes1);        template=im2bw(template,0.5);        imshow (template);% --- Executes on button press in ChooseTestButton.function ChooseTestButton_Callback(hObject, eventdata, handles)% hObject    handle to ChooseTestButton (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)global test      fullname_test = uigetfile({'*.jpg*'}, 'Select File to Open');           test = imread(fullname_test);           axes(handles.axes2);        test=im2bw(test,0.5);        imshow (test);

3 仿真结果

【缺陷检测】基于计算机视觉实现印刷电路板自动缺陷检测含Matlab代码_第1张图片

【缺陷检测】基于计算机视觉实现印刷电路板自动缺陷检测含Matlab代码_第2张图片

4 参考文献

[1]谢佳豪. 基于计算机视觉的印刷电路板自动检测系统的研究[D]. 西安理工大学, 2004.

博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。

部分理论引用网络文献,若有侵权联系博主删除。

你可能感兴趣的:(图像处理,matlab,计算机视觉,开发语言)