JP2018129090A - Detection apparatus, detection system, and program - Google Patents

Detection apparatus, detection system, and program Download PDF

Info

Publication number
JP2018129090A
JP2018129090A JP2018080389A JP2018080389A JP2018129090A JP 2018129090 A JP2018129090 A JP 2018129090A JP 2018080389 A JP2018080389 A JP 2018080389A JP 2018080389 A JP2018080389 A JP 2018080389A JP 2018129090 A JP2018129090 A JP 2018129090A
Authority
JP
Japan
Prior art keywords
detection
area
person
stay
unit
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
JP2018080389A
Other languages
Japanese (ja)
Other versions
JP6664106B2 (en
Inventor
康洋 森
Yasuhiro Mori
康洋 森
松田 啓史
Hiroshi Matsuda
啓史 松田
利春 竹ノ内
Toshiharu Takenouchi
利春 竹ノ内
杭 耕一郎
Koichiro Kui
耕一郎 杭
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.)
Panasonic Intellectual Property Management Co Ltd
Original Assignee
Panasonic Intellectual Property Management Co Ltd
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 Panasonic Intellectual Property Management Co Ltd filed Critical Panasonic Intellectual Property Management Co Ltd
Publication of JP2018129090A publication Critical patent/JP2018129090A/en
Application granted granted Critical
Publication of JP6664106B2 publication Critical patent/JP6664106B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

PROBLEM TO BE SOLVED: To provide a detection apparatus, a detection system, and a program for detecting presence of a person with high accuracy in accordance with a moving state of the person, while reducing the load on detection processing.SOLUTION: A detection apparatus 100 includes a detection unit 31 for detecting presence of a person in a detection area in an analysis image captured by an imaging unit 2. The detection unit 31 has moving detection mode that detects presence of a person in the detection area, and stay detection mode that detects presence of a person, on the basis of a moving amount of the person in a stay area in which the person is estimated to stay in the detection area.SELECTED DRAWING: Figure 1

Description

本発明は、検知装置、検知システム、およびプログラムに関する。   The present invention relates to a detection device, a detection system, and a program.

従来、侵入者を検知するために、侵入者の移動に対して差分画像における像の面積を求め、外乱と区別するように侵入者の移動による像の動きの面積が一定値以上であれば、侵入者として検出する検知装置が知られている(例えば、特許文献1を参照)。   Conventionally, in order to detect an intruder, the area of the image in the difference image is obtained with respect to the movement of the intruder, and if the area of the image movement due to the movement of the intruder is not less than a certain value so as to distinguish it from disturbance, A detection device that detects an intruder is known (see, for example, Patent Document 1).

また、第1の輪郭抽出手段と、第2の輪郭抽出手段と、第3の輪郭抽出手段と、を有する画像処理装置が提案されている(例えば、特許文献2を参照)。第1の輪郭抽出手段は、検出対象の移動量や動きが大きい場合に検出対象を検出し、第2の輪郭抽出手段は、検出対象の移動量や動きが比較的に小さい場合に検出対象を検出し、第3の輪郭抽出手段は、検出対象が静止している場合に検出対象を検出する。この画像処理装置は、各輪郭抽出手段を用いて検知領域の大きさが異なる検知範囲において、検出対象の存在の有無を検出する複数の検出モードを備えることで、検出対象の動きが速くても、遅くても、または静止していても、検出対象を検出できる。   In addition, an image processing apparatus having a first contour extracting unit, a second contour extracting unit, and a third contour extracting unit has been proposed (see, for example, Patent Document 2). The first contour extraction unit detects the detection target when the movement amount and movement of the detection target are large, and the second contour extraction unit selects the detection target when the movement amount and movement of the detection target are relatively small. The third contour extracting means detects the detection target when the detection target is stationary. This image processing apparatus includes a plurality of detection modes for detecting the presence / absence of a detection target in a detection range in which the size of the detection region is different using each contour extraction unit, so that even if the movement of the detection target is fast, The detection object can be detected even when it is slow or stationary.

特開2000−348268号公報JP 2000-348268 A 特開2004−295416号公報JP 2004-295416 A

しかしながら、特許文献1に記載のものは、侵入者が検知領域内において移動が小さい、または滞在している場合、侵入者の移動による像の動きの面積が小さくなってしまい、外乱として認識してしまう。よって、特許文献1に記載のものは、侵入者が検知領域内において移動が小さい、または滞在している場合、侵入者を検出することができなくなる可能性がある。   However, when the intruder moves little or stays within the detection region, the image described in Patent Document 1 is recognized as a disturbance because the area of the image movement due to the intruder movement is reduced. End up. Therefore, the thing of patent document 1 may become unable to detect an intruder when the intruder moves little or stays in the detection area.

また、特許文献2に記載のものは、常に第1の輪郭抽出手段〜第3の輪郭抽出手段を繰り返して検出対象の存在の有無を検知している。例えば、検出対象が大きな動きをするとき、特許文献2に記載の画像処理装置は、先ず検出対象が静止しているか否かを判断し、ついで微少な動きをしているか否かを判断した後、大きな動きをしているか否かを判断しているため、検知処理にかかる負荷が大きい。   Moreover, the thing of patent document 2 always detects the presence or absence of a detection target by repeating the 1st outline extraction means-the 3rd outline extraction means. For example, when the detection target moves greatly, the image processing apparatus described in Patent Document 2 first determines whether or not the detection target is stationary, and then determines whether or not the detection target is moving slightly. Since it is determined whether or not a large movement is occurring, the load on the detection process is large.

そこで、本発明は、上記事由に鑑みてなされたものであって、検知処理にかかる負荷が小さく、人の移動状況に応じて人の存在の有無を精度高く検知することができる検知装置および検知システムを提供することを目的とする。   Accordingly, the present invention has been made in view of the above-described reasons, and the detection device and the detection capable of detecting the presence or absence of a person with high accuracy according to the movement state of the person with a small load on the detection process. The purpose is to provide a system.

本発明の検知装置は、撮像部が撮像した解析画像の検知領域内の人の存在の有無を検知する検知部を備え、検知部は、検知領域内における人の存在の有無を検知する移動検知モードと、検知領域内で人が停滞していると推定される滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有する。   The detection apparatus of the present invention includes a detection unit that detects the presence or absence of a person in the detection region of the analysis image captured by the imaging unit, and the detection unit detects movement of the person in the detection region. And a stay detection mode for detecting the presence or absence of a person based on the amount of movement of the person in the stay area where the person is estimated to be stagnant in the detection area.

本発明の検知システムは、検知装置と、検知部の検知結果に基づいて制御される負荷と、を備える。   The detection system of this invention is provided with a detection apparatus and the load controlled based on the detection result of a detection part.

本発明のプログラムは、コンピュータを、解析画像の検知領域内の人の存在の有無を検知する検知部を備え、検知部は、検知領域内における人の存在の有無を検知する移動検知モードと、検知領域内で人が停滞していると推定される滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有する検知装置として機能させるためのプログラムである。   The program of the present invention includes a detection unit that detects the presence or absence of a person in the detection region of the analysis image, and the detection unit includes a movement detection mode that detects the presence or absence of a person in the detection region; A program for functioning as a detection device having a stay detection mode for detecting the presence or absence of a person based on the amount of movement of a person in a stay area where a person is estimated to be stagnant in the detection area .

本発明の検知装置および検知システムは、検知処理にかかる負荷が小さく、人の移動状況に応じて人の存在の有無を精度高く検知することができる。   The detection device and the detection system of the present invention have a small load on the detection process, and can accurately detect the presence or absence of a person according to the movement situation of the person.

図1は、本発明の実施形態1に係る検知装置100および検知システム120のブロック図である。FIG. 1 is a block diagram of a detection device 100 and a detection system 120 according to Embodiment 1 of the present invention. 図2Aおよび図2Bは、本発明の実施形態1に係る検知装置100の作成部32が解析画像に対して作成する識別領域22の一例と、導出部33が識別領域22の位置変化量を導出する一例を示す概念図である。図2Aは、解析画像の連続する2つのフレームの前のフレームにおける解析画像の検知領域21を示す概念図である。図2Bは、解析画像の連続する2つのフレームの後のフレームにおける解析画像の検知領域21を示す概念図である。2A and 2B show an example of the identification region 22 created by the creation unit 32 of the detection apparatus 100 according to Embodiment 1 of the present invention for the analysis image, and the derivation unit 33 derives the positional change amount of the identification region 22. It is a conceptual diagram which shows an example to do. FIG. 2A is a conceptual diagram showing the detection area 21 of the analysis image in a frame before two consecutive frames of the analysis image. FIG. 2B is a conceptual diagram showing the detection region 21 of the analysis image in a frame after two consecutive frames of the analysis image. 図3Aおよび図3Bは、本発明の実施形態1に係る検知装置100が滞在検知モードで人の存在の有無を検知する際に導出部33が人の動き量を導出する一例を示す概念図である。図3Aは、本発明の実施形態1に係る連続する2つのフレームの前のフレームにおける滞在領域23aを示す概念図である。図3Bは、本発明の実施形態1に係る連続する2つのフレームの後のフレームにおける滞在領域23bを示す概念図である。3A and 3B are conceptual diagrams illustrating an example in which the deriving unit 33 derives the amount of movement of the person when the detection apparatus 100 according to Embodiment 1 of the present invention detects the presence or absence of a person in the stay detection mode. is there. FIG. 3A is a conceptual diagram showing a stay area 23a in a frame before two consecutive frames according to Embodiment 1 of the present invention. FIG. 3B is a conceptual diagram showing a stay area 23b in a frame after two consecutive frames according to Embodiment 1 of the present invention. 図4は、本発明の実施形態1に係る検知装置100が、識別領域22の位置変化量に基づいて検知モードを切り替えるフローチャートである。FIG. 4 is a flowchart in which the detection apparatus 100 according to the first embodiment of the present invention switches the detection mode based on the position change amount of the identification region 22. 図5は、本発明の実施形態1に係る検知装置100が、移動検知モードで人の存在の有無を検知するフローチャートである。FIG. 5 is a flowchart in which the detection apparatus 100 according to the first embodiment of the present invention detects the presence or absence of a person in the movement detection mode. 図6は、本発明の実施形態1に係る検知装置100が、滞在検知モードで人の存在の有無を検知するフローチャートである。FIG. 6 is a flowchart in which the detection apparatus 100 according to the first embodiment of the present invention detects the presence or absence of a person in the stay detection mode. 図7は、本発明の実施形態2に係る検知装置200および検知システム220のブロック図である。FIG. 7 is a block diagram of the detection device 200 and the detection system 220 according to Embodiment 2 of the present invention. 図8は、本発明の実施形態2に係るフィルタ画像処理の一例を示す概念図である。FIG. 8 is a conceptual diagram showing an example of filter image processing according to the second embodiment of the present invention. 図9は、本発明の実施形態2に係る検知装置200が、滞在検知モードで人の存在の有無を検知するフローチャートである。FIG. 9 is a flowchart in which the detection device 200 according to the second embodiment of the present invention detects the presence or absence of a person in the stay detection mode. 図10は、本発明の実施形態6に係る検知装置600および検知システム620のブロック図である。FIG. 10 is a block diagram of a detection device 600 and a detection system 620 according to Embodiment 6 of the present invention. 図11は、本発明の実施形態6に係る検知装置600が、識別領域22の位置変化量に基づいて検知モードを切り替える際の動作のフローチャートである。FIG. 11 is a flowchart of an operation when the detection apparatus 600 according to the sixth embodiment of the present invention switches the detection mode based on the position change amount of the identification region 22. 図12A、図12B、および図12Cは、人70が検知領域21の外から検知領域21内に進入し、その場で立ち止まった場合の、連続する3つのフレームの解析画像を示す図である。12A, 12B, and 12C are diagrams showing analysis images of three consecutive frames when a person 70 enters the detection area 21 from outside the detection area 21 and stops there. 図13は、本発明の実施形態6に係る検知装置600が、滞在検知モードで人の存在の有無を検知する際の動作の一例を示す概念図である。FIG. 13 is a conceptual diagram illustrating an example of an operation when the detection apparatus 600 according to the sixth embodiment of the present invention detects the presence or absence of a person in the stay detection mode. 図14は、本発明の実施形態6に係る検知装置600が、滞在検知モードで人の存在の有無を検知する際の動作の一例を示す概念図である。FIG. 14 is a conceptual diagram illustrating an example of an operation when the detection apparatus 600 according to the sixth embodiment of the present invention detects the presence or absence of a person in the stay detection mode. 図15は、解析画像における検知領域21と、制限部36による上限値を規定する上限枠24と、の関係の一例を示す概念図である。FIG. 15 is a conceptual diagram illustrating an example of the relationship between the detection region 21 in the analysis image and the upper limit frame 24 that defines the upper limit value by the restriction unit 36.

(実施形態1)
以下、本発明の実施形態1に係る検知装置および検知システムについて図1〜図6を用いて説明する。
(Embodiment 1)
Hereinafter, a detection apparatus and a detection system according to Embodiment 1 of the present invention will be described with reference to FIGS.

図1は、本発明の実施形態1に係る検知装置100および検知システム120のブロック図である。図1に示すように、検知装置100は、撮像部2と、制御部3と、人の存在の有無に応じて制御対象に対して制御信号を送信する送信部4と、記憶部5と、を備える。   FIG. 1 is a block diagram of a detection device 100 and a detection system 120 according to Embodiment 1 of the present invention. As shown in FIG. 1, the detection apparatus 100 includes an imaging unit 2, a control unit 3, a transmission unit 4 that transmits a control signal to a control target according to the presence or absence of a person, a storage unit 5, Is provided.

制御部3は、検知部31と、作成部32と、導出部33と、を備える。検知部31は、撮像部2が撮像した解析画像の検知領域内の人の存在の有無を検知する。作成部32は、検知部31が解析画像の検知領域内に人の存在があることを検知したとき、検知した人を囲む識別領域を解析画像に作成する。導出部33は、検知領域内で停滞した識別領域からなる滞在領域内での人の動き量および検知領域内での識別領域の位置変化量を導出する。   The control unit 3 includes a detection unit 31, a creation unit 32, and a derivation unit 33. The detection unit 31 detects the presence or absence of a person in the detection area of the analysis image captured by the imaging unit 2. When the detection unit 31 detects that a person is present in the detection area of the analysis image, the generation unit 32 generates an identification area surrounding the detected person in the analysis image. The deriving unit 33 derives the amount of movement of the person in the stay area including the identification area stagnated in the detection area and the position change amount of the identification area in the detection area.

導出部33は、所定期間における滞在領域内での人の動き量を導出する。また、導出部33は、所定期間における検知領域内での識別領域の位置変化量を導出する。なお、説明の便宜上、上述の「所定期間」を撮像部2が撮像した解析画像の連続した2つのフレームのフレーム間隔として説明するが、その限りではなく、例えば予め設定した期間を用いてもよい。また、滞在領域における人の動き量を導出する所定期間と、識別領域の位置変化量を導出する所定期間とは、同じ期間であってもよいし、異なる期間であってもよい。   The deriving unit 33 derives the amount of movement of the person within the stay area during the predetermined period. The deriving unit 33 derives the position change amount of the identification area within the detection area in a predetermined period. For convenience of explanation, the above-mentioned “predetermined period” will be described as a frame interval between two consecutive frames of the analysis image captured by the imaging unit 2, but the present invention is not limited thereto, and for example, a preset period may be used. . Further, the predetermined period for deriving the amount of movement of the person in the stay area and the predetermined period for deriving the position change amount of the identification area may be the same period or different periods.

なお、解析画像の検知領域は、例えば、撮像部2が撮像した画像の一部の領域であってもよく、撮像部2が撮像した画像の全ての領域であってもよい。   Note that the detection area of the analysis image may be, for example, a partial area of the image captured by the imaging unit 2 or may be the entire area of the image captured by the imaging unit 2.

記憶部5は、評価指標とする停滞閾値“I”(第1の閾値)と、解除閾値“U”(第2の閾値)と、解除閾値“U”より小さい検知閾値“T”(第3の閾値)と、導出閾値“K”(第4の閾値)と、を記憶している。   The storage unit 5 includes a stagnation threshold “I” (first threshold) as an evaluation index, a cancellation threshold “U” (second threshold), and a detection threshold “T” (third) that is smaller than the cancellation threshold “U”. And a derivation threshold “K” (fourth threshold) are stored.

検知部31は、検知モードとして、解析画像の検知領域内における人の存在の有無を検知する移動検知モードと、滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有する。検知部31は、移動検知モードにおいて、識別領域の位置変化量が停滞閾値“I”未満になると、検知領域内での当該識別領域の位置を固定し、当該識別領域を滞在領域とし、当該滞在領域について滞在検知モードで人の存在の有無を検知する。つまり、滞在領域は、検知領域内での位置変化量が停滞閾値“I”未満となることで、検知領域内で停滞したとみなされた識別領域である。   The detection unit 31 detects, as detection modes, a movement detection mode that detects the presence or absence of a person in the detection area of the analysis image, and a stay detection that detects the presence or absence of a person based on the amount of movement of the person in the stay area. Mode. When the position change amount of the identification area becomes less than the stagnation threshold “I” in the movement detection mode, the detection unit 31 fixes the position of the identification area in the detection area, sets the identification area as the stay area, The presence / absence of a person is detected in the stay detection mode for the area. That is, the stay area is an identification area that is regarded as stagnant in the detection area because the amount of change in position in the detection area is less than the stagnation threshold “I”.

ここで、検知部31が移動検知モードで動作している限り、作成部32は、人が検知装置100の解析画像の検知領域内を移動するにつれて、識別領域の位置を更新することで、検知領域内の人の位置を識別領域にて追跡する。すなわち、移動検知モードにおいては、検知部31は、検知領域の全域を対象として人の存在の有無を検知し、検知領域内で人が大きく移動した場合でも、人の位置を追跡することで継続的に当該人の存在の有無を検知する。一方、滞在検知モードにおいては、検知部31は、検知領域内で停滞した識別領域である滞在領域、つまり検知領域内での位置が固定された識別領域である滞在領域内を対象として、人の存在の有無を検知する。よって、滞在検知モードにおいては、検知部31は、人が検知領域内の一箇所に止まっている(停滞している)状態にあっても、当該人の微動を検知することで、滞在領域内の人の存在の有無を検知できる。   Here, as long as the detection unit 31 operates in the movement detection mode, the creation unit 32 detects by updating the position of the identification region as the person moves within the detection region of the analysis image of the detection device 100. The position of the person in the area is tracked in the identification area. That is, in the movement detection mode, the detection unit 31 detects the presence / absence of a person over the entire detection area, and continues by tracking the position of the person even when the person moves greatly within the detection area. The presence or absence of the person is detected. On the other hand, in the stay detection mode, the detection unit 31 targets a stay area that is an identification area stagnated in the detection area, that is, a stay area that is an identification area whose position in the detection area is fixed. Detect presence or absence. Therefore, in the stay detection mode, the detection unit 31 detects the slight movement of the person in the stay area even when the person is stopped at one place in the detection area (stagnation). The presence or absence of a person can be detected.

ただし、検知部31は、移動検知モードと、滞在検知モードと、を完全に切り替えるのではなく、原則、移動検知モードで動作している。検知部31は、検知領域内に滞在領域が出現すると(識別領域の停滞が発生すると)、滞在領域内についてのみ滞在検知モードで人の存在の有無を検知し、検知領域のうち滞在領域以外の領域は移動検知モードで人の存在の有無を検知する。つまり、検知部31は、検知領域内に滞在領域が出現すると、滞在領域についてのみ、部分的に検知モードを滞在検知モードとするのであって、検知モードが移動検知モードから滞在検知モードへ完全に切り替わるのではない。   However, the detection unit 31 does not completely switch between the movement detection mode and the stay detection mode, but basically operates in the movement detection mode. When the stay area appears in the detection area (when the stagnation of the identification area occurs), the detection unit 31 detects the presence or absence of a person in the stay detection mode only in the stay area. The area detects the presence or absence of a person in the movement detection mode. That is, when the stay area appears in the detection area, the detection unit 31 partially sets the detection mode to the stay detection mode only for the stay area, and the detection mode is completely changed from the movement detection mode to the stay detection mode. It doesn't switch.

なお、検知部31での移動検知モードにおける人の存在の有無の検知方法、つまり、作成部32での識別領域の作成に用いられる検知部31での人の存在の有無の検知方法は特に限定されず、従来の人検知の技術を用いてもよい。例えば、背景差分を用いて人の存在の有無を検知する手法でもよく、フレーム間差分を用いて解析画像の検知領域21における人の動き量を導出することで人の存在の有無を検知する手法でもよい。   In addition, the detection method of the presence / absence of a person in the movement detection mode in the detection unit 31, that is, the detection method of the presence / absence of a person in the detection unit 31 used for creating the identification area in the creation unit 32 is particularly limited. Instead, a conventional human detection technique may be used. For example, a technique for detecting the presence or absence of a person using the background difference may be used, or a technique for detecting the presence or absence of a person by deriving the amount of movement of the person in the detection area 21 of the analysis image using the difference between frames. But you can.

以下、作成部32の識別領域の作成方法と、導出部33の滞在領域内での人の動き量および識別領域の位置変化量の導出方法について、図2A、図2B、図3A、および図3Bを用いて説明する。   2A, 2B, 3A, and 3B will be described below with respect to the creation method of the identification region of the creation unit 32 and the method of deriving the amount of movement of the person and the position change amount of the identification region in the stay region of the derivation unit 33. Will be described.

図2Aおよび図2Bは、作成部32が作成する識別領域22の一例と、導出部33が識別領域22の位置変化量を導出する一例を示す概念図である。図2Aおよび図2Bは、連続する2つのフレームの解析画像の検知領域21を示す図である。   2A and 2B are conceptual diagrams illustrating an example of the identification region 22 created by the creation unit 32 and an example of the derivation unit 33 deriving the positional change amount of the identification region 22. 2A and 2B are diagrams showing the detection region 21 of the analysis image of two consecutive frames.

図2Aに示すように、作成部32は、移動検知モードにおいて、検知部31が人の存在があることを検知したとき、当該人の幅、高さに基づいて、長方形状の識別領域22を、解析画像内に当該人を囲むように作成する。つまり、識別領域22は、解析画像の検知領域21内において、検知部31で検知された人を含むように作成される領域である。   As shown in FIG. 2A, when the detection unit 31 detects the presence of a person in the movement detection mode, the creation unit 32 creates a rectangular identification region 22 based on the width and height of the person. Then, the analysis image is created so as to surround the person. That is, the identification area 22 is an area created so as to include a person detected by the detection unit 31 in the detection area 21 of the analysis image.

図2Bは、図2Aの次のフレームを示しており、この場合、人が移動していることを想定するため、識別領域22が、図2Aにおける識別領域22aから図2Bにおける識別領域22bに移動する。   FIG. 2B shows the next frame of FIG. 2A, in which case the identification area 22 has moved from the identification area 22a in FIG. 2A to the identification area 22b in FIG. 2B to assume that a person is moving. To do.

導出部33は、識別領域22aの中心と22bの中心との間の距離L1を算出し、距離L1を識別領域22の位置変化量として導出する。   The deriving unit 33 calculates the distance L1 between the center of the identification area 22a and the center of 22b, and derives the distance L1 as the position change amount of the identification area 22.

検知部31は、移動検知モードにおいて、導出部33により導出した位置変化量と、記憶部5に記憶された停滞閾値“I”と、を比較する。位置変化量が停滞閾値“I”以上の場合、検知部31は、移動検知モードのままで人の存在の有無を検知し、位置変化量が停滞閾値“I”未満の場合、部分的に検知モードを滞在検知モードとする。   The detection unit 31 compares the position change amount derived by the deriving unit 33 with the stagnation threshold “I” stored in the storage unit 5 in the movement detection mode. When the position change amount is equal to or greater than the stagnation threshold “I”, the detection unit 31 detects the presence or absence of a person in the movement detection mode, and partially detects when the position change amount is less than the stagnation threshold “I”. The mode is the stay detection mode.

作成部32は、人が検知装置100の解析画像の検知領域21内を移動するにつれて、識別領域22の位置を更新することで、検知部31が解析画像の検知領域内の人を追跡することができる。移動検知モードにおいては、検知部31は、解析画像における検知領域21内に識別領域22が存在すれば検知領域21に人の存在があると検知し、検知領域21内に識別領域22が存在しなければ検知領域21に人の存在がないと検知する。つまり、図2Aおよび図2Bのいずれの場合でも、検知部31は人の存在があると検知する。   The creation unit 32 updates the position of the identification region 22 as the person moves in the detection region 21 of the analysis image of the detection device 100 so that the detection unit 31 tracks the person in the detection region of the analysis image. Can do. In the movement detection mode, the detection unit 31 detects that there is a person in the detection area 21 if the identification area 22 exists in the detection area 21 in the analysis image, and the identification area 22 exists in the detection area 21. If not, it is detected that there is no person in the detection area 21. That is, in any case of FIG. 2A and FIG. 2B, the detection part 31 detects that there exists a person.

図3Aおよび図3Bは、検知装置100が滞在検知モードで人の存在の有無を検知する際に導出部33が人の動き量を導出する一例を示す概念図である。図3Aおよび図3Bは、連続する2つのフレームの滞在領域23a、23bを示す図である。なお、図3Aおよび図3Bでは、検知領域21内で識別領域が停滞しているため、「23a」、「23b」で示す識別領域はいずれも滞在領域23である。   3A and 3B are conceptual diagrams illustrating an example in which the deriving unit 33 derives the amount of movement of a person when the detection apparatus 100 detects the presence or absence of a person in the stay detection mode. 3A and 3B are diagrams showing stay areas 23a and 23b of two consecutive frames. In FIG. 3A and FIG. 3B, since the identification area is stagnant in the detection area 21, the identification areas indicated by “23 a” and “23 b” are both stay areas 23.

図3Aおよび図3Bに示すように、滞在検知モードにおいて、検知部31は、停滞中の識別領域22、つまり滞在領域23における人の動き量に基づいて人の存在の有無を検知する。図3Aおよび図3Bに示すように、人の動きが、図3Aの滞在領域23aから図3Bの滞在領域23bに変化する際に、滞在領域23a、23bにおける画素の輝度は、人の動きの変動に基づいて変化する。   As shown in FIGS. 3A and 3B, in the stay detection mode, the detection unit 31 detects the presence or absence of a person based on the amount of movement of the person in the stagnant identification area 22, that is, the stay area 23. As shown in FIGS. 3A and 3B, when the movement of a person changes from the stay area 23a in FIG. 3A to the stay area 23b in FIG. 3B, the luminance of the pixels in the stay areas 23a and 23b varies with the movement of the person. Change based on.

導出部33は、所定期間において、滞在領域23(滞在領域23a、23b)における人の動き量を導出する。すなわち、導出部33は、滞在領域23b内の画素のうち滞在領域23aからの輝度の変化量が記憶部5に記憶された導出閾値“K”以上の画素の数、を人の動き量として導出する。   The deriving unit 33 derives the amount of human movement in the stay area 23 (stay areas 23a and 23b) in a predetermined period. That is, the deriving unit 33 derives, as the amount of human movement, the number of pixels having a luminance change amount from the stay region 23a that is equal to or greater than the deriving threshold “K” stored in the storage unit 5 among the pixels in the stay region 23b. To do.

検知部31は、滞在検知モードにおいて、導出部33により人の動き量を導出することで、人の動き量と、記憶部5に記憶された検知閾値“T”と、解除閾値“U”と、を比較する。検知部31は、人の動き量が検知閾値“T”以上解除閾値“U”未満であれば、人の存在があると判定する。また、検知部31は、人の動き量が検知閾値“T”未満であれば、人の存在がないと判定する。つまり、検知部31は、滞在検知モードにおいて、人の動き量が検知閾値“T”未満であれば、人の存在がないと判定し、人の動き量が検知閾値“T”以上であれば、人の存在があると判定する。   In the stay detection mode, the detection unit 31 derives the amount of human movement by the deriving unit 33, thereby detecting the amount of human movement, the detection threshold “T” stored in the storage unit 5, and the release threshold “U”. , Compare. The detection unit 31 determines that there is a person if the amount of movement of the person is greater than or equal to the detection threshold “T” and less than the release threshold “U”. The detection unit 31 determines that there is no person if the movement amount of the person is less than the detection threshold “T”. That is, in the stay detection mode, the detection unit 31 determines that there is no person if the amount of human movement is less than the detection threshold “T”, and if the amount of human movement is equal to or greater than the detection threshold “T”. Determine that there is a person.

ところで、本実施形態においては、検知部31は、人の動き量が検知閾値“T”よりも大きい解除閾値“U”以上であれば、滞在検知モードから移動検知モードに切り替える。すなわち、検知部31は、滞在検知モードにおいては、人の存在の有無の検知に用いられる検知閾値“T”よりも大きい解除閾値“U”と、滞在領域内における人の動き量と、を比較する。人の動き量が解除閾値“U”未満であれば、検知部31は、滞在領域内について、引き続き滞在検知モードでの人の存在の有無を検知する。人の動き量が解除閾値“U”以上になると、検知部31は、滞在領域を解除し、滞在領域内の検知モードを滞在検知モードから移動検知モードへ切り替える。   Incidentally, in the present embodiment, the detection unit 31 switches from the stay detection mode to the movement detection mode if the amount of human movement is equal to or greater than the release threshold “U” that is greater than the detection threshold “T”. That is, in the stay detection mode, the detection unit 31 compares the release threshold “U”, which is larger than the detection threshold “T” used for detecting the presence or absence of a person, with the amount of movement of the person in the stay area. To do. If the movement amount of the person is less than the release threshold “U”, the detection unit 31 continuously detects the presence / absence of the person in the stay detection mode in the stay area. When the amount of movement of the person becomes equal to or greater than the release threshold “U”, the detection unit 31 releases the stay area and switches the detection mode in the stay area from the stay detection mode to the movement detection mode.

なお、ここでいう滞在領域の解除とは、検知領域内に設定された滞在領域を削除することを意味する。滞在領域を解除した場合、検知部31は、当該滞在領域を識別領域に戻してもよいし、当該滞在領域を識別領域に戻すことなく単に滞在領域の設定を解消してもよい。前者の場合、滞在領域が解除されると、検出領域における当該滞在領域と同じ位置に、当該滞在領域に代わる識別領域が出現する。後者の場合、滞在領域が解除されると、検出領域における当該滞在領域と同じ位置には、滞在領域と識別領域とのいずれも残らない。   In addition, the cancellation | release of a stay area here means deleting the stay area set in the detection area. When the stay area is canceled, the detection unit 31 may return the stay area to the identification area, or may simply cancel the setting of the stay area without returning the stay area to the identification area. In the former case, when the stay area is released, an identification area instead of the stay area appears at the same position as the stay area in the detection area. In the latter case, when the stay area is released, neither the stay area nor the identification area remains at the same position in the detection area as the stay area.

また、検知領域内の複数箇所に滞在領域が設定されている状態において、検知部31は、滞在検知モードから移動検知モードへの切り替えについては、滞在領域毎に行ってもよいし、全ての滞在領域について一斉に行ってもよい。   In addition, in a state where stay areas are set at a plurality of locations in the detection area, the detection unit 31 may perform switching from the stay detection mode to the movement detection mode for each stay area or all stays. It may be performed simultaneously for the region.

このように、人の動き量が解除閾値“U”以上であれば、滞在検知モードから移動検知モードに検知モードが切り替わることで、人が滞在領域内から滞在領域の外へ移動した場合に、検知部31は、当該人の存在を見失わずに検知することができる。   Thus, if the amount of movement of the person is equal to or greater than the release threshold “U”, the detection mode is switched from the stay detection mode to the movement detection mode, so that when the person moves from the stay area to the outside of the stay area, The detection unit 31 can detect the presence of the person without losing sight.

負荷6は、少なくとも「点灯」と、「消灯」との二つの動作モードを有する照明装置であると想定している。   The load 6 is assumed to be a lighting device having at least two operation modes of “lighting” and “lighting off”.

送信部4は、負荷6が消灯する状態である場合、検知部31が人の存在があると判定したら、検知装置100の外部にある制御対象となる負荷6に対して点灯する制御信号を送信する。送信部4は、負荷6が「点灯」の動作モードである場合、検知部31が人の存在がないと判断したら、負荷6に対して「消灯」の動作モードに切り替える制御信号を送信する。   If the detection unit 31 determines that there is a person when the load 6 is in a state where the load 6 is turned off, the transmission unit 4 transmits a control signal that is lit to the load 6 to be controlled outside the detection apparatus 100. To do. When the load 6 is in the “lighting” operation mode, the transmission unit 4 transmits a control signal for switching to the “light-off” operation mode to the load 6 when the detection unit 31 determines that there is no person.

なお、送信部4は、負荷6に対して直接的に制御信号を送信してもよく、中継器などを介して間接的に制御信号を送信してもよい。   In addition, the transmission part 4 may transmit a control signal directly with respect to the load 6, and may transmit a control signal indirectly via a repeater etc.

また、送信部4の通信方式については、例えば、Wi−Fi(Wireless Fidelity、登録商標)などを用いる無線通信方式、または信号線による有線通信方式などが考えられるが、特に限定しない。   The communication method of the transmission unit 4 may be, for example, a wireless communication method using Wi-Fi (Wireless Fidelity, registered trademark) or a wired communication method using a signal line, but is not particularly limited.

以下、検知装置100の動作の一例について、図4〜図6に示すフローチャートを用いて説明する。   Hereinafter, an example of the operation of the detection apparatus 100 will be described using the flowcharts shown in FIGS.

図4は、検知装置100が、識別領域22の位置変化量に基づいて検知モードを切り替えるフローチャートである。   FIG. 4 is a flowchart in which the detection apparatus 100 switches the detection mode based on the position change amount of the identification region 22.

人が検知装置100の撮像部2が撮像した解析画像の検知領域内に入る前に、検知部31は、移動検知モードで人の存在の有無を検知する(ステップS41)。そこで、検知部31は、解析画像の検知領域内に人の存在があることを検知したとき、導出部33により導出された識別領域22の位置変化量と、停滞閾値“I”と、を比較する(ステップS42)。   Before a person enters the detection area of the analysis image captured by the imaging unit 2 of the detection apparatus 100, the detection unit 31 detects the presence or absence of a person in the movement detection mode (step S41). Therefore, when detecting the presence of a person in the detection region of the analysis image, the detection unit 31 compares the position change amount of the identification region 22 derived by the deriving unit 33 with the stagnation threshold “I”. (Step S42).

検知部31は、識別領域22の位置変化量がI未満であれば(ステップS42のNO)、ステップS43に進み、検知モードを移動検知モードから滞在検知モードに切り替える。すなわち、位置変化量が停滞閾値“I”未満の識別領域22があれば、検知部31は、当該識別領域22を滞在領域とし、当該滞在領域についてのみ滞在検知モードで人の存在の有無を検知するように、検知モードを部分的に滞在検知モードとする。検知部31は、識別領域22の位置変化量が停滞閾値“I”以上であれば(ステップS42のYES)、ステップS41に戻って、引き続き移動検知モードで人の存在の有無を検知する。   If the position change amount of the identification area 22 is less than I (NO in step S42), the detection unit 31 proceeds to step S43, and switches the detection mode from the movement detection mode to the stay detection mode. That is, if there is an identification area 22 whose position change amount is less than the stagnation threshold “I”, the detection unit 31 uses the identification area 22 as a stay area and detects the presence or absence of a person in the stay detection mode only for the stay area. As described above, the detection mode is partially set as the stay detection mode. If the amount of change in the position of the identification region 22 is equal to or greater than the stagnation threshold “I” (YES in step S42), the detection unit 31 returns to step S41 and continuously detects the presence or absence of a person in the movement detection mode.

ステップS43において、検知部31は、滞在検知モードで人の存在の有無を検知する。そこで、検知部31は、導出部33により導出された人の動き量と、解除閾値“U”と、を比較する(ステップS44)。   In step S43, the detection unit 31 detects the presence or absence of a person in the stay detection mode. Therefore, the detection unit 31 compares the amount of human motion derived by the deriving unit 33 with the release threshold “U” (step S44).

人の動き量が解除閾値“U”未満であれば(ステップS44のYES)、検知部31は、引続き滞在検知モードで人の存在の有無を検知する。そうでなければ、すなわち、人の動き量が解除閾値“U”以上であれば(ステップS44のNO)、検知部31は、ステップS45にて、検知モードを滞在検知モードから移動検知モードに切り替え、ステップS41に戻る。このとき、検知領域のうち滞在領域以外の領域については、検知部31は、元々、移動検知モードで人の存在の有無を検知しているので、検知モードが滞在検知モードから移動検知モードに切り替わるのは、滞在領域内についてのみである。言い換えれば、検知部31は、ステップS43において滞在領域内の検知モードを滞在検知モードとした後、ステップS45において滞在領域を解除して、滞在領域内の検知モードを移動検知モードに切り替える。   If the movement amount of the person is less than the release threshold “U” (YES in step S44), the detection unit 31 continues to detect the presence or absence of the person in the stay detection mode. Otherwise, that is, if the amount of human movement is equal to or greater than the release threshold “U” (NO in step S44), the detection unit 31 switches the detection mode from the stay detection mode to the movement detection mode in step S45. Return to step S41. At this time, for the areas other than the stay area in the detection area, the detection unit 31 originally detects the presence or absence of a person in the movement detection mode, so the detection mode switches from the stay detection mode to the movement detection mode. This is only within the area of stay. In other words, after setting the detection mode in the stay area to the stay detection mode in step S43, the detection unit 31 releases the stay area in step S45 and switches the detection mode in the stay area to the movement detection mode.

図5は、検知装置100が、移動検知モードで人の存在の有無を検知するフローチャートである。   FIG. 5 is a flowchart in which the detection device 100 detects the presence or absence of a person in the movement detection mode.

ステップS51において、検知部31は、撮像部2が撮像した解析画像に基づいて人の存在の有無を検知する。このとき、検知部31は、例えば、背景差分を用いたり、フレーム間差分を用いて解析画像の検知領域における人の動き量を導出したりすることで、人の存在の有無を検知する。そして、作成部32は、検知部31が解析画像の検知領域内に人の存在があることを検知したら(ステップS52のYES)、識別領域22を作成(ステップS53)する。   In step S51, the detection unit 31 detects the presence or absence of a person based on the analysis image captured by the imaging unit 2. At this time, for example, the detection unit 31 detects the presence or absence of a person by using a background difference or deriving the amount of movement of a person in the detection region of the analysis image using a difference between frames. Then, when the detection unit 31 detects that there is a person in the detection region of the analysis image (YES in step S52), the creation unit 32 creates the identification region 22 (step S53).

ステップS52において、検知部31は、人の存在がないことを検知したら(ステップS52のNO)、ステップS51に戻って、引き続いて移動検知モードで人の存在の有無を検知する。   In step S52, when detecting that there is no person (NO in step S52), the detection unit 31 returns to step S51 and subsequently detects the presence or absence of a person in the movement detection mode.

ステップS54において、検知部31は、導出部33により導出された識別領域22の位置変化量と、停滞閾値“I”と、を比較する。   In step S <b> 54, the detection unit 31 compares the position change amount of the identification area 22 derived by the deriving unit 33 with the stagnation threshold “I”.

位置変化量が停滞閾値“I”以上(ステップS54のYES)であれば、検知部31は、ステップS51に戻って、引き続いて移動検知モードで人の存在の有無を検知する。位置変化量が停滞閾値“I”未満(ステップS54のNO)であれば、検知部31は、検知モードを移動検知モードから滞在検知モードに切り替え(ステップS55)、滞在検知モードで人の存在の有無を検知する。先述のように、ステップS54は、実質上にステップS42と同様である。   If the position change amount is equal to or greater than the stagnation threshold “I” (YES in step S54), the detection unit 31 returns to step S51 and subsequently detects the presence or absence of a person in the movement detection mode. If the amount of change in position is less than the stagnation threshold “I” (NO in step S54), the detection unit 31 switches the detection mode from the movement detection mode to the stay detection mode (step S55). Detect the presence or absence. As described above, step S54 is substantially the same as step S42.

図6は、検知装置100が、滞在検知モードで人の存在の有無を検知するフローチャートである。   FIG. 6 is a flowchart in which the detection apparatus 100 detects the presence or absence of a person in the stay detection mode.

ステップS61において、検知部31は、識別領域22における解析画像に基づいて人の存在の有無を検知する。このとき、検知部31は、導出部33により導出された停滞領域内における人の動き量と、検知閾値“T”と、を比較する(ステップS62)。   In step S <b> 61, the detection unit 31 detects the presence or absence of a person based on the analysis image in the identification area 22. At this time, the detection unit 31 compares the amount of human movement in the stagnation area derived by the deriving unit 33 with the detection threshold “T” (step S62).

検知部31は、人の動き量が検知閾値“T”未満(ステップS62のNO)であれば、人の存在がないと判定する(ステップS64)。検知部31は、人の動き量が検知閾値“T”以上(ステップS62のYES)であれば、人の動き量と、解除閾値“U”と、を比較する(ステップS63)。   If the amount of movement of the person is less than the detection threshold “T” (NO in step S62), the detection unit 31 determines that there is no person (step S64). If the human motion amount is equal to or greater than the detection threshold “T” (YES in step S62), the detection unit 31 compares the human motion amount with the release threshold “U” (step S63).

ステップS63において、人の動き量が解除閾値“U”未満(ステップS63のYES)であれば、検知部31は、人の存在があると判定し(ステップS65)、引き続き滞在検知モードで人の存在の有無を検知する。人の動き量が解除閾値“U”以上(ステップS63のNO)であれば、検知部31は、滞在領域内の検知モードを滞在検知モードから移動検知モードに切り替え、移動検知モードで人の存在の有無を検知する(ステップS66)。   In step S63, if the amount of movement of the person is less than the release threshold “U” (YES in step S63), the detection unit 31 determines that there is a person (step S65) and continues to detect the person in the stay detection mode. Detect presence or absence. If the movement amount of the person is equal to or greater than the release threshold “U” (NO in step S63), the detection unit 31 switches the detection mode in the stay area from the stay detection mode to the movement detection mode, and the presence of the person in the movement detection mode. Is detected (step S66).

検知部31は、滞在検知モードで滞在領域内において人の存在の有無を検知する際に、移動検知モードで滞在領域外でかつ解析画像の検知領域21内において他の人の存在の有無を検知する。そのため、滞在領域内の人以外の人が解析画像の検知領域21内に進入する場合、検知部31は、移動検知モードで当該人の存在を検知することができる。   When detecting the presence / absence of a person in the stay area in the stay detection mode, the detection unit 31 detects the presence / absence of another person outside the stay area and in the detection area 21 of the analysis image in the movement detection mode. To do. Therefore, when a person other than the person in the stay area enters the detection area 21 of the analysis image, the detection unit 31 can detect the presence of the person in the movement detection mode.

また、解析画像の検知領域21が、撮像部2が撮像した画像の一部の領域である場合、検知部31は、検知領域21外であっても解析画像内に含まれる人の存在の有無を検知する。検知部31が検知領域21外で人の存在ありと検知した場合、作成部32は、当該人を囲む識別領域22を作成する。これにより、人が検知領域21外から検知領域21内に進入する場合、識別領域22は、当該人を追跡するようにして解析画像における検知領域21外から検知領域21に進入することになる。したがって、検知部31は、移動検知モードにおいて、検知領域21内における識別領域22の存在の有無に基づいて、検知領域21内における人の存在の有無を検知する構成であってもよい。これにより、検知部31は、検知領域21内の人と検知領域21外の人とを区別して検知することができる。なお、検知部31は、識別領域22が一部でも検知領域21に重複する場合には、識別領域22が検知領域21内に存在すると判定することが好ましい。   In addition, when the detection area 21 of the analysis image is a partial area of the image captured by the imaging unit 2, the detection unit 31 includes the presence or absence of a person included in the analysis image even outside the detection area 21. Is detected. When the detection unit 31 detects the presence of a person outside the detection region 21, the creation unit 32 creates an identification region 22 that surrounds the person. Thereby, when a person enters the detection area 21 from outside the detection area 21, the identification area 22 enters the detection area 21 from outside the detection area 21 in the analysis image so as to track the person. Therefore, the detection unit 31 may be configured to detect the presence or absence of a person in the detection region 21 based on the presence or absence of the identification region 22 in the detection region 21 in the movement detection mode. Thereby, the detection part 31 can distinguish and detect the person in the detection area 21 and the person outside the detection area 21. Note that the detection unit 31 preferably determines that the identification area 22 exists in the detection area 21 when the identification area 22 partially overlaps the detection area 21.

検知システム120は、撮像部2と、検知部31と、作成部32と、導出部33と、制御対象となる負荷6と、を備える。検知部31は、撮像部2が撮像した解析画像の検知領域内の人の存在の有無を検知する。作成部32は、検知部31が解析画像の検知領域21内に人の存在があることを検知したとき、検知した人を囲む識別領域22を解析画像に作成する。導出部33は、検知領域21内での停滞した識別領域22からなる滞在領域内での人の動き量および検知領域21内での識別領域22の位置変化量を導出する。検知システム120は、検知部31による人の存在の有無の検知結果に基づいて制御信号を制御対象に送信する送信部4、を更に備える。検知部31は、解析画像の検知領域21内における人の存在の有無を検知する移動検知モードと、滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有する。移動検知モードにおいて、識別領域22の位置変化量が停滞閾値“I”未満になると、検知部31は、検知領域21内での当該識別領域22の位置を固定し、当該識別領域22を滞在領域として、当該滞在領域について滞在検知モードで人の存在の有無を検知する。   The detection system 120 includes an imaging unit 2, a detection unit 31, a creation unit 32, a derivation unit 33, and a load 6 to be controlled. The detection unit 31 detects the presence or absence of a person in the detection area of the analysis image captured by the imaging unit 2. When the detection unit 31 detects that a person is present in the detection area 21 of the analysis image, the generation unit 32 generates an identification area 22 surrounding the detected person in the analysis image. The deriving unit 33 derives the amount of movement of the person in the stay area composed of the stagnant identification area 22 in the detection area 21 and the position change amount of the identification area 22 in the detection area 21. The detection system 120 further includes a transmission unit 4 that transmits a control signal to a control target based on the detection result of the presence or absence of a person by the detection unit 31. The detection unit 31 includes a movement detection mode that detects the presence or absence of a person in the detection area 21 of the analysis image, a stay detection mode that detects the presence or absence of a person based on the amount of movement of the person in the stay area, Have In the movement detection mode, when the position change amount of the identification area 22 becomes less than the stagnation threshold “I”, the detection unit 31 fixes the position of the identification area 22 in the detection area 21 and makes the identification area 22 a stay area. The presence / absence of a person is detected in the stay detection mode for the stay area.

上記の構成により、検知装置100および検知システム120は、特許文献2に記載のものと比較すると、以下の効果を奏することができる。   With the above configuration, the detection device 100 and the detection system 120 can achieve the following effects as compared with those described in Patent Document 2.

特許文献2に記載の画像処理装置は、第1の輪郭抽出手段と、第2の輪郭抽出手段と、第3の輪郭抽出手段と、を有する。第1の輪郭抽出手段は、検出対象の移動量や動きが大きい場合に検出対象を検出する。第2の輪郭抽出手段は、検出対象の移動量や動きが比較的に小さい場合に検出対象を検出する。第2の輪郭抽出手段は、検出対象が静止している場合に検出対象を検出する。しかし、特許文献2に記載の画像処理装置は、常に第1の輪郭抽出手段〜第3の輪郭抽出手段を繰り返して検出対象の存在の有無を検知するものである。例えば、検出対象が大きな動きをしていても、特許文献2に記載の画像処理装置は、常に第1の輪郭抽出手段で検出対象を検知するのではない。つまり、検出対象が大きな動きをしていても、特許文献2に記載の画像処理装置は、先ず検出対象が静止しているか否かを判断し、ついでに微少な動きをしているか否かを判断した後、大きな動きをしているか否かを判断するため、検知処理にかかる負荷が大きい。   The image processing apparatus described in Patent Document 2 includes first contour extraction means, second contour extraction means, and third contour extraction means. The first contour extraction means detects the detection target when the amount of movement or movement of the detection target is large. The second contour extraction unit detects the detection target when the amount of movement or movement of the detection target is relatively small. The second contour extracting means detects the detection target when the detection target is stationary. However, the image processing apparatus described in Patent Document 2 always detects the presence / absence of a detection target by repeating the first to third contour extracting means. For example, even if the detection target moves greatly, the image processing apparatus described in Patent Document 2 does not always detect the detection target with the first contour extraction unit. That is, even if the detection target is moving greatly, the image processing apparatus described in Patent Document 2 first determines whether or not the detection target is stationary, and then determines whether or not the detection target is moving slightly. After that, the load on the detection process is large in order to determine whether or not there is a large movement.

これに対して、検知装置100および検知システム120は、検知部31が、移動検知モードにおいて、識別領域22の位置変化量が停滞閾値“I”未満であれば、滞在検知モードに切り替えて人の存在の有無を検知する。すなわち、人の移動量が比較的に小さい、または滞在している場合、検知装置100および検知システム120は、滞在検知モードに切り替えて人の存在の有無を検知する。それ故、特許文献2に記載の画像処理装置により、処理する量が小さいため、検知処理にかかる負荷が小さい。   In contrast, in the detection device 100 and the detection system 120, if the position change amount of the identification region 22 is less than the stagnation threshold “I” in the movement detection mode, the detection unit 31 switches to the stay detection mode to Detect presence or absence. That is, when the amount of movement of the person is relatively small or staying, the detection device 100 and the detection system 120 switch to the stay detection mode and detect the presence or absence of the person. Therefore, since the amount of processing by the image processing apparatus described in Patent Document 2 is small, the load on the detection process is small.

よって、検知装置100および検知システム120は、検知処理にかかる負荷が小さく、人の行動に応じて人の存在の有無を精度よく検知することができる。   Therefore, the detection apparatus 100 and the detection system 120 have a small load on the detection process, and can accurately detect the presence or absence of a person according to a human action.

また、検知装置100および検知システム120の検知部31は、滞在検知モードにおいて移動量が比較的に小さい、または滞在している人を検知する際、識別領域22における解析画像に基づいて人の存在の有無を検知する。したがって、検知装置100および検知システム120の検知部31は、識別領域22の領域外に外乱があっても、その影響を受けることなく移動量が比較的に小さい、または滞在している人の存在の有無を検知することができる。例えば鳥や猫などの動物が検知範囲内に入る場合、またはスイッチや、鏡などによる反射光が発生する場合、検知装置100および検知システム120の検知部31は、その影響を受けることなく人の存在の有無を検知することができる。   In addition, when the detection unit 31 of the detection device 100 and the detection system 120 detects a person whose movement amount is relatively small or stays in the stay detection mode, the presence of a person based on the analysis image in the identification region 22 is detected. The presence or absence of is detected. Therefore, even if the detection unit 31 of the detection device 100 and the detection system 120 has a disturbance outside the area of the identification area 22, the amount of movement is relatively small without being affected, or there is a person who is staying. The presence or absence of can be detected. For example, when an animal such as a bird or a cat enters the detection range, or when reflected light from a switch or a mirror is generated, the detection unit 100 of the detection device 100 and the detection system 120 is not affected by the human The presence or absence can be detected.

また、導出部33は、フレーム間の滞在領域における画素の輝度の変化量が導出閾値“K”以上の画素の数を人の動き量として導出する。そのため、滞在領域における外乱により、輝度の変化量が導出閾値“K”未満の画素が発生しても、検知部31は、その影響を受けることなく人の存在の有無を検知することができる。   Further, the deriving unit 33 derives the number of pixels in which the amount of change in pixel luminance in the stay region between frames is equal to or greater than the deriving threshold “K” as the amount of human movement. Therefore, even if a pixel whose luminance change amount is less than the derived threshold “K” occurs due to disturbance in the stay region, the detection unit 31 can detect the presence or absence of a person without being affected by the pixel.

以上により、検知装置100および検知システム120は、人が検知範囲において移動量が比較的に小さい、または滞在している場合でも、人の存在の有無を精度高く、効率よく検知することができる。   As described above, the detection device 100 and the detection system 120 can detect the presence or absence of a person with high accuracy and efficiency even when the movement amount of the person is relatively small or stays within the detection range.

なお、説明の便宜上、検知部31、作成部32、導出部33が制御部3に設けられ、送信部4、記憶部5、が制御部3に外付けられるように説明しているが、設計事項なため、それに限定しない。例えば、送信部4、記憶部5を制御部3に設けてもよい。なお、送信部4は適宜省略可能であって、送信部4が省略された場合、検知装置100は、検知部31の人の存在の有無の検知結果に基づいて、直接的に負荷6を制御するように構成される。   For convenience of explanation, the detection unit 31, the creation unit 32, and the derivation unit 33 are provided in the control unit 3, and the transmission unit 4 and the storage unit 5 are externally attached to the control unit 3. Because it is a matter, it is not limited to that. For example, the transmission unit 4 and the storage unit 5 may be provided in the control unit 3. The transmission unit 4 can be omitted as appropriate. When the transmission unit 4 is omitted, the detection apparatus 100 directly controls the load 6 based on the detection result of the presence or absence of a person in the detection unit 31. Configured to do.

また、負荷6として、照明装置に限定するものではなく、例えば空調機器、調理機器等のように、少なくとも2つの動作モードを有する電気機器であればよい。   Further, the load 6 is not limited to the lighting device, and may be an electric device having at least two operation modes such as an air conditioner and a cooking device.

また、撮像部2のフレーム間隔、すなわち、図2Aと図2Bとの間の期間および図3Aと図3Bとの間の期間は、例えば100ms〜数百msであるが、それに限定しない。   Further, the frame interval of the imaging unit 2, that is, the period between FIGS. 2A and 2B and the period between FIGS. 3A and 3B are, for example, 100 ms to several hundred ms, but are not limited thereto.

また、導出部33は、検知領域21内での識別領域22の位置変化量を導出する際に、必ずしも識別領域22の中心を基準点とする限りではない。つまり、導出部33は、例えば、移動する前後における識別領域22の代表点間の距離を算出し、この距離を識別領域22の位置変化量として導出する構成であってもよい。ここでいう代表点は、例えば識別領域22の重心、頂点などである。   The deriving unit 33 does not necessarily use the center of the identification area 22 as a reference point when deriving the position change amount of the identification area 22 in the detection area 21. That is, for example, the derivation unit 33 may be configured to calculate the distance between the representative points of the identification area 22 before and after moving and derive this distance as the position change amount of the identification area 22. The representative points here are, for example, the center of gravity and the apex of the identification region 22.

また、送信部4は、検知部31が滞在検知モードで人の存在があると判定するときと、移動検知モードで人の存在があると判定するときとで、それぞれ異なる制御信号を負荷6に送信してもよい。つまり、検知部31が検知領域21内に人の存在があると検知した場合、検知部31の検知モードが滞在検知モードか移動検知モードかで、最終的な判断結果(制御信号)が異なってもよい。具体的には、検知装置100は、検知部31が移動検知モードで人の存在があると検知したときは「移動状態」と判断し、検知部31が滞在検知モードで人の存在があると検知したときは「滞在状態」と判断する。そして、検知装置100は、検知領域21内の人が移動している(移動状態にある)のか、滞在している(滞在状態にある)のか、を区別可能な形で判定結果を出力する。そうすることで、人の移動、滞在に応じて負荷6を制御することができる。   The transmission unit 4 sends different control signals to the load 6 when the detection unit 31 determines that there is a person in the stay detection mode and when it is determined that there is a person in the movement detection mode. You may send it. That is, when the detection unit 31 detects that there is a person in the detection region 21, the final determination result (control signal) differs depending on whether the detection mode of the detection unit 31 is the stay detection mode or the movement detection mode. Also good. Specifically, when the detection unit 31 detects that there is a person in the movement detection mode, the detection apparatus 100 determines “moving state”, and when the detection unit 31 has a person in the stay detection mode. When detected, it is determined as “stay state”. And the detection apparatus 100 outputs a determination result in the form which can distinguish whether the person in the detection area | region 21 is moving (it is in a moving state), or is staying (it is in a staying state). By doing so, the load 6 can be controlled according to the movement and stay of a person.

なお、「移動状態」と「滞在状態」との両方の判断結果が重複して得られた場合、検知装置100は、例えば、「滞在状態」の判断結果を優先的に採用する。検知部31が移動検知モードと滞在検知モードとのいずれでも人の存在がないと検知したときには、検知装置100は、「不在状態」と判断する。   In addition, when the determination results of both “movement state” and “stay state” are obtained in duplicate, the detection apparatus 100 preferentially adopts the determination result of “stay state”, for example. When the detection unit 31 detects that there is no person in either the movement detection mode or the stay detection mode, the detection device 100 determines that the “absence state”.

ところで、解析画像の検知領域内に、制御対象の動作モードの切り替えや、外乱により急激な光変化が発生する場合には、所定期間T1(第1の所定期間)における輝度変化量が第1の閾値S1と比較されてもよい。所定期間T1における輝度変化量が第1の閾値S1以上である領域があれば、導出部33は、この領域(輝度変化量が第1の閾値S1以上である領域)を輝度変化領域として輝度変化領域の大きさを導出する。そして、検知部31は、輝度変化領域の大きさが第2の閾値S2以上であれば、光変化有りと判定する。そのため、制御部3は、解析画像の検知領域内の急激な光変化の発生を検知することができる。なお、ここでいう急激な光変化は、解析画像の白とびに至らない程度の輝度変化や、明るい状態(高輝度)から暗い状態(低輝度)へと変化する場合の光変化も含んでいる。   By the way, when an abrupt light change occurs due to switching of the operation mode to be controlled or disturbance in the detection region of the analysis image, the luminance change amount in the predetermined period T1 (first predetermined period) is the first. It may be compared with a threshold value S1. If there is a region where the amount of change in luminance during the predetermined period T1 is equal to or greater than the first threshold value S1, the deriving unit 33 uses this region (region where the amount of change in luminance is equal to or greater than the first threshold value S1) as the luminance change region. Deriving the size of the region. Then, when the size of the luminance change region is equal to or greater than the second threshold S2, the detection unit 31 determines that there is a light change. Therefore, the control unit 3 can detect the occurrence of a rapid light change in the detection region of the analysis image. Note that the rapid light change mentioned here includes a change in brightness that does not lead to overexposure of the analysis image, and a change in light when changing from a bright state (high luminance) to a dark state (low luminance). .

ここで、検知部31は、検知領域内に識別領域があり且つ移動検知モードで動作中に光変化有りと判定した場合、少なくとも所定期間T2(第2の所定期間)においては検知モードを移動検知モードから滞在検知モードに切り替えてもよい。つまり、検知部31は、移動検知モードで動作中に光変化有りと判定して、検知モードが移動検知モードから滞在検知モードに切り替わる場合においては、識別領域の位置変化量にかかわらず移動検知モードから滞在検知モードに切り替わる。検知部31は、検知領域内に識別領域があり且つ移動検知モードで動作中に光変化有りと判定した場合、少なくとも所定期間T2においては、識別領域の位置変化量にかかわらず識別領域を滞在領域する。そして、検知部31は、当該滞在領域について滞在検知モードで人の存在の有無を検知する。これにより、検知部31が移動検知モードで動作中に光変化有りと判定すると、検知部31の検知モードは移動検知モードから滞在検知モードに切り替わることになる。   Here, when the detection unit 31 determines that there is an identification region in the detection region and that there is a light change during operation in the movement detection mode, the detection unit 31 detects the movement of the detection mode at least for a predetermined period T2 (second predetermined period). The mode may be switched to the stay detection mode. That is, when the detection unit 31 determines that there is a light change during operation in the movement detection mode and the detection mode is switched from the movement detection mode to the stay detection mode, the movement detection mode is performed regardless of the position change amount of the identification region. Switches to the stay detection mode. When it is determined that there is an identification area in the detection area and there is a light change during operation in the movement detection mode, the detection unit 31 determines that the identification area is a stay area regardless of the position change amount of the identification area at least during the predetermined period T2. To do. And the detection part 31 detects the presence or absence of a person in the stay detection mode about the said stay area. Accordingly, when the detection unit 31 determines that there is a light change during operation in the movement detection mode, the detection mode of the detection unit 31 is switched from the movement detection mode to the stay detection mode.

(実施形態2)
以下、本発明の実施形態2に係る検知装置200および検知システム220について図7〜図9を用いて説明する。検知装置200および検知システム220は、主に検知装置100および検知システム120とは、制御部3が更に解析画像に画像処理を行う画像処理部34を有する点で異なる。また、検知装置200および検知システム220は、滞在検知モードにおいて検知部31が所定期間Qにわたって継続的に人の存在がないと検知したときに人の存在がないと判定する点でも、検知装置100および検知システム120とは異なる。なお、実施形態1と同様の構成については、同符号を付して説明を適宜省略する。
(Embodiment 2)
Hereinafter, the detection device 200 and the detection system 220 according to the second embodiment of the present invention will be described with reference to FIGS. The detection device 200 and the detection system 220 are mainly different from the detection device 100 and the detection system 120 in that the control unit 3 further includes an image processing unit 34 that performs image processing on the analysis image. In addition, the detection device 100 and the detection system 220 also determine that there is no person when the detection unit 31 detects that there is no person continuously for a predetermined period Q in the stay detection mode. And the detection system 120 is different. In addition, about the structure similar to Embodiment 1, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

図7は、実施形態2に係る検知装置200および検知システム220のブロック図である。図7に示すように、検知装置200の制御部3は、更に画像処理部34を有する。また、記憶部5は、更に期間閾値“Q”を記憶している。   FIG. 7 is a block diagram of the detection device 200 and the detection system 220 according to the second embodiment. As shown in FIG. 7, the control unit 3 of the detection apparatus 200 further includes an image processing unit 34. The storage unit 5 further stores a period threshold value “Q”.

画像処理部34は、撮像部2で撮像した解析画像にソーベルフィルタ画像処理を行う。   The image processing unit 34 performs Sobel filter image processing on the analysis image captured by the imaging unit 2.

画像処理部34は、解析画像に対して、ソーベルフィルタ画像処理を行って、その画像処理後の出力画像を検知部31、作成部32、導出部33に出力する。   The image processing unit 34 performs Sobel filter image processing on the analysis image, and outputs the output image after the image processing to the detection unit 31, the creation unit 32, and the derivation unit 33.

図8は、撮像部2から撮像した解析画像と、解析画像に対してソーベルフィルタ画像処理を適用した後の出力画像の一例を示す概念図である。   FIG. 8 is a conceptual diagram illustrating an example of an analysis image captured from the imaging unit 2 and an output image after the Sobel filter image processing is applied to the analysis image.

図8に示すように、解析画像にソーベルフィルタ画像処理を適用することで、検知対象となる人の輪郭(エッジ)をより精度高く検知することができる。   As shown in FIG. 8, by applying the Sobel filter image processing to the analysis image, it is possible to detect the contour (edge) of the person to be detected with higher accuracy.

図9は、検知装置200が、滞在検知モードで人の存在の有無を検知するフローチャートである。   FIG. 9 is a flowchart in which the detection apparatus 200 detects the presence or absence of a person in the stay detection mode.

図9に示すように、検知部31は、ステップS91において、画像処理部34による解析画像にソーベルフィルタ画像処理を適用した出力画像を取得し、その滞在領域内における人の動き量で人の存在の有無を検知する。   As shown in FIG. 9, in step S91, the detection unit 31 acquires an output image obtained by applying the Sobel filter image processing to the analysis image by the image processing unit 34, and the human motion amount in the stay region is obtained. Detect presence or absence.

ステップS92において、検知部31は、導出部33により導出された滞在領域における人の動き量と、検知閾値“T”と、を比較する。人の動き量が検知閾値“T”以上(ステップS92のYES)であれば、検知部31は、人の動き量と、解除閾値“U”と、を比較する(ステップS95)。人の動き量が検知閾値“T”未満(ステップS92のNO)であれば、検知部31は、タイムカウントを開始し、所定期間Qが経過したかどうか、つまり経過時間が期間閾値“Q”に到達したかどうかを判定する(ステップS93)。   In step S <b> 92, the detection unit 31 compares the amount of human motion in the stay area derived by the deriving unit 33 with the detection threshold “T”. If the amount of movement of the person is equal to or greater than the detection threshold “T” (YES in step S92), the detection unit 31 compares the amount of movement of the person with the release threshold “U” (step S95). If the amount of movement of the person is less than the detection threshold “T” (NO in step S92), the detection unit 31 starts time counting and whether or not the predetermined period Q has elapsed, that is, the elapsed time is the period threshold “Q”. Is determined (step S93).

検知部31は、ステップS93において、所定期間Qにおいて継続的に人の動き量が検知閾値“T”未満である場合(ステップS93のYES)、人の存在がないと判定する(ステップS94)。そうでなければ、検知部31は、タイムカウントをリセットして引き続き滞在検知モードで人の存在の有無を検知する(ステップS93のNO)。   In step S93, when the human motion amount is continuously less than the detection threshold “T” in step S93 (YES in step S93), the detection unit 31 determines that there is no person (step S94). Otherwise, the detection unit 31 resets the time count and continuously detects the presence or absence of a person in the stay detection mode (NO in step S93).

ステップS95において、人の動き量が解除閾値“U”未満(ステップS95のYES)であれば、検知部31は、人の存在があると判定し(ステップS96)、引き続き滞在検知モードで当該人を追跡する。人の動き量がU以上(ステップS95のNO)であれば、検知部31は、検知モードを滞在検知モードから移動検知モードに切り替える(ステップS97)。   In step S95, if the amount of movement of the person is less than the release threshold “U” (YES in step S95), the detection unit 31 determines that there is a person (step S96) and continues to the person in the stay detection mode. To track. If the movement amount of the person is U or more (NO in step S95), the detection unit 31 switches the detection mode from the stay detection mode to the movement detection mode (step S97).

すなわち、検知装置200および検知システム220は、検知部31が、少なくとも滞在検知モードにおいて、解析画像にフィルタ画像処理を適用した出力画像を用いて人の存在の有無を検知する。この構成において、フィルタ画像処理は、微分フィルタ画像処理を用いることが好ましい。検知装置200および検知システム220は、画像処理部34により解析画像にソーベルフィルタ画像処理を適用することで、人の存在の有無をより精度高く検知することができる。   That is, in the detection device 200 and the detection system 220, the detection unit 31 detects the presence or absence of a person using an output image obtained by applying filter image processing to an analysis image at least in the stay detection mode. In this configuration, it is preferable to use differential filter image processing for the filter image processing. The detection device 200 and the detection system 220 can detect the presence or absence of a person with higher accuracy by applying the Sobel filter image processing to the analysis image by the image processing unit 34.

なお、検知部31は、滞在検知モードにおいて人の存在の有無を検知する際にフィルタ画像処理を適用した出力画像に基づいて人の存在の有無を検知すると説明しているが、その限りではない。検知部31は、移動検知モードにおいて人の存在の有無を検知する際にもフィルタ画像処理を適用した出力画像を用いてもよい。   The detection unit 31 is described as detecting the presence / absence of a person based on an output image to which filter image processing is applied when detecting the presence / absence of a person in the stay detection mode. However, the present invention is not limited thereto. . The detection unit 31 may also use an output image to which filter image processing is applied when detecting the presence or absence of a person in the movement detection mode.

また、フィルタ画像処理は、ソーベルフィルタ画像処理に限定されない。フィルタ画像処理は、例えば、1次微分フィルタ(例えば、エッジ検出、線検出など)、2次微分フィルタ(例えば、ラプラシアンフィルタなど)、画像強調(例えば、低周波強調、高周波強調など)などを用いてもよい。   Further, the filter image processing is not limited to Sobel filter image processing. The filter image processing uses, for example, a primary differential filter (for example, edge detection, line detection, etc.), a secondary differential filter (for example, Laplacian filter, etc.), image enhancement (for example, low frequency enhancement, high frequency enhancement, etc.), etc. May be.

また、画像処理部34は、制御部3に設けるものに限定しない。例えば制御部3とは別に設けてもよい。   Further, the image processing unit 34 is not limited to that provided in the control unit 3. For example, it may be provided separately from the control unit 3.

また、検知部31は、滞在検知モードにおいて、滞在領域における人の動き量が検知閾値“T”未満の状態が、所定期間Qにわたって継続したときに人の存在がないと判定することが好ましい。つまり、滞在検知モードにおいて検知部31が所定期間Qにわたって継続的に人の存在がないと検知したときに人の存在がないと判定することで、滞在検知モードにおける人の存在の有無をより精度高く検知することができる。   In the stay detection mode, the detection unit 31 preferably determines that there is no person when a state where the amount of movement of the person in the stay area is less than the detection threshold “T” continues for a predetermined period Q. That is, in the stay detection mode, the presence or absence of a person in the stay detection mode is more accurately determined by determining that there is no person when the detection unit 31 detects that there is no person continuously for a predetermined period Q. Highly detectable.

ここで、検知部31は、滞在検知モードにおいて滞在領域内に人の存在がないと判定した場合に、滞在検知モードから移動検知モードに切り替えることが好ましい。この場合、滞在検知モードにおいて、滞在領域における人の動き量が検知閾値“T”未満の状態が、所定期間Qにわたって継続すると、検知部31は、人の存在がないと判定し、且つ、滞在検知モードから移動検知モードへの切り替えを行う。滞在検知モードから移動検知モードへの切り替えは、実施形態1において説明した通りであって、検知部31は、滞在領域を解除し、滞在領域内の検知モードを滞在検知モードから移動検知モードへ切り替える。   Here, when it is determined that there is no person in the stay area in the stay detection mode, the detection unit 31 preferably switches from the stay detection mode to the movement detection mode. In this case, in the stay detection mode, when a state where the amount of movement of the person in the stay area is less than the detection threshold “T” continues for a predetermined period Q, the detection unit 31 determines that there is no person and stays Switch from detection mode to movement detection mode. The switching from the stay detection mode to the movement detection mode is as described in the first embodiment, and the detection unit 31 releases the stay area and switches the detection mode in the stay area from the stay detection mode to the movement detection mode. .

このように、人の動き量が検知閾値“T”未満の状態が所定期間Qにわたって継続すれば、滞在検知モードから移動検知モードに切り替わることで、滞在領域内の人の動き量が解除閾値“U”以上にならない場合でも、検知部31は、滞在検知モードを終了できる。要するに、滞在領域内における人の動き量が解除閾値“U”以上にならなくても、滞在領域内に人の存在が検知されないまま一定時間が経過すると、この滞在領域は解除されることになる。その結果、人の存在がないと判定された滞在領域は解除されて移動検知モードに切り替わるので、検知部31は、人がいなくなった滞在領域について、いつまでも滞在検知モードで人の存在の有無を検知することを回避できる。   Thus, if the state where the amount of human movement is less than the detection threshold “T” continues for a predetermined period Q, the movement amount of the person in the stay area is changed from the stay detection mode to the movement detection mode. Even if it is not equal to or greater than U ″, the detection unit 31 can end the stay detection mode. In short, even if the amount of movement of the person in the stay area does not exceed the release threshold “U”, the stay area is released when a certain period of time has passed without detecting the presence of a person in the stay area. . As a result, since the stay area determined to have no person is released and switched to the movement detection mode, the detection unit 31 detects the presence or absence of a person in the stay detection mode indefinitely for the stay area in which no person exists. Can be avoided.

なお、制御部3が解析画像に画像処理を行う画像処理部34を有する点と、滞在検知モードにおいて検知部31が所定期間Qにわたって継続的に人の存在がないと検知したときに人の存在がないと判定する点とは、共に採用するものに限らない。つまり、制御部3が解析画像に画像処理を行う画像処理部34を有する点と、滞在検知モードにおいて検知部31が所定期間Qにわたって継続的に人の存在がないと検知したときに人の存在がないと判定する点とは、一方のみ採用されてもよい。   It should be noted that the control unit 3 has an image processing unit 34 that performs image processing on the analysis image, and the presence of a person when the detection unit 31 detects that there is no person continuously over a predetermined period Q in the stay detection mode. The point of judging that there is no is not limited to the one that is adopted together. That is, the control unit 3 has an image processing unit 34 that performs image processing on the analysis image, and the presence of a person when the detection unit 31 detects that there is no person continuously over a predetermined period Q in the stay detection mode. Only one of the points determined to be absent may be adopted.

(実施形態3)
以下、本発明の実施形態3に係る検知装置300および検知システム320について説明する。検知装置300および検知システム320は、検知装置200および検知システム220とは、人の動き量の導出の仕方、で異なる。検知装置300および検知システム320は、導出部33が滞在検知モードにおいて滞在領域内における画素の輝度の変化量が導出閾値“K”以上の画素の数と、滞在領域内における全画素数と、の比を人の動き量として導出する。また、導出部33は、移動検知モードにおいて解析画像の検知領域21内における画素の輝度の変化量が導出閾値“K”以上の画素の数と、解析画像の検知領域21内における画素の数との割合を人の動き量として導出する。なお、実施形態2と同様の構成については、同符号を付して説明を適宜省略する。
(Embodiment 3)
Hereinafter, the detection apparatus 300 and the detection system 320 according to Embodiment 3 of the present invention will be described. The detection device 300 and the detection system 320 differ from the detection device 200 and the detection system 220 in the manner of deriving the amount of human movement. In the detection device 300 and the detection system 320, the number of pixels in which the luminance change amount of the pixel in the stay region is greater than or equal to the derivation threshold “K” in the stay detection mode and the total number of pixels in the stay region The ratio is derived as the amount of human movement. The deriving unit 33 also includes the number of pixels whose luminance change amount in the detection area 21 of the analysis image is greater than or equal to the derivation threshold “K” and the number of pixels in the detection area 21 of the analysis image in the movement detection mode. Is derived as the amount of human movement. In addition, about the structure similar to Embodiment 2, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

検知装置300および検知システム320の導出部33は、滞在検知モードにおいて、滞在領域内における画素の輝度の変化量が導出閾値“K”以上の画素の数と、滞在領域内における全画素数との比、を人の動き量として導出する。更に、移動検知モードにおいては、導出部33は、解析画像の検知領域21内における画素の輝度の変化量が導出閾値“K”以上の画素の数と、解析画像の検知領域21内における全画素数との比、を人の動き量として導出する。   In the stay detection mode, the deriving unit 33 of the detection device 300 and the detection system 320 calculates the number of pixels in which the luminance change amount of the pixel in the stay region is equal to or greater than the derivation threshold “K” and the total number of pixels in the stay region. The ratio is derived as the amount of human movement. Furthermore, in the movement detection mode, the deriving unit 33 determines the number of pixels whose luminance change amount in the analysis image detection area 21 is equal to or greater than the derivation threshold “K”, and all the pixels in the analysis image detection area 21. The ratio to the number is derived as the amount of human movement.

検知装置300および検知システム320の検知部31は、移動検知モードにおいて導出部33が導出した人の動き量と記憶部5に記憶されている移動検知の閾値Sとを比較することで、人の存在の有無を判断する。   The detection unit 31 of the detection device 300 and the detection system 320 compares the amount of human movement derived by the deriving unit 33 with the threshold value S of movement detection stored in the storage unit 5 in the movement detection mode. Determine if it exists.

検知装置300および検知システム320の検知部31は、滞在検知モードにおいて導出部33が導出した人の動き量と検知閾値“T”とを比較して、人の存在の有無を判断する。   The detection unit 31 of the detection device 300 and the detection system 320 compares the amount of movement of the person derived by the deriving unit 33 with the detection threshold “T” in the stay detection mode, and determines the presence or absence of the person.

なお、移動検知の閾値Sと、検知閾値“T”とが、関係を特に限定しない。例えば、滞在検知モードでの人の検知を厳しく設定する場合、検知閾値“T”を移動検知の閾値Sより小さい値に設定すればよい。   The relationship between the movement detection threshold value S and the detection threshold value “T” is not particularly limited. For example, when the detection of a person in the stay detection mode is strictly set, the detection threshold “T” may be set to a value smaller than the movement detection threshold S.

検知装置300および検知システム320の導出部33は、滞在検知モードにおいて、滞在領域内における画素の輝度の変化量が導出閾値“K”以上の画素の数と、滞在領域内における全画素数との比、に基づいて人の動き量を導出する。更に、導出部33は、移動検知モードにおいて、検知領域21内における画素の輝度の変化量が導出閾値“K”以上の画素の数と、検知領域21内における全画素数との比、に基づいて人の動き量を導出する。これにより、解析画像の検知領域21の拡大、縮小に伴い、識別領域(滞在領域)および検知領域21の画素の数が変化しても、検知部31は、同じ検知閾値“T”と、移動検知の閾値Sと、を用いて人の存在の有無を検知することができる。   In the stay detection mode, the deriving unit 33 of the detection device 300 and the detection system 320 calculates the number of pixels in which the luminance change amount of the pixel in the stay region is equal to or greater than the derivation threshold “K” and the total number of pixels in the stay region. The amount of human motion is derived based on the ratio. Further, in the movement detection mode, the deriving unit 33 is based on the ratio of the number of pixels in which the luminance change amount of the pixels in the detection area 21 is equal to or greater than the derivation threshold “K” and the total number of pixels in the detection area 21. To derive the amount of human movement. Thereby, even if the number of pixels in the identification area (stay area) and the detection area 21 changes as the detection area 21 of the analysis image is enlarged or reduced, the detection unit 31 moves with the same detection threshold “T”. The presence or absence of a person can be detected using the detection threshold S.

なお、導出部33は、上述した人の動き量の導出の仕方を、滞在検知モードにおいて適用していればよく、移動検知モードにおいて人の動き量を導出することは必須ではない。つまり、導出部33は、滞在領域内での人の動き量の導出において、上述した方法で人の動き量を導出すればよく、検知領域21内での人の動き量を導出することは必須でない。   The deriving unit 33 only needs to apply the method of deriving the amount of human motion described above in the stay detection mode, and it is not essential to derive the amount of human motion in the movement detection mode. That is, the deriving unit 33 may derive the amount of human movement in the stay area by deriving the amount of human movement by the method described above, and it is essential to derive the amount of human movement in the detection area 21. Not.

(実施形態4)
以下、本発明の実施形態4に係る検知装置400および検知システム420について説明する。検知装置400および検知システム420は、検知装置300および検知システム320とは、人の動き量の導出の仕方、で異なる。検知装置400および検知システム420は、導出部33が滞在検知モードにおいて滞在領域内における画素の輝度の変化量が導出閾値“K”以上の画素の塊の面積の大きさを人の動き量として導出する。また、導出部33は、移動検知モードにおいて解析画像の検知領域21内における画素の輝度の変化量が導出閾値“K”以上の画素の数と解析画像の検知領域21内における画素の塊の面積の大きさを人の動き量として導出する。なお、実施形態2と同様の構成については、同符号を付して説明を適宜省略する。
(Embodiment 4)
Hereinafter, the detection apparatus 400 and the detection system 420 according to Embodiment 4 of the present invention will be described. The detection device 400 and the detection system 420 differ from the detection device 300 and the detection system 320 in the manner of deriving the amount of human movement. In the detection device 400 and the detection system 420, the deriving unit 33 derives the size of the pixel block area in which the amount of change in the luminance of the pixel in the stay region is equal to or greater than the derivation threshold “K” as the amount of human movement in the stay detection mode. To do. Further, the deriving unit 33 determines the number of pixels whose luminance change amount in the analysis image detection area 21 is equal to or larger than the derivation threshold “K” in the movement detection mode and the area of the pixel block in the analysis image detection area 21. Is derived as the amount of human movement. In addition, about the structure similar to Embodiment 2, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

検知装置400および検知システム420の導出部33は、上下左右、または斜めに相隣する画素を一つの塊とする。つまり、導出部33は、解析画像において、上下左右、または斜めのいずれかの経路で連続する複数の画素を一つの塊とする。   The deriving unit 33 of the detection device 400 and the detection system 420 sets pixels adjacent to each other vertically, horizontally, or diagonally as one lump. That is, the deriving unit 33 sets a plurality of pixels that are continuous in one of the vertical, horizontal, and diagonal paths as one lump in the analysis image.

検知装置400および検知システム420の導出部33は、滞在検知モードにおいて、滞在領域内における画素の輝度の変化量が導出閾値“K”以上の画素の塊の面積の大きさを人の動き量として導出する。更に、移動検知モードにおいては、導出部33は、解析画像の検知領域21内における画素の輝度の変化量が導出閾値“K”以上の画素の塊の面積の大きさを人の動き量として導出する。   In the stay detection mode, the deriving unit 33 of the detection device 400 and the detection system 420 uses, as the amount of human movement, the size of an area of a pixel block whose luminance change amount in the stay region is equal to or greater than the derivation threshold “K”. To derive. Further, in the movement detection mode, the deriving unit 33 derives the size of the pixel block area in which the amount of change in pixel luminance in the detection region 21 of the analysis image is equal to or greater than the deriving threshold “K” as the amount of human motion. To do.

検知装置400および検知システム420の導出部33は、画素の輝度の変化量が導出閾値“K”以上の画素において、当該画素の数の代わりに、当該画素の塊の面積の大きさを基準として人の動き量を導出する。これにより、導出部33は、外乱により輝度が変化する画素が解析画像内に離散して存在するとき、その影響を受け難くすることができる。よって、検知装置400および検知システム420は、人の存在の有無をより精度高く検知することができる。   The deriving unit 33 of the detection device 400 and the detection system 420 uses the size of the block of pixels as a reference instead of the number of pixels for pixels whose luminance change amount is equal to or greater than the deriving threshold “K”. The amount of human movement is derived. Thereby, the deriving unit 33 can make it difficult to be influenced by pixels in which the luminance changes due to disturbance in a discrete manner. Therefore, the detection device 400 and the detection system 420 can detect the presence or absence of a person with higher accuracy.

なお、導出部33は、上述した人の動き量の導出の仕方を、滞在検知モードにおいて適用していればよく、移動検知モードにおいて人の動き量を導出することは必須ではない。つまり、導出部33は、滞在領域内での人の動き量の導出において、上述した方法で人の動き量を導出すればよく、検知領域21内での人の動き量を導出することは必須でない。   The deriving unit 33 only needs to apply the method of deriving the amount of human motion described above in the stay detection mode, and it is not essential to derive the amount of human motion in the movement detection mode. That is, the deriving unit 33 may derive the amount of human movement in the stay area by deriving the amount of human movement by the method described above, and it is essential to derive the amount of human movement in the detection area 21. Not.

(実施形態5)
以下、本発明の実施形態5に係る検知装置500および検知システム520について説明する。検知装置500および検知システム520は、検知装置200および検知システム220とは、人の動き量の導出の仕方、で異なる。検知装置500および検知システム520は、導出部33が滞在検知モードにおいて滞在領域内における画素の輝度の変化量の標準偏差を人の動き量として導出する。また、導出部33は、移動検知モードにおいて解析画像の検知領域21内における画素の輝度の変化量の標準偏差を人の動き量として導出する。なお、実施形態2と同様の構成については、同符号を付して説明を適宜省略する。
(Embodiment 5)
Hereinafter, the detection apparatus 500 and the detection system 520 according to Embodiment 5 of the present invention will be described. The detection device 500 and the detection system 520 are different from the detection device 200 and the detection system 220 in the way of deriving the amount of human movement. In the detection device 500 and the detection system 520, the deriving unit 33 derives the standard deviation of the amount of change in luminance of the pixel in the stay region as the amount of human movement in the stay detection mode. The deriving unit 33 derives the standard deviation of the amount of change in luminance of the pixels in the detection area 21 of the analysis image in the movement detection mode as the amount of human movement. In addition, about the structure similar to Embodiment 2, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

検知装置500および検知システム520の導出部33は、滞在検知モードにおいて、滞在領域内における画素の輝度の変化量の標準偏差を基準として人の動き量として導出する。更に、移動検知モードにおいては、導出部33は、解析画像の検知領域21内における画素の輝度の変化量の標準偏差を基準として人の動き量を導出する。これにより、検知部31は、画素の輝度の変化量のバラツキを小さくして、フレーム間差分で人の存在の有無を検知することができる。   In the stay detection mode, the deriving unit 33 of the detection device 500 and the detection system 520 derives the amount of movement of the person based on the standard deviation of the amount of change in pixel luminance within the stay region. Further, in the movement detection mode, the deriving unit 33 derives the amount of human motion based on the standard deviation of the amount of change in luminance of the pixels in the detection area 21 of the analysis image. Thereby, the detection part 31 can detect the presence or absence of a person by the difference between frames, reducing the variation in the variation | change_quantity of the brightness | luminance of a pixel.

よって、検知装置500および検知システム520は、人の存在の有無をより精度高く検知することができる。   Therefore, the detection device 500 and the detection system 520 can detect the presence or absence of a person with higher accuracy.

なお、画素の輝度の変化量のバラツキを小さくするために、本実施形態で説明した標準偏差以外に、例えば、当該標準偏差のある所定期間における変化量の傾き(分散)を人の動き量として導出してもよい。つまり、導出部33は、人の動き量を、滞在領域内における画素の輝度の変化量の標準偏差の変化量の傾きに基づいて導出してもよい。   In order to reduce the variation in the amount of change in luminance of the pixels, in addition to the standard deviation described in this embodiment, for example, the slope (variance) of the amount of change during a predetermined period with the standard deviation is used as the amount of human movement. It may be derived. That is, the deriving unit 33 may derive the amount of human movement based on the slope of the change amount of the standard deviation of the change amount of the luminance of the pixel in the stay region.

要するに、検知装置500および検知システム520は、導出部33が滞在検知モードにおいて、滞在領域内における画素の輝度の変化量の代表値(平均値や中央値)からのばらつきの大きさを、人の動き量として導出すればよい。また、導出部33は、移動検知モードにおいて、解析画像の検知領域21内における画素の輝度の変化量の代表値(平均値や中央値)からのばらつきの大きさを、人の動き量として導出すればよい。   In short, in the detection device 500 and the detection system 520, in the stay detection mode, the deriving unit 33 determines the magnitude of variation from the representative value (average value or median value) of the amount of change in the luminance of the pixels in the stay region. What is necessary is just to derive | lead-out as a motion amount. Further, in the movement detection mode, the deriving unit 33 derives the magnitude of the variation from the representative value (average value or median value) of the luminance change amount of the pixel in the detection area 21 of the analysis image as the amount of human motion. do it.

また、導出部33は、上記以外の方法で人の動き量を導出する構成であってもよい。例えば、導出部33は、ある画素について、直前の輝度(平均値)と現在の輝度とで重み付けを行って平均値(加重平均値)を求め、更に、加重平均値と直前の変化量とに基づいて累積変化量を求める。導出部33は、このようにして求まる輝度の累積変化量を、人の動き量として導出することができる。   Further, the deriving unit 33 may be configured to derive the amount of human movement by a method other than the above. For example, the deriving unit 33 obtains an average value (weighted average value) by weighting a certain pixel with the previous luminance (average value) and the current luminance, and further calculates the weighted average value and the previous change amount. Based on this, the cumulative change amount is obtained. The deriving unit 33 can derive the accumulated change amount of the luminance thus obtained as the amount of human movement.

なお、導出部33は、上述した人の動き量の導出の仕方を、滞在検知モードにおいて適用していればよく、移動検知モードにおいて人の動き量を導出することは必須ではない。つまり、導出部33は、滞在領域内での人の動き量の導出において、上述した方法で人の動き量を導出すればよく、検知領域21内での人の動き量を導出することは必須でない。   The deriving unit 33 only needs to apply the method of deriving the amount of human motion described above in the stay detection mode, and it is not essential to derive the amount of human motion in the movement detection mode. That is, the deriving unit 33 may derive the amount of human movement in the stay area by deriving the amount of human movement by the method described above, and it is essential to derive the amount of human movement in the detection area 21. Not.

(実施形態6)
以下、本発明の実施形態6に係る検知装置600および検知システム620について図10〜図15を用いて説明する。検知装置600および検知システム620は、主に検知装置100および検知システム120とは、解析画像のうちの検知領域21となる範囲を変更する変更部35を更に備える点、が異なる。なお、実施形態1と同様の構成については、同符号を付して説明を適宜省略する。
(Embodiment 6)
Hereinafter, a detection apparatus 600 and a detection system 620 according to Embodiment 6 of the present invention will be described with reference to FIGS. The detection device 600 and the detection system 620 are mainly different from the detection device 100 and the detection system 120 in that the detection device 600 and the detection system 120 further include a changing unit 35 that changes the range that becomes the detection region 21 in the analysis image. In addition, about the structure similar to Embodiment 1, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

変更部35は、検知部31の検知モードが移動検知モードから滞在検知モードに切り替わると、解析画像のうちの検知領域21となる範囲を変更する。変更部35は、解析画像のうちの検知領域21となる範囲を、通常エリアと、滞在時エリアと、の2種類で切り替えることにより、解析画像のうちの検知領域21となる範囲を変更する。つまり、変更部35は、検知部31が移動検知モードから滞在検知モードに切り替わると、解析画像のうちの検知領域となる範囲を通常エリアから滞在時エリアに変更する。よって、検知部31の検知モードが滞在検知モードであれば、解析画像のうちの検知領域21となる範囲は通常エリアになる。一方、検知部31の検知モードが移動検知モードであれば、解析画像のうちの検知領域21となる範囲は滞在時エリアになる。   When the detection mode of the detection unit 31 is switched from the movement detection mode to the stay detection mode, the change unit 35 changes the range to be the detection region 21 in the analysis image. The changing unit 35 changes the range to be the detection region 21 in the analysis image by switching the range to be the detection region 21 in the analysis image between two types of a normal area and a staying area. That is, when the detection unit 31 switches from the movement detection mode to the stay detection mode, the change unit 35 changes the range that becomes the detection region in the analysis image from the normal area to the stay time area. Therefore, if the detection mode of the detection unit 31 is the stay detection mode, the range that becomes the detection region 21 in the analysis image is a normal area. On the other hand, if the detection mode of the detection part 31 is a movement detection mode, the range used as the detection area 21 of an analysis image will be a staying area.

また、実施形態6では、実施形態2で説明したように、検知部31は、滞在検知モードにおいて、滞在領域における人の動き量が検知閾値“T”未満の状態が、所定期間Qにわたって継続したときに人の存在がないと判定する。更に、検知部31は、滞在検知モードにおいて滞在領域内に人の存在がないと判定した場合に、滞在検知モードから移動検知モードに切り替える。つまり、滞在検知モードにおいて、滞在領域における人の動き量が検知閾値“T”未満の状態が、所定期間Qにわたって継続すると、検知部31は、人の存在がないと判定し、且つ、滞在検知モードから移動検知モードへの切り替えを行う。   In the sixth embodiment, as described in the second embodiment, in the stay detection mode, the detection unit 31 continues the state where the amount of human movement in the stay area is less than the detection threshold “T” for a predetermined period Q. Sometimes it is determined that there is no person. Furthermore, the detection part 31 switches from stay detection mode to movement detection mode, when it determines with there being no person in a stay area in stay detection mode. That is, in the stay detection mode, when the state where the amount of movement of the person in the stay area is less than the detection threshold “T” continues for a predetermined period Q, the detection unit 31 determines that there is no person and the stay detection. Switch from mode to movement detection mode.

以下、検知装置600の動作の一例について、図11に示すフローチャートを用いて説明する。図11は、検知装置600が、識別領域22の位置変化量に基づいて検知モードを切り替える際の動作を示すフローチャートである。   Hereinafter, an example of the operation of the detection apparatus 600 will be described with reference to the flowchart shown in FIG. FIG. 11 is a flowchart illustrating an operation when the detection device 600 switches the detection mode based on the position change amount of the identification region 22.

ステップS111において、検知部31は移動検知モードで動作を開始する。このとき、検知部31は、解析画像のうちの検知領域21となる範囲として通常エリアを適用し(ステップS112)、移動検知モードで検知領域21内における人の存在の有無を検知する。まず、検知装置600は、検知領域21に人の存在がない状態、つまり「不在状態」と判断する(ステップS113)。   In step S111, the detection unit 31 starts operating in the movement detection mode. At this time, the detection unit 31 applies the normal area as a range to be the detection area 21 in the analysis image (step S112), and detects the presence or absence of a person in the detection area 21 in the movement detection mode. First, the detection device 600 determines that there is no person in the detection area 21, that is, the “absence state” (step S113).

その後、検知領域21内に人の存在がないこと、つまり検知領域21内に人の進入がないことを検知部31が検知している間は(ステップS114のNO)、検知装置600は、「不在状態」との判断結果を維持する。検知領域21内に人の存在があること、つまり検知領域21内に人が進入したことを検知部31が検知すると(ステップS114のYES)、検知装置600は、「移動状態」と判断する(ステップS115)。「移動状態」との判断がされると、検知部31は、導出部33により導出された識別領域22の位置変化量と、停滞閾値“I”と、を比較する(ステップS116)。   Thereafter, while the detection unit 31 detects that there is no person in the detection area 21, that is, no person has entered the detection area 21 (NO in step S114), the detection apparatus 600 “ The judgment result of “absence state” is maintained. When the detection unit 31 detects that there is a person in the detection area 21, that is, that a person has entered the detection area 21 (YES in step S114), the detection apparatus 600 determines that it is “moving state” ( Step S115). When the determination is made that “moving state”, the detection unit 31 compares the position change amount of the identification area 22 derived by the deriving unit 33 with the stagnation threshold “I” (step S116).

検知部31は、識別領域22の位置変化量がI未満であれば(ステップS116のYES)、ステップS117に進み、検知モードを移動検知モードから滞在検知モードに切り替える。検知部31は、識別領域22の位置変化量が停滞閾値“I”以上であれば(ステップS116のNO)、ステップS114に戻って、引き続き移動検知モードで人の存在の有無を検知する。   If the position change amount of the identification area 22 is less than I (YES in step S116), the detection unit 31 proceeds to step S117, and switches the detection mode from the movement detection mode to the stay detection mode. If the amount of change in the position of the identification region 22 is equal to or greater than the stagnation threshold “I” (NO in step S116), the detection unit 31 returns to step S114 and continues to detect the presence or absence of a person in the movement detection mode.

ステップS117において検知部31の検知モードが滞在検知モードに切り替わると、変更部35が、解析画像のうちの検知領域21となる範囲を通常エリアから滞在時エリアに変更する。そのため、検知モードが滞在検知モードに切り替わると、検知部31は、解析画像のうちの検知領域21となる範囲として滞在時エリアを適用し(ステップS118)、滞在検知モードで識別領域22内における人の存在の有無を検知する(ステップS119)。   When the detection mode of the detection unit 31 is switched to the stay detection mode in step S117, the change unit 35 changes the range to be the detection area 21 in the analysis image from the normal area to the stay time area. Therefore, when the detection mode is switched to the stay detection mode, the detection unit 31 applies the stay area as a range to be the detection area 21 in the analysis image (step S118), and the person in the identification area 22 in the stay detection mode. Is detected (step S119).

ステップS119において、検知部31は、導出部33により導出された停滞領域内における人の動き量と、検知閾値“T”と、を比較する。人の動き量が検知閾値“T”以上となり、滞在領域内に人が存在することを検知部31が検知すると(ステップS119のYES)、検知装置600は、「滞在状態」と判断する(ステップS120)。「滞在状態」との判断がされると、ステップS119に戻り、検知部31は、引き続き滞在検知モードで人の存在の有無を検知する。   In step S119, the detection unit 31 compares the amount of human movement in the stagnation area derived by the deriving unit 33 with the detection threshold “T”. When the amount of movement of the person is equal to or greater than the detection threshold “T” and the detection unit 31 detects that there is a person in the stay area (YES in step S119), the detection device 600 determines that the “stay state” (step). S120). If it is determined that the “stay state”, the process returns to step S119, and the detection unit 31 continues to detect the presence or absence of a person in the stay detection mode.

人の動き量が検知閾値“T”未満であれば(ステップS119のNO)、検知部31は、人の動き量が検知閾値“T”未満の状態になって所定期間Qが経過したか否かを判断する(ステップS121)。所定期間Qが経過していなければ(ステップS121のNO)、ステップS119に戻り、検知部31は、引き続き滞在検知モードで人の存在の有無を検知する。人の動き量が検知閾値“T”未満の状態のまま所定期間Qが経過すると(ステップS121のYES)、ステップS122に進み、検知部31は、検知モードを滞在検知モードから移動検知モードに切り替える。   If the movement amount of the person is less than the detection threshold “T” (NO in step S119), the detection unit 31 determines whether the predetermined period Q has elapsed since the movement amount of the person is less than the detection threshold “T”. Is determined (step S121). If the predetermined period Q has not elapsed (NO in step S121), the process returns to step S119, and the detection unit 31 continues to detect the presence or absence of a person in the stay detection mode. If the predetermined period Q elapses with the human motion amount being less than the detection threshold “T” (YES in step S121), the process proceeds to step S122, and the detection unit 31 switches the detection mode from the stay detection mode to the movement detection mode. .

ステップS122において検知部31の検知モードが移動検知モードに切り替わると、変更部35が、解析画像のうちの検知領域21となる範囲を滞在時エリアから通常エリアに変更する。そのため、検知モードが移動検知モードに切り替わると、検知部31は、解析画像のうちの検知領域21となる範囲として通常エリアを適用し(ステップS123)、ステップS114に戻って、検知部31は、移動検知モードで人の存在の有無を検知する。   When the detection mode of the detection unit 31 is switched to the movement detection mode in step S122, the changing unit 35 changes the range to be the detection region 21 in the analysis image from the staying area to the normal area. Therefore, when the detection mode is switched to the movement detection mode, the detection unit 31 applies the normal area as a range to be the detection region 21 in the analysis image (step S123), returns to step S114, and the detection unit 31 The presence / absence of a person is detected in the movement detection mode.

以下、変更部35が解析画像のうちの検知領域21となる範囲を変更する動作について、図12A、図12B、および図12Cを用いて説明する。   Hereinafter, an operation in which the changing unit 35 changes the range to be the detection region 21 in the analysis image will be described with reference to FIGS. 12A, 12B, and 12C.

図12A、図12B、および図12Cは、人70が検知領域21の外から検知領域21内に進入し、その場で立ち止まった(停滞した)場合の、連続する3つのフレームの解析画像を示す図である。なお、図12A、図12B、および図12Cは、オフィスの天井80(図13参照)に取り付けられた撮像部2にてオフィス内の人70を上方から撮像した場合を想定している。   12A, 12B, and 12C show analysis images of three consecutive frames when a person 70 enters the detection area 21 from outside the detection area 21 and stops (stagnates) on the spot. FIG. 12A, 12B, and 12C assume a case where the person 70 in the office is imaged from above by the imaging unit 2 attached to the ceiling 80 (see FIG. 13) of the office.

図12Aの状態では、人70が解析画像内(つまり、撮像部2の視野内)ではあるが検知領域21の外となる位置に存在する。そのため、検知部31は、移動検知モードで動作して解析画像内における人70の存在を検知し、作成部32は、当該人70を囲むように識別領域22を作成する。ここでは、検知領域21内に人70が存在しないため、解析画像のうちの検知領域21の外に識別領域22が作成される。このとき、検知部31は移動検知モードで動作しているから、解析画像のうちの通常エリア211が検知領域21として用いられる。つまり、図12Aにおける検知領域21は通常エリア211である。   In the state of FIG. 12A, the person 70 exists in a position outside the detection area 21 in the analysis image (that is, in the field of view of the imaging unit 2). Therefore, the detection unit 31 operates in the movement detection mode to detect the presence of the person 70 in the analysis image, and the creation unit 32 creates the identification area 22 so as to surround the person 70. Here, since the person 70 does not exist in the detection area 21, the identification area 22 is created outside the detection area 21 in the analysis image. At this time, since the detection unit 31 operates in the movement detection mode, the normal area 211 in the analysis image is used as the detection region 21. That is, the detection area 21 in FIG. 12A is the normal area 211.

図12Bの状態では、解析画像において人70は検知領域21内まで移動している。このとき、識別領域22は検知領域21の端に位置しており、識別領域22の一部が検知領域21に重複している状態にある。このとき、検知部31は移動検知モードで動作しているから、解析画像のうちの通常エリア211が検知領域21として用いられる。つまり、図12Bにおける検知領域21は通常エリア211である。   In the state of FIG. 12B, the person 70 has moved into the detection area 21 in the analysis image. At this time, the identification area 22 is located at the end of the detection area 21, and a part of the identification area 22 overlaps the detection area 21. At this time, since the detection unit 31 operates in the movement detection mode, the normal area 211 in the analysis image is used as the detection region 21. That is, the detection area 21 in FIG. 12B is the normal area 211.

図12Cの状態では、人70は図12Bの状態と同じ位置に存在している。そのため、検知部31は、識別領域22の位置を固定して識別領域22を滞在領域23とし、検知モードを移動検知モードから滞在検知モードへ切り替える。ここで、検知部31は、滞在検知モードで動作して滞在領域23内における人70の存在を検知する。このとき、検知部31の検知モードが滞在検知モードに切り替わることを受けて、変更部35は、解析画像のうちの検知領域21となる範囲を通常エリア211から滞在時エリア212に変更する。そのため、解析画像のうちの滞在時エリア212が検知領域21として用いられる。つまり、図12Cにおける検知領域21は滞在時エリア212である。   In the state of FIG. 12C, the person 70 exists in the same position as the state of FIG. 12B. Therefore, the detection unit 31 fixes the position of the identification area 22 to make the identification area 22 a stay area 23 and switches the detection mode from the movement detection mode to the stay detection mode. Here, the detection unit 31 operates in the stay detection mode and detects the presence of the person 70 in the stay area 23. At this time, in response to the detection mode of the detection unit 31 being switched to the stay detection mode, the changing unit 35 changes the range to be the detection region 21 in the analysis image from the normal area 211 to the stay-time area 212. Therefore, the stay time area 212 in the analysis image is used as the detection area 21. That is, the detection area 21 in FIG.

ここにおいて、滞在時エリア212は、通常エリア211よりも広く設定されている。つまり、検知部31の検知モードが滞在検知モードに切り替わると、変更部35は、解析画像のうちの検知領域21となる範囲を通常エリア211から滞在時エリア212に変更することにより、検知領域21を拡大することになる。なお、滞在時エリア212は、例えば、図12Cの状態で解析画像内に設定された滞在領域23の全体が含まれるように、通常エリア211の全体を包含し且つ通常エリア211より一回り大きな範囲であることが好ましい。   Here, the stay area 212 is set wider than the normal area 211. That is, when the detection mode of the detection unit 31 is switched to the stay detection mode, the change unit 35 changes the range to be the detection region 21 in the analysis image from the normal area 211 to the stay area 212, thereby detecting the detection region 21. Will be expanded. The stay area 212 includes the entire normal area 211 and is slightly larger than the normal area 211 so that the entire stay area 23 set in the analysis image in the state of FIG. 12C is included, for example. It is preferable that

以下、通常エリア211と滞在時エリア212との関係について、図13および図14を用いて説明する。なお、図13および図14は、図12Cと同様に、オフィスの天井80に取り付けられた撮像部2にてオフィス内の人70を上方から撮像した場合を想定している。また、図13および図14においては、通常エリア211、滞在時エリア212、および滞在領域23が実空間に存在するように表されているが、これは実空間と解析画像との対応関係を分かりやすくするための表現であり、これらが実空間に存在する訳ではない。つまり、通常エリア211、滞在時エリア212、および滞在領域23は、図13および図14では仮想的に示されているに過ぎず、実際には解析画像内に設定されている。   Hereinafter, the relationship between the normal area 211 and the stay area 212 will be described with reference to FIGS. 13 and 14. 13 and 14 assume the case where the person 70 in the office is imaged from above by the imaging unit 2 attached to the ceiling 80 of the office, as in FIG. 12C. In FIG. 13 and FIG. 14, the normal area 211, the staying area 212, and the staying area 23 are shown to exist in the real space. This shows the correspondence between the real space and the analysis image. It is an expression to make it easier, and these do not exist in real space. That is, the normal area 211, the staying area 212, and the staying area 23 are only virtually shown in FIGS. 13 and 14 and are actually set in the analysis image.

図13の例では、人70は通常エリア211の端に相当する場所に座っている(停滞している)。この状態では、人70を囲むように滞在領域23が設定される。ただし、通常エリア211の範囲内には、人70の足元しか入っていないため、滞在領域23のうち人70の上半身に相当する部分は、通常エリア211から食み出ることになる。   In the example of FIG. 13, the person 70 is sitting at a place corresponding to the end of the normal area 211 (stagnation). In this state, the stay area 23 is set so as to surround the person 70. However, since only the foot of the person 70 is included in the range of the normal area 211, the portion corresponding to the upper half of the person 70 in the stay area 23 is projected from the normal area 211.

これに対して、通常エリア211より一回り大きな滞在時エリア212は、滞在領域23の略全体を含むことになる。つまり、滞在時エリア212は、人70の上半身を含めた略全身を含むことになる。そのため、検知部31は、検知領域21を拡大して、検知領域21を通常エリア211から滞在時エリア212に変更することで、通常エリア211の端に存在する人70についても、その略全身を滞在領域23内に収めることができる。したがって、検知部31は、滞在検知モードで動作することにより、通常エリア211の端に存在する人70についても、当該人70の微動を検知することで、滞在領域23内の人70の存在の有無を確実に検知できる。   On the other hand, the stay area 212 that is slightly larger than the normal area 211 includes substantially the entire stay area 23. That is, the staying area 212 includes substantially the entire body including the upper body of the person 70. Therefore, the detection unit 31 enlarges the detection area 21 and changes the detection area 21 from the normal area 211 to the staying area 212, so that even the person 70 existing at the end of the normal area 211 can be substantially entirely It can be accommodated in the stay area 23. Therefore, the detection unit 31 operates in the stay detection mode to detect the presence of the person 70 in the stay area 23 by detecting the fine movement of the person 70 even at the end of the normal area 211. Presence or absence can be detected reliably.

なお、具体的には、滞在時エリア212は、通常エリア211の端に座っている人70の全身が収まるように、座った状態の人70の頭頂部の高さに応じて設定されていることが好ましい。例えば、座った状態の人70の頭頂部の高さ(床面からの高さ)が1.5m、通常エリア211が床面上で一辺5mの正方形のエリアであるとすると、滞在時エリア212は床面上で一辺10m程度の正方形のエリアであることが好ましい。   Specifically, the staying area 212 is set according to the height of the top of the person 70 who is sitting so that the whole body of the person 70 sitting at the end of the normal area 211 can be accommodated. It is preferable. For example, if the height of the top of the person 70 in a sitting state (height from the floor) is 1.5 m and the normal area 211 is a square area with a side of 5 m on the floor, the area 212 during stay is Is preferably a square area with a side of about 10 m on the floor.

図14の例では、図13と同様に通常エリア211の端に相当する場所に座っている人701に加えて、通常エリア211の外であって滞在時エリア212内を移動している人702が存在する場合を想定している。この場合、人701を囲むように滞在領域23が設定される。そのため、検知部31は、検知領域21を拡大して、検知領域21を通常エリア211から滞在時エリア212に変更することで、通常エリア211の端に存在する人701についても、その略全身を滞在領域23内に収めることができる。したがって、検知部31は、滞在検知モードで動作することにより、通常エリア211の端に存在する人701についても、当該人701の微動を検知することで、滞在領域23内の人701の存在の有無を確実に検知できる。   In the example of FIG. 14, in addition to the person 701 sitting at a place corresponding to the end of the normal area 211 as in FIG. 13, the person 702 moving outside the normal area 211 and within the area 212 during the stay. Is assumed. In this case, the stay area 23 is set so as to surround the person 701. Therefore, the detection unit 31 enlarges the detection area 21 and changes the detection area 21 from the normal area 211 to the staying area 212, so that the person 701 existing at the end of the normal area 211 can also move substantially the whole body. It can be accommodated in the stay area 23. Therefore, the detection unit 31 operates in the stay detection mode, so that the presence of the person 701 in the stay area 23 can be detected by detecting the fine movement of the person 701 even in the person 701 existing at the end of the normal area 211. Presence or absence can be detected reliably.

一方で、検知部31は、常に滞在時エリア212を検知領域21としていれば、図14の例のように通常エリア211の外を人702が移動している場合に、検知領域21内に人70(702)の存在があると検知することになる。そこで、検知部31は、移動検知モードで動作中においては、通常エリア211を検知領域21とすることにより、通常エリア211の外を移動する人702については、検知領域21内に人70の存在があるとは検知しないように構成されている。したがって、検知部31は、移動検知モードで動作することにより、本来的に検知領域21として設定された通常エリア211内の人70の存在がある場合のみ、検知領域21内に人70の存在があると検知することができる。   On the other hand, if the detection unit 31 always uses the stay area 212 as the detection area 21, the person 702 moves outside the normal area 211 as in the example of FIG. 70 (702) is present. Therefore, when the detection unit 31 is operating in the movement detection mode, the normal area 211 is set as the detection area 21, so that the person 702 moving outside the normal area 211 exists in the detection area 21. It is configured not to detect that there is. Therefore, the detection unit 31 operates in the movement detection mode, so that the presence of the person 70 in the detection area 21 exists only when the person 70 exists in the normal area 211 that is originally set as the detection area 21. It can be detected that there is.

また、変更部35は、検知領域21内での滞在領域23の位置に応じて通常エリア211が拡大されたエリアを、滞在時エリア212とすることが好ましい。つまり、変更部35は、検知部31が移動検知モードから滞在検知モードに切り替わって、解析画像のうちの検知領域21となる範囲を通常エリア211から滞在時エリア212に変更する際、滞在領域23の位置に応じた滞在時エリア212を採用してもよい。言い換えれば、滞在時エリア212は、予め決められたエリアに限らず、検知領域21内での滞在領域23の位置に応じて変更されてもよい。   Moreover, it is preferable that the change part 35 makes the area 212 into which the normal area 211 was expanded according to the position of the stay area 23 in the detection area 21 as the area 212 at the time of stay. That is, when the detection unit 31 switches from the movement detection mode to the stay detection mode and the range to be the detection region 21 in the analysis image is changed from the normal area 211 to the stay area 212, the changing unit 35 changes the stay region 23. You may employ | adopt the area 212 at the time of stay according to the position. In other words, the stay area 212 is not limited to a predetermined area, and may be changed according to the position of the stay area 23 in the detection area 21.

具体例としては、通常エリア211の端に人70が存在する場合などで滞在領域23の一部が通常エリア211から食み出る場合、解析画像の滞在領域23が食み出た部分にのみ検知領域21が拡大されるように、変更部35は、滞在時エリア212を設定する。つまり、解析画像において、通常エリア211に、滞在領域23の食み出た部分を加えたエリアが、滞在時エリア212となる。このように滞在領域23が存在する部分についてのみ検知領域21が拡大されることで、解析画像における滞在領域23以外の部分には検知領域21が拡大されないこととなる。したがって、検知部31は、滞在検知モードで動作中も、解析画像のうち人70が滞在している滞在領域23以外の部分については、通常エリア211内の人70の存在がある場合のみ、検知領域21内に人70の存在があると検知することができる。   As a specific example, when a part of the stay area 23 protrudes from the normal area 211 when there is a person 70 at the end of the normal area 211, only the part where the stay area 23 protrudes from the analysis image is detected. The changing unit 35 sets the stay time area 212 so that the area 21 is enlarged. That is, in the analysis image, an area obtained by adding the protruding portion of the stay area 23 to the normal area 211 becomes the stay time area 212. As described above, the detection region 21 is enlarged only for the portion where the stay region 23 exists, so that the detection region 21 is not enlarged to a portion other than the stay region 23 in the analysis image. Therefore, even when the detection unit 31 is operating in the stay detection mode, the part other than the stay area 23 where the person 70 is staying in the analysis image is detected only when the person 70 exists in the normal area 211. It can be detected that there is a person 70 in the area 21.

なお、変更部35が、検知領域21内での滞在領域23の位置に応じて通常エリア211が拡大されたエリアを、滞在時エリア212とする場合、解析画像の滞在領域23が食み出た部分以外にも検知領域21が拡大されてもよい。例えば、解析画像において、通常エリア211の右端に人70が存在する場合などで滞在領域23の一部が通常エリア211から右方に食み出る場合、検知領域21が右方にのみ拡大されるように、変更部35が滞在時エリア212を設定してもよい。つまり、この場合、変更部35は、通常エリア211の右側辺のみを右方に移動させ、通常エリア211を右方にのみ拡大した形の滞在時エリア212に、解析画像のうちの検知領域21となる範囲を変更する。   In addition, when the change part 35 makes the area 212 where the normal area 211 expanded according to the position of the stay area 23 in the detection area 21 into the area 212 at the time of stay, the stay area 23 of the analysis image protruded The detection area 21 may be enlarged in addition to the portion. For example, in the analysis image, when a part of the stay area 23 protrudes rightward from the normal area 211 when a person 70 exists at the right end of the normal area 211, the detection area 21 is enlarged only to the right. In this way, the changing unit 35 may set the stay area 212. That is, in this case, the changing unit 35 moves only the right side of the normal area 211 to the right, and expands the normal area 211 only to the right to the detection area 21 in the analysis image 21. Change the range.

上述のように、検知領域21の拡大が、検知領域21内での滞在領域23の位置に応じて限定されることにより、滞在領域23とは無関係な範囲については、検知領域21の変更(拡大)の影響を受けることなく検知部31が人の存在の有無を検知できる。   As described above, the enlargement of the detection area 21 is limited according to the position of the stay area 23 in the detection area 21, so that the detection area 21 can be changed (enlarged) for a range unrelated to the stay area 23. The detection unit 31 can detect the presence or absence of a person without being affected by (1).

また、検知装置600は、通常エリア211から滞在時エリア212への変更による検知領域21となる範囲の変化量の上限値を設定する制限部36を、更に備えている。つまり、上述のように、変更部35が、解析画像のうちの検知領域21となる範囲を通常エリア211から滞在時エリア212に変更することで検知領域21を拡大する場合、制限部36は、検知領域21の拡大幅の上限値を設定する。   The detection device 600 further includes a limiting unit 36 that sets an upper limit value of the amount of change in the range that becomes the detection area 21 due to the change from the normal area 211 to the staying area 212. That is, as described above, when the changing unit 35 expands the detection area 21 by changing the range to be the detection area 21 in the analysis image from the normal area 211 to the on-stay area 212, the limiting unit 36 An upper limit value of the enlargement width of the detection area 21 is set.

図15は、解析画像における検知領域21(通常エリア211)と、制限部36による上限値を規定する上限枠24と、の関係の一例を示す概念図である。   FIG. 15 is a conceptual diagram showing an example of the relationship between the detection area 21 (normal area 211) in the analysis image and the upper limit frame 24 that defines the upper limit value by the restriction unit 36.

検知部31が移動検知モードから滞在検知モードに切り替わると、変更部35は、解析画像のうちの検知領域21となる範囲を通常エリア211から滞在時エリア212へと変更する。このとき、変更後の検知領域21となる滞在時エリア212が、制限部36によって設定される上限枠24の範囲内に収まるように、通常エリア211から滞在時エリア212への変更による検知領域21となる範囲の変化量の上限値が設定される。   When the detection unit 31 is switched from the movement detection mode to the stay detection mode, the change unit 35 changes the range to be the detection region 21 in the analysis image from the normal area 211 to the stay time area 212. At this time, the detection area 21 due to the change from the normal area 211 to the stay time area 212 so that the stay area 212 that becomes the detection area 21 after the change falls within the range of the upper limit frame 24 set by the restriction unit 36. The upper limit value of the amount of change in the range is set.

これにより、制限部36が設定した上限値を超えて検知領域21が拡大されることはなく、検知部31は、人70の検知対象となる検知領域21が広くなり過ぎることを回避できる。   As a result, the detection region 21 is not enlarged beyond the upper limit set by the restriction unit 36, and the detection unit 31 can avoid the detection region 21 to be detected by the person 70 from becoming too wide.

また、制限部36が設定する上限値は、固定値ではなく可変値であることが好ましい。この場合、図15の例では、上限値を規定する上限枠24が可変となる。上限値の変更は、検知装置600に対する操作入力に応じて制限部36が行ってもよいし、制限部36が自動的に行ってもよい。   Moreover, it is preferable that the upper limit value set by the limiter 36 is not a fixed value but a variable value. In this case, in the example of FIG. 15, the upper limit frame 24 that defines the upper limit value is variable. The change of the upper limit value may be performed by the restriction unit 36 according to an operation input to the detection device 600, or may be automatically performed by the restriction unit 36.

また、制限部36が設定する上限値は、特定の向きの検知領域21の変更についてのみ設定されてもよい。例えば、検知領域21の右方への拡大についてのみ変化量(拡大量)が制限されるように、制限部36は、通常エリア211から滞在時エリア212への変更による検知領域21となる範囲の変化量の上限値を、特定の向きについてのみ設定してもよい。更に、上述のように、制限部36が設定する上限値が可変値である場合、検知領域21の変更の向き毎に、上限値が変更されてもよい。   Further, the upper limit value set by the restriction unit 36 may be set only for a change in the detection area 21 in a specific direction. For example, the restricting unit 36 sets the range to be the detection area 21 by the change from the normal area 211 to the staying area 212 so that the change amount (enlargement amount) is limited only for the rightward expansion of the detection area 21. The upper limit value of the change amount may be set only for a specific direction. Further, as described above, when the upper limit value set by the limiter 36 is a variable value, the upper limit value may be changed for each direction of change of the detection region 21.

更に、制限部36によって検知領域21の変更が制限される場合には、検知部31は、例えば検知閾値“I”を切り替えることによって、人70の存在の有無の検知の感度を調整するように構成されていてもよい。例えば、解析画像における滞在領域23の大きさを表す指標を「x1」、制限部36によって検知領域21の変更が制限される程度を表す指標を「x2」、感度の基準値を「y1」とした場合、感度y2は、y2=(x2/x1)×y1で表される。   Further, when the change of the detection region 21 is restricted by the restriction unit 36, the detection unit 31 adjusts the sensitivity of detection of the presence / absence of the person 70 by switching the detection threshold “I”, for example. It may be configured. For example, the index indicating the size of the stay area 23 in the analysis image is “x1”, the index indicating the degree to which the change of the detection area 21 is restricted by the restriction unit 36 is “x2”, and the sensitivity reference value is “y1”. In this case, the sensitivity y2 is expressed by y2 = (x2 / x1) × y1.

また、変更部35は、検知部31が移動検知モードから滞在検知モードに切り替わると、解析画像のうちの検知領域21となる範囲を通常エリア211から滞在時エリア212に変更する構成であればよく、検知領域21を拡大する構成に限らない。例えば、変更部35は、検知部31が移動検知モードから滞在検知モードに切り替わると、検知領域21を縮小する構成であってもよい。この場合、滞在時エリア212は通常エリア211より小さくなる。この場合の滞在時エリア212は、例えば、滞在領域23を中心とする位置に設定される。また、変更部35は、検知部31が移動検知モードから滞在検知モードに切り替わると、解析画像内での検知領域21の位置をシフトさせる構成であってもよい。この場合、通常エリア211と滞在時エリア212とは、同じ大きさであって、解析画像内での位置のみが異なることになる。   Moreover, the change part 35 should just be the structure which changes the range used as the detection area 21 of an analysis image from the normal area 211 to the area 212 at the time of a stay, when the detection part 31 switches from a movement detection mode to a stay detection mode. The configuration is not limited to enlarging the detection area 21. For example, the change unit 35 may be configured to reduce the detection area 21 when the detection unit 31 is switched from the movement detection mode to the stay detection mode. In this case, the stay area 212 is smaller than the normal area 211. In this case, the stay area 212 is set, for example, at a position centered on the stay area 23. Further, the change unit 35 may be configured to shift the position of the detection region 21 in the analysis image when the detection unit 31 is switched from the movement detection mode to the stay detection mode. In this case, the normal area 211 and the staying area 212 have the same size and differ only in the position in the analysis image.

なお、検知装置600および検知システム620は、解析画像のうちの検知領域21となる範囲を変更する変更部35を備えていればよく、制限部36を備えることは必須の構成ではない。   Note that the detection device 600 and the detection system 620 only need to include the changing unit 35 that changes the range to be the detection region 21 in the analysis image, and the provision of the limiting unit 36 is not an essential configuration.

(プログラムおよび検知方法)
以上説明したような検知装置の制御部3は、適当なプログラムをコンピュータに実行させることによって実現することができる。すなわち、このプログラムは、コンピュータを、検知装置として機能させるためのプログラムであり、例えば、記録媒体に記録されて提供され、あるいは電気通信回線を通じて提供される。ここでいう検知装置は、検知部31と、作成部32と、導出部33と、を備えている。検知部31は、解析画像の検知領域内の人の存在の有無を検知する。作成部32は、検知部31が検知領域内に人の存在があることを検知したとき、検知した人を囲む識別領域を解析画像に作成する。導出部33は、検知領域内で停滞した識別領域からなる滞在領域内での人の動き量および検知領域内での識別領域の位置変化量を導出する。検知部31は、検知領域内における人の存在の有無を検知する移動検知モードと、滞在領域内における前記人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有している。検知部31は、移動検知モードにおいて、識別領域の位置変化量が停滞閾値未満になると、検知領域内での当該識別領域の位置を固定し、当該識別領域を滞在領域として、当該滞在領域について滞在検知モードで人の存在の有無を検知する。
(Program and detection method)
The control unit 3 of the detection apparatus as described above can be realized by causing a computer to execute an appropriate program. That is, this program is a program for causing a computer to function as a detection device, and is provided, for example, by being recorded on a recording medium or via an electric communication line. The detection device here includes a detection unit 31, a creation unit 32, and a derivation unit 33. The detection unit 31 detects the presence or absence of a person in the detection area of the analysis image. When the detection unit 31 detects the presence of a person in the detection area, the generation unit 32 generates an identification area surrounding the detected person in the analysis image. The deriving unit 33 derives the amount of movement of the person in the stay area including the identification area stagnated in the detection area and the position change amount of the identification area in the detection area. The detection unit 31 has a movement detection mode that detects the presence or absence of a person in the detection area, and a stay detection mode that detects the presence or absence of a person based on the amount of movement of the person in the stay area. ing. In the movement detection mode, when the position change amount of the identification area becomes less than the stagnation threshold, the detection unit 31 fixes the position of the identification area in the detection area, and stays in the stay area using the identification area as a stay area. The presence / absence of a person is detected in the detection mode.

また、この種の検知装置を用いることで、以下のような検知方法を実現することができる。すなわち、ここでいう検知方法は、検知段階と、作成段階と、導出段階と、を含んでいる。検知段階では、解析画像の検知領域内の人の存在の有無を検知する。作成段階では、検知段階で検知領域内に人の存在があることを検知したとき、検知した人を囲む識別領域を解析画像に作成する。導出段階では、検知領域内で停滞した識別領域からなる滞在領域内での人の動き量および検知領域内での識別領域の位置変化量を導出する。検知段階では、検知領域内における人の存在の有無を検知する移動検知モードと、滞在領域内における前記人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有している。検知段階では、移動検知モードにおいて、識別領域の位置変化量が停滞閾値未満になると、検知領域内での当該識別領域の位置を固定し、当該識別領域を滞在領域として、当該滞在領域について滞在検知モードで人の存在の有無を検知する。   Further, by using this type of detection device, the following detection method can be realized. That is, the detection method referred to here includes a detection stage, a creation stage, and a derivation stage. In the detection stage, the presence or absence of a person in the detection area of the analysis image is detected. In the creation stage, when it is detected in the detection stage that there is a person in the detection area, an identification area surrounding the detected person is created in the analysis image. In the derivation stage, the amount of movement of the person in the stay area composed of the identification area stagnated in the detection area and the position change amount of the identification area in the detection area are derived. The detection stage includes a movement detection mode for detecting the presence or absence of a person in the detection area, and a stay detection mode for detecting the presence or absence of a person based on the amount of movement of the person in the stay area. Yes. In the detection stage, when the position change amount of the identification area becomes less than the stagnation threshold value in the movement detection mode, the position of the identification area in the detection area is fixed, and the stay area is detected for the stay area. Detect the presence or absence of people in the mode.

(結び)
以上のように、本発明における技術の例示として、実施形態を説明した。そのために、添付図面および詳細な説明を提供した。
(Conclusion)
As described above, the embodiments have been described as examples of the technology in the present invention. For this purpose, the accompanying drawings and detailed description are provided.

したがって、添付図面および詳細な説明に記載された構成要素の中には、課題解決のために必須な構成要素だけでなく、上記技術を例示するために、課題解決のためには必須でない構成要素も含まれ得る。そのため、それらの必須ではない構成要素が添付図面や詳細な説明に記載されていることをもって、直ちに、それらの必須ではない構成要素が必須であるとの認定をするべきではない。   Accordingly, among the components described in the accompanying drawings and the detailed description, not only the components essential for solving the problem, but also the components not essential for solving the problem in order to illustrate the above technique. May also be included. Therefore, it should not be immediately recognized that these non-essential components are essential as those non-essential components are described in the accompanying drawings and detailed description.

また、上述の実施形態は、本発明における技術を例示するためのものであるから、特許請求の範囲またはその均等の範囲において種々の変更、置き換え、付加、省略などを行うことができる。   Moreover, since the above-mentioned embodiment is for demonstrating the technique in this invention, a various change, replacement, addition, abbreviation, etc. can be performed in a claim or its equivalent range.

100、200、300、400、500、600 検知装置
120、220、320、420、520、620 検知システム
2 撮像部
21 検知領域
22、22a、22b 識別領域
23、23a、23b 滞在領域
3 制御部
31 検知部
32 作成部
33 導出部
34 画像処理部
4 送信部
5 記憶部
6 負荷
100, 200, 300, 400, 500, 600 Detection device 120, 220, 320, 420, 520, 620 Detection system 2 Imaging unit 21 Detection region 22, 22a, 22b Identification region 23, 23a, 23b Stay region 3 Control unit 31 Detection unit 32 Creation unit 33 Derivation unit 34 Image processing unit 4 Transmission unit 5 Storage unit 6 Load

Claims (5)

撮像部が撮像した解析画像の検知領域内の人の存在の有無を検知する検知部を備え、
前記検知部は、
前記検知領域内における人の存在の有無を検知する移動検知モードと、
前記検知領域内で人が停滞していると推定される滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有する
ことを特徴とする検知装置。
A detection unit that detects the presence or absence of a person in the detection region of the analysis image captured by the imaging unit;
The detector is
A movement detection mode for detecting the presence or absence of a person in the detection area;
And a stay detection mode for detecting the presence or absence of a person based on the amount of movement of the person in the stay area where the person is estimated to be stagnant in the detection area.
前記検知部は、
前記滞在検知モードにおいて、
前記人の動き量が検知閾値未満であれば、人の存在がないと判定し、
前記人の動き量が検知閾値以上であれば、人の存在があると判定する
ことを特徴とする請求項1記載の検知装置。
The detector is
In the stay detection mode,
If the amount of movement of the person is less than the detection threshold, it is determined that there is no person,
The detection device according to claim 1, wherein it is determined that there is a person if the amount of movement of the person is equal to or greater than a detection threshold.
前記検知部は、
前記滞在検知モードにおいて、
前記人の動き量が前記検知閾値よりも大きい解除閾値以上であれば、前記滞在検知モードから前記移動検知モードに切り替える
ことを特徴とする請求項2記載の検知装置。
The detector is
In the stay detection mode,
The detection device according to claim 2, wherein the movement detection mode is switched from the stay detection mode if the movement amount of the person is equal to or greater than a release threshold that is greater than the detection threshold.
請求項1〜3の何れか1項に記載の検知装置と、前記検知部の検知結果に基づいて制御される負荷と、を備える
検知システム。
A detection system comprising: the detection device according to claim 1; and a load controlled based on a detection result of the detection unit.
コンピュータを、
解析画像の検知領域内の人の存在の有無を検知する検知部を備え、
前記検知部は、
前記検知領域内における人の存在の有無を検知する移動検知モードと、
前記検知領域内で人が停滞していると推定される滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有する検知装置
として機能させるためのプログラム。
Computer
With a detection unit that detects the presence or absence of people in the detection area of the analysis image,
The detector is
A movement detection mode for detecting the presence or absence of a person in the detection area;
A program for functioning as a detection device comprising: a stay detection mode that detects the presence or absence of a person based on the amount of movement of a person in a stay area where a person is estimated to be stagnant in the detection area.
JP2018080389A 2014-08-21 2018-04-19 Detection device, detection system, and program Active JP6664106B2 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
JP2014168151 2014-08-21
JP2014168151 2014-08-21
JP2014179335 2014-09-03
JP2014179335 2014-09-03

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
JP2014266061A Division JP6337377B2 (en) 2014-08-21 2014-12-26 Detection device, detection system, and program

Publications (2)

Publication Number Publication Date
JP2018129090A true JP2018129090A (en) 2018-08-16
JP6664106B2 JP6664106B2 (en) 2020-03-13

Family

ID=55744809

Family Applications (3)

Application Number Title Priority Date Filing Date
JP2014266062A Active JP6459124B2 (en) 2014-08-21 2014-12-26 Detection device, detection system, and program
JP2014266061A Active JP6337377B2 (en) 2014-08-21 2014-12-26 Detection device, detection system, and program
JP2018080389A Active JP6664106B2 (en) 2014-08-21 2018-04-19 Detection device, detection system, and program

Family Applications Before (2)

Application Number Title Priority Date Filing Date
JP2014266062A Active JP6459124B2 (en) 2014-08-21 2014-12-26 Detection device, detection system, and program
JP2014266061A Active JP6337377B2 (en) 2014-08-21 2014-12-26 Detection device, detection system, and program

Country Status (1)

Country Link
JP (3) JP6459124B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023039282A (en) * 2021-09-08 2023-03-20 ソフトバンク株式会社 Determination apparatus, program, and determination method

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP6812894B2 (en) * 2017-04-24 2021-01-13 トヨタ自動車株式会社 Peripheral monitoring device
JP7005285B2 (en) * 2017-11-01 2022-01-21 株式会社東芝 Image sensors, sensing methods, control systems and programs

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001008189A (en) * 1999-04-23 2001-01-12 Hitachi Ltd Mobile object monitoring device
JP2004295416A (en) * 2003-03-26 2004-10-21 Matsushita Electric Works Ltd Image processing apparatus
JP2006172023A (en) * 2004-12-14 2006-06-29 Matsushita Electric Works Ltd Human body detection device
JP2009110152A (en) * 2007-10-29 2009-05-21 Panasonic Corp Congestion estimation device
JP2010266169A (en) * 2009-05-18 2010-11-25 Mitsubishi Electric Corp Air-conditioning control device

Family Cites Families (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS62250783A (en) * 1986-04-24 1987-10-31 Matsushita Electric Works Ltd Picture supervisory system
JP3341605B2 (en) * 1996-12-05 2002-11-05 日産自動車株式会社 Image processing device for vehicles
JP2000348268A (en) * 1999-06-07 2000-12-15 Mitsubishi Electric Corp Human body detecting device
JP2000350188A (en) * 1999-06-08 2000-12-15 Sony Corp Background image update device and its method
JP2001333417A (en) * 2000-05-19 2001-11-30 Fujitsu General Ltd Camera supervisory system
JP2006281979A (en) * 2005-03-31 2006-10-19 Tdk Corp Device and method for detecting and warning obstacle
JP2008302746A (en) * 2007-06-05 2008-12-18 Fujitsu Ten Ltd Vehicle control device and vehicle control method
JP2009169717A (en) * 2008-01-17 2009-07-30 Meidensha Corp Intruder detecting apparatus by image processing
JP2012084012A (en) * 2010-10-13 2012-04-26 Canon Inc Image processing device, processing method therefor, and program
JP2012133759A (en) * 2010-11-29 2012-07-12 Canon Inc Object tracking device capable of detecting intrusion object, object tracking method, and storage medium
JP5387595B2 (en) * 2011-02-24 2014-01-15 新日鐵住金株式会社 Person monitoring device, person monitoring method, and computer program
US20150125032A1 (en) * 2012-06-13 2015-05-07 Panasonic Intellectual Property Management Co., Ltd. Object detection device
JP5919538B2 (en) * 2012-06-15 2016-05-18 パナソニックIpマネジメント株式会社 Object detection apparatus and object detection method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001008189A (en) * 1999-04-23 2001-01-12 Hitachi Ltd Mobile object monitoring device
JP2004295416A (en) * 2003-03-26 2004-10-21 Matsushita Electric Works Ltd Image processing apparatus
JP2006172023A (en) * 2004-12-14 2006-06-29 Matsushita Electric Works Ltd Human body detection device
JP2009110152A (en) * 2007-10-29 2009-05-21 Panasonic Corp Congestion estimation device
JP2010266169A (en) * 2009-05-18 2010-11-25 Mitsubishi Electric Corp Air-conditioning control device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2023039282A (en) * 2021-09-08 2023-03-20 ソフトバンク株式会社 Determination apparatus, program, and determination method
JP7295181B2 (en) 2021-09-08 2023-06-20 ソフトバンク株式会社 Determination device, program, and determination method

Also Published As

Publication number Publication date
JP6459124B2 (en) 2019-01-30
JP2016053939A (en) 2016-04-14
JP6664106B2 (en) 2020-03-13
JP2016053938A (en) 2016-04-14
JP6337377B2 (en) 2018-06-06

Similar Documents

Publication Publication Date Title
JP6664106B2 (en) Detection device, detection system, and program
US10147022B2 (en) Detection method and system
JP4730431B2 (en) Target tracking device
KR101837407B1 (en) Apparatus and method for image-based target tracking
KR102153607B1 (en) Apparatus and method for detecting foreground in image
WO2013136822A1 (en) Information processing device, image sensor device, and program
RU2008136813A (en) IMAGE FORMING DEVICE, METHOD FOR MANAGING THE IMAGE FORMING DEVICE AND COMPUTER PROGRAM
JP5887508B2 (en) Exposure control apparatus, imaging apparatus, image display apparatus, and exposure control method
JP6555617B2 (en) Human detection system
JP2008241707A (en) Automatic monitoring system
JP2014175706A (en) Monitor device, monitor method, and imaging unit arrangement method
JP5300694B2 (en) Detection device
JP2018124441A (en) System, information processing apparatus, information processing method, and program
JP2018125719A (en) System, information processing device, information processing method, and program
JP2014103555A (en) Communication apparatus, method and program
JP2016179887A (en) Elevator in-car monitoring device
US9491396B2 (en) Apparatus, method, and system of controlling projection image, and recording medium storing image projection control program
JP2018531493A (en) Trajectory tracking using low cost occupancy sensors
JP2015049532A (en) Video monitoring system, video monitoring method, and video monitoring system construction method
KR20220060670A (en) Home appliance and Method for controlling thereof
JP6742157B2 (en) Object detection device, object detection system, object detection method, and program
WO2016027410A1 (en) Detection device and detection system
JP2021007055A (en) Discriminator learning device, discriminator learning method, and computer program
JP2016051199A (en) Information processing apparatus, image projection apparatus, and information processing method
US20210258548A1 (en) Information processing device, information processing method, and recording medium

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20180419

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20190424

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190528

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190729

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: 20200107

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200131

R151 Written notification of patent or utility model registration

Ref document number: 6664106

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151