JP2002218443A - Intruding object detecting method for automatically determining threshold for intruding object detection and intruding object monitor - Google Patents

Intruding object detecting method for automatically determining threshold for intruding object detection and intruding object monitor

Info

Publication number
JP2002218443A
JP2002218443A JP2001334867A JP2001334867A JP2002218443A JP 2002218443 A JP2002218443 A JP 2002218443A JP 2001334867 A JP2001334867 A JP 2001334867A JP 2001334867 A JP2001334867 A JP 2001334867A JP 2002218443 A JP2002218443 A JP 2002218443A
Authority
JP
Japan
Prior art keywords
intruding object
threshold value
binarization
object detection
threshold
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
JP2001334867A
Other languages
Japanese (ja)
Other versions
JP3625442B2 (en
Inventor
Wataru Ito
渡 伊藤
Hiromasa Yamada
浩正 山田
Hirotada Ueda
博唯 上田
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.)
Hitachi Kokusai Electric Inc
Original Assignee
Hitachi Kokusai Electric Inc
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 Hitachi Kokusai Electric Inc filed Critical Hitachi Kokusai Electric Inc
Priority to JP2001334867A priority Critical patent/JP3625442B2/en
Publication of JP2002218443A publication Critical patent/JP2002218443A/en
Application granted granted Critical
Publication of JP3625442B2 publication Critical patent/JP3625442B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

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

Abstract

PROBLEM TO BE SOLVED: To provide an intruding object detecting method, an intruding object detection parameter setting method and an intruding object recognizing device which are highly reliable by making it possible to easily set an intruding object detection threshold even when the illumination and time period of a monitoring visual field area, a lens diaphragm, etc., are changed without needing skillfulness in setting work of the intruding object detection threshold. SOLUTION: This intruding object detecting method is to be provided with a differential processing step for calculating the difference of luminance value of each pixel between an input image inputted sequentially from an image pickup device and a reference background image, a binarization step for comparing the difference with a prescribed binarization threshold, a binarization threshold increasing step for increasing the binarization threshold, a detected pixel deciding step for deciding the reduction degree of pixels to be difference being equal to or larger than the binarization threshold by increasing the binarization threshold, and an intruding object detection threshold deciding step for deciding the intruding object detection threshold based on the decision results of the detected pixel deciding step so as to be able to detect an intruding object within the visual field of the image pickup device.

Description

【発明の詳細な説明】DETAILED DESCRIPTION OF THE INVENTION

【0001】[0001]

【発明の属する技術分野】本発明は、撮像装置を用いた
監視装置に係り、特に、撮像視野内の侵入物体を、撮像
装置からの入力画像と基準背景画像との画素ごとの輝度
値の差が侵入物体検出しきい値以上になる画素の領域に
基づいて検出する侵入物体検出方法及び侵入物体監視装
置に関し、特に、侵入物体検出しきい値を撮像装置から
入力する入力画像に基づいて自動的に決定するようにし
た侵入物体検出方法及び侵入物体監視装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a monitoring apparatus using an image pickup apparatus, and more particularly to a method for detecting an intruding object in an image pickup field by a difference in luminance value between an input image from the image pickup apparatus and a reference background image for each pixel. The present invention relates to an intruding object detection method and an intruding object monitoring device that detects an intruding object detection threshold based on an area of a pixel that is equal to or larger than an intruding object detection threshold. The present invention relates to an intruding object detection method and an intruding object monitoring device which are determined as follows.

【0002】[0002]

【従来の技術】近年、カメラ等の撮像装置を画像入力手
段として用いた侵入物体検出装置は、従来からある監視
員による有人監視ではなく、監視視野内の侵入物体を自
動的に検出したり、物体の種類を自動的に確認したりし
て、所定の報知や警報処置が自動的に得られるようにす
るものが多い。このようなシステムを実現するために
は、先ず、カメラ等の画像入力手段より得られた入力画
像から所定の侵入物体を検出する処理が必要となる。こ
のような処理を実現する方法としては、例えば、入力画
像と基準背景画像(即ち、検出すべき物体の写っていな
い画像)とを比較し、画素毎に差分を求め、その差分の
大きい領域を物体として抽出する方法がある。この方法
は、差分法と呼ばれ、従来から広く用いられている。
2. Description of the Related Art In recent years, an intruding object detecting device using an image pickup device such as a camera as an image input means has not been conventionally used for manned monitoring by an observer, but automatically detects an intruding object in a monitoring field of view. In many cases, the type of the object is automatically confirmed, and a predetermined notification or alarm is automatically obtained. In order to realize such a system, first, processing for detecting a predetermined intruding object from an input image obtained by an image input unit such as a camera is required. As a method of realizing such processing, for example, an input image is compared with a reference background image (that is, an image in which an object to be detected is not captured), a difference is obtained for each pixel, and an area having a large difference is determined. There is a method of extracting as an object. This method is called a difference method and has been widely used conventionally.

【0003】差分法の処理を図12によって説明する。
図12は差分法における物体検出の処理原理を説明する
ための図である。1201 は入力画像、1202 は基準背景画
像、1203 は差分画像、1204 は差分画像 1203 の二値化
画像、1205 は減算器、1206は二値化器、1207 は入力画
像 1201 に写った人型の物体の領域、1208 は差分画像
1203 で差分が生じた差分領域、1209 は二値化画像 120
4 で抽出された二値化領域である。
The processing of the difference method will be described with reference to FIG.
FIG. 12 is a diagram for explaining the processing principle of object detection in the difference method. 1201 is an input image, 1202 is a reference background image, 1203 is a difference image, 1204 is a binarized image of the difference image 1203, 1205 is a subtractor, 1206 is a binarizer, and 1207 is a humanoid image of the input image 1201. Object area, 1208 is difference image
A difference region where a difference occurs in 1203, and 1209 is a binarized image
This is the binarized region extracted in 4.

【0004】図12において、減算器 1205 は入力画像
1201 と基準背景画像 1202 との輝度値の差分を画素毎
に計算して差分画像 1203 を出力する。二値化器 1206
は差分画像 1203 について、画素毎の輝度値(差分値)
が所定のしきい値 Th 未満(差分値< Th )の画素の画
素値を“ 0 ”、しきい値 Th 以上(差分値≧ Th )の
画素の画素値を“ 255 ”(1画素の輝度値を8ビット
で計算)として二値化画像 1204 を得る。ここで、例え
ば、しきい値 Th を“ 20 ”というように設定する。こ
れによって、入力画像 1201 に写った人型の物体 1207
は、減算器 1205 によって差分が生じた領域 1208 が算
出され、更に二値化器 1206 によって輝度値“ 255 ”
のかたまりの画像 1209 が侵入物体として検出される。
In FIG. 12, a subtractor 1205 outputs an input image.
A difference between the luminance value of the reference background image 1202 and the luminance value of the reference background image 1202 is calculated for each pixel, and a difference image 1203 is output. Binarizer 1206
Is the luminance value (difference value) for each pixel for the difference image 1203
Is “0” when the pixel value of a pixel is less than a predetermined threshold value Th (difference value <Th), and “255” (the luminance value of one pixel) Is calculated with 8 bits) to obtain a binarized image 1204. Here, for example, the threshold value Th is set to “20”. As a result, a humanoid object 1207 shown in the input image 1201 is obtained.
Is calculated by the subtractor 1205 to calculate the area 1208 where the difference has occurred, and further by the binarizer 1206 to obtain the luminance value “255”.
The lump image 1209 is detected as an intruding object.

【0005】この方法を用いた侵入物体認識方法の一例
を図13を用いて説明する。図13は、侵入物体検出方
法を実行するための侵入物体検出プログラムの動作を示
すフローチャートである。画像入力ステップ 111 で
は、TV カメラ等の撮像装置から、例えば、幅 320 pix
、高さ 240 pix 、8 bit/pix の入力画像 1201 を取得
し、ステップ 112 に進む。差分処理ステップ 112 で
は、入力画像 1201 と基準背景画像 1202 との画素毎の
差分を求めて差分画像 1203 を取得しステップ 113 に
進む。二値化処理ステップ 113 では、得られた差分画
像 1203 を所定の二値化しきい値に基づいて侵入物体検
出しきい値以上の画素を“ 255 ”、侵入物体検出しき
い値未満の画素を“ 0 ”として二値化画像 1204 を取
得し、ステップ 114 に進む。
An example of an intruding object recognition method using this method will be described with reference to FIG. FIG. 13 is a flowchart showing the operation of the intruding object detection program for executing the intruding object detecting method. In the image input step 111, for example, a 320 pix width
, An input image 1201 having a height of 240 pix and 8 bits / pix is obtained, and the process proceeds to step 112. In the difference processing step 112, a difference for each pixel between the input image 1201 and the reference background image 1202 is obtained to obtain a difference image 1203, and the process proceeds to step 113. In the binarization processing step 113, the obtained difference image 1203 is converted to “255” for pixels that are equal to or larger than the intruding object detection threshold based on a predetermined binarization threshold, and for pixels that are smaller than the intruding object detection threshold. The binary image 1204 is acquired as "0", and the process proceeds to step 114.

【0006】侵入物体検出処理ステップ 114 では、例
えば、ラベリングの方法によって二値化画像 1204 の中
で画素値“ 255 ”を持つ画素のかたまりを検出してこ
れを侵入物体とし、ステップ 115 に進む。侵入物体判
定ステップ 115 では、侵入物体検出処理ステップ 114
で侵入物体が検出された場合にはステップ 116 に進
み、侵入物体が検出されなかった場合には画像入力ステ
ップ 111 へ戻る。警報・モニタ表示ステップ 116 で
は、例えば、画像出力 I/F(以降、インターフェースを
I/F と称する)、1110 を介してモニタ 1113 に処理結
果を表示したり、例えば、出力 I/F 1109 を介して警告
灯 1112 を点灯させたりする。したがって、差分法を用
いた侵入物体検出方法は、入力画像と基準背景画像とを
比較し、画素毎に差分を求め、その差分の大きい領域を
物体として検出する。差分法を応用した物体検出方法と
して、例えば平成7年特許公開第79429号公報があ
る。
In the intruding object detection processing step 114, for example, a cluster of pixels having a pixel value of "255" in the binary image 1204 is detected by the labeling method, and this is set as an intruding object, and the process proceeds to step 115. In the intruding object determination step 115, an intruding object detection processing step 114
If an intruding object is detected in step, the process proceeds to step 116, and if no intruding object is detected, the process returns to image input step 111. In the alarm / monitor display step 116, for example, the image output I / F (hereinafter, interface
The processing result is displayed on a monitor 1113 via an I / F 1110, or a warning lamp 1112 is turned on via an output I / F 1109, for example. Therefore, the intruding object detection method using the difference method compares the input image with the reference background image, obtains a difference for each pixel, and detects an area having a large difference as an object. As an object detection method to which the difference method is applied, for example, there is JP-A-79429 / 1995.

【0007】上述の侵入物体検出方法は、入力画像と基
準背景画像との画素毎の差分と予め設定した侵入物体検
出しきい値との比較によって侵入物体を検出する。この
侵入物体検出しきい値を小さな値に設定した場合には、
侵入物体以外のノイズ(撮像装置内部で発生するノイズ
や映像信号を伝送する過程で重畳するノイズ等)や木々
の揺れといった侵入物体以外の動く物体を誤検出する可
能性がある。一方、侵入物体検出しきい値を大きな値に
設定した場合、侵入物体を構成する画素で基準背景画像
と輝度値が近いものを検出できなくなってしまうため、
侵入物体の見逃しが起こる可能性がある。したがって、
侵入物体の検出性能は、侵入物体検出しきい値に大きく
依存する。しかし、この侵入物体検出しきい値は、監視
視野領域の照度や時間帯、レンズの絞り等に合わせて設
定する必要があり、その設定作業は煩雑、かつ、熟練性
を要した。
The above-described intruding object detection method detects an intruding object by comparing a difference between each pixel between an input image and a reference background image with a preset intruding object detection threshold value. If this intruding object detection threshold is set to a small value,
There is a possibility that a moving object other than the intruding object, such as noise (noise generated inside the image pickup apparatus or noise superimposed in the process of transmitting a video signal) other than the intruding object, or shaking trees, may be erroneously detected. On the other hand, if the intruding object detection threshold is set to a large value, it becomes impossible to detect pixels having a luminance value close to the reference background image in the pixels constituting the intruding object,
Oversight of intruding objects can occur. Therefore,
The detection performance of an intruding object largely depends on the intruding object detection threshold. However, it is necessary to set the threshold value for detecting an intruding object in accordance with the illuminance of the monitoring visual field, the time zone, the aperture of the lens, and the like, and the setting operation is complicated and requires skill.

【0008】[0008]

【発明が解決しようとする課題】前述の従来技術には、
差分法を用いて侵入物体の検出する場合、侵入物体検出
しきい値をどんな値に設定するかが重要であるが、この
設定作業は、監視視野領域の照度や時間帯、レンズの絞
り等が変わる度に行なわなければならず、煩雑であっ
た。また、撮像装置より得られた入力画像から侵入物体
以外のノイズを除去することができる侵入物体検出しき
い値と、撮像視野に写した基準侵入物体を検出すること
によって侵入物体検出しきい値とを自動的に算出して、
侵入物体検出しきい値を設定することには熟練性を要す
るという欠点があった。本発明の目的は、上記のような
欠点を除去し、侵入物体検出しきい値の設定作業に熟練
性を必要とせず、監視視野領域の照度や時間帯、レンズ
の絞り等が変わった場合でも容易に侵入物体検出しきい
値を設定できる信頼性の高い侵入物体検出方法並びに侵
入物体認識装置を提供することにある。
The above-mentioned prior art includes the following:
When detecting an intruding object using the difference method, it is important to set the threshold value of the intruding object detection threshold, but this setting work depends on the illuminance, time zone, lens aperture, etc. of the monitoring visual field area. It had to be performed every time it changed, which was complicated. In addition, an intruding object detection threshold that can remove noise other than an intruding object from an input image obtained from an imaging device, and an intruding object detection threshold by detecting a reference intruding object captured in an imaging field of view. Is calculated automatically,
Setting the threshold value for detecting an intruding object has a disadvantage that skill is required. An object of the present invention is to eliminate the above-mentioned disadvantages, does not require skill in setting the intruding object detection threshold value, even when the illuminance and time zone of the monitoring visual field area, the aperture of the lens, etc. are changed. It is an object of the present invention to provide a highly reliable intruding object detecting method and an intruding object recognizing device that can easily set an intruding object detecting threshold value.

【0009】[0009]

【課題を解決するための手段】本発明の目的は、上記の
ような欠点を除去し、差分画像を二値化する二値化しき
い値を増加させたときの二値化画像に検出される画素の
変化に基づいて侵入物体検出しきい値を決定し、侵入物
体を正確に検出するようにして、信頼性の高い侵入物体
検出装置を提供することである。
SUMMARY OF THE INVENTION It is an object of the present invention to eliminate the above-mentioned disadvantages and to detect a binarized image when a binarization threshold for binarizing a difference image is increased. An object of the present invention is to provide a highly reliable intruding object detection device by determining an intruding object detection threshold based on a change in a pixel and accurately detecting an intruding object.

【0010】上記の目的を達成するために、本発明の侵
入物体検出パラメータ設定方法は、撮像装置から得られ
る画像を、差分法を適用して監視視野内の侵入物体を検
出する監視方法において、前記撮像装置からの第1の入
力画像と記憶装置に記憶されている基準背景画像との輝
度値の第1の差分画像を生成し、前記第1の差分画像を
所定の二値化しきい値で二値化処理すると共に、二値化
処理した画像のノイズレベルが所定の値以下となるまで
上記二値化しきい値を変化させ、前記二値化処理した画
像のノイズレベルが所定の値以下になる二値化しきい値
を第1の二値化しきい値とし、前記第1の二値化しきい
値に基づいて、侵入物体を検出することを特徴とする侵
入物体検出のためのしきい値を自動的に決定するもので
ある。
To achieve the above object, a method for setting an intruding object detection parameter according to the present invention is directed to a surveillance method for detecting an intruding object in a surveillance visual field by applying an image obtained from an imaging device to a difference method. A first difference image of a luminance value between a first input image from the imaging device and a reference background image stored in a storage device is generated, and the first difference image is generated using a predetermined binarization threshold. While performing the binarization processing, the binarization threshold is changed until the noise level of the binarized image is equal to or less than a predetermined value, and the noise level of the binarized image is reduced to a predetermined value or less. A threshold value for detecting an intruding object, wherein the threshold value for detecting an intruding object is determined based on the first binarizing threshold value. It is determined automatically.

【0011】また、本発明の侵入物体検出パラメータ設
定方法は、前記二値化しきい値の変化を、等差的、等比
的、あるいはランダムに変えることを特徴とする。ま
た、本発明の侵入物体検出パラメータ設定方法は、前記
二値化しきい値を増加させることを特徴とする。また、
本発明の侵入物体検出パラメータ設定方法は、前記二値
化しきい値を減少させることを特徴とする。また、本発
明の侵入物体検出パラメータ設定方法は、前記第1の入
力画像は、侵入物体が存在しない画像であることを特徴
とする。
Further, the method for setting an intruding object detection parameter according to the present invention is characterized in that the change of the binarization threshold is changed in an isometric, an isometric or a random manner. In the method for setting an intruding object detection parameter according to the present invention, the binarization threshold is increased. Also,
The method for setting an intruding object detection parameter according to the present invention is characterized in that the binarization threshold is reduced. In the method for setting an intruding object detection parameter according to the present invention, the first input image is an image having no intruding object.

【0012】また、本発明の侵入物体検出パラメータ設
定方法は、更に、前記撮像装置からの侵人物体を含む第
2の入力画像と前記記憶装置に記憶されている前記基準
背景画像との輝度値の第2の差分画像を生成し、前記第
2の差分画像を所定の二値化しきい値で二値化処理する
と共に、二値化処理した画像の侵入物体の大きさが所定
の大きさ以下となるまで前記二値化しきい値を変化さ
せ、前記二値化処理した画像の侵入物体の大きさが所定
の大きさ以下となる二値化しきい値を第2の二値化しき
い値とし、前記第1と第2の二値化しきい値を含み、前
記第1と第2の二値化しきい値の間に第3の二値化しき
い値を設定し、該第3の二値化しきい値に基づいて、侵
入物体を検出するものである。
Further, the method for setting an intruding object detection parameter according to the present invention further comprises a luminance value between the second input image including the invading human body from the imaging device and the reference background image stored in the storage device. The second difference image is generated, and the second difference image is binarized with a predetermined binarization threshold, and the size of the intruding object of the binarized image is equal to or smaller than a predetermined size. The binarization threshold is changed until becomes, and the binarization threshold at which the size of the intruding object of the binarized image is equal to or smaller than a predetermined size is set as a second binarization threshold, The method includes the first and second binarization thresholds, sets a third binarization threshold between the first and second binarization thresholds, and sets the third binarization threshold. The intruder is detected based on the value.

【0013】また、本発明の侵入物体検出パラメータ設
定方法は、前記第1と第2のしきい値設定に際し、二値
化しきい値の変化を等差的、等比的、あるいはランダム
に変えることを特徴とする。また、本発明の侵入物体検
出パラメータ設定方法は、前記二値化しきい値を増加さ
せることを特徴とする。また、本発明の侵入物体検出パ
ラメータ設定方法は、前記二値化しきい値を減少させる
ことを特徴とする。また、本発明の侵入物体検出パラメ
ータ設定方法は、侵入物体の所定の大きさを侵入物体の
外接図形で表わすことを特徴とする。
Further, in the method for setting an intruding object detection parameter according to the present invention, when the first and second threshold values are set, the change of the binarization threshold value is changed in an isometric, isometric or random manner. It is characterized by. In the method for setting an intruding object detection parameter according to the present invention, the binarization threshold is increased. In the method for setting an intruding object detection parameter according to the present invention, the binarization threshold is reduced. Further, the method for setting an intruding object detection parameter according to the present invention is characterized in that a predetermined size of the intruding object is represented by a circumscribed figure of the intruding object.

【0014】また、本発明の侵入物体検出パラメータ設
定方法は、更に、前記第1の入力画像と前記第2の入力
画像からそれぞれ得られる第1と第3の二値化しきい値
をそれぞれ記録し、前記二値化処理を所定フレーム数実
行し、それぞれの二値化しきい値を記録し、前記記録さ
れた複数の二値化しきい値の中から所定の第1と第2の
二値化しきい値を決定するものである。また、本発明の
侵入物体検出パラメータ設定方法は、前記第1の二値化
しきい値は、最大の二値化しきい値を決定し、前記第2
の二値化しきい値は、最小の二値化しきい値決定するこ
とを特徴とする。また、本発明の侵入物体検出パラメー
タ設定方法は、前記第1の差分画像を所定の二値化しき
い値での二値化処理は、更に、不感帯領域を設けて、該
設けられた不感帯領域では二値化処理を行わないことを
特徴とする。また、本発明の侵入物体検出パラメータ設
定方法は、更に、前記第1と第2の二値化しきい値の差
を求め、前記第1と第2の二値化しきい値の差が所定値
以下の場合、異常と判定するステップを有することを特
徴とする。
In the method for setting an intruding object detection parameter according to the present invention, first and third binarization thresholds respectively obtained from the first input image and the second input image are recorded. Executing the binarization process for a predetermined number of frames, recording the respective binarization thresholds, and selecting predetermined first and second binarization thresholds from the plurality of recorded binarization thresholds. Determine the value. Further, in the method for setting an intruding object detection parameter according to the present invention, the first binarization threshold value determines a maximum binarization threshold value, and
Is characterized in that the minimum binarization threshold value is determined. Further, in the intruding object detection parameter setting method according to the present invention, the binarization processing of the first difference image with a predetermined binarization threshold further includes providing a dead zone, and providing the dead zone in the provided dead zone. It is characterized in that no binarization processing is performed. Further, the intruding object detection parameter setting method of the present invention further obtains a difference between the first and second binarization thresholds, and a difference between the first and second binarization thresholds is equal to or less than a predetermined value. In the case of (1), there is a step of determining an abnormality.

【0015】また、本発明の侵入物体監視装置は、差分
法を適用して撮像装置から得られる画像から監視視野内
の侵入物体を検出する侵入物体監視装置において、第1
の入力画像を出力する撮像装置と、基準背景画像を記憶
する第1の記憶装置と、前記第1の入力画像と前記基準
背景画像との輝度値の第1の差分画像を生成する処理ユ
ニットと、前記第1の差分画像を所定の二値化しきい値
で二値化処理し、該二値化処理した画像のノイズ成分が
所定の値以下となるまで前記二値化しきい値を変化さ
せ、前記二値化処理した画像のノイズ成分が所定の値以
下となる二値化しきい値を第1の二値化しきい値として
出力する第1の二値化処理ユニットと出力された前記第
1の二値化しきい値に基づいて、侵入物体を検出する検
出処理ユニットとを備えるものである。
Further, the intruding object monitoring device of the present invention is a first intruding object monitoring device for detecting an intruding object in a monitoring visual field from an image obtained from an imaging device by applying a difference method.
An imaging device that outputs an input image of the first input device, a first storage device that stores a reference background image, and a processing unit that generates a first difference image of a luminance value between the first input image and the reference background image. Performing a binarization process on the first difference image with a predetermined binarization threshold, and changing the binarization threshold until the noise component of the binarized image becomes a predetermined value or less; A first binarization processing unit that outputs a binarization threshold value at which a noise component of the binarized image is equal to or less than a predetermined value as a first binarization threshold value; A detection processing unit that detects an intruding object based on the binarization threshold.

【0016】、また、本発明の侵入物体監視装置の前記
撮像装置は、侵入物体を含む第2の入力画像を出力し、
前記撮像装置は、更に、前記第2の入力画像と前記第1
の記憧装置に記憶されている前記基準背景画像との輝度
値の第2の差分画像を生成する処理ユニットと、前記第
2の差分画像を所定の二値化しきい値で二値化処理し、
二値化処理した画像の侵入物体の大きさが所定の大きさ
以下となるまで前記二値化しきい値を変化させ、前記二
値化処理した画像の侵入物体の大きさが所定の大きさ以
下となる二値化しきい値を第2の二値化しきい値として
出力する第2の二値化処理ユニットと、前記第1と第2
の二値化しきい値を含み、これら第1と第2の二値化し
きい値のしきい値の間に第3の二値化しきい値を設定す
るしきい値設定ユニットとを備え、前記検出処理ユニッ
トは、前記第2の二値化しきい値に基づいて侵入物体を
検出するものである。
Further, the imaging device of the intruding object monitoring device according to the present invention outputs a second input image including the intruding object,
The imaging device further includes the second input image and the first input image.
A processing unit for generating a second difference image of a luminance value with respect to the reference background image stored in the storage device, and performing a binarization process on the second difference image with a predetermined binarization threshold value ,
The binarization threshold is changed until the size of the intruding object of the binarized image is equal to or smaller than a predetermined size, and the size of the intruding object of the binarized image is equal to or smaller than a predetermined size. A second binarization processing unit for outputting a binarization threshold value as a second binarization threshold value;
A threshold setting unit for setting a third binarization threshold between the first and second binarization thresholds; The processing unit is for detecting an intruding object based on the second binarization threshold.

【0017】[0017]

【発明の実施の形態】以下、本発明の実施例を図面を参
照しながら説明する。図面において、同様の構成要素に
は、同様な参照符号を付す。まず、図14によって本発
明の原理を説明する。図14は、二値化しきい値決定の
プロセスを説明するための、二値化画像の変化を示す図
である。図14において、参照番号 140 〜 148 は、撮
像装置からの侵入物体(この場合は、「人」)が写った
同一の入力画像と侵入物体が写っていない基準背景画像
との画素ごとの輝度値の差分をとって生成した二値化画
像を、二値化しきい値 th をそれぞれ、th = 5 、10 、
15 、20 、25 、30 、35 、40 と増加したときの二値化
画像を示す。1400 は二値化画像 140 に含まれるノイズ
画像を表し、1401 は侵入物体の画像を表す。二値化し
きい値を初期値 th = 5 から増加していくと、ノイズ画
像は徐々に消えていき、th = 25 でノイズが消える。こ
のときの二値化しきい値を第1のしきい値 Th1 とす
る。二値化しきい値を更に増加していくと、侵入物体の
大きさは徐々に縮小し、th = 35 で侵入物体が所定の大
きさで検出され、th = 40 では侵入物体は所定の大きさ
未満に縮小する。th = 35 における二値化しきい値を第
2のしきい値 Th2 とする。従って、ノイズを完全に除
去し、かつ、侵入物体を見落とすことなく検出するため
には、侵入物体検出しきい値としては、第1のしきい値
Th1 と第2のしきい値 Th2 の間のしきい値を選択すれ
ば良い。尚、第1のしきい値 Th1 は、ノイズが完全に
消える二値化しきい値としたが、後述のように、所定数
以上の画素のかたまりが消失したしきい値としても良
い。以上の説明では、二値化しきい値とし初期値から増
加していったが、例えば、初期値を th = 40 として、
それから減少していっても良いことは言うまでもない。
Embodiments of the present invention will be described below with reference to the drawings. In the drawings, similar components are denoted by similar reference numerals. First, the principle of the present invention will be described with reference to FIG. FIG. 14 is a diagram illustrating a change in a binarized image for explaining a process of determining a binarized threshold. In FIG. 14, reference numerals 140 to 148 denote luminance values for each pixel of the same input image in which an intruding object (in this case, “person”) is captured from the imaging device and a reference background image in which no intruding object is captured. The binarized image generated by taking the difference of the binarization thresholds th is set to th = 5, 10,
The binarized image when increasing to 15, 20, 25, 30, 35, 40 is shown. Reference numeral 1400 denotes a noise image included in the binarized image 140, and reference numeral 1401 denotes an image of an intruding object. When the binarization threshold is increased from the initial value th = 5, the noise image gradually disappears, and at th = 25, the noise disappears. The binarization threshold at this time is defined as a first threshold Th1. When the binarization threshold is further increased, the size of the intruding object gradually decreases, and at th = 35, the intruding object is detected at the predetermined size. Shrink to less than. Let the binarization threshold at th = 35 be the second threshold Th2. Therefore, in order to completely remove noise and detect an intruding object without overlooking it, the intruding object detection threshold is set to the first threshold.
What is necessary is just to select a threshold value between Th1 and the second threshold value Th2. Although the first threshold value Th1 is a binarized threshold value at which noise completely disappears, it may be a threshold value at which a cluster of a predetermined number or more of pixels has disappeared, as described later. In the above description, the threshold value was increased from the initial value as the binarization threshold.
Needless to say, it can be reduced.

【0018】次に、本発明の侵入物体監視装置に係る一
実施例を説明する。図11は、本発明の侵入物体監視装
置の構成を示すブロック図である。1101はテレビジョン
カメラ(以下TVカメラと呼ぶ)、1102は入力装置、1103
は画像入力インターフェース1104は入力I/F、1105は画
像メモリ、1106はワークメモリ、1107はCPU(Central P
rocessing Unit)、1108はプログラムメモリ、1109は出
力I/F、1110は画像出力I/F、1112は警告灯、1113はモニ
タ、1111はデータバスである。
Next, an embodiment of an intruding object monitoring apparatus according to the present invention will be described. FIG. 11 is a block diagram showing the configuration of the intruding object monitoring device of the present invention. 1101 is a television camera (hereinafter referred to as TV camera), 1102 is an input device, 1103
Is an image input interface 1104 is an input interface, 1105 is an image memory, 1106 is a work memory, and 1107 is a CPU (Central P
1108 is a program memory, 1109 is an output I / F, 1110 is an image output I / F, 1112 is a warning light, 1113 is a monitor, and 1111 is a data bus.

【0019】図11において、TV カメラ 1101 は画像
入力 I/F 1103 に結合され、入力装置 1102 は入力 I/F
1104 に結合され、警告灯 1112 は出力 I/F 1109 に結
合され、モニタ 1113 は画像出力 I/F 1110 に結合され
ている。また、画像入力 I/F1103 、入力 I/F 1104 、
画像メモリ 1105 、ワークメモリ 1106 、CPU 1107、プ
ログラムメモリ 1108 、出力 I/F 1109 及び画像出力 I
/F 1110 は、データバス 1111 に結合されている。
In FIG. 11, a TV camera 1101 is connected to an image input I / F 1103, and an input device 1102 is connected to an input I / F.
The warning light 1112 is connected to the output I / F 1109, and the monitor 1113 is connected to the image output I / F 1110. In addition, image input I / F1103, input I / F1104,
Image memory 1105, work memory 1106, CPU 1107, program memory 1108, output I / F 1109 and image output I
/ F 1110 is coupled to data bus 1111.

【0020】図11において、 TV カメラ 1101 は、監
視対象区域を含めた撮像視野内を撮像する。TV カメラ
1101 は、撮像した映像を電気的な映像信号(例えば、N
TSC映像信号)に変換し、変換した映像信号を画像入力
I/F 1103 に与える。画像入力 I/F 1103 は、入力した
映像信号を侵入物体監視装置で扱うフォーマット(例え
ば、幅 320 pix 、高さ 240 pix 、8 bit/pix )の画像
データに変換し、データバス 1111 を介して画像メモリ
1105 に与える。画像メモリ 1105 は、送られてきた画
像データを蓄積する。入力装置 1102 は、人間または補
助動物の音声、身振り等の特定の動作、ボタン、キーボ
ード、マウス等の外部入力装置による入力の少なくとも
1つの入力動作を検知して操作信号(例えば RS-232C
シリアル通信信号)に変換し、変換された操作信号を入
力I/F 1104 に与える。
In FIG. 11, a TV camera 1101 picks up an image in the field of view including the monitoring target area. TV camera
1101 converts the captured video into an electrical video signal (for example, N
TSC video signal) and convert the converted video signal to image input
Give to I / F 1103. The image input I / F 1103 converts the input video signal into image data in a format (for example, 320 pix width, 240 pix height, 8 bit / pix) that is handled by the intruding object monitoring device, and transmits the data via the data bus 1111. Image memory
Give to 1105. The image memory 1105 stores the sent image data. The input device 1102 detects at least one input operation of a specific operation such as a voice or a gesture of a human or an auxiliary animal, an input by an external input device such as a button, a keyboard, a mouse, etc., and detects an operation signal (for example, RS-232C).
Then, the converted operation signal is supplied to the input I / F 1104.

【0021】入力 I/F 1104 は、入力した操作信号を侵
入物体監視装置で扱うフォーマット(例えば、上下左右
の操作、ボタン押下の操作を、それぞれ“ 1 ”、“ 2
”、“ 3 ”、“ 4 ”、“ 5 ”)の操作データに変換
し、変換された操作データをデータバス 1111 を介して
ワークメモリ 1106 に与える。上記フォーマットとして
は、例えば、 RS-232C を使っても良い。ワークメモリ
1106 は、入力された操作データを蓄積する。CPU 1107
はプログラムメモリ 1108 に保存されているプログラム
に従って、ワークメモリ 1106内で画像メモリ 1105 に
蓄積された画像の解析を行なう。以上の解析の結果、TV
カメラ 1101 の撮像視野内に侵入物体が侵入したか否
か等の情報を得る。
The input I / F 1104 is a format for handling the input operation signal by the intruding object monitoring device (for example, operations of up, down, left, right, and button press are “1”, “2”, respectively).
), "3", "4", "5") and give the converted operation data to the work memory 1106 via the data bus 1111. As the format, for example, RS-232C is used. Work memory may be used
1106 stores the input operation data. CPU 1107
Analyzes the image stored in the image memory 1105 in the work memory 1106 according to the program stored in the program memory 1108. As a result of the above analysis, TV
Information such as whether an intruding object has entered the imaging field of view of the camera 1101 is obtained.

【0022】CPU 1107 は、画像出力 I/F 1110 を介し
て監視モニタ 1112 に映像信号を与え、例えば、処理結
果画像を表示する。また同時に CPU 1107 は、出力 I/F
1109 を介して警告灯 1112 を点灯させる制御信号を警
告灯 1112 に与える。警告灯1112 は入力した制御信号
により点灯を行う。画像出力 I/F 1110 は、CPU 1107か
らの映像信号を監視モニタ 1113 が使用できるフォーマ
ット(例えば、NTSC映像信号)に変換して、モニタ 111
3 に送る。モニタ 1113 は、例えば、侵入物体検出結果
画像を表示する。
The CPU 1107 supplies a video signal to the monitor 1112 via the image output I / F 1110, and displays, for example, a processing result image. At the same time, the CPU 1107 outputs the output I / F
A control signal for turning on the warning light 1112 via 1109 is given to the warning light 1112. The warning light 1112 is turned on by the input control signal. The image output I / F 1110 converts the video signal from the CPU 1107 into a format (for example, an NTSC video signal) that can be used by the monitoring monitor 1113, and
Send to 3. The monitor 1113 displays, for example, an intruding object detection result image.

【0023】図2は、本発明の第1の実施例の動作を示
すフローチャートの一例である。このフローチャート
は、例えば、すでに説明した図11の侵入物体監視装置
を用いて実行される。この実施例は、図13で示した従
来技術による侵入物体検出フローチャートの画像入力ス
テップ 111 の前に、第1の侵入物体検出しきい値決定
ステップ 101、第2の侵入物体検出しきい値決定ステッ
プ 103 、及び侵入物体検出しきい値選択ステップ201を
追加したものである。
FIG. 2 is an example of a flowchart showing the operation of the first embodiment of the present invention. This flowchart is executed by using, for example, the intruding object monitoring device of FIG. 11 described above. In this embodiment, a first intruding object detection threshold determining step 101 and a second intruding object detecting threshold determining step are performed before the image input step 111 of the intruding object detection flowchart according to the prior art shown in FIG. 103 and an intruding object detection threshold value selection step 201 are added.

【0024】図2において、第1の侵入物体検出しきい
値決定ステップ 101 では、差分画像を二値化するとき
の二値化しきい値を増加させたときの二値化画像に検出
される“255”の輝度値を持つノイズレベル(以下これ
を、画素のかたまりの数と称す)に基づいて侵入物体検
出しきい値を決定するステップである。この第1の侵入
物体検出しきい値決定ステップ 101 について、図4を
用いて説明する。
In FIG. 2, in a first intruding object detection threshold value determining step 101, a threshold value for binarizing a difference image is detected as a binarized image when the binarization threshold is increased. This is a step of determining an intruding object detection threshold based on a noise level having a luminance value of 255 ”(hereinafter, this is referred to as the number of pixel clusters). The first intruding object detection threshold value determining step 101 will be described with reference to FIG.

【0025】図4は、図2における第1の侵入物体検出
しきい値決定ステップ 101 の動作を説明するフローチ
ャートの一例である。尚、基準背景画像 1202 は、予め
画像メモリ 1105 に格納されている。図4において、映
像選択ステップ 401 では、監視視野領域内に検出すべ
き侵入物体が存在しない映像を選択する。この処理は、
例えば、監視員がモニタ 1113 の画面に写った TV カメ
ラ 1101 からの撮像画像を見ながら、監視視野領域内に
検出すべき侵入物体が存在するか否かを判断し、入力装
置 1102 を用いて侵入物体監視装置に対して検出すべき
侵入物体が存在しないことを通知し、その通知によって
適切な映像が選択されたものとして画像入力ステップ 4
02 に処理を移す。次に画像入力ステップ 402 では、
画像入力ステップ 111 と同様に、例えば、幅 320 pix
、高さ 240 pix 、8 bit/pix の入力画像を取得する。
差分処理ステップ 403 では、差分処理ステップ 112 と
同様に、入力画像 1201 と基準背景画像 1202 との画素
毎の差分を求め、差分画像 1203 を取得する(図12参
照)。二値化しきい値初期化ステップ 404 では、二値
化しきい値 Th を、例えば、Th = 1 に初期化する。
FIG. 4 is an example of a flowchart for explaining the operation of the first intruding object detection threshold value determining step 101 in FIG. The reference background image 1202 is stored in the image memory 1105 in advance. In FIG. 4, in the image selection step 401, an image in which there is no intruding object to be detected in the monitoring visual field is selected. This process
For example, while watching the image captured by the TV camera 1101 on the screen of the monitor 1113, the observer determines whether or not there is an intruding object to be detected in the monitoring visual field, and uses the input device 1102 to intrude. The object monitoring device is notified that there is no intruding object to be detected, and it is determined that an appropriate image has been selected by the notification.
Move to 02. Next, in the image input step 402,
As in the image input step 111, for example, width 320 pix
Get an input image, 240 pix high, 8 bit / pix.
In the difference processing step 403, similarly to the difference processing step 112, a difference for each pixel between the input image 1201 and the reference background image 1202 is obtained, and a difference image 1203 is obtained (see FIG. 12). In the binarization threshold value initialization step 404, the binarization threshold value Th is initialized to, for example, Th = 1.

【0026】二値化処理及び表示ステップ 405 では、
そのとき設定されている二値化しきい値 Th に基づいて
差分処理ステップ 403 で得られた差分画像 1203 を二
値化し、差分画像 1203 中で画素値が二値化しきい値 T
h 以上となる画素を“ 255”とし、二値化しきい値 Th
未満となる画素を“ 0 ”として、二値化画像 1204を取
得する。また、このときの二値化しきい値と取得した二
値化画像をモニタ 1113 の画面上に表示する。次に、物
体検出処理ステップ 406 では、二値化画像 1204 の中
で画素値“255”となる画素のかたまり(検出物体と呼
ぶ)を検出し、その個数を計数する。例えば、この処理
は、画素のかたまりが所定の面積(例えば、10 画素)
以上の画素のかたまりの個数を計数するようにしても良
い。
In the binarization processing and display step 405,
The difference image 1203 obtained in the difference processing step 403 is binarized based on the binarization threshold Th set at that time, and the pixel value in the difference image 1203 is changed to the binarization threshold T.
h is set to “255” and the binarization threshold Th
Pixels that are less than “0” are set to “0” and a binarized image 1204 is acquired. Also, the binarization threshold and the acquired binarized image at this time are displayed on the screen of the monitor 1113. Next, in the object detection processing step 406, a cluster of pixels having a pixel value “255” (referred to as a detected object) in the binarized image 1204 is detected, and the number thereof is counted. For example, in this processing, a cluster of pixels is a predetermined area (for example, 10 pixels).
The number of clusters of pixels described above may be counted.

【0027】検出物体数判定ステップ 407 では、物体
検出処理ステップ 406 によって検出された画素のかた
まりの数が 0 であった場合は第1の侵入物体検出しき
い値決定及び表示ステップ 408 へ分岐し、1 以上であ
った場合は二値化しきい値増加ステップ 409 へ分岐す
る。第1の侵入物体検出しきい値決定及び表示ステップ
408 では、二値化処理ステップ 405 で用いた二値化し
きい値 Th の値を第1の侵入物体検出しきい値 Th1 と
して決定し、後述のように、第1のしきい値候補マーク
806a をモニタ 1113 に表示して、図2の第1の侵入物
体検出しきい値決定ステップ 101 を終り、第2の侵入
物体検出しきい値決定ステップ 103 に進む。また、二
値化しきい値増加ステップ 409 では、二値化しきい値
を 1 増加し、二値化処理ステップ 405 へ処理を移す。
In the number-of-detected-objects determination step 407, if the number of clusters of pixels detected in the object detection processing step 406 is 0, the flow branches to a first intruding object detection threshold value determination and display step 408. If the value is 1 or more, the flow branches to the binarization threshold value increasing step 409. First intruding object detection threshold determination and display step
In 408, the value of the binarization threshold Th used in the binarization processing step 405 is determined as the first intruding object detection threshold Th1, and the first threshold candidate mark is set as described later.
806a is displayed on the monitor 1113, and the first intruding object detection threshold value determining step 101 of FIG. 2 is ended, and the process proceeds to the second intruding object detection threshold value determining step 103. In addition, in the binarization threshold increasing step 409, the binarization threshold is increased by one, and the process proceeds to the binarization processing step 405.

【0028】なお、上記の説明では、映像選択ステップ
401 において、監視視野領域内に検出すべき侵入物体
が存在しない映像を選択するようにしているが、例え
ば、侵入物体が 1 以上存在する映像を選択しても良
く、この場合、検出物体数判定ステップ 407 では、物
体検出処理ステップ 406 によって検出された検出物体
の数が選択した映像中に写る侵入物体数であった場合
に、第1の侵入物体検出しきい値決定及び表示ステップ
408 へ分岐するようにする。また、二値化しきい値初
期化ステップ 404 において、二値化しきい値 Th をTh
= 1 に初期化したが、監視視野領域の状況に応じて、初
期化する値は自由に設定して良い。更に、二値化しきい
値増加ステップ 409 では二値化しきい値を1 増加させ
たが、 1 以外でも良いことは自明であるし、また例え
ば、二値化しきい値を等差的に増加させたり、等比的に
増加させたり、あるいは乱数的に増加させても良い。
In the above description, the image selection step
In 401, an image in which there is no intruding object to be detected in the monitoring visual field area is selected.For example, an image in which one or more intruding objects exist may be selected. In step 407, when the number of detected objects detected in the object detection processing step 406 is the number of intruding objects appearing in the selected video, the first intruding object detection threshold value determining and displaying step is performed.
Branch to 408. Also, in a binarization threshold initialization step 404, the binarization threshold Th is set to Th.
= 1, but the value to be initialized may be set freely according to the condition of the monitoring visual field area. Further, in the binarization threshold increase step 409, the binarization threshold is increased by one, but it is obvious that the threshold may be other than one. , Or may be increased in a random manner.

【0029】次に第2の侵入物体検出しきい値決定ステ
ップ 103 では、差分画像を二値化する二値化しきい値
を増加させたときの二値化画像に検出される“ 255 ”
の輝度値を持つ画素のかたまりの大きさの変化に基づい
て侵入物体検出しきい値を決定するステップである。第
2の侵入物体検出しきい値決定ステップ 103 について
図5を用いて説明する。
Next, in a second intruding object detection threshold value determination step 103, "255" is detected in the binarized image when the binarization threshold for binarizing the difference image is increased.
This is a step of determining an intruding object detection threshold value based on a change in the size of a cluster of pixels having a luminance value of. The second intruding object detection threshold value determination step 103 will be described with reference to FIG.

【0030】図5は、図2における第2の侵入物体検出
しきい値決定ステップ 103 の動作を説明するフローチ
ャートの一例である。図5は、図4の映像選択ステップ
401と、二値化しきい値初期化ステップ 404 と、検出
物体数判定ステップ 407 と、第1の侵入物体検出しき
い値決定及び表示ステップ 408 と、二値化しきい値増
加ステップ 409 の代わりに、映像選択ステップ 501
と、二値化しきい値初期化ステップ 504 と、検出物体
大きさ判定ステップ 507 と、第2の侵入物体検出しき
い値決定及び表示ステップ 508 と、二値化しきい値増
加ステップ 509 を用いたものである。それ以外のステ
ップは、図4と同様であるため説明は省略する。
FIG. 5 is an example of a flowchart for explaining the operation of the second intruding object detection threshold value determining step 103 in FIG. FIG. 5 shows the image selection step of FIG.
Instead of 401, a binarization threshold value initialization step 404, a detection object number determination step 407, a first intrusion object detection threshold value determination and display step 408, and a binarization threshold increase step 409, Image selection step 501
Using a binarization threshold initialization step 504, a detected object size determination step 507, a second intruding object detection threshold determination and display step 508, and a binarization threshold increase step 509 It is. The other steps are the same as those in FIG.

【0031】図5において、映像選択ステップ 501 で
は、監視視野領域内に侵入物体検出しきい値を決定する
上で基準となる基準侵入物体が写る映像を選択する。基
準侵入物体は、侵入物体監視装置を侵入者の監視に用い
る場合には人であるし、車輌の監視に用いる場合には車
輌である。この処理は、例えば、図4の場合と同様にし
て、監視員が監視視野領域内に基準侵入物体が写る映像
か否かを判断し、入力装置 1102 を用いて、侵入物体監
視装置に基準侵入物体が写っていることを通知し、その
通知によって適切な映像が選択されたものとする。続い
て、画像入力ステップ 402 と差分処理ステップ 403 の
処理を行い、ステップ 504 に進む。
In FIG. 5, in an image selection step 501, an image in which a reference intruding object serving as a reference for determining an intruding object detection threshold value is selected in the monitoring visual field is selected. The reference intruding object is a person when the intruding object monitoring device is used for monitoring an intruder, and a vehicle when the intruding object monitoring device is used for monitoring a vehicle. In this process, for example, in the same manner as in the case of FIG. 4, the observer determines whether or not the video includes the reference intruding object in the monitoring visual field, and uses the input device 1102 to enter the intruding object monitoring device. It is assumed that an object is shown and an appropriate image is selected by the notification. Subsequently, the processing of the image input step 402 and the difference processing step 403 is performed, and the process proceeds to step 504.

【0032】二値化しきい値初期化ステップ 504 で
は、二値化しきい値を、例えば第1の侵入物体検出しき
い値 Th1 に初期化し、続いて、二値化処理及び表示ス
テップ405 と物体検出処理ステップ 406 の処理を行
い、ステップ 507 に進む。
In a binarization threshold value initializing step 504, the binarization threshold value is initialized to, for example, a first intruding object detection threshold value Th1, followed by a binarization processing and display step 405 and an object detection. The processing of the processing step 406 is performed, and the process proceeds to step 507.

【0033】続いて、検出物体大きさ判定ステップ 507
では、最も大きな検出物体の外接矩形の大きさが所定
の値以下かを判定する。ここで、所定の値とは、検出す
べき侵入物体とみなす大きさで、例えば、撮像素子とし
て 1/2 型 CCD(素子サイズ:幅 dx = 6.5 mm、高さ dy
= 4.6 mm )、f = 25 mm のレンズ、カメラから監視領
域までの距離を L = 50 m 、入力画像サイズ:幅 X0 =
320 pix 、高さ Y0= 240 pix を用いて監視を行なう場
合、検出すべき侵入物体を幅 w0 = 1 m 、高さ h0 = 1.
5 m とすると、次の式(1)のようになり、
Subsequently, a detection object size determination step 507
Then, it is determined whether the size of the circumscribed rectangle of the largest detected object is equal to or smaller than a predetermined value. Here, the predetermined value is a size regarded as an intruding object to be detected. For example, a 1/2 type CCD (element size: width dx = 6.5 mm, height dy)
= 4.6 mm), f = 25 mm lens, distance from camera to surveillance area L = 50 m, input image size: width X0 =
When monitoring with 320 pix and height Y0 = 240 pix, the intruding object to be detected is width w0 = 1 m and height h0 = 1.
Assuming 5 m, the following equation (1) is obtained.

【数1】 検出物体の外接矩形の大きさ(幅 w 、高さ h )が w
≦ W0 、かつ h ≦ H0 であったときに所定の値未満と
判定する。
(Equation 1) The size of the circumscribed rectangle of the sensing object (width w, height h) is w
When ≤ W0 and h ≤ H0, it is determined to be less than a predetermined value.

【0034】検出物体大きさ判定ステップ 507 では、
最も大きな検出物体の外接矩形の大きさが所定の値未満
であった場合に第2の侵入物体検出しきい値決定及び表
示ステップ 508 へ分岐し、所定の値以上の場合に二値
化しきい値増加ステップ 509へ分岐する。
In the detection object size determination step 507,
If the size of the circumscribed rectangle of the largest detected object is smaller than a predetermined value, the process branches to the second intruding object detection threshold value determination and display step 508, and if the size is larger than the predetermined value, the binary threshold value is set. Branch to increment step 509.

【0035】第2の侵入物体検出しきい値決定及び表示
ステップ 508 では、二値化処理ステップ 405 で用いた
二値化しきい値 Th から 1 減じた値(二値化しきい値
Thの直前の二値化しきい値、即ち、二値化しきい値増加
ステップ 509 での増加分を減じた二値化しきい値)を
第2の侵入物体検出しきい値 Th2 として決定し、更
に、後述のように、決定した第2の侵入物体検出しきい
値を表す第2のしきい値候補マーク 807a をモニタ 111
3 上に表示し(図8)、図2の第2の侵入物体しきい値
決定ステップ 103 を終り、侵入物体検出しきい値選択
ステップ 201 に進む。また、二値化しきい値増加ステ
ップ 509 では、二値化しきい値を 1 増加し、二値化処
理ステップ 405 へ処理を移す。以上の説明では、二値
化しきい値の増加のステップ幅を 1 としているが、こ
れに限定されるものではなく、2 以上としても良いし、
上述のように、ステップ幅を等差的に増加させたり、等
比的に増加させたり、あるいは、ランダムに増加させて
も良い。
In the second intruding object detection threshold value determination and display step 508, a value obtained by subtracting 1 from the binary threshold value Th used in the binary processing step 405 (the binary threshold value)
A threshold value immediately before Th, that is, a binary threshold value obtained by reducing the increment in the binary threshold value increasing step 509) is determined as a second intruding object detection threshold value Th2. As will be described later, a second threshold candidate mark 807a representing the determined second intruding object detection threshold is monitored by the monitor 111.
3 Displayed above (FIG. 8), and the second intruding object threshold value determining step 103 in FIG. Further, in the binarization threshold value increasing step 509, the binarization threshold value is increased by 1, and the process proceeds to the binarization processing step 405. In the above description, the step width of the increase of the binarization threshold is set to 1, but is not limited to this, and may be set to 2 or more.
As described above, the step width may be increased in an equal manner, may be increased in an equal ratio, or may be increased in a random manner.

【0036】続いて、図2において、侵入物体検出しき
い値選択ステップ 201 では、第1の侵入物体検出しき
い値決定ステップ 101 と第2の侵入物体検出しきい値
決定ステップ 103 で得られた、第1の侵入物体検出し
きい値 Th1 と第2の侵入物体検出しきい値 Th2 の間の
しきい値を侵入物体検出しきい値とする。即ち、侵入物
体検出しきい値 Th は、次のようにして決定される。 Th1 ≦ Th ≦Th2 ‥‥‥式(2) この処理は、例えば、監視員が入力装置 1102 を用いて
第1の侵入物体検出しきい値 Th1 と第2の侵入物体検
出しきい値 Th2 のいずれかを選択することによって行
なわれる。尚、侵入物体検出しきい値決定ステップ 103
の前に、第1の侵入物体検出しきい値 Th1 と第2の侵
入物体検出しきい値 Th2 の間のしきい値 Th3 (例え
ば、 Th1 と Th2 の平均値)を少なくとも1つ決定する
ステップを設け、ステップ201 で Th1 ,Th2 ,Th3 の
侵入物体検出しきい値の中かのいずれかを選択するよう
にしても良い。
Subsequently, in FIG. 2, in an intruding object detection threshold value selecting step 201, the values are obtained in a first intruding object detection threshold value determining step 101 and a second intruding object detection threshold value determining step 103. The threshold between the first intruding object detection threshold Th1 and the second intruding object detection threshold Th2 is defined as the intruding object detection threshold. That is, the intruding object detection threshold Th is determined as follows. Th1 ≦ Th ≦ Th2 Equation (2) This processing is performed, for example, using the input device 1102 by the observer using either the first intruding object detection threshold Th1 or the second intruding object detection threshold Th2. This is done by selecting Incidentally, the intruding object detection threshold value determination step 103
Determining at least one threshold value Th3 (for example, the average value of Th1 and Th2) between the first intruding object detection threshold Th1 and the second intruding object detection threshold Th2 before In step 201, any one of the intruding object detection thresholds Th1, Th2, and Th3 may be selected.

【0037】ここで、第1の侵入物体検出しきい値 Th1
と第2の侵入物体検出しきい値 Th2 の関係を図10を
用いて説明する。図10は、差分法によって検出される
ノイズ(撮像装置内部で発生するノイズや映像信号を伝
送する過程で重畳するノイズ等)の差分のレベル 1002
と侵入物体の差分のレベル 1001 の関係を表したもので
ある(侵入物体以外の動く物体の説明は後述する)。
Here, the first intruding object detection threshold value Th1
The relationship between the threshold value Th2 and the second intruding object detection threshold Th2 will be described with reference to FIG. FIG. 10 shows a difference level 1002 of noise detected by the difference method (noise generated inside the image pickup apparatus or noise superimposed in a process of transmitting a video signal).
And a level 1001 of the difference between the intruding object and the intruding object (the moving object other than the intruding object will be described later).

【0038】図10に示す通り、第1の侵入物体検出し
きい値決定ステップ 101 で、検出すべき侵入物体の写
っていない映像を用いて第1の侵入物体検出しきい値 T
h1を(あるいは、侵入物体が 1 以上存在する映像を用
いて)決定したため、ノイズの差分レベル 1002 は第1
の侵入物体検出しきい値 1004( Th1 )未満になり、第
2の侵入物体検出しきい値決定ステップ 102 で、基準
侵入物体の検出できる限界の二値化しきい値を第2の侵
入物体検出しきい値 Th2 として決定したため、侵入物
体の差分レベル 1001 は第2の侵入物体検出しきい値 1
006( Th2 )より大きくなる。すなわち、侵入物体検出
しきい値として、第1の侵入物体検出しきい値 Th1ある
いは第2の侵入物体検出しきい値 Th2 のいずれか1つ
を選択することでノイズの誤検出を防ぎ、かつ、侵入物
体を検出できる侵入物体検出しきい値を設定することが
できる。
As shown in FIG. 10, in a first intruding object detection threshold value determining step 101, a first intruding object detection threshold value T is determined using an image in which an intruding object to be detected is not captured.
Since h1 was determined (or using an image with one or more intruding objects), the noise difference level 1002 was
Becomes smaller than the intruding object detection threshold value 1004 (Th1), and in the second intruding object detection threshold value determination step 102, the binarization threshold of the limit for detecting the reference intruding object is detected by the second intruding object detection. Since the threshold value Th2 is determined, the difference level 1001 of the intruding object is set to the second intruding object detection threshold 1
006 (Th2). That is, by selecting any one of the first intruding object detection threshold Th1 and the second intruding object detection threshold Th2 as the intruding object detection threshold, erroneous detection of noise is prevented, and An intruding object detection threshold value that can detect an intruding object can be set.

【0039】図2に戻り、ステップ 201 に続く画像入
力ステップ 111 では、TV カメラ 1101 から、例えば、
幅 320 pix 、高さ 240 pix 、8 bit/pix の入力画像を
取得し、ステップ 112 に進む。差分処理ステップ 112
では、入力画像と基準背景画像との画素毎の輝度値の差
分を求めて差分画像を取得しステップ 113 に進む。二
値化処理ステップ 113 では、得られた差分画像をステ
ップ 201 で選択した侵入物体検出しきい値に基づいて
侵入物体検出しきい値以上の画素を“ 255 ”、侵入物
体検出しきい値未満の画素を“ 0 ”として二値化画像
を取得し、ステップ 114′に進む。侵入物体検出処理ス
テップ 114′では、例えば、周知のラベリングの方法に
よって二値化画像の中で画素値“ 255 ”を持つ画素の
かたまりを検出してステップ 115′に進む。侵入物体判
定ステップ 115′では、侵入物体検出処理ステップ 11
4′で検出された侵入物体の外接図形の大きさが、例え
ば、外接矩形が所定の大きさ以上であった場合には侵入
物体が検出されたものとしてステップ 116 に進み、検
出された全ての侵入物体の外接矩形の大きさが所定の大
きさ未満であった場合には侵入物体が検出されなかった
ものとして画像入力ステップ 111 へ戻る。尚、所定の
大きさは、前述の式(1)によって計算されたものであ
る。警報・モニタ表示ステップ 116 では、例えば、画
像出力 I/F 1110 を介してモニタ 1113 に処理結果を表
示したり、例えば、出力 I/F 1109 を介して警告等を点
灯させたりする。したがって、本実施例によれば、撮像
装置で得られた入力画像から第1の侵入物体検出しきい
値 Th1 と第2の侵入物体検出しきい値 Th2 を決定し、
その内のいずれか1つを選択することで侵入物体検出し
きい値を容易に設定できるようにし、撮像装置視野内の
侵入物体を検出することが可能となる。
Returning to FIG. 2, in the image input step 111 following the step 201, the TV camera 1101
An input image having a width of 320 pix, a height of 240 pix, and 8 bits / pix is obtained, and the process proceeds to step 112. Difference processing step 112
Then, a difference image between the input image and the reference background image is obtained by obtaining the difference between the luminance values for each pixel, and the process proceeds to step 113. In the binarization processing step 113, the obtained difference image is determined based on the intruding object detection threshold value selected in step 201 as “255” for pixels that are equal to or larger than the intruding object detection threshold value, and The pixel is set to "0" to obtain a binary image, and the process proceeds to step 114 '. In the intruding object detection processing step 114 ', for example, a cluster of pixels having the pixel value "255" is detected in the binary image by a well-known labeling method, and the process proceeds to step 115'. In the intruding object determination step 115 ', the intruding object detection processing step 11
If the size of the circumscribed figure of the intruding object detected in 4 'is, for example, the circumscribed rectangle is equal to or larger than a predetermined size, it is determined that the intruding object has been detected, and the process proceeds to step 116. If the size of the circumscribed rectangle of the intruding object is smaller than the predetermined size, it is determined that the intruding object has not been detected, and the process returns to the image input step 111. Note that the predetermined size is calculated by the above-described equation (1). In the alarm / monitor display step 116, for example, the processing result is displayed on the monitor 1113 via the image output I / F 1110, and a warning or the like is turned on via the output I / F 1109, for example. Therefore, according to the present embodiment, the first intruding object detection threshold Th1 and the second intruding object detection threshold Th2 are determined from the input image obtained by the imaging device,
By selecting any one of them, the threshold value for detecting an intruding object can be easily set, and an intruding object in the visual field of the imaging device can be detected.

【0040】図3は、本発明の第2の実施例の処理動作
を示すフローチャートの一例である。この第2の実施例
は、第1の侵入物体検出しきい値の候補と第2の侵入物
体検出しきい値の候補を少なくとも1以上記録し、各々
の候補に基づいて第1の侵入物体検出しきい値と第2の
侵入物体検出しきい値を決定するようにしたものであ
る。図3は、図2で示したフローチャートに、第1の侵
入物体検出しきい値記録ステップ 102 と、第2の侵入
物体検出しきい値記録ステップ 104 と、所定フレーム
終了判定ステップ 105 と、第1の侵入物体検出しきい
値選択ステップ 106 と、第2の侵入物体検出しきい値
選択ステップ 107 を追加したものである。これ以外の
ステップについては、図2で示したフローチャートと同
様であるため説明を省略する。
FIG. 3 is an example of a flowchart showing the processing operation of the second embodiment of the present invention. In the second embodiment, at least one candidate of a first intruding object detection threshold and a second candidate of a second intruding object detection threshold are recorded, and the first intruding object detection is performed based on each candidate. The threshold value and the second intruding object detection threshold value are determined. FIG. 3 is a flow chart shown in FIG. 2 in which a first intruding object detection threshold recording step 102, a second intruding object detection threshold recording step 104, a predetermined frame end determination step 105, And a second intruding object detection threshold value selecting step 107 are added. The other steps are the same as those in the flowchart shown in FIG.

【0041】図3において、図2で説明したように、第
1の侵入物体検出しきい値決定ステップ 101 の処理が
行われステップ 102 に進む。第1の侵入物体検出しき
い値記録ステップ 102 では、第1の侵入物体検出しき
い値決定ステップ 101 で得られた第1の侵入物体検出
しきい値 Th1 を第1の侵入物体検出しきい値候補とし
て、ワークメモリ 1106 に記録する。
In FIG. 3, as described with reference to FIG. 2, the process of the first intruding object detection threshold value determining step 101 is performed, and the process proceeds to step 102. In a first intruding object detection threshold recording step 102, the first intruding object detection threshold Th1 obtained in the first intruding object detection threshold determining step 101 is changed to a first intruding object detection threshold. It is recorded in the work memory 1106 as a candidate.

【0042】次に、ステップ 103 においても、図2で
説明したように、第2の侵入物体検出しきい値決定ステ
ップ 103 の処理が行われステップ 104 に進む。第2の
侵入物体検出しきい値記録ステップ 104 では、第2の
侵入物体検出しきい値決定ステップ 103 で得られた第
2の侵入物体検出しきい値 Th2 を第2の侵入物体検出
しきい値候補として、ワークメモリ 1106 に記録する。
Next, also in step 103, as described with reference to FIG. 2, the process of the second intruding object detection threshold value determining step 103 is performed, and the process proceeds to step 104. In the second intruding object detection threshold recording step 104, the second intruding object detection threshold Th2 obtained in the second intruding object detection threshold determining step 103 is changed to the second intruding object detection threshold. It is recorded in the work memory 1106 as a candidate.

【0043】続いて、所定フレーム終了判定ステップ 1
05 では、各々の侵入物体検出しきい値の候補が所定フ
レーム数分得られたか否かを判定し、所定フレーム数
(例えば、5 )分得られた場合は第1の侵入物体検出し
きい値選択ステップ 106 へ分岐し、得られていない場
合は第1の侵入物体検出しきい値記録ステップ 101 へ
分岐する。
Subsequently, predetermined frame end determination step 1
In step 05, it is determined whether or not a predetermined number of intruder detection thresholds have been obtained for a predetermined number of frames. If a predetermined number of frames (for example, 5) have been obtained, the first intruder detection threshold is determined. The flow branches to the selection step 106, and if not obtained, the flow branches to the first intruding object detection threshold recording step 101.

【0044】第1の侵入物体検出しきい値選択ステップ
106 では、ワークメモリ 1106 に記録された第1の侵
入物体検出しきい値候補の中で最も大きな値を第1の侵
入物体検出しきい値として選択する。第2の侵入物体検
出しきい値選択ステップ 107 では、ワークメモリ 1106
に記録された第2の侵入物体検出しきい値候補の中で
最も小さな値を第2の侵入物体検出しきい値として選択
する。したがって、本実施例によれば、得られた第1の
侵入物体検出しきい値の候補の内もっとも値の大きい値
を第1の侵入物体検出しきい値としているためノイズを
確実に除去することができ(最も高いノイズの差分レベ
ルをも除去できる)、かつ、得られた第2の侵入物体検
出しきい値の候補の内もっとも値の小さい値を第2の侵
入物体検出しきい値としているため侵入物体を確実に検
出することができ(最も低い侵入物体の差分レベルをも
検出できる)、侵入物体認識装置の信頼性を向上させる
ことが可能となる。尚、この実施例において、第1と第
2の侵入物体検出しきい値の一方についてのみ複数の候
補を用意し、他方については図2と同様に、複数の候補
を用意せずにしきい値を決定するように修正しても良
い。
First intruding object detection threshold selection step
At 106, the largest value among the first intruder detection threshold candidates recorded in the work memory 1106 is selected as the first intruder detection threshold. In the second intruding object detection threshold selection step 107, the work memory 1106
Is selected as the second intruding object detection threshold value among the second intruding object detection threshold candidates recorded in. Therefore, according to the present embodiment, since the largest value among the obtained candidates for the first intruding object detection threshold value is used as the first intruding object detection threshold value, noise can be reliably removed. (The highest noise difference level can be removed), and the smallest value among the obtained candidates for the second intruding object detection threshold value is set as the second intruding object detection threshold value. Therefore, the intruding object can be reliably detected (the lowest difference level of the intruding object can also be detected), and the reliability of the intruding object recognition device can be improved. In this embodiment, a plurality of candidates are prepared for only one of the first and second intruding object detection thresholds, and for the other, as in FIG. It may be modified so as to be determined.

【0045】図6と図7は、本発明の第3の実施例を表
すフローチャートの一例である。この第3の実施例は、
第1の侵入物体検出しきい値決定の際に不感帯を設け、
かつ、第2の侵入物体検出しきい値決定の際に侵入物体
の存在する領域を指定するようにし、例えば、図2のフ
ローチャートに示した処理を第1の侵入物体検出しきい
値決定ステップ 101 の処理を図6のフローチャートに
よって行い、第2の侵入物体検出しきい値決定ステップ
103 の処理を図7のフローチャートによって行ったも
のである。図6は、図4で示したフローチャートで、ス
テップ 401 とステップ 402 の間に不感帯設定ステップ
601 を追加し、二値化処理ステップ 405 の代わりに別
の二値化処理ステップ 602 を用いたものである。図7
は、図5で示されるフローチャートで、ステップ 402
とステップ 403 の間に基準侵入物体領域設定ステップ
701 を追加し、検出物体大きさ判定ステップ 507 の代
わりに別の検出物体大きさ判定ステップ 702 を用いた
ものである。
FIGS. 6 and 7 are an example of a flowchart showing a third embodiment of the present invention. This third embodiment is:
Providing a dead zone at the time of determining the first intruding object detection threshold,
At the time of determining the second intruding object detection threshold value, the region where the intruding object exists is designated, and, for example, the processing shown in the flowchart of FIG. Is performed according to the flowchart of FIG. 6, and a second intruding object detection threshold value determining step is performed.
The processing of step 103 is performed according to the flowchart of FIG. FIG. 6 is a flowchart shown in FIG. 4, in which a dead zone setting step is performed between step 401 and step 402.
601 is added, and another binarization processing step 602 is used in place of the binarization processing step 405. FIG.
Is the flowchart shown in FIG.
Between step and step 403
701 is added, and another detection object size determination step 702 is used in place of the detection object size determination step 507.

【0046】図6において、図4で説明したように、映
像選択ステップ 401 の処理が行われステップ 601 に進
む。不感帯設定ステップ 601 では、木々の揺れなど検
出すべき侵入物体以外の動く物体を不感帯として設定
し、ノイズの差分レベルをより正確に検出するようにす
る。これを図9を用いて説明する。図9は、入力画像 9
01 に木 903 や草 904a 、904b 、904c が写る例であ
る。
In FIG. 6, as described with reference to FIG. 4, the process of the image selection step 401 is performed, and the process proceeds to step 601. In the dead zone setting step 601, a moving object other than an intruding object to be detected, such as a sway of trees, is set as a dead zone so that the noise difference level is detected more accurately. This will be described with reference to FIG. Figure 9 shows the input image 9
01 is an example in which a tree 903 and grass 904a, 904b, 904c are shown.

【0047】ここで監視員が入力装置 1102 を操作し
て、モニタ 1113 に写る位置指示マーク 908 を動か
し、例えば多角形によって、木の領域 905 や草の領域
906 を指定する。指定した領域は不感帯となり、不感帯
の画素は、第1の侵入物体検出しきい値の決定に用いな
い。次に、ステップ 402 からステップ 404 の処理動作
を行い、ステップ 602 に進む。
At this point, the observer operates the input device 1102 to move the position indicating mark 908 reflected on the monitor 1113.
Specify 906. The designated area becomes a dead zone, and pixels in the dead zone are not used for determining the first intruding object detection threshold. Next, the processing operation from step 402 to step 404 is performed, and the process proceeds to step 602.

【0048】二値化処理ステップ 602 は、差分値が二
値化しきい値以上かつ不感帯でない画素を“ 255 ”、
それ以外を“ 0 ”とする二値化画像を作成する。木々
の揺れなどの検出すべき侵入物体以外の動く物体は、図
10に示すように、ノイズの差分レベルに比べ大きな差
分レベルを持つ。したがって、不感帯を設定することに
よってより正確なノイズの差分レベルを検出することが
できる。
In the binarization processing step 602, the pixel whose difference value is equal to or larger than the binarization threshold and which is not a dead zone is set to "255",
A binarized image in which the rest is "0" is created. A moving object other than an intruding object to be detected, such as a tree sway, has a difference level larger than the noise difference level, as shown in FIG. Therefore, by setting the dead zone, a more accurate noise difference level can be detected.

【0049】次に図7において、図5で説明したよう
に、映像選択ステップ 501 と画像入力ステップ 402 の
処理が行われステップ 701 に進む。基準侵入物体領域
設定ステップ 701 では、基準侵入物体の領域(外接矩
形)を指定する。これを図9を用いて説明する。図9に
おいて、入力画像 901 には、基準侵入物体 902 が写っ
ており、監視員が入力装置 1102 を操作して、モニタ 1
113 に写る位置指示マーク 908 を動かし、例えば矩形
によって、基準侵入物体の領域 907 を指定する。基準
侵入物体の領域は、外接矩形に限らず、任意の外接図形
が使えることは明らかである。次に、ステップ 403 か
らステップ 406 の処理動作を行い、ステップ 702 に進
む。
Next, in FIG. 7, as described with reference to FIG. 5, the processing of the video selection step 501 and the image input step 402 is performed, and the flow advances to step 701. In the reference intruding object area setting step 701, the area (circumscribed rectangle) of the reference intruding object is specified. This will be described with reference to FIG. In FIG. 9, a reference intruding object 902 is shown in an input image 901, and a monitor operates the input device 1102 to display a monitor 1.
By moving the position indication mark 908 shown in 113, the area 907 of the reference intruding object is designated by, for example, a rectangle. It is obvious that the area of the reference intruding object is not limited to the circumscribed rectangle, but any circumscribed figure can be used. Next, the processing operation from step 403 to step 406 is performed, and the process proceeds to step 702.

【0050】検出物体大きさ判定ステップ 702 では、
基準侵入物体領域設定ステップ 701で指定した基準侵入
物体領域 907 内で検出された検出物体の大きさが基準
侵入物体領域 907 の所定の割合未満になった場合に、
第2の侵入物体検出しきい値決定ステップ 508 へ分岐
し、所定の割合以上の場合に、二値化しきい値増加ステ
ップ 509 へ分岐する。ここで所定の割合とは、例えば
0.3 とする。すなわち、基準侵入物体の大きさの3割以
上であれば侵入物体として検出できることを意味してい
る。したがって、本実施例によれば、入力画像に重畳す
るノイズの差分レベルを正確に検出して第1の侵入物体
検出しきい値を得ることができる。さらに、本実施例に
よれば、第1の実施例のように侵入物体の大きさを計算
することなく第2の侵入物体検出しきい値を得ることが
でき、侵入物体認識装置の信頼性を向上させることが可
能となる。
In the detected object size determination step 702,
When the size of the detected object detected in the reference intruding object area 907 specified in the reference intruding object area setting step 701 becomes smaller than a predetermined ratio of the reference intruding object area 907,
The flow branches to a second intruding object detection threshold value determination step 508, and if the ratio is equal to or more than a predetermined ratio, the flow branches to a binarization threshold increase step 509. Here, the predetermined ratio is, for example,
0.3. That is, if the size of the reference intruding object is 30% or more, it can be detected as an intruding object. Therefore, according to the present embodiment, the first intrusion object detection threshold can be obtained by accurately detecting the difference level of the noise superimposed on the input image. Further, according to the present embodiment, the second intruding object detection threshold value can be obtained without calculating the size of the intruding object as in the first embodiment, and the reliability of the intruding object recognition device can be improved. It can be improved.

【0051】更に、本実施例では、侵入物体の領域を指
定して、その領域内で第2の侵入物体検出しきい値の決
定を行うことによる特有の効果が得られる。これについ
て説明すると、差分法では、侵入物体と基準背景画像の
輝度が近い画素が存在するとその画素は二値化処理によ
って“ 0 ”と判定されてしまうため、場合によっては
侵入物体が複数に分裂して観察されることがある。この
場合、検出物体の外接図形の大きさは見かけ上小さくな
ってしまい、第1の実施例で決定される第2の侵入物体
検出しきい値は最適な値に比べて小さくなってしまう。
本実施例では、基準侵入物体領域設定ステップ 701 で
侵入物体の存在する領域を指定し、検出物体大きさ判定
ステップ 702 でその領域内で検出される物体(二値化
処理によって“ 255 ”となる画素のかたまり)の画素
が指定した領域内で所定の割合以上であるか否かを判定
している。二値化画像で“ 255 ”となる画素の割合に
よって判定するため、決定される第2の侵入物体検出し
きい値では、分裂して観測されたか否かにもかかわら
ず、侵入物体が一定以上の割合の画素で検出することを
保証することができる。
Further, in this embodiment, a unique effect is obtained by designating the area of the intruding object and determining the second intruding object detection threshold value in that area. To explain this, in the difference method, if there is a pixel whose luminance of the intruding object is close to that of the reference background image, the pixel is determined to be “0” by the binarization processing, and in some cases, the intruding object is divided into a plurality of pieces. May be observed. In this case, the size of the circumscribed figure of the detected object is apparently small, and the second intruding object detection threshold determined in the first embodiment is smaller than the optimum value.
In the present embodiment, an area where an intruding object exists is specified in a reference intruding object area setting step 701, and an object detected in that area in a detected object size determining step 702 (becomes "255" by binarization processing). It is determined whether or not the number of pixels (a group of pixels) is equal to or greater than a predetermined ratio in the designated area. Since the determination is made based on the ratio of pixels that become “255” in the binarized image, the determined second intruding object detection threshold value indicates that the intruding object is equal to or more than a certain value, regardless of whether the image is divided and observed. It can be assured that detection is performed with pixels having the ratio of.

【0052】図1は、本発明の第4の実施例を表すフロ
ーチャートの一例である。この第4の実施例は、第1の
侵入物体検出しきい値 Th1 と第2の侵入物体検出しき
い値Th2 の幅(差の値)を求め、得られる侵入物体検出
しきい値が侵入物体検出処理に適しているか否かを判定
するようにしたものである。図1は、図3で示したフロ
ーチャートで、第2の侵入物体検出しきい値選択ステッ
プ 107 の後ろに、第1と第2の侵入物体検出しきい値
差判定ステップ 108と第3の侵入物体検出しきい値決定
ステップ 109 とを追加し、侵入物体検出しきい値選択
ステップ 201 の代わりに、別の侵入物体検出しきい値
選択ステップ110 を用いたものである。
FIG. 1 is an example of a flowchart showing a fourth embodiment of the present invention. In the fourth embodiment, the width (difference value) between the first intruding object detection threshold value Th1 and the second intruding object detection threshold value Th2 is determined, and the obtained intruding object detection threshold value is determined as the intruding object detection threshold value. It is determined whether or not it is suitable for the detection processing. FIG. 1 is a flow chart shown in FIG. 3, in which after a second intruding object detection threshold value selecting step 107, a first and second intruding object detection threshold value difference determining step 108 and a third intruding object detection step are performed. The detection threshold value determination step 109 is added, and another intrusion object detection threshold value selection step 110 is used instead of the intrusion object detection threshold value selection step 201.

【0053】第1と第2の侵入物体検出しきい値差判定
ステップ 108 とは、第1の侵入物体検出しきい値選択
ステップ 106 と第2の侵入物体検出しきい値選択ステ
ップ107 とによって得られた第1の侵入物体検出しきい
値 Th1 と第2の侵入物体検出しきい値 Th2 の差を求
め、その差が所定の値(例えば 5 )未満の場合は、第
1の侵入物体検出しきい値決定ステップ 101 へ分岐
し、所定の値以上であった場合、第3の侵入物体検出し
きい値決定ステップ 109 へ分岐する。上記実施例で
は、第1と第2の侵入物体検出しきい値差判定ステップ
108 で、第1の侵入物体検出しきい値 Th1 と第2の侵
入物体検出しきい値 Th2 の差が所定の値未満の場合は
第1の侵入物体検出しきい値決定ステップ 101 へ分岐
したが、第1と第2の侵入物体検出しきい値差判定ステ
ップ 108 で、もし、数回繰り返しても、第3の侵入物
体検出しきい値決定ステップ 109 へ分岐しない場合
は、例えば、警報・モニタ表示ステップ 116 に分岐し
て、監視員に異常を知らせるように設定することもでき
る。
The first and second intruding object detection threshold value difference determining step 108 is obtained by the first intruding object detection threshold value selecting step 106 and the second intruding object detection threshold value selecting step 107. The difference between the obtained first intruding object detection threshold Th1 and the second intruding object detection threshold Th2 is obtained, and if the difference is less than a predetermined value (for example, 5), the first intruding object detection is performed. The process branches to a threshold value determining step 101, and if it is equal to or more than a predetermined value, the process branches to a third intruding object detection threshold value determining step 109. In the above embodiment, the first and second intruding object detection threshold value difference determination steps
At 108, if the difference between the first intruding object detection threshold Th1 and the second intruding object detection threshold Th2 is less than a predetermined value, the process branches to the first intruding object detection threshold determination step 101. In the first and second intruding object detection threshold value difference determining step 108, if the process does not branch to the third intruding object detection threshold value determining step 109 even if it is repeated several times, for example, an alarm / monitor It is also possible to branch to the display step 116 so as to notify the observer of the abnormality.

【0054】第3の侵入物体検出しきい値決定ステップ
109 では、第1の侵入物体検出しきい値 Th1 より大き
く、第2の侵入物体検出しきい値 Th2 未満の値となる
少なくとも1つの第3の侵入物体検出しきい値 Th3 を
求める。これは、例えば、第3の侵入物体検出しきい値
Th3 を1つ決める場合であれば第1の侵入物体検出し
きい値 Th1 と第2の侵入物体検出しきい値 Th2 の平均
で良い。
Third Intruding Object Detection Threshold Determination Step
At 109, at least one third intruding object detection threshold Th3 that is greater than the first intruding object detection threshold Th1 and less than the second intruding object detection threshold Th2 is determined. This is, for example, the third intruding object detection threshold
If one Th3 is determined, the average of the first intruding object detection threshold Th1 and the second intruding object detection threshold Th2 may be used.

【0055】次に、侵入物体検出しきい値選択ステップ
110 では、第1の侵入物体検出しきい値 Th1 と第2の
侵入物体検出しきい値 Th2 と第3の侵入物体検出しき
い値Th3 のいずれかを侵入物体検出しきい値とする。こ
の処理を図10に言及して説明すると、例えば、監視員
が入力装置 1102 を用いて第1の侵入物体検出しきい値
Th1 と第2の侵入物体検出しきい値 Th2 と第3の侵入
物体検出しきい値 Th3 のいずれかを選択することによ
って行なわれる。したがって、本実施例によれば、風の
強さが変わり、入力画像中に写る木の揺れなどの検出す
べき侵入物体以外の動く物体 1103 の見かけの動きの量
が変わった場合でも、第1の侵入物体検出しきい値、第
2の侵入物体検出しきい値、第3の侵入物体検出しきい
値の中から監視員が入力装置 1102 を操作して適切な侵
入物体検出しきい値を容易に設定できるようになる。
Next, an intruding object detection threshold value selecting step
In 110, one of the first intruding object detection threshold Th1, the second intruding object detection threshold Th2, and the third intruding object detection threshold Th3 is set as the intruding object detection threshold. This process will be described with reference to FIG. 10. For example, the observer uses the input device 1102 to
This is performed by selecting one of Th1 and the second intruding object detection threshold Th2 and the third intruding object detection threshold Th3. Therefore, according to the present embodiment, even when the intensity of the wind changes and the amount of the apparent movement of the moving object 1103 other than the intruding object to be detected such as the swaying of the tree in the input image changes, the first The observer operates the input device 1102 to easily select an appropriate intruding object detection threshold from among the intruding object detection threshold, the second intruding object detection threshold, and the third intruding object detection threshold. Can be set to

【0056】図8は、本発明の監視モニタ 1113 に表示
された画面表示の一実施例である。図8は、二値化しき
い値に対して二値化画像がどのように変化するか、第1
の侵入物体検出しきい値の候補と第2の侵入物体検出し
きい値の候補はどの値かを表すようにしたもので、画面
には、二値化画像 801(基準侵入物体 802 、ノイズ803
a 、803b 、803c )、二値化しきい値レベルゲージ 804
、現在の二値化しきい値の二値化しきい値レベルゲー
ジ 804 上の位置を示す識別記号(二値化しきい値マー
ク)805 、第1の侵入物体検出しきい値の候補のマーク
806a 、806b、806c 、及び第2の侵入物体検出しきい
値の候補マーク 807a 、807b 、807cが表示されてい
る。
FIG. 8 shows an embodiment of a screen displayed on the monitor 1113 of the present invention. FIG. 8 shows how the binarized image changes with respect to the binarization threshold.
Of the intrusion object detection threshold candidate and the second intrusion object detection threshold candidate are indicated on the screen, and a binary image 801 (reference intrusion object 802, noise 803) is displayed on the screen.
a, 803b, 803c), binarization threshold level gauge 804
, An identification symbol (binary threshold mark) 805 indicating the position on the binary threshold level gauge 804 of the current binary threshold, a mark of a candidate for the first intruding object detection threshold
806a, 806b, 806c and candidate marks 807a, 807b, 807c of the second intruding object detection threshold are displayed.

【0057】図8において、侵入物体監視装置が動作
し、例えば、図4のフローチャートの処理動作が開始さ
れ、まず二値化しきい値初期化ステップ 404 によっ
て、二値化しきい値が定まると、モニタ 1113 にその二
値化しきい値の値の位置に二値化しきい値マークが表示
され、かつその二値化しきい値で取得された二値化画像
が表示される。そして同様に、ステップ 405 〜 409 の
処理を繰り返す都度、モニタ 1113 にその二値化しきい
値の値の位置に二値化しきい値マークが更新されて表示
され、かつその二値化しきい値で取得された二値化画像
が更新されて表示される。そして、第1の二値化しきい
値の候補が決定されると、その候補マーク 806a が更に
表示される。同様に、例えば、図5のフローチャートの
処理動作が実行されると、その結果、第2の二値化しき
い値の候補が決定されると、その候補マーク 807a が更
に表示される。そして、次に図1のフローチャートの第
3の侵入物体検出しきい値決定ステップ 109 によっ
て、第3の二値化しきい値が決定されると、その候補マ
ーク(図示せず)が更に表示される。そして、監視員
が、それらの中から、適当と思われる二値化しきい値を
入力装置 1102 を用いて選択することによって侵入物体
検出しきい値が設定され、そのマーク(図示せず)モニ
タ 1113 に表示される。尚、これらの図示しないマーク
は、レベルゲージに沿って任意の形態で設ければよい。
このように、設定された二値化しきい値に応じて二値化
しきい値マーク 805が変化し、それに伴い二値化画像 8
01 も変化する。
In FIG. 8, the intruding object monitoring apparatus operates, for example, the processing operation of the flowchart of FIG. 4 is started, and first, when the binarization threshold is determined in the binarization threshold initialization step 404, the monitor is started. At 1113, a binarization threshold mark is displayed at the position of the binarization threshold value, and a binarized image acquired with the binarization threshold is displayed. Similarly, every time the processing of steps 405 to 409 is repeated, the binarization threshold mark is updated and displayed on the monitor 1113 at the position of the binarization threshold value, and the binarization threshold value is obtained. The binarized image thus updated is displayed. When the first binarization threshold candidate is determined, the candidate mark 806a is further displayed. Similarly, for example, when the processing operation of the flowchart in FIG. 5 is performed, and as a result, when the second binarization threshold candidate is determined, the candidate mark 807a is further displayed. Then, when the third binarization threshold value is determined by the third intruding object detection threshold value determination step 109 in the flowchart of FIG. 1, the candidate mark (not shown) is further displayed. . An intruder detection threshold is set by the monitor using the input device 1102 to select a binarization threshold deemed appropriate from among them, and the mark (not shown) monitor 1113 is set. Will be displayed. Note that these marks (not shown) may be provided in any form along the level gauge.
In this way, the binarization threshold mark 805 changes according to the set binarization threshold, and accordingly, the binarization image 8
01 also changes.

【0058】また、処理動作(例えば、図1)を実行す
る都度(例えば3回程度)、各侵入物体検出しきい値の
候補が得られる度に二値化しきい値レベルゲージ804の
横にその値に対応する位置に候補マーク 806a 、806b
、806c 、807a 、807b 、807c、及び、第3の二値化し
きい値マーク候補が重ねて表示される。このように監視
モニタ画面に表示することによって、設定中の侵入物体
検出しきい値によって二値化画像 801 がどのように得
られるかを知ることができる。
Each time a processing operation (for example, FIG. 1) is executed (for example, about three times), each time a candidate for an intruding object detection threshold is obtained, the candidate is displayed next to the binarization threshold level gauge 804. Candidate marks 806a, 806b at positions corresponding to the values
, 806c, 807a, 807b, 807c and a third binarization threshold mark candidate are displayed in a superimposed manner. By displaying on the monitoring monitor screen in this way, it is possible to know how the binarized image 801 can be obtained based on the intruding object detection threshold being set.

【0059】なお、以上の実施例では、侵入物体検出し
きい値を決定する際に二値化しきい値を初期値から増加
する方向で変化させた。しかしながら、二値化しきい値
を初期値(最大値)から減少させる方向で変化させても
よいことは明らかである。その場合には、第1、第2、
第3、第4の各実施例において、まず第2の侵入物体検
出しきい値を決定し、次いで、第1の侵入物体検出しき
い値を決定することになる。
In the above embodiment, when determining the threshold value for detecting an intruding object, the binarization threshold value is changed in a direction to increase from the initial value. However, it is apparent that the binarization threshold may be changed in a direction to decrease from the initial value (maximum value). In that case, the first, second,
In each of the third and fourth embodiments, the second intruding object detection threshold value is determined first, and then the first intruding object detection threshold value is determined.

【0060】第2の侵入物体検出しきい値の決定におい
ては、例えば、図5のステップ 505では、最も大きな検
出物体の外接矩形の大きさが所定の値以上かを判定す
る。そして、所定の値以上であった場合にはステップ 5
08 へ分岐し二値化処理ステップ 405 で用いた二値化し
きい値 Th を第2の侵入物体検出しきい値 Th2 として
決定する。他方、ステップ 508 で、最も大きな検出物
体の外接矩形の大きさが所定の値より小さい時はステッ
プ 509 へ分岐し、二値化しきい値 Th から 1 を減じ、
二値化処理ステップ 405 へ処理を移す。
In determining the second threshold value for detecting an intruding object, for example, in step 505 in FIG. 5, it is determined whether the size of the circumscribed rectangle of the largest detected object is equal to or larger than a predetermined value. If the value is equal to or greater than the predetermined value, step 5
The process branches to 08, and the binarization threshold Th used in the binarization processing step 405 is determined as the second intruding object detection threshold Th2. On the other hand, in step 508, if the size of the circumscribed rectangle of the largest detected object is smaller than the predetermined value, the process branches to step 509, and subtracts 1 from the binarization threshold Th,
The processing moves to the binarization processing step 405.

【0061】第1の侵入物体検出しきい値の決定におい
ては、例えば、図4のステップ 407では、二値化画像 1
204 の中で画素値“ 255 ”となる画素のかたまりの個
数を計数し、その数が 0 でなければステップ 408 へ分
岐し二値化処理ステップ 405で用いた二値化しきい値 T
h から 1 減じた値を第1の侵入物体検出しきい値 Th1
として決定する。他方、ステップ 407 で計数した画素
値“ 255 ”となる画素のかたまりの個数が 0 であれば
ステップ 409 で二値化しきい値 Th を 1 減じて二値化
処理ステップ 405 へ処理を移す。二値化しきい値 Th
を、初期値から減少させる方向で変化させて侵入物体検
出しきい値を決定する際での、上述の各実施例の細部の
修正は、以上の明細書の記載の説明から当業者には明ら
かであるので、これ以上の説明は省略する。
In determining the first intruding object detection threshold value, for example, in step 407 of FIG.
In step 204, the number of clusters of pixels having a pixel value of "255" is counted. If the number is not 0, the flow branches to step 408 and the binarization threshold T used in the binarization processing step 405 is used.
The value obtained by subtracting 1 from h is the first intruding object detection threshold Th1
To be determined. On the other hand, if the number of clusters of pixels having the pixel value “255” counted in step 407 is 0, the binarization threshold Th is decremented by 1 in step 409, and the process proceeds to the binarization processing step 405. Binarization threshold Th
In the direction of decreasing the threshold value from the initial value to determine the intruding object detection threshold value, it is apparent to those skilled in the art from the description in the above specification that the details of each of the above embodiments are modified. Therefore, further description is omitted.

【0062】[0062]

【発明の効果】したがって、撮像装置より得られた入力
画像から侵入物体以外のノイズを除去することができる
侵入物体検出しきい値と、撮像視野に写した基準侵入物
体を検出することによって侵入物体検出しきい値とを自
動的に算出するようにし、その内のいずれか1つを選択
することで侵入物体検出しきい値を容易に設定できるよ
うにし、侵入物体検出しきい値の設定作業に熟練性を必
要とせず、監視視野領域の照度や時間帯、レンズの絞り
等が変わった場合でも容易に侵入物体検出しきい値を設
定でき、侵入物体認識装置の適用範囲を大きく広げるこ
とができる。
Therefore, an intruding object detection threshold value capable of removing noise other than an intruding object from an input image obtained from an imaging device and a reference intruding object detected in an imaging field of view are detected. The detection threshold is automatically calculated, and the intrusion detection threshold can be easily set by selecting one of the detection thresholds. No skill is required, and even when the illuminance, time zone, lens aperture, etc. of the monitoring visual field change, the threshold value for intruding object detection can be easily set, and the application range of the intruding object recognition device can be greatly expanded. .

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

【図1】 本発明の一実施例の処理動作を示すフローチ
ャート。
FIG. 1 is a flowchart showing a processing operation according to an embodiment of the present invention.

【図2】 本発明の一実施例の処理動作を示すフローチ
ャート。
FIG. 2 is a flowchart illustrating a processing operation according to an embodiment of the present invention.

【図3】 本発明の一実施例の処理動作を示すフローチ
ャート。
FIG. 3 is a flowchart illustrating a processing operation according to an embodiment of the present invention.

【図4】 本発明の一実施例の処理動作を示すフローチ
ャート。
FIG. 4 is a flowchart illustrating a processing operation according to an embodiment of the present invention.

【図5】 本発明の一実施例の処理動作を示すフローチ
ャート。
FIG. 5 is a flowchart illustrating a processing operation according to an embodiment of the present invention.

【図6】 本発明の一実施例の処理動作を示すフローチ
ャート。
FIG. 6 is a flowchart illustrating a processing operation according to an embodiment of the present invention.

【図7】 本発明の一実施例の処理動作を示すフローチ
ャート。
FIG. 7 is a flowchart showing a processing operation according to an embodiment of the present invention.

【図8】 本発明の一実施例の画面表示を示す図。FIG. 8 is a diagram showing a screen display according to an embodiment of the present invention.

【図9】 本発明の不感帯領域と基準侵入物体領域の設
定方法を示す図。
FIG. 9 is a diagram showing a method for setting a dead zone and a reference intruding object region according to the present invention.

【図10】 侵入物体、ノイズ、検出すべき侵入物体以
外の動く物体の差分レベルを示す図。
FIG. 10 is a diagram illustrating a difference level of a moving object other than an intruding object, noise, and an intruding object to be detected.

【図11】 本発明の侵入物体監視装置の一実施例の構
成を示すブロック図。
FIG. 11 is a block diagram showing a configuration of an embodiment of an intruding object monitoring device according to the present invention.

【図12】 差分法における侵入物体検出原理を説明す
るブロック図。
FIG. 12 is a block diagram illustrating the principle of detecting an intruding object in the difference method.

【図13】 従来の侵入物体検出動作を示すフローチャ
ート。
FIG. 13 is a flowchart showing a conventional intruding object detection operation.

【図14】 本発明の侵入物体しきい値決定の動作原理
を説明するための図。
FIG. 14 is a diagram for explaining an operation principle of determining an intruding object threshold according to the present invention.

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

101:第1の侵入物体検出しきい値決定ステップ、 10
2:第1の侵入物体検出しきい値記録ステップ、 103:
第2の侵入物体検出しきい値決定ステップ、 104:第
2の侵入物体検出しきい値記録ステップ、 105:所定
フレーム数終了判定ステップ、 106:第1の侵入物体
検出しきい値選択ステップ、 107:第2の侵入物体検
出しきい値選択ステップ、 108:第1と第2の侵入物
体検出しきい値差判定ステップ、 109:第3の侵入物
体検出しきい値決定ステップ、 110:侵入物体検出し
きい値選択ステップ、 111:画像入力ステップ、 11
2:差分処理ステップ、 113:二値化処理ステップ、
114:侵入物体検出ステップ、 115:侵入物体判定ステ
ップ、 116:警報・モニタ表示ステップ、 201:侵入
物体検出しきい値選択ステップ、 401:映像選択ステ
ップ、 402:画像入力ステップ、 403:差分処理ステ
ップ、 404:二値化しきい値初期化ステップ、 405:
二値化ステップ、 406:物体検出処理ステップ、 40
7:検出物体数判定ステップ、 408:第1の侵入物体検
出しきい値決定ステップ、 409:二値化しきい値増加
ステップ、 501:映像選択ステップ、 507:検出物体
大きさ判定ステップ、 508:第2の侵入物体検出しき
い値決定ステップ、 509:二値化しきい値増加ステッ
プ、 601:不感帯設定ステップ、 602:二値化ステッ
プ、 701:基準侵入物体領域設定ステップ、 702:検
出物体大きさ判定ステップ、 804:二値化しきい値レ
ベルゲージ、 805:二値化しきい値マーク、 806a,8
06b,806c:第1の侵入物体検出しきい値の候補のマー
ク、 807a,807b,807c:第2の侵入物体検出しきい値
の候補マーク、 1101:TVカメラ、 1102:入力装置、
1103:画像入力I/F、 1104:入力I/F、 1105:画像
メモリ、 1106:ワークメモリ、 1107:CPU、 110
8:プログラムメモリ、 1109:出力I/F、 1110:画像
出力I/F、 111:データバス、 1112:警告灯、 111
3:監視モニタ、1201:入力画像、 1202:基準背景動
画像、 1203:差分画像、 1204:二値化画像、 120
5:差分器、 1206:二値化器。
101: first intruding object detection threshold value determining step, 10
2: First intruding object detection threshold recording step, 103:
Determining a second intruding object detection threshold value; 104: recording a second intruding object detection threshold value; 105: determining the end of a predetermined number of frames; 106: selecting a first intruding object detection threshold value; : Second intruding object detection threshold value selecting step; 108: first and second intruding object detection threshold value difference determining step; 109: third intruding object detection threshold value determining step; 110: intruding object detection Threshold selection step, 111: Image input step, 11
2: difference processing step, 113: binarization processing step,
114: intruding object detection step, 115: intruding object determination step, 116: alarm / monitor display step, 201: intruding object detection threshold selection step, 401: video selection step, 402: image input step, 403: difference processing step 404: Binarization threshold value initialization step, 405:
Binarization step, 406: object detection processing step, 40
7: Detection object number determination step, 408: First intrusion object detection threshold determination step, 409: Binarization threshold increase step, 501: Video selection step, 507: Detection object size determination step, 508: No. 2, an intruding object detection threshold determination step, 509: binarization threshold increasing step, 601: dead zone setting step, 602: binarization step, 701: reference intruding object area setting step, 702: detection object size judgment Step, 804: binarization threshold level gauge, 805: binarization threshold mark, 806a, 8
06b, 806c: candidate mark of first intruding object detection threshold, 807a, 807b, 807c: candidate mark of second intruding object detection threshold, 1101: TV camera, 1102: input device,
1103: Image input I / F, 1104: Input I / F, 1105: Image memory, 1106: Work memory, 1107: CPU, 110
8: Program memory, 1109: Output I / F, 1110: Image output I / F, 111: Data bus, 1112: Warning light, 111
3: Monitoring monitor, 1201: Input image, 1202: Reference background moving image, 1203: Difference image, 1204: Binary image, 120
5: Differentiator, 1206: Binarizer.

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G08B 25/00 510 G08B 25/00 510M Fターム(参考) 5B057 AA19 BA02 CA08 CA12 CA16 CE12 DA06 DC32 5C054 AA02 AA04 FC05 FF06 HA18 5C084 AA02 AA07 AA13 BB04 BB31 CC17 DD11 EE01 EE02 FF27 GG43 GG52 GG56 GG57 GG78 HH10 HH12 HH13 5C087 AA02 AA03 AA23 AA24 AA25 BB03 BB32 BB62 BB74 DD05 EE05 EE07 FF01 FF04 FF19 FF20 GG02 GG08 GG23 GG31 GG66 5L096 AA06 BA02 CA02 EA43 FA54 GA08 JA11 ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI theme coat ゛ (reference) G08B 25/00 510 G08B 25/00 510M F term (reference) 5B057 AA19 BA02 CA08 CA12 CA16 CE12 DA06 DC32 5C054 AA02 AA04 FC05 FF06 HA18 5C084 AA02 AA07 AA13 BB04 BB31 CC17 DD11 EE01 EE02 FF27 GG43 GG52 GG56 GG57 GG78 HH10 HH12 HH13 5C087 AA02 AA03 AA23 AA24 AA25 BB03 BB32. GA08 JA11

Claims (16)

【特許請求の範囲】[Claims] 【請求項1】 撮像装置から得られる画像を、差分法を
適用して監視視野内の侵入物体を検出する監視方法にお
いて、 前記撮像装置からの第1の入力画像と記憶装置に記憶さ
れている基準背景画像との輝度値の第1の差分画像を生
成し、 前記第1の差分画像を所定の二値化しきい値で二値化処
理すると共に、二値化処理した画像のノイズレベルが所
定の値以下となるまで上記二値化しきい値を変化させ、
前記二値化処理した画像のノイズレベルが所定の値以下
になる二値化しきい値を第1の二値化しきい値とし、 前記第1の二値化しきい値に基づいて、侵入物体を検出
することを特徴とする侵入物体検出のためのしきい値を
自動的に決定する侵入物体検出方法。
1. A monitoring method for detecting an intruding object in a monitoring visual field by applying a difference method to an image obtained from an imaging device, wherein the first input image from the imaging device and a storage device are stored in a storage device. A first difference image having a luminance value with respect to a reference background image is generated, the first difference image is binarized with a predetermined binarization threshold, and a noise level of the binarized image is set to a predetermined value. The above-mentioned binarization threshold is changed until the value becomes equal to or less than
A binarization threshold at which the noise level of the binarized image is equal to or less than a predetermined value is set as a first binarization threshold, and an intruding object is detected based on the first binarization threshold. An intruding object detection method for automatically determining a threshold value for detecting an intruding object.
【請求項2】 請求項1記載の侵入物体検出のためのし
きい値を自動的に決定する侵入物体検出方法において、
前記二値化しきい値の変化を、等差的、等比的、あるい
はランダムに変えることを特徴とする侵入物体検出のた
めのしきい値を自動的に決定する侵入物体検出方法。
2. The method for detecting an intruding object according to claim 1, wherein the threshold value for detecting the intruding object is automatically determined.
An intruding object detection method for automatically determining a threshold value for detecting an intruding object, characterized in that a change in the binarization threshold value is changed in an equal, equal or random manner.
【請求項3】請求項2記載の侵入物体検出のためのしき
い値を自動的に決定する侵入物体検出方法において、前
記二値化しきい値を増加させることを特徴とする侵入物
体検出のためのしきい値を自動的に決定する侵入物体検
出方法。
3. An intruding object detection method for automatically determining a threshold value for detecting an intruding object according to claim 2, wherein said binarized threshold value is increased. An intruding object detection method that automatically determines the threshold value.
【請求項4】 請求項2記載の侵入物体検出のためのし
きい値を自動的に決定する侵入物体検出方法において、
前記二値化しきい値を減少させることを特徴とする侵入
物体検出のためのしきい値を自動的に決定する侵入物体
検出方法。
4. The intruding object detection method according to claim 2, wherein the threshold value for detecting the intruding object is automatically determined.
An intruding object detection method for automatically determining a threshold value for detecting an intruding object, wherein the threshold value is reduced.
【請求項5】 請求項1記載の侵入物体検出のためのし
きい値を自動的に決定する侵入物体検出方法において、
前記第1の入力画像は、侵入物体が存在しない画像であ
ることを特徴とする侵入物体検出のためのしきい値を自
動的に決定する侵入物体検出方法。
5. An intruding object detection method according to claim 1, wherein a threshold value for intruding object detection is automatically determined.
The intruding object detection method for automatically determining a threshold value for detecting an intruding object, wherein the first input image is an image having no intruding object.
【請求項6】 請求項1記載の侵入物体検出のためのし
きい値を自動的に決定する侵入物体検出方法において、
更に、 前記撮像装置からの侵人物体を含む第2の入力画像と前
記記憶装置に記憶されている前記基準背景画像との輝度
値の第2の差分画像を生成し、前記第2の差分画像を所
定の二値化しきい値で二値化処理すると共に、二値化処
理した画像の侵入物体の大きさが所定の大きさ以下とな
るまで前記二値化しきい値を変化させ、前記二値化処理
した画像の侵入物体の大きさが所定の大きさ以下となる
二値化しきい値を第2の二値化しきい値とし、 前記第1と第2の二値化しきい値を含み、前記第1と第
2の二値化しきい値の間に第3の二値化しきい値を設定
し、 該第3の二値化しきい値に基づいて、侵入物体を検出す
ることを特徴とする侵入物体検出のためのしきい値を自
動的に決定する侵入物体検出方法。
6. The method for detecting an intruding object according to claim 1, wherein the threshold value for detecting the intruding object is automatically determined.
Further, a second difference image of a luminance value between a second input image including the invading human body from the imaging device and the reference background image stored in the storage device is generated, and the second difference image is generated. At a predetermined binarization threshold, and changing the binarization threshold until the size of the intruding object of the binarized image is equal to or smaller than a predetermined size, A binarization threshold at which the size of the intruding object of the binarized image is equal to or smaller than a predetermined size as a second binarization threshold, including the first and second binarization thresholds, A third threshold value is set between the first and second threshold values, and an intruder is detected based on the third threshold value. An intruding object detection method that automatically determines a threshold for object detection.
【請求項7】 請求項6記載の侵入物体検出のためのし
きい値を自動的に決定する侵入物体検出方法において、
前記第1と第2のしきい値設定に際し、二値化しきい値
の変化を等差的、等比的、あるいはランダムに変えるこ
とを特徴とする侵入物体検出のためのしきい値を自動的
に決定する侵入物体検出方法。
7. The method for detecting an intruding object according to claim 6, wherein the threshold value for detecting the intruding object is automatically determined.
When setting the first and second thresholds, the threshold for intruding object detection is characterized in that the change of the binarization threshold is changed in an isometric, isometric, or random manner. The intruding object detection method decided on.
【請求項8】 請求項7記載の侵入物体検出のためのし
きい値を自動的に決定する侵入物体検出方法において、
前記二値化しきい値を増加させることを特徴とする侵入
物体検出のためのしきい値を自動的に決定する侵入物体
検出方法。
8. An intruding object detection method according to claim 7, wherein a threshold value for automatically detecting an intruding object is determined.
An intruding object detection method for automatically determining a threshold value for detecting an intruding object, wherein the threshold value is increased.
【請求項9】 請求項7記載の侵入物体検出のためのし
きい値を自動的に決定する侵入物体検出方法において、
前記二値化しきい値を減少させることを特徴とする侵入
物体検出のためのしきい値を自動的に決定する侵入物体
検出方法。
9. The method for detecting an intruding object according to claim 7, wherein the threshold value for detecting the intruding object is automatically determined.
An intruding object detection method for automatically determining a threshold value for detecting an intruding object, wherein the threshold value is reduced.
【請求項10】 請求項6記載の侵入物体検出のための
しきい値を自動的に決定する侵入物体検出方法におい
て、侵入物体の所定の大きさを侵入物体の外接図形で表
わすことを特徴とする侵入物体検出のためのしきい値を
自動的に決定する侵入物体検出方法。
10. The intruding object detection method according to claim 6, wherein a predetermined size of the intruding object is represented by a circumscribed figure of the intruding object. An intruding object detection method for automatically determining a threshold value for detecting a moving intruding object.
【請求項11】 請求項6記載の侵入物体検出のための
しきい値を自動的に決定する侵入物体検出方法におい
て、更に、 前記第1の入力画像と前記第2の入力画像からそれぞれ
得られる第1と第3の二値化しきい値をそれぞれ記録
し、 前記二値化処理を所定フレーム数実行し、それぞれの二
値化しきい値を記録し、前記記録された複数の二値化し
きい値の中から所定の第1と第2の二値化しきい値を決
定することを特徴とする侵入物体検出のためのしきい値
を自動的に決定する侵入物体検出方法。
11. The intruding object detection method according to claim 6, wherein a threshold value for automatically detecting an intruding object is further obtained from the first input image and the second input image, respectively. First and third binarization thresholds are respectively recorded, the binarization process is executed for a predetermined number of frames, each binarization threshold is recorded, and the plurality of recorded binarization thresholds are recorded. A method for automatically determining a threshold value for detecting an intruding object, wherein the first and second binarizing threshold values are determined from the following.
【請求項12】 請求項11記載の侵入物体検出のため
のしきい値を自動的に決定する侵入物体検出方法の前記
二値化しきい値の決定において、前記第1の二値化しき
い値は、最大の二値化しきい値を決定し、前記第2の二
値化しきい値は、最小の二値化しきい値決定することを
特徴とする侵入物体検出のためのしきい値を自動的に決
定する侵入物体検出方法。
12. The method for automatically determining a threshold value for detecting an intruding object according to claim 11, wherein the first threshold value is determined by the first threshold value. Automatically determining a threshold value for detecting an intruding object, wherein the second binary threshold value is determined as a minimum binary threshold value. Intrusion object detection method to be determined.
【請求項13】 請求項6記載の侵入物体検出のための
しきい値を自動的に決定する侵入物体検出方法におい
て、前記第1の差分画像を所定の二値化しきい値での二
値化処理は、更に、不感帯領域を設けて、該設けられた
不感帯領域では二値化処理を行わないことを特徴とする
侵入物体検出のためのしきい値を自動的に決定する侵入
物体検出方法。
13. The intruding object detection method for automatically determining a threshold value for detecting an intruding object according to claim 6, wherein the first difference image is binarized by a predetermined binarization threshold value. The processing further includes automatically setting a threshold value for detecting an intruding object, wherein a dead zone is provided and no binarization process is performed in the provided dead zone.
【請求項14】 請求項6記載の侵入物体検出のための
しきい値を自動的に決定する侵入物体検出方法におい
て、更に、前記第1と第2の二値化しきい値の差を求
め、前記第1と第2の二値化しきい値の差が所定値以下
の場合、異常と判定するステップを有することを特徴と
する侵入物体検出のためのしきい値を自動的に決定する
侵入物体検出方法。
14. The intruding object detection method for automatically determining a threshold value for detecting an intruding object according to claim 6, further comprising obtaining a difference between the first and second binarization threshold values. When the difference between the first and second binarization thresholds is equal to or less than a predetermined value, it is determined that the threshold is abnormal. Detection method.
【請求項15】 差分法を適用して撮像装置から得られ
る画像から監視視野内の侵入物体を検出する侵入物体監
視装置において、 第1の入力画像を出力する撮像装置と、 基準背景画像を記憶する第1の記憶装置と、 前記第1の入力画像と前記基準背景画像との輝度値の第
1の差分画像を生成する処理ユニットと、 前記第1の差分画像を所定の二値化しきい値で二値化処
理し、該二値化処理した画像のノイズ成分が所定の値以
下となるまで前記二値化しきい値を変化させ、前記二値
化処理した画像のノイズ成分が所定の値以下となる二値
化しきい値を第1の二値化しきい値として出力する第1
の二値化処理ユニットと、 出力された前記第1の二値化しきい値に基づいて、侵入
物体を検出する検出処理ユニットとを備えることを特徴
とする侵入物体監視装置。
15. An intruding object monitoring apparatus for detecting an intruding object in a monitoring field of view from an image obtained from an imaging apparatus by applying a difference method, wherein the imaging apparatus outputs a first input image and a reference background image is stored. A first storage device, a processing unit for generating a first difference image of a luminance value between the first input image and the reference background image, and a predetermined threshold for binarizing the first difference image The binarization process is performed, and the binarization threshold is changed until the noise component of the binarized image is equal to or less than a predetermined value, and the noise component of the binarized image is equal to or less than a predetermined value. A first binarizing threshold value to be output as a first binarizing threshold value
And a detection processing unit for detecting an intruding object based on the output first binarization threshold value.
【請求項16】 請求項15記載の侵入物体監視装置に
おいて、前記撮像装置は、侵入物体を含む第2の入力画
像を出力し、 前記撮像装置は、更に、前記第2の入力画像と前記第1
の記憧装置に記憶されている前記基準背景画像との輝度
値の第2の差分画像を生成する処理ユニットと、 前記第2の差分画像を所定の二値化しきい値で二値化処
理し、二値化処理した画像の侵入物体の大きさが所定の
大きさ以下となるまで前記二値化しきい値を変化させ、
前記二値化処理した画像の侵入物体の大きさが所定の大
きさ以下となる二値化しきい値を第2の二値化しきい値
として出力する第2の二値化処理ユニットと、 前記第1と第2の二値化しきい値を含み、これら第1と
第2の二値化しきい値のしきい値の間に第3の二値化し
きい値を設定するしきい値設定ユニットとを備え、 前記検出処理ユニットは、前記第2の二値化しきい値に
基づいて侵入物体を検出することを特徴とする侵入物体
監視装置。
16. The intruding object monitoring device according to claim 15, wherein the imaging device outputs a second input image including the intruding object, and the imaging device further outputs the second input image and the second input image. 1
A processing unit for generating a second difference image of a luminance value with respect to the reference background image stored in the storage device, and performing a binarization process on the second difference image with a predetermined binarization threshold value Changing the binarization threshold until the size of the intruding object of the binarized image is equal to or smaller than a predetermined size,
A second binarization processing unit that outputs, as a second binarization threshold, a binarization threshold at which the size of the intruding object of the binarized image is equal to or smaller than a predetermined size; A threshold setting unit that includes a first and second binarization threshold, and sets a third binarization threshold between the first and second binarization thresholds. The intrusion object monitoring device, wherein the detection processing unit detects an intrusion object based on the second binarization threshold.
JP2001334867A 2000-10-31 2001-10-31 Object detection method, object detection apparatus, and object detection program Expired - Fee Related JP3625442B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001334867A JP3625442B2 (en) 2000-10-31 2001-10-31 Object detection method, object detection apparatus, and object detection program

Applications Claiming Priority (3)

Application Number Priority Date Filing Date Title
JP2000-333125 2000-10-31
JP2000333125 2000-10-31
JP2001334867A JP3625442B2 (en) 2000-10-31 2001-10-31 Object detection method, object detection apparatus, and object detection program

Publications (2)

Publication Number Publication Date
JP2002218443A true JP2002218443A (en) 2002-08-02
JP3625442B2 JP3625442B2 (en) 2005-03-02

Family

ID=26603176

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001334867A Expired - Fee Related JP3625442B2 (en) 2000-10-31 2001-10-31 Object detection method, object detection apparatus, and object detection program

Country Status (1)

Country Link
JP (1) JP3625442B2 (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004079681A1 (en) * 2003-03-07 2004-09-16 Quality Labs. Corporation Monitor unit
JP2005160017A (en) * 2003-10-30 2005-06-16 Canon Inc Image motion detecting apparatus, image motion detecting method, program and recording medium
JP2007213191A (en) * 2006-02-08 2007-08-23 Fujitsu Ltd Motion detection program, motion detection method, motion detection device
JP2007279970A (en) * 2006-04-05 2007-10-25 Toyota Motor Corp Object detection apparatus
JP2009177336A (en) * 2008-01-22 2009-08-06 Tokyo Univ Of Science Program, method and apparatus for generating moving image for supporting to determine change between images
JP2010266982A (en) * 2009-05-13 2010-11-25 Sony Corp Image processing apparatus and method, as well as program
JP2012037492A (en) * 2010-08-11 2012-02-23 Toshiba Corp Water leakage detection apparatus
JP2013101612A (en) * 2011-11-02 2013-05-23 Eads Deutschland Gmbh Method and device for detecting moving object in video image sequence

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004079681A1 (en) * 2003-03-07 2004-09-16 Quality Labs. Corporation Monitor unit
JP2005160017A (en) * 2003-10-30 2005-06-16 Canon Inc Image motion detecting apparatus, image motion detecting method, program and recording medium
JP4612803B2 (en) * 2003-10-30 2011-01-12 キヤノン株式会社 Image motion detection device, image motion detection method, program, and recording medium
JP2007213191A (en) * 2006-02-08 2007-08-23 Fujitsu Ltd Motion detection program, motion detection method, motion detection device
JP4719584B2 (en) * 2006-02-08 2011-07-06 富士通株式会社 Motion detection program, motion detection method, motion detection device,
JP2007279970A (en) * 2006-04-05 2007-10-25 Toyota Motor Corp Object detection apparatus
JP2009177336A (en) * 2008-01-22 2009-08-06 Tokyo Univ Of Science Program, method and apparatus for generating moving image for supporting to determine change between images
JP2010266982A (en) * 2009-05-13 2010-11-25 Sony Corp Image processing apparatus and method, as well as program
JP2012037492A (en) * 2010-08-11 2012-02-23 Toshiba Corp Water leakage detection apparatus
JP2013101612A (en) * 2011-11-02 2013-05-23 Eads Deutschland Gmbh Method and device for detecting moving object in video image sequence

Also Published As

Publication number Publication date
JP3625442B2 (en) 2005-03-02

Similar Documents

Publication Publication Date Title
KR100476019B1 (en) Monitoring method for detecting an intruding object and monitoring apparatus therefor
US6754367B1 (en) Method and apparatus for automatically detecting intrusion object into view of image pickup device
US7868772B2 (en) Flame detecting method and device
KR102194499B1 (en) Apparatus for CCTV Video Analytics Based on Object-Image Recognition DCNN and Driving Method Thereof
US7982774B2 (en) Image processing apparatus and image processing method
US20190199898A1 (en) Image capturing apparatus, image processing apparatus, control method, and storage medium
KR100659781B1 (en) Smoke Detecting Method and System using CCD Image
JP2012089929A (en) Object detection apparatus, object detection method, monitoring camera system and program
US10949984B2 (en) Object tracking system and method thereof
KR102127276B1 (en) The System and Method for Panoramic Video Surveillance with Multiple High-Resolution Video Cameras
EP2000998B1 (en) Flame detecting method and device
JP2001005974A (en) Method and device for recognizing object
JP2002218443A (en) Intruding object detecting method for automatically determining threshold for intruding object detection and intruding object monitor
JP5950628B2 (en) Object detection apparatus, object detection method, and program
US9064158B2 (en) Vehicle surroundings monitoring device
JP2001160146A (en) Method and device for recognizing image
JP5710230B2 (en) Monitoring system and monitoring method
JP2002157598A (en) System for detecting invader
JP3736836B2 (en) Object detection method, object detection apparatus, and program
JP2002279429A (en) Method for detecting infiltrating object
WO2022198507A1 (en) Obstacle detection method, apparatus, and device, and computer storage medium
JP2667973B2 (en) Mobile monitoring device
JP2000125288A (en) Object tracking method and object tracking device
JP6155106B2 (en) Image sensor
JP2008040724A (en) Image processing device and image processing method

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040906

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20041105

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041129

R150 Certificate of patent or registration of utility model

Ref document number: 3625442

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20071210

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20081210

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091210

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091210

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101210

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111210

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111210

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121210

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20121210

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20131210

Year of fee payment: 9

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees