JP2009245201A - Smoke detection device - Google Patents

Smoke detection device Download PDF

Info

Publication number
JP2009245201A
JP2009245201A JP2008091511A JP2008091511A JP2009245201A JP 2009245201 A JP2009245201 A JP 2009245201A JP 2008091511 A JP2008091511 A JP 2008091511A JP 2008091511 A JP2008091511 A JP 2008091511A JP 2009245201 A JP2009245201 A JP 2009245201A
Authority
JP
Japan
Prior art keywords
smoke
luminance
detection
image
value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2008091511A
Other languages
Japanese (ja)
Other versions
JP5015839B2 (en
Inventor
Takatoshi Yamagishi
貴俊 山岸
Kazuhisa Nakano
主久 中野
Kenji Terada
賢治 寺田
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Nohmi Bosai Ltd
University of Tokushima NUC
Original Assignee
Nohmi Bosai Ltd
University of Tokushima NUC
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nohmi Bosai Ltd, University of Tokushima NUC filed Critical Nohmi Bosai Ltd
Priority to JP2008091511A priority Critical patent/JP5015839B2/en
Publication of JP2009245201A publication Critical patent/JP2009245201A/en
Application granted granted Critical
Publication of JP5015839B2 publication Critical patent/JP5015839B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Fire-Detection Mechanisms (AREA)
  • Alarm Systems (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a smoke detection device for detecting that smoke has been generated even when a camera shifts. <P>SOLUTION: This smoke detection device is provided with a reference image storage part for storing an image obtained by photographing when it is confirmed that any smoke is not detected, and configured to detect the generation of smoke within a photographed image by performing the image processing of the image obtained by photographing by a camera. This smoke detection device is provided with a detection region setting means for setting a prescribed detection region within the photographed latest image and the reference image; a luminance value calculation means for calculating a luminance value by arranging pixels within the detection region in the order of the large luminance value, and extracting the luminance values of the prescribed number of pixels in the order of the large luminance value and averaging them; a transmissivity calculation means for calculating transmissivity from the ratio of the luminance value of the reference image to the luminance value of the latest image; and a decision means for deciding the presence/absence of smoke in the detection region based on the transmissivity. <P>COPYRIGHT: (C)2010,JPO&INPIT

Description

この発明は、監視カメラが撮像して得られる画像を画像処理することにより煙の発生を検出する煙検出装置に関する。   The present invention relates to a smoke detection device that detects the generation of smoke by performing image processing on an image obtained by a surveillance camera.

トンネル内などにカメラを設置し、そのカメラの撮像画像を画像処理装置で処理して煙を検出する煙検出装置がある。画像処理装置では、一般的に、基準となる画像(基準画像)を記憶しておき、最新の撮像画像と基準画像とを比較することで、画像における変化の生じた領域を抽出するようにしている(例えば、特許文献1参照)。
一般的には、基準画像と最新画像とで差分処理を行って、変化のあった領域を抽出するようにしている。差分処理は、同じ座標位置にある画素同士を比較して、その座標の輝度値の差分を行うもので、これを検出領域全体にわたって行い、差分量の絶対値を合算して、変化量を演算するものである。従って輝度値の変化が大きいほど、基準画像からの変化が大きいものと判断できる。なお、特定の画素同士の差分処理を行うことで、透過率を演算して変化量を求める場合もある。
There is a smoke detection device that installs a camera in a tunnel or the like and processes a captured image of the camera with an image processing device to detect smoke. In an image processing apparatus, generally, a reference image (reference image) is stored, and the latest captured image is compared with the reference image to extract a region where a change has occurred in the image. (For example, refer to Patent Document 1).
In general, a difference process is performed between the reference image and the latest image to extract a changed area. Difference processing compares pixels at the same coordinate position and performs a difference in luminance value of the coordinates. This is performed over the entire detection area, and the absolute value of the difference amount is added to calculate the amount of change. To do. Therefore, it can be determined that the greater the change in the luminance value, the greater the change from the reference image. Note that there is a case where a change amount is obtained by calculating a transmittance by performing a difference process between specific pixels.

特許第3909665号公報Japanese Patent No. 3909665

差分処理は、基準画像及び最新画像において、同じ座標位置にある画素同士を差分するものなので、次のような場合に不具合を生じる。例えば、床面がコーティングされたり、非常によく磨かれていると、その床面に光や影が映りこんで、光や影の微妙なゆらぎが画像にあらわれて、人物や煙などの実体的変化が生じないにも関わらず、差分処理を行うと、変化領域が抽出されてしまう。
また、水面などが視野に含まれている場合、撮影して得られる画像では外から入り込む光により輝度の大きい場所が転々とすることが起こりうる。
このようなときに、座標位置を基準画像と最新の画像とで一致させて差分処理を行うと、画像全体の明るさは変化していないのに、輝度値の大きな差分量が生じ、変化領域ありと判定して、誤報を起こす可能性があると共に、正確な透過率の演算を行うことができない。
Since the difference processing is a difference between pixels at the same coordinate position in the reference image and the latest image, a problem occurs in the following case. For example, if the floor is coated or polished very well, light and shadows are reflected on the floor, and subtle fluctuations in the light and shadows appear in the image, and people and smoke are substantive. Although the change does not occur, if the difference process is performed, a change area is extracted.
Further, when the visual field includes a water surface or the like, in an image obtained by photographing, it is possible that places with high luminance are changed by light entering from outside.
In such a case, if difference processing is performed by matching the coordinate position between the reference image and the latest image, the brightness of the entire image has not changed, but a large amount of difference in luminance value occurs, and the change region It may be determined that there is a possibility of misreporting, and an accurate calculation of the transmittance cannot be performed.

この発明の目的は、撮影している物の反射特性により明るい光などが、視野の中で転々と移動するような場所を監視しても、反射する光の微妙なゆらぎの影響を受けず、誤報の可能性を低減した煙検出装置を提供することである。   The object of the present invention is not affected by subtle fluctuations in the reflected light, even if a place where bright light or the like is moving in the field of view due to the reflection characteristics of the object being photographed, It is an object of the present invention to provide a smoke detection device that reduces the possibility of false alarms.

この発明に係る煙検出装置は、煙がないことが確認されたときに撮影して得られた画像が基準画像として記憶される基準画像記憶部を有し、カメラで撮影して得られた画像を画像処理することにより撮影された範囲内での煙の発生を検出する煙検出装置において、撮影した最新画像内および前記基準画像内に、所定の検出領域を設定する検出領域設定手段と、検出領域内の画素を輝度値の大きさ順に並べて、輝度値の大きい方から、所定数の画素の輝度値を抜き出して平均したものを明輝度値として算出する明輝度値算出手段と、基準画像の明輝度値と最新画像の明輝度値との比率から透過率を演算する透過率演算手段と、透過率に基づき検出領域における煙の有無を判定する判定手段とを備えたことを特徴とするものである。   The smoke detection device according to the present invention has a reference image storage unit in which an image obtained by photographing when it is confirmed that there is no smoke is stored as a reference image, and an image obtained by photographing with a camera In a smoke detection device for detecting the generation of smoke within a range photographed by image processing, detection area setting means for setting a predetermined detection area in the latest photographed image and the reference image, and detection Brightness value calculation means for arranging the pixels in the region in order of brightness value, extracting the brightness values of a predetermined number of pixels from the larger brightness value, and calculating the average brightness value, and a reference image Characterized by comprising a transmittance calculating means for calculating a transmittance from a ratio between a bright luminance value and a bright luminance value of a latest image, and a determining means for determining the presence or absence of smoke in a detection region based on the transmittance. It is.

この発明に係る煙検出装置は、煙検出判定要素の1つである透過率を演算するときに、検出領域内の画素を輝度値の大きさ順に並べて、輝度値の大きい方から、所定数の画素の輝度値を抜き出して平均したものを明輝度値として算出し、また、輝度値の小さい方から、所定数の画素の輝度値を抜き出して平均したものを暗輝度値として算出し、これらの値を基に透過率を演算するようにしている。
このため、画素の位置座標の影響をなくして、検出領域全体の明るさ、暗さを求めることができる。したがって、撮影している物の反射特性により明るい光などが、視野の中で転々と移動するような場所を監視しても、反射する光の微妙なゆらぎの影響を受けず、誤報の可能性を低減でき、また正確な透過率を演算して煙を検出することが可能となる。
When calculating the transmittance, which is one of the smoke detection determination elements, the smoke detection device according to the present invention arranges the pixels in the detection region in the order of the luminance value, and selects a predetermined number from the larger luminance value. The luminance values of the pixels extracted and averaged are calculated as bright luminance values, and the luminance values of a predetermined number of pixels extracted from the smaller luminance values are averaged and calculated as dark luminance values. The transmittance is calculated based on the value.
For this reason, it is possible to obtain the brightness and darkness of the entire detection region without affecting the position coordinates of the pixels. Therefore, even if a place where bright light, etc., moves due to the reflection characteristics of the object being photographed moves in the field of view, it is not affected by subtle fluctuations in the reflected light, and may be misreported. And smoke can be detected by calculating an accurate transmittance.

A:煙検出の原理について
まず、本実施の形態の煙検出装置を説明する前に、どのような原理に基づいて画像から煙を検出するかについて図1〜図3を用いて説明する。室内を撮像した図1において、図1(a)、図1(b)は、監視カメラで撮影した原画像を示し、図1(a)は煙のない状態、図1(b)は、検出領域に煙が入った状態を示している。また、図2(a)、図2(b)は、横軸が輝度、縦軸が画素数で示される検出領域内における輝度分布を示しており、それぞれ、図1(a)、図1(b)に対応した図面となっている。また、図3において、図3(a)、図3(b)は、検出領域W1の微分処理の結果を示しており、それぞれ図1(a)、図1(b)に対応した図面となっている。
A: Regarding the Principle of Smoke Detection First, before explaining the smoke detection device of the present embodiment, what principle is used to detect smoke from an image will be described with reference to FIGS. In FIG. 1 in which a room is imaged, FIGS. 1 (a) and 1 (b) show an original image taken by a surveillance camera, FIG. 1 (a) shows a state without smoke, and FIG. 1 (b) shows a detection. Shows smoke in the area. 2 (a) and 2 (b) show the luminance distribution in the detection region where the horizontal axis indicates the luminance and the vertical axis indicates the number of pixels. FIG. 1 (a) and FIG. The drawing corresponds to b). Also, in FIG. 3, FIGS. 3A and 3B show the results of the differential processing of the detection region W1, respectively corresponding to FIGS. 1A and 1B. ing.

ここで検出領域とは、図1(a)、図1(b)で示した監視領域である室内において、窓ガラスの周辺を矩形で囲んだ領域W1をさし、室内において、煙の発生を監視する領域(エリア)である。図2(a)において、室内に煙がない状態においては、輝度は高い値から低い値まで、広い範囲にわたって、その画素が分布していることが分かる。各画素の輝度値を足し算して、全画素数で割った値である輝度値の平均(平均輝度値)を求めると、当然、その平均値からのずれである分散は大きな値を示すことになる。   Here, the detection region refers to a region W1 in which the periphery of the window glass is surrounded by a rectangle in the room which is the monitoring region shown in FIGS. 1A and 1B, and smoke is generated in the room. This is an area (area) to be monitored. In FIG. 2A, it can be seen that in a state where there is no smoke in the room, the luminance is distributed over a wide range from a high value to a low value. When the luminance value of each pixel is added and the average of the luminance values (average luminance value), which is the value divided by the total number of pixels, is obtained, naturally, the variance that is a deviation from the average value shows a large value. Become.

これに対して、図1(b)の検出領域内に煙が入ると、その領域は、視界がぼやけた感じになってくる。このことを図2(b)の輝度の分布図でみると、煙のない状態に比べ、輝度のとりうる範囲は、狭くなってくる。ここでも同様に、輝度値の平均値を求め、分散を演算すると、平均値とのずれ(分散)は小さくなることがわかる。このような煙の流入に伴い、輝度の分布範囲が狭くなることは、煙が黒煙、白煙どちらの場合でも言えることであるが、黒煙の場合は、輝度値が低下する方向にシフトし、白煙の場合は、輝度値が上昇する方向にシフトする。また、検出領域が完全に、煙で充満された状態になれば、輝度の分布範囲は、更に狭くなり、ほぼ特定の輝度値に収束するものと考えられる。   On the other hand, when smoke enters the detection area of FIG. 1B, the area becomes blurred. When this is seen in the luminance distribution diagram of FIG. 2B, the range of luminance that can be taken is narrower than in the state without smoke. Similarly, when the average value of the luminance values is obtained and the variance is calculated, it can be seen that the deviation (dispersion) from the average value becomes small. With the inflow of smoke, the fact that the brightness distribution range narrows can be said whether the smoke is black smoke or white smoke, but in the case of black smoke, the brightness value shifts in the direction of decreasing. However, in the case of white smoke, the luminance value shifts in the increasing direction. In addition, if the detection area is completely filled with smoke, the luminance distribution range is further narrowed, and is considered to converge to a specific luminance value.

また、窓ガラスを含んだ検出領域W1は、外の明るい部分と、室内の暗い部分は、輝度の差が大きく、微分処理(エッジ処理)を行うと、窓ガラス部分の輪郭に対応した、大きなエッジができる(図3(a)参照)。しかし、煙の入った状態において、微分処理を行っても、煙のない通常状態に比べ、輝度の差は大きくなく、エッジはあまりでない(図3(b)参照)。つまり、煙が発生する場合には、検出領域におけるエッジ量が変化するものと考えられる。
更に、煙のゆらぎは小さく、周波数分析を行うと、低周波帯域が高周波帯域よりも大きくなることが確認された。
In addition, the detection area W1 including the window glass has a large luminance difference between the outside bright part and the indoor dark part, and when the differential process (edge process) is performed, it corresponds to the outline of the window glass part. An edge is formed (see FIG. 3A). However, even if the differentiation process is performed in a smoke-containing state, the difference in luminance is not large and the edge is not so much compared to the normal state without smoke (see FIG. 3B). That is, when smoke is generated, the edge amount in the detection region is considered to change.
Furthermore, the smoke fluctuation was small, and it was confirmed that the low frequency band was larger than the high frequency band when frequency analysis was performed.

このような観点に基づき、本出願の発明者は、煙が発生すると、
(1)視界がぼやけ透過率又はコントラストが低下すること、
(2)輝度値がある値に収束すること、
(3)輝度分布の範囲が狭まり輝度の分散が小さくなること、
(4)輝度の平均値が、通常の煙のない状態から変化すること、
(5)検出領域において、エッジの総和量が変化すること、
(6)低周波帯域の強度が高周波帯域の強度よりも大きいこと、
を導きだした。これらを総合的に判断して煙の検出を可能なものとした。
Based on such a viewpoint, the inventor of the present application, when smoke is generated,
(1) The field of view is blurred and the transmittance or contrast is lowered.
(2) the luminance value converges to a certain value;
(3) The luminance distribution range is narrowed and the luminance dispersion is reduced,
(4) The average value of luminance changes from a normal smoke-free state,
(5) In the detection area, the total amount of edges changes,
(6) The intensity of the low frequency band is greater than the intensity of the high frequency band,
I started. Judging from these comprehensively, smoke can be detected.

B:本発明の基本構成
図4は、この発明の実施の形態に係る煙検出装置の構成図である。この発明の実施の形態に係る煙検出装置は、図4に示すように、火災(煙)発生監視範囲を例えば1秒間に30枚の割合で撮影してフレーム毎の画像データを出力するカメラ2および画像データを処理して煙の発生を検出しそれに基づいて警報を発する検出装置3を備える。このカメラ2は、例えばCCDカメラまたはCMOSカメラから構成される。
B: Basic Configuration of the Present Invention FIG. 4 is a configuration diagram of the smoke detection device according to the embodiment of the present invention. As shown in FIG. 4, the smoke detection apparatus according to the embodiment of the present invention captures a fire (smoke) generation monitoring range, for example, at a rate of 30 frames per second and outputs image data for each frame. And a detection device 3 for processing the image data to detect the generation of smoke and issue an alarm based on the detection. The camera 2 is composed of, for example, a CCD camera or a CMOS camera.

検出装置3は、中央演算装置(CPU)4、ROM5、RAM6、内蔵タイマ7、入出力インターフェース(I/O)8からなり、フレームグラバー9と外部記憶装置10とが内蔵されているコンピュータから構成されている。
フレームグラバー9は、カメラ2が出力した、NTSC方式の映像信号から、画像データを取得する。画像データは、例えば1ライン640画素、1フレーム480ラインからなり、画素は、256階調の輝度で表される。ROM5には、CPU4で行う処理演算の手順がプログラムとして記憶されており、CPU4はプログラムを読み出し、それに基づいて処理演算の手順を進める。
The detection device 3 includes a central processing unit (CPU) 4, a ROM 5, a RAM 6, a built-in timer 7, and an input / output interface (I / O) 8, and includes a computer in which a frame grabber 9 and an external storage device 10 are built. Has been.
The frame grabber 9 acquires image data from the NTSC video signal output from the camera 2. The image data is composed of, for example, one line of 640 pixels and one frame of 480 lines, and the pixels are represented by luminance of 256 gradations. The ROM 5 stores a procedure for processing operations performed by the CPU 4 as a program. The CPU 4 reads the program and advances the procedure for processing operations based on the program.

図5は、この発明の実施の形態に係る検出装置3のROM5とRAM6に確保されている各種記憶部である。
検出装置3には、図5に示すように、フレームグラバー9が取得した画像に関する輝度データ(以下、最新画像データと称す)を記憶する画像記憶部11、基準画像に関する輝度データ(以下、基準画像データと称す)を記憶する基準画像記憶部12、基準画像の各検出領域における基準データを記憶する基準データ記憶部13、検出領域に関する情報を記憶する検出領域記憶部14、時系列的に検出領域の輝度の平均と分散を記憶する輝度平均分散記憶部15、煙検出手順の度に、煙有りと判断された検出領域の数を記憶する検出数記憶部16が記憶領域として設定されている。
FIG. 5 shows various storage units secured in the ROM 5 and RAM 6 of the detection apparatus 3 according to the embodiment of the present invention.
As shown in FIG. 5, the detection device 3 includes an image storage unit 11 that stores luminance data related to an image acquired by the frame grabber 9 (hereinafter referred to as latest image data), and luminance data related to a reference image (hereinafter referred to as a reference image). A reference image storage unit 12 for storing data), a reference data storage unit 13 for storing reference data in each detection region of the reference image, a detection region storage unit 14 for storing information relating to the detection region, and a detection region in time series A luminance average dispersion storage unit 15 for storing the average and variance of the luminances, and a detection number storage unit 16 for storing the number of detection regions determined to have smoke for each smoke detection procedure are set as storage regions.

検出装置3の大まかな構成は、図6に示すように、検出装置3を新たに設置するとき初期設定を行う初期設定手段21、カメラ2から出力される画像データを画像記憶部11に記憶する画像記憶手段22、煙を検出する検出手段23、煙を検出したとき火災判別を行う煙判別手段24、および基準画像データを更新する基準画像更新手段25と、基準画像データを置き換える基準画像置換手段26とから構成されている。   As shown in FIG. 6, the rough configuration of the detection device 3 is an initial setting means 21 that performs initial settings when the detection device 3 is newly installed, and image data output from the camera 2 is stored in the image storage unit 11. Image storage means 22, detection means 23 for detecting smoke, smoke determination means 24 for determining fire when smoke is detected, reference image update means 25 for updating reference image data, and reference image replacement means for replacing reference image data 26.

ここで、まず、本実施の形態の画像処理方法について詳細に説明する前に、画像処理を行う前段階で実行する検出準備について説明する。初期設定手段21は、検出領域設定手段27、明暗輝度値算出手段28、基準データ演算手段29を備えている。
検出装置3において、検出領域から異常発生領域となる煙発生領域を抽出する手段としては、基準画像と最新画像との画像間の差分処理を基本としている。そこで、基準となる基準画像を用意し、それと現時点の画像とを差分処理する。
初期の基準画像は、例えば図1(a)のように、煙検出装置を新たに設置し且つ何も異常が発生していない状態において撮影された画像である。
Here, first, before preparing the details of the image processing method of the present embodiment, the detection preparation to be executed at the stage before image processing will be described. The initial setting unit 21 includes a detection area setting unit 27, a light / dark luminance value calculation unit 28, and a reference data calculation unit 29.
In the detection device 3, the means for extracting the smoke generation region that becomes the abnormality generation region from the detection region is based on the difference processing between the reference image and the latest image. Therefore, a reference image serving as a reference is prepared, and the difference between the image and the current image is processed.
The initial reference image is an image taken in a state where a smoke detection device is newly installed and no abnormality has occurred as shown in FIG. 1A, for example.

検出領域設定手段27について説明する。検出領域設定手段27は、検出処理を開始する前に実行され、監視カメラ2が撮像(撮影)した基準画像や最新の画像において、画像のどの部分の領域を、検出領域として設定するかを決めるものである。画像全体を監視しようとすると、画像処理の演算量が膨大となって大変である。そこで本実施の形態では、検出領域設定手段27は、少なくとも大きさの異なる大小2つの検出領域で、画像を分割して、検出領域毎に、平均輝度などの煙検出判定要素の特徴量の演算を行う。
つまり、図7(a)のように複数の小領域、例えば縦64×横64の画素領域をまとめて一つの小検出領域とし、また図7(b)のように複数の大領域、例えば縦128×横128の画素領域をまとめて一つの大検出領域とし、この小検出領域および大検出領域を画像内に縦横複数個マトリクス状に設定(分割)し、その任意の領域を検出領域とする。このように、画像全体でなく、一部の領域を検出領域として取り扱うことにより、演算量を少なくすることができ、且つノイズの影響を小さくすることができる。
The detection area setting means 27 will be described. The detection area setting means 27 is executed before the detection process is started, and determines which area of the image is set as the detection area in the reference image or the latest image captured (captured) by the monitoring camera 2. Is. If it is attempted to monitor the entire image, the amount of calculation for image processing becomes enormous. Therefore, in the present embodiment, the detection area setting unit 27 divides the image into at least two detection areas having different sizes, and calculates the feature amount of the smoke detection determination element such as average luminance for each detection area. I do.
That is, as shown in FIG. 7A, a plurality of small areas, for example, a vertical 64 × horizontal 64 pixel area are combined into one small detection area, and as shown in FIG. The 128 × 128 pixel areas are combined into one large detection area, and the small detection area and the large detection area are set (divided) in a matrix in the vertical and horizontal directions, and the arbitrary area is set as the detection area. . In this way, by treating a part of the region as a detection region instead of the entire image, the amount of calculation can be reduced and the influence of noise can be reduced.

なお、小・大検出領域の大きさは限定されないが、大検出領域の大きさを小検出領域の大きさの2のN乗倍(Nは1以上の整数)にすると、周波数解析などを行う際に、都合がよい。また、小検出領域で演算した特徴量を用いて大検出領域の特徴量を演算することができるので全体の演算量を小さくすることができる。即ち図7の状態では、図7(b)の大検出領域一つは縦横2個の計4つ小検出領域をまとめたものであり、小検出領域4つの演算をすませれば、それらの4つの値を合算、又は合算して四で除算するだけで対応する大検出領域の演算を処理できる。また、2つ以上の検出領域を連結して、1つの検出領域として扱ってもよい。
また、この実施の形態では大検出領域と小検出領域のように大きさの異なる2種類の検出領域を設定するが、検出領域の大きさを変えて3種類以上の検出領域を設定しても良い。
Although the size of the small / large detection area is not limited, frequency analysis or the like is performed if the size of the large detection area is set to N times the size of the small detection area (N is an integer equal to or greater than 1). When convenient. In addition, since the feature amount of the large detection region can be calculated using the feature amount calculated in the small detection region, the total calculation amount can be reduced. That is, in the state of FIG. 7, one large detection area in FIG. 7B is a collection of a total of four small detection areas, two in length and width. The corresponding large detection area operation can be processed by simply adding or dividing the two values and dividing by four. Further, two or more detection areas may be connected and handled as one detection area.
In this embodiment, two types of detection areas having different sizes such as a large detection area and a small detection area are set. However, even if three or more types of detection areas are set by changing the size of the detection area. good.

ここで、図1に戻って、図1(a)では検出領域が、W1、W2で示されている。検出領域W1は、窓ガラスを囲んだ矩形の領域であり、W2は、部屋の床側の隅を矩形で囲んだ領域である。ここで、検出領域Wは、画像のどの部分にも、その大きさ、形状を変えて設定することが可能であるが、望ましくは、検出対象となる煙が発生する場所であり、煙が検知しやすい場所に設定すべきである。   Here, returning to FIG. 1, in FIG. 1A, the detection regions are indicated by W1 and W2. The detection area W1 is a rectangular area surrounding the window glass, and W2 is an area surrounding the corner on the floor side of the room with a rectangle. Here, the detection area W can be set in any part of the image by changing its size and shape. Preferably, the detection area W is a place where smoke to be detected is generated, and smoke is detected. It should be set in a place that is easy to do.

また、検出領域は、検出感度を考慮して設定することが望ましく、輝度の変化の大きな領域を検出領域としている。これは、図1、図2の煙検出原理で説明したように、煙の流入に伴い、その領域は、輝度の分布範囲が狭くなる。即ち、何もない通常状態のときから、輝度分布が狭い領域では、煙が入っても、変化が乏しく、煙を検出しにくい。これに対し、窓ガラスの領域W1は、外光が入っており、部屋の隅のW2の領域に比べれば、輝度分布が広いので、煙が入ると、輝度の分布の変化が検出しやすい。検出領域設定手段27は、具体的には、準備段階において煙など検出精度に影響を与える可能性のあるものがないことを確認してから撮影した初期の基準画像データを検出領域毎に空間微分処理し空間微分値の大きな領域、つまり輝度の分布範囲が大きい領域を検出領域として設定する。   The detection area is preferably set in consideration of detection sensitivity, and an area having a large change in luminance is set as the detection area. As described with reference to the smoke detection principle of FIGS. 1 and 2, as the smoke flows in, the area has a narrow luminance distribution range. That is, in a region where the luminance distribution is narrow from the normal state where there is nothing, even if smoke enters, the change is scarce and it is difficult to detect smoke. On the other hand, the window glass region W1 contains external light and has a wider luminance distribution than the W2 region at the corner of the room. Therefore, when smoke enters, changes in the luminance distribution are easily detected. Specifically, the detection area setting means 27 performs spatial differentiation on the basis of the initial reference image data photographed after confirming that there is no possibility of affecting the detection accuracy such as smoke in the preparation stage. A region having a large spatial differential value, that is, a region having a large luminance distribution range is set as a detection region.

また、検出領域設定手段27は、基準画像データのうち、輝度の飽和の影響を防止するため、所定の輝度以上を除外するようにしてもよい。例えば、輝度が250以上である画素を除いて空間微分処理して空間微分値を求め、空間微分値の総和の最も大きな領域を1つの検出領域として設定する。
初期の基準画像データを小検出領域、例えば縦64×横64、計4096画素からなる領域毎に、その領域全体に亘って走査して各領域の空間微分値の総和を求める。それから、最も空間微分値の総和の大きい領域を第1の小検出領域と設定し、次に、第1の小検出領域と重ならない領域のうち最も空間微分値の総和の大きい領域を第2の小検出領域と設定する。この操作を繰り返して、全ての小検出領域を空間微分値の総和の大きい順に記憶し、空間微分値の総和の小さすぎる領域を除いて所定の個数の小検出領域を煙検出の領域として設定し、設定された小検出領域の情報を検出領域記憶部14に記憶する。
Further, the detection area setting means 27 may exclude a predetermined luminance or higher in the reference image data in order to prevent the influence of luminance saturation. For example, a spatial differential process is performed by excluding pixels with luminance of 250 or more to obtain a spatial differential value, and an area having the largest sum of the spatial differential values is set as one detection area.
The initial reference image data is scanned over the entire small detection area, for example, a total of 4096 pixels in the length 64 × width 64 direction, and the sum of the spatial differential values of each area is obtained. Then, the region having the largest sum of the spatial differential values is set as the first small detection region, and then the region having the largest sum of the spatial differential values among the regions not overlapping the first small detection region is set as the second small detection region. Set as small detection area. By repeating this operation, all small detection areas are stored in descending order of the sum of the spatial differential values, and a predetermined number of small detection areas are set as smoke detection areas except for areas where the sum of the spatial differential values is too small. The information of the set small detection area is stored in the detection area storage unit 14.

また、初期の基準画像データを大検出領域、例えば縦128×横128、計16384画素からなる領域毎に、その領域全体に亘って走査して各領域の空間微分値の総和を求める。それから、最も空間微分値の総和の大きい領域を第1の大検出領域と設定し、次に、第1の大検出領域と重ならない領域のうち最も空間微分値の総和の大きい領域を第2の大検出領域と設定する。この操作を繰り返して、全ての大検出領域を空間微分値の総和の大きい順に記憶し、空間微分値の総和の小さすぎる領域を除いて所定の個数の大検出領域を煙検出の領域として設定し、設定された大検出領域の情報を検出領域記憶部14に記憶する。なお、この検出領域の設定においては、空間微分値(エッジ量ともいう)で、検出領域に適した領域であるか否かを判断しているが、透過率で判断してもよく、空間微分値、又は透過率について少なくとも一方が低い場合には、マスクをかけて検出領域として使用しないことが望ましい。   Further, the initial reference image data is scanned over a large detection region, for example, a region of a total of 16384 pixels in the vertical 128 × horizontal 128, and the total of the spatial differential values of each region is obtained. Then, the region having the largest sum of the spatial differential values is set as the first large detection region, and then the region having the largest sum of the spatial differential values among the regions not overlapping the first large detection region is set as the second large detection region. Set as large detection area. By repeating this operation, all large detection areas are stored in the descending order of the sum of spatial differential values, and a predetermined number of large detection areas are set as smoke detection areas except for areas where the sum of spatial differential values is too small. The information of the set large detection area is stored in the detection area storage unit 14. In setting the detection area, the spatial differential value (also referred to as edge amount) is used to determine whether or not the area is suitable for the detection area. When at least one of the value and the transmittance is low, it is desirable not to use the detection area with a mask.

このようにサイズが異なる2種類の検出領域を用いることにより写り方が異なるような煙の発生でも同じ判断基準で煙の発生を検出できる。すなわち、図8(a)に示すように奥行きがある範囲を撮影した画像においては、奥側で発生した煙と手前側で発生した煙とは同じ大きさの煙が発生したとしても写り方が全く異なり、同じ判断基準で煙の有無を判断することが難しい。つまり奥行きのある画像では、カメラから遠くで発生した煙S1は、画像内において、その煙の大きさが非常に小さく現れ、反対に、カメラの近くで発生する煙S2は、同じ大きさであったとしても、非常に大きく現れる。そこで、図8(b)に示すように手前側、つまりカメラの近くで発生した煙S2はサイズの大きな大検出領域を用い、図8(c)に示すように奥側、つまりカメラの遠くで発生した煙S1はサイズの小さな小検出領域を用いるようにすれば、カメラからの距離を無視して、どちらも同じ判断基準で煙の発生を検出できる。
このように同じ大きさの煙でも監視する箇所を写した画像上では全く異なる大きさに写る煙をサイズが異なる2つの検出領域により分担することにより、このような奥行きのある箇所を撮影した画像から安定して煙を検出することができる。
By using two types of detection areas having different sizes as described above, it is possible to detect the generation of smoke with the same determination criteria even if the generation of smoke is different. That is, as shown in FIG. 8 (a), in an image obtained by photographing a range with a depth, even if smoke having the same size as smoke generated on the back side and smoke generated on the near side is generated, It is quite different and it is difficult to judge the presence or absence of smoke with the same criteria. In other words, in the deep image, the smoke S1 generated far from the camera appears very small in the image, and conversely, the smoke S2 generated near the camera has the same size. Even if it appears, it appears very large. Therefore, as shown in FIG. 8 (b), the smoke S2 generated on the near side, that is, near the camera, uses a large large detection area, and on the far side, that is, far from the camera, as shown in FIG. 8 (c). If a small detection area with a small size is used for the generated smoke S1, it is possible to ignore the distance from the camera and to detect the generation of smoke with the same criteria.
In this way, an image that captures a part with such a depth by sharing the smoke that appears in a completely different size with two detection areas with different sizes on the image that shows the part to be monitored even with smoke of the same size Can stably detect smoke.

なお、本実施の形態においてはサイズが異なる2種類の検出領域を用いて手前側をサイズの大きな検出領域、奥側をサイズの小さな検出領域で分担するようにしているが、必ずしも2種類の検出領域に限るものではなく、3種類以上の検出領域を用いて適切な箇所を分担するようにしても良い。   In the present embodiment, two types of detection areas having different sizes are used to share the front side with a detection area with a large size and the back side with a detection area with a small size. It is not limited to a region, and an appropriate location may be shared using three or more types of detection regions.

また、初期設定手段21は、明暗輝度値算出手段28を備える。この明暗輝度値算出手段28は、明輝度値算出手段と、暗輝度値算出手段とから構成され、明輝度値算出手段は、検出領域内の画素を輝度値の大きさ順に並べて、輝度値の大きい方から、所定数の画素の輝度値を抜き出して平均したものを明輝度値として算出する。そして、暗輝度値算出手段は、検出領域内の画素を輝度値の大きさ順に並べて、輝度値の小さい方から、所定数の画素の輝度値を抜き出して平均したものを暗輝度値として算出するものである。
なお、明暗輝度値算出手段28は、検出領域が新たに設定されたときと基準画像更新手段25又は基準画像置換手段26により基準画像データが更新または置き換えられたときにも撮像した画像から明輝度群および暗輝度群を抜き出し、抜き出した明輝度群および暗輝度群から明輝度値および暗輝度値を算出して基準データ記憶部13に記憶する。
The initial setting unit 21 includes a brightness / darkness luminance value calculation unit 28. The bright / dark luminance value calculating means 28 is composed of a bright luminance value calculating means and a dark luminance value calculating means. The bright luminance value calculating means arranges the pixels in the detection area in the order of the luminance values and calculates the luminance value. The luminance value of a predetermined number of pixels extracted from the larger one and averaged is calculated as the bright luminance value. Then, the dark luminance value calculation means arranges the pixels in the detection area in the order of the luminance value, and calculates the dark luminance value by extracting and averaging the luminance values of a predetermined number of pixels from the smaller luminance value. Is.
Note that the brightness / darkness brightness value calculation means 28 uses the brightness from the captured image when the detection area is newly set and when the reference image data is updated or replaced by the reference image update means 25 or the reference image replacement means 26. A group and a dark luminance group are extracted, and a bright luminance value and a dark luminance value are calculated from the extracted bright luminance group and dark luminance group, and are stored in the reference data storage unit 13.

明暗輝度値算出手段28は、各検出領域における明るい輝度の代表値(明輝度値)と、暗い輝度の代表値(暗輝度値)とを演算するもので、これらは、あとで、透過率を演算する際に利用される。
詳細に説明すると、明暗輝度値算出手段28は、図9に示すように基準画像データの大検出領域毎に領域内の画素を輝度値の大きさの順に輝度バッファに並べるものであり、最も明るい側の数画素と、最も暗い側の数画素を使わずに、明輝度群と暗輝度群をぬき出す。即ち、輝度順に並べたとき最も大きい輝度から輝度が小さくなる方向に数えて所定の順番の輝度からそれに輝度が小さくなる方向に連なる所定の数の輝度を抜き出し明輝度群として上位輝度レジスタに記憶する。そして、上位輝度レジスタに記憶されている輝度の平均を求め、それをその大検出領域の基準の明輝度値として基準データ記憶部13に記憶する。
The bright / dark luminance value calculation means 28 calculates a bright luminance representative value (bright luminance value) and a dark luminance representative value (dark luminance value) in each detection region. Used when performing calculations.
More specifically, as shown in FIG. 9, the light / dark luminance value calculation means 28 arranges the pixels in the region for each large detection region of the reference image data in the luminance buffer in the order of the luminance value, and is the brightest. The bright luminance group and the dark luminance group are extracted without using the pixels on the side and the pixels on the darkest side. That is, when arranged in order of luminance, a predetermined number of luminances are extracted from the luminance in the predetermined order and counted in the direction in which the luminance decreases, and stored in the upper luminance register as a bright luminance group. . Then, the average of the luminance stored in the upper luminance register is obtained and stored in the reference data storage unit 13 as the reference bright luminance value of the large detection area.

ここで具体的な例(図9)を示して説明する。大検出領域が例えば縦128×横128、計16384画素から構成され、この16384画素の輝度を大きい方から小さい方に並べ、最も大きい輝度から10番目の輝度までを除外し、第1順番としての11番目の輝度から第30順番としての40番目の輝度までを抜き出し明輝度群として上位輝度レジスタに記憶する。それから、上位輝度レジスタに記憶されている明輝度群の輝度の平均値を求めて大検出領域の基準の明輝度値とする。   Here, a specific example (FIG. 9) is shown and described. The large detection area is composed of, for example, vertical 128 × horizontal 128, a total of 16384 pixels. The luminance of 16384 pixels is arranged from the largest to the smallest, excluding the highest luminance to the tenth luminance, and the first order as The eleventh luminance to the 40th luminance as the 30th order are extracted and stored in the upper luminance register as a bright luminance group. Then, the average value of the brightness of the bright brightness group stored in the upper brightness register is obtained and set as the reference brightness value of the large detection area.

また、明暗輝度値算出手段28は、画素を輝度の大きさの順に並べたとき、最も小さい輝度から大きい方向に数えて所定の順番の輝度からそれに輝度が大きくなる方向に連なる所定の数の輝度を抜き出し暗輝度群として下位輝度レジスタに記憶する。そして、下位輝度レジスタに記憶されている暗輝度群の輝度の平均を求め、それをその大検出領域の基準の暗輝度値として基準データ記憶部13に記憶する。   In addition, when the pixels are arranged in the order of the luminance magnitude, the brightness / darkness luminance value calculating unit 28 counts from the lowest luminance to the larger direction and counts a predetermined number of luminances from the predetermined luminance to the luminance increasing direction. Are extracted and stored in the lower luminance register as a dark luminance group. Then, the average of the luminance of the dark luminance group stored in the lower luminance register is obtained and stored in the reference data storage unit 13 as the reference dark luminance value of the large detection area.

ここで具体的な例(図9)を示して説明する。大検出領域が縦128×横128、計16384画素から例えば構成され、この16384画素の輝度を大きい方から小さい方に並べ、最も小さい輝度から10番目に暗い輝度までを除外し、第1順番としての11番目に暗い輝度から第30順番としての40番目に暗い輝度までを抜き出し暗輝度群として下位輝度レジスタに記憶する。それから、下位輝度レジスタに記憶されている暗輝度群の輝度の平均値を求めて大検出領域の基準の暗輝度値とする。つまり明輝度群、暗輝度群いずれも最も明るい輝度又は最も暗い輝度から数えて11〜40番目までの30個の画素の輝度値のデータを取り出して平均値を記憶するものである。   Here, a specific example (FIG. 9) is shown and described. The large detection area is composed of, for example, a total of 16384 pixels, which is 128 × 128 in height. The luminance of the 16384 pixels is arranged from the largest to the smallest, and the smallest luminance to the tenth darkest luminance are excluded, and the first order Are extracted from the 11th darkest brightness to the 40th darkest brightness as the 30th order and stored in the lower brightness register as a dark brightness group. Then, an average value of the luminance of the dark luminance group stored in the lower luminance register is obtained and used as the reference dark luminance value of the large detection area. That is, in each of the bright luminance group and the dark luminance group, the luminance value data of 30 pixels from the 11th to the 40th pixels counted from the brightest luminance or the darkest luminance is extracted and the average value is stored.

また、明暗輝度値算出手段28は、基準画像データの小検出領域毎に大検出領域と同じ処理を繰り返して、小検出領域毎に明輝度群のデータと暗輝度群のデータを取り出して、それぞれ平均値を、明輝度値、暗輝度値として記憶する。この演算は、煙領域として設定されている全ての大・小の検出領域に対して行う。   Further, the brightness / darkness luminance value calculation unit 28 repeats the same processing as that of the large detection region for each small detection region of the reference image data, extracts the data of the bright luminance group and the data of the dark luminance group for each small detection region, and The average value is stored as a bright luminance value and a dark luminance value. This calculation is performed for all large and small detection areas set as smoke areas.

このように明暗輝度値算出手段28は、検出領域毎に検出領域の基準画像データの画像の輝度を大きさ順に並べた輝度の配列から最も大きい方の10個の輝度を除外し、その10個に続く30個の輝度の平均を明輝度値とする。そして、最も小さい方の10個の輝度を除外し、その除外した10個に続く30個の輝度の平均を暗輝度値としている。このようにある画像において、画素の位置(座標)を考慮せずに、輝度のデータを集めることで、その画像が持つ全体の明るさを把握するようにしている。このため、撮影される箇所に例えば水面が含まれていて光源からの光が時間によって位置が変わる波で反射されるような状況を撮像する場合において、その反射光を誤報要因から除外することができる。   As described above, the brightness / darkness luminance value calculating unit 28 excludes the ten largest luminances from the luminance array in which the luminances of the reference image data of the detection regions are arranged in order of size for each detection region, and the ten luminance luminance values are calculated. The average of the 30 luminances following is taken as the bright luminance value. Then, the smallest 10 luminances are excluded, and an average of 30 luminances following the excluded 10 luminances is set as a dark luminance value. In this way, in an image, the brightness of the image is grasped by collecting luminance data without considering the pixel position (coordinates). For this reason, when imaging a situation where, for example, a water surface is included in a portion to be photographed and the light from the light source is reflected by a wave whose position changes with time, the reflected light may be excluded from false alarm factors. it can.

このことを図10を用いて説明する。図10(a)は、水面で反射した光を撮影した画像であり、図中、十字状で示した2つの部分が、反射した光の部分であり、撮影された画像のうち最も輝度値の大きい部分となっている。図10(b)は、図10(a)とは異なる時刻において、図10(a)と同じ場所で撮影された画像である。この図10(b)においても、十字状の部分は、反射光の部分である。
図10のように、水面に波が発生しているときには、光源からの光が反射した波の位置は、時間の経過と共に変わるので、結果として最も大きい輝度の画素(十字状の部分)は、この図10(a)と図10(b)の関係のように、画像内を転々とする。
ここで例えば、両者をそのまま差分すると、その差分画像(図10(c))では、十字状で示した反射光の部分の2つがそれぞれ変化領域として抽出され、その全て(4つ)が、差分画像(図10(c))で、変化領域として現れる。このため、このような反射光が転々と移動しうるような環境下での撮像画像は差分処理をするのは適してない。なお、このことは、差分処理だけでなく、基準画像と最新画像とを利用して、検出領域毎に透過率を演算する場合にもいえることである。
This will be described with reference to FIG. FIG. 10A is an image obtained by photographing the light reflected by the water surface. In the figure, the two parts shown in a cross shape are the reflected light parts, and have the highest luminance value among the photographed images. It is a big part. FIG. 10B is an image taken at the same place as in FIG. 10A at a time different from that in FIG. Also in FIG. 10B, the cross-shaped portion is a portion of reflected light.
As shown in FIG. 10, when a wave is generated on the water surface, the position of the wave reflected by the light from the light source changes with time, and as a result, the pixel with the highest luminance (cross-shaped portion) As shown in FIG. 10A and FIG. 10B, the inside of the image is changed.
Here, for example, if both are directly differentiated, in the difference image (FIG. 10C), two of the reflected light portions shown in a cross shape are respectively extracted as change areas, and all (four) of them are the differences. It appears as a change area in the image (FIG. 10C). For this reason, it is not suitable to perform difference processing on a captured image in an environment in which such reflected light can move one after another. This can be said not only in the case of the difference processing but also in the case where the transmittance is calculated for each detection region using the reference image and the latest image.

ところで、このような画像は、反射光のような明るい領域の位置が変化したとしても、画像全体が有する明るさ自体にはほとんど変化がない。したがって、明暗輝度値算出手段28によって、画素の位置座標は無視して、画像の有する輝度情報を輝度順に並べてみると、図10の(a)(b)とも、ほぼ同じ明輝度値、暗輝度値を有することになる。よって、輝度順に並べて求めた明輝度値、暗輝度値を使用することで、基準画像と最新画像とにおける正しい透過率を演算することが可能になる。   By the way, even if the position of a bright region such as reflected light changes in such an image, the brightness itself of the entire image hardly changes. Therefore, when the brightness information of the image is arranged in the order of brightness by ignoring the position coordinates of the pixels by the brightness / darkness brightness calculation means 28, the brightness brightness value and dark brightness are substantially the same as in FIGS. 10 (a) and 10 (b). Will have a value. Therefore, by using the bright luminance value and the dark luminance value obtained by arranging in order of luminance, it is possible to calculate the correct transmittance in the reference image and the latest image.

なお、本実施の形態においては輝度の配列から最も大きい方から10個と最も小さい方から10個を除外しているが、撮影する箇所により一方からだけ除外しても良いし、除外する数も適宜設定すれば良い。
また、本実施の形態において輝度の配列の大きい方の11番目から40番目までの30個と小さい方の11番目から40番目までの30個とをそれぞれ抜き出し、抜き出した輝度からそれぞれ明輝度値と暗輝度値を算出しているが、抜き出す数はこれに限るものではない。
In the present embodiment, 10 from the largest and 10 from the smallest are excluded from the luminance array, but may be excluded from only one or the number to be excluded depending on the shooting location. What is necessary is just to set suitably.
Further, in the present embodiment, 30 elements from the eleventh to the fortyth element in the larger luminance array and 30 elements from the eleventh to the fortyth element in the smaller one are extracted, respectively, and the bright luminance value and Although the dark luminance value is calculated, the number to be extracted is not limited to this.

再び図6に戻って、初期設定手段21は、基準データ演算手段29を備える。基準データ演算手段29は、大または小検出領域毎に基準画像データから大または小検出領域の基準平均輝度、基準分散を求めて基準データ記憶部13に記憶する。   Returning to FIG. 6 again, the initial setting means 21 includes reference data calculation means 29. The reference data calculation unit 29 obtains the reference average luminance and reference variance of the large or small detection area from the reference image data for each large or small detection area and stores it in the reference data storage unit 13.

次に、画像記憶手段22の構成について説明する。画像記憶手段22は、輝度補正手段31、現画像記憶手段32を備えている。
輝度補正手段31は、カメラ2から入力された画像データを逆ガンマ補正して輝度を補正する。逆ガンマ補正する理由は、カメラ2が撮影し出力する画像データに、画像データをモニタに表示したとき人間の視感度に合うようにガンマ補正が施されているためで、また、ガンマ補正が施された画像データをそのまま画像処理すると、処理結果にガンマ補正による歪みが含まれるからである。
Next, the configuration of the image storage unit 22 will be described. The image storage unit 22 includes a luminance correction unit 31 and a current image storage unit 32.
The luminance correction unit 31 corrects the luminance by performing inverse gamma correction on the image data input from the camera 2. The reason for the inverse gamma correction is that the image data captured and output by the camera 2 is subjected to gamma correction so as to match the human visibility when the image data is displayed on the monitor. This is because when the processed image data is processed as it is, distortion due to gamma correction is included in the processing result.

現画像記憶手段32は、予め定められた取込周期毎に輝度補正された画像データを画像記憶部11に記憶するものである。現画像記憶手段32は、輝度補正手段31で輝度補正された画像データを例えば3秒毎に抜き出し、例えば90フレーム分記憶し、さらに新しい画像を記憶するときも古い画像データから先に削除していくファーストインファーストアウト手順で現画像データを更新する。   The current image storage means 32 stores the image data whose luminance has been corrected for each predetermined capture period in the image storage unit 11. The current image storage means 32 extracts the image data whose brightness has been corrected by the brightness correction means 31 every 3 seconds, for example, stores it for 90 frames, and also deletes the old image data first when storing a new image. The current image data is updated according to the first-in first-out procedure.

次に、検出手段23の構成について説明する。検出手段は、検出領域毎に煙検出判定要素となる特徴量を演算する手段の総称である。検出手段23は、図11に示すように、輝度平均分散演算手段41、判定手段42を備える。
輝度平均分散演算手段41は、画像を取り込む度に、設定された検出領域の大きさ(大検出領域、小検出領域)毎に、その検出領域全体の平均輝度および分散を演算して求める。この演算された検出領域の平均輝度及び分散は、判定手段42によって判定される。つまり、判定手段42は、検出領域毎に、演算した平均輝度と基準画像における平均輝度の比が所定の範囲内にあるか否かを判定する。また、検出領域毎に、演算した分散が基準画像の分散に対して所定の範囲の割合内にあるか否かを判定する。
Next, the configuration of the detection unit 23 will be described. The detection means is a general term for means for calculating feature quantities that are smoke detection determination elements for each detection region. As shown in FIG. 11, the detection unit 23 includes a luminance average variance calculation unit 41 and a determination unit 42.
The luminance average variance calculating means 41 calculates and calculates the average luminance and variance of the entire detection area for each set detection area size (large detection area, small detection area) each time an image is captured. The calculated average luminance and variance of the detection area are determined by the determination means 42. That is, the determination unit 42 determines whether the ratio between the calculated average luminance and the average luminance in the reference image is within a predetermined range for each detection region. Further, for each detection region, it is determined whether or not the calculated variance is within a predetermined range with respect to the variance of the reference image.

また、検出手段23は、平均輝度周波数分析手段43を備える。
平均輝度周波数分析手段43は、画像を取り込む度に、設定された検出領域の大きさ(大検出領域、小検出領域)毎に、その検出領域の最新の画像データの平均輝度と、先だって所定の複数、画像記憶部11に記憶された、例えば63個の画像データの当該検出領域の平均輝度を算出し、64個の平均輝度を周波数分析して平均輝度周波数スペクトルを作成する。そして、判定手段42は、平均輝度周波数スペクトルの強度が所定の強度以上か否かを判断する。また、判定手段42は、平均輝度周波数スペクトルを複数の周波数帯に分け、低周波数帯の強度の積分値ほど大きいか否かを判定する。
The detection unit 23 includes an average luminance frequency analysis unit 43.
Each time an image is captured, the average luminance frequency analysis means 43 calculates the average luminance of the latest image data in the detection area for each set detection area size (large detection area, small detection area), For example, the average luminance of the detection area of 63 pieces of image data stored in the image storage unit 11 is calculated, and the average luminance frequency spectrum is generated by frequency analysis of the 64 average luminances. And the determination means 42 determines whether the intensity | strength of an average luminance frequency spectrum is more than predetermined intensity | strength. Further, the determination unit 42 divides the average luminance frequency spectrum into a plurality of frequency bands, and determines whether or not the integrated value of the intensity in the low frequency band is larger.

大または小検出領域の輝度の平均の時系列データに関する周波数スペクトルの一例を図12に示す。検出領域に煙が存在しない場合は、図12(a)に示すように強度が所定の閾値以上にはなることはない。また、図12(b)は、検出領域に煙が存在する場合であるが、ここでは、周波数に関して2つの周波数(2Hz、8Hz)を用いて、低、中、高の3つの周波数帯に分けると、周波数の小さな低周波数帯ほど強度の積分値が大きくなることがわかる。これに対し人工光源では、中又は高の周波数帯が大きく、この周波数の特性を検出することにより、人工光源の周期的な変動と煙とを識別することができる。   FIG. 12 shows an example of a frequency spectrum related to the time series data of the average brightness in the large or small detection area. When smoke does not exist in the detection area, the intensity does not exceed a predetermined threshold as shown in FIG. FIG. 12B shows a case where smoke is present in the detection region. Here, two frequencies (2 Hz and 8 Hz) are used for the frequency, and the frequency is divided into three frequency bands, low, medium and high. It can be seen that the integrated value of the intensity increases as the frequency is low. On the other hand, the artificial light source has a large middle or high frequency band, and by detecting the characteristics of this frequency, it is possible to distinguish the periodic fluctuation of the artificial light source from smoke.

また、検出手段23は、明暗輝度値算出手段44、透過率演算手段45、収束輝度値演算手段46を備えている。なお、明暗輝度値算出手段44は、初期設定手段21の明暗輝度値算出手段28と処理手順は同様である。
異なる点は、処理を行う対象となる画像が、基準画像データではなく、最新の画像データであり、最新の画像データを取り込む度に、検出領域の大きさ(大検出領域、小検出領域)毎に、明輝度群の平均値(明輝度値)と暗輝度群の平均値(暗輝度値)とを演算する点である。
The detection unit 23 includes a light / dark luminance value calculation unit 44, a transmittance calculation unit 45, and a convergence luminance value calculation unit 46. The brightness / darkness brightness value calculation means 44 has the same processing procedure as the brightness / darkness brightness value calculation means 28 of the initial setting means 21.
The difference is that the image to be processed is not the reference image data but the latest image data, and each time the latest image data is captured, the size of the detection area (large detection area, small detection area) is different. In addition, the average value of the bright luminance group (bright luminance value) and the average value of the dark luminance group (dark luminance value) are calculated.

透過率演算手段45は、最新の画像データを取り込む度に、設定された検出領域の大きさ(大検出領域、小検出領域)毎に、透過率を式(1)により算出する。   Each time the latest image data is captured, the transmittance calculation unit 45 calculates the transmittance by the equation (1) for each set detection area size (large detection area, small detection area).

透過率=(現在の明輝度値−現在の暗輝度値)/(基準画像の明輝度値−基準画像の暗輝度値)・・・(1)
なお、透過率の演算においては、明輝度値または暗輝度値のいずれか一方だけを使用して、現在と基準画像との比率から透過率を演算するようにしてもよい。
Transmittance = (current bright luminance value−current dark luminance value) / (bright luminance value of reference image−dark luminance value of reference image) (1)
In the calculation of the transmittance, only one of the bright luminance value and the dark luminance value may be used, and the transmittance may be calculated from the ratio between the current and the reference image.

収束輝度値演算手段46は、最新の画像データを取り込む度に、設定された検出領域の大きさ(大検出領域、小検出領域)毎に、収束輝度値を式(2)により算出する。   Every time the latest image data is fetched, the convergence luminance value calculation means 46 calculates a convergence luminance value by the equation (2) for each set detection area size (large detection area, small detection area).

収束輝度値={現在の明輝度値−(基準の明輝度値×透過率)/(基準の明輝度値−基準の暗輝度値)・・・(2)     Convergence luminance value = {current bright luminance value− (reference bright luminance value × transmittance) / (reference bright luminance value−reference dark luminance value) (2)

式(1)で表される透過率は、煙が検出領域に入ると、小さくなる。これは、煙が入ったときの明輝度値と暗輝度値の差が煙が入る前の、つまり基準画像の明輝度値と暗輝度値の差より小さくなるからである。しかし、透過率の減少は照明が暗くなったときにも起こる場合がある。
式(2)で表される収束輝度値は、極めて黒い黒煙以外の煙が検出領域に入ると、煙が入る前の、つまり基準画像の収束輝度値に対して増減するが、所定の閾値以下には減少しない。一方、照明が暗くなったときには、所定の閾値以下に減少する。この特性を利用すると白色に近い煙と照明が暗くなったことを、識別することができる。
The transmittance represented by the formula (1) becomes small when smoke enters the detection region. This is because the difference between the bright luminance value and the dark luminance value when smoke enters is smaller than that before the smoke enters, that is, the difference between the bright luminance value and the dark luminance value of the reference image. However, the decrease in transmittance may also occur when the illumination is dark.
The convergence brightness value represented by the expression (2) increases or decreases with respect to the convergence brightness value before smoke enters, that is, the reference image, when smoke other than black smoke, which is extremely black, enters the detection region. It does not decrease below. On the other hand, when the illumination becomes dark, it decreases below a predetermined threshold. By utilizing this characteristic, it is possible to identify smoke that is close to white and that the illumination has become dark.

判定手段42は、演算された透過率が所定値以下であるか否かを判定する。また判定手段42は、演算された収束輝度値が所定の閾値以上であるか否かを判定する。   The determination unit 42 determines whether or not the calculated transmittance is equal to or less than a predetermined value. The determination unit 42 determines whether or not the calculated convergence luminance value is equal to or greater than a predetermined threshold value.

検出手段23の判定手段42において、最新画像の平均輝度と基準画像の平均輝度の比が所定の範囲内にあり、且つ分散が基準画像の分散に対して所定の範囲の割合内にあり、且つ平均輝度周波数スペクトルの強度が所定の強度以上または低周波帯の強度の積分値が大きい場合に煙の発生の可能性が高いとして判別する。
または、平均輝度周波数スペクトルの強度が所定の強度以上または低周波帯の強度の積分値ほど大きい、且つ透過率が所定の閾値以下且つ収束輝度値が所定の閾値以上の場合に、煙の発生の可能性が高いとして判別する。
In the determination means 42 of the detection means 23, the ratio of the average luminance of the latest image to the average luminance of the reference image is within a predetermined range, and the variance is within a predetermined range relative to the variance of the reference image, and It is determined that the possibility of smoke generation is high when the intensity of the average luminance frequency spectrum is equal to or higher than a predetermined intensity or the integrated value of the intensity of the low frequency band is large.
Or, when the intensity of the average luminance frequency spectrum is higher than the predetermined intensity or the integral value of the intensity of the low frequency band, the transmittance is lower than the predetermined threshold, and the convergence luminance value is higher than the predetermined threshold, the generation of smoke Judged as likely.

以上説明したように、本実施の形態では、複数の煙検出用の演算手段41〜46を備えた。特に、煙検出判定要素は、透過率、収束輝度値、周波数スペクトル、平均輝度の平均値、平均輝度の分散からなり、それらの演算された値が、煙検出判定要素の特徴量となる。
これら演算手段は、全てを使用して、全ての演算手段が判定手段42の条件を満足したときに、検出領域内に煙が発生したものと判別することが、一番、精度良く煙検出が可能となる。しかし、これら、演算手段は、適宜2つ以上、組み合わせて使用するだけでも、単一の演算処理に比べ、十分に煙検出の精度を高めることができ、人工光源の光量の変化や移動物体などを誤って煙と認識することを防止できる。
As described above, in the present embodiment, a plurality of calculation means 41 to 46 for detecting smoke are provided. In particular, the smoke detection determination element includes a transmittance, a convergence luminance value, a frequency spectrum, an average value of average luminance, and a variance of average luminance, and the calculated values thereof are feature quantities of the smoke detection determination element.
These calculation means use all, and when all the calculation means satisfy the condition of the determination means 42, it is determined that smoke has been generated in the detection region. It becomes possible. However, these two computing means can be used in combination of two or more as appropriate, and can sufficiently improve the accuracy of smoke detection compared to a single computing process, such as a change in the amount of light of an artificial light source or a moving object. Can be mistakenly recognized as smoke.

再び、図6に戻って、煙判別手段24は、検出数記憶部16に記憶した煙有りの検出領域の数に基づいて、画像内に煙があるかどうかを判別する。検出手段23の演算手段41〜46により、検出領域毎の煙の有無を判定手段42で判定し、煙の発生と判別された一画面における検出領域の数が、検出数記憶部16に記憶されている。そして、煙判別手段24は、検出数記憶部16から以前に撮像された画像における煙有りと判定された検出領域の数を時系列データとして読み出し、一定期間の検出数が所定の上限値以上を所定の回数連続するとき、言い換えれば、画像内において、煙有りと判定された検出領域の密度が所定値以上になったとき、煙と判別する。   Returning again to FIG. 6, the smoke determination unit 24 determines whether or not there is smoke in the image based on the number of detection areas with smoke stored in the detection number storage unit 16. The calculation means 41 to 46 of the detection means 23 determine the presence or absence of smoke for each detection area by the determination means 42, and the number of detection areas in one screen determined to be smoke generation is stored in the detection number storage unit 16. ing. Then, the smoke discrimination means 24 reads out the number of detection areas determined to have smoke in the previously captured image from the detection number storage unit 16 as time series data, and the number of detections for a certain period exceeds a predetermined upper limit value. When it continues for a predetermined number of times, in other words, when the density of the detection area determined to have smoke in the image becomes a predetermined value or more, it is determined as smoke.

図6において基準画像更新手段25は、定期的に基準となる基準画像データを更新するための手段である。この手段は、画像記憶部11に記憶されている最新の画像データと基準画像記憶部12に記憶されている基準画像データとを読み出し、これら両画像を利用して、以下の(3)式に基づいて更新用の基準画像データを作成する。
この基準画像更新手段25は、基準画像データを更新または置換する際には、ある評価値を演算し、その評価値に基づいて、基準画像データを更新するか、最新の画像で置き換えるかを決める判別手段を有する。つまり、基準画像更新手段25は、図示しない評価値演算手段を有しており、その評価値演算手段について説明する。
評価値演算手段は、2つの評価値(第1評価値、第2評価値)を演算するものである。第1評価値は、基準画像データと最新の画像データとを差分手段で差分し、全画面の輝度差分の総量によって求められる。また、基準画像データと、最新の画像データを読み出した後、画面を上側の領域と下側の領域とに二分割する分割手段によって、それら画像は、上下に2つの領域(区域)に分けられ、領域毎に最新の画像データと基準画像データとの輝度に関する差分の総量が算出されて、第2評価値の演算にその値が利用される。つまり、下の領域の輝度の差分の総量に対する上の領域の輝度の差分の総量の比を第2評価値として算出する。
なお、第1の評価値は、上下の領域毎に最新の画像と基準画像との差分の総量を算出して、それらの差分の総量の和から、全画面における差分の総量を演算してもよい。このように、評価値演算手段は、分割手段により分割された上下の領域毎に、基準画像との差分を行って、領域毎の差分の総量を評価値として演算する。
In FIG. 6, a reference image update unit 25 is a unit for periodically updating reference image data serving as a reference. This means reads the latest image data stored in the image storage unit 11 and the reference image data stored in the reference image storage unit 12, and uses these both images to obtain the following equation (3). Based on this, update reference image data is created.
When the reference image data is updated or replaced, the reference image update unit 25 calculates a certain evaluation value, and determines whether to update the reference image data or replace it with the latest image based on the evaluation value. It has a discrimination means. That is, the reference image update unit 25 has an evaluation value calculation unit (not shown), and the evaluation value calculation unit will be described.
The evaluation value calculation means calculates two evaluation values (first evaluation value and second evaluation value). The first evaluation value is obtained from the difference between the reference image data and the latest image data by the difference means and the total amount of luminance difference of the entire screen. In addition, after reading the reference image data and the latest image data, the image is divided into two regions (zones) up and down by a dividing unit that divides the screen into an upper region and a lower region. For each region, the total amount of difference in luminance between the latest image data and the reference image data is calculated, and the value is used for the calculation of the second evaluation value. That is, the ratio of the total amount of luminance difference in the upper region to the total amount of luminance difference in the lower region is calculated as the second evaluation value.
Note that the first evaluation value can be calculated by calculating the total amount of differences between the latest image and the reference image for each upper and lower region and calculating the total amount of differences on the entire screen from the sum of the total amounts of these differences. Good. In this way, the evaluation value calculation means calculates the difference from the reference image for each of the upper and lower areas divided by the dividing means, and calculates the total amount of differences for each area as an evaluation value.

基準画像置換手段26は、第1評価値が所定の閾値以上且つ第2評価値が所定の範囲内のとき、カメラ2がずれたと判断する。そして、基準画像置換手段26が最新の画像データで基準画像データを置き換えて基準画像記憶部12に記憶する。
また、判別手段は、第1評価値が所定の閾値未満または第2評価値が所定の範囲外のとき、カメラ2のずれは起こっていないと判断する。そして、基準画像更新手段25が、基準画像データおよび最新の画像データを用いて式(3)により算出した画像データで基準画像データを更新して基準画像記憶部12に記憶する。
The reference image replacement unit 26 determines that the camera 2 has shifted when the first evaluation value is equal to or greater than a predetermined threshold and the second evaluation value is within a predetermined range. Then, the reference image replacement means 26 replaces the reference image data with the latest image data and stores it in the reference image storage unit 12.
Further, the determining means determines that the camera 2 has not shifted when the first evaluation value is less than the predetermined threshold value or the second evaluation value is outside the predetermined range. Then, the reference image update unit 25 updates the reference image data with the image data calculated by the equation (3) using the reference image data and the latest image data, and stores the updated reference image data in the reference image storage unit 12.

更新基準画像データ=基準画像データ×α+最新画像データ(1−α) (3)     Update reference image data = reference image data × α + latest image data (1−α) (3)

以下、具体例を用いて基準画像の更新または置き換えについて説明する。
窓などからの光の入射や照明の程度による変化を反映するために、基準画像の更新時期が到来する度、例えば数秒から数十秒毎に基準画像をIIRフィルタで更新する。この更新では、最新の画像データが基準画像データに対して僅かしか違わないので、更新係数をαとして、式(3)により最新の画像データを基準画像データに反映する。αは0.05〜0.5程度である。
Hereinafter, update or replacement of the reference image will be described using a specific example.
In order to reflect changes due to the incidence of light from the window or the like and the degree of illumination, the reference image is updated by the IIR filter every time the reference image is updated, for example, every few seconds to several tens of seconds. In this update, since the latest image data is slightly different from the reference image data, the update coefficient is α and the latest image data is reflected in the reference image data by Expression (3). α is about 0.05 to 0.5.

図13(a)は、誤ってカメラ2にずれが生じたとき撮影した最新の画像を基準画像に重ね合わせて表示したものである。
入射する光や照明の明るさなどのように除々に変化するものであれば、IIRフィルタで更新した基準画像データと最新の画像データとを比較することはできる。しかし、誤ってカメラ2にずれが生じたときには、図13(a)に示すように、基準画像データと最新の画像データとの輝度に関して、変化した領域が多くなる。つまり、両画像を差分手段により差分を行うと、差分量が大きく、煙が発生していないも関わらず誤検出することがあると共に正確な煙検出を行えなくなってしまう。
FIG. 13A shows the latest image captured when the camera 2 is misaligned and superimposed on the reference image.
The reference image data updated by the IIR filter can be compared with the latest image data as long as the light gradually changes such as incident light and illumination brightness. However, when a shift occurs in the camera 2 by mistake, as shown in FIG. 13A, there are many areas that have changed with respect to the luminance of the reference image data and the latest image data. That is, if the difference between the two images is obtained by the difference means, the difference amount is large, and although there is no smoke generated, there is a possibility of erroneous detection and accurate smoke detection cannot be performed.

誤ってカメラ2にずれが生じたとき、基準画像データと最新の画像データとの輝度に関する差分の総量は大きくなるが、他にも基準画像データと最新の画像データとの輝度に関する差分の総量が大きくなる場合がある。
ここで、図14(a)は、カメラ2にずれが生じていないときに輝度に関する差分の総量が大きくなる一例で、特に、画像上部領域に変化が生じる場合である。図14(b)は、カメラ2にずれが生じていないときに輝度に関する差分の総量が大きくなる他の一例で、特に、画像下部領域に変化が生じる場合である。
図14(a)は、煙が発生したときの画像であり、発生した煙は画面の上側に片寄って漂ったりする。このときにおいて、画像を上下に分割して、評価値を演算してみる。
まず、最新の画像データと基準画像データとの差分による全画面の輝度差分の総量である第1評価値は、所定の閾値よりも大きくなる。しかし、煙が漂う上部区域の輝度の差分の総量だけが大きくなり、下部区域における差分の変化量はほとんどないことから、下の区域の輝度に関する差分の総量に対する上の区域の輝度の差分の総量の比(第2評価値)は、大きな値をとることになり、所定の範囲外になる。
When the camera 2 is mistakenly shifted, the total difference in luminance between the reference image data and the latest image data is increased. However, the total difference in luminance between the reference image data and the latest image data is May be larger.
Here, FIG. 14A is an example in which the total amount of differences regarding luminance increases when there is no shift in the camera 2, and in particular, a case where a change occurs in the upper region of the image. FIG. 14B is another example in which the total amount of difference regarding luminance increases when there is no deviation in the camera 2, and in particular, a case where a change occurs in the lower region of the image.
FIG. 14A shows an image when smoke is generated, and the generated smoke drifts toward the upper side of the screen. At this time, the evaluation value is calculated by dividing the image vertically.
First, the first evaluation value, which is the total amount of luminance difference of the entire screen due to the difference between the latest image data and the reference image data, is larger than a predetermined threshold value. However, since only the total difference in the brightness of the upper area where the smoke drifts is large and there is almost no difference in the difference in the lower area, the total difference in the brightness of the upper area relative to the total difference of the brightness in the lower area The ratio (second evaluation value) takes a large value and falls outside the predetermined range.

また、図14(b)は、人が入り込んできたときの画像であり、人は画面の下側に片寄っている。このときにおいて、画像を上下に二分割して、評価値を演算してみる。まず、最新の画像データと基準画像データとの差分による全画面の輝度差分の総量である第1評価値は、所定の閾値よりも大きくなる。しかし、人が入り込んだ下部区域の輝度の差分の総量だけが大きくなり、上部区域における差分の変化量はほとんどないことから、下の区域の輝度に関する差分の総量に対する上の区域の輝度の差分の総量の比(第2評価値)は、小さな値をとることになり、所定の範囲外になる。   FIG. 14B is an image when a person enters, and the person is leaning toward the lower side of the screen. At this time, the evaluation value is calculated by dividing the image into upper and lower parts. First, the first evaluation value, which is the total amount of luminance difference of the entire screen due to the difference between the latest image data and the reference image data, is larger than a predetermined threshold value. However, since only the total amount of difference in brightness in the lower area where people entered is large and there is almost no difference in the difference in the upper area, the difference in brightness in the upper area relative to the total difference in brightness in the lower area The ratio of the total amount (second evaluation value) takes a small value and falls outside the predetermined range.

一方、誤ってカメラ2にずれが生じたときは、図13(a)に示すように、ずれは画面全体に発生する。つまり、画面分割手段によって上下に分割された図13(b)の上部区域と、図13(c)の下部区域ともに、変化している領域が存在する。したがって、図14の場合と同様に、最新の画像データと基準画像データとの差分による全画面の輝度差分の総量である第1評価値は、所定の閾値よりも大きくなる。
そして、下の区域の輝度に関する差分の総量に対する上の区域の輝度の差分の総量の比(第2評価値)は、上部区域、下部区域の差分の総量がともに大きくなるので、その比は、所定の範囲内になる。
On the other hand, when a shift occurs in the camera 2 by mistake, the shift occurs on the entire screen as shown in FIG. That is, there are regions that change in both the upper area in FIG. 13B and the lower area in FIG. 13C that are divided vertically by the screen dividing means. Therefore, as in the case of FIG. 14, the first evaluation value, which is the total amount of luminance difference of the entire screen due to the difference between the latest image data and the reference image data, is larger than a predetermined threshold value.
The ratio of the total difference in the brightness of the upper area to the total difference in the brightness of the lower area (second evaluation value) is such that the total difference in the upper area and the lower area is increased. Within a predetermined range.

このように基準画像を更新する時期が到来する度に、画像を上下の2つの領域に分割し、区域毎に最新の画像データと基準画像データとの輝度に関する差分の総量をそれぞれ算出し、その上下の区域の輝度に関する差分の総量の和(=全体画面の差分の総量)を第1評価値とし、下の区域の輝度に関する差分の総量に対する上の区域の輝度の差分の総量の比を第2評価値として演算する。そして、第1評価値が所定の閾値以上且つ第2評価値が所定の範囲内のときカメラ2にずれが生じていると判断し最新の画像データで基準画像データを置き換える。つまり、今までの基準画像は使用しないで、最新画像データをそのまま基準画像とする。このため、カメラ2にずれが生じても、誤検出をおこすことを防止でき、正確な煙検出を行うことができる。   In this way, every time it comes time to update the reference image, the image is divided into two upper and lower regions, and the total amount of difference in brightness between the latest image data and the reference image data is calculated for each zone, The first evaluation value is the sum of the total differences related to the brightness of the upper and lower areas (= total difference of the entire screen), and the ratio of the total brightness difference of the upper area to the total difference of the brightness of the lower area is 2 Calculated as an evaluation value. Then, when the first evaluation value is equal to or greater than a predetermined threshold and the second evaluation value is within a predetermined range, it is determined that the camera 2 is displaced, and the reference image data is replaced with the latest image data. In other words, the latest image data is used as the reference image as it is without using the previous reference image. For this reason, even if the camera 2 is displaced, it is possible to prevent erroneous detection and to perform accurate smoke detection.

なお、本実施の形態では画像の上側の部分と下側の部分をそのまま2つの領域として輝度に関する差分の総量を算出しているが、上側の部分と下側の部分の一部分を2つの区域として輝度に関する差分の総量を算出しても良い。   In the present embodiment, the total amount of difference regarding luminance is calculated by using the upper part and lower part of the image as they are as two areas, but a part of the upper part and the lower part is defined as two areas. You may calculate the total amount of the difference regarding a brightness | luminance.

次に、煙検出装置で行われる火災検出手順について図15から図21を参照して説明する。火災検出手順が始まると、図15に示すように、画像記憶手順(S101)が実行され、次に煙検出手順(S102)、火災判別手順(S103)、基準画像更新手順(S104)が順次実行されて1回の火災検出手順が終わり、火災検出手順が繰り返し実行される。なお、ここでは、火災時に発生する煙を検出することで、火災を判別するようにしている。   Next, a fire detection procedure performed by the smoke detection device will be described with reference to FIGS. When the fire detection procedure starts, as shown in FIG. 15, an image storage procedure (S101) is executed, followed by a smoke detection procedure (S102), a fire discrimination procedure (S103), and a reference image update procedure (S104). Thus, one fire detection procedure is completed, and the fire detection procedure is repeatedly executed. Here, the fire is determined by detecting the smoke generated at the time of the fire.

まず、画像記憶手順について図16のフローチャートを参照して説明する。
画像記憶手順が開始されると、ステップS201で、カメラ2から画像データが入力されたか否かを判断し、入力されていないときステップS201を繰り返し、入力されているときステップS202に進む。
ステップS202で、画像取込時期が到来しているか否かを判断し、到来しているときステップS203に進み、到来していないときステップS201に戻る。
ステップS203で、入力されている画像データを最新の画像データとし、最新の画像データを逆ガンマ補正することにより輝度補正する。
ステップS204で、輝度補正された最新画像データを現画像記憶部12にFIFOで記憶する。
First, the image storage procedure will be described with reference to the flowchart of FIG.
When the image storage procedure is started, it is determined in step S201 whether or not image data has been input from the camera 2. If not, step S201 is repeated, and if it has been input, the process proceeds to step S202.
In step S202, it is determined whether or not the image capture time has arrived. If it has arrived, the process proceeds to step S203, and if not, the process returns to step S201.
In step S203, the input image data is set as the latest image data, and the latest image data is subjected to luminance correction by inverse gamma correction.
In step S204, the latest image data whose luminance has been corrected is stored in the current image storage unit 12 by FIFO.

次に、煙検出手順について図17、図18のフローチャートを参照して説明する。
煙検出手順は、図17、図18のフローチャートで示す手順を全ての検出領域に行う。つまり、まずはじめに小検出領域において、演算手段41〜47に基づき、検出領域の平均輝度、分散、周波数分析、明輝度値・暗輝度値、透過率、収束輝度値に関する演算を行い、判定手段42により、その検出領域における煙の有無が判定される。
それぞれの判定要素にて、煙有りと判定されれば、対応するフラグを1に設定し、煙無しと判定されれば、そのフラグを0に設定する。この手順を順次、全ての小検出領域に行い、全ての小検出領域において、その手順が終了すると、次に、検出領域のサイズを大にして、大検出領域で同じ手順を行う。つまり、大検出領域において、順次、演算手段41〜47に基づき、検出領域の平均輝度、分散、周波数分析、明輝度値・暗輝度値、透過率、収束輝度値に関する演算を行い、判定手段42により、その検出領域における煙の有無の判定を行う。ただし、この際、大検出領域は、4つの小検出領域で構成されていることから、演算に関しては、小検出領域で演算した演算値を利用して演算が行われる。例えば、ある大検出領域における平均輝度値は、4つの小検出領域のそれぞれの平均輝度値を合算して、4で除算することで求められるのである。このように、予め小検出領域の演算を済ませておくことで、その演算値を使用して大検出領域における判定要素の演算値を求めるようにすると、演算処理が簡単になり、短い処理時間で計算を済ますことが可能となる。
煙検出手順が開始されると、ステップS301で、検出領域として領域サイズが小さい小検出領域を設定し、検出領域フラグの設定を1にする。また、煙検出レジスタをリセットする。
ステップS302で、判定の結果を残す各種フラグ類の設定を0にする。
ステップS303で、設定された検出領域フラグの値に対応する検出領域の検出領域記憶部14に記憶されている情報に基づいて、まだ煙検出の処理を行っていない検出領域を1つ指定する。
Next, the smoke detection procedure will be described with reference to the flowcharts of FIGS.
In the smoke detection procedure, the procedure shown in the flowcharts of FIGS. 17 and 18 is performed for all detection regions. That is, first, in the small detection area, based on the calculation means 41 to 47, the average brightness, variance, frequency analysis, bright / dark brightness value, transmittance, and convergence brightness value of the detection area are calculated, and the determination means 42 Thus, the presence or absence of smoke in the detection area is determined.
If it is determined that there is smoke in each determination element, the corresponding flag is set to 1, and if it is determined that there is no smoke, the flag is set to 0. This procedure is sequentially performed for all the small detection areas, and when the procedure is completed for all the small detection areas, the size of the detection area is increased and the same procedure is performed for the large detection areas. In other words, in the large detection area, based on the calculation means 41 to 47, calculation is performed on the average luminance, variance, frequency analysis, bright / dark luminance value, transmittance, and convergence luminance value of the detection area, and the determination means 42. Thus, the presence / absence of smoke in the detection region is determined. However, in this case, since the large detection area is composed of four small detection areas, the calculation is performed using the calculation value calculated in the small detection area. For example, the average luminance value in a certain large detection area is obtained by adding the average luminance values of four small detection areas and dividing by four. As described above, by calculating the small detection area in advance, using the calculated value to obtain the calculation value of the determination element in the large detection area, the calculation process becomes simple and the processing time is short. The calculation can be completed.
When the smoke detection procedure is started, in step S301, a small detection area having a small area size is set as a detection area, and the detection area flag is set to 1. It also resets the smoke detection register.
In step S302, the setting of various flags that leave the determination result is set to zero.
In step S303, one detection area that has not yet undergone smoke detection processing is designated based on the information stored in the detection area storage unit 14 of the detection area corresponding to the set detection area flag value.

ステップS304で、画像記憶部11から最新の画像データを読み出し、指定された検出領域の輝度の平均および分散を算出し、輝度平均分散記憶部15に記憶する。
ステップS305で、輝度平均分散記憶部15から指定された検出領域の最近のデータを含み直近の複数回の煙検出手順の度に記憶された輝度の平均および分散を読み出し、平均輝度の移動平均および分散の移動平均を算出する。
ステップS306で、平均輝度の移動平均が基準画像の平均に対して所定の範囲内で変動しているとき平均フラグに1を設定する。
ステップS307で、輝度分散の移動平均が基準画像の分散に対して所定の範囲内で減少しているとき分散フラグに1を設定する。
In step S <b> 304, the latest image data is read from the image storage unit 11, the average luminance and variance of the designated detection area are calculated, and stored in the luminance average variance storage unit 15.
In step S305, the luminance average and variance stored in each of the most recent multiple smoke detection procedures including the latest data of the specified detection area from the luminance average variance storage unit 15 are read, and the average luminance moving average and Calculate the moving average of the variances.
In step S306, when the moving average of the average brightness varies within a predetermined range with respect to the average of the reference image, 1 is set to the average flag.
In step S307, the dispersion flag is set to 1 when the moving average of the luminance dispersion decreases within a predetermined range with respect to the dispersion of the reference image.

ステップS308で、画像記憶部11から指定された検出領域の最新の画像データを含み直近の複数回の画像記憶手順の度に記憶された画像データを読み出し、それぞれの輝度の平均を算出し、平均輝度に関する時系列データの周波数分析をして周波数スペクトルを生成する。
ステップS309で、周波数スペクトルから0Hz周辺及び10Hz周辺(撮影している場所が商用電源60Hzの場合0Hz、50Hzの場合10Hz)の成分を除外して周波数スペクトルを修正する。
ステップS310で、周波数スペクトルを2つの周波数2Hzと周波数8Hzにより3つの周波数帯のスペクトルに分割し、各周波数帯の強度を積分した値が低周波数帯ほど大きいとき、周波数フラグに1を設定する。
In step S308, the image data stored in each of the most recent image storage procedures including the latest image data of the designated detection area from the image storage unit 11 is read out, the average of the respective luminances is calculated, and the average A frequency spectrum is generated by frequency analysis of time series data relating to luminance.
In step S309, the frequency spectrum is corrected by excluding components around 0 Hz and 10 Hz (0 Hz when the shooting location is 60 Hz commercial power and 10 Hz when 50 Hz) from the frequency spectrum.
In step S310, the frequency spectrum is divided into three frequency band spectra by two frequencies of 2 Hz and 8 Hz, and when the integrated value of the intensity of each frequency band is larger as the lower frequency band, 1 is set in the frequency flag.

ステップS311で、図9に示したように、指定された検出領域内の最新の画像データの輝度を大きさに従って並べ、明輝度群を上位輝度レジスタに記憶し、また、暗輝度群を下位輝度レジスタに記憶する。
ステップS312で、上位輝度レジスタに記憶されている明輝度群の輝度の平均を求め、それを現在の明輝度値とし、また、下位輝度レジスタに記憶されている暗輝度群の輝度の平均を求め、それを現在の暗輝度値とし、ノードAを経由してステップS313に進む。
ステップS313で、基準データ記憶部13から指定された検出領域の基準の明輝度値および基準の暗輝度値を読み出し、透過率を式(1)に従って演算する。また、収束輝度値を式(2)に従って演算する。
ステップS314で、透過率が所定値以下であるとき透過率フラグに1を設定する。
ステップS315で、収束輝度値が所定の閾値以上であるとき収束輝度フラグに1を設定する。
ステップS316で、平均フラグ、分散フラグおよび周波数フラグに1が設定されているか、または周波数フラグ、透過率フラグおよび収束輝度フラグに1が設定されているか判断し、平均フラグ、分散フラグおよび周波数フラグに1が設定されている、または周波数フラグ、透過率フラグおよび収束輝度フラグに1が設定されている場合ステップS317に進み、それ以外の場合ステップS318に進む。
ステップS317で、煙の発生の可能性があるとして煙検出レジスタをインクリメントしてステップS320に進む。
ステップS318で、周波数フラグおよび透過率フラグに1が設定されているか否かを判断し、周波数フラグおよび透過率フラグに1が設定されている場合、ステップS319に進み、それ以外の場合、ステップS320に進む。
ステップS319で、警告信号を発して、黒煙の発生の可能性があることを警報して、ステップS320に進む。
In step S311, as shown in FIG. 9, the luminances of the latest image data in the designated detection area are arranged according to the size, the bright luminance group is stored in the upper luminance register, and the dark luminance group is stored in the lower luminance. Store in register.
In step S312, the average of the brightness of the bright brightness group stored in the upper brightness register is obtained and used as the current bright brightness value, and the average of the brightness of the dark brightness group stored in the lower brightness register is obtained. Then, it is set as the current dark luminance value, and the process proceeds to step S313 via the node A.
In step S313, the reference bright luminance value and the reference dark luminance value of the specified detection area are read from the reference data storage unit 13, and the transmittance is calculated according to the equation (1). Further, the convergence luminance value is calculated according to the equation (2).
In step S314, when the transmittance is equal to or less than a predetermined value, 1 is set in the transmittance flag.
In step S315, when the convergence luminance value is greater than or equal to a predetermined threshold, 1 is set in the convergence luminance flag.
In step S316, it is determined whether 1 is set to the average flag, the dispersion flag, and the frequency flag, or 1 is set to the frequency flag, the transmittance flag, and the convergence luminance flag, and the average flag, the dispersion flag, and the frequency flag are set. If 1 is set, or if 1 is set in the frequency flag, the transmittance flag, and the convergence luminance flag, the process proceeds to step S317; otherwise, the process proceeds to step S318.
In step S317, the smoke detection register is incremented assuming that smoke may be generated, and the process proceeds to step S320.
In step S318, it is determined whether or not 1 is set in the frequency flag and the transmittance flag. If 1 is set in the frequency flag and the transmittance flag, the process proceeds to step S319. Otherwise, step S320 is performed. Proceed to
In step S319, a warning signal is issued to warn of the possibility of the occurrence of black smoke, and the process proceeds to step S320.

ステップS320で、設定された検出領域フラグに対応する検出領域の全てが指定されたか否かを判断し、指定されていないときノードBを経由してステップS303に戻り、指定されているときステップS321に進む。つまり、画像には、煙を検出すべき検出領域が複数設定されているので、これら検出領域に対して、一つづつ順次、煙検出手順による煙検出を行うようにしてある。
ステップS321で、検出領域フラグに1が設定されているか否かを判断し、検出領域フラグに1が設定されているときステップS322に進み、ステップS322で、検出領域フラグに0を設定してノードBを経由してステップS303に戻る。また、ステップ321で、検出領域フラグに0が設定されているとき煙検出手順を終了する。
ただし、小検出領域の煙検出手順が終了しても、大検出領域における煙検出手順はまだなので、今度は、ステッS301で、小の代わりに大を設定し、大検出領域を選択して、今まで説明した同様な手順で、全ての大検出領域に関して、煙の有無の判定を行う。
In step S320, it is determined whether or not all of the detection areas corresponding to the set detection area flag have been specified. If not, the process returns to step S303 via the node B, and if specified, step S321. Proceed to In other words, since a plurality of detection areas where smoke should be detected is set in the image, smoke detection is sequentially performed on these detection areas one by one.
In step S321, it is determined whether or not 1 is set in the detection area flag. When 1 is set in the detection area flag, the process proceeds to step S322. In step S322, the detection area flag is set to 0 and the node is set. The process returns to step S303 via B. At step 321, when the detection area flag is set to 0, the smoke detection procedure is terminated.
However, even if the smoke detection procedure for the small detection region is completed, the smoke detection procedure for the large detection region is not yet performed, so this time, in step S301, set large instead of small, select the large detection region, In the same procedure as described above, the presence / absence of smoke is determined for all large detection areas.

今までの説明では、画像内における一つの検出領域内に煙があるのどうかを判定するためのステップ(手順)について、説明してきた。次に、複数個の検出領域からなる画像全体において、煙があるのかどうかを判定するための手順について説明する。
以下、図20を用いて、煙判別手段24における火災判別の手順について説明する。
図20において、画像内には、複数、ここでは、便宜上、A〜Iまでの9つの検出領域が複数設定されているものとする。この図においては、時間t〜tにおいて、カメラで撮影される室内に煙が充満していく様子を示している。
煙検出装置における火災判別の閾値は、例えば、6/9と設定されている。この「9」は検出領域の数を示し、「6」は、その検出領域のうち、煙検出手段において煙が検出され、煙有りと判断された検出領域の数を表す。
In the description so far, the steps (procedures) for determining whether or not there is smoke in one detection region in the image have been described. Next, a procedure for determining whether or not there is smoke in the entire image composed of a plurality of detection areas will be described.
Hereinafter, the fire discrimination procedure in the smoke discrimination means 24 will be described with reference to FIG.
In FIG. 20, it is assumed that a plurality of, for example, a plurality of nine detection areas A to I are set in the image. In this figure, at time t 0 ~t 5, it shows how going smoke filled the room to be photographed by the camera.
The fire discrimination threshold in the smoke detection device is set to 6/9, for example. “9” indicates the number of detection areas, and “6” indicates the number of detection areas in the detection areas where smoke is detected by the smoke detection means and it is determined that there is smoke.

今、時間tにおいて、検出領域Eのみが煙ありと判別されている。ここで、火災判別するにあたって、3フレーム分の煙有りと判別された検出領域の個数の合計値を利用する。つまり、t〜tの3フレーム分の煙有りの検出領域の合計値であるから、「2」となる。この「2」は、閾値の6より小さいので、火災と判別されない。
順次、同じように計算すると、tでは「5」、tでは「5」、tでは「6」(=3+1+2)となる。即ち、このような煙の発生の場合には、tおいて、火災が判別されることになる。
この火災判別の方法は、ある時間での煙有りの検出領域の個数、そして所定時間内における煙有りの検出領域の個数を考慮していることになり、言い換えれば、画像内における煙有りの検出領域の密度(時間的空間的密度)が、所定値を越えた時に、煙の発生をとらえるものである。煙の場合、常に、その大きさ(領域)は変動しているので、例えば、時間tで検出領域Hで煙有りと判断されても、時間tでは、煙が検出領域Eに移動して、検出領域Hからなくなるということがある。また、煙は、時間が経過すれば、必ず、空間的に広がって、検出される領域の個数は増加する傾向にあるから、このような判別方法は、煙検出にあたって、有効な判別の仕方と考えられる。
Now, at time t 2, only the detection region E is determined that there is smoke. Here, when determining fire, the total value of the number of detection areas determined to have smoke for three frames is used. That is, it is “2” because it is the total value of the detection areas with smoke for three frames from t 0 to t 2 . Since “2” is smaller than the threshold value 6, it is not determined as a fire.
If the same calculation is made sequentially, “5” is obtained at t 3 , “5” is obtained at t 4 , and “6” is obtained at t 5 (= 3 + 1 + 2). That is, in the case of such smoke generation would t 5 Oite, fire is determined.
This fire discrimination method considers the number of detection areas with smoke in a certain time and the number of detection areas with smoke in a predetermined time, in other words, detection of presence of smoke in an image. When the density of the region (temporal and spatial density) exceeds a predetermined value, the generation of smoke is detected. If smoke always because its size (area) is changed, for example, it is determined that there is smoke in the detection region H at time t 1, at time t 2, the smoke is moving in the detection area E Thus, the detection region H may disappear. In addition, smoke always spreads spatially over time, and the number of detected areas tends to increase. Therefore, such a discrimination method is an effective discrimination method for detecting smoke. Conceivable.

なお、この時間的空間的密度の観点で、判別する手法は、この最後の火災判別だけでなく、煙検出手段で使用される各ステップ、例えば、透過率や平均値と閾値との判断に使用するようにしてもよい。例えば、単に透過率が所定値より下回った時に、フラグを設定するのではなく、複数個、例えば4回分の検出データにおいて、3回以上、所定値以下を検出したとき、即ち、継続した減少が見られる場合に、はじめてフラグを設定するようにしてもよい。   In addition, from the viewpoint of this temporal and spatial density, the discrimination method is used not only for the final fire discrimination but also for each step used in the smoke detection means, for example, judgment of transmittance, average value and threshold value. You may make it do. For example, instead of simply setting a flag when the transmittance falls below a predetermined value, the detected data for a plurality of, for example, four times, when three or more times are detected below the predetermined value, that is, there is a continuous decrease. When it is seen, the flag may be set for the first time.

次に、火災判別手順について図19のフローチャートを参照して説明する。
火災判別手順が開始されると、ステップS401で、煙検出レジスタに設定された数、つまり煙ありと判断された検出領域の数(以下、煙検出数という)を読み出し、検出数記憶部16に記憶する。
ステップS402で、最新の煙検出数が所定の閾値(個数)以上であるか否かを判断し、最新の煙検出数が所定の閾値以上のときステップS403に進み、所定の閾値未満のとき火災判別手順を終了する。
ステップS403で、検出数記憶部16に直近の複数回の火災判別手順の度に記憶された煙検出数を読み出す。
ステップS404で、所定の個数以上の最新の煙検出数に関する直近の所定の回数の火災判別手順で記憶された値が連続して所定の閾値以上であるか否かを判断し、連続して所定の閾値以上であるときステップS405に進み、それ以外のとき火災判別手順を終了する。
このように火災か否かの判別は、ある時点における、煙ありと判別された検出領域の数が所定値以上であって、空間的に見て、煙があると判別でき、更に、煙ありと判別された検出領域の数が、連続する時間において、所定回数以上あって、時間的に見ても、煙があると判別できる時、つまり所定期間内における煙ありの検出領域の数が高いときに、火災発生と判別する。
ステップS405で、火災が発生したと判別して警報を発して火災判別手順を終了する。
Next, the fire determination procedure will be described with reference to the flowchart of FIG.
When the fire determination procedure is started, in step S401, the number set in the smoke detection register, that is, the number of detection areas determined to have smoke (hereinafter referred to as smoke detection number) is read and stored in the detection number storage unit 16. Remember.
In step S402, it is determined whether or not the latest smoke detection number is equal to or greater than a predetermined threshold (number). When the latest smoke detection number is equal to or greater than the predetermined threshold, the process proceeds to step S403. The determination procedure ends.
In step S403, the number of smoke detections stored in the detection number storage unit 16 is read for each of the most recent fire discrimination procedures.
In step S404, it is determined whether or not the value stored in the most recent predetermined number of fire determination procedures relating to the latest number of smoke detections greater than or equal to the predetermined number is continuously greater than or equal to a predetermined threshold value. If it is equal to or greater than the threshold value, the process proceeds to step S405, and otherwise, the fire determination procedure is terminated.
In this way, it is possible to determine whether there is a fire at a certain point in time when the number of detection areas determined as having smoke is greater than or equal to a predetermined value and spatially determining that there is smoke. The number of detection areas determined to be equal to or greater than a predetermined number of times in a continuous time, and when it can be determined that smoke is present even in time, that is, the number of detection areas with smoke within a predetermined period is high. Sometimes it is determined that a fire has occurred.
In step S405, it is determined that a fire has occurred, an alarm is issued, and the fire determination procedure is terminated.

次に、基準画像更新手順について図21に示すフローチャートを参照して説明する。
基準画像更新手順を開始すると、ステップS501で、基準画像更新時期が到来したか否かを判断し、到来していないとき基準画像更新手順を終了し、到来しているときステップS502に進む。
ステップS502で、画像記憶部11から最新の画像データと基準画像記憶部13から基準画像データとを読み出す。
ステップS503で、画像を上下に2つの区域に分け、区域毎に最新の画像データと基準画像データとの輝度に関する差分の総量を算出する。
ステップS504で、上下の区域の輝度に関する差分の総量の和を第1評価値、下の区域の輝度に関する差分の総量に対する上の区域の輝度の差分の総量の比を第2評価値として算出する。
ステップS505で、第1評価値が所定の閾値以上且つ第2評価値が所定の範囲内か否かを判断し、第1評価値が所定の閾値以上且つ第2評価値が所定の範囲内のときステップS506に進み、第1評価値が所定の閾値未満または第2評価値が所定の範囲外のときステップS507に進む。
ステップS506で、基準画像置換手段26が、最新画像データで基準画像データを置き換えて基準画像記憶部13に記憶する。
ステップS507で、基準画像更新手段25が、基準画像データおよび最新画像データを用いて式(3)により算出した画像データで基準画像データを更新して基準画像記憶部13に記憶する。
Next, the reference image update procedure will be described with reference to the flowchart shown in FIG.
When the reference image update procedure is started, it is determined in step S501 whether or not the reference image update time has arrived. When the reference image update procedure has not arrived, the reference image update procedure is terminated, and when it has arrived, the process proceeds to step S502.
In step S502, the latest image data from the image storage unit 11 and the reference image data from the reference image storage unit 13 are read.
In step S503, the image is divided into two upper and lower areas, and the total amount of the difference in luminance between the latest image data and the reference image data is calculated for each area.
In step S504, the sum of the total difference regarding the luminance of the upper and lower areas is calculated as a first evaluation value, and the ratio of the total difference of the luminance of the upper area to the total difference regarding the luminance of the lower area is calculated as the second evaluation value. .
In step S505, it is determined whether or not the first evaluation value is greater than or equal to a predetermined threshold and the second evaluation value is within a predetermined range, and the first evaluation value is greater than or equal to the predetermined threshold and the second evaluation value is within the predetermined range. When the first evaluation value is less than a predetermined threshold value or the second evaluation value is outside the predetermined range, the process proceeds to step S507.
In step S506, the reference image replacement unit 26 replaces the reference image data with the latest image data and stores the reference image data in the reference image storage unit 13.
In step S507, the reference image update unit 25 updates the reference image data with the image data calculated by the expression (3) using the reference image data and the latest image data, and stores the updated reference image data in the reference image storage unit 13.

ステップS508で、検出領域として領域サイズが小さい小検出領域を設定し、検出領域フラグの設定を1にする。
ステップS509で、設定された検出領域フラグの値に対応する検出領域の検出領域記憶部14に記憶されている情報に基づいて明暗輝度値の算出を行っていない検出領域を1つ指定する。
In step S508, a small detection area having a small area size is set as the detection area, and the detection area flag is set to 1.
In step S509, one detection region for which the brightness / darkness value is not calculated is designated based on the information stored in the detection region storage unit 14 of the detection region corresponding to the set detection region flag value.

ステップS510で、基準画像記憶部12から指定された検出領域の基準画像データを読み出し、基準画像データの画素の輝度の大きさの順に並べ、明輝度群を上位輝度レジスタに記憶し、また、暗輝度群を下位輝度レジスタに記憶する。
ステップS511で、上位輝度レジスタに記憶されている明輝度群の輝度の平均を求め、それを基準の明輝度値として基準データ記憶部13に記憶する。また、下位輝度レジスタに記憶されている暗輝度群の輝度の平均を求め、それを基準の暗輝度値として基準データ記憶部13に記憶する。
ステップS512で、設定された検出領域フラグに対応する検出領域の全てが指定されたか否かを判断し、指定されていないときステップS509に戻り、指定されているときステップS513に進む。
ステップS513で、検出領域フラグに1が設定されているか否かを判断し、検出領域フラグに1が設定されているときステップS514に進み、ステップS514で検出領域フラグを0に設定してステップS509に戻る。ステップS513で、検出領域フラグに0が設定されているときは、大検出領域が指定されたか否かを判断し(ステップS515)、まだであれば、ステップS508に戻って、選択している検出領域を小から大にして、大検出領域を選択する。そして、ステップS508からステップS514の手順を同様に繰り返す。最後に、ステップS513で検出領域フラグが1であれば、今度は、基準画像更新手順を終了する。
In step S510, the reference image data of the designated detection area is read from the reference image storage unit 12, arranged in the order of the luminance levels of the pixels of the reference image data, and the bright luminance group is stored in the upper luminance register. The luminance group is stored in the lower luminance register.
In step S511, the average brightness of the bright brightness group stored in the upper brightness register is obtained and stored in the reference data storage unit 13 as a reference bright brightness value. In addition, the average of the luminance of the dark luminance group stored in the lower luminance register is obtained and stored in the reference data storage unit 13 as a reference dark luminance value.
In step S512, it is determined whether or not all the detection areas corresponding to the set detection area flag have been specified. If not, the process returns to step S509, and if specified, the process proceeds to step S513.
In step S513, it is determined whether or not 1 is set in the detection area flag. When 1 is set in the detection area flag, the process proceeds to step S514. In step S514, the detection area flag is set to 0 and step S509 is performed. Return to. If the detection area flag is set to 0 in step S513, it is determined whether or not a large detection area has been designated (step S515). If not, the process returns to step S508 to select the selected detection. The large detection area is selected by changing the area from small to large. Then, the procedure from step S508 to step S514 is repeated in the same manner. Finally, if the detection area flag is 1 in step S513, this time the reference image update procedure is terminated.

なお、上述の実施の形態においては、煙検出装置は、火災時に発生する煙を検出するものとして説明したが、煙は、例えば煙突や配管やプラント機器又は電子機器などから発生する煙を検出するようにしてもよい。   In the above-described embodiment, the smoke detection device has been described as detecting smoke generated at the time of a fire. However, smoke detects smoke generated from, for example, a chimney, piping, plant equipment, or electronic equipment. You may do it.

この発明における煙検出の原理を説明する図である。It is a figure explaining the principle of smoke detection in this invention. この発明における煙検出の原理を説明する図である。It is a figure explaining the principle of smoke detection in this invention. この発明における煙検出の原理を説明する図である。It is a figure explaining the principle of smoke detection in this invention. この発明の実施の形態に係る煙検出装置の構成図である。It is a block diagram of the smoke detection apparatus which concerns on embodiment of this invention. 実施の形態に係る煙検出装置に確保される各種記憶部である。It is various memory | storage parts ensured by the smoke detection apparatus which concerns on embodiment. 実施の形態に係る煙検出装置の機能ブロック図である。It is a functional block diagram of the smoke detection apparatus which concerns on embodiment. サイズの異なる2種類の検出領域を設定することを説明する図である。It is a figure explaining setting two types of detection areas from which size differs. 奥行きのある箇所で発生した煙を撮影した画像である。It is the image which image | photographed the smoke which generate | occur | produced in the location with a depth. 検出領域における画素の輝度を大きさの順に並べ、その中から明輝度値および暗輝度値を求める様子を示す図である。It is a figure which shows a mode that the brightness | luminance value of a pixel in a detection area is arranged in order of a magnitude | size, and a bright luminance value and a dark luminance value are calculated | required from it. 波が起こっている光源からの光を反射する水面を撮影した画像である。It is the image which image | photographed the water surface which reflects the light from the light source which the wave has occurred. 実施の形態に係る煙検出手段の機能ブロック図である。It is a functional block diagram of the smoke detection means which concerns on embodiment. 検出領域の輝度平均の時系列データを周波数分析して得られた周波数スペクトルのグラフである。It is a graph of the frequency spectrum obtained by frequency-analyzing the time series data of the luminance average of the detection region. カメラにずれが生じたときの画像に基準画像を重ね合わせた図である。It is the figure which superimposed the reference image on the image when the shift | offset | difference occurred in the camera. カメラにずれが生じていないときに輝度に関する差分の総量が大きくなる2つの例である。These are two examples in which the total amount of difference regarding luminance increases when there is no shift in the camera. 実施の形態に係る火災検出手順を示すフローチャートである。It is a flowchart which shows the fire detection procedure which concerns on embodiment. 実施の形態に係る画像記憶手順を示すフローチャートである。It is a flowchart which shows the image storage procedure which concerns on embodiment. 実施の形態に係る煙検出手順の前半を示すフローチャートである。It is a flowchart which shows the first half of the smoke detection procedure which concerns on embodiment. 実施の形態に係る煙検出手順の後半を示すフローチャートである。It is a flowchart which shows the second half of the smoke detection procedure which concerns on embodiment. 実施の形態に係る火災判別手順を示すフローチャートである。It is a flowchart which shows the fire discrimination | determination procedure which concerns on embodiment. 実施の形態に係る火災判別の仕方を説明する図面である。It is drawing explaining the method of the fire discrimination which concerns on embodiment. 実施の形態に係る基準画像更新手順を示すフローチャートである。It is a flowchart which shows the reference | standard image update procedure which concerns on embodiment.

符号の説明Explanation of symbols

2 カメラ、3 煙検出装置、4 中央演算装置(CPU)、5 ROM、6 RAM、7 内蔵タイマ、8 入出力インターフェース(I/O)、9 フレームグラバー、10 外部記憶装置、11 画像記憶部、12 基準画像記憶部、13 基準データ記憶部、14 検出領域記憶部、15 輝度平均分散記憶部、16 検出数記憶部、21 初期設定手段、22 画像記憶手段、23 検出手段、24 煙判別手段、25 基準画像更新手段、26 基準画像置換手段、27 検出領域設定手段、28 明暗輝度値算出手段、29 基準データ演算手段、31 輝度補正手段、32 現画像記憶手段、41 輝度平均分散演算手段、42 判定手段、43 平均輝度周波数分析手段、44 明暗輝度値算出手段、45 透過率演算手段、46 収束輝度値演算手段。   2 camera, 3 smoke detection device, 4 central processing unit (CPU), 5 ROM, 6 RAM, 7 built-in timer, 8 input / output interface (I / O), 9 frame grabber, 10 external storage device, 11 image storage unit, 12 reference image storage unit, 13 reference data storage unit, 14 detection area storage unit, 15 luminance average dispersion storage unit, 16 detection number storage unit, 21 initial setting unit, 22 image storage unit, 23 detection unit, 24 smoke discrimination unit, 25 reference image update means, 26 reference image replacement means, 27 detection area setting means, 28 brightness / darkness brightness value calculation means, 29 reference data calculation means, 31 brightness correction means, 32 current image storage means, 41 brightness average variance calculation means, 42 Determination means, 43 Average luminance frequency analysis means, 44 Bright / dark luminance value calculation means, 45 Transmittance calculation means, 46 Convergent luminance value Calculation means.

Claims (2)

煙がないことが確認されたときに撮影して得られた画像が基準画像として記憶される基準画像記憶部を有し、カメラで撮影して得られた画像を画像処理することにより撮影された範囲内での煙の発生を検出する煙検出装置において、
撮影した最新画像内および前記基準画像内に、所定の検出領域を設定する検出領域設定手段と、
上記検出領域内の画素を輝度値の大きさ順に並べて、輝度値の大きい方から、所定数の画素の輝度値を抜き出して平均したものを明輝度値として算出する明輝度値算出手段と、
前記基準画像の前記明輝度値と前記最新画像の前記明輝度値との比率から透過率を演算する透過率演算手段と、
該透過率に基づき前記検出領域における煙の有無を判定する判定手段とを備えたことを特徴とする煙検出装置。
The image obtained by photographing when it was confirmed that there was no smoke has a reference image storage unit for storing the image as a reference image, and was taken by performing image processing on the image obtained by photographing with the camera In the smoke detection device that detects the generation of smoke within the range,
A detection area setting means for setting a predetermined detection area in the latest image taken and in the reference image;
Bright brightness value calculation means for arranging the pixels in the detection region in order of brightness value, and extracting and averaging the brightness values of a predetermined number of pixels from the larger brightness value,
A transmittance calculating means for calculating a transmittance from a ratio between the bright luminance value of the reference image and the bright luminance value of the latest image;
A smoke detection apparatus comprising: a determination unit that determines the presence or absence of smoke in the detection region based on the transmittance.
上記検出領域内の画素を輝度値の大きさ順に並べて、輝度値の小さい方から、所定数の画素の輝度値を抜き出して平均したものを暗輝度値として算出する暗輝度値算出手段を備え、
前記透過率演算手段は、前記基準画像における前記明輝度値と前記暗輝度値の差と、前記最新画像における前記明輝度値と前記暗輝度値の差の比率から透過率を演算することを特徴とする請求項1記載の煙検出装置。
A dark luminance value calculating unit that arranges the pixels in the detection area in order of the luminance value, extracts a luminance value of a predetermined number of pixels from the smaller luminance value, and calculates an average as a dark luminance value,
The transmittance calculating means calculates a transmittance from a difference between the bright luminance value and the dark luminance value in the reference image and a ratio between the bright luminance value and the dark luminance value in the latest image. 2. The smoke detection device according to claim 1.
JP2008091511A 2008-03-31 2008-03-31 Smoke detector Active JP5015839B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2008091511A JP5015839B2 (en) 2008-03-31 2008-03-31 Smoke detector

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2008091511A JP5015839B2 (en) 2008-03-31 2008-03-31 Smoke detector

Publications (2)

Publication Number Publication Date
JP2009245201A true JP2009245201A (en) 2009-10-22
JP5015839B2 JP5015839B2 (en) 2012-08-29

Family

ID=41307006

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2008091511A Active JP5015839B2 (en) 2008-03-31 2008-03-31 Smoke detector

Country Status (1)

Country Link
JP (1) JP5015839B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2015146111A1 (en) * 2014-03-28 2017-04-13 日本電気株式会社 Detection device, detection method, and computer program

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099876A (en) * 2001-09-21 2003-04-04 Nohmi Bosai Ltd Smoke detector
JP2003132458A (en) * 2001-10-25 2003-05-09 Koito Ind Ltd Device for detecting smoke or fog or the like
JP2005284509A (en) * 2004-03-29 2005-10-13 Matsushita Electric Ind Co Ltd Image processor
JP2006349431A (en) * 2005-06-15 2006-12-28 Matsushita Electric Ind Co Ltd Image processing method and image processing device
JP2008046917A (en) * 2006-08-17 2008-02-28 Nohmi Bosai Ltd Smoke detection device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003099876A (en) * 2001-09-21 2003-04-04 Nohmi Bosai Ltd Smoke detector
JP2003132458A (en) * 2001-10-25 2003-05-09 Koito Ind Ltd Device for detecting smoke or fog or the like
JP2005284509A (en) * 2004-03-29 2005-10-13 Matsushita Electric Ind Co Ltd Image processor
JP2006349431A (en) * 2005-06-15 2006-12-28 Matsushita Electric Ind Co Ltd Image processing method and image processing device
JP2008046917A (en) * 2006-08-17 2008-02-28 Nohmi Bosai Ltd Smoke detection device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPWO2015146111A1 (en) * 2014-03-28 2017-04-13 日本電気株式会社 Detection device, detection method, and computer program

Also Published As

Publication number Publication date
JP5015839B2 (en) 2012-08-29

Similar Documents

Publication Publication Date Title
JP4926603B2 (en) Smoke detector
JP4730431B2 (en) Target tracking device
JP4813289B2 (en) Smoke detector
JP5518359B2 (en) Smoke detector
US10713798B2 (en) Low-complexity motion detection based on image edges
JP4689518B2 (en) Fire detection equipment
US9818277B1 (en) Systems and methods for smoke detection
JP4999794B2 (en) Still region detection method and apparatus, program and recording medium
JP4926602B2 (en) Smoke detector
JP2008117305A (en) Image processor
JP5015838B2 (en) Smoke detector
JP5261546B2 (en) Smoke detector
JP2007180932A (en) Image sensor
CN113408479A (en) Flame detection method and device, computer equipment and storage medium
JP5286113B2 (en) Smoke detector
JP2009181307A (en) Congestion/retention detection system
JP5015839B2 (en) Smoke detector
JP4707019B2 (en) Video surveillance apparatus and method
JP5215707B2 (en) Smoke detector
JP7092616B2 (en) Object detection device, object detection method, and object detection program
KR20060041555A (en) System and method for detecting and alarming a fire of thermal power plants
KR101553707B1 (en) Image stain detection method for camera module defect determination
JP2012048691A (en) Image monitoring apparatus
JP6124739B2 (en) Image sensor
JP2011061651A (en) Suspicious object detection system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20101015

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20120214

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20120215

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20120411

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20120522

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20120607

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20150615

Year of fee payment: 3

R150 Certificate of patent or registration of utility model

Ref document number: 5015839

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250