JP2003109012A - Device for detecting abnormality - Google Patents

Device for detecting abnormality

Info

Publication number
JP2003109012A
JP2003109012A JP2001297776A JP2001297776A JP2003109012A JP 2003109012 A JP2003109012 A JP 2003109012A JP 2001297776 A JP2001297776 A JP 2001297776A JP 2001297776 A JP2001297776 A JP 2001297776A JP 2003109012 A JP2003109012 A JP 2003109012A
Authority
JP
Japan
Prior art keywords
room
motion
movement
feature amount
determination
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.)
Withdrawn
Application number
JP2001297776A
Other languages
Japanese (ja)
Inventor
Yukio Mori
幸夫 森
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.)
Sanyo Electric Co Ltd
Original Assignee
Sanyo Electric 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 Sanyo Electric Co Ltd filed Critical Sanyo Electric Co Ltd
Priority to JP2001297776A priority Critical patent/JP2003109012A/en
Publication of JP2003109012A publication Critical patent/JP2003109012A/en
Withdrawn legal-status Critical Current

Links

Landscapes

  • Emergency Alarm Devices (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide an abnormality detecting device capable of detecting whether or not an object to be monitored enters a room and whether or not the object leaves the room on the basis of an output of an imaging means provided to detect abnormality of the object. SOLUTION: This abnormality detecting device is provided with a room entering detecting means for detecting that the object to be monitored enters the room on the basis of decision results made by a first movement deciding means and decision results made by a second movement deciding means, a means for setting up a room entering state flag when the room entering detecting means detects that the object enters the room, a room leaving detecting means for detecting that the object leaves the room on the basis of decision results of the first and second movement deciding means, and a means fro resetting the room entering state flag when the room leaving detecting means detects that the object leaves the room.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】この発明は、たとえば、浴
室、トイレなどの部屋内において人が倒れるといった異
常が発生した場合に、そのことを検出する異常検出装置
に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to an abnormality detecting device for detecting an abnormality such as a person falling in a room such as a bathroom or a toilet.

【0002】[0002]

【従来の技術】浴室内において入浴者が入浴中に死亡す
る事故が年々増加しており、入浴者の入浴中での死亡者
数が交通事故による死亡者数以上になり、入浴中での事
故が注目されてきている。
2. Description of the Related Art Accidents of bathers dying during bathing are increasing year by year in the bathroom, and the number of bathing fatalities during bathing exceeds the number of fatalities due to traffic accidents. Is getting attention.

【0003】入浴中での事故の直接的な原因は、入浴中
に心不全や脳卒中などで倒れたり、バスタブ中で意識障
害が生じて溺死するというものである。しかし、そのよ
うな状態となる要因は、原因究明が進んではいるもの
の、現在の生活様式の変化も重なりなかなか特定できな
いのが現状である。従って、入浴中の心不全や脳卒中な
どを防止することはなかなか容易ではない。
A direct cause of an accident while taking a bath is that the patient may fall down due to heart failure or stroke while taking a bath, or consciousness may be impaired in the bathtub, resulting in drowning. However, although the cause of such a state is being investigated, the current situation is that it is difficult to identify the factors due to the current changes in lifestyle. Therefore, it is not easy to prevent heart failure or stroke while taking a bath.

【0004】しかし、症状が発生するのを防止すること
ができなくても、早期発見により、一命を取り留める可
能性はかなり高くなる。
However, even if it is not possible to prevent the occurrence of symptoms, there is a high possibility that a person will be killed by early detection.

【0005】[0005]

【発明が解決しようとする課題】そこで、本出願人は、
次のような異常検出装置を開発した。つまり、浴室内の
映像を撮像手段によって撮像する。撮像手段で撮像した
映像を複数の特徴量算出領域に分割し、各特徴量算出領
域毎に撮像手段で撮像した映像から画像特徴量を抽出す
る。
Therefore, the applicant of the present invention is
We have developed the following abnormality detection device. That is, the image in the bathroom is captured by the image capturing means. The image captured by the image capturing unit is divided into a plurality of feature amount calculation regions, and the image feature amount is extracted from the image captured by the image capturing unit for each feature amount calculation region.

【0006】各特徴量算出領域毎に抽出された画像特徴
量の所定時間間隔毎の時間的変化量を検出する。各特徴
量算出領域毎に検出された画像特徴量の時間的変化量と
動き判定用閾値とを各特徴量算出領域毎に比較し、画像
特徴量の時間的変化量が動き判定用閾値以下である場合
にはその特徴量算出領域に動きが無いと判定し、動き判
定用閾値より大きい場合にその特徴量算出領域に動きが
有ると判定する。
The amount of temporal change in the image feature amount extracted for each feature amount calculation area is detected at predetermined time intervals. The temporal change amount of the image feature amount detected for each feature amount calculation region and the motion determination threshold value are compared for each feature amount calculation region, and the temporal change amount of the image feature amount is equal to or less than the motion determination threshold value. If there is a motion, it is determined that there is no motion in the feature amount calculation region, and if it is greater than the motion determination threshold value, it is determined that there is motion in the feature amount calculation region.

【0007】動きが有ると判定された特徴量算出領域数
が基準値以下の場合に浴室内に動きが無いと判定し、動
きが有ると判定された特徴量算出領域数が基準値より多
い場合に浴室内に動きが有ると判定する。そして、過去
所定回数の浴室内の動き有無判定の結果に基づいて、入
浴者に異常が発生したか否かを判定する。
When the number of characteristic amount calculation areas determined to be moving is less than or equal to the reference value, it is determined that there is no movement in the bathroom, and the number of characteristic amount calculation areas determined to be motion is greater than the reference value. It is determined that there is movement in the bathroom. Then, it is determined whether or not an abnormality has occurred in the bather based on the result of the movement determination in the bathroom a predetermined number of times in the past.

【0008】ところで、上記のような異常検出装置で
は、入浴者が所定時間以上にわたって、動きが無いとき
に異常が発生したと判定するものであるので、浴室に入
浴者が入室しているときに、異常判定を行なう必要があ
る。
By the way, the above-mentioned abnormality detecting device determines that an abnormality has occurred when the bather does not move for a predetermined period of time or longer, and therefore when the bather is in the bathroom. , It is necessary to judge abnormality.

【0009】浴室内に入浴者が入室したか否かおよび浴
室から入浴者が退室したか否かは、従来は、浴室内の照
明灯の点灯スイッチのオンオフに基づいて検出してい
た。しかしながら、従来方法では、浴室内の照明灯の点
灯スイッチと異常検出装置とを接続しなければならない
という問題があるとともに、入浴者が浴室内の照明灯を
オンせずに浴室に入室した場合には、当該入浴者の異常
を検出することができないという問題がある。
Whether or not a bather has entered the bathroom and whether or not the bather has left the bathroom has conventionally been detected based on on / off of a lighting switch of an illumination lamp in the bathroom. However, in the conventional method, there is a problem that the lighting switch of the illumination lamp in the bathroom and the abnormality detection device must be connected, and when the bather enters the bathroom without turning on the illumination lamp in the bathroom. Has a problem that it is not possible to detect the abnormality of the bather.

【0010】この発明は、部屋内に監視対象が入室した
か否かおよび監視対象が部屋から退室したか否かを、監
視対象の異常を検出するために設けられた撮像手段の出
力に基づいて検出できる異常検出装置を提供することを
目的とする。
According to the present invention, whether or not the monitored object has entered the room and whether or not the monitored object has left the room is based on the output of the image pickup means provided for detecting the abnormality of the monitored object. It is an object of the present invention to provide an abnormality detection device that can detect an abnormality.

【0011】また、この発明は、部屋内に監視対象が入
室したか否かおよび監視対象が部屋から退室したか否か
を、監視対象の異常を検出するために設けられた撮像手
段の出力に基づいて検出でき、部屋内に監視対象が入室
している場合にのみ監視対象が異常であるか否かの判定
を行えるようになる異常検出装置を提供することを目的
とする。
Further, according to the present invention, whether or not the monitoring target has entered the room and whether the monitoring target has left the room are output to the output of the image pickup means provided for detecting the abnormality of the monitoring target. An object of the present invention is to provide an abnormality detection device that can be detected based on the above, and can determine whether or not the monitoring target is abnormal only when the monitoring target is in the room.

【0012】[0012]

【課題を解決するための手段】この発明による異常検出
装置は、部屋内の映像を撮像する撮像手段、撮像手段で
撮像した映像を複数の特徴量算出領域に分割し、各特徴
量算出領域毎に撮像手段で撮像した映像から画像特徴量
を抽出する抽出手段、各特徴量算出領域毎に抽出した画
像特徴量の所定時間間隔毎の時間的変化量を検出する検
出手段、各特徴量算出領域毎に検出した画像特徴量の時
間的変化量と動き判定用閾値とを各特徴量算出領域毎に
比較し、画像特徴量の時間的変化量が動き判定用閾値以
下である場合にはその特徴量算出領域に動きが無いと判
定し、動き判定用閾値より大きい場合にその特徴量算出
領域に動きが有ると判定する第1動き判定手段、動きが
有ると判定した特徴量算出領域数が基準値以下の場合に
部屋内で動きが無いと判定し、動きが有ると判定した特
徴量算出領域数が基準値より多い場合に部屋内で動きが
有ると判定する第2動き判定手段、第1動き判定手段に
よる判定結果および第2動き判定手段による判定結果に
基づいて、部屋内に監視対象が入室したことを検出する
入室検出手段、入室検出手段によって部屋内に監視対象
が入室したことが検出されたときに、入室状態フラグを
セットする手段、第1動き判定手段による判定結果およ
び第2動き判定手段による判定結果に基づいて、監視対
象が部屋から退室したことを検出する退室検出手段、退
室検出手段によって監視対象が部屋から退室したことが
検出されたときに、入室状態フラグをリセットする手
段、ならびに入室状態フラグがセットされている場合
に、第2動き判定手段による判定結果に基づいて、監視
対象の異常を検出する異常検出手段を備えていることを
特徴とする。
An abnormality detecting apparatus according to the present invention includes an image pickup means for picking up an image of a room, a video image picked up by the image pickup means, divided into a plurality of feature amount calculation regions, and each feature amount calculation region is divided into a plurality of feature amount calculation regions. Extraction means for extracting the image feature amount from the video imaged by the image pickup means, detection means for detecting the temporal change amount of the image feature amount extracted for each feature amount calculation region, and each feature amount calculation region The temporal change amount of the image feature amount detected for each and the motion determination threshold value are compared for each feature amount calculation region, and if the temporal change amount of the image feature amount is less than or equal to the motion determination threshold value, the feature is calculated. A first motion determination unit that determines that there is no motion in the amount calculation region, and determines that there is motion in the feature amount calculation region when it is larger than the motion determination threshold value, the number of feature amount calculation regions that is determined to be motion is the reference There is no movement in the room when it is below the value And a determination result by the first motion determination means and a second motion determination that determines that there is motion in the room when the number of feature amount calculation regions that is determined to be motion is larger than the reference value. Based on the determination result by the means, the room entrance detection means for detecting that the monitoring target has entered the room, and the room entrance state flag is set when the room entrance detecting means detects that the monitoring object has entered the room. That the monitored object has left the room by the leaving detection means and the leaving detection means for detecting that the monitored object has exited the room based on the determination result by the first motion determination means and the second motion determination means Means for resetting the entry state flag when the detection is made, and if the entry state flag is set, Zui it, characterized in that it comprises an abnormality detecting means for detecting a monitored abnormal.

【0013】入室検出手段としては、たとえば、入室状
態フラグがリセットされている場合において、第2動き
判定手段によって部屋内で動きが有ると判定されかつ第
1動き判定手段により全画像特徴量算出領域内における
周辺部に設定される入室判定領域で動きが有ると判定さ
れた後、第1の所定時間以上経過した後であって第2の
所定時間が経過する前に、第2動き判定手段によって部
屋内で動きが有ると判定されかつ第1動き判定手段によ
り全画像特徴量算出領域内における中央部の画像特徴量
算出領域で動きが有ると判定されたときに、監視対象が
部屋内に入室したと判定するものが用いられる。
As the entry detecting means, for example, when the entry state flag is reset, the second movement determining means determines that there is movement in the room, and the first movement determining means determines the entire image feature amount calculation area. After it is determined that there is movement in the entry determination region set in the peripheral portion of the inside of the room, after the first predetermined time or more has passed and before the second predetermined time has passed, the second movement determination means When it is determined that there is movement in the room and it is determined by the first movement determination means that there is movement in the image feature amount calculation area in the central portion of the entire image feature amount calculation area, the monitoring target enters the room. What is determined to have been used is used.

【0014】入室判定領域を固定しておいてもよいし、
過去の入室検出時における第1動き判定手段による動き
判定結果の履歴に基づいて決定するようにしてもよい。
The entry determination area may be fixed,
The determination may be made based on the history of the motion determination result by the first motion determining means at the time of the past entry detection.

【0015】退室検出手段としては、たとえば、入室状
態フラグがセットされている場合において、第2動き判
定手段によって部屋内で動きが有ると判定されかつ第1
動き判定手段により全画像特徴量算出領域内における中
央部で動きが有ると判定されてから第3の所定時間が経
過した後に、第2動き判定手段によって部屋内で動きが
有ると判定されかつ第1動き判定手段により入室判定領
域で動きが有ると判定され、それから第4の所定時間が
経過するまで第2の動き判定手段によって部屋内に動き
が有ると判定されなかったときに、監視対象が部屋から
退出したと判定するものが用いられる。
As the exit detection means, for example, when the entry state flag is set, the second movement determination means determines that there is movement in the room, and the first movement determination means.
After the third predetermined time has elapsed after the movement determining means determines that there is movement in the central portion of the entire image feature amount calculation area, the second movement determining means determines that there is movement in the room and 1 When the movement determination means determines that there is movement in the entry determination area, and the second movement determination means does not determine that there is movement in the room until the fourth predetermined time has elapsed, the monitoring target is The one that is judged to have left the room is used.

【0016】異常検出手段としては、たとえば、入室状
態フラグがセットされている場合において、第2動き判
定手段による過去所定回数の動き判定結果に基づいて、
部屋内の監視対象に異常が発生したか否かを判定するも
のが用いられる。
As the abnormality detecting means, for example, when the entry state flag is set, based on the result of the predetermined number of past motion determinations by the second motion determining means,
A device that determines whether or not an abnormality has occurred in the monitoring target in the room is used.

【0017】動き判定用閾値は、たとえば、入室状態フ
ラグがリセットされている場合には第1の閾値に設定さ
れ、入室状態フラグがセットされている場合には第1の
閾値より小さな第2の閾値に設定される。
The motion determination threshold value is set to, for example, the first threshold value when the entry state flag is reset, and the second threshold value which is smaller than the first threshold value when the entry state flag is set. It is set to a threshold.

【0018】[0018]

【発明の実施の形態】以下、図面を参照して、この発明
の実施の形態について説明する。
BEST MODE FOR CARRYING OUT THE INVENTION Embodiments of the present invention will be described below with reference to the drawings.

【0019】図1は、異常状態検出装置の配置例を示す
模式図である。
FIG. 1 is a schematic view showing an arrangement example of an abnormal state detecting device.

【0020】図1において、1は浴室である。2は脱衣
場である。3は廊下である。4は台所である。
In FIG. 1, 1 is a bathroom. 2 is a dressing room. 3 is a corridor. 4 is a kitchen.

【0021】浴室1と脱衣場2との間の壁には、ドア5
が開閉自在に設けられており、ドア5を開けて人が脱衣
場2から浴室1内に入室または浴室1から脱衣場2へ退
室することができる。浴室1と脱衣場2との間の壁の脱
衣場2側には、浴室1内に接地された照明灯7をオンオ
フさせるための照明スイッチ6が配置されている。
A door 5 is provided on the wall between the bathroom 1 and the dressing room 2.
Is opened and closed so that a person can enter the bathroom 1 from the dressing room 2 or leave the dressing room 2 from the bathroom 1 by opening the door 5. On the wall between the bathroom 1 and the dressing room 2 on the dressing room 2 side, a lighting switch 6 for turning on and off an illumination lamp 7 grounded in the bathroom 1 is arranged.

【0022】9は、入浴者が異常状態になったことを検
出するための異常状態検出装置である。より具体的に
は、異常状態検出装置9は、浴室1内の映像を浴室上方
から撮像するカメラ8(図2参照)を内蔵しており、カ
メラ8の映像に基づいて、入浴者が異常状態になったこ
とを検出する。
Reference numeral 9 is an abnormal condition detecting device for detecting that the bather is in an abnormal condition. More specifically, the abnormal state detection device 9 has a built-in camera 8 (see FIG. 2) that captures an image of the inside of the bathroom 1 from above the bathroom, and the bather is in an abnormal state based on the image of the camera 8. It detects that it became.

【0023】10は、浴室1内に入室している人(入浴
者)に警報を発するために浴室1内に配置された第1警
報器である。11は浴室1外の人に入浴者の異常を通知
するために、例えば台所4に配置された第2警報器であ
る。
Reference numeral 10 is a first alarm device arranged in the bathroom 1 to give an alarm to a person (bather) who is in the bathroom 1. Reference numeral 11 denotes a second alarm device arranged in the kitchen 4, for example, to notify a person outside the bathroom 1 of the abnormality of the bather.

【0024】図2は、異常状態検出装置9の電機的構成
を示している。
FIG. 2 shows the electrical construction of the abnormal state detecting device 9.

【0025】カメラ8は、レンズ8aとCCD8bとか
らなる。CCD8bは、レンズ8aを通して浴室内の光
学像を光電変換し、電気信号として出力する。CCD8
bの出力信号は、前処理回路91に送られる。前処理回
路は、CDS回路、AGC回路およびADCを備えてい
る。
The camera 8 comprises a lens 8a and a CCD 8b. The CCD 8b photoelectrically converts the optical image in the bathroom through the lens 8a and outputs it as an electric signal. CCD8
The output signal of b is sent to the preprocessing circuit 91. The preprocessing circuit includes a CDS circuit, an AGC circuit and an ADC.

【0026】CCD8bの出力信号は、CDS回路で相
関二重サンプリング処理され、さらに、AGC回路で最
適な振幅にゲイン調整された後、ADCによりデジタル
信号に変換されて、YC分離回路92に入力する。
The output signal of the CCD 8b is subjected to correlated double sampling processing in the CDS circuit, further gain adjusted to an optimum amplitude in the AGC circuit, converted into a digital signal by the ADC, and input to the YC separation circuit 92. .

【0027】YC分離回路92は、デジタルCCD信号
から輝度信号Yと色差信号R−Y,B−Yを生成する。
YC分離回路92によって生成された信号Y,R−Y,
B−Yは、領域毎積算回路93に送られる。
The YC separation circuit 92 generates a luminance signal Y and color difference signals RY and BY from the digital CCD signal.
The signals Y, RY, generated by the YC separation circuit 92,
BY is sent to the integration circuit 93 for each area.

【0028】領域毎積算回路93は、図3に示すよう
に、1画面を複数の同一面積の領域(特徴量算出領域)
E11〜E88に分割し、各特徴量算出領域において、
信号Y,R−Y,B−Y毎に積算処理または平均処理を
行なう。この例では、信号Y,R−Y,B−Y毎に積算
処理を行なうものとする。領域E11〜E88毎に積算
した結果(以下、画像特徴量という)は、画像特徴量R
AM96に格納される。
As shown in FIG. 3, the region-by-region integrating circuit 93 has a plurality of regions having the same area (feature amount calculation region) on one screen.
E11 to E88 are divided, and in each feature amount calculation area,
Integration processing or averaging processing is performed for each of the signals Y, RY, and BY. In this example, the integration process is performed for each of the signals Y, RY, and BY. The result (hereinafter, referred to as image feature amount) accumulated for each of the regions E11 to E88 is the image feature amount R.
It is stored in AM96.

【0029】タイミング制御部99は、CCD8bを駆
動するためのCCD駆動パルスを出力する。また、タイ
ミング制御部99は、CDS回路用にサンプリングパル
スを、ADC用にサンプリングクロックを出力する。
The timing controller 99 outputs a CCD drive pulse for driving the CCD 8b. The timing control unit 99 also outputs a sampling pulse for the CDS circuit and a sampling clock for the ADC.

【0030】タイミング制御部99によって一定のタイ
ミングで入力されるCCDデジタル信号に対し、所定の
YC分離、領域毎積算、高周波成分積算および画像特徴
RAMへの書き込みが正常が行なわれるように、タイミ
ング制御部99は各回路に制御信号を送る。また、タイ
ミング制御部99は、動き判定を行なうマイクロコンピ
ュータ(以下、マイコン)97に対して、割り込み信号
として映像の垂直同期信号であるVsync 信号を出力す
る。
Timing control is performed so that predetermined YC separation, integration for each area, integration of high frequency components, and writing to the image feature RAM are normally performed with respect to the CCD digital signal input at a constant timing by the timing control unit 99. The unit 99 sends a control signal to each circuit. Further, the timing control unit 99 outputs a Vsync signal, which is a vertical synchronizing signal of a video, as an interrupt signal to a microcomputer (hereinafter, microcomputer) 97 that makes a motion determination.

【0031】マイコン97は、タイミング制御部99に
対し、領域の位置設定などのパラメータ設定を行なう。
また、マイコン97は、映像の明るさを最適化するため
に、AGC回路のゲイン制御や、CPUI/F98を通
じてタイミング制御を行い、CCD8bの露光時間制御
を行なう。また、マイコン97は、タイミング制御部9
9から割り込み信号を受け、映像の出力に同期して各特
徴量算出領域毎に動き判定を行なう。さらに、マイコン
97は、動き判定結果に基づいて、入室判定、退室判
定、異常判定等を行なう。
The microcomputer 97 sets parameters such as position setting of the area to the timing control unit 99.
In addition, the microcomputer 97 controls the gain of the AGC circuit and the timing control through the CPU I / F 98 in order to optimize the brightness of the image, and controls the exposure time of the CCD 8b. Further, the microcomputer 97 uses the timing control unit 9
An interrupt signal is received from 9 and motion determination is performed for each feature amount calculation region in synchronization with the output of video. Further, the microcomputer 97 performs entry determination, exit determination, abnormality determination, etc. based on the motion determination result.

【0032】図4に示す8×8の特徴量算出領域を含む
全特徴量算出領域S0内における中央の4×4の領域を
中央領域S1ということにする。また、全特徴量算出領
域S0内における最も外側の部分を周辺領域S2という
ことにする。
The central 4 × 4 region in the entire feature amount calculation region S0 including the 8 × 8 feature amount calculation region shown in FIG. 4 is referred to as a central region S1. Further, the outermost portion in the total feature amount calculation area S0 is referred to as a peripheral area S2.

【0033】図5(a)〜(d)に示すように、周辺領
域S2内に設定された16個の斜線領域R1〜R16
を、入退室領域候補ということにする。
As shown in FIGS. 5A to 5D, 16 shaded areas R1 to R16 set in the peripheral area S2.
Will be referred to as entry / exit area candidates.

【0034】図6および図7は、マイコン97の動作を
示している。
6 and 7 show the operation of the microcomputer 97.

【0035】動き判定処理に用いられるフラグ、変数に
ついて説明する。 ・入室フラグ:浴室に入浴者が入室しているか否かを記
憶するフラグであり、浴室に入浴者が入室していない場
合(入室待ち状態)に0となり、浴室に入浴者が入室し
ている場合(入室状態)に1となる。 ・仮入室フラグ:浴室に入浴者が入室した可能性が有る
か否かを記憶するフラグであり、浴室に入浴者が入室し
た可能性がない場合には0となり、浴室に入浴者が入室
した可能性がある場合に1となる。 ・退室フラグ:浴室から入浴者が退室した可能性がある
か否かを記憶するフラグであり、浴室から入浴者が退室
した可能性がない場合には0となり、浴室から入浴者が
退室した可能性がある場合に1となる。 ・入室回数:浴室に入浴者が入室した回数。
The flags and variables used in the motion determination process will be described.・ Bathing flag: This is a flag that stores whether or not a bather is in the bathroom. When the bather is not in the bathroom (waiting for entry), the flag is 0, and the bather is in the bathroom. It becomes 1 in the case (entry state).・ Temporary entry flag: This is a flag that remembers whether or not there is a possibility that a bather may have entered the bathroom. If the bather has no possibility of entering the bathroom, it will be 0, and the bather has entered the bathroom. It is 1 when there is a possibility. -Exit flag: A flag that remembers whether or not a bather may have left the bathroom. It is 0 if there is no possibility that the bather has left the bathroom, and the bather may have left the bathroom. It becomes 1 when there is a property.・ Number of room entrances: The number of times a bather entered the bathroom.

【0036】マイコン97の電源がオンされると、マイ
コン97は初期設定を行う(ステップ1)。この初期設
定では、上記各種フラグおよび入室回数を0にするとと
もに、後述する仮入室経過時間を0に設定する。また、
入室待ち状態において、動き検出感度を下げて、外光の
変化による動きの誤判定を少なくするために、動きの有
無を判定する際に使用される閾値SUBTHとして、大
きい値SUBTH_1を設定する。なお、後述するよう
に、入室状態においては、動き検出感度を高くするため
に、閾値SUBTHとしては、SUBTH_1より小さ
いSUBTH_2が設定される。
When the power of the microcomputer 97 is turned on, the microcomputer 97 performs initial setting (step 1). In this initial setting, the various flags and the number of times of entering the room are set to 0, and the temporary entry elapsed time, which will be described later, is set to 0. Also,
In the entry waiting state, a large value SUBTH_1 is set as the threshold value SUBTH used when determining the presence or absence of motion in order to reduce the motion detection sensitivity and reduce the erroneous determination of motion due to changes in outside light. As will be described later, in the entry state, SUBTH_2 smaller than SUBTH_1 is set as the threshold SUBTH in order to increase the motion detection sensitivity.

【0037】初期設定が終了すると、Vsync 信号が入力
するのを待機する(ステップ2)、Vsync 信号が入力さ
れると、以下の処理を行なう。
When the initial setting is completed, it waits for the Vsync signal to be input (step 2). When the Vsync signal is input, the following processing is performed.

【0038】Vsync 信号が入力されると、マイコン97
は、各特徴量算出領域について画像の動きの有無を判定
し、画像の動きが有ると判定された特徴量算出領域を記
憶するとともに、画像の動きが有ると判定された特徴量
算出領域の数を算出する(ステップ3)。
When the Vsync signal is input, the microcomputer 97
Determines the presence or absence of image movement for each feature amount calculation area, stores the feature amount calculation area determined to have image movement, and stores the number of feature amount calculation areas determined to have image movement. Is calculated (step 3).

【0039】つまり、画像特徴量RAM96に格納され
ている前フィールドの各特徴量算出領域の画像特徴量を
CPUI/F98を通して読み出し、マイコン97内部
のRAMに格納する。各特徴量算出領域の画像特徴量が
マイコン97内部のRAMに格納されると、マイコン9
7は、動き有りの領域数を表す変数CountMを0 にする。
That is, the image feature amount of each feature amount calculation area of the previous field stored in the image feature amount RAM 96 is read out through the CPU I / F 98 and stored in the RAM inside the microcomputer 97. When the image feature amount of each feature amount calculation area is stored in the RAM inside the microcomputer 97, the microcomputer 9
7, the variable CountM representing the number of areas with movement is set to 0.

【0040】そして、各特徴量算出領域の特徴量の変化
量から、各特徴量算出領域毎の動き判定を行なう。つま
り、マイコン97は、各算出領域毎に画像特徴量RAM
96から今回読み出した画像特徴量Dxy(t)と画像特徴量
RAM96から前回読み出した画像特徴量Dxy(t-1)との
差の絶対値|Dxy(t)−Dxy(t-1)|が閾値SUBTHより
大きいか否かを判定する。
Then, based on the amount of change in the feature amount of each feature amount calculation region, the motion determination for each feature amount calculation region is performed. That is, the microcomputer 97 uses the image feature amount RAM for each calculation area.
The absolute value | Dxy (t) −Dxy (t-1) | of the difference between the image feature amount Dxy (t) read this time from 96 and the image feature amount Dxy (t-1) previously read from the image feature amount RAM 96 is It is determined whether it is larger than the threshold value SUBTH.

【0041】この判定は、各特徴量算出領域に対して、
輝度信号Yの積算値の変化量、色差信号R−Yの積算値
の変化量および色差信号B−Yの積算値の変化量それぞ
れについて行われ、いずれか1つでも変化量がSUBT
Hより大きければ、その特徴量算出領域に動きが有った
と判定する。そして、各特徴量算出領域毎の動き判定結
果を記憶する。
This determination is made for each feature amount calculation area.
The change amount of the integrated value of the luminance signal Y, the change amount of the integrated value of the color difference signal R-Y, and the change amount of the integrated value of the color difference signal B-Y are performed.
If it is larger than H, it is determined that there is motion in the feature amount calculation area. Then, the motion determination result for each feature amount calculation area is stored.

【0042】また、特徴量算出領域において動きが有る
と判定する毎に、マイコン97は、変数CountMを1だけ
インクリメントする。このようにして、全ての特徴量算
出領域についての動き判定が終了すると、マイコン97
は、動きが有ると判定された領域数CountMが基準値TH_
Count より大きいか否かを判定する(ステップ4)。基
準値TH_Count は、たとえば、全特徴量算出領域数の1
割程度に設定される。例えば、全特徴量算出領域数が図
3のように64の場合には、基準値TH_Countは7個に
設定される。
Further, each time the microcomputer 97 determines that there is a motion in the characteristic amount calculation area, the microcomputer 97 increments the variable CountM by 1. In this way, when the motion determination for all the feature amount calculation areas is completed, the microcomputer 97
Indicates that the number of areas CountM determined to be moving is the reference value TH_
It is determined whether it is larger than Count (step 4). The reference value TH_Count is, for example, 1 of the total number of feature amount calculation areas.
It is set to about 50%. For example, when the total number of feature amount calculation areas is 64 as shown in FIG. 3, the reference value TH_Count is set to 7.

【0043】そして、動きが有ると判定された領域数Co
untMが基準値TH_Count 以下である場合には、浴室内に
動きが無いと判断し(ステップ5)、入室フラグが0で
あるか(入室待ち状態であるか)否かを判定する(ステ
ップ6)。入室フラグが0である場合には、仮入室フラ
グが1であるか否かを判定する(ステップ7)。仮入室
フラグが1でない場合には、ステップ2に戻る。
Then, the number of areas Co determined to have a motion Co
If untM is less than or equal to the reference value TH_Count, it is determined that there is no movement in the bathroom (step 5), and it is determined whether the entry flag is 0 (waiting for entry) (step 6). . If the entry flag is 0, it is determined whether the provisional entry flag is 1 (step 7). If the temporary entry flag is not 1, the process returns to step 2.

【0044】つまり、浴室内に入浴者が入室していない
場合には、ステップ2〜7の処理が繰り返し行なわれる
ことになる。
That is, when the bather is not in the bathroom, the processes of steps 2 to 7 are repeated.

【0045】上記ステップ4において、動きが有ると判
定された領域数CountMが基準値TH_Count より大きいと
判定された場合には、浴室内に動きが有ると判断し(ス
テップ9)、入室フラグが0であるか(入室待状態であ
るか)否かを判定する(ステップ10)。入室フラグが
0である場合には、仮入室フラグが0であるか否かを判
定する(ステップ11)。
When it is determined in step 4 that the number of areas CountM determined to be moving is larger than the reference value TH_Count, it is determined that there is movement in the bathroom (step 9), and the entry flag is 0. It is determined whether or not (the entry waiting state) (step 10). If the entry flag is 0, it is determined whether the provisional entry flag is 0 (step 11).

【0046】仮入室フラグが0である場合には、入室回
数が所定のA回以上であるか否かを判定する(ステップ
12)。入室回数が所定のA回より少ない場合には、全
周辺領域S2を入室判定領域として設定した後(ステッ
プ13)、ステップ15に進む。入室回数が所定のA回
より多い場合には、仮入室領域の履歴から決定されてい
る入室領域(後述するステップ24によって決定されて
いる入室領域)を、入室判定領域として設定した後(ス
テップ14)、ステップ15に進む。
If the temporary entry flag is 0, it is determined whether the number of entry is equal to or more than a predetermined number of times A (step 12). When the number of times of entering the room is less than the predetermined number of times A, the entire peripheral area S2 is set as the entry determination area (step 13), and then the process proceeds to step 15. If the number of times of entering the room is larger than the predetermined number of times A, the entry area determined from the history of the temporary entry area (the entry area determined in step 24 described later) is set as the entry determination area (step 14). ), And proceeds to step 15.

【0047】ステップ15では、今回でのステップ3に
おける処理結果に基づいて、入室判定領域内において動
きがあったか否かを判定する。入室判定領域内において
動きがなかった場合には、今回でのステップ9における
動きが有るとの判定結果は、入浴者が入室したことに起
因したものではないと判断し、ステップ2に戻る。
In step 15, based on the processing result in step 3 this time, it is determined whether or not there is a movement in the entry determination area. If there is no movement in the entry determination area, it is determined that the determination result that there is movement in step 9 this time is not due to the bather entering the room, and the process returns to step 2.

【0048】ステップ15において、入室判定領域内に
おいて動きがあったと判定した場合には、浴室に入浴者
が入室した可能性があるので、仮入室フラグを1にする
(ステップ16)。また、入退室領域候補R1〜R16
のうち、今回のステップ3において動き有りと判定され
た領域数(特徴量算出領域数)が最も多い領域を仮入室
領域に設定する(ステップ17)。
If it is determined in step 15 that there is movement within the entry determination area, it is possible that a bather has entered the bathroom, so the temporary entry flag is set to 1 (step 16). Further, entry / exit area candidates R1 to R16
Of these, the region having the largest number of regions (the number of feature amount calculation regions) determined to be moving in this step 3 is set as the temporary entry region (step 17).

【0049】そして、仮入室経過時間をカウントアップ
(+1)する(ステップ18)。そして、仮入室経過時
間が所定のC秒以下であるか否かを判定する(ステップ
19)。仮入室経過時間がC秒以下である場合には、仮
入室経過時間がC秒より短い所定のD秒以上であるか否
かを判定する(ステップ20)。
Then, the elapsed time of temporary entry is counted up (+1) (step 18). Then, it is determined whether or not the temporary entry elapsed time is equal to or less than a predetermined C seconds (step 19). If the temporary entry elapsed time is C seconds or less, it is determined whether the temporary entry elapsed time is a predetermined D seconds or more shorter than C seconds (step 20).

【0050】仮入室経過時間がD秒より小さい場合に
は、ステップ2に戻る。そして、次フィールドにおい
て、ステップ4で動きがあると判定された場合には、ス
テップ9、ステップ10、ステップ11を介してステッ
プ18に進み、仮入室経過時間がカウントアップされ
る。あるいは、次フィールドにおいて、ステップ4で動
きがないと判定された場合には、ステップ5、ステップ
6、ステップ7を介してステップ8に進み、仮入室経過
時間がカウントアップされる。
When the temporary entry elapsed time is less than D seconds, the process returns to step 2. When it is determined in step 4 that there is movement in the next field, the process proceeds to step 18 through step 9, step 10 and step 11, and the provisional entry elapsed time is counted up. Alternatively, when it is determined that there is no movement in step 4 in the next field, the process proceeds to step 8 through step 5, step 6 and step 7, and the provisional entry elapsed time is counted up.

【0051】ステップ2、3、4、9、10、11、1
8のルートでステップ19に移行した際において、仮入
室経過時間がC秒以下でかつD秒以上である場合には、
今回でのステップ3の処理結果に基づいて、中央領域S
1内で動きがあったか否かを判定する(ステップ2
1)。
Steps 2, 3, 4, 9, 10, 11, 1
When the temporary entry elapsed time is C seconds or less and D seconds or more at the time of shifting to step 19 on the route of 8,
Based on the processing result of step 3 this time, the central region S
It is determined whether or not there is movement within 1 (step 2
1).

【0052】中央領域S1内で動きがなかった場合に
は、ステップ2に戻る。この場合においても、次フィー
ルドにおいて、ステップ4で動きがあると判定された場
合には、ステップ9、ステップ10、ステップ11を介
してステップ18に進み、仮入室経過時間がカウントア
ップされる。あるいは、次フィールドにおいて、ステッ
プ4で動きがないと判定された場合には、ステップ5、
ステップ6、ステップ7を介してステップ8に進み、仮
入室経過時間がカウントアップされる。
If there is no movement within the central area S1, the process returns to step 2. Also in this case, when it is determined that there is movement in step 4 in the next field, the process proceeds to step 18 through step 9, step 10 and step 11, and the temporary entry elapsed time is counted up. Alternatively, if it is determined that there is no movement in step 4 in the next field, step 5,
Proceeding to step 8 through step 6 and step 7, the temporary entry elapsed time is counted up.

【0053】ステップ21において、中央領域S1内で
動きがあったと判定された場合には、入室フラグを1
(入室状態)にするとともに入室回数をカウントアップ
(+1)する(ステップ22)。つまり、入室判定領域
内で動きが検出されてから、D秒以上経過した後、C秒
以下の時間が経過するまでに、中央領域S1内で動きが
検出されたときに、浴室に入浴者が入室したと判定す
る。
If it is determined in step 21 that there is movement within the central area S1, the entry flag is set to 1
At the same time as entering the room, the number of times of entering the room is incremented (+1) (step 22). That is, when a movement is detected in the entry determination area, and after a lapse of D seconds or more and a time of C seconds or less, when a movement is detected in the central area S1, a bather is bathed in the bathroom. It is determined that you have entered the room.

【0054】また、上記ステップ17で設定された仮入
室領域を用いて、仮入室領域の履歴を更新する(ステッ
プ23)。また、仮入室領域の履歴に基づいて、入退室
領域候補R1〜R16のうち、仮入室領域であると判定
された回数が最も多い領域候補を、入室領域に決定する
(ステップ24)。また、動き検出感度を上げるため、
閾値SUBTHとしてSUBTH_2を設定する(ステ
ップ25)。そして、ステップ2に戻る。
The history of the temporary entry area is updated using the temporary entry area set in step 17 (step 23). In addition, based on the history of the temporary entry area, the area candidate having the largest number of times of being determined to be the temporary entry area among the entry and exit area candidates R1 to R16 is determined as the entry area (step 24). Also, to increase the sensitivity of motion detection,
SUBTH_2 is set as the threshold value SUBTH (step 25). Then, the process returns to step 2.

【0055】なお、ステップ19において、仮入室経過
時間がC秒を越えた場合、つまり、入室判定領域内で動
きが検出されてから、D秒以上経過した後、C秒が経過
するまでに、中央領域S1内で動きが検出されなかった
ときには、浴室に入浴者が入室したとは判断しない。こ
の場合には、仮入室経過時間が0にされるとともに仮入
室フラグが0にされた後(ステップ26)、ステップ2
に戻る。
In step 19, if the temporary entry elapsed time exceeds C seconds, that is, after D seconds or more have elapsed since the movement was detected in the entry determination area, until C seconds have elapsed, When no movement is detected in the central area S1, it is not determined that the bather has entered the bathroom. In this case, after the provisional entry elapsed time is set to 0 and the provisional entry flag is set to 0 (step 26), step 2
Return to.

【0056】入室状態(入室フラグが1である状態)に
おいて、ステップ4で動きありと判定された場合の処理
について説明する。
In the room entering state (state where the room entering flag is 1), the process when it is determined in step 4 that there is movement will be described.

【0057】入室状態において、ステップ4で動きあり
と判定された場合には、ステップ9、ステップ10を介
してステップ27に移行する。
When it is determined in step 4 that there is movement in the room entering state, the process proceeds to step 27 through steps 9 and 10.

【0058】ステップ27では、今回のステップ3の処
理結果に基づいて、周辺領域S2内に動きがあるか否か
を判定する。周辺領域S2内に動きがない場合には、退
室領域として、退室領域無しを設定する(ステップ2
8)。また、今回のステップ3の処理結果に基づいて、
中央領域S1内に動きがあるか否かを判定し、その判定
結果を中央領域での静動判定結果の履歴情報として記憶
する(ステップ29)。そして、退室フラグを0にした
後(ステップ30)、ステップ2に戻る。
In step 27, it is determined whether or not there is a movement in the peripheral area S2 based on the processing result of step 3 this time. If there is no movement in the peripheral area S2, no exit area is set as the exit area (step 2).
8). In addition, based on the processing result of step 3 this time,
It is determined whether or not there is movement in the central area S1, and the determination result is stored as history information of the static / moving determination result in the central area (step 29). Then, after the exit flag is set to 0 (step 30), the process returns to step 2.

【0059】ステップ27において、周辺領域S2内に
動きがあると判定した場合には、入退室領域候補R1〜
R16のうち、今回のステップ3において動き有りと判
定された領域数(特徴量算出領域数)が最も多い領域を
退室領域に設定する(ステップ31)。また、今回のス
テップ3の処理結果に基づいて、中央領域S1内に動き
があるか否かを判定し、その判定結果を中央領域での静
動判定結果の履歴情報として記憶する(ステップ3
2)。なお、中央領域での静動判定結果の履歴情報は、
後述するステップ35でも更新される。そして、中央領
域での静動判定結果の履歴情報に基づいて、過去所定の
G秒以内に、中央領域S1で動きが検出されているか否
かを判定する(ステップ33)。
If it is determined in step 27 that there is movement in the peripheral area S2, the entry / exit area candidates R1 to R1 are selected.
Of R16, the area having the largest number of areas (the number of characteristic amount calculation areas) determined to be moving in step 3 of this time is set as the leaving area (step 31). Further, based on the processing result of step 3 this time, it is determined whether or not there is movement in the central region S1, and the determination result is stored as history information of the static / moving determination result in the central region (step 3
2). The history information of the static / moving judgment result in the central area is
It is also updated in step 35 described later. Then, it is determined whether or not motion is detected in the central area S1 within a predetermined G seconds in the past based on the history information of the static / moving determination result in the central area (step 33).

【0060】過去所定のG秒以内に、中央領域S1で動
きが検出されていない場合には、退出フラグを0にした
後(ステップ30)、ステップ2に戻る。過去所定のG
秒以内に、中央領域S1で動きが検出されている場合に
は、入浴者が退室した可能性があると判断し、退出フラ
グを1にした後(ステップ34)、ステップ2に戻る。
If no movement is detected in the central area S1 within the predetermined G seconds in the past, the exit flag is set to 0 (step 30), and the process returns to step 2. Past prescribed G
If the movement is detected in the central area S1 within the second, it is determined that the bather may have left the room, the exit flag is set to 1 (step 34), and the process returns to step 2.

【0061】入室状態(入室フラグが1である状態)に
おいて、ステップ4で動きなしと判定された場合の処理
について説明する。
In the room entering state (state where the room entering flag is 1), the process when it is determined in step 4 that there is no movement will be described.

【0062】入室状態において、ステップ4で動きなし
と判定された場合には、ステップ5、ステップ6を介し
てステップ35に移行する。ステップ35では、中央領
域での静動判定結果の履歴情報として、静止を記憶す
る。
When it is determined in step 4 that there is no movement in the entry state, the process proceeds to step 35 through steps 5 and 6. In step 35, stillness is stored as history information of the static / moving determination result in the central area.

【0063】次に、過去N回(Nフィールド)の動き判
定(ステップ4の動き判定)において所定のM回以上入
浴者に動きがあると判定されたか否かを判定する(ステ
ップ36)。過去N回の動き判定においてM回以上入浴
者に動きがある場合には、入浴者が動状態であると判定
し(ステップ37)、そうでない場合には入浴者が静止
状態であると判定する(ステップ38)。
Next, it is determined whether or not it has been determined that the bather has moved a predetermined number of M times or more in the past N (N field) movement determinations (motion determination in step 4) (step 36). If the bather has moved more than M times in the past N motion determinations, it is determined that the bather is in motion (step 37), and if not, it is determined that the bather is stationary. (Step 38).

【0064】入浴者が静止状態であると判定した場合に
は、内部タイマ(図示略)による計時動作中か否かを判
定し(ステップ39)、計時動作中である場合にはステ
ップ41に移行する。計時動作中でない場合には、内部
タイマによる計時動作を開始させた後(ステップ4
0)、ステップ41に移行する。
When it is determined that the bather is still, it is determined whether or not the internal timer (not shown) is in the time counting operation (step 39), and if it is in the time counting operation, the process proceeds to step 41. To do. If the timekeeping operation is not in progress, start the timekeeping operation by the internal timer (step 4
0), the process proceeds to step 41.

【0065】ステップ41以降においては、内部タイマ
による計時時間が第1所定時間を経過しているか否か
(ステップ41)、内部タイマによる計時時間が第1所
定時間より短い第2所定時間を経過しているか否か(ス
テップ42)、内部タイマによる計時時間が第2所定時
間より短い第3所定時間を経過しているか否か(ステッ
プ43)を判定する。
After step 41, whether or not the time measured by the internal timer has exceeded the first predetermined time (step 41), the time measured by the internal timer has passed the second predetermined time shorter than the first predetermined time. Is determined (step 42), it is determined whether the time measured by the internal timer has passed a third predetermined time shorter than the second predetermined time (step 43).

【0066】内部タイマによる計時時間が第3所定時間
を経過していないときには(ステップ41、42、43
でNO)、ステップ2に戻る。内部タイマによる計時時
間が第2経過時間を経過していないが、第3所定時間を
経過した場合には(ステップ41、42でNO,ステッ
プ43でYES)、入室領域(ステップ24で決定され
た最新の入室領域)が、退室領域(ステップ28または
31で設定された最新の退出領域)と等しいか否かを判
定する(ステップ44)。
When the time measured by the internal timer has not exceeded the third predetermined time (steps 41, 42, 43)
NO), and returns to step 2. When the time measured by the internal timer has not passed the second elapsed time but the third predetermined time has passed (NO in steps 41 and 42, YES in step 43), the entry area (determined in step 24) It is determined whether the latest entry area) is equal to the exit area (the latest exit area set in step 28 or 31) (step 44).

【0067】入室領域と退室領域とが等しい場合には、
退室フラグが1であるか否かを判定する(ステップ4
5)。退室フラグが1である場合には、入浴者が退室し
たと判断し、仮入室フラグ、入室フラグおよび退室フラ
グを0にするとともに、仮入室経過時間を0にする(ス
テップ46)。これにより、入室待ち状態となる。
When the entry area and the exit area are the same,
It is determined whether or not the leaving flag is 1 (step 4
5). If the leaving flag is 1, it is determined that the bather has left the room, and the temporary entry flag, the entry flag, and the exit flag are set to 0, and the temporary entry elapsed time is set to 0 (step 46). As a result, the room enters the waiting state.

【0068】そして、また、動き検出感度を下げるた
め、閾値SUBTHとしてSUBTH_1を設定した後
(ステップ47)、ステップ2に戻る。
Further, in order to lower the motion detection sensitivity, SUBTH_1 is set as the threshold value SUBTH (step 47), and the process returns to step 2.

【0069】ステップ44で入室領域と退室領域とが等
しくないと判定された場合またはステップ45で退室フ
ラグが0であると判定された場合には、第1安否信号を
出力し、浴室1内に設置した第1警報器10を駆動して
浴室1内の人に警告を促す(ステップ50)。そして、
ステップ2に戻る。
If it is determined in step 44 that the entry area and the exit area are not equal to each other or if it is determined in step 45 that the exit flag is 0, the first safety signal is output and the bathroom 1 is placed in the bathroom 1. The first alarm device 10 installed is driven to urge a person in the bathroom 1 to warn (step 50). And
Return to step 2.

【0070】内部タイマによる計時時間が第1経過時間
を経過していないが、第2所定時間を経過した場合には
(ステップ41でNO,ステップ42でYES)、第2
安否信号を出力し、浴室1内に設置した第1警報器10
を駆動して浴室1内の人に警告を促す(ステップ4
9)。第1安否信号と第2安否信号との相違は、たとえ
ば、第1警報器10が警報音を出力する場合には、第1
安否信号では警報音が小さく出力され、第2安否信号で
は警報音が大きく出力されるといった相違である。ある
いは、第1安否信号と第2安否信号との相違は、たとえ
ば、第1警報器10が警報音を出力する場合には、第1
安否信号では警報音が1回だけ出力され、第2安否信号
では警報音が繰り返し出力されるといった相違である。
そして、ステップ2に戻る。
If the time measured by the internal timer has not passed the first elapsed time but the second predetermined time has passed (NO in step 41, YES in step 42), the second
A first alarm device 10 that outputs a safety signal and is installed in the bathroom 1
Drive to warn people in bathroom 1 (step 4
9). The difference between the first safety signal and the second safety signal is that, for example, when the first alarm device 10 outputs an alarm sound,
The difference is that the warning sound is output in a small amount with the safety signal, and the warning sound is output in a large amount with the second safety signal. Alternatively, the difference between the first safety signal and the second safety signal is that, for example, when the first alarm device 10 outputs an alarm sound,
The difference is that the warning signal is output only once by the safety signal, and the warning sound is repeatedly output by the second safety signal.
Then, the process returns to step 2.

【0071】内部タイマによる計時時間が第1経過時間
を経過した場合には(ステップ41でYES)、浴室1
内の入浴者に異常が生じたと判定して、外部警報信号を
出力し、部屋外、例えば台所4に設置した第2警報器1
1を駆動し、外部の人に緊急事態を知らせる(ステップ
48)。そして、ステップ2に戻る。
When the time measured by the internal timer has exceeded the first elapsed time (YES in step 41), the bathroom 1
It is determined that an abnormality has occurred in the bather inside, and an external alarm signal is output, and the second alarm device 1 installed outside the room, for example, in the kitchen 4
Drive 1 to notify an external person of the emergency (step 48). Then, the process returns to step 2.

【0072】ステップ49、50での警報は、浴室1内
で入浴者が居眠りをしている場合があるので、その人を
起こすために実行されるものである。また、ステップ4
9、50での警報は、浴槽内などで静止している入浴者
に対して、大丈夫か安否を確認するためにも実行される
ものである。第1警報器10は、外部への誤警報を無く
すために設けられている。ステップ48での警報は、浴
室内で意識不明など異常な状態が発生したと判断して、
外部の人に緊急事態を通知するものである。
The alarms in steps 49 and 50 are executed to wake up the bather who may be asleep in the bathroom 1. Also, step 4
The alarms at 9 and 50 are also executed to confirm the safety of the bather who is stationary in the bathtub or the like. The first alarm device 10 is provided to eliminate false alarms to the outside. The warning in step 48 determines that an abnormal state such as unconsciousness has occurred in the bathroom,
It notifies an external person of an emergency.

【0073】上記ステップ36において、入浴者が動状
態であると判定した場合には(ステップ37)、内部タ
イマによる計時動作をリセット(計時動作が行なわれて
いる場合)するとともに、警報信号を停止(安否信号ま
たは警報信号が出力されている場合)した後(ステップ
51)、ステップ2に戻る。
When it is determined in step 36 that the bather is moving (step 37), the timekeeping operation by the internal timer is reset (when the timekeeping operation is being performed) and the alarm signal is stopped. After (when the safety signal or the alarm signal is output) (step 51), the process returns to step 2.

【0074】上記実施の形態では、入室判定領域は、過
去の仮入室領域の履歴から決定されているが、予めユー
ザによって入室判定領域を設定させて、設定された領域
に固定するようにしてもよい。
In the above embodiment, the entry determination area is determined from the history of the temporary entry areas in the past. However, the entry determination area may be set in advance by the user and fixed to the set area. Good.

【0075】[0075]

【発明の効果】この発明によれば、部屋内に監視対象が
入室したか否かおよび監視対象が部屋から退室したか否
かを、監視対象の異常を検出するために設けられた撮像
手段の出力に基づいて検出できるようになる。
According to the present invention, there is provided an image pickup means for detecting whether or not a monitoring target has entered the room and whether the monitoring target has left the room. It can be detected based on the output.

【0076】また、この発明によれば、部屋内に監視対
象が入室したか否かおよび監視対象が部屋から退室した
か否かを、監視対象の異常を検出するために設けられた
撮像手段の出力に基づいて検出でき、部屋内に監視対象
が入室している場合にのみ監視対象が異常であるか否か
の判定を行えるようになる。
Further, according to the present invention, the image pickup means provided for detecting the abnormality of the monitoring target whether the monitoring target has entered the room and whether the monitoring target has left the room. It is possible to detect based on the output, and it becomes possible to determine whether or not the monitoring target is abnormal only when the monitoring target is in the room.

【図面の簡単な説明】[Brief description of drawings]

【図1】異常状態検出装置の配置例を示す模式図であ
る。
FIG. 1 is a schematic diagram illustrating an arrangement example of an abnormal state detection device.

【図2】異常状態検出装置の構成を示すブロック図であ
る。
FIG. 2 is a block diagram showing a configuration of an abnormal state detection device.

【図3】1画面内に設定された複数の特徴量算出領域を
示す模式図である。
FIG. 3 is a schematic diagram showing a plurality of feature amount calculation areas set in one screen.

【図4】全特徴量算出領域S0内いに設定された中央領
域S1と、周辺領域S2とを示す模式図である。
FIG. 4 is a schematic diagram showing a central area S1 and a peripheral area S2 that are set inside the total feature amount calculation area S0.

【図5】図4の周辺領域S2内に設定された16個の入
退室領域候補R1〜R16を示す模式図である。
5 is a schematic diagram showing 16 entry / exit area candidates R1 to R16 set in a peripheral area S2 of FIG. 4. FIG.

【図6】マイコンの動作を示すフローチャートである。FIG. 6 is a flowchart showing the operation of the microcomputer.

【図7】マイコンの動作を示すフローチャートである。FIG. 7 is a flowchart showing the operation of the microcomputer.

【符号の説明】[Explanation of symbols]

8 カメラ 8a レンズ 8b CCD 9 異常状態検出装置 91 前処理回路 92 YC分離回路 93 領域毎積算回路 96 画像特徴量RAM 97 マイコン 98 CPUI/F 99 タイミング制御部 8 cameras 8a lens 8b CCD 9 Abnormal condition detector 91 Preprocessing circuit 92 YC separation circuit 93 Integration circuit for each area 96 image feature RAM 97 Microcomputer 98 CPU I / F 99 Timing control unit

───────────────────────────────────────────────────── フロントページの続き Fターム(参考) 5B057 AA19 BA02 DA15 DB02 DB06 DB09 DC22 DC25 DC32 5C054 AA01 AA05 CA04 CC02 CE01 CE16 CG07 CH02 EA01 FA09 FC13 HA37 5C086 AA22 BA04 CA28 CB36 DA08 DA33 EA45 5L096 AA02 AA06 BA02 CA02 DA03 FA53 GA19 GA51 HA02 JA18   ─────────────────────────────────────────────────── ─── Continued front page    F term (reference) 5B057 AA19 BA02 DA15 DB02 DB06                       DB09 DC22 DC25 DC32                 5C054 AA01 AA05 CA04 CC02 CE01                       CE16 CG07 CH02 EA01 FA09                       FC13 HA37                 5C086 AA22 BA04 CA28 CB36 DA08                       DA33 EA45                 5L096 AA02 AA06 BA02 CA02 DA03                       FA53 GA19 GA51 HA02 JA18

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】 部屋内の映像を撮像する撮像手段、 撮像手段で撮像した映像を複数の特徴量算出領域に分割
し、各特徴量算出領域毎に撮像手段で撮像した映像から
画像特徴量を抽出する抽出手段、 各特徴量算出領域毎に抽出した画像特徴量の所定時間間
隔毎の時間的変化量を検出する検出手段、 各特徴量算出領域毎に検出した画像特徴量の時間的変化
量と動き判定用閾値とを各特徴量算出領域毎に比較し、
画像特徴量の時間的変化量が動き判定用閾値以下である
場合にはその特徴量算出領域に動きが無いと判定し、動
き判定用閾値より大きい場合にその特徴量算出領域に動
きが有ると判定する第1動き判定手段、 動きが有ると判定した特徴量算出領域数が基準値以下の
場合に部屋内で動きが無いと判定し、動きが有ると判定
した特徴量算出領域数が基準値より多い場合に部屋内で
動きが有ると判定する第2動き判定手段、 第1動き判定手段による判定結果および第2動き判定手
段による判定結果に基づいて、部屋内に監視対象が入室
したことを検出する入室検出手段、 入室検出手段によって部屋内に監視対象が入室したこと
が検出されたときに、入室状態フラグをセットする手
段、 第1動き判定手段による判定結果および第2動き判定手
段による判定結果に基づいて、監視対象が部屋から退室
したことを検出する退室検出手段、 退室検出手段によって監視対象が部屋から退室したこと
が検出されたときに、入室状態フラグをリセットする手
段、ならびに入室状態フラグがセットされている場合
に、第2動き判定手段による判定結果に基づいて、監視
対象の異常を検出する異常検出手段、 を備えている異常検出装置。
1. An image pickup unit for picking up an image in a room, a video image picked up by the image pickup unit is divided into a plurality of feature amount calculation regions, and image feature amounts are picked up from the image picked up by the image pickup unit for each feature amount calculation region. Extraction means for extracting, detection means for detecting the temporal change amount of the image feature amount extracted for each feature amount calculation area at predetermined time intervals, temporal change amount of the image feature amount detected for each feature amount calculation area And a threshold for motion determination are compared for each feature amount calculation region,
If the temporal change amount of the image feature amount is less than or equal to the motion determination threshold value, it is determined that there is no motion in the feature amount calculation region, and if it is greater than the motion determination threshold value, there is motion in the feature amount calculation region. First motion determining means for determining, if the number of feature amount calculation areas determined to be in motion is less than or equal to a reference value, it is determined that there is no motion in the room, and the number of feature amount calculation areas determined to be in motion is a reference value If there is more motion, it is determined that the monitoring target has entered the room based on the second motion determination unit that determines that there is motion in the room, the determination result by the first motion determination unit, and the determination result by the second motion determination unit. Entry detecting means for detecting, a means for setting an entry state flag when the entry object detects that the monitoring target has entered the room, the determination result by the first motion determining means, and the second motion determining means. Exit detection means for detecting that the monitoring target has exited the room based on the determination result, and means for resetting the entry state flag when the exit target detects that the monitoring target has left the room, and An abnormality detection device, comprising: abnormality detection means for detecting an abnormality of a monitoring target based on the determination result by the second movement determination means when the entry state flag is set.
【請求項2】 入室検出手段は、入室状態フラグがリセ
ットされている場合において、第2動き判定手段によっ
て部屋内で動きが有ると判定されかつ第1動き判定手段
により全画像特徴量算出領域内における周辺部に設定さ
れる入室判定領域で動きが有ると判定された後、第1の
所定時間以上経過した後であって第2の所定時間が経過
する前に、第2動き判定手段によって部屋内で動きが有
ると判定されかつ第1動き判定手段により全画像特徴量
算出領域内における中央部の画像特徴量算出領域で動き
が有ると判定されたときに、監視対象が部屋内に入室し
たと判定するものである請求項1に記載の異常検出装
置。
2. The entry detecting means determines that there is movement in the room by the second movement determining means and the first movement determining means determines that the entire image feature amount is within the calculation area when the entry state flag is reset. After it is determined that there is movement in the entry determination region set in the peripheral portion of the room, the second movement determination means causes the room to move after the first predetermined time or more has elapsed and before the second predetermined time has elapsed. When it is determined that there is movement within the room, and when it is determined by the first movement determination means that there is movement in the image feature amount calculation area in the central portion within the entire image feature amount calculation area, the monitoring target has entered the room. The abnormality detection device according to claim 1, wherein the abnormality detection device determines.
【請求項3】 入室判定領域が固定されている請求項2
に記載の異常検出装置。
3. The entry determination area is fixed.
The abnormality detection device described in.
【請求項4】 入室判定領域は、過去の入室検出時にお
ける第1動き判定手段による動き判定結果の履歴に基づ
いて決定される請求項2に記載の異常検出装置。
4. The abnormality detection device according to claim 2, wherein the entry determination area is determined based on a history of motion determination results by the first motion determination means at the time of previous entry detection.
【請求項5】 退室検出手段は、入室状態フラグがセッ
トされている場合において、第2動き判定手段によって
部屋内で動きが有ると判定されかつ第1動き判定手段に
より全画像特徴量算出領域内における中央部で動きが有
ると判定されてから第3の所定時間が経過した後に、第
2動き判定手段によって部屋内で動きが有ると判定され
かつ第1動き判定手段により入室判定領域で動きが有る
と判定され、それから第4の所定時間が経過するまで第
2の動き判定手段によって部屋内に動きが有ると判定さ
れなかったときに、監視対象が部屋から退出したと判定
するものである請求項1、2、3および4のいずれかに
記載の異常検出装置。
5. The exit detection means determines that there is motion in the room by the second motion determination means and the first motion determination means within the entire image feature amount calculation area when the entry state flag is set. After a third predetermined time has elapsed since it was determined that there was movement in the central part of the above, the second movement determination means determined that there was movement in the room, and the first movement determination means determined that there was movement in the entry determination area. It is determined that the monitoring target exits from the room when it is determined that there is no movement in the room by the second movement determination means until the fourth predetermined time elapses. Item 5. The abnormality detection device according to any one of items 1, 2, 3 and 4.
【請求項6】 異常検出手段は、入室状態フラグがセッ
トされている場合において、第2動き判定手段による過
去所定回数の動き判定結果に基づいて、部屋内の監視対
象に異常が発生したか否かを判定するものである請求項
1、2、3、4および5のいずれかに記載の異常検出装
置。
6. The abnormality detection means determines whether or not an abnormality has occurred in the monitoring target in the room based on the past predetermined number of movement determination results by the second movement determination means when the entry state flag is set. The abnormality detection device according to any one of claims 1, 2, 3, 4 and 5, which determines whether or not.
【請求項7】 動き判定用閾値は、入室状態フラグがリ
セットされている場合には第1の閾値に設定され、入室
状態フラグがセットされている場合には第1の閾値より
小さな第2の閾値に設定される請求項1、2、3、4、
5および6のいずれかに記載の請求項1に記載の異常検
出装置。
7. The motion determination threshold value is set to a first threshold value when the entry state flag is reset, and is set to a second threshold value smaller than the first threshold value when the entry state flag is set. Claims 1, 2, 3, 4, which are set to a threshold value
The abnormality detection device according to claim 1, wherein the abnormality detection device according to claim 5.
JP2001297776A 2001-09-27 2001-09-27 Device for detecting abnormality Withdrawn JP2003109012A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001297776A JP2003109012A (en) 2001-09-27 2001-09-27 Device for detecting abnormality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001297776A JP2003109012A (en) 2001-09-27 2001-09-27 Device for detecting abnormality

Publications (1)

Publication Number Publication Date
JP2003109012A true JP2003109012A (en) 2003-04-11

Family

ID=19118786

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001297776A Withdrawn JP2003109012A (en) 2001-09-27 2001-09-27 Device for detecting abnormality

Country Status (1)

Country Link
JP (1) JP2003109012A (en)

Similar Documents

Publication Publication Date Title
US6504482B1 (en) Abnormality detection apparatus and method
JP3622448B2 (en) Bathing monitoring device
JP3631154B2 (en) Anomaly detection device
JP2003109012A (en) Device for detecting abnormality
JP2001307246A (en) Human body sensor
JP2000099863A (en) Abnormality detector
CN110536854B (en) Operation prevention device for elevator
JP2004179971A (en) Monitor camera
JP2007091462A (en) Monitoring device of elevator
JP3557180B2 (en) Anomaly detection device
JP3625775B2 (en) Anomaly detection device
JP3374117B2 (en) In-space abnormality detection device and in-space abnormality detection method
JP2001283225A (en) In-space abnormality detector and in-space abnormality detecting method
JP4051151B2 (en) Image sensor and monitoring system including the same
JP3932782B2 (en) Room monitoring equipment
KR101159941B1 (en) Elevator monitoring system and operating method thereof
JP2003115088A (en) Human body detector
JPH10282133A (en) Monitoring device
JP2002230532A (en) Abnormality detector
JP3890164B2 (en) Image sensor
JP2002232870A (en) Detecting device and detecting method
JPH11337386A (en) Bathtub sensor
JP3636980B2 (en) Automatic occupancy judgment device
JP3562491B2 (en) Human body detection device
JP2002015384A (en) Bathroom adjacent to washroom

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20050520

A761 Written withdrawal of application

Free format text: JAPANESE INTERMEDIATE CODE: A761

Effective date: 20070727