Fire Detection System Based on Faster R-CNN

Fire Detection System Based on Faster R-CNN

Table of Contents

1. System Overview

2. System Simulation Effect Preview

3. Core Code

4. Complete Project Acquisition

1. System Overview

Faster R-CNN is a deep learning object detection algorithm based on Region Proposal Network (RPN) and Fast R-CNN. This algorithm consists mainly of two parts: the RPN network and the Fast R-CNN network. The fire detection system based on the Faster R-CNN network is a method for fire detection using deep learning algorithms, which has high accuracy and efficiency. The core of this system is the Faster R-CNN algorithm, which mainly consists of the RPN network and the Fast R-CNN network, allowing for feature extraction from each region of the input image and outputting object detection results.

2. System Simulation Effect Preview

Fire Detection System Based on Faster R-CNN

Fire Detection System Based on Faster R-CNN

Fire Detection System Based on Faster R-CNN

Fire Detection System Based on Faster R-CNN

3. Core Code

 .................................................................................% --- 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)global im;cla (handles.axes1,'reset')cla (handles.axes2,'reset')set(handles.edit1,'string',num2str(0));set(handles.edit2,'string',num2str(0));set(handles.edit5,'string',num2str(0));set(handles.edit6,'string',num2str(0)); axes(handles.axes1);[filename,pathname]=uigetfile({'*.bmp;*.jpg;*.png;*.jpeg;*.tif'},'Select an image','F:\test');str=[pathname filename];% Check if the file is empty; this operation is optional! You can also read the image directly% im = imread(str);% imshow(im)if isequal(filename,0)||isequal(pathname,0)    warndlg('please select a picture first!','warning');    return;else    im = imread(str);    imshow(im);end  % --- 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)global im;load net015.matIn_layer_Size   = [224 224 3];I               = im;I               = imresize(I,In_layer_Size(1:2));[bboxes,scores] = detect(detector,I); if isempty(bboxes)==0I1              = insertObjectAnnotation(I,'rectangle',bboxes,scores);axes(handles.axes2);imshow(I1)else I1              = I;axes(handles.axes2);imshow(I1)endbboxesscoresset(handles.edit1,'string',num2str((bboxes(1))));set(handles.edit6,'string',num2str((bboxes(2)))); set(handles.edit2,'string',num2str((bboxes(3))*(bboxes(4))));set(handles.edit5,'string',num2str(max(scores)));% --- Executes on button press in pushbutton3.   % --- Executes on button press in pushbutton5.function pushbutton5_Callback(hObject, eventdata, handles)% hObject    handle to pushbutton5 (see GCBO)% eventdata  reserved - to be defined in a future version of MATLAB% handles    structure with handles and user data (see GUIDATA)clc;clear;close all;  function edit1_Callback(hObject, eventdata, handles)% hObject    handle to edit1 (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 edit1 as text%        str2double(get(hObject,'String')) returns contents of edit1 as a double  % --- Executes during object creation, after setting all properties.function edit1_CreateFcn(hObject, eventdata, handles)% hObject    handle to edit1 (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');end0Y_006m

4. Complete Project Acquisition

Method1: Open the store and search:http://www.store718.com/List.asp?ID=4742

Method 2: Click 【Read Full Article】 at the bottom left of the article

Fire Detection System Based on Faster R-CNN

Method 3: Copy the link to your browser

https://mbd.pub/o/bread/ZJ6Xk59q

Method 4: If the above link is invalid, for program debugging bugs or project cooperation, please contact via WeChat or QQ.

Leave a Comment