A list,

The detection of pavement cracks is an important part of highway pavement disease maintenance and management. In recent years, automatic pavement crack detection technology has been widely used, but because of the complexity of pavement crack image, detection algorithm directly affects the accuracy of detection results. Therefore, this paper focuses on the detection of pavement crack disease. In order to improve the detection accuracy, in-depth research is carried out from the aspects of crack image denoising, image enhancement, image segmentation and feature extraction of pavement crack image after detection. In the pavement crack image, it is difficult to detect the crack directly because of the low contrast between the crack information and the background. For the image pretreatment, the first image gray correction, and then the corrected image filtering, this paper proposes an improved median filtering method, the image denoising, and then using the image enhancement principle based on fuzzy theory to further enhance the image, effectively improve the contrast of the pavement crack image. For pavement crack image segmentation, this paper separately in the threshold segmentation and based on the morphological multiscale ideas, to shape the rules of cracks using threshold segmentation, the fracture shape irregular images, this paper designed a kind of multiple structural elements of the antinoise edge detection operator, and on the basis of different shape of structure element to the edge crack filling risk is different, the adaptive weight is determined , the operator can detect various types of crack edges, effectively improve the detection accuracy. For the problems of noise and fracture in the segmented pavement crack image, this paper uses the closed operation and open operation in morphology to deal with the narrow fracture image, and proposes a method of fracture block connection based on growth for the wide fracture image. It improves the efficiency and accuracy of connection and makes the whole detection result clear and complete. Finally, the fracture information is extracted from the recognition result graph. According to the recognition result, a series of judgment conditions are set to extract the connected domain of cracks, judge the types of cracks, and finally calculate the area of reticulated cracks and the length and width of linear cracks.

Ii. Source code

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

% Last Modified by GUIDE v2. 5 12-Apr- 2021. 10:23:22

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

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

% Update handles structure
guidata(hObject, handles);
% set(gcf,'menu'.'figure');
set(gcf,'numbertitle'.'off'.'name'.'Pavement Crack Detection and Treatment Suggestion Software Based on BP Neural Network');
% UIWAIT makes firstPage wait for user response (see UIRESUME)
% uiwait(handles.figure1);
bg_P=axes('units'.'normalized'.'position'[0 0 1 1]);
uistack(bg_P,'bottom');
II=imread('background\8.jpg');
image(II);
hold on 
%  w=text(177.68.'Pavement Crack Treatment System Based on BP Network'.'fontsize'.25.'color'[1.0 1.0 1.0]);
  w=text(65.98.'Pavement Crack Detection and Treatment Suggestion Software Based on BP Neural Network'.'fontsize'.25.'color'[0.0 0.0 0.0]);
   w1=text(52.150.'Pavement Crack Detection And Processing Suggest Software '.'fontsize'.20.'color'[0.0 0.0 0.0]);
   w2=text(250.200.'Based On BP Neural Network '.'fontsize'.20.'color'[0.0 0.0 0.0]);
    w3=text(385.400.'university'.'fontsize'.15.'color'[0.0 0.0 0.0]);
    w4=text(340.420.'** University '.'fontsize'.13.'color'[0.0 0.0 0.0]);
     w5=text(380.470.'1st,April,2021'.'fontsize'.11.'color'[0.0 0.0 0.0]);
   
   
colormap gray;
set(bg_P,'handlevisibility'.'off'.'visible'.'off');

% set(handles.pushbutton1,'visible'.'off');
% --- Outputs from this function are returned to the command line.
function varargout = firstPage_OutputFcn(~, 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 model_Callback(hObject, eventdata, handles)
% hObject    handle to model (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Help_Callback(hObject, eventdata, handles)
% hObject    handle to Help (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Exit_Callback(hObject, eventdata, handles)
% hObject    handle to Exit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
close gcf; % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --function fast_Callback(hObject, eventdata, handles)% % % % % % % % % % % % % % % % % % % % % % % % % % % % mode choice - "quick mode -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- the functionRetrain_Callback(hObject, eventdata, handles)%%%%%%%%%%%%%%%%%%%%% mode selection -- retrain ANNcheck;
load data\acy_check;
load data\acy_reg;
t=['Accuracy is' acy_check];
q=questdlg(t,'Retrain or not?'.'is'.'no'.'no');
if q=='is'
    Retrain_Callback();
else
    setappdata(0.'acy_check',acy_check);
    setappdata(0.'acy_reg',acy_reg); close(gcf); secondPage; End % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % % as the training againorFast Mode logo Hit=0;
setappdata(0.'Hit',Hit); %%%%%%% retrain mode, then Hit=0

% --------------------------------------------------------------------
function ask_help_Callback(hObject, eventdata, handles)
% hObject    handle to ask_help (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
open ('Help.docx'); % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --function Wenjian_Callback(hObject, eventdata, handles)
% hObject    handle to Wenjian (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function file_in_Callback(hObject, eventdata, handles)
% hObject    handle to file_in (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)The open TXT \ program files is introduced. TXT % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- the functionUntitled_1_Callback(hObject, eventdata, handles)
% hObject    handle to Exit1 (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function DingYi_Callback(hObject, eventdata, handles)
% hObject    handle to DingYi (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)Open TXT \ fracture direction definition. TXT % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- the functionNet_Callback(hObject, eventdata, handles)
% hObject    handle to Net (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function CheckNet_Callback(hObject, eventdata, handles)%%%%%%%%%%%%%%%%% about network - "check network % hObject handle toCheckNet (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)Open TXT \ Detect net.txt; % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --function RecNet_Callback(hObject, eventdata, handles)%%%%%%%%%%%%%%%%% about networks - "identify networks % hObject handle toRecNet (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)Open TXT \ Identify the net.txt; % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --function retrain_c_Callback(hObject, eventdata, handles)
% hObject    handle to retrain_c (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function retrain_r_Callback(hObject, eventdata, handles)
% hObject    handle to retrain_r (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)


% --------------------------------------------------------------------
function Reset_Callback(hObject, eventdata, handles)%%%%%%%%%%%%%% parameter reset % hObject Handle toReset (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
tex= ['Do you really need to reset the default parameters, which are the best combination after many trials? '];
q=questdlg(tex,'Warm reminder'.'is'.'no'.'no');
if q=='is'      
    t{1} ='Maximum number of iterations'; t{2} ='Number of hidden elements in the first hidden layer'; t{3} ='Number of hidden elements in the second hidden layer';
    t{4} ='First hidden layer activation function'; t{5} ='Second hidden layer activation function'; t{6} ='Training function';
    title='set';
    default_t= {'5000'.'432'.'54'.'tansig'.'purelin'.'trainscg'};
    param=inputdlg(t,title,1.default_t.'on');
    num1=str2num(param{1}); num2=str2num(param{2}); num3=str2num(param{3});
    str1=(param{4}); str2=(param{5}); str3=(param{6});
    
    save data\param num1 num2 num3 str1 str2 str3;
    key_reset=1;
    save data\key_reset key_reset;
else
    key_reset=0;
    save data\key_reset key_reset;
    
end
    



% --------------------------------------------------------------------
function f_open_Callback(hObject, eventdata, handles)
% hObject    handle to f_open (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
[filename pathname]=uigetfile({'*.jpg';'*.png';'*.gif'},'Select background'); % -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --function f_new_Callback(hObject, eventdata, handles)
% hObject    handle to f_new (see GCBO)
% eventdata  reserved - to be defined in a future version of MATLAB
% handles    structure with handles and user data (see GUIDATA)
Copy the code

3. Operation results



Fourth, note

Version: 2014a complete code or write plus 1564658423