资讯详情

【缺陷检测】基于计算机视觉实现印刷电路板自动缺陷检测含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 仿真结果

4 参考文献

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

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

如些理论引用网络文献,如有侵权联系博主删除。

标签: an5095集成电路

锐单商城拥有海量元器件数据手册IC替代型号,打造 电子元器件IC百科大全!

锐单商城 - 一站式电子元器件采购平台