基于MATLAB的QR二维码解码技术的程序

更新时间:2023-05-22 08:41:00 阅读: 评论:0

落花
function varargout = QRMain(varargin)
% QRMAIN MATLAB code for QRMain.fig
%      QRMAIN, by itlf, creates a new QRMAIN or rais the existing
%      singleton*.
%
%      H = QRMAIN returns the handle to a new QRMAIN or the handle to
%      the existing singleton*.
%
脉书%      QRMAIN('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in QRMAIN.M with the given input arguments.
%
%      QRMAIN('Property','Value',...) creates a new QRMAIN or rais the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before QRMain_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are pasd to QRMain_OpeningFcn via varargin.
%
%      *See GUI Options on GUIDE's Tools menu.  Choo "GUI allows only one
%      instance to run (singleton)".
%
% See also: GUIDE, GUIDATA, GUIHANDLES
碧悠酸奶
海钓鲈鱼
% Edit the above text to modify the respon to help QRMain
% Last Modified by GUIDE v2.5 11-Apr-2017 20:19:20
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',      mfilename, ...
                  'gui_Singleton',  gui_Singleton, ...
                  'gui_OpeningFcn', @QRMain_OpeningFcn, ...
                  'gui_OutputFcn',  @QRMain_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{:});
el
    gui_mainfcn(gui_State, varargin{:});
end
% End initialization code - DO NOT EDIT
% --- Executes just before QRMain is made visible.
function QRMain_OpeningFcn(hObject, eventdata, handles, varargin)
% This function has no output args, e OutputFcn.
% hObject    handle to figure
% eventdata  rerved - to be defined in a future version of MATLAB
% handles    structure with handles and ur data (e GUIDATA)
% varargin  command line arguments to QRMain (e VARARGIN)
% Choo default command line output for QRMain
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
% UIWAIT makes QRMain wait for ur respon (e UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = QRMain_OutputFcn(hObject, eventdata, handles)
% varargout  cell array for returning output args (e VARARGOUT);
% hObject    handle to figure
七字对联100副欣赏% eventdata  rerved - to be defined in a future version of MATLAB
% handles    structure with handles and ur data (e GUIDATA)
% Get default command line output from handles structure
varargout{1} = handles.output;
猫咪能吃菠萝吗
% --- Executes on button press in OpenQRPic.
function OpenQRPic_Callback(hObject, eventdata, handles)                %%%%%%%%打开图像
global im;
[filename,pathname]=uigetfile({'*.*';'*.bmp';'*.jpg';'*.tif';'*.jpg'},'选择图像');
if iqual(filename,0)||iqual(pathname,0)月之花语
  errordlg('您还没有选取图片!!','温馨提示');%如果没有输入,则创建错误对话框
  return;
el
    image=[pathname,filename];%合成路径+文件名
    im=imread(image);%读取图像
    figure
    imshow(im);%在坐标axes1显示原图像
    title('原始QR图像');
end
% hObject    handle to OpenQRPic (e GCBO)
% eventdata  rerved - to be defined in a future version of MATLAB
% handles    structure with handles and ur data (e GUIDATA)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton2 (e GCBO)
% eventdata  rerved - to be defined in a future version of MATLAB
% handles    structure with handles and ur data (e GUIDATA)
% --- Executes on button press in DecodeQR.
function DecodeQR_Callback(hObject, eventdata, handles)%%%%%%%%%%%%%%%%%%%    QR解码
global I_otsu;  %global 定义全局变量
global im;
global KL;
global Ijibian;
I_jiema=Ijibian;
I_jiema=I_otsu;  %二值
I_jiema=KL;吐造句
I_jiema=im;
%
str=zxing_decode(I_jiema)                %解码
%t(handles.edit1,'string',[get(handles.edit1,'string') str]);
%,'string',[,'string') str]);
t(handles.edit1,'String',str);        %显示字符
% --- Executes on button press in GrayGen.
function GrayGen_Callback(hObject, eventdata, handles)  %%%%%%%%%%%%%%%%%%%    灰度化处理

本文发布于:2023-05-22 08:41:00,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/82/729848.html

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。

标签:图像   没有   创建   错误   输入   路径   欣赏
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图