落花
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) %%%%%%%%%%%%%%%%%%% 灰度化处理