-
大小: 1.79MB文件类型: .zip金币: 1下载: 0 次发布日期: 2023-11-17
- 语言: Matlab
- 标签:
资源简介
本设计为基于MATLAB的表盘指针识别,算法原理是基于hough变换。可检测压力表,石英手表,电表刻度,气压表等带指针刻度的表盘。通过hough检测直线和圆的关系,得出指针夹角,根据刻度换算关系得出具体刻度值。算法流程为:原图,灰度变换,二值化,hough变换,刻度指针处刻度定位,计算夹角,得出示数。本设计带有一个人机交互GUI界面,操作人性化,逻辑清晰。
代码片段和文件信息
function varargout = lychse(varargin)
% LYCHSE M-file for lychse.fig
% LYCHSE by itself creates a new LYCHSE or raises the existing
% singleton*.
%
% H = LYCHSE returns the handle to a new LYCHSE or the handle to
% the existing singleton*.
%
% LYCHSE(‘CALLBACK‘hobjecteventDatahandles...) calls the local
% function named CALLBACK in LYCHSE.M with the given input arguments.
%
% LYCHSE(‘Property‘‘Value‘...) creates a new LYCHSE or raises the
% existing singleton*. Starting from the left property value pairs are
% applied to the GUI before pjjmage11_OpeningFunction gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to lychse_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
% Edit the above text to modify the response to help lychse
% Last Modified by GUIDE v2.5 06-Jan-2020 14:05:23
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct(‘gui_Name‘ mfilename ...
‘gui_Singleton‘ gui_Singleton ...
‘gui_OpeningFcn‘ @lychse_OpeningFcn ...
‘gui_OutputFcn‘ @lychse_OutputFcn ...
‘gui_LayoutFcn‘ [] ...
‘gui_Callback‘ []);
if nargin && ischar(varargin{1})
gui_State.gui_Callback = str2func(varargin{1});
end
if nargout
[varargout{1:nargout}] = gui_mainfcn(gui_State varargin{:});
else
gui_mainfcn(gui_State varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before lychse is made visible.
function lychse_OpeningFcn(hobject eventdata handles varargin)
% This function has no output args see OutputFcn.
% hobject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% varargin command line arguments to lychse (see VARARGIN)
% Choose default command line output for lychse
handles.output = hobject;
% Update handles structure
guidata(hobject handles);
% UIWAIT makes lychse wait for user response (see UIRESUME)
% uiwait(handles.figure1);
setappdata(handles.figure1‘img_src‘0);
% set(handles.tbl_save‘Enable‘‘off‘);
set(handles.m_file_save‘Enable‘‘off‘);
set(handles.m_image_analysis‘Enable‘‘off‘);
set(handles.popupmenu1‘Enable‘‘off‘);
% --- Outputs from this function are returned to the command line.
function varargout = lychse_OutputFcn(hobject eventdata handles)
% varargout cell array for returning output args (see VARARGOUT);
% hobject handle to figure
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Get default command line output from han
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2020-07-31 23:28 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\
文件 3880 2012-01-05 20:23 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\code.asv
文件 9117 2020-07-30 23:59 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\lychse.fig
文件 13904 2020-07-30 23:58 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\lychse.m
文件 193884 2012-01-05 20:40 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\yalibiao.jpg
文件 0 2020-02-03 15:48 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\yibiaoshishu.txt
文件 572 2020-07-31 23:24 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\打开方式.txt
目录 0 2020-07-30 23:56 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\运行效果图\
文件 393882 2020-02-03 15:52 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\运行效果图\运行截图1.png
文件 408153 2020-02-03 15:53 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\运行效果图\运行截图2.png
文件 170469 2020-02-03 15:50 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\运行效果图\运行截图3.png
文件 341046 2020-02-03 15:53 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\运行效果图\运行截图4.png
文件 374081 2020-02-03 15:52 基于MATLAB hough变换的表盘刻度识别系统(带GUI界面)\运行效果图\运行截图5.png
评论
共有 条评论