您现在的位置:首页 >> 机器学习 >> 内容

m基于Faster R-CNN网络的火灾识别系统matlab仿真,带GUI界面

时间:2023/9/25 21:34:45 点击:

  核心提示:0Y_006m,包含仿真操作录像...

1.完整项目描述和程序获取

>面包多安全交易平台:https://mbd.pub/o/bread/ZJ6Xk59q

>如果链接失效,可以直接打开本站店铺搜索相关店铺:

点击店铺

>如果链接失效,程序调试报错或者项目合作可以加微信或者QQ联系。

2.部分仿真图预览


3.算法概述

        Faster R-CNN是一种基于Region proposal network(RPN)和Fast R-CNN的深度学习目标检测算法。该算法主要由两部分组成:RPN网络和Fast R-CNN网络。 基于Faster R-CNN网络的火灾识别系统是一种利用深度学习算法实现火灾检测的方法,具有较高的准确性和效率。该系统的核心是Faster R-CNN算法,该算法主要由RPN网络和Fast R-CNN网络组成,可以对输入图像中的每个区域进行特征提取并输出目标检测结果。

4.部分源码

.................................................................................

% --- 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'},'选择一个图片','F:\test');

str=[pathname filename];

% 判断文件是否为空,也可以不用这个操作!直接读入图片也可以的

% 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.mat

In_layer_Size   = [224 224 3];

I               = im;

I               = imresize(I,In_layer_Size(1:2));

[bboxes,scores] = detect(detector,I);

 

if isempty(bboxes)==0

I1              = insertObjectAnnotation(I,'rectangle',bboxes,scores);

axes(handles.axes2);

imshow(I1)

else

 

I1              = I;

axes(handles.axes2);

imshow(I1)

end

bboxes

scores

set(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');

end

0Y_006m

---

作者:我爱C编程 来源:我爱C编程
本站最新成功开发工程项目案例
相关文章
  • 没有相关文章
相关评论
发表我的评论
  • 大名:
  • 内容:
本类固顶
  • 没有
  • FPGA/MATLAB商业/科研类项目合作(www.store718.com) © 2025 版权所有 All Rights Reserved.
  • Email:1480526168@qq.com 站长QQ: 1480526168