• Lola1357
    了解作者
  • WORD
    开发工具
  • 10KB
    文件大小
  • rar
    文件格式
  • 0
    收藏次数
  • 1 积分
    下载积分
  • 4
    下载次数
  • 2018-04-28 21:17
    上传日期
检测火焰图像颜色rgb分量,并通过背景差分提取出目标区域
keyong.zip.rar
  • keyong.zip.docx
    11.8KB
内容介绍
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta charset="utf-8"> <meta name="generator" content="pdf2htmlEX"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <link rel="stylesheet" href="https://static.pudn.com/base/css/base.min.css"> <link rel="stylesheet" href="https://static.pudn.com/base/css/fancy.min.css"> <link rel="stylesheet" href="https://static.pudn.com/prod/directory_preview_static/626c88481fd0a579527a4bfb/raw.css"> <script src="https://static.pudn.com/base/js/compatibility.min.js"></script> <script src="https://static.pudn.com/base/js/pdf2htmlEX.min.js"></script> <script> try{ pdf2htmlEX.defaultViewer = new pdf2htmlEX.Viewer({}); }catch(e){} </script> <title></title> </head> <body> <div id="sidebar" style="display: none"> <div id="outline"> </div> </div> <div id="pf1" class="pf w0 h0" data-page-no="1"><div class="pc pc1 w0 h0"><img class="bi x0 y0 w1 h1" alt="" src="https://static.pudn.com/prod/directory_preview_static/626c88481fd0a579527a4bfb/bg1.jpg"><div class="c x0 y1 w2 h2"><div class="t m0 x1 h3 y2 ff1 fs0 fc0 sc0 ls0 ws0">&#25209;&#37327;&#26816;&#27979;&#28779;&#28976;&#22270;&#29255;</div><div class="t m0 x1 h4 y3 ff2 fs1 fc0 sc1 ls0 ws0">srcDir=uigetdir(<span class="fc1">'D:\<span class="ff1">&#27605;&#35774;&#30456;&#20851;</span>\<span class="ff1">&#28779;&#28798;</span> ire\'</span>); <span class="fc2">%<span class="ff1">&#33719;&#24471;&#36873;&#25321;&#30340;&#25991;&#20214;&#22841;</span></span></div><div class="t m0 x1 h5 y4 ff2 fs1 fc0 sc1 ls0 ws0">cd(srcDir);</div><div class="t m0 x1 h4 y5 ff2 fs1 fc0 sc1 ls0 ws0">allnames=struct2cell(dir(<span class="fc1">'*.jpg'</span>)); <span class="fc2">%<span class="ff1">&#21482;&#22788;&#29702;<span class="_ _0"> </span></span>8<span class="_ _0"> </span><span class="ff1">&#20301;&#30340;<span class="_ _0"> </span></span>jpg<span class="_ _0"> </span><span class="ff1">&#25991;&#20214;</span></span></div><div class="t m0 x1 h4 y6 ff2 fs1 fc0 sc1 ls0 ws0">[k,len]=size(allnames); <span class="fc2">%<span class="ff1">&#33719;&#24471;<span class="_ _0"> </span></span>jpg<span class="_ _0"> </span><span class="ff1">&#25991;&#20214;&#30340;&#20010;&#25968;</span></span></div><div class="t m0 x1 h5 y7 ff2 fs1 fc3 sc1 ls0 ws0">for<span class="fc0"> ii=1:len</span></div><div class="t m0 x1 h4 y8 ff2 fs1 fc2 sc1 ls0 ws0">%<span class="ff1">&#36880;&#27425;&#21462;&#20986;&#25991;&#20214;</span></div><div class="t m0 x1 h5 y9 ff2 fs1 fc0 sc1 ls0 ws0">name=allnames{1,ii};</div><div class="t m0 x1 h4 ya ff2 fs1 fc0 sc1 ls0 ws0">RGB=imread(name); <span class="fc2">%<span class="ff1">&#35835;&#21462;&#25991;&#20214;</span></span></div><div class="t m0 x1 h5 yb ff2 fs1 fc0 sc1 ls0 ws0">figure;</div><div class="t m0 x1 h4 yc ff2 fs1 fc0 sc1 ls0 ws0">subplot(231);imshow(RGB);title(<span class="fc1">'<span class="ff1">&#21407;&#22270;</span>'</span>);</div><div class="t m0 x1 h5 yd ff2 fs1 fc0 sc1 ls0 ws0">r=RGB(:,:,1);</div><div class="t m0 x1 h5 ye ff2 fs1 fc0 sc1 ls0 ws0">g=RGB(:,:,2);</div><div class="t m0 x1 h5 yf ff2 fs1 fc0 sc1 ls0 ws0">b=RGB(:,:,3);</div><div class="t m0 x1 h5 y10 ff2 fs1 fc0 sc1 ls0 ws0">bw=im2bw(RGB);</div><div class="t m0 x1 h5 y11 ff2 fs1 fc0 sc1 ls0 ws0">bw=double(bw);</div><div class="t m0 x1 h5 y12 ff2 fs1 fc0 sc1 ls0 ws0">r=double(r);</div><div class="t m0 x1 h5 y13 ff2 fs1 fc0 sc1 ls0 ws0">g=double(g);</div><div class="t m0 x1 h5 y14 ff2 fs1 fc0 sc1 ls0 ws0">b=double(b);</div><div class="t m0 x1 h5 y15 ff2 fs1 fc0 sc1 ls0 ws0">r1=r.*bw;</div><div class="t m0 x1 h5 y16 ff2 fs1 fc0 sc1 ls0 ws0">g1=g.*bw;</div><div class="t m0 x1 h5 y17 ff2 fs1 fc0 sc1 ls0 ws0">b1=b.*bw;</div><div class="t m0 x1 h4 y18 ff2 fs1 fc0 sc1 ls0 ws0">subplot(2,3,2);imshow(mat2gray(r1));title(<span class="fc1">'<span class="ff1">&#32418;&#33394;&#20998;&#37327;</span>'</span>)<span class="fc2">%<span class="ff1">&#36825;&#20010;&#22270;&#26159;&#29992;<span class="_ _0"> </span></span>r<span class="_ _0"> </span><span class="ff1">&#20998;&#37327;&#19982;<span class="_ _0"> </span></span>bw<span class="_ _0"> </span><span class="ff1">&#30456;</span></span></div><div class="t m0 x1 h4 y19 ff1 fs1 fc2 sc1 ls0 ws0">&#20056;&#65292;&#37027;&#20040;&#25105;&#35273;&#24471;&#22270;&#20013;&#26377;&#22270;&#20687;&#37096;&#20998;&#23601;&#24212;&#35813;&#26159;&#28779;&#28976;&#30340;&#32418;&#33394;&#20449;&#24687;</div><div class="t m0 x1 h4 y1a ff2 fs1 fc0 sc1 ls0 ws0">subplot(2,3,3);imshow(mat2gray(g1));title(<span class="fc1">'<span class="ff1">&#32511;&#33394;&#20998;&#37327;</span>'</span>)</div><div class="t m0 x1 h4 y1b ff2 fs1 fc0 sc1 ls0 ws0">subplot(2,3,4);imshow(mat2gray(b1));title(<span class="fc1">'<span class="ff1">&#34013;&#33394;&#20998;&#37327;</span>'</span>)</div><div class="t m0 x1 h5 y1c ff2 fs1 fc0 sc1 ls0 ws0">k=imsubtract(r1,g1);</div><div class="t m0 x1 h5 y1d ff2 fs1 fc0 sc1 ls0 ws0">subplot(235),imshow(k);title(<span class="fc1">'k&gt;0'</span>)</div><div class="t m0 x1 h5 y1e ff2 fs1 fc0 sc1 ls0 ws0">y=k&gt;30</div><div class="t m0 x1 h5 y1f ff2 fs1 fc0 sc1 ls0 ws0">subplot(236);imshow(y);title(<span class="fc1">'k&gt;30'</span>)</div><div class="t m0 x1 h5 y20 ff2 fs1 fc3 sc1 ls0 ws0">end</div></div></div><div class="pi" data-data='{"ctm":[1.568627,0.000000,0.000000,1.568627,0.000000,0.000000]}'></div></div> </body> </html>
评论
    相关推荐
    • traffic_fire_detection.zip
      基于rgb颜色模型和差分运动目标检测的视频火焰检测
    • Radar-target-generation-and-detection-master.zip
      MATLAB中的雷达目标生成和检测,调频连续波,FFT(用于范围检测的1D),FFT (2D for distance and speed detection),2d恒定火焰警报率(2D-CFAR)
    • openCVpaper.zip
      检测火焰的论文四篇,实现得相当不错,讲解详细,创新
    • firedetection.rar
      火焰识别源代码,基于opencv。能够识别图片,视频或者是网络相机中的火焰
    • 火焰检测.zip
      该代码利用颜色模型去检测火焰, 分为3个模块, HSV, RGB, YCrCb 颜色空间, 根据论文定义, 设定判断的相关区间, 从而从图像中判断出火焰的位置, 对火灾的预防以及火焰的检测可以起到重要的作用. 主要采用numpy进行...
    • 火焰检测数据集 目标检测
      已标记好的火焰目标检测数据集,包含训练集和测试集。
    • (python)火焰检测代码
      (python)火焰检测代码。 火焰检测代码(python)。 本资源为python实现的火焰检测的opencv代码,通过检测火焰的颜色以及大小来对火焰进行多目标跟踪。 火焰检测 python opencv
    • TNN:人工神经网络
      目标检测(yolov5s) 脸部对齐(来自腾讯优图实验室) 的iOS :check_mark_button: 安卓 :check_mark_button: 的iOS :check_mark_button: 安卓 :check_mark_button: 的iOS :check_mark_button: 安卓 :check_mark...
    • 真实模拟火焰效果C++源程序
      此程序真实地模拟了火焰效果,用的是C++程序
    • android从bootloader到launcher启动流程整理
      讲述android 开机流程 从boot rom---bootloader---init--zygote---systemserver---ams 并附上自己整理的每个流程的流程图 ,清晰熟悉android 启动流程