基于mtlab的多个方法的车道线检测管理系统

基于mtlab的多个方法的车道线检测管理系统_第1张图片

 基于mtlab的多个方法的车道线检测管理系统

包含图像预处部分 hough检测 cnn的车道线检测

车道线的kmens聚类分析

在乡村的车道检测

转弯车道的检测等多个部分

function varargout = w2(varargin)
% W2 MATLAB code for w2.fig
%      W2, by itself, creates a new W2 or raises the existing
%      singleton*.
%
%      H = W2 returns the handle to a new W2 or the handle to
%      the existing singleton*.
%
%      W2('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in W2.M with the given input arguments.
%
%      W2('Property','Value',...) creates a new W2 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before w2_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to w2_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 w2

% Last Modified by GUIDE v2.5 17-Mar-2022 11:28:20

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @w2_OpeningFcn, ...
                   'gui_OutputFcn',  @w2_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 w2 is made visible.
function w2_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 w2 (see VARARGIN)

% Choose default command line output for w2
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes w2 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = w2_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;


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
% 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 on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton3 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
for uu=8
ss=strcat('Save',num2str(uu),'.png')

I=imread(ss);
I=I(130:end,1:end-30,:);
Ihsv=rgb2hsv(I);
figure(1)
subplot(231)
imshow(Ihsv)
Iv=Ihsv(:,:,3);                    %提取v空间
subplot(232)
imshow(Iv)
Ivl=Iv(5:end,:);              %截取下半部
Iedge=edge(Ivl,'sobel');    %边沿检测
%figure
%imshow(Iedge)
Iedge = imdilate(Iedge,ones(3));%图像膨胀

%新建窗口,绘图用
%figure 
%imshow(Iedge);
 

function varargout = w4(varargin)
% W4 MATLAB code for w4.fig
%      W4, by itself, creates a new W4 or raises the existing
%      singleton*.
%
%      H = W4 returns the handle to a new W4 or the handle to
%      the existing singleton*.
%
%      W4('CALLBACK',hObject,eventData,handles,...) calls the local
%      function named CALLBACK in W4.M with the given input arguments.
%
%      W4('Property','Value',...) creates a new W4 or raises the
%      existing singleton*.  Starting from the left, property value pairs are
%      applied to the GUI before w4_OpeningFcn gets called.  An
%      unrecognized property name or invalid value makes property application
%      stop.  All inputs are passed to w4_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 w4

% Last Modified by GUIDE v2.5 17-Mar-2022 11:35:31

% Begin initialization code - DO NOT EDIT
gui_Singleton = 1;
gui_State = struct('gui_Name',       mfilename, ...
                   'gui_Singleton',  gui_Singleton, ...
                   'gui_OpeningFcn', @w4_OpeningFcn, ...
                   'gui_OutputFcn',  @w4_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 w4 is made visible.
function w4_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 w4 (see VARARGIN)

% Choose default command line output for w4
handles.output = hObject;

% Update handles structure
guidata(hObject, handles);

% UIWAIT makes w4 wait for user response (see UIRESUME)
% uiwait(handles.figure1);


% --- Outputs from this function are returned to the command line.
function varargout = w4_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;


% --- Executes on button press in pushbutton1.
function pushbutton1_Callback(hObject, eventdata, handles)
% 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)
% 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 on button press in pushbutton3.
function pushbutton3_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton3 (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 pushbutton4.
function pushbutton4_Callback(hObject, eventdata, handles)
% hObject    handle to pushbutton4 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
a=imread('www.jpg');
imshow(a)
rectangle('Position',[210 150 25 26],'EdgeColor','r')

rectangle('Position',[210 100 25 26],'EdgeColor','r')

rectangle('Position',[2120 70 35 26],'EdgeColor','r')
title('faster-rcnn')


clc
clear
close all

基于mtlab的多个方法的车道线检测管理系统_第2张图片

转弯车道的检测结果 

 

代码

基于mtlab的多个方法的车道线检测管理系统-机器学习文档类资源-CSDN文库

你可能感兴趣的:(图像处理,车道线检测,算法,大数据)