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, GUIHANDLESbe defined in a future version of MATLAB% handles structure with handles and user data (see GUIDATA)global templatefullname_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 testfullname_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代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。
该文介绍了利用光学摄像、微机控制和图像处理技术解决印刷电路板(PCB)自动检测的难题。通过MATLAB代码实现图像预处理,展示了一种可行的PCB检测方案,并提供了仿真结果。参考文献提及了基于计算机视觉的PCB自动检测系统研究。
1907

被折叠的 条评论
为什么被折叠?



