JP2016053939A - Detection device, detection system, and program - Google Patents

Detection device, detection system, and program Download PDF

Info

Publication number
JP2016053939A
JP2016053939A JP2014266062A JP2014266062A JP2016053939A JP 2016053939 A JP2016053939 A JP 2016053939A JP 2014266062 A JP2014266062 A JP 2014266062A JP 2014266062 A JP2014266062 A JP 2014266062A JP 2016053939 A JP2016053939 A JP 2016053939A
Authority
JP
Japan
Prior art keywords
detection
unit
person
area
predetermined period
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
JP2014266062A
Other languages
Japanese (ja)
Other versions
JP6459124B2 (en
Inventor
利春 竹ノ内
Toshiharu Takenouchi
利春 竹ノ内
松田 啓史
Hiroshi Matsuda
啓史 松田
康洋 森
Yasuhiro Mori
康洋 森
杭 耕一郎
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 JP2016053939A publication Critical patent/JP2016053939A/en
Application granted granted Critical
Publication of JP6459124B2 publication Critical patent/JP6459124B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

PROBLEM TO BE SOLVED: To provide a detection device, detection system, and program that can suppress incorrect determination of the presence/absence of a person even when a sudden change of light occurs in a detection area of an analysis image.SOLUTION: A detection part 31 detects the presence/absence of a person in a detection area of an analysis image photographed by an imaging part 2. A determination part 34 determines the presence/absence of a person in the detection area on the basis of a result of the detection by the detection part 31. A derivation part 33 derives the size of a luminance change area where the amount of change in luminance in a predetermined period T1 in the detection area is equal to or larger than a first threshold S1. A judging part 35 judges that a change of light is present when the size of the luminance change area is equal to or larger than a second threshold S2. When the judging part 35 judges that a change of light is present, the determination part 34 does not adopt the result of the detection by the detection part 31.SELECTED DRAWING: Figure 1

Description

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

従来、撮像素子で撮像された解析画像の変化を利用した人体検知の技術が提案されている。この種の技術においては、解析画像の検知領域内で急激な光変化が生じると、例えば白とびや黒つぶれが発生して、人体検知に支障をきたす可能性がある。そこで、白とびの発生を抑制することで、比較的に正確に人の存在の有無を検知する検知装置(監視カメラ)が知られている(例えば、特許文献1を参照)。   Conventionally, a human body detection technique using a change in an analysis image captured by an image sensor has been proposed. In this type of technology, if a sudden light change occurs in the detection region of the analysis image, for example, overexposure or blackout may occur, which may hinder human body detection. Thus, a detection device (monitoring camera) that detects the presence or absence of a person relatively accurately by suppressing the occurrence of overexposure is known (see, for example, Patent Document 1).

特開2006−295591号公報JP 2006-259591 A

しかしながら、特許文献1に記載のものは、白とびの発生を抑制するために、照明装置の発光タイミングおよび発光量を制御する必要がある。すなわち、特許文献1に記載のものは、解析画像の検知領域内において白とび等の原因となる急激な光変化を抑制するために、照明装置の発光が制限されてしまうことがある。   However, in the device described in Patent Document 1, it is necessary to control the light emission timing and the light emission amount of the lighting device in order to suppress the occurrence of overexposure. That is, in the device described in Patent Document 1, light emission of the lighting device may be limited in order to suppress a rapid light change that causes overexposure in the detection region of the analysis image.

そこで、本発明は、上記事由に鑑みてなされたものであって、解析画像の検知領域内において急激な光変化が発生しても、人の存在の有無を誤判断するのを抑制することができる検知装置、検知システム、およびプログラムを提供することを目的とする。   Therefore, the present invention has been made in view of the above-described reason, and even if a sudden light change occurs in the detection region of the analysis image, it is possible to suppress erroneous determination of the presence or absence of a person. It is an object to provide a detection device, a detection system, and a program that can be used.

本発明の検知装置は、撮像部と、撮像部が撮像した解析画像の検知領域内の人の存在の有無を検知する検知部と、検知部の検知結果に基づいて、人の存在の有無を判断する判断部と、検知領域内において第1の所定期間における輝度変化量が第1の閾値以上である輝度変化領域の大きさを導出する導出部と、輝度変化領域の大きさが第2の閾値以上であれば光変化有りと判定する判定部と、を備え、判定部が光変化有りと判定した場合、第2の所定期間において、検知部が検知動作を停止する、または第2の所定期間において、判断部が検知部の検知結果を採用しないで第2の所定期間の開始前の判断結果を維持することを特徴とする。   The detection device of the present invention includes an imaging unit, a detection unit that detects the presence or absence of a person in a detection region of an analysis image captured by the imaging unit, and the presence or absence of a person based on a detection result of the detection unit. A determination unit for determining, a derivation unit for deriving the size of the luminance change region in which the luminance change amount in the first predetermined period is equal to or greater than the first threshold in the detection region, and the size of the luminance change region is the second A determination unit that determines that there is a light change if the threshold value is greater than or equal to the threshold, and the detection unit stops the detection operation in the second predetermined period when the determination unit determines that there is a light change, or the second predetermined In the period, the determination unit maintains the determination result before the start of the second predetermined period without adopting the detection result of the detection unit.

本発明の検知システムは、撮像部と、撮像部が撮像した解析画像の検知領域内の人の存在の有無を検知する検知部と、検知部の検知結果に基づいて、人の存在の有無を判断する判断部と、検知領域内において第1の所定期間における輝度変化量が第1の閾値以上である輝度変化領域の大きさを導出する導出部と、輝度変化領域の大きさが第2の閾値以上であれば光変化有りと判定する判定部と、制御対象となる負荷と、を備え、判定部が光変化有りと判定した場合、第2の所定期間において、検知部が検知動作を停止する、または第2の所定期間において、判断部が検知部の検知結果を採用しないで第2の所定期間の開始前の判断結果を維持することを特徴とする。   The detection system of the present invention includes an imaging unit, a detection unit that detects the presence or absence of a person in a detection region of an analysis image captured by the imaging unit, and the presence or absence of a person based on a detection result of the detection unit. A determination unit for determining, a derivation unit for deriving the size of the luminance change region in which the luminance change amount in the first predetermined period is equal to or greater than the first threshold in the detection region, and the size of the luminance change region is the second A determination unit that determines that there is a light change if the threshold value is greater than or equal to a threshold value and a load to be controlled. When the determination unit determines that there is a light change, the detection unit stops the detection operation during a second predetermined period. In the second predetermined period, the determination unit maintains the determination result before the start of the second predetermined period without adopting the detection result of the detection unit.

本発明のプログラムは、コンピュータを、解析画像の検知領域内の人の存在の有無を検知する検知部と、検知部の検知結果に基づいて、人の存在の有無を判断する判断部と、検知領域内において第1の所定期間における輝度変化量が第1の閾値以上である輝度変化領域の大きさを導出する導出部と、輝度変化領域の大きさが第2の閾値以上であれば光変化有りと判定する判定部と、を備え、判定部が光変化有りと判定した場合、第2の所定期間において、検知部が検知動作を停止する、または第2の所定期間において、判断部が検知部の検知結果を採用しないで第2の所定期間の開始前の判断結果を維持する検知装置、として機能させるためのプログラムである。   The program of the present invention includes a detection unit that detects the presence / absence of a person in a detection region of an analysis image, a determination unit that determines the presence / absence of a person based on a detection result of the detection unit, and a detection A deriving unit for deriving the size of the luminance change region in which the luminance change amount in the first predetermined period is equal to or greater than the first threshold, and the light change if the luminance change region is equal to or greater than the second threshold A determination unit that determines that there is a light change, and when the determination unit determines that there is a light change, the detection unit stops the detection operation in the second predetermined period, or the determination unit detects in the second predetermined period This is a program for functioning as a detection device that maintains the determination result before the start of the second predetermined period without adopting the detection result of the part.

本発明に係る検知装置、検知システム、およびプログラムは、解析画像の検知領域内において急激な光変化が発生しても、人の存在の有無を誤判断するのを抑制することができる。   The detection device, the detection system, and the program according to the present invention can suppress erroneous determination of the presence or absence of a person even if a sudden light change occurs in the detection region of the analysis image.

図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. 図2は、本発明の実施形態1に係る検知装置100の動作の一例を示すフローチャートである。FIG. 2 is a flowchart showing an example of the operation of the detection apparatus 100 according to the first embodiment of the present invention. 図3は、本発明の実施形態2に係る検知装置200および検知システム220のブロック図である。FIG. 3 is a block diagram of the detection apparatus 200 and the detection system 220 according to Embodiment 2 of the present invention. 図4は、本発明の実施形態2に係る検知装置200の動作の一例を示すフローチャートである。FIG. 4 is a flowchart showing an example of the operation of the detection apparatus 200 according to Embodiment 2 of the present invention. 図5は、本発明の実施形態3に係る検知装置300の動作の一例を示すフローチャートである。FIG. 5 is a flowchart showing an example of the operation of the detection apparatus 300 according to Embodiment 3 of the present invention. 図6は、本発明の実施形態4に係る検知装置400の動作の一例を示すフローチャートである。FIG. 6 is a flowchart showing an example of the operation of the detection apparatus 400 according to Embodiment 4 of the present invention. 図7は、本発明の実施形態5に係る検知装置500および検知システム520のブロック図である。FIG. 7 is a block diagram of a detection device 500 and a detection system 520 according to Embodiment 5 of the present invention. 図8は、本発明の実施形態5に係る検知装置500の動作の一例を示すフローチャートである。FIG. 8 is a flowchart showing an example of the operation of the detection apparatus 500 according to the fifth embodiment of the present invention. 図9Aおよび図9Bは、本発明の実施形態5に係る検知装置500の作成部36が解析画像に対して作成する存在領域22の一例と、導出部33が存在領域22の位置変化量を導出する一例を示す概念図である。図9Aは、解析画像の連続する2つのフレームの前のフレームにおける解析画像の検知領域21を示す概念図である。図9Bは、解析画像の連続する2つのフレームの後のフレームにおける解析画像の検知領域21を示す概念図である。9A and 9B show an example of the existence region 22 created by the creation unit 36 of the detection apparatus 500 according to Embodiment 5 of the present invention with respect to the analysis image, and the derivation unit 33 derives the positional change amount of the existence region 22. It is a conceptual diagram which shows an example to do. FIG. 9A is a conceptual diagram showing an analysis image detection region 21 in a frame before two consecutive frames of the analysis image. FIG. 9B is a conceptual diagram showing the detection region 21 of the analysis image in a frame after two consecutive frames of the analysis image. 図10Aおよび図10Bは、本発明の実施形態5に係る検知装置500が滞在検知モードで人の存在の有無を検知する際に導出部33が人の動き量を導出する一例を示す概念図である。図10Aは、本発明の実施形態5に係る連続する2つのフレームの前のフレームにおける滞在領域23aを示す概念図である。図10Bは、本発明の実施形態5に係る連続する2つのフレームの後のフレームにおける滞在領域23bを示す概念図である。10A and 10B are conceptual diagrams illustrating an example in which the deriving unit 33 derives the amount of movement of a person when the detection apparatus 500 according to Embodiment 5 of the present invention detects the presence or absence of a person in the stay detection mode. is there. FIG. 10A is a conceptual diagram showing a stay area 23a in a frame before two consecutive frames according to Embodiment 5 of the present invention. FIG. 10B is a conceptual diagram showing a stay area 23b in a frame after two consecutive frames according to Embodiment 5 of the present invention. 図11は、本発明の実施形態5に係る検知装置500において急激な光変化が生じる前後の一定期間の動作の一例を示す概念図である。FIG. 11 is a conceptual diagram illustrating an example of an operation for a certain period before and after a sudden light change occurs in the detection apparatus 500 according to the fifth embodiment of the present invention. 図12は、本発明の実施形態5に係る検知装置500において急激な光変化が生じる前後の一定期間の動作の一例を示す概念図である。FIG. 12 is a conceptual diagram illustrating an example of an operation for a fixed period before and after a sudden light change occurs in the detection apparatus 500 according to Embodiment 5 of the present invention. 図13は、本発明の実施形態5に係る検知装置500において急激な光変化が生じる前後の一定期間の動作の一例を示す概念図である。FIG. 13 is a conceptual diagram illustrating an example of an operation for a certain period before and after a sudden light change occurs in the detection apparatus 500 according to the fifth embodiment of the present invention.

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

図1は、検知装置100および検知システム120のブロック図である。図1に示すように、検知装置100は、撮像部2と、制御部3と、を備える。   FIG. 1 is a block diagram of the detection device 100 and the detection system 120. As shown in FIG. 1, the detection device 100 includes an imaging unit 2 and a control unit 3.

撮像部2は、検知装置100が人の存在の有無を検知する領域を撮像する。   The imaging unit 2 captures an area where the detection device 100 detects the presence or absence of a person.

制御部3は、検知部31と、判断部34と、導出部33と、判定部35と、を備える。検知部31は、撮像部2が撮像した解析画像の検知領域内の人の存在の有無を検知する。判断部34は、検知部31の検知結果に基づいて、解析画像の検知領域内の人の存在の有無を判断する。導出部33は、解析画像の検知領域内において、所定期間T1(第1の所定期間)における輝度変化量が第1の閾値S1以上である領域(以下、「輝度変化領域」という)の大きさを導出する。判定部35は、導出部33が導出した輝度変化領域の大きさが第2の閾値S2以上であれば光変化有りと判定する。   The control unit 3 includes a detection unit 31, a determination unit 34, a derivation unit 33, and a determination unit 35. 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. Based on the detection result of the detection unit 31, the determination unit 34 determines whether or not there is a person in the detection area of the analysis image. The deriving unit 33 is a size of an area (hereinafter referred to as “luminance change area”) in which the luminance change amount in the predetermined period T1 (first predetermined period) is equal to or greater than the first threshold S1 in the detection area of the analysis image. Is derived. The determination unit 35 determines that there is a light change if the size of the luminance change region derived by the deriving unit 33 is equal to or greater than the second threshold S2.

なお、解析画像の検知領域は、例えば、撮像部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.

制御部3は、更に、所定期間T1と、所定期間T2と、第1の閾値S1と、第2の閾値S2と、を記憶する記憶部32を備える。   The control unit 3 further includes a storage unit 32 that stores a predetermined period T1, a predetermined period T2, a first threshold value S1, and a second threshold value S2.

すなわち、解析画像の検知領域内に、後述する制御対象の動作モードの切り替えや、外乱により急激な光変化が発生する場合には、所定期間T1における輝度変化量が第1の閾値S1と比較される。所定期間T1における輝度変化量が第1の閾値S1以上である領域があれば、導出部33は、この領域(輝度変化量が第1の閾値S1以上である領域)を輝度変化領域として輝度変化領域の大きさを導出する。そして、判定部35は、輝度変化領域の大きさが第2の閾値S2以上であれば、光変化有りと判定する。そのため、制御部3は、解析画像の検知領域内の急激な光変化の発生を検知することができる。なお、ここでいう急激な光変化は、解析画像の白とびに至らない程度の輝度変化や、明るい状態(高輝度)から暗い状態(低輝度)へと変化する場合の光変化も含んでいる。更には、急激でない光変化、例えば照明装置のフェードイン、フェードアウトに伴い、明るさが徐々に変化するようない光変化についても、判定部35が光変化有りと判定する構成であってもよい。   That is, when a sudden light change occurs due to switching of an operation mode to be controlled, which will be described later, or a disturbance in the detection region of the analysis image, the luminance change amount in the predetermined period T1 is compared with the first threshold value S1. The 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, the determination unit 35 determines that there is a light change if the size of the luminance change region is equal to or greater than the second threshold S2. 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). . Furthermore, it may be configured that the determination unit 35 determines that there is a light change even for a light change that does not change abruptly due to a light change that is not abrupt, for example, a fade-in / fade-out of the lighting device.

検知部31が人の存在の有無を検知する検知方法は、特に限定しない。例えば、解析画像のデータと背景画像のデータの差分により人の存在の有無を検知してもよく、フレーム間の解析画像のデータの差分により人の存在の有無を検知してもよい。   The detection method in which the detection part 31 detects the presence or absence of a person is not specifically limited. For example, the presence / absence of a person may be detected based on the difference between the analysis image data and the background image data, or the presence / absence of a person may be detected based on the difference between the analysis image data between frames.

判断部34は、通常、検知部31の人の存在の有無を検知する検知結果に基づいて、人の存在の有無を判断する。一方、判定部35が光変化有りと判定した場合、すなわち、急激な光変化が発生した場合、判断部34は、所定期間T2(第2の所定期間)において、検知部31の人の存在の有無の検知結果を採用しない。つまり、判断部34は、光変化有りと判定されると、所定期間T2の間は、検知部31の検知結果を採用しないで所定期間T2の開始前の判断結果を維持する。   The determination unit 34 normally determines the presence / absence of a person based on the detection result of the detection unit 31 detecting the presence / absence of a person. On the other hand, when the determination unit 35 determines that there is a light change, that is, when a sudden light change occurs, the determination unit 34 determines whether the person in the detection unit 31 is present during the predetermined period T2 (second predetermined period). Does not adopt the detection result. That is, when it is determined that there is a light change, the determination unit 34 maintains the determination result before the start of the predetermined period T2 without adopting the detection result of the detection unit 31 during the predetermined period T2.

所定期間T1は、例えば予め記憶部32に記憶される一定期間(例えば0.5秒間)でもよく、フレーム間の期間でもよい。なお、フレーム間の期間は、例えば0.033秒間であるが、それに限定しない。   The predetermined period T1 may be, for example, a predetermined period (for example, 0.5 seconds) stored in advance in the storage unit 32, or may be a period between frames. The period between frames is, for example, 0.033 seconds, but is not limited thereto.

所定期間T2は、例えば急激な光変化が発生する期間に相当する期間である。すなわち、所定期間T2は、例えば判定部35が光変化有りと判定する時から、光変化から回復した(つまり、判定部35が光変化有りと判定しなくなる)時まで、の期間に相当する。   The predetermined period T2 is a period corresponding to a period in which a rapid light change occurs, for example. That is, the predetermined period T2 corresponds to, for example, a period from when the determination unit 35 determines that there is a light change to when it recovers from the light change (that is, when the determination unit 35 does not determine that there is a light change).

図2は、検知装置100の動作の一例を示すフローチャートである。   FIG. 2 is a flowchart illustrating an example of the operation of the detection apparatus 100.

ステップS21において、導出部33は、解析画像の検知領域内において、所定期間T1における輝度変化量が第1の閾値S1以上である輝度変化領域の大きさを導出し、ステップS22に進む。なお、解析画像の検知領域内において、所定期間T1における輝度変化量が第1の閾値S1未満である場合には、輝度変化領域の大きさを導出しない。   In step S21, the deriving unit 33 derives the size of the luminance change area in which the luminance change amount in the predetermined period T1 is equal to or greater than the first threshold S1 in the analysis image detection area, and the process proceeds to step S22. Note that, in the detection region of the analysis image, when the luminance change amount in the predetermined period T1 is less than the first threshold S1, the size of the luminance change region is not derived.

ステップS22において、判定部35は、輝度変化領域の大きさが第2の閾値S2以上の場合(ステップS22のYES)、光変化有りと判定し、ステップS23に進む。輝度変化領域の大きさが第2の閾値S2未満の場合(ステップS22のNO)、ステップS21に戻って、導出部33は、解析画像の検知領域内において、所定期間T1における輝度変化量が第1の閾値S1以上である輝度変化領域の大きさを導出する。   In step S22, when the size of the luminance change region is equal to or larger than the second threshold value S2 (YES in step S22), the determination unit 35 determines that there is a light change and proceeds to step S23. If the size of the brightness change area is less than the second threshold S2 (NO in step S22), the process returns to step S21, and the deriving unit 33 determines that the brightness change amount in the predetermined period T1 is the first in the analysis image detection area. The size of the luminance change area that is equal to or greater than the threshold value S1 is derived.

なお、輝度変化領域の大きさの導出方法について、特に限定せず、導出部33は、例えば、輝度変化領域を構成する画素の数を輝度変化領域の大きさとして導出してもよく、当該画素の面積の合計を輝度変化領域の大きさとしてもよい。   Note that the method for deriving the size of the luminance change region is not particularly limited, and the deriving unit 33 may derive, for example, the number of pixels constituting the luminance change region as the size of the luminance change region. The total area may be the size of the luminance change region.

ステップS23において、判断部34は、判定部35が光変化有りと判定したとき、所定期間T2において、検知部31の検知結果を採用しない。つまり、判定部35で光変化有りと判定されてステップS23に進むと、判断部34は、所定期間T2が経過するまでは、検知部31の検知結果を採用せずに所定期間T2の開始前の判断結果を維持する。   In step S23, when the determination unit 35 determines that there is a light change, the determination unit 34 does not employ the detection result of the detection unit 31 in the predetermined period T2. That is, when the determination unit 35 determines that there is a light change and proceeds to step S23, the determination unit 34 does not adopt the detection result of the detection unit 31 until the predetermined period T2 elapses and before the start of the predetermined period T2. Maintain the judgment result.

ステップS23において、所定期間T2が過ぎると(ステップS23のYES)、判断部34は、検知部31の人の存在の有無の検知結果に基づいて、人の存在の有無を判断する(ステップS24)。   In step S23, when the predetermined period T2 has passed (YES in step S23), the determination unit 34 determines the presence / absence of a person based on the detection result of the presence / absence of the person in the detection unit 31 (step S24). .

なお、検知部31は、ステップS21〜S24と並行して撮像部2が撮像した解析画像の検知領域内の人の存在の有無を検知している。これに限らず、例えば、定期的にステップS21〜S24を行うのではなく、検知部31が、撮像部2が撮像した解析画像の検知領域内に人の存在があることを検知したときに、ステップS21〜S24を行うようにしてもよい。この場合、定期的にステップS21〜S24を行う場合に比べて、検知装置100を省電力化することができる。また、判断部34が、検知部31の検知結果に基づいて、人の存在があると判断したときに、ステップS21〜S24を行うようにしてもよい。   In addition, the detection part 31 is detecting the presence or absence of the person in the detection area | region of the analysis image which the imaging part 2 imaged in parallel with step S21-S24. For example, instead of periodically performing steps S21 to S24, when the detection unit 31 detects that there is a person in the detection region of the analysis image captured by the imaging unit 2, Steps S21 to S24 may be performed. In this case, it is possible to save the power of the detection device 100 as compared with the case where steps S21 to S24 are periodically performed. Further, when the determination unit 34 determines that there is a person based on the detection result of the detection unit 31, steps S <b> 21 to S <b> 24 may be performed.

検知システム120は、上記検知装置100と、制御対象となる負荷5と、を有する。   The detection system 120 includes the detection device 100 and a load 5 to be controlled.

すなわち、検知システム120は、撮像部2と、検知部31と、判断部34と、導出部33と、判定部35と、制御対象となる負荷5と、を備える。検知部31は、撮像部2が撮像した解析画像の検知領域内の人の存在の有無を検知する。判断部34は、検知部31の検知結果に基づいて、人の存在の有無を判断する。導出部33は、上記検知領域内において所定期間T1における輝度変化量が第1の閾値S1以上である輝度変化領域の大きさを導出する。判定部35は、上記輝度変化領域の大きさが第2の閾値S2以上であれば光変化有りと判定する。判定部35が上記光変化有りと判定した場合、所定期間T2において、判断部34が検知部31の検知結果を採用しないで所定期間T2の開始前の判断結果を維持する。   That is, the detection system 120 includes the imaging unit 2, the detection unit 31, the determination unit 34, the derivation unit 33, the determination unit 35, and the load 5 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. The determination unit 34 determines the presence or absence of a person based on the detection result of the detection unit 31. The deriving unit 33 derives the size of the luminance change area in which the luminance change amount in the predetermined period T1 is equal to or greater than the first threshold S1 in the detection area. The determination unit 35 determines that there is a light change if the size of the luminance change region is equal to or greater than the second threshold S2. When the determination unit 35 determines that the light change is present, the determination unit 34 maintains the determination result before the start of the predetermined period T2 without adopting the detection result of the detection unit 31 in the predetermined period T2.

なお、検知システム120において、例えば検知部31を検知装置100に設けず、検知装置100に外付けしてもよい。また、検知システム120は、検知装置100が、判断部34の人の存在の有無の判断結果に基づいて、直接的に負荷5を制御するように構成されていてもよいし、検知装置100が送信部を更に有していてもよい。前者の場合、検知装置100の制御部3が、判断部34の人の存在の有無の判断結果に基づいて、制御対象である負荷5を直接的に制御する。後者の場合、送信部が、判断部34の人の存在の有無の判断結果に基づいて、制御対象に制御信号を送信する。つまり、送信部は、判断部34から判断結果を取得し、この判断結果に基づく制御信号を、制御対象である負荷5に送信することで、負荷5を制御する。送信部は、制御部3に外付けされていてもよいし、制御部3に含まれていてもよい。また、送信部は、検知装置100とは別に設けられ、検知装置100および負荷5と共に検知システム120を構成してもよい。   In the detection system 120, for example, the detection unit 31 may be externally attached to the detection device 100 without being provided in the detection device 100. In addition, the detection system 120 may be configured such that the detection device 100 directly controls the load 5 based on the determination result of the presence / absence of a person in the determination unit 34, or the detection device 100 You may further have a transmission part. In the former case, the control unit 3 of the detection device 100 directly controls the load 5 to be controlled based on the determination result of the presence or absence of the person in the determination unit 34. In the latter case, the transmission unit transmits a control signal to the control target based on the determination result of the presence / absence of the person in the determination unit 34. That is, the transmission unit acquires the determination result from the determination unit 34, and transmits the control signal based on the determination result to the load 5 that is the control target, thereby controlling the load 5. The transmission unit may be externally attached to the control unit 3 or may be included in the control unit 3. Further, the transmission unit may be provided separately from the detection device 100 and may constitute the detection system 120 together with the detection device 100 and the load 5.

負荷5は、少なくとも「消灯」と、「点灯」と、の2つの動作モードを有する照明装置であると想定するが、これに限定するのもではない。例えば、空調機器(室内の温湿度を調整する空調設備)、調理機器等のように、少なくとも2つの動作モードを有する電気機器であればよい。   Although it is assumed that the load 5 is a lighting device having at least two operation modes of “light-off” and “light-on”, the present invention is not limited to this. For example, it may be an electric device having at least two operation modes such as an air conditioner (air conditioner for adjusting indoor temperature and humidity), a cooking device, and the like.

検知装置100は、判断部34が人の存在があると判断した場合、負荷5に対して「点灯」を指示する制御信号を送信する。そして、検知装置100は、判断部34が人の存在がないと判断した場合、負荷5に対して「消灯」を指示する制御信号を送信する。なお、検知装置100から負荷5への制御信号の送信方法は特に限定しない。例えば、検知装置100は、負荷5に対して直接的に制御信号を送信してもよいし、中継器を経由して送信してもよい。   When the determination unit 34 determines that there is a person, the detection apparatus 100 transmits a control signal instructing “lighting” to the load 5. Then, when the determination unit 34 determines that there is no person, the detection device 100 transmits a control signal that instructs the load 5 to “turn off”. In addition, the transmission method of the control signal from the detection apparatus 100 to the load 5 is not particularly limited. For example, the detection apparatus 100 may transmit the control signal directly to the load 5 or may transmit it via a repeater.

負荷5は、検知装置100から「点灯」を指示する制御信号を受信すると、「消灯」の動作モードから「点灯」の動作モードに切り替える。その際に、撮像部2が撮像する解析画像に急激な光変化が発生してしまう。その際に、検知部31は、人を検知することができない、または誤検知してしまう可能性がある。   When the load 5 receives a control signal instructing “lighting” from the detection device 100, the load 5 switches from the “lighting off” operation mode to the “lighting” operation mode. At that time, an abrupt light change occurs in the analysis image captured by the imaging unit 2. At that time, the detection unit 31 may not be able to detect a person or may be erroneously detected.

そこで、検知装置100および検知システム120は、上述したように、判定部35が光変化有りと判定した場合、所定期間T2において判断部34が検知部31の検知結果を採用しない。したがって、負荷5の動作モードの切り替えや外乱により解析画像に急激な光変化が発生する際、検知部31による検出対象の検知に誤りが発生しても、それに影響され難く、判断部34は人の存在の有無を判断することができる。よって、検知装置100および検知システム120は、解析画像の検知領域内において急激な光変化により例えば白とび等が発生しても、人の存在の有無を誤判断するのを抑制することができる。   Therefore, as described above, in the detection device 100 and the detection system 120, when the determination unit 35 determines that there is a light change, the determination unit 34 does not adopt the detection result of the detection unit 31 in the predetermined period T2. Therefore, when an abrupt light change occurs in the analysis image due to switching of the operation mode of the load 5 or due to disturbance, even if an error occurs in detection of the detection target by the detection unit 31, it is not easily affected by this. It can be determined whether or not there is. Therefore, the detection device 100 and the detection system 120 can suppress erroneous determination of the presence or absence of a person even if, for example, overexposure occurs due to a rapid light change in the detection region of the analysis image.

また、負荷5の動作モードの切り替えや外乱による解析画像の急激な光変化は、ある程度の期間が経過すれば、落ち着く。そこで、判断部34は、上述の急激な光変化が発生する期間に相当する所定期間T2において、人の存在の有無の検知結果を採用しないことで、上述の急激な光変化がなくなると、引き続き、検知部31の検知結果に基づいて人の存在の有無を判断することができる。すなわち、判断部34は、判定部35が光変化有りと判定した場合、所定期間T2が経過すると、検知部31の検知結果に基づく人の存在の有無の判断を再開する。よって、検知装置100および検知システム120は、より精度高く人の存在の有無を判断することができる。   In addition, the rapid light change of the analysis image due to switching of the operation mode of the load 5 or disturbance is settled after a certain period of time. Therefore, the determination unit 34 does not adopt the detection result of the presence / absence of a person in the predetermined period T2 corresponding to the period in which the above-described rapid light change occurs, so that when the above-described rapid light change is eliminated, The presence / absence of a person can be determined based on the detection result of the detection unit 31. That is, when the determination unit 35 determines that there is a light change, the determination unit 34 resumes the determination of the presence of a person based on the detection result of the detection unit 31 when the predetermined period T2 has elapsed. Therefore, the detection device 100 and the detection system 120 can determine the presence or absence of a person with higher accuracy.

なお、制御部3が、検知部31、記憶部32、導出部33、判断部34および判定部35を備えるように説明しているが、これに限定しない。例えば、記憶部32が制御部3に外付けされていてもよい。   In addition, although the control part 3 is demonstrated to be provided with the detection part 31, the memory | storage part 32, the derivation | leading-out part 33, the determination part 34, and the determination part 35, it is not limited to this. For example, the storage unit 32 may be externally attached to the control unit 3.

また、判定部35が光変化有りと判定した場合、所定期間T2において、判断部34が検知部31の人の存在の有無の検知結果を採用しないと説明したが、判定部35が光変化有りと判定した場合、所定期間T2において、検知部31が検知動作を停止してもよい。この場合、検知部31が検知動作を停止しているため、解析画像の検知領域内において急激な光変化により例えば白とび等が発生しても、人の存在の有無を誤判断するのを抑制することができる。   In addition, when the determination unit 35 determines that there is a light change, it has been described that the determination unit 34 does not adopt the detection result of the presence or absence of a person in the detection unit 31 in the predetermined period T2, but the determination unit 35 has a light change. If it is determined that, the detection unit 31 may stop the detection operation in the predetermined period T2. In this case, since the detection unit 31 stops the detection operation, even if, for example, overexposure occurs due to a rapid light change in the detection region of the analysis image, it is possible to suppress erroneous determination of the presence of a person. can do.

また、判定部35が光変化ありと判定する場合、撮像部2は、フレームレートを上げてもよい。つまり、検知装置100は、所定期間T2において、撮像部2のフレームレートを上げるように構成されていてもよい。撮像部2は、フレームレートを上げることで、フィードバックする期間を短縮することができるため、急激な光変化が発生するときから急激な光変化が回復するまでの期間を短縮することができる。   Further, when the determination unit 35 determines that there is a light change, the imaging unit 2 may increase the frame rate. That is, the detection apparatus 100 may be configured to increase the frame rate of the imaging unit 2 during the predetermined period T2. Since the imaging unit 2 can shorten the feedback period by increasing the frame rate, the imaging unit 2 can shorten the period from when the rapid light change occurs until the rapid light change is recovered.

また、検知装置100および検知システム120の使用環境、使用目的に応じて、所定期間T2を、急激な光変化が発生する期間より短い期間にしてもよく、急激な光変化が発生する期間より長い期間にしてもよい。所定期間T2が急激な光変化が発生する期間より短い期間であったとしても、所定期間T2を全く設けない場合と比較して、急激な光変化の影響を受ける期間を短くすることができ、人の存在の有無を誤判断するのを抑制することができる。   Further, the predetermined period T2 may be shorter than the period in which the rapid light change occurs, or longer than the period in which the rapid light change occurs, depending on the use environment and purpose of use of the detection device 100 and the detection system 120. It may be a period. Even if the predetermined period T2 is shorter than the period in which the rapid light change occurs, the period affected by the rapid light change can be shortened compared to the case where the predetermined period T2 is not provided at all. It is possible to suppress erroneous determination of the presence or absence of a person.

また、所定期間T2は、急激な光変化が発生する期間より長い期間であるとき、判断部34は、急激な光変化が終了した場合、直ちにではなく期間(時間)をおいてから検知部31の人の存在の有無の検知結果に基づく人の存在の有無の判断を再開することになる。つまり、判断部34は、急激な光変化の終了後、直ちに検知部31の検知結果を採用するのではなく、期間をおいて検知部31の検知結果に基づいて人の存在の有無を判断することで、より精度高く人の存在の有無を判断することができる。   Further, when the predetermined period T2 is longer than the period in which the rapid light change occurs, the determination unit 34 waits for a period (time) instead of immediately after the rapid light change is finished. The determination of the presence / absence of the person based on the detection result of the presence / absence of the person is resumed. That is, the determination unit 34 does not immediately adopt the detection result of the detection unit 31 after the end of the rapid light change, but determines the presence or absence of a person based on the detection result of the detection unit 31 after a period of time. Thus, the presence or absence of a person can be determined with higher accuracy.

また、所定期間T2は、予め記憶部32に記憶されていると説明したが、その限りではない。例えば判定部35は、光変化有りと判定した後に、光変化の終了を判定し、判定部35が光変化有りと判定した時から光変化が終了すると判定した時までの期間を所定期間T2としてもよい。この場合、検知装置100は、周囲環境の変化に応じて所定期間T2の長さを調整することができる。つまり、この場合においては、所定期間T2は、判定部35が光変化有りと判定した時から光変化が終了すると判定した時までの期間、というように予め決められた(所定の)期間である。このように、所定期間T2は、予め決められた(所定の)長さの期間である必要はなく、可変長の期間であってもよい。   Moreover, although the predetermined period T2 has been described as being stored in the storage unit 32 in advance, the present invention is not limited thereto. For example, after determining that there is a light change, the determination unit 35 determines the end of the light change, and the period from when the determination unit 35 determines that there is a light change until the time when the light change is determined is defined as a predetermined period T2. Also good. In this case, the detection apparatus 100 can adjust the length of the predetermined period T2 according to a change in the surrounding environment. In other words, in this case, the predetermined period T2 is a predetermined (predetermined) period such as a period from when the determination unit 35 determines that there is a light change to when it is determined that the light change ends. . Thus, the predetermined period T2 does not have to be a predetermined (predetermined) length, and may be a variable-length period.

また、上述の光変化の終了を判定する手段について、特に限定しないが、例えば、判定部35は、以下のようにして光変化の終了を判定できる。つまり、導出部33が所定期間T2において、解析画像の検知領域内の所定期間T1における輝度変化量が第3の閾値S3以下である領域の大きさが第2の閾値以上であれば、判定部35は、光変化が終了すると判定できる。または、判定部35は、撮像部2の利得の回復状況と、撮像部2の露光期間と、解析画像の検知領域内の輝度値と、に基づいて光変化の終了を判定してもよい。   The means for determining the end of the light change is not particularly limited. For example, the determination unit 35 can determine the end of the light change as follows. That is, if the size of the region in which the luminance change amount in the detection period of the analysis image in the predetermined period T1 in the predetermined period T1 is equal to or smaller than the third threshold S3 in the predetermined period T2, the determination unit 35 can determine that the light change is completed. Alternatively, the determination unit 35 may determine the end of the light change based on the gain recovery state of the imaging unit 2, the exposure period of the imaging unit 2, and the luminance value in the detection region of the analysis image.

要するに、判定部35は、所定期間T2において、検知領域内の所定期間T1における輝度変化量が第3の閾値S3以下である非変化領域の大きさが第2の閾値S2以上であれば、上記光変化の終了と判定してもよい。この場合、所定期間T2は、判定部35が上記光変化有りと判定する時から判定部35が上記光変化の終了と判定する時までの期間であることが好ましい。   In short, if the size of the non-change area in which the luminance change amount in the detection period in the predetermined period T1 in the predetermined period T1 is equal to or smaller than the third threshold S3 in the predetermined period T2 is greater than or equal to the second threshold S2. It may be determined that the light change has ended. In this case, the predetermined period T2 is preferably a period from the time when the determination unit 35 determines that the light change is present to the time when the determination unit 35 determines that the light change is completed.

(実施形態2)
以下、本発明の実施形態2に係る検知装置200および検知システム220について図3、図4を用いて説明する。検知装置200および検知システム220は、検知装置100および検知システム120とは、検知部31が人の存在があると検知したとき、検知した人を囲む存在領域を作成する作成部36を制御部3が更に有する点と、判断部34の動作と、が異なる。なお、実施形態1と同様の構成については、同符号を付して説明を適宜省略する。
(Embodiment 2)
Hereinafter, the detection device 200 and the detection system 220 according to Embodiment 2 of the present invention will be described with reference to FIGS. 3 and 4. The detection device 200 and the detection system 220 are different from the detection device 100 and the detection system 120 in that when the detection unit 31 detects the presence of a person, the control unit 3 creates a creation unit 36 that creates a presence area surrounding the detected person. And the operation of the determination unit 34 are different. In addition, about the structure similar to Embodiment 1, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

図3は、検知装置200および検知システム220のブロック図である。図3に示すように、制御部3は、更に作成部36を有する。   FIG. 3 is a block diagram of the detection device 200 and the detection system 220. As shown in FIG. 3, the control unit 3 further includes a creation unit 36.

作成部36は、検知部31が人の存在があることを検知したとき、解析画像の検知領域内における当該人の幅、高さに基づいて、当該人を囲むように、長方形状の存在領域を解析画像の検知領域内に作成する。作成部36は、1フレーム毎に存在領域を作成してもよい。また、作成部36は、所定数のフレーム毎に存在領域を作成してもよい。   When the detection unit 31 detects the presence of a person, the creation unit 36 surrounds the person based on the width and height of the person in the detection area of the analysis image. Is created in the detection region of the analysis image. The creation unit 36 may create an existence area for each frame. Further, the creating unit 36 may create an existing area for each predetermined number of frames.

作成部36は、判定部35が光変化有りと判定した場合、判定部35が光変化有りと判定する直前に作成部36が作成した存在領域に基づいて所定期間T2以上の長さの所定期間T3(第3の所定期間)に人が存在していると仮想する仮想存在領域を作成する。   When the determination unit 35 determines that there is a light change, the creation unit 36 determines a predetermined period of time equal to or longer than the predetermined period T2 based on the existence region created by the creation unit 36 immediately before the determination unit 35 determines that there is a light change. A virtual existence area that is virtual when a person exists at T3 (third predetermined period) is created.

なお、存在領域や仮想存在領域の形状は、長方形状に限定するものではない。例えば、菱形でもよい。   Note that the shape of the existence area and the virtual existence area is not limited to a rectangular shape. For example, a rhombus may be used.

以下、作成部36は、判定部35が光変化有りと判定する直前に作成した存在領域を仮想存在領域とする、として説明するが、その限りではない。例えば、作成部36は、判定部35が光変化有りと判定する直前より前に作成した存在領域に基づいて仮想存在領域を作成してもよい。   Hereinafter, the creation unit 36 will be described assuming that the existence region created immediately before the determination unit 35 determines that there is a light change is a virtual existence region, but this is not a limitation. For example, the creation unit 36 may create a virtual existence region based on the existence region created before the determination unit 35 determines that there is a light change.

判断部34は、作成部36の結果をもとに人の存在の有無を判断する。すなわち、判断部34は、存在領域と仮想存在領域とのいずれか一方でも存在すれば、人の存在があると判断し、存在領域と仮想存在領域とが両方とも存在しなければ、人の存在がないと判断する。   The determination unit 34 determines the presence or absence of a person based on the result of the creation unit 36. That is, the determination unit 34 determines that there is a person if either the existence area or the virtual existence area exists, and if both the existence area and the virtual existence area do not exist, the existence of the person is determined. Judge that there is no.

図4は、検知装置200の動作の一例を示すフローチャートである。なお、ステップS41、S45は、図2のステップS21、S24と同様である。   FIG. 4 is a flowchart illustrating an example of the operation of the detection device 200. Steps S41 and S45 are the same as steps S21 and S24 in FIG.

ステップS42において、ステップS41により導出部33が導出した輝度変化領域の大きさがS2以上の場合(ステップS42のYES)、判定部35は、光変化ありと判定し、ステップS44に進む。輝度変化領域の大きさが第2の閾値S2未満の場合(ステップS42のNO)、ステップS41に戻って、導出部33は、引き続き輝度変化領域の大きさを導出する。   In step S42, when the size of the luminance change region derived by the deriving unit 33 in step S41 is greater than or equal to S2 (YES in step S42), the determination unit 35 determines that there is a light change and proceeds to step S44. When the size of the brightness change area is less than the second threshold value S2 (NO in step S42), the process returns to step S41, and the deriving unit 33 continues to derive the size of the brightness change area.

ステップS44において、判断部34は、所定期間T2において、検知部31の検知結果を採用しない(ステップS44a)。そして、作成部36は、判定部35が光変化有りと判定する直前に作成した、検知部31が検出した人の存在領域を当該人の仮想存在領域として作成する(ステップS44b)。   In step S44, the determination unit 34 does not employ the detection result of the detection unit 31 in the predetermined period T2 (step S44a). Then, the creation unit 36 creates the person's presence area detected by the detection unit 31 created immediately before the determination unit 35 determines that there is a light change as the virtual existence area of the person (step S44b).

なお、ステップS44bは、ステップS44aと同時に行ってもよい。   Note that step S44b may be performed simultaneously with step S44a.

ステップS44において、所定期間T2が過ぎると(ステップS44のYES)、判断部34は、検知部31の人の存在の有無の検知結果に基づいて、人の存在の有無を判断する(ステップS45)。   In step S44, when the predetermined period T2 has passed (YES in step S44), the determination unit 34 determines the presence / absence of a person based on the detection result of the presence / absence of the person in the detection unit 31 (step S45). .

ステップS46において、所定期間T2以上の長さの所定期間T3を経過していなければ(ステップS46のNO)、ステップS45に戻る。   In step S46, if the predetermined period T3 longer than the predetermined period T2 has not elapsed (NO in step S46), the process returns to step S45.

ステップS46において、所定期間T3が過ぎる(ステップS46のYES)と、作成部36は、ステップS44bで作成した仮想存在領域を解除(ステップS48)して、ステップS41に戻る。   In step S46, when the predetermined period T3 has passed (YES in step S46), the creating unit 36 releases the virtual existence area created in step S44b (step S48) and returns to step S41.

なお、所定期間T2と所定期間T3とは、同時にカウントを開始してもよいし、例えば所定期間T2が終了してから所定期間T3´をカウントし始めてもよい。この場合、所定期間T3´の長さを所定期間T3の長さから所定期間T2の長さを引いた長さにすればよい。   The predetermined period T2 and the predetermined period T3 may start counting simultaneously, or may start counting the predetermined period T3 ′ after the predetermined period T2 ends, for example. In this case, the length of the predetermined period T3 ′ may be set to a length obtained by subtracting the length of the predetermined period T2 from the length of the predetermined period T3.

所定期間T3が所定期間T2より長い場合、所定期間T2が終了後、すなわち急激な光変化の終了後、作成部36は、直ちに仮想存在領域を解除するのではなく、ある程度の期間を経てから解除する。そのため、所定期間T2が終了後、検知部31が人の存在がないと検知しても、判断部34は、直ちに人の存在がないと判断するのではなく、仮想存在領域が解除されて初めて人の存在がないと判断する。これにより、急激な光変化の終了後、人が解析画像の検知領域内において滞在する、または動きが小さいときに検知部31が人の存在を検知できなくても、判断部34は、直ちには人の存在がないと判断しない。つまり、判断部34は、急激な光変化の終了後、仮想存在領域が解除されるまでに、検知部31が継続的に人の存在がないと検知した場合に、人の存在がないと判断する。それ故、検知装置200および検知システム220は、より精度高く人の存在の有無を判断することができる。   When the predetermined period T3 is longer than the predetermined period T2, after the predetermined period T2 ends, that is, after the rapid light change ends, the creation unit 36 does not immediately cancel the virtual existence area but releases it after a certain period of time. To do. Therefore, after the predetermined period T2 ends, even if the detection unit 31 detects that there is no person, the determination unit 34 does not immediately determine that there is no person, but only after the virtual existence area is released. Judge that there is no person. Thereby, after the end of the rapid light change, even if the person stays in the detection area of the analysis image or the movement is small, the determination unit 34 immediately detects the presence of the person. We do not judge that there is no person. That is, the determination unit 34 determines that there is no person when the detection unit 31 continuously detects that there is no person before the virtual existence area is released after the end of the rapid light change. To do. Therefore, the detection device 200 and the detection system 220 can determine the presence or absence of a person with higher accuracy.

すなわち、検知装置200は、更に、検知部31が人の存在があると検知した場合、検知した人を囲む存在領域を検知領域に作成する作成部36を有している。判定部35が光変化有りと判定した場合、作成部36は、判定部35が上記光変化有りと判定する前に作成した上記存在領域に基づいて所定期間T2以上の長さの所定期間T3に人が存在していると仮想する仮想存在領域を作成する。判断部34は、上記仮想存在領域が存在する場合に、人の存在があると判断する。   That is, the detection apparatus 200 further includes a creation unit 36 that creates an existence area surrounding the detected person in the detection area when the detection unit 31 detects that a person is present. When the determination unit 35 determines that there is a light change, the creation unit 36 performs a predetermined period T3 having a length equal to or longer than the predetermined period T2 based on the existence area created before the determination unit 35 determines that the light change is present. A virtual existence area that is virtual when a person exists is created. The determination unit 34 determines that there is a person when the virtual existence area exists.

要するに、作成部36は、検知部31が人の存在があると検知した場合、当該人の存在領域を作成する。また、作成部36は、判定部35が光変化有りと判定した場合、所定期間T3において、判定部35が光変化有りと判定する直前に作成部36が作成した存在領域に基づいて仮想存在領域を作成し、所定期間T3が過ぎると、作成した仮想存在領域を解除する。そして、判断部34は、仮想存在領域が存在すれば、人の存在があると判断する。そのため、検知装置200および検知システム220は、負荷5の動作モードの切り替えや外乱により解析画像に急激な光変化が発生する際、検知部31による検出対象の検知に誤りが発生しても、誤って人の存在がないと判断することを防ぐことができる。   In short, when the detection unit 31 detects that a person is present, the creation unit 36 creates the person's presence area. In addition, when the determination unit 35 determines that there is a light change, the creation unit 36 creates a virtual existence region based on the existence region created by the creation unit 36 immediately before the determination unit 35 determines that there is a light change in the predetermined period T3. When the predetermined period T3 has passed, the created virtual existence area is released. Then, the determination unit 34 determines that there is a person if the virtual existence area exists. Therefore, when the detection device 200 and the detection system 220 cause an abrupt light change in the analysis image due to switching of the operation mode of the load 5 or due to disturbance, the detection unit 31 may detect an error even if an error occurs in detection of the detection target. It can prevent judging that there is no person.

また、例えば、人が椅子に座っている場合等、人が解析画像の検知領域内に進入した後に、人の移動量、動き量が、解析画像の検知領域内に進入する際より小さくなることも想定される。例えば、作成部36が存在領域を作成した後に、人の移動量または動き量が所定の閾値よりも小さくなった場合には、検知部31は、存在領域内において、解析画像の検知領域内の他の領域より高い精度、例えば画素単位で人の存在の有無を検知してもよい。この場合、検知装置200および検知システム220は、より精度高く人の存在の有無を検知することができる。   In addition, for example, when a person is sitting on a chair, the amount of movement or movement of the person is smaller than when the person enters the detection area of the analysis image after entering the detection area of the analysis image. Is also envisaged. For example, when the movement amount or the movement amount of the person becomes smaller than a predetermined threshold after the creation unit 36 creates the existence region, the detection unit 31 within the detection region of the analysis image in the existence region. The presence or absence of a person may be detected with higher accuracy than other regions, for example, in units of pixels. In this case, the detection device 200 and the detection system 220 can detect the presence or absence of a person with higher accuracy.

なお、作成部36は、判定部35が光変化有りと判定する直前に作成した存在領域に基づいて、その存在領域より大きい領域を仮想存在領域として作成してもよい。また、作成部36は、存在領域の位置から人の移動方向に所定距離(例えば、10画素)だけずれた領域を仮想存在領域として作成してもよい。検知部31が検知した人が、所定期間T2において移動することも想定することができる。そこで、作成部36が存在領域より大きい領域、または存在領域の位置から人の移動方向に所定距離だけずれた領域を仮想存在領域として作成することで、検知部31は、より精度高く人の存在の有無を検知することができる。   Note that the creation unit 36 may create a region larger than the existence region as a virtual existence region based on the existence region created immediately before the determination unit 35 determines that there is a light change. Further, the creation unit 36 may create an area that is shifted from the position of the existence area by a predetermined distance (for example, 10 pixels) in the movement direction of the person as a virtual existence area. It can also be assumed that the person detected by the detection unit 31 moves in the predetermined period T2. Accordingly, the creation unit 36 creates an area larger than the existence area, or an area that is shifted from the position of the existence area by a predetermined distance in the movement direction of the person as a virtual existence area, so that the detection unit 31 can detect the presence of the person with higher accuracy. The presence or absence of can be detected.

なお、ステップS44aにおいて、判断部34は、判定部35が光変化有りと判定した場合、所定期間T2において、検知部31の検知結果を採用しないと説明したが、実施形態1と同様に、所定期間T2において、検知部31が検知動作を停止してもよい。   In step S44a, the determination unit 34 has described that the detection result of the detection unit 31 is not adopted in the predetermined period T2 when the determination unit 35 determines that there is a light change. In the period T2, the detection unit 31 may stop the detection operation.

(実施形態3)
以下、本発明の実施形態3に係る検知装置300および検知システム320について説明する。検知装置300および検知システム320は、主に検知装置200および検知システム220とは、導出部33が、検知部31が検知した人の仮想移動距離を導出する点と、作成部36の動作と、が異なる。導出部33は、所定期間T2が終了してから所定期間T3が終了するまでに間において、検知部31が人の存在があると検知した場合に、検知部31が検知した人の仮想移動距離を導出する。なお、実施形態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 are mainly different from the detection device 200 and the detection system 220 in that the deriving unit 33 derives the virtual movement distance of the person detected by the detection unit 31, the operation of the creation unit 36, Is different. When the detection unit 31 detects that there is a person between the end of the predetermined period T2 and the end of the predetermined period T3, the deriving unit 33 detects the virtual moving distance of the person detected by the detection unit 31 Is derived. In addition, about the structure similar to Embodiment 2, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

導出部33は、検知部31が人の存在の有無を検知するとともに、所定期間T4(第4の所定期間)における検知部31が検知した人の移動状況に基づいて当該人の移動速度を導出する。例えば、導出部33は、あるフレームにおける存在領域の中心と、当該フレームから所定期間T4が経ったフレームにおける存在領域の中心との間の距離を人の移動距離として導出し、人の移動距離を所定期間T4で割って得た値を当該人の移動速度とする。そして、導出部33は、導出した人の移動速度と所定期間T2とを掛け算して得た値を仮想移動距離とする。   The deriving unit 33 detects the presence / absence of a person, and derives the moving speed of the person based on the movement state of the person detected by the detecting unit 31 in the predetermined period T4 (fourth predetermined period). To do. For example, the deriving unit 33 derives the distance between the center of the existence area in a certain frame and the center of the existence area in a frame that has passed a predetermined period T4 from the frame as the movement distance of the person. The value obtained by dividing by the predetermined period T4 is defined as the movement speed of the person. Then, the deriving unit 33 sets a value obtained by multiplying the derived movement speed of the person by the predetermined period T2 as a virtual movement distance.

なお、所定期間T4は、予め記憶部32に記憶する一定期間(例えば0.2秒間)でもよいし、連続する2フレームの間隔(例えば0.033秒間)にしてもよい。   The predetermined period T4 may be a fixed period (for example, 0.2 seconds) stored in advance in the storage unit 32, or may be an interval between two consecutive frames (for example, 0.033 seconds).

また、導出部33は、判定部35が光変化ありと判定するまでに検知部31が検出した人の移動速度を定期的に更新してもよい。例えば、所定期間T4を連続する2フレームの間隔にする場合、導出部33は、フレーム間ごとに人の移動速度を導出して記憶部32に記憶し、判定部35が光変化ありと判定する直前に記憶された人の移動速度に基づいて仮想移動距離を導出する。   The deriving unit 33 may periodically update the movement speed of the person detected by the detection unit 31 until the determination unit 35 determines that there is a light change. For example, when the predetermined period T4 is set to an interval of two consecutive frames, the deriving unit 33 derives the movement speed of the person for each frame and stores it in the storage unit 32, and the determination unit 35 determines that there is a light change. A virtual movement distance is derived based on the movement speed of the person stored immediately before.

作成部36は、所定期間T2が終了した後に検知部31が人の存在があると検知したとき、検知領域に新たに存在領域を作成する。このとき、作成部36が新たに作成する存在領域(以下、「現存在領域」という)は、検知領域のうち所定期間T2において作成した仮想存在領域とは別の領域に作成される。そして、作成部36は、所定期間T2が終了した後に作成した現存在領域と仮想存在領域との距離を仮想移動距離と比較し、現存在領域と仮想存在領域との距離が仮想移動距離未満であれば、仮想存在領域を解除し、存在領域を残す。   When the detection unit 31 detects that there is a person after the predetermined period T2 ends, the creation unit 36 creates a new existence region in the detection region. At this time, the existence area (hereinafter referred to as “current existence area”) newly created by the creation unit 36 is created in an area different from the virtual existence area created in the predetermined period T2 in the detection area. Then, the creation unit 36 compares the distance between the current existence area and the virtual existence area created after the end of the predetermined period T2 with the virtual movement distance, and the distance between the current existence area and the virtual existence area is less than the virtual movement distance. If there is, release the virtual existence area and leave the existence area.

なお、現存在領域と仮想存在領域との距離の導出方法について、例えば、導出部33は、現存在領域の中心と仮想存在領域の中心との間の距離を現存在領域と仮想存在領域との距離として導出してもよい。また、導出部33は、仮想存在領域と現存在領域との最も距離が近い2点の間の距離を現存在領域と仮想存在領域との距離として導出してもよい。   As for the method for deriving the distance between the current existence area and the virtual existence area, for example, the deriving unit 33 calculates the distance between the center of the current existence area and the center of the virtual existence area between the current existence area and the virtual existence area. It may be derived as a distance. Further, the deriving unit 33 may derive the distance between the two points having the shortest distance between the virtual existence area and the current existence area as the distance between the current existence area and the virtual existence area.

図5は、検知装置300の動作の一例を示すフローチャートである。なお、ステップS51は、実施形態2のステップS45と同じである。すなわち、図5に示す検知装置300の動作のフローチャートは、実施形態2のステップS45の続きである。   FIG. 5 is a flowchart illustrating an example of the operation of the detection apparatus 300. Step S51 is the same as step S45 of the second embodiment. That is, the flowchart of the operation of the detection apparatus 300 illustrated in FIG. 5 is a continuation of step S45 of the second embodiment.

ステップS52において、検知部31が人の存在があると検知した場合(ステップS52のYES)、作成部36は、検知した人の存在領域(現存在領域)を作成し(ステップS53)、ステップS54に進む。そうでなければ(ステップS52のNO)、ステップS56に進む。   In step S52, when the detection unit 31 detects that there is a person (YES in step S52), the creation unit 36 creates a presence area (current existence area) of the detected person (step S53), and step S54. Proceed to Otherwise (NO in step S52), the process proceeds to step S56.

ステップS54において、存在領域(現存在領域)と仮想存在領域との距離が、仮想移動距離未満であれば(ステップS54のYES)、作成部36は、仮想存在領域を解除し(ステップS55)、ステップS56に進む。そうでなければ、ステップS56に進む。   In step S54, if the distance between the existence area (current existence area) and the virtual existence area is less than the virtual movement distance (YES in step S54), the creating unit 36 cancels the virtual existence area (step S55), Proceed to step S56. Otherwise, the process proceeds to step S56.

ステップS56において、判断部34は、作成部36が作成した存在領域(現存在領域)または仮想存在領域に基づいて人の存在の有無を判断する。すなわち、判断部34は、存在領域(現存在領域)と仮想存在領域との少なく一方が存在すれば、人の存在があると判断し、存在領域(現存在領域)と仮想存在領域とが両方とも存在しなければ、人の存在がないと判断する。   In step S <b> 56, the determination unit 34 determines the presence / absence of a person based on the existence area (current existence area) or virtual existence area created by the creation unit 36. That is, the determination unit 34 determines that there is a person if at least one of the existence area (current existence area) and the virtual existence area exists, and both the existence area (current existence area) and the virtual existence area are determined. If both do not exist, it is determined that there is no person.

検知装置300は、ステップS56の後に、引き続き検知部31により人の存在の有無を検知する。   After step S56, the detection apparatus 300 continues to detect the presence or absence of a person using the detection unit 31.

なお、所定期間T3が経過した後は、作成部36が仮想存在領域を解除するため、所定期間T2が終了した後に新たに作成された存在領域(現存在領域)が存在しなければ、判断部34は、人の存在がないと判断する。このとき、所定期間T3を所定期間T2より長く設定すれば、所定期間T2が終了後、すなわち、急激な光変化の期間が終了後、検知部31が人の存在がないと検知しても、判断部34は、直ちに人の存在がないとは判断しない。所定期間T2が終了後、すなわち、急激な光変化の期間が終了後、検知部31が人の存在がないと検知しても、判断部34は、ある程度の期間が経って継続的に人の存在がないと検知した場合に人の存在がないと判断する。   Note that the creation unit 36 releases the virtual existence area after the predetermined period T3 has elapsed. Therefore, if there is no newly created existence area (current existence area) after the predetermined period T2 ends, the determination unit 34 determines that there is no person. At this time, if the predetermined period T3 is set longer than the predetermined period T2, even if the detection unit 31 detects that there is no person after the predetermined period T2, that is, after the period of rapid light change, The determination unit 34 does not immediately determine that there is no person. Even after the predetermined period T2 ends, that is, after the period of rapid light change ends, even if the detection unit 31 detects that there is no person, the determination unit 34 continues to detect human beings after a certain period of time. When it detects that there is no existence, it judges that there is no person.

すなわち、上述したように、所定期間T2の終了後において、作成部36は、検知部31が人の存在があると検知した場合、検知領域内に存在領域を現存在領域として新たに作成することが好ましい。この場合に、導出部33は、更に、所定期間T4における人の移動速度を導出し、上記移動速度に基づいて所定期間T2における当該人の仮想移動距離を導出することが好ましい。この場合、所定期間T2の終了後において、作成部36は、上記現存在領域と、上記仮想存在領域と、の距離が上記仮想移動距離未満であれば、上記仮想存在領域を解除して上記現存在領域を残すことが好ましい。   That is, as described above, after the end of the predetermined period T2, when the detection unit 31 detects that there is a person, the generation unit 36 newly creates an existing region as the current existing region in the detection region. Is preferred. In this case, it is preferable that the deriving unit 33 further derives the movement speed of the person in the predetermined period T4 and derives the virtual movement distance of the person in the predetermined period T2 based on the movement speed. In this case, after the end of the predetermined period T2, if the distance between the current existence area and the virtual existence area is less than the virtual movement distance, the creation unit 36 cancels the virtual existence area and releases the existing existence area. It is preferable to leave the existing area.

あるいは、導出部33は、更に、判定部35が上記光変化有りと判定する前の人の移動速度を導出し、上記移動速度に基づいて所定期間T2における当該人の仮想移動距離を導出してもよい。この場合に、所定期間T2の終了後において、作成部36は、上記現存在領域と、上記仮想存在領域と、の距離が上記仮想移動距離未満であれば、上記仮想存在領域を解除して上記現存在領域を残すことが好ましい。   Alternatively, the deriving unit 33 further derives the movement speed of the person before the determination unit 35 determines that the light change is present, and derives the virtual movement distance of the person in the predetermined period T2 based on the movement speed. Also good. In this case, after the end of the predetermined period T2, if the distance between the current existence area and the virtual existence area is less than the virtual movement distance, the creation unit 36 releases the virtual existence area and It is preferable to leave the current presence area.

要するに、作成部36は、検知部31の検知結果に基づいて作成した存在領域(現存在領域)と仮想存在領域との距離が仮想移動距離未満であれば、仮想存在領域を解除する。これにより、検知装置300および検知システム320は、急激な光変化が発生した後に検知した人と、急激な光変化が発生する前に検知した人とは、同一な人であるかどうかが分かる。すなわち、検知装置300および検知システム320は、検知装置200および検知システム220と比べ、急激な光変化が発生した後に解析画像の検知領域内に複数人が存在しているとき、より精度高く複数人の存在の有無を検知することができる。   In short, the creation unit 36 releases the virtual existence region if the distance between the existence region (current existence region) created based on the detection result of the detection unit 31 and the virtual existence region is less than the virtual movement distance. Thereby, the detection apparatus 300 and the detection system 320 can know whether the person detected after the rapid light change occurs and the person detected before the sudden light change are the same person. That is, the detection apparatus 300 and the detection system 320 are more accurate than the detection apparatus 200 and the detection system 220 when a plurality of persons are present in the detection region of the analysis image after a rapid light change occurs. It is possible to detect the presence or absence of.

(実施形態4)
以下、本発明の実施形態4に係る検知装置400および検知システム420について説明する。検知装置400および検知システム420は、主に検知装置300および検知システム320とは、作成部36が、所定期間T2が終了してから所定期間T3が終了するまでに間において、仮想移動距離に基づいて仮想存在領域を広げる点、で異なる。なお、実施形態3と同様の構成については、同符号を付して説明を適宜省略する。
(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 are mainly different from the detection device 300 and the detection system 320 in that the creation unit 36 is based on the virtual moving distance between the end of the predetermined period T2 and the end of the predetermined period T3. Differ in that it expands the virtual existence area. In addition, about the structure similar to Embodiment 3, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

導出部33は、実施形態3と同じ手順で仮想移動距離を導出する。そして、作成部36は、所定期間T2が終了した場合、仮想存在領域を仮想移動距離の移動方向に仮想移動距離の相当分だけ広げる。なお、移動方向について、人の移動速度の方向を移動方向にしてもよく、人の移動速度の方向から推測できる移動方向範囲、例えば人の移動速度の方向から0°〜±90°の範囲を移動方向にしてもよい。その場合、人の移動速度の方向から0°〜±90°の範囲に、仮想存在領域を仮想移動距離の相当分だけ広げる。   The deriving unit 33 derives the virtual movement distance by the same procedure as that of the third embodiment. Then, when the predetermined period T <b> 2 ends, the creation unit 36 extends the virtual existence region in the movement direction of the virtual movement distance by an amount corresponding to the virtual movement distance. As for the moving direction, the direction of the moving speed of the person may be the moving direction, and a moving direction range that can be estimated from the direction of the moving speed of the person, for example, a range of 0 ° to ± 90 ° from the direction of the moving speed of the person. The moving direction may be set. In that case, the virtual existence area is extended by a part corresponding to the virtual movement distance in the range of 0 ° to ± 90 ° from the direction of the movement speed of the person.

作成部36は、所定期間T2が終了した後に検知部31が人の存在があると検知したとき、新たに存在領域(現存在領域)を作成する。そして、作成部36は、所定期間T2が終了した後に作成した存在領域(現存在領域)と領域が広げられた後の仮想存在領域との距離を仮想移動距離と比較し、仮想移動距離未満であれば、仮想存在領域を解除する。   When the detection unit 31 detects that there is a person after the predetermined period T2 ends, the creation unit 36 creates a new existence region (current existence region). Then, the creation unit 36 compares the distance between the existence area (the current existence area) created after the predetermined period T2 ends and the virtual existence area after the area is expanded with the virtual movement distance, and is less than the virtual movement distance. If there is, the virtual existence area is released.

図6は、検知装置400の動作の一例を示すフローチャートである。なお、ステップS61、S63〜S67は、図5のステップS51〜S56と同様である。   FIG. 6 is a flowchart illustrating an example of the operation of the detection apparatus 400. Steps S61 and S63 to S67 are the same as steps S51 to S56 in FIG.

ステップS62において、作成部36は、導出部33が導出した仮想移動距離に基づいて仮想存在領域を広げる。   In step S62, the creation unit 36 expands the virtual existence area based on the virtual movement distance derived by the deriving unit 33.

なお、ステップS62の順番を限定しない。ステップS62は、例えば、ステップS63とステップS64との間にあってもよい。すなわち、作成部36は、先に検知部31が人の存在の有無を検知してから、仮想移動距離に基づいて仮想存在領域を広げてもよい。また、ステップS62はステップS64とステップS65との間にあってもよい。   Note that the order of step S62 is not limited. Step S62 may be between step S63 and step S64, for example. That is, the creation unit 36 may expand the virtual existence area based on the virtual movement distance after the detection unit 31 detects the presence or absence of a person. Further, step S62 may be between step S64 and step S65.

ステップS65において、ステップS64で作成部36が作成した存在領域とステップS62で領域が広げられた仮想存在領域との距離が、仮想移動距離未満であれば(ステップS65のYES)、作成部36は、仮想存在領域を解除する(ステップS66)。   In step S65, if the distance between the existence region created by the creation unit 36 in step S64 and the virtual existence region expanded in step S62 is less than the virtual movement distance (YES in step S65), the creation unit 36 The virtual existence area is canceled (step S66).

すなわち、上述したように、導出部33は、更に、所定期間T4における人の移動速度を導出し、上記移動速度に基づいて所定期間T2における当該人の仮想移動距離を導出することが好ましい。この場合、所定期間T2の終了後において、作成部36は、上記仮想移動距離に基づいて上記仮想存在領域を広げることが好ましい。   That is, as described above, it is preferable that the deriving unit 33 further derives the movement speed of the person in the predetermined period T4 and derives the virtual movement distance of the person in the predetermined period T2 based on the movement speed. In this case, it is preferable that the creation unit 36 expands the virtual existence area based on the virtual movement distance after the end of the predetermined period T2.

あるいは、導出部33は、更に、判定部35が上記光変化有りと判定する前の人の移動速度に基づいて当該人の仮想移動距離を導出してもよい。この場合、所定期間T2の終了後において、作成部36は、上記仮想移動距離に基づいて上記仮想存在領域を広げることが好ましい。   Alternatively, the deriving unit 33 may derive the virtual moving distance of the person based on the moving speed of the person before the determining unit 35 determines that the light change is present. In this case, it is preferable that the creation unit 36 expands the virtual existence area based on the virtual movement distance after the end of the predetermined period T2.

要するに、導出部33は、判定部35が光変化ありと判定する前に検知部31が検知した人の所定期間T2における仮想移動距離を導出する。作成部36は、所定期間T2が終了した後、すなわち、判定部35が判定した光変化状態が終了した後、検知部31が検知した人の移動速度の方向に仮想移動距離に基づいて仮想存在領域を広げることで、より当該人の存在領域を特定することができる。それ故、検知装置400および検知システム420は、検知装置300および検知システム320と比べ、より精度高く人の存在の有無を検知することができる。   In short, the deriving unit 33 derives the virtual movement distance in the predetermined period T2 of the person detected by the detection unit 31 before the determination unit 35 determines that there is a light change. After the predetermined period T2 ends, that is, after the light change state determined by the determination unit 35 ends, the creation unit 36 virtually exists based on the virtual movement distance in the direction of the movement speed of the person detected by the detection unit 31. By expanding the area, it is possible to further specify the person's existing area. Therefore, the detection device 400 and the detection system 420 can detect the presence or absence of a person with higher accuracy than the detection device 300 and the detection system 320.

(実施形態5)
以下、本発明の実施形態5に係る検知装置500および検知システム520について図7〜図13を用いて説明する。検知装置500および検知システム520は、主に検知装置200および検知システム220とは、検知部31が移動検知モードおよび滞在検知モードを有する点と、作成部36の動作と、が異なる。なお、実施形態2と同様の構成については、同符号を付して説明を適宜省略する。
(Embodiment 5)
Hereinafter, a detection apparatus 500 and a detection system 520 according to Embodiment 5 of the present invention will be described with reference to FIGS. The detection device 500 and the detection system 520 are mainly different from the detection device 200 and the detection system 220 in that the detection unit 31 has a movement detection mode and a stay detection mode, and the operation of the creation unit 36. In addition, about the structure similar to Embodiment 2, the same code | symbol is attached | subjected and description is abbreviate | omitted suitably.

検知装置500および検知システム520では、作成部36は、検知部31が人の存在があると検知した場合に、検知した人を囲む存在領域を検知領域に作成する機能を有しているが、仮想存在領域を作成する機能は有しない。つまり、作成部36は、判定部35が光変化有りと判定した場合でも、判定部35が光変化有りと判定する直前に作成部36が作成した存在領域に基づいて仮想存在領域を作成しない。そのため、検知装置500および検知システム520は、仮想存在領域が存在する場合に、判断部34が人の存在があると判断する機能もない。   In the detection device 500 and the detection system 520, the creation unit 36 has a function of creating a presence region surrounding the detected person in the detection region when the detection unit 31 detects that there is a person. It does not have a function of creating a virtual existence area. That is, even when the determination unit 35 determines that there is a light change, the creation unit 36 does not create a virtual existence region based on the existence region created by the creation unit 36 immediately before the determination unit 35 determines that there is a light change. Therefore, the detection device 500 and the detection system 520 do not have a function for the determination unit 34 to determine that there is a person when a virtual existence region exists.

検知部31は、検知モードとして、解析画像の検知領域内における人の存在の有無を検知する移動検知モードと、検知領域内で停滞した存在領域からなる滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有する。そして、検知部31は、検知領域内に存在領域があり且つ移動検知モードで動作中に判定部35が光変化有りと判定した場合、少なくとも所定期間T2においては検知モードを移動検知モードから滞在検知モードに切り替える。   As the detection mode, the detection unit 31 is based on a movement detection mode that detects the presence or absence of a person in the detection area of the analysis image, and a person's movement amount in a stay area that is a stagnation in the detection area. A stay detection mode for detecting the presence or absence of a person. When the detection unit 31 determines that there is a presence region in the detection region and the determination unit 35 determines that there is a light change during operation in the movement detection mode, the detection mode is changed from the movement detection mode to the stay detection at least for a predetermined period T2. Switch to mode.

ここで、検知部31が移動検知モードで動作している限り、作成部36は、人が検知装置100の解析画像の検知領域内を移動するにつれて、存在領域の位置を更新することで、検知領域内の人の位置を存在領域にて追跡する。すなわち、移動検知モードにおいては、検知部31は、検知領域の全域を対象として人の存在の有無を検知し、検知領域内で人が大きく移動した場合でも、人の位置を追跡することで継続的に当該人の存在の有無を検知する。一方、滞在検知モードにおいては、検知部31は、検知領域内で停滞した存在領域である滞在領域、つまり検知領域内での位置が固定された存在領域である滞在領域内を対象として、人の存在の有無を検知する。よって、滞在検知モードにおいては、検知部31は、人が検知領域内の一箇所に止まっている(停滞している)状態にあっても、当該人の微動を検知することで、滞在領域内の人の存在の有無を検知できる。   Here, as long as the detection unit 31 operates in the movement detection mode, the creation unit 36 detects the position by updating the position of the existence region as the person moves within the detection region of the analysis image of the detection device 100. The position of a person in the area is tracked in the existing 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 a stay area that is stagnant in the detection area, that is, a stay area that is a presence area in which the 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 existing 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での移動検知モードにおける人の存在の有無の検知方法、つまり、作成部36での存在領域の作成に用いられる検知部31での人の存在の有無の検知方法は特に限定されず、従来の人検知の技術を用いてもよい。例えば、背景差分を用いて人の存在の有無を検知する手法でもよく、フレーム間差分を用いて解析画像の検知領域における人の動き量を導出することで人の存在の有無を検知する手法でもよい。   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 existence area in the creation unit 36 is particularly limited. Instead, a conventional human detection technique may be used. For example, it may be a method of detecting the presence of a person using background difference, or a method of detecting the presence of a person by deriving the amount of movement of the person in the detection area of the analysis image using a difference between frames. Good.

以下、検知部31の検知モードの切り替えについて、図8を用いて説明する。図8は、検知装置500の動作の一例を示すフローチャートである。   Hereinafter, switching of the detection mode of the detection unit 31 will be described with reference to FIG. FIG. 8 is a flowchart illustrating an example of the operation of the detection apparatus 500.

ステップS81において、検知部31は、移動検知モードでの動作、つまり検知領域内における人の存在の有無の検知を開始し、ステップS82に進む。ステップS82において、検知部31は、検知領域内における存在領域の有無も判断しており、検知領域内に存在領域があり且つ移動検知モードで動作中に判定部35が光変化有りと判定した場合にのみ、ステップS83に進む。ステップS82においては、検知部31は、判定部35から光変化の有無の判定結果を取得し、判定部35が光変化有りと判定しなければ(ステップS82のNO)、移動検知モードでの動作を継続する。検知部31が移動検知モードで動作中に判定部35が光変化有りと判定すると(ステップS82のYES)、検知部31は、少なくとも所定期間T2においては検知モードを移動検知モードから滞在検知モードに切り替え(ステップS83)、ステップS84に進む。ただし、ステップS82において、検知部31は、検知領域内における存在領域の有無も判断しており、検知領域内に存在領域があり且つ移動検知モードで動作中に判定部35が光変化有りと判定した場合にのみ、ステップS83に進む。なお、ここでは、所定期間T2は、判定部35が光変化有りと判定した時から光変化が終了すると判定した時までの期間、つまり可変長の期間であることとする。   In step S81, the detection unit 31 starts an operation in the movement detection mode, that is, detection of the presence or absence of a person in the detection area, and proceeds to step S82. In step S82, the detection unit 31 also determines the presence / absence of a presence region in the detection region, and when the determination unit 35 determines that there is a presence region in the detection region and the operation is being performed in the movement detection mode. Only, the process proceeds to step S83. In step S82, the detection unit 31 acquires the determination result of the presence or absence of a light change from the determination unit 35. If the determination unit 35 does not determine that there is a light change (NO in step S82), the operation in the movement detection mode. Continue. If the determination unit 35 determines that there is a light change while the detection unit 31 is operating in the movement detection mode (YES in step S82), the detection unit 31 changes the detection mode from the movement detection mode to the stay detection mode at least for a predetermined period T2. Switching (step S83), the process proceeds to step S84. However, in step S82, the detection unit 31 also determines the presence / absence of a presence region in the detection region, and the determination unit 35 determines that there is a presence region in the detection region and the light is changed while operating in the movement detection mode. Only in the case that the process has been performed, the process proceeds to step S83. Here, it is assumed that the predetermined period T2 is a period from when the determination unit 35 determines that there is a light change to when it is determined that the light change ends, that is, a variable length period.

ステップS84において、検知部31は、判定部35から光変化の有無の判定結果を取得し、判定部35が光変化有りと判定している(ステップS84のYES)間は、滞在検知モードでの動作を継続する。つまり、検知部31は、少なくとも判定部35が光変化有りと判定した時から光変化が終了すると判定した時までの期間、つまり所定期間T2においては、検知モードを滞在検知モードに維持する。判断部34は、光変化有りと判定されると、所定期間T2の間は、検知部31の検知結果を採用しないで所定期間T2の開始前の判断結果を維持するので、所定期間T2においては、検知部31の検知モードにかかわらず判断部34の判断結果は変化しない。   In step S84, the detection unit 31 acquires the determination result of the presence / absence of light change from the determination unit 35, and the determination unit 35 determines that there is a light change (YES in step S84) in the stay detection mode. Continue operation. In other words, the detection unit 31 maintains the detection mode in the stay detection mode in at least a period from when the determination unit 35 determines that there is a light change to when it is determined that the light change ends, that is, for a predetermined period T2. If it is determined that there is a light change, the determination unit 34 maintains the determination result before the start of the predetermined period T2 without adopting the detection result of the detection unit 31 during the predetermined period T2. Regardless of the detection mode of the detection unit 31, the determination result of the determination unit 34 does not change.

光変化が終了したと判定部35が判定すると(ステップS84のNO)、所定期間T2が終了するため、判断部34は、滞在検知モードで動作中の検知部31の検知結果に基づいて、人の存在の有無を判断する(ステップS85)。詳しくは後述するが、検知装置500においては、判断部34は、検知部31が移動検知モードで人の存在が有ると判断すれば「移動状態」と判断し、検知部31が滞在検知モードで人の存在が有ると判断すれば「滞在状態」と判断する。つまり、判断部34の判断結果は検知部31の検知モードによって異なる。そのため、検知部31が滞在検知モードで動作中においては、判断部34は、「滞在状態」か否かを判断する滞在検知を行い、この状態で、検知部31が人の存在が有ることを検知すれば(ステップS85のYES)、「滞在状態」と判断する(ステップS86)。   When the determination unit 35 determines that the light change has ended (NO in step S84), the predetermined period T2 ends. Therefore, the determination unit 34 is based on the detection result of the detection unit 31 operating in the stay detection mode. It is determined whether or not there is (step S85). As will be described in detail later, in the detection device 500, the determination unit 34 determines “moving state” when the detection unit 31 determines that there is a person in the movement detection mode, and the detection unit 31 operates in the stay detection mode. If it is determined that there is a person, it is determined as “stay state”. That is, the determination result of the determination unit 34 varies depending on the detection mode of the detection unit 31. Therefore, when the detection unit 31 is operating in the stay detection mode, the determination unit 34 performs stay detection to determine whether or not the “stay state” is present, and in this state, the detection unit 31 indicates that there is a person. If it is detected (YES in step S85), it is determined as “stay state” (step S86).

一方、検知部31は、滞在検知モードにおいて滞在領域内に人の存在がないと判定した場合に(ステップS85のNO)、検知モードを滞在検知モードから移動検知モードに切り替え(ステップS87)、ステップS82に戻る。詳しくは後述するが、検知部31は、滞在検知モードにおいて人の存在がない状態が所定時間Qにわたって継続すると、滞在領域内に人の存在がないと判定し、滞在検知モードから移動検知モードへ切り替わる。   On the other hand, when it is determined that there is no person in the stay area in the stay detection mode (NO in step S85), the detection unit 31 switches the detection mode from the stay detection mode to the movement detection mode (step S87). Return to S82. As will be described in detail later, when the state in which no person is present in the stay detection mode continues for a predetermined time Q, the detection unit 31 determines that there is no person in the stay region, and shifts from the stay detection mode to the movement detection mode. Switch.

ところで、導出部33は、所定期間における滞在領域内での人の動き量を導出する。また、導出部33は、所定期間における検知領域内での存在領域の位置変化量を導出する。なお、説明の便宜上、上述の「所定期間」を撮像部2が撮像した解析画像の連続した2つのフレームのフレーム間隔として説明するが、その限りではなく、例えば予め設定した期間を用いてもよい。また、滞在領域における人の動き量を導出する所定期間と、存在領域の位置変化量を導出する所定期間とは、同じ期間であってもよいし、異なる期間であってもよい。   By the way, the deriving unit 33 derives the amount of movement of the person in the stay area during the predetermined period. The deriving unit 33 derives the position change amount of the existing area within the detection area during the 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. . In addition, 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 existing area may be the same period or different periods.

検知部31は、移動検知モードにおいて、検知領域内での存在領域の位置変化量が停滞閾値“I”未満になると、検知領域内での当該存在領域の位置を固定し、当該存在領域を滞在領域として、当該滞在領域について滞在検知モードで人の存在の有無を検知する。つまり、滞在領域は、検知領域内での位置変化量が停滞閾値“I”未満となることで、検知領域内で停滞したとみなされた存在領域である。このように、検知部31は、基本的には検知領域内での存在領域の位置変化量に基づいて、検知モードが移動検知モードから滞在検知モードに切り替わる。   In the movement detection mode, when the position change amount of the existence area in the detection area becomes less than the stagnation threshold “I”, the detection unit 31 fixes the position of the existence area in the detection area and stays in the existence area. As an area, the presence / absence of a person is detected in the stay detection mode for the stay area. That is, the stay area is an existence area that is considered to be stagnant in the detection area because the amount of change in position in the detection area is less than the stagnation threshold “I”. As described above, the detection unit 31 basically switches the detection mode from the movement detection mode to the stay detection mode based on the position change amount of the existence region in the detection region.

ただし、検知部31は、移動検知モードで動作中に判定部35が光変化有りと判定して、検知モードが移動検知モードから滞在検知モードに切り替わる場合においては、存在領域の位置変化量にかかわらず移動検知モードから滞在検知モードに切り替わる。つまり、検知部31は、検知領域内に存在領域があり且つ移動検知モードで動作中に判定部35が光変化有りと判定した場合、少なくとも所定期間T2においては、存在領域の位置変化量にかかわらず存在領域を滞在領域する。そして、検知部31は、当該滞在領域について滞在検知モードで人の存在の有無を検知する。これにより、検知部31が移動検知モードで動作中に判定部35が光変化有りと判定すると、検知部31の検知モードは移動検知モードから滞在検知モードに切り替わることになる。   However, 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 detection unit 31 depends on the position change amount of the existing region. Without switching from the movement detection mode to the stay detection mode. That is, when the detection unit 31 determines that there is a presence region in the detection region and the determination unit 35 determines that there is a light change while operating in the movement detection mode, the detection unit 31 is affected by the position change amount of the presence region at least during the predetermined period T2. Instead, the existing area is the stay area. And the detection part 31 detects the presence or absence of a person in the stay detection mode about the said stay area. Thereby, when the determination unit 35 determines that there is a light change while the detection unit 31 is operating 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.

以下、作成部36の存在領域の作成方法と、導出部33の滞在領域内での人の動き量および存在領域の位置変化量の導出方法について、図9A、図9B、図10A、および図10Bを用いて説明する。   9A, FIG. 9B, FIG. 10A, and FIG. 10B are described below with respect to the creation method of the existence region of the creation unit 36 and the derivation method of the amount of movement of the person within the stay region and the positional change amount of the existence region. Will be described.

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

図9Aに示すように、作成部36は、移動検知モードにおいて、検知部31が人の存在があることを検知したとき、当該人の幅、高さに基づいて、長方形状の存在領域22を、解析画像内に当該人を囲むように作成する。つまり、存在領域22は、解析画像の検知領域21内において、検知部31で検知された人を含むように作成される領域である。   As shown in FIG. 9A, when the detection unit 31 detects the presence of a person in the movement detection mode, the creation unit 36 creates a rectangular presence 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 existence 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.

図9Bは、図9Aの次のフレームを示しており、この場合、人が移動していることを想定するため、存在領域22が、図9Aにおける存在領域22aから図9Bにおける存在領域22bに移動する。   FIG. 9B shows the next frame of FIG. 9A. In this case, the existence area 22 moves from the existence area 22a in FIG. 9A to the existence area 22b in FIG. 9B in order 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 existence area 22a and the center of 22b, and derives the distance L1 as the position change amount of the existence area 22.

検知部31は、移動検知モードにおいて、導出部33により導出した位置変化量と、記憶部32に記憶された停滞閾値“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 32 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.

作成部36は、人が検知装置100の解析画像の検知領域21内を移動するにつれて、存在領域22の位置を更新することで、検知部31が解析画像の検知領域内の人を追跡することができる。移動検知モードにおいては、検知部31は、解析画像における検知領域21内に存在領域22が存在すれば検知領域21に人の存在があると検知し、検知領域21内に存在領域22が存在しなければ検知領域21に人の存在がないと検知する。つまり、図9Aおよび図9Bのいずれの場合でも、検知部31は人の存在があると検知する。   The creation unit 36 updates the position of the existence 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 existence area 22 exists in the detection area 21 in the analysis image, and the existence 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 both cases of FIG. 9A and FIG. 9B, the detection unit 31 detects the presence of a person.

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

図10Aおよび図10Bに示すように、滞在検知モードにおいて、検知部31は、停滞中の存在領域、つまり滞在領域23における人の動き量に基づいて人の存在の有無を検知する。図10Aおよび図10Bに示すように、人の動きが、図10Aの滞在領域23aから図10Bの滞在領域23bに変化する際に、滞在領域23a、23bにおける画素の輝度は、人の動きの変動に基づいて変化する。   As shown in FIGS. 10A and 10B, 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 staying area, that is, the stay area 23. As shown in FIGS. 10A and 10B, when the movement of a person changes from the stay area 23a of FIG. 10A to the stay area 23b of FIG. 10B, 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からの輝度の変化量が記憶部32に記憶された導出閾値“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 of the stay region 23b that is equal to or greater than the deriving threshold “K” stored in the storage unit 32. To do.

検知部31は、滞在検知モードにおいて、導出部33により人の動き量を導出することで、人の動き量と、記憶部32に記憶された検知閾値“T”と、を比較する。検知部31は、人の動き量が検知閾値“T”以上であれば、人の存在があると判定する。また、検知部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 to compare the amount of human movement with the detection threshold “T” stored in the storage unit 32. If the amount of movement of the person is equal to or greater than the detection threshold “T”, the detection unit 31 determines that there is a person. 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”未満であればすぐに人の存在がないと判定するのでなく、滞在領域における人の動き量が検知閾値“T”未満の状態が所定期間Qにわたって継続して初めて、人の存在がないと判定する。つまり、滞在検知モードにおいて検知部31が所定期間Qにわたって継続的に人の存在がないと検知したときに人の存在がないと判定することで、滞在検知モードにおける人の存在の有無をより精度高く検知することができる。   However, in the stay detection mode, the detection unit 31 does not immediately determine that there is no person if the amount of movement of the person is less than the detection threshold “T”. It is determined that there is no person until the state less than 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は、滞在検知モードにおいて滞在領域内に人の存在がないと判定した場合に、滞在領域を解除し、滞在領域内の検知モードを滞在検知モードから移動検知モードへ切り替える。つまり、検知部31は、第2の所定期間の終了後において滞在検知モードで人の存在がないと判断すると、滞在領域を解除して、検知モードを滞在検知モードから移動検知モードに切り替える。そのため、滞在検知モードにおいて、滞在領域における人の動き量が検知閾値“T”未満の状態が、所定期間Qにわたって継続すると、検知部31は、人の存在がないと判定し、且つ、滞在検知モードから移動検知モードへの切り替えを行う。   Here, when it is determined that there is no person in the stay area in the stay detection mode, the detection unit 31 cancels the stay area and switches the detection mode in the stay area from the stay detection mode to the movement detection mode. That is, when the detection unit 31 determines that there is no person in the stay detection mode after the end of the second predetermined period, the detection unit 31 releases the stay area and switches the detection mode from the stay detection mode to the movement detection mode. Therefore, 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 stay detection Switch from mode to 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 existing area, or may simply cancel the setting of the stay area without returning the stay area to the existing area. In the former case, when the stay area is released, an existing 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 existing area remains at the same position as the stay area in the detection 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.

要するに、滞在領域内に人の存在が検知されないまま一定時間が経過すると、この滞在領域は解除されることになる。その結果、人の存在がないと判定された滞在領域は解除されて移動検知モードに切り替わるので、検知部31は、人がいなくなった滞在領域について、いつまでも滞在検知モードで人の存在の有無を検知することを回避できる。   In short, when a certain time has passed without detecting the presence of a person in the stay area, the stay area is released. 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.

なお、導出部33は、検知領域21内での存在領域22の位置変化量を導出する際に、必ずしも存在領域22の中心を基準点とする限りではない。つまり、導出部33は、例えば、移動する前後における存在領域22の代表点間の距離を算出し、この距離を存在領域22の位置変化量として導出する構成であってもよい。ここでいう代表点は、例えば存在領域22の重心、頂点などである。   The deriving unit 33 does not necessarily use the center of the existence area 22 as a reference point when deriving the position change amount of the existence 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 existence area 22 before and after moving and derive this distance as the position change amount of the existence area 22. The representative points here are, for example, the center of gravity and vertex of the existence area 22.

また、検知部31は、導出部33により導出した位置変化量が、停滞閾値“I”以上となるとすぐに、検知モードを移動検知モードから滞在検知モードへの切り替える構成に限らない。例えば、検知部31は、直前のフレームと比較した場合の検知領域21内での存在領域22の位置変化量が、停滞閾値“I”未満であるフレームを停滞候補とし、当該停滞候補となるフレームが規定フレーム数連続した場合に、滞在検知モードへの切り替えてもよい。この場合、検知部31は、移動検知モードで動作中に、停滞候補となるフレーム数をカウントし、このカウント値(フレーム数)が規定フレーム数に達すると、検知モードを滞在検知モードへ切り替える。この場合において、カウント値が規定フレーム数に達する前に、導出部33により導出した位置変化量が、停滞閾値“I”以上となると、カウント値はリセットされる。これにより、検知部31は、人が暫くの間、検知領域21内に停滞して初めて、当該人に対応する存在領域22を滞在領域として、滞在検知モードでの検知を開始することになる。   Further, the detection unit 31 is not limited to the configuration in which the detection mode is switched from the movement detection mode to the stay detection mode as soon as the position change amount derived by the deriving unit 33 becomes equal to or greater than the stagnation threshold “I”. For example, the detection unit 31 sets a frame whose position change amount of the existence area 22 in the detection area 21 when compared with the immediately preceding frame is less than the stagnation threshold “I” as a stagnation candidate, and becomes a stagnation candidate frame. May switch to the stay detection mode when the specified number of frames continues. In this case, the detection unit 31 counts the number of frames that are stagnation candidates during operation in the movement detection mode, and switches the detection mode to the stay detection mode when the count value (number of frames) reaches the specified number of frames. In this case, the count value is reset when the position change amount derived by the deriving unit 33 is equal to or greater than the stagnation threshold “I” before the count value reaches the specified number of frames. As a result, the detection unit 31 starts detection in the stay detection mode only when the person stays in the detection area 21 for a while and uses the presence area 22 corresponding to the person as the stay area.

また、解析画像の検知領域21が、撮像部2が撮像した画像の一部の領域である場合、検知部31は、検知領域21外であっても解析画像内に含まれる人の存在の有無を検知する。検知部31が検知領域21外で人の存在ありと検知した場合、作成部36は、当該人を囲む存在領域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 36 creates a presence region 22 that surrounds the person. Thereby, when a person enters the detection area 21 from outside the detection area 21, the existence 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 / absence of a person in the detection region 21 based on the presence / absence of the presence 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 presence region 22 exists in the detection region 21 when the presence region 22 partially overlaps the detection region 21.

この場合において、検知部31は、存在領域22が検知領域21内に存在する場合にのみ移動検知モードで動作し、存在領域22が検知領域21内に存在しなければ移動検知モードとは別の進入検知モードで動作する。検知部31は、基本的には進入検知モードでも移動検知モードと同じように動作するが、進入検知モードでは検知領域21内に位置する存在領域22がないため、存在領域22を滞在領域とすることがない。したがって、検知部31は、進入検知モードにおいては、検知モードが直接的に滞在検知モードに切り替わることはない。つまり、進入検知モードから直接的に切り替わることができる検知モードは移動検知モードのみであって、進入検知モードから滞在検知モードへは、移動検知モードを経て切り替わることになる。   In this case, the detection unit 31 operates in the movement detection mode only when the presence area 22 exists in the detection area 21, and is different from the movement detection mode if the presence area 22 does not exist in the detection area 21. Operates in the entry detection mode. The detection unit 31 basically operates in the same manner as the movement detection mode even in the entry detection mode. However, in the entry detection mode, there is no presence area 22 located in the detection area 21, so the presence area 22 is set as the stay area. There is nothing. Therefore, in the approach detection mode, the detection unit 31 does not directly switch the detection mode to the stay detection mode. That is, the detection mode that can be directly switched from the entry detection mode is only the movement detection mode, and the entry detection mode is switched to the stay detection mode through the movement detection mode.

また、判断部34は、検知部31が滞在検知モードで人の存在があると判定するときと、移動検知モードで人の存在があると判定するときに、それぞれ異なる判断結果を出力する。つまり、検知部31が検知領域21内に人の存在があると検知した場合、検知部31の検知モードが滞在検知モードか移動検知モードかで、判断部34での最終的な判断結果が異なっている。具体的には、判断部34は、検知部31が移動検知モードで人の存在があると検知したときは「移動状態」と判断し、検知部31が滞在検知モードで人の存在があると検知したときは「滞在状態」と判断する。そして、検知装置100は、検知領域21内の人が移動している(移動状態にある)のか、滞在している(滞在状態にある)のか、を区別可能な形で判定結果を出力する。そうすることで、検知装置500は、人の移動、滞在に応じて負荷5を制御することができる。   The determination unit 34 outputs different determination results 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. That is, when the detection unit 31 detects that there is a person in the detection region 21, the final determination result in the determination unit 34 differs depending on whether the detection mode of the detection unit 31 is the stay detection mode or the movement detection mode. ing. Specifically, the determination unit 34 determines “moving state” when the detection unit 31 detects that there is a person in the movement detection mode, and determines that 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 detection apparatus 500 can control the load 5 according to a person's movement and stay.

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

更に、検知領域内に存在領域があり且つ検知部31が移動検知モードで動作中に判定部35が光変化有りと判定して、検知モードが移動検知モードから滞在検知モードに切り替わる場合、少なくとも所定期間T2においては、判断部34が「移動状態」と判断する。この場合、所定期間T2の終了後において検知部31が滞在検知モードで人の存在が有ると判断すると、判断部34が「滞在状態」と判断する。つまり、検知領域内に存在領域があり且つ検知部31が移動検知モードで動作中に判定部35が光変化有りと判定した場合、少なくとも所定期間T2においては、判断部34が検知部31の検知結果を採用しないで所定期間T2の開始前の判断結果を維持する。そのため、少なくとも所定期間T2においては判断部34は「移動状態」と判断する。そして、判断部34は、所定期間T2の終了後において検知部31が滞在検知モードで人の存在が有ると判断することを以て初めて「滞在状態」と判断する。   Furthermore, when there is an existing area in the detection area, and the determination unit 35 determines that there is a light change while the detection unit 31 is operating in the movement detection mode, the detection mode is switched from the movement detection mode to the stay detection mode. In the period T2, the determination unit 34 determines “moving state”. In this case, when the detection unit 31 determines that there is a person in the stay detection mode after the end of the predetermined period T2, the determination unit 34 determines “stay state”. That is, when there is an existing area in the detection area and the determination unit 35 determines that there is a light change while the detection unit 31 is operating in the movement detection mode, the determination unit 34 detects the detection unit 31 at least for a predetermined period T2. The determination result before the start of the predetermined period T2 is maintained without adopting the result. Therefore, the determination unit 34 determines “moving state” at least during the predetermined period T2. Then, the determination unit 34 determines the “stay state” only after the detection unit 31 determines that there is a person in the stay detection mode after the end of the predetermined period T2.

要するに、判定部35が光変化有りと判定した場合に、検知部31の検知モードが移動検知モードから滞在検知モードに切り替わったとしても、判断部34は、所定期間T2の終了後に即座に「滞在状態」と判断することはない。そのため、負荷5の動作モードの切り替えや外乱により解析画像に急激な光変化が発生する際、検知部31による検出対象の検知に誤りが発生しても、それに影響され難く、判断部34は「移動状態」と「滞在状態」とを区別して判断することができる。   In short, when the determination unit 35 determines that there is a light change, even if the detection mode of the detection unit 31 is switched from the movement detection mode to the stay detection mode, the determination unit 34 immediately “stays” after the end of the predetermined period T2. It is not judged as “state”. Therefore, when a sudden light change occurs in the analysis image due to switching of the operation mode of the load 5 or due to disturbance, even if an error occurs in detection of the detection target by the detection unit 31, it is not easily influenced by the determination unit 34. The determination can be made by distinguishing between “movement state” and “stay state”.

以下、検知領域内に存在領域があり且つ検知部31が移動検知モードで動作中に判定部35が光変化有りと判定した場合における制御部3の動作について、図11〜図13を用いて説明する。図11〜図13は、いずれも人が検知領域21の外から検知領域21内に進入することに伴って負荷5(照明装置)が「消灯」から「点灯」に移行する前後の一定期間に撮像される解析画像を表している。図11〜図13は、横軸を時間軸とした撮像部2の被写体の照度の時間変化を上段に表し、時点t1〜t4の各時点での解析画像を下段に表している。なお、図11〜図13は、オフィスの天井に取り付けられた撮像部2にてオフィス内を移動する人70を上方から撮像した場合を想定している。   Hereinafter, the operation of the control unit 3 when there is an existing region in the detection region and the determination unit 35 determines that there is a light change while the detection unit 31 is operating in the movement detection mode will be described with reference to FIGS. To do. Each of FIGS. 11 to 13 shows a certain period before and after the load 5 (illumination device) shifts from “off” to “on” as a person enters the detection area 21 from outside the detection area 21. An analysis image to be captured is shown. FIGS. 11 to 13 show the time change of the illuminance of the subject of the imaging unit 2 with the horizontal axis as the time axis in the upper stage, and the analysis images at each time point in the time points t1 to t4 in the lower stage. 11 to 13 assume a case where a person 70 moving in the office is imaged from above by the imaging unit 2 attached to the ceiling of the office.

図11は、人70が検知領域21の外から検知領域21内に進入した後、更に、検知領域21の中央に向けて移動し続けた場合の例である。   FIG. 11 shows an example where the person 70 continues to move toward the center of the detection area 21 after entering the detection area 21 from outside the detection area 21.

図11の例では、時点t1では検知領域21内に人70が存在しないため、負荷5である照明装置は消灯している。このとき、撮像部2の視野内には人70が存在しているため、検知部31は、進入検知モードで動作して解析画像内における人70の存在を検知し、作成部36は、当該人70を囲むように存在領域22を作成する。   In the example of FIG. 11, since the person 70 does not exist in the detection area 21 at the time point t1, the illumination device that is the load 5 is turned off. At this time, since the person 70 exists in the field of view of the imaging unit 2, the detection unit 31 operates in the approach detection mode to detect the presence of the person 70 in the analysis image, and the creation unit 36 The existence area 22 is created so as to surround the person 70.

時点t2において、存在領域22が検知領域21内に進入するので、検知部31は、検知モードが進入検知モードから移動検知モードに切り替わり、検知領域21内の人70の存在を検知する。そのため、時点t2では、判断部34が検知部31の検知結果を受けて人70の存在が有ると判断し、制御部3が、判断部34の判断結果に基づいて、負荷5である照明装置を制御して点灯させる。これにより、時点t2から暫くの間、撮像部2の被写体の照度が時間経過に伴い上昇し、撮像部2が撮像する解析画像には急激な光変化が発生する。   Since the presence area 22 enters the detection area 21 at time t2, the detection unit 31 switches the detection mode from the entry detection mode to the movement detection mode, and detects the presence of the person 70 in the detection area 21. Therefore, at time t2, the determination unit 34 receives the detection result of the detection unit 31 and determines that there is a person 70, and the control unit 3 determines the lighting device that is the load 5 based on the determination result of the determination unit 34. Control to light up. Thereby, for a while from the time t2, the illuminance of the subject of the imaging unit 2 increases with time, and an abrupt light change occurs in the analysis image captured by the imaging unit 2.

そのため、判定部35は、時点t2の直後の時点t3から照度が安定する(光変化がなくなる)までの所定期間T2にわたり、光変化有りと判定する。したがって、検知領域21内に存在領域22があり且つ検知部31が移動検知モードで動作中に判定部35が光変化有りと判定することになるため、検知領域21内での存在領域22の位置が固定され存在領域22が滞在領域23となる。これにより、時点t3において、検知部31の検知モードが移動検知モードから滞在検知モードに切り替わる。   Therefore, the determination unit 35 determines that there is a light change over a predetermined period T2 from the time t3 immediately after the time t2 until the illuminance becomes stable (no light change occurs). Therefore, since the presence area 22 exists in the detection area 21 and the determination section 35 determines that there is a light change while the detection section 31 is operating in the movement detection mode, the position of the presence area 22 in the detection area 21 is determined. Is fixed and the presence area 22 becomes the stay area 23. Thereby, at time t3, the detection mode of the detection unit 31 is switched from the movement detection mode to the stay detection mode.

検知部31は、所定期間T2にわたって滞在検知モードで動作するため、撮像部2の被写体の照度が安定して所定期間T2が終了する時点t4においても、検知領域21内における滞在領域23の位置は時点t3と同じである。図11の例においては、時点t4で人70は滞在領域23内には存在せず、滞在領域23よりも更に検知領域21の中央に近い位置に移動している。そのため、滞在領域23における人の動き量が検知閾値“T”未満の状態が、所定期間Qにわたって継続することとなり、検知部31は、滞在領域23を解除し、滞在検知モードから移動検知モードへの切り替えを行う。一方で、検知部31は、移動検知モードにおいて検知領域21内における人70の存在を検知するため、作成部36は、当該人70を囲むように存在領域22を作成する。   Since the detection unit 31 operates in the stay detection mode for a predetermined period T2, the position of the stay region 23 in the detection region 21 is also at the time t4 when the illuminance of the subject of the imaging unit 2 is stabilized and the predetermined period T2 ends. It is the same as time t3. In the example of FIG. 11, the person 70 does not exist in the stay area 23 at the time t <b> 4 and has moved to a position closer to the center of the detection area 21 than the stay area 23. Therefore, the state where the amount of human movement in the stay area 23 is less than the detection threshold “T” continues for a predetermined period Q, and the detection unit 31 cancels the stay area 23 and switches from the stay detection mode to the movement detection mode. Switch. On the other hand, since the detection unit 31 detects the presence of the person 70 in the detection area 21 in the movement detection mode, the creation unit 36 creates the existence area 22 so as to surround the person 70.

その結果、判断部34は、時点t2で「移動状態」と判断すると、その後、時点t4以降にかけても「移動状態」との判断を継続することになる。   As a result, when the determination unit 34 determines “moving state” at time t2, the determination unit 34 continues to determine “moving state” after time t4.

図12は、人70が検知領域21の外から検知領域21内に進入した後、その場で立ち止まった(停滞した)場合の例である。図12の例において、時点t1〜t3までは図11の例と同様であるから、以下では説明を省略する。   FIG. 12 is an example of a case where the person 70 has stopped (stagnate) on the spot after entering the detection area 21 from outside the detection area 21. In the example of FIG. 12, the time t1 to t3 is the same as that of the example of FIG.

検知部31は、所定期間T2にわたって滞在検知モードで動作するため、撮像部2の被写体の照度が安定して所定期間T2が終了する時点t4においても、検知領域21内における滞在領域23の位置は時点t3と同じである。図12の例においては、時点t4でも人70は滞在領域23内に存在している。そのため、滞在領域23における人の動き量が検知閾値“T”以上になることで、検知部31は、滞在検知モードで人の存在が有ると判断し、滞在検知モードでの動作を継続する。   Since the detection unit 31 operates in the stay detection mode for a predetermined period T2, the position of the stay region 23 in the detection region 21 is also at the time t4 when the illuminance of the subject of the imaging unit 2 is stabilized and the predetermined period T2 ends. It is the same as time t3. In the example of FIG. 12, the person 70 exists in the stay area 23 even at time t4. Therefore, when the movement amount of the person in the stay area 23 is equal to or greater than the detection threshold “T”, the detection unit 31 determines that there is a person in the stay detection mode, and continues the operation in the stay detection mode.

その結果、判断部34は、時点t2で「移動状態」と判断すると、その後、所定期間T2が終了する時点t4までは「移動状態」との判断を継続し、時点t4以降で滞在領域23における人の動き量が検知閾値“T”以上になり次第、「滞在状態」と判断する。   As a result, when the determination unit 34 determines “moving state” at time t2, the determination unit 34 continues to determine “moving state” until time t4 when the predetermined period T2 ends, and in the stay area 23 after time t4. As soon as the amount of movement of the person exceeds the detection threshold “T”, it is determined as “stay state”.

図13は、人70が検知領域21の外から検知領域21内に進入した後、すぐに検知領域21から離脱する向きに移動した場合の例である。図13の例において、時点t1〜t3までは図11、図12の例と同様であるから、以下では説明を省略する。   FIG. 13 shows an example of a case where the person 70 moves from the outside of the detection area 21 into the detection area 21 and then immediately moves away from the detection area 21. In the example of FIG. 13, the time t1 to t3 is the same as that of the example of FIGS.

検知部31は、所定期間T2にわたって滞在検知モードで動作するため、撮像部2の被写体の照度が安定して所定期間T2が終了する時点t4においても、検知領域21内における滞在領域23の位置は時点t3と同じである。図13の例においては、時点t4で人70は滞在領域23内には存在せず、更に、検知領域21の外に移動している。そのため、滞在領域23における人の動き量が検知閾値“T”未満の状態が、所定期間Qにわたって継続することとなり、検知部31は、滞在領域23を解除し、滞在検知モードから移動検知モードへの切り替えを行う。一方で、検知部31は、移動検知モードにおいて検知領域21内に人70の存在がないことを検知するため、移動検知モードから進入検知モードへと切り替わる。検知部31は、進入検知モードで動作して解析画像内における人70の存在を検知し、作成部36は、当該人70を囲むように存在領域22を作成する。   Since the detection unit 31 operates in the stay detection mode for a predetermined period T2, the position of the stay region 23 in the detection region 21 is also at the time t4 when the illuminance of the subject of the imaging unit 2 is stabilized and the predetermined period T2 ends. It is the same as time t3. In the example of FIG. 13, the person 70 does not exist in the stay area 23 at the time t <b> 4, and further moves outside the detection area 21. Therefore, the state where the amount of human movement in the stay area 23 is less than the detection threshold “T” continues for a predetermined period Q, and the detection unit 31 cancels the stay area 23 and switches from the stay detection mode to the movement detection mode. Switch. On the other hand, the detection unit 31 switches from the movement detection mode to the entry detection mode in order to detect the absence of the person 70 in the detection area 21 in the movement detection mode. The detection unit 31 operates in the approach detection mode to detect the presence of the person 70 in the analysis image, and the creation unit 36 creates the presence area 22 so as to surround the person 70.

その結果、判断部34は、時点t2で「移動状態」と判断すると、その後、所定期間T2が終了する時点t4までは「移動状態」との判断を継続し、時点t4以降で検知領域21内に人が存在しない状態、つまり「不在状態」と判断することになる。   As a result, when the determination unit 34 determines “moving state” at time t2, the determination unit 34 continues to determine “moving state” until time t4 when the predetermined period T2 ends, and within the detection region 21 after time t4. Therefore, it is determined that there is no person, that is, “absent state”.

ところで、実施形態5に係る検知装置500は、上述した構成に加えて、赤外線検知部6と、確定部4と、を更に備えている。赤外線検知部6は、赤外線の受光量の変化に基づいて検知領域21内における人の存在の有無を検知する。確定部4は、判断部34の判断結果および赤外線検知部6の検知結果に基づいて、検知領域内の人の存在の有無の判断を確定する。ここで、確定部4は、所定期間T2において、赤外線検知部6で人の存在が有ると検知された場合、赤外線検知部6の検知結果を判断部34の判断結果より優先して検知領域21内の人の存在の有無の判断を確定する。   Incidentally, the detection apparatus 500 according to the fifth embodiment further includes an infrared detection unit 6 and a determination unit 4 in addition to the above-described configuration. The infrared detector 6 detects the presence or absence of a person in the detection area 21 based on a change in the amount of received infrared light. Based on the determination result of the determination unit 34 and the detection result of the infrared detection unit 6, the determination unit 4 determines whether or not there is a person in the detection area. Here, when the infrared detecting unit 6 detects that there is a person in the predetermined period T2, the determining unit 4 gives priority to the detection result of the infrared detecting unit 6 over the determination result of the determining unit 34. Confirm the presence / absence of the person inside.

さらに詳しく説明すると、赤外線検知部6は、例えば、焦電型赤外線センサのように、人から発せられる赤外線の受光量の変化を捉えて人の存在を検知する受動型のセンサである。この種の微分型の赤外線検知部6は、止まっている(停滞している)人については赤外線の受光量が変化しないため検知せず、移動している人を検知する。赤外線検知部6の赤外線の受光範囲は、撮像部2で撮像される解析画像の検知領域に合わせて設定されている。確定部4は、例えば、マイコン(マイクロコンピュータ)などの演算処理装置である。確定部4は、制御部3と赤外線検知部6との両方に接続されており、判断部34の判断結果と赤外線検知部6の検知結果との両方に基づいて、検知領域内の人の存在の有無の判断を確定する。検知装置500は、確定部4で確定された検知領域内の人の存在の有無の判断に基づいて負荷5を制御する。   More specifically, the infrared detector 6 is a passive sensor that detects the presence of a person by detecting a change in the amount of received infrared light emitted from a person, such as a pyroelectric infrared sensor. This type of differential infrared detection unit 6 detects a person who is moving (stagnation) without detecting because the amount of received infrared light does not change. The infrared light receiving range of the infrared detecting unit 6 is set in accordance with the detection region of the analysis image captured by the imaging unit 2. The determination unit 4 is an arithmetic processing device such as a microcomputer (microcomputer), for example. The determination unit 4 is connected to both the control unit 3 and the infrared detection unit 6, and based on both the determination result of the determination unit 34 and the detection result of the infrared detection unit 6, the presence of a person in the detection region Confirm the presence or absence of. The detection device 500 controls the load 5 based on the determination of the presence / absence of a person in the detection area determined by the determination unit 4.

定常時においては、確定部4は、判断部34の判断結果を赤外線検知部6の検知結果より優先して検知領域21内の人の存在の有無の判断を確定する。一方、判定部35が光変化有りと判定すると、確定部4は、所定期間T2においては、赤外線検知部6で人の存在が有ると検知された場合に、赤外線検知部6の検知結果を判断部34の判断結果より優先して検知領域21内の人の存在の有無の判断を確定する。つまり、所定期間T2においては、判断部34が検知部31の検知結果を採用しないため、確定部4は、赤外線検知部6の検知結果を優先することにより、検知領域21内の人の存在の有無の判断を継続的に行うことができる。   At regular times, the determination unit 4 prioritizes the determination result of the determination unit 34 over the detection result of the infrared detection unit 6 and determines the determination of the presence or absence of a person in the detection area 21. On the other hand, when the determination unit 35 determines that there is a light change, the determination unit 4 determines the detection result of the infrared detection unit 6 when the infrared detection unit 6 detects that there is a person in the predetermined period T2. The determination of the presence / absence of a person in the detection area 21 is confirmed with priority over the determination result of the unit 34. That is, since the determination unit 34 does not adopt the detection result of the detection unit 31 in the predetermined period T2, the determination unit 4 prioritizes the detection result of the infrared detection unit 6 to determine the presence of a person in the detection region 21. The presence or absence can be continuously determined.

ここで、制御部3は、確定部4を通して赤外線検知部6の検知結果を取得できるように構成されていることが好ましい。制御部3は、所定期間T2において赤外線検知部6の検知結果を取得することで、所定期間T2に人が移動したか否かを推定し、これにより検知部31の検知モードを滞在検知モードと移動検知モードとで切り替えることが可能である。すなわち、所定期間T2において、検知部31が検知モードを移動検知モードから滞在検知モードに切り替えた場合を想定する。この場合において、人が移動することで赤外線検知部6が当該人の存在が有ると検知すると、検知部31は滞在領域を解除し、滞在領域内の検知モードを滞在検知モードから移動検知モードへ切り替える。一方、人が移動せず赤外線検知部6が人の存在がないと場合、検知部31は滞在検知モードでの動作を継続する。   Here, it is preferable that the control unit 3 is configured to be able to acquire the detection result of the infrared detection unit 6 through the determination unit 4. The control unit 3 estimates whether or not a person has moved during the predetermined period T2 by acquiring the detection result of the infrared detection unit 6 during the predetermined period T2, and thereby sets the detection mode of the detection unit 31 as the stay detection mode. Switching between the movement detection modes is possible. That is, it is assumed that the detection unit 31 switches the detection mode from the movement detection mode to the stay detection mode in the predetermined period T2. In this case, when the infrared detection unit 6 detects that the person is present due to the movement of the person, the detection unit 31 cancels the stay area and changes the detection mode in the stay area from the stay detection mode to the movement detection mode. Switch. On the other hand, when the person does not move and the infrared detection unit 6 is absent, the detection unit 31 continues the operation in the stay detection mode.

以上説明したように、実施形態5に係る検知装置500および検知システム520は、検知部31が人の存在があると検知した場合、検知した人を囲む存在領域を検知領域に作成する作成部36を有している。検知部31は、検知領域内における人の存在の有無を検知する移動検知モードと、検知領域内で停滞した存在領域からなる滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有している。検知部31は、検知領域内に存在領域があり且つ移動検知モードで動作中に判定部35が光変化有りと判定した場合、少なくとも所定期間T2においては検知モードを移動検知モードから滞在検知モードに切り替える。   As described above, the detection device 500 and the detection system 520 according to the fifth embodiment, when the detection unit 31 detects that there is a person, creates a presence area surrounding the detected person in the detection area 36. have. The detection unit 31 detects the presence / absence of a person based on a movement detection mode for detecting the presence / absence of a person in the detection area and the amount of movement of the person in the stay area including the existence area stagnated in the detection area. And a stay detection mode. When the detection unit 31 determines that there is a presence area in the detection region and the determination unit 35 determines that there is a light change during operation in the movement detection mode, the detection mode is changed from the movement detection mode to the stay detection mode at least for a predetermined period T2. Switch.

したがって、負荷5の動作モードの切り替えや外乱により解析画像に急激な光変化が発生する際、検知部31による検出対象の検知に誤りが発生しても、それに影響され難く、判断部34は人の存在の有無を判断することができる。特に、急激な光変化の発生中に人が検知領域内で停滞した場合にも、検知部31は、強制的に滞在検知モードに移行するため、人を見失わずに検知することができる。よって、検知装置500および検知システム520は、解析画像の検知領域内において急激な光変化により例えば白とび等が発生しても、人の存在の有無を誤判断するのを抑制することができる。   Therefore, when an abrupt light change occurs in the analysis image due to switching of the operation mode of the load 5 or due to disturbance, even if an error occurs in detection of the detection target by the detection unit 31, it is not easily affected by this. It can be determined whether or not there is. In particular, even when a person stagnates in the detection region during the occurrence of a sudden light change, the detection unit 31 forcibly shifts to the stay detection mode, and thus can detect without losing sight of the person. Therefore, the detection device 500 and the detection system 520 can suppress erroneous determination of the presence or absence of a person even if, for example, overexposure occurs due to a rapid light change in the detection region of the analysis image.

検知部31は、移動検知モードにおいて、検知領域内での存在領域の位置変化量が停滞閾値“I”未満になると、検知領域内での存在領域の位置を固定し、存在領域を滞在領域として、滞在領域について滞在検知モードで人の存在の有無を検知することが好ましい。ここで、検知部31は、判定部35が光変化有りと判定したことをトリガにして検知モードが移動検知モードから滞在検知モードに切り替わる場合、少なくとも所定期間T2においては、存在領域の位置変化量にかかわらず当該存在領域を滞在領域とする。そして、検知部31は、当該滞在領域について滞在検知モードで人の存在の有無を検知することが好ましい。   In the movement detection mode, the detection unit 31 fixes the position of the existence area in the detection area and sets the existence area as the stay area when the position change amount of the existence area in the detection area becomes less than the stagnation threshold “I”. It is preferable to detect the presence or absence of a person in the stay detection mode for the stay area. Here, in the case where the detection mode is switched from the movement detection mode to the stay detection mode triggered by the determination unit 35 determining that there is a light change, the detection unit 31 changes the position change amount of the existing region at least during the predetermined period T2. Regardless of whether the present area is the stay area. And it is preferable that the detection part 31 detects the presence or absence of a person in the stay detection mode about the said stay area | region.

この構成によれば、検知部31は、定常時には存在領域の位置変化量が停滞閾値“I”未満になると滞在検知モードに移行するのに対し、判定部35が光変化有りと判定した場合には、存在領域の位置変化量にかかわらず滞在検知モードに移行する。そのため、負荷5の動作モードの切り替えや外乱により解析画像に急激な光変化が発生する際、検知部31による検出対象の検知に誤りが発生しても、それに影響され難く、検知部31は滞在検知モードに移行することができる。なお、この構成は必須の構成ではなく、適宜省略可能である。   According to this configuration, the detection unit 31 shifts to the stay detection mode when the position change amount of the existing region becomes less than the stagnation threshold value “I” in a steady state, whereas the determination unit 35 determines that there is a light change. Shifts to the stay detection mode regardless of the position change amount of the existence area. Therefore, when a sudden light change occurs in the analysis image due to switching of the operation mode of the load 5 or due to disturbance, even if an error occurs in detection of the detection target by the detection unit 31, it is not easily affected by this, and the detection unit 31 stays there. It is possible to shift to the detection mode. This configuration is not an essential configuration and can be omitted as appropriate.

また、判断部34は、上述したように、検知部31が移動検知モードで人の存在が有ると判断した場合には、移動状態と判断し、検知部31が滞在検知モードで人の存在が有ると判断した場合には、滞在状態と判断していることが好ましい。ここで、判定部35が光変化有りと判定したことをトリガにして検知部31の検知モードが移動検知モードから滞在検知モードに切り替わる場合、少なくとも所定期間T2においては、判断部34が移動状態と判断することが好ましい。また、この場合、所定期間T2の終了後において検知部31が滞在検知モードで人の存在が有ると判断すると、判断部34が滞在状態と判断することが好ましい。   In addition, as described above, when the detection unit 31 determines that the presence of a person is present in the movement detection mode, the determination unit 34 determines that the person is present in the movement detection mode. If it is determined that there is, it is preferable to determine that it is a staying state. Here, when the detection mode of the detection unit 31 switches from the movement detection mode to the stay detection mode triggered by the determination unit 35 determining that there is a light change, the determination unit 34 is in the movement state at least for a predetermined period T2. It is preferable to judge. In this case, when the detection unit 31 determines that there is a person in the stay detection mode after the predetermined period T2, the determination unit 34 preferably determines the stay state.

この構成によれば、判定部35が光変化有りと判定した場合に、検知部31の検知モードが移動検知モードから滞在検知モードに切り替わったとしても、判断部34は、所定期間T2の終了後に即座に「滞在状態」と判断することはない。そのため、負荷5の動作モードの切り替えや外乱により解析画像に急激な光変化が発生する際、検知部31による検出対象の検知に誤りが発生しても、それに影響され難く、判断部34は「移動状態」と「滞在状態」とを区別して判断することができる。なお、この構成は必須の構成ではなく、適宜省略可能である。   According to this configuration, when the determination unit 35 determines that there is a light change, even if the detection mode of the detection unit 31 is switched from the movement detection mode to the stay detection mode, the determination unit 34 is configured after the predetermined period T2 ends. It is not immediately judged as “stay state”. Therefore, when a sudden light change occurs in the analysis image due to switching of the operation mode of the load 5 or due to disturbance, even if an error occurs in detection of the detection target by the detection unit 31, it is not easily influenced by the determination unit 34. The determination can be made by distinguishing between “movement state” and “stay state”. This configuration is not an essential configuration and can be omitted as appropriate.

なお、検知領域内に存在領域があり且つ検知部31が移動検知モードで動作中に判定部35が光変化有りと判定した場合、検知モードを滞在検知モードに切り替える点と、赤外線検知部6および確定部4を備える点とは、共に採用するものに限らない。つまり、検知領域内に存在領域があり且つ検知部31が移動検知モードで動作中に判定部35が光変化有りと判定した場合、検知モードを滞在検知モードに切り替える点と、赤外線検知部6および確定部4を備える点とは、一方のみ採用されてもよい。   In addition, when there is a presence area in the detection area and the determination unit 35 determines that there is a light change while the detection unit 31 is operating in the movement detection mode, the detection mode is switched to the stay detection mode, and the infrared detection unit 6 and The point provided with the determination part 4 is not restricted to what is employ | adopted together. That is, when there is a presence area in the detection area and the determination unit 35 determines that there is a light change while the detection unit 31 is operating in the movement detection mode, the detection mode is switched to the stay detection mode, and the infrared detection unit 6 and Only one of the points provided with the determination unit 4 may be adopted.

(プログラムおよび検知方法)
以上説明したような検知装置の制御部3は、適当なプログラムをコンピュータに実行させることによって実現することができる。すなわち、このプログラムは、コンピュータを、検知装置として機能させるためのプログラムであり、例えば、記録媒体に記録されて提供され、あるいは電気通信回線を通じて提供される。ここでいう検知装置は、検知部31と、判断部34と、導出部33と、判定部35と、を備えている。検知部31は、解析画像の検知領域内の人の存在の有無を検知する。判断部34は、検知部31の検知結果に基づいて、人の存在の有無を判断する。導出部33は、検知領域内において所定期間T1における輝度変化量が第1の閾値以上である輝度変化領域の大きさを導出する。判定部35は、輝度変化領域の大きさが第2の閾値以上であれば光変化有りと判定する。そして、判定部35が光変化有りと判定した場合、所定期間T2において、検知部31が検知動作を停止する、または所定期間T2において、判断部34が検知部31の検知結果を採用しないで所定期間T2の開始前の判断結果を維持する。
(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 herein includes a detection unit 31, a determination unit 34, a derivation unit 33, and a determination unit 35. The detection unit 31 detects the presence or absence of a person in the detection area of the analysis image. The determination unit 34 determines the presence or absence of a person based on the detection result of the detection unit 31. The deriving unit 33 derives the size of the luminance change area in which the luminance change amount in the predetermined period T1 is equal to or greater than the first threshold in the detection area. The determination unit 35 determines that there is a light change if the size of the luminance change region is equal to or greater than the second threshold. When the determination unit 35 determines that there is a light change, the detection unit 31 stops the detection operation in the predetermined period T2, or the determination unit 34 does not adopt the detection result of the detection unit 31 in the predetermined period T2. The determination result before the start of the period T2 is maintained.

また、この種の検知装置を用いることで、以下のような検知方法を実現することができる。すなわち、ここでいう検知方法は、検知段階と、判断段階と、導出段階と、判定段階と、を含んでいる。検知段階では、解析画像の検知領域内の人の存在の有無を検知する。判断段階では、検知段階の検知結果に基づいて、人の存在の有無を判断する。導出段階では、検知領域内において所定期間T1における輝度変化量が第1の閾値以上である輝度変化領域の大きさを導出する。判定段階では、輝度変化領域の大きさが第2の閾値以上であれば光変化有りと判定する。そして、判定段階で光変化有りと判定した場合、所定期間T2において、検知段階で検知動作を停止する、または所定期間T2において、判断段階で検知段階の検知結果を採用しないで所定期間T2の開始前の判断結果を維持する。   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 determination stage, a derivation stage, and a determination stage. In the detection stage, the presence or absence of a person in the detection area of the analysis image is detected. In the determination stage, the presence or absence of a person is determined based on the detection result in the detection stage. In the derivation stage, the size of the luminance change area in which the luminance change amount in the predetermined period T1 is not less than the first threshold in the detection area is derived. In the determination step, it is determined that there is a light change if the size of the luminance change region is equal to or greater than the second threshold. When it is determined that there is a light change at the determination stage, the detection operation is stopped at the detection stage in the predetermined period T2, or the predetermined period T2 is started without adopting the detection result at the determination stage in the predetermined period T2. Maintain previous judgment results.

(結び)
以上のように、本発明における技術の例示として、実施形態を説明した。そのために、添付図面および詳細な説明を提供した。
(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 検知装置
120、220、320、420、520 検知システム
2 撮像部
3 制御部
31 検知部
32 記憶部
33 導出部
34 判断部
35 判定部
36 作成部
4 確定部
5 負荷
6 赤外線検知部
100, 200, 300, 400, 500 Detection device 120, 220, 320, 420, 520 Detection system 2 Imaging unit 3 Control unit 31 Detection unit 32 Storage unit 33 Derivation unit 34 Judgment unit 35 Judgment unit 36 Creation unit 4 Determination unit 5 Load 6 Infrared detector

Claims (11)

撮像部と、
前記撮像部が撮像した解析画像の検知領域内の人の存在の有無を検知する検知部と、
前記検知部の検知結果に基づいて、人の存在の有無を判断する判断部と、
前記検知領域内において第1の所定期間における輝度変化量が第1の閾値以上である輝度変化領域の大きさを導出する導出部と、
前記輝度変化領域の大きさが第2の閾値以上であれば光変化有りと判定する判定部と、を備え、
前記判定部が前記光変化有りと判定した場合、第2の所定期間において、前記検知部が検知動作を停止する、または前記第2の所定期間において、前記判断部が前記検知部の検知結果を採用しないで前記第2の所定期間の開始前の判断結果を維持する
ことを特徴とする検知装置。
An imaging unit;
A detection unit for detecting presence or absence of a person in a detection region of an analysis image captured by the imaging unit;
Based on the detection result of the detection unit, a determination unit that determines the presence or absence of a person,
A deriving unit for deriving the size of the luminance change region in which the luminance change amount in the first predetermined period is equal to or greater than a first threshold in the detection region;
A determination unit that determines that there is a light change if the size of the luminance change region is equal to or greater than a second threshold,
When the determination unit determines that the light change is present, the detection unit stops the detection operation in the second predetermined period, or the determination unit displays the detection result of the detection unit in the second predetermined period. A detection device that maintains the determination result before the start of the second predetermined period without adopting the second predetermined period.
前記検知部が人の存在があると検知した場合、検知した人を囲む存在領域を前記検知領域に作成する作成部を更に有し、
前記判定部が前記光変化有りと判定した場合、
前記作成部は、
前記判定部が前記光変化有りと判定する前に作成した前記存在領域に基づいて前記第2の所定期間以上の長さの第3の所定期間に人が存在していると仮想する仮想存在領域を作成し、
前記判断部は、
前記仮想存在領域が存在する場合に、人の存在があると判断する
ことを特徴とする請求項1に記載の検知装置。
When the detection unit detects that a person is present, the detection unit further includes a creation unit that creates a presence area surrounding the detected person in the detection area;
When the determination unit determines that there is the light change,
The creating unit
A virtual existence area that is hypothesized that a person exists in a third predetermined period that is longer than the second predetermined period based on the existence area created before the determination unit determines that there is a light change. Create
The determination unit
The detection apparatus according to claim 1, wherein when there is the virtual existence area, it is determined that there is a person.
前記検知部が人の存在があると検知した場合、検知した人を囲む存在領域を前記検知領域に作成する作成部を更に有し、
前記検知部は、
前記検知領域内における人の存在の有無を検知する移動検知モードと、
前記検知領域内で停滞した前記存在領域からなる滞在領域内における人の動き量に基づいて人の存在の有無を検知する滞在検知モードと、を有し、
前記検知領域内に前記存在領域があり且つ前記移動検知モードで動作中に前記判定部が前記光変化有りと判定した場合、少なくとも前記第2の所定期間においては検知モードを前記移動検知モードから前記滞在検知モードに切り替える
ことを特徴とする請求項1に記載の検知装置。
When the detection unit detects that a person is present, the detection unit further includes a creation unit that creates a presence area surrounding the detected person in the detection area;
The detector is
A movement detection mode for detecting the presence or absence of a person in the detection area;
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 consisting of the existence area stagnated in the detection area, and
When the presence area is within the detection area and the determination unit determines that the light has changed during operation in the movement detection mode, the detection mode is changed from the movement detection mode to the detection period at least in the second predetermined period. It switches to stay detection mode. The detection device according to claim 1 characterized by things.
前記検知部は、
前記移動検知モードにおいて、前記検知領域内での前記存在領域の位置変化量が停滞閾値未満になると、前記検知領域内での当該存在領域の位置を固定し、当該存在領域を前記滞在領域として、当該滞在領域について前記滞在検知モードで人の存在の有無を検知し、
前記判定部が前記光変化有りと判定したことをトリガにして検知モードが前記移動検知モードから前記滞在検知モードに切り替わる場合、
少なくとも前記第2の所定期間においては、前記存在領域の前記位置変化量にかかわらず前記存在領域を前記滞在領域として、当該滞在領域について前記滞在検知モードで人の存在の有無を検知する
ことを特徴とする請求項3に記載の検知装置。
The detector is
In the movement detection mode, when the position change amount of the existence area in the detection area becomes less than a stagnation threshold, the position of the existence area in the detection area is fixed, and the existence area is set as the stay area. Detect the presence or absence of a person in the stay detection mode for the stay area,
When the detection mode is switched from the movement detection mode to the stay detection mode triggered by the determination unit determining that the light change is present,
At least in the second predetermined period, the presence area is set as the stay area regardless of the position change amount of the presence area, and the presence / absence of a person is detected in the stay detection mode for the stay area. The detection device according to claim 3.
前記判断部は、
前記検知部が前記移動検知モードで人の存在が有ると判断した場合には、移動状態と判断し、
前記検知部が前記滞在検知モードで人の存在が有ると判断した場合には、滞在状態と判断しており、
前記判定部が前記光変化有りと判定したことをトリガにして前記検知部の検知モードが前記移動検知モードから前記滞在検知モードに切り替わる場合、
少なくとも前記第2の所定期間においては、前記判断部が前記移動状態と判断し、
前記第2の所定期間の終了後において前記検知部が前記滞在検知モードで人の存在が有ると判断すると、前記判断部が前記滞在状態と判断する
ことを特徴とする請求項3又は4に記載の検知装置。
The determination unit
If the detection unit determines that there is a person in the movement detection mode, it is determined as a movement state,
When the detection unit determines that there is a person in the stay detection mode, it is determined as a stay state,
When the determination unit switches from the movement detection mode to the stay detection mode triggered by the determination unit determining that the light change is present,
At least in the second predetermined period, the determination unit determines that the movement state,
5. The determination unit according to claim 3, wherein when the detection unit determines that there is a person in the stay detection mode after the end of the second predetermined period, the determination unit determines the stay state. Detection device.
前記検知部は、
前記第2の所定期間の終了後において前記滞在検知モードで人の存在がないと判断すると、前記滞在領域を解除して、検知モードを前記滞在検知モードから前記移動検知モードに切り替える
ことを特徴とする請求項5に記載の検知装置。
The detector is
When it is determined that there is no person in the stay detection mode after the end of the second predetermined period, the stay area is canceled and the detection mode is switched from the stay detection mode to the movement detection mode. The detection device according to claim 5.
前記判定部は、前記第2の所定期間において、前記検知領域内の前記第1の所定期間における輝度変化量が第3の閾値以下である非変化領域の大きさが前記第2の閾値以上であれば、前記光変化の終了と判定し、
前記第2の所定期間は、前記判定部が前記光変化有りと判定する時から前記判定部が前記光変化の終了と判定する時までの期間である
ことを特徴とする請求項1〜6のいずれか一項に記載の検知装置。
In the second predetermined period, the determination unit has a non-change area in which the amount of change in luminance in the first predetermined period in the detection area is equal to or smaller than a third threshold is greater than or equal to the second threshold. If there is, it is determined that the light change has ended,
The second predetermined period is a period from a time when the determination unit determines that the light change is present to a time when the determination unit determines that the light change is completed. The detection device according to any one of the above.
前記第2の所定期間において、前記撮像部のフレームレートを上げる
ことを特徴とする請求項1〜7のいずれか一項に記載の検知装置。
The detection apparatus according to claim 1, wherein a frame rate of the imaging unit is increased in the second predetermined period.
赤外線の受光量の変化に基づいて前記検知領域内における人の存在の有無を検知する赤外線検知部と、
前記判断部の判断結果および前記赤外線検知部の検知結果に基づいて、前記検知領域内の人の存在の有無の判断を確定する確定部と、を更に備え、
前記確定部は、
前記第2の所定期間において、前記赤外線検知部で人の存在が有ると検知された場合、前記赤外線検知部の検知結果を前記判断部の判断結果より優先して前記検知領域内の人の存在の有無の判断を確定する
ことを特徴とする請求項1〜8のいずれか一項に記載の検知装置。
An infrared detector that detects the presence or absence of a person in the detection region based on a change in the amount of received infrared light;
A determination unit for confirming the presence / absence of a person in the detection area based on the determination result of the determination unit and the detection result of the infrared detection unit;
The determination unit is
In the second predetermined period, if the infrared detection unit detects that a person is present, the detection result of the infrared detection unit is given priority over the determination result of the determination unit, and the presence of a person in the detection region The detection device according to any one of claims 1 to 8, wherein the determination of the presence or absence of is confirmed.
撮像部と、
前記撮像部が撮像した解析画像の検知領域内の人の存在の有無を検知する検知部と、
前記検知部の検知結果に基づいて、人の存在の有無を判断する判断部と、
前記検知領域内において第1の所定期間における輝度変化量が第1の閾値以上である輝度変化領域の大きさを導出する導出部と、
前記輝度変化領域の大きさが第2の閾値以上であれば光変化有りと判定する判定部と、
制御対象となる負荷と、を備え、
前記判定部が前記光変化有りと判定した場合、第2の所定期間において、前記検知部が検知動作を停止する、または前記第2の所定期間において、前記判断部が前記検知部の検知結果を採用しないで前記第2の所定期間の開始前の判断結果を維持する
ことを特徴とする検知システム。
An imaging unit;
A detection unit for detecting presence or absence of a person in a detection region of an analysis image captured by the imaging unit;
Based on the detection result of the detection unit, a determination unit that determines the presence or absence of a person,
A deriving unit for deriving the size of the luminance change region in which the luminance change amount in the first predetermined period is equal to or greater than a first threshold in the detection region;
A determination unit that determines that there is a light change if the size of the luminance change region is equal to or greater than a second threshold;
A load to be controlled,
When the determination unit determines that the light change is present, the detection unit stops the detection operation in the second predetermined period, or the determination unit displays the detection result of the detection unit in the second predetermined period. A detection system that maintains a determination result before the start of the second predetermined period without adopting the second predetermined period.
コンピュータを、
解析画像の検知領域内の人の存在の有無を検知する検知部と、
前記検知部の検知結果に基づいて、人の存在の有無を判断する判断部と、
前記検知領域内において第1の所定期間における輝度変化量が第1の閾値以上である輝度変化領域の大きさを導出する導出部と、
前記輝度変化領域の大きさが第2の閾値以上であれば光変化有りと判定する判定部と、を備え、
前記判定部が前記光変化有りと判定した場合、第2の所定期間において、前記検知部が検知動作を停止する、または前記第2の所定期間において、前記判断部が前記検知部の検知結果を採用しないで前記第2の所定期間の開始前の判断結果を維持する検知装置
として機能させるためのプログラム。
Computer
A detection unit that detects the presence or absence of a person in the detection region of the analysis image;
Based on the detection result of the detection unit, a determination unit that determines the presence or absence of a person,
A deriving unit for deriving the size of the luminance change region in which the luminance change amount in the first predetermined period is equal to or greater than a first threshold in the detection region;
A determination unit that determines that there is a light change if the size of the luminance change region is equal to or greater than a second threshold,
When the determination unit determines that the light change is present, the detection unit stops the detection operation in the second predetermined period, or the determination unit displays the detection result of the detection unit in the second predetermined period. A program for functioning as a detection device that maintains a determination result before the start of the second predetermined period without being adopted.
JP2014266062A 2014-08-21 2014-12-26 Detection device, detection system, and program Active JP6459124B2 (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

Publications (2)

Publication Number Publication Date
JP2016053939A true JP2016053939A (en) 2016-04-14
JP6459124B2 JP6459124B2 (en) 2019-01-30

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 After (2)

Application Number Title Priority Date Filing Date
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

Country Status (1)

Country Link
JP (3) JP6459124B2 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7005285B2 (en) * 2017-11-01 2022-01-21 株式会社東芝 Image sensors, sensing methods, control systems and programs
JP7295181B2 (en) * 2021-09-08 2023-06-20 ソフトバンク株式会社 Determination device, program, and determination method

Citations (15)

* 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
JPH10171966A (en) * 1996-12-05 1998-06-26 Nissan Motor Co Ltd On-vehicle image processor
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
JP2001008189A (en) * 1999-04-23 2001-01-12 Hitachi Ltd Mobile object monitoring device
JP2001333417A (en) * 2000-05-19 2001-11-30 Fujitsu General Ltd Camera supervisory system
JP2004295416A (en) * 2003-03-26 2004-10-21 Matsushita Electric Works Ltd Image processing apparatus
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
JP2012174223A (en) * 2011-02-24 2012-09-10 Nippon Steel Corp Person monitoring device, person monitoring method, and computer program
WO2013187047A1 (en) * 2012-06-13 2013-12-19 パナソニック株式会社 Object detection device
JP2014002454A (en) * 2012-06-15 2014-01-09 Panasonic Corp Person detection device and person detection method

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4337727B2 (en) * 2004-12-14 2009-09-30 パナソニック電工株式会社 Human body detection device
JP4966820B2 (en) * 2007-10-29 2012-07-04 パナソニック株式会社 Congestion estimation apparatus and method
JP2010266169A (en) * 2009-05-18 2010-11-25 Mitsubishi Electric Corp Air-conditioning control device

Patent Citations (15)

* 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
JPH10171966A (en) * 1996-12-05 1998-06-26 Nissan Motor Co Ltd On-vehicle image processor
JP2001008189A (en) * 1999-04-23 2001-01-12 Hitachi Ltd Mobile object monitoring device
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
JP2004295416A (en) * 2003-03-26 2004-10-21 Matsushita Electric Works Ltd Image processing apparatus
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
JP2012174223A (en) * 2011-02-24 2012-09-10 Nippon Steel Corp Person monitoring device, person monitoring method, and computer program
WO2013187047A1 (en) * 2012-06-13 2013-12-19 パナソニック株式会社 Object detection device
JP2014002454A (en) * 2012-06-15 2014-01-09 Panasonic Corp Person detection device and person detection method

Also Published As

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

Similar Documents

Publication Publication Date Title
JP5845841B2 (en) Lighting control device
US9538621B2 (en) Learning luminaire and a learning control device for a luminaire
JP4558696B2 (en) Automatic body tracking device
JP6413530B2 (en) Surveillance system, video analysis apparatus, video analysis method and program
JP2014060711A (en) Configuration of image capturing settings
JP6459124B2 (en) Detection device, detection system, and program
JP6726118B2 (en) Control device, wireless communication terminal, and position estimation system
JP2014017114A (en) Illumination system
JP2014175706A (en) Monitor device, monitor method, and imaging unit arrangement method
JP2017111008A (en) Human detection system
JP2014103555A (en) Communication apparatus, method and program
JP6099023B2 (en) Projector system
JP7225695B2 (en) Autonomous mobile device and program
JP2008077361A (en) Monitoring method and monitoring system
EP3366086A1 (en) Trajectory tracking using low cost occupancy sensor
US11399127B2 (en) Imaging apparatus and method for controlling the same
KR20190001910A (en) Lighting control method and apparatus
US8964108B2 (en) Photographing and electronic apparatus using same based on light blocking analysis
JP2015185364A (en) Sensor device and control system using sensor device
WO2021210299A1 (en) Information processing device, information processing method, and program
JP2009184059A (en) Landmark detection device, method, and program
US20230162011A1 (en) Configuration of cue integration system
WO2016027410A1 (en) Detection device and detection system
WO2016035282A1 (en) Detection device and detection system
JP3862558B2 (en) Image sensor and surveillance camera device

Legal Events

Date Code Title Description
RD02 Notification of acceptance of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7422

Effective date: 20170209

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20170222

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20180417

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20180618

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20181214

R151 Written notification of patent or utility model registration

Ref document number: 6459124

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151