1 简介
近年来,随着经济社会的持续快速发展和国民生活水平的稳步提升,汽车已逐渐进入普通百姓的生活,我国的汽车拥有量不断增加,许多城市出现了停车难和交通道路堵塞的现象。为了应对停车紧张的局面,很多地方停车场建设规模增大,许多大中型的停车场不断涌现。而传统停车场主要通过人工管理,随着停车场面积增大,车位数量增多,不仅需要增加停车场管理人员,而且客户停车、取车时很难快速找到停车位置,无法保证停车场的效率,管理难度与日俱增,同时,有些空缺车位不容易找到,导致车位没有有效利用,造成了资源浪费。所以,如何提高停车场的车位利用率及停车效率已经成为新型停车场建设所必须解决的问题。本方案主要采用对停车场管理系统进行智能化方案设计并利用先进的图像采集系统对停车场来往车辆进行车牌识别,再利用信息记录系统对车辆的车牌信息、停车时刻、停车时长和停车位置进行管理登记,采用超声波车位检测系统对停车场的车位进行检测,增设定位终端系统对车位的车牌信息进行提取。根据信息记录系统的信息、超声波定位系统的检测信息和定位终端的提取信息确定停车场的车位空缺情况及车位所停车辆的车牌等信息。
2 部分代码
function varargout = jieshu(varargin)
% JIESHU M-file for jieshu.fig
% JIESHU, by itself, creates a new JIESHU or raises the existing
% singleton*.
%
% H = JIESHU returns the handle to a new JIESHU or the handle to
% the existing singleton*.
%
% JIESHU('CALLBACK',hObject,eventData,handles,...) calls the local
% function named CALLBACK in JIESHU.M with the given input arguments.
%
% JIESHU('Property','Value',...) creates a new JIESHU or raises the
% existing singleton*. Starting from the left, property value pairs are
% applied to the GUI before jieshu_OpeningFcn gets called. An
% unrecognized property name or invalid value makes property application
% stop. All inputs are passed to jieshu_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 jieshu
% Last Modified by GUIDE v2.5 07-Dec-2010 22:40:03
% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name', mfilename, ...
'gui_Singleton', gui_Singleton, ...
'gui_OpeningFcn', @jieshu_OpeningFcn, ...
'gui_OutputFcn', @jieshu_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 jieshu is made visible.
function jieshu_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 jieshu (see VARARGIN)
% Choose default command line output for jieshu
handles.output = hObject;
% Update handles structure
guidata(hObject, handles);
global qian
global rate
set(handles.abc,'String',num2str(rate));
set(handles.bbb,'String',num2str(qian));
% UIWAIT makes jieshu wait for user response (see UIRESUME)
% uiwait(handles.figure1);
% --- Outputs from this function are returned to the command line.
function varargout = jieshu_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 handles structure
varargout{1} = handles.output;
function edit2_Callback(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit2 as text
% str2double(get(hObject,'String')) returns contents of edit2 as a double
% --- Executes during object creation, after setting all properties.
function edit2_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
function edit3_Callback(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% Hints: get(hObject,'String') returns contents of edit3 as text
% str2double(get(hObject,'String')) returns contents of edit3 as a double
% --- Executes during object creation, after setting all properties.
function edit3_CreateFcn(hObject, eventdata, handles)
% hObject handle to edit3 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
% Hint: edit controls usually have a white background on Windows.
% See ISPC and COMPUTER.
if ispc && isequal(get(hObject,'BackgroundColor'), get(0,'defaultUicontrolBackgroundColor'))
set(hObject,'BackgroundColor','white');
end
% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
close all;
openfig('jiemian1.fig')
% hObject handle to pushbutton1 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes on button press in pushbutton2.
function pushbutton2_Callback(hObject, eventdata, handles)
close all
% hObject handle to pushbutton2 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)
% --- Executes during object creation, after setting all properties.
function bbb_CreateFcn(hObject, eventdata, handles)
% hObject handle to bbb (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles empty - handles not created until after all CreateFcns called
3 仿真结果
4 参考文献
[1]张强. 基于Matlab的停车场车辆出入管理系统智能化设计[D]. 天津大学.
博主简介:擅长智能优化算法、神经网络预测、信号处理、元胞自动机、图像处理、路径规划、无人机等多种领域的Matlab仿真,相关matlab代码问题可私信交流。
部分理论引用网络文献,若有侵权联系博主删除。