JPH07113973B2 - Image processing device, moving object detection device, and image processing method - Google Patents

Image processing device, moving object detection device, and image processing method

Info

Publication number
JPH07113973B2
JPH07113973B2 JP1257289A JP25728989A JPH07113973B2 JP H07113973 B2 JPH07113973 B2 JP H07113973B2 JP 1257289 A JP1257289 A JP 1257289A JP 25728989 A JP25728989 A JP 25728989A JP H07113973 B2 JPH07113973 B2 JP H07113973B2
Authority
JP
Japan
Prior art keywords
image
background image
change
input image
difference
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.)
Expired - Lifetime
Application number
JP1257289A
Other languages
Japanese (ja)
Other versions
JPH03118677A (en
Inventor
政雄 高藤
忠明 北村
邦行 菊地
紀夫 田中
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 Ltd
Original Assignee
Hitachi Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP1257289A priority Critical patent/JPH07113973B2/en
Publication of JPH03118677A publication Critical patent/JPH03118677A/en
Publication of JPH07113973B2 publication Critical patent/JPH07113973B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Description

【発明の詳細な説明】 [産業上の利用分野] 本発明は、画像処理における背景画像更新方法、およ
び、移動体検出装置や監視装置等の画像処理装置に関す
る。
Description: TECHNICAL FIELD The present invention relates to a background image updating method in image processing, and an image processing apparatus such as a moving object detection apparatus or a monitoring apparatus.

[従来の技術] 近年、自動車交通等の発達とともに、高速道路等での渋
滞等が問題となっている。
[Prior Art] With the recent development of automobile traffic and the like, traffic congestion on expressways has become a problem.

このような状態を少しでも解消する目的で車両の流れを
テレビカメラを用いて計測し、利用者に情報を与える交
通流計測技術が開発されつつある。
For the purpose of eliminating such a situation as much as possible, a traffic flow measurement technique is being developed in which the flow of a vehicle is measured using a television camera and information is given to the user.

このような、交通流計測技術等の従来の移動体検技術に
おいては、背景画像を明るさの変化に追従するように更
新し、その背景画像と入力画像との差分画像から車両等
を抽出し、交通流を計測している。この種の技術につい
ては、文献(電子通信学会技術研究会報告IE76−84、19
77年2月、PP.67−78)において論じられている。
In such conventional mobile body inspection technology such as traffic flow measurement technology, the background image is updated so as to follow the change in brightness, and the vehicle or the like is extracted from the difference image between the background image and the input image. , Measuring traffic flow. For this kind of technology, see the IEICE Technical Committee Report IE76-84, 19
February 1977, PP.67-78).

該文献の技術は、以下の式により基準輝度を求め、それ
を基に背景を更新することに特徴がある。
The technique of the document is characterized in that the reference brightness is obtained by the following formula and the background is updated based on the reference brightness.

|I(t−1)−I(t)|α ならば(t)=(t−1)・(1−ε) +I(t)・ε …(1) |I(t−1)−I(t)|>α ならば (t)=(t−1) …(2) ただし、:指数平均に基づく基準輝度値 α:推定基準輝度値の変化幅 ε:指数平均の係数 (1)式は、時刻t−1での基準輝度と時刻tの輝度値
I(t)の差が所定値α以内の場合は、天候等の変化に
伴う道路部分の輝度変化と考えられるので、指数平均式
によって基準濃度値を算出することを示し、(2)式は
両者の差がαを越える場合には、I(t)が車両の通過
に伴う輝度変化と考えられるので、基準輝度値を変化さ
せないでおくことを示す。
| I (t−1) −I (t) | α, then (t) = (t−1) · (1−ε) + I (t) · ε (1) | I (t−1) −I If (t) |> α, then (t) = (t−1) (2) where: Reference luminance value based on exponential average α: Change width of estimated reference luminance value ε: Coefficient of exponential average (1) Formula If the difference between the reference brightness at time t−1 and the brightness value I (t) at time t is within a predetermined value α, it is considered that the brightness of the road portion changes due to changes in weather conditions, etc. It is shown that the reference density value is calculated by the equation (2), and when the difference between the two exceeds α, I (t) is considered to be the change in brightness accompanying the passage of the vehicle, and therefore the reference brightness value is not changed. Indicates that you want to leave.

すなわち、背景の更新における、車両の通過に伴う輝度
変化の影響を排除しようとするものである。
That is, it is intended to eliminate the influence of the change in the brightness due to the passage of the vehicle in the background update.

[発明が解決しようとする課題] 前記従来技術では、前記(2)式から分かるように、一
定時間以上車両が存在する渋滞時等には、車両領域は古
い背景画像がそのまま保存されることになり、背景画像
の更新がうまくいかないという問題がある。
[Problems to be Solved by the Invention] In the above-described conventional technology, as can be seen from the above equation (2), an old background image is stored in the vehicle area as it is during a traffic jam where a vehicle exists for a certain period of time or the like. Therefore, there is a problem that the background image is not updated properly.

すなわち、従来技術は、渋滞時における外部環境の明る
さの変化に追従した背景画像の更新について配慮されて
おらず、薄暮時のように明るさが時々変化する場合に渋
滞が発生すると、背景画像の更新が行われず、車両の検
出に失敗することがあるという問題があった。
That is, the conventional technology does not consider updating the background image that follows changes in the brightness of the external environment during traffic jams, and when traffic jams occur when the brightness changes occasionally, such as during dusk, the background image However, there is a problem that the vehicle detection may fail because the update is not performed.

本発明は、移動体検出装置にみられる渋滞時等の特殊状
態においても、外部環境に追従した背景画像を得ること
のできる背景更新方法、および、画像処理装置を提供す
ることを目的とする。
It is an object of the present invention to provide a background updating method and an image processing device that can obtain a background image that follows the external environment even in a special state such as a traffic jam that is seen in a moving object detection device.

[課題を解決するための手段] 前記目的の達成のために、本発明は、背景画像と入力画
像とに基づいて、新たな背景画像を求める背景画像更新
方法であって、前記背景画像と前記入力画像とを比較
し、所定値より差の小さい領域における入力画像領域と
背景画像領域との変化を求め、求めた変化を用いて、新
たな背景画像を求めることを特徴とする背景画像更新方
法を提供する。
[Means for Solving the Problem] In order to achieve the above object, the present invention is a background image updating method for obtaining a new background image based on a background image and an input image, wherein the background image and the background image A background image updating method characterized by obtaining a change between an input image area and a background image area in an area having a difference smaller than a predetermined value by comparing the input image and using the obtained change to obtain a new background image. I will provide a.

また、前記目的達成のために、本発明は、背景画像と入
力画像とを比較する手段と、比較の結果、所定値より差
の小さい領域における、入力画像領域と背景画像領域と
の変化を求める手段と、求めた変化を用いて新たな背景
画像を求め、背景画像を更新する手段と、を有すること
を特徴とする画像処理装置を提供する。
To achieve the above object, the present invention provides a means for comparing a background image with an input image, and as a result of the comparison, obtains a change between the input image area and the background image area in an area having a difference smaller than a predetermined value. There is provided an image processing apparatus comprising: a means and a means for obtaining a new background image by using the obtained change and updating the background image.

また、本発明は、背景画像と入力画像とに基づいて新た
な背景画像を生成し、背景画像を更新する手段と、背景
画像と入力画像とを比較する手段と、比較の結果、所定
値より差の小さい領域における、入力画像領域と背景画
像領域との変化を求める手段と、比較の結果、所定の値
より差の大きい領域の背景画像に前記求めた変化を施す
手段と、前記新たな背景画像を生成し、背景画像を更新
する手段が使用する入力画像のうち、前記所定の値より
差の大きい領域の入力画像を前記求めた変化を施した画
像に置き換える手段と、を有することを特徴とする画像
処理装置を提供する。
Further, the present invention is to generate a new background image based on the background image and the input image, to update the background image, a means to compare the background image and the input image, the result of the comparison, from the predetermined value A means for obtaining a change between the input image area and the background image area in an area having a small difference; a means for applying the obtained change to a background image of an area having a difference larger than a predetermined value as a result of the comparison; and the new background. Among the input images used by the means for generating an image and updating the background image, a means for replacing the input image in an area having a larger difference than the predetermined value with the image subjected to the obtained change. An image processing device is provided.

さらに、また、本発明は、背景画像gと入力画像fとに
基づいて新たな背景画像を生成する手段と、背景画像と
入力画像とを比較する手段と、比較の結果、所定値より
差の小さい領域1における、入力画像領域f1と背景画像
領域g1との変化率rを求める手段と、該変化率rと、比
較の結果、所定の値より差の大きい領域2の背景画像g2
と、所定値より差の小さい領域の入力画像f1と、所定数
A(0≦A≦1)とを用いた A×(f1+r×g2)+(1−A)×g の演算により、新たな背景画像を求める手段と、を有す
ることを特徴とする画像処理装置を提供する。
Furthermore, according to the present invention, a means for generating a new background image based on the background image g and the input image f, a means for comparing the background image and the input image, and a result of the comparison, a difference from a predetermined value is determined. in small region 1, the input image area f 1 and the background image and means for determining a rate of change r of the region g 1, and said change rate r, the result of the comparison, the background image g 2 large region 2 of the difference than a predetermined value
And an input image f 1 in an area having a smaller difference than a predetermined value and a predetermined number A (0 ≦ A ≦ 1), A × (f 1 + r × g 2 ) + (1-A) × g Accordingly, there is provided an image processing device, characterized in that it has means for obtaining a new background image.

ところで、前式 A×(f1+Γ×g2)+(1−A)×g は、前記領域1においては A×(f1+(1−A)×g1 により、前記領域2においては A×Γ×g2+(1−A)×g2 により、新たな背景画像を求めることを示す。By the way, the above formula A × (f 1 + Γ × g 2 ) + (1-A) × g is given by A × (f 1 + (1-A) × g 1 in the region 1 and It shows that a new background image is obtained by A × Γ × g 2 + (1-A) × g 2 .

なお、前記変化として、前記入力画像および前記背景画
像のそれぞれの、最大、最小濃度の差または平均濃度ま
たは画像中の2つのピーク濃度の差より求めた明るさの
変化を用いることが好ましい。
As the change, it is preferable to use a change in brightness obtained from the difference between the maximum and minimum densities or the average density of each of the input image and the background image or the difference between two peak densities in the image.

また、本発明は、前記画像処理装置であって、 前記背景画像と入力画像とにより移動体を検出する手段
を有することを特徴とする移動体検出装置を提供する。
The present invention also provides the moving object detecting device, which is the image processing device, further comprising means for detecting a moving object based on the background image and the input image.

[作用] 本発明に係る背景画像更新方法によれば、背景画像と入
力画像との比較により、所定値より差の小さい領域にお
ける入力画像領域と背景画像領域との変化を求め、そし
て、その変化を用いることにより新たな背景画像を求め
る。
[Operation] According to the background image updating method of the present invention, a change between the input image area and the background image area in an area having a smaller difference than a predetermined value is obtained by comparing the background image and the input image, and the change is obtained. To obtain a new background image.

また、本発明に係る画像処理装置によれば、背景画像と
入力画像とは比較され、比較の結果、所定値より差の小
さい領域における、入力画像領域と背景画像領域との変
化が求められる。そして、その変化を用いることにより
新たな背景画像が求められる。
Further, according to the image processing apparatus of the present invention, the background image and the input image are compared with each other, and as a result of the comparison, a change between the input image area and the background image area in an area having a difference smaller than a predetermined value is obtained. Then, a new background image is obtained by using the change.

また、本発明に係る画像処理装置によれば、背景画像と
入力画像とは比較され、比較の結果、所定値より差の小
さい領域における、入力画像領域と背景画像領域との変
化率を求められる。そして、比較の結果、所定の値より
差の大きい領域の背景画像が前記変化を施され、入力画
像のうち、前記所定の値より差の大きい領域の入力画像
として置き換えられる。その後、その、入力画像と背景
画像とに基づいて新たな背景画像が生成される。
Further, according to the image processing apparatus of the present invention, the background image and the input image are compared, and as a result of the comparison, the change rate between the input image area and the background image area in the area where the difference is smaller than the predetermined value is obtained. . Then, as a result of the comparison, the background image in the area having a larger difference than the predetermined value is subjected to the change, and is replaced as the input image in the area having the larger difference than the predetermined value in the input image. Then, a new background image is generated based on the input image and the background image.

さらに、また、本発明に係る画像処理装置によれば、背
景画像gと入力画像fとは比較され、比較の結果、所定
値より差の小さい領域1における、入力画像領域と背景
画像領域との変化率rが求められる。そして、該変化率
rと、比較の結果が所定の値より差の大きい領域2の背
景画像g2と、所定値より差の小さい領域の入力画像f
1と、所定数A(0≦A≦1)とを用いた A×(f1+Γ×g2)+(1−A)×g の演算により、新たな背景画像が求められる。
Furthermore, according to the image processing apparatus of the present invention, the background image g and the input image f are compared, and as a result of the comparison, the input image area and the background image area in the area 1 where the difference is smaller than a predetermined value are compared. The rate of change r is determined. Then, the change rate r, the background image g 2 of the area 2 in which the comparison result has a larger difference than a predetermined value, and the input image f of the area having a smaller difference than the predetermined value.
A new background image is obtained by the calculation of A × (f 1 + Γ × g 2 ) + (1−A) × g using 1 and a predetermined number A (0 ≦ A ≦ 1).

また、本発明に係る移動体検出装置によれば、前記した
背景画像と入力画像とにより移動体が検出される。
Further, according to the moving body detection device of the present invention, the moving body is detected from the background image and the input image described above.

以上のように、本発明は、背景の明るさ等の変化率はほ
ぼ一定であるという実験結果に基づいて、入力画像と背
景画像の対応する背景領域との明るさの変化率に基づい
て、入力画像の移動体領域の明るさ等の変化の補正を行
うことにより、最適な背景画像を作成するようにしたも
のである。
As described above, the present invention is based on the experimental result that the rate of change in the background brightness and the like is substantially constant, based on the rate of change in the brightness between the input image and the corresponding background area of the background image, An optimum background image is created by correcting the change in the brightness of the moving object area of the input image.

すなわち、本発明によれば、入力画像と背景画像との着
目した領域の差を求め、ある値を用いて差の大きい領域
(車両等移動体の領域)と差の小さい領域(路面等背景
の領域)とに分離し、入力画像および背景画像の背景に
対応する領域の明るさ等の変化の比から、入力画像の移
動体に対応する領域の背景の明るさ等を推定することに
より、補正入力画像を求め、この補正入力画像と背景画
像を用いて、新たな背景画像を求めるものである。
That is, according to the present invention, the difference between the areas of interest between the input image and the background image is calculated, and a certain value is used to determine the area with a large difference (the area of a moving body such as a vehicle) and the area with a small difference (the background of a road surface, etc.). Area) and correct it by estimating the background brightness etc. of the area corresponding to the moving body of the input image from the ratio of the change in brightness etc. of the area corresponding to the background of the input image and the background image. An input image is obtained, and a new background image is obtained using the corrected input image and the background image.

したがって、入力画像の部分的な明るさの急激な変化
(ノイズ等含む)にも影響されずに、ゆるやかな明るさ
等の変化に追従して、渋滞時等の場合にも、最適な背景
画像が作成できるため、車両等の抽出が良好に実施でき
る。
Therefore, even if the brightness of the input image is not affected by abrupt changes in brightness (including noise), it is possible to follow the changes in brightness, etc. Can be created, so that the vehicle and the like can be satisfactorily extracted.

[実施例] 以下、本発明の一実施例を、移動体検出装置を例にとり
説明する。
[Embodiment] An embodiment of the present invention will be described below by taking a moving body detection device as an example.

はじめに、本実施例に係る移動体検出装置の概要につい
て説明する。
First, an outline of the moving body detection device according to the present embodiment will be described.

第7図に、本実施例に係る移動体検出装置の構成を示
す。
FIG. 7 shows the configuration of the moving body detection apparatus according to this embodiment.

本実施例に係る移動体検出装置は、画像を取り込むカメ
ラ101、取り込まれた画像を処理する画像処理部100、装
置全体の制御や画像処理部100の処理結果を処理するCPU
112、画像や種々の情報を表示するモニタ111を有する。
The moving object detection device according to the present embodiment includes a camera 101 that captures an image, an image processing unit 100 that processes the captured image, a CPU that controls the entire device and processes the processing result of the image processing unit 100.
112, a monitor 111 for displaying images and various information.

画像処理部100は、A/D変換器102、画像メモリ103、画像
間演算回路104、2値化回路105、2値画像反転回路10
6、濃度頻度分布算出回路107、ヒストグラムメモリ10
8、線形結合回路109、D/A変換器110を備えている。
The image processing unit 100 includes an A / D converter 102, an image memory 103, an inter-image operation circuit 104, a binarization circuit 105, and a binary image inversion circuit 10.
6, concentration frequency distribution calculation circuit 107, histogram memory 10
8. A linear combination circuit 109 and a D / A converter 110 are provided.

画像メモリ103は、例えば256×256画素の濃淡画像メモ
リがk枚G1〜Gk備わっており、また、必要に応じて2値
画像を格納する2値画像メモリをl枚B1〜Bl備える。
The image memory 103 has, for example, k gray-scale image memories G 1 to G k of 256 × 256 pixels, and 1 binary image memory B 1 to B l for storing binary images as necessary. Prepare

以下その動作について説明する。The operation will be described below.

CPU112からの指令に基づいて、画像処理部100は、カメ
ラ101によって撮影された画像信号を取込み、A/D変換器
102によって、例えば128階調の濃度データ等に変換して
画像メモリ103に記憶する。
Based on a command from the CPU 112, the image processing unit 100 captures an image signal captured by the camera 101, and an A / D converter.
The image data is converted into density data of 128 gradations by the 102 and stored in the image memory 103.

さらに、該画像処理部100は、CPU112の指令に基づい
て、画像メモリ103のデータを用いて、画像間演算、2
値化、2値画像反転、濃度頻度分布算出、線形結合演算
等の処理を、それぞれ画像間演算回路104、2値化回路1
05、2値画像反転回路106、濃度頻度分布算出回路107、
線形結合演算回路109等で処理し、必要に応じて処理結
果等をD/A変換器110によって映像信号に変換してモニタ
111に表示する。
Further, the image processing unit 100 uses the data in the image memory 103 based on a command from the CPU 112 to perform inter-image calculation, 2
The inter-image calculation circuit 104 and the binarization circuit 1 perform processes such as binarization, binary image inversion, density frequency distribution calculation, and linear combination calculation, respectively.
05 binary image inversion circuit 106, density frequency distribution calculation circuit 107,
It is processed by the linear combination calculation circuit 109, etc., and if necessary, the processing result is converted to a video signal by the D / A converter 110 and monitored.
Display at 111.

なお、ヒストグラムメモリ108は頻度分布等を記憶する
ためのメモリである。
The histogram memory 108 is a memory for storing the frequency distribution and the like.

次に、背景画像を用いた移動体(例えば車両)抽出およ
び移動体の流れの計測処理の概略について説明する。
Next, an outline of a moving body (for example, vehicle) extraction using a background image and a flow measuring process of the moving body will be described.

第8図に、この処理の流れを示す。FIG. 8 shows the flow of this processing.

まず、画像をカメラ101から入力し(ステップ120)、後
述する移動体抽出処理(ステップ121)を経て、計測処
理(ステップ122)を行う。
First, an image is input from the camera 101 (step 120), a moving body extraction process (step 121) described later is performed, and then a measurement process (step 122) is performed.

その後、あらかじめ定められている背景画像更新間隔基
準時間t1と前回背景を更新した時刻からの経過時間tを
比較し、経過時間が大きくなっていれば背景画像更新処
理(ステップ124)を行うと共に、時間tを初期化する
(ステップ125)。
After that, the predetermined background image update interval reference time t1 is compared with the elapsed time t from the time when the background was updated last time, and if the elapsed time becomes large, the background image update processing (step 124) is performed, The time t is initialized (step 125).

経過時間が背景画像更新間隔基準時間t1に達していなけ
れば、時間tをインクリメントする(ステップ126)。
If the elapsed time has not reached the background image update interval reference time t1, the time t is incremented (step 126).

なお、以上説明したように、背景画像の更新、移動体の
抽出および流れの計測はリアルタイムで行われる。
As described above, the background image is updated, the moving body is extracted, and the flow is measured in real time.

ここで、前述した移動体抽出(以下、移動体が車両の場
合について述べる)の手法について説明する。
Here, a method of extracting the moving body described above (hereinafter, the case where the moving body is a vehicle) will be described.

第9図に、この移動体抽出の処理概念図を示す。FIG. 9 shows a conceptual diagram of this moving body extraction processing.

この処理では、まず、画像処理部が、入力画像1と背景
画像2との差分画像3を求め、これを所定のしきい値で
2値化し、2値画像4を作成する。その後、本実施例で
は、この画像の中から1車線分の車両だけを抽出し30、
この画像について、車両の台数や個別の車速等を車線毎
に、CPU112が計測する31。
In this process, first, the image processing unit obtains a difference image 3 between the input image 1 and the background image 2, binarizes the difference image 3 with a predetermined threshold value, and creates a binary image 4. After that, in the present embodiment, only one lane worth of vehicles are extracted from this image 30,
For this image, the CPU 112 measures the number of vehicles, individual vehicle speeds, etc. for each lane31.

次に、本発明の中心部分である背景画像更新処理部分の
詳細を説明する。
Next, details of the background image update processing portion, which is the central portion of the present invention, will be described.

第1図に、第1の背景画像更新処理部分の機能図を示
す。
FIG. 1 shows a functional diagram of the first background image update processing part.

まず、カメラよりの入力画像f(n)1がA/D変換の後
画像メモリに格納されると、画像間演算回路は、あらか
じめ画像メモリに格納されている背景画像g(n−1)
2との差分画像を求める3。次に、2値化回路は、この
差分画像を、所定のしきい値εで2値化し、2値画像4
を作成する。すなわち、差分値がεより大きい領域を
“1"(第1図中、斜線部分)、小さい領域を“0"(白い
部分)で表わす。
First, when the input image f (n) 1 from the camera is stored in the image memory after A / D conversion, the inter-image calculation circuit causes the background image g (n-1) stored in the image memory in advance.
3. Find the difference image from 2. Next, the binarization circuit binarizes this difference image with a predetermined threshold value ε, and the binary image 4
To create. That is, an area where the difference value is larger than ε is represented by “1” (hatched portion in FIG. 1), and a small area is represented by “0” (white portion).

次に、2値画像反転回路は、該2値画像4の各画素の値
を反転させた(“0"→“1"、“1"→“0")反転2値画像
5を作成する(斜線部分の値“1"、白部分の値“0")。
Next, the binary image inversion circuit inverts the value of each pixel of the binary image 4 (“0” → “1”, “1” → “0”) to create an inverted binary image 5 ( The shaded value is "1" and the white value is "0".

ここで、f1(n)は入力画像f(n)1の路面領域画像
6を、f2(n)は車両領域画像27を表わすとすると、 |f(n)−g(n−1)|εならば f(n)=f1(n) …(3) |f(n)−g(n−1)|>εならば f(n)=f2(n) …(4) よって、f(n)=f1(n)+f2(n) …(5) そこで、まず、路面領域画像f1(n)6を、入力画像f
(n)1と該反転2値画像5を、画像間演算回路中104
の掛算回路15で乗算して求める。
Here, f 1 (n) represents the road surface area image 6 of the input image f (n) 1, and f 2 (n) represents the vehicle area image 27. | f (n) -g (n-1) If | ε, then f (n) = f 1 (n) (3) | f (n) -g (n-1) |> ε then f (n) = f 2 (n) (4) , F (n) = f 1 (n) + f 2 (n) (5) Then, first, the road surface area image f 1 (n) 6 is input to the input image f
(N) 1 and the inverted binary image 5
Multiply by the multiplication circuit 15 to obtain.

また、車両領域画像f2(n)27は、入力画像f(n)1
と2値画像4を掛算回路26で乗算して求められるが、車
両領域画像f2(n)27は、本発明では、必らずしも必要
ではない。
The vehicle area image f 2 (n) 27 is the input image f (n) 1
And the binary image 4 are multiplied by the multiplication circuit 26, but the vehicle area image f 2 (n) 27 is not always necessary in the present invention.

また、一方、背景画像g(n−1)2の入力画像1のf1
(n)に対応する領域g1(n−1)7、および、f
2(n)に対応する領域g2(n−1)8を、背景画像g
(n−1)2と反転2値画像5を画像間演算回路中104
の掛算回路16に、背景画像g(n−1)2と2値画像4
を掛算回路17にそれぞれ入力することにより、それぞれ
求める。
On the other hand, f 1 of the input image 1 of the background image g (n-1) 2
Area g 1 (n−1) 7 corresponding to (n), and f
The region g 2 (n-1) 8 corresponding to 2 (n) is set as the background image g.
(N-1) 2 and the inverted binary image 5 are stored in the inter-image calculation circuit 104
The background image g (n-1) 2 and the binary image 4 are supplied to the multiplication circuit 16 of
Are respectively input to the multiplication circuit 17 to obtain the values.

なお、この時、次式が成り立つ。At this time, the following equation holds.

g(n−1)=g1(n−1)+g2(n−1) …(6) また、2値または反転2値画像との乗算により、f
1(n)6、f2(n)27、g1(n−1)7、およびg
2(n−1)8において、第1図中の斜線部分が有効な
領域で、ある濃度値を持つが、それ以外の白地の部分は
濃度値が“0"の無効領域となる。
g (n-1) = g 1 (n-1) + g 2 (n-1) Also ... (6), by multiplying the binary or reverse binary images, f
1 (n) 6, f 2 (n) 27, g 1 (n-1) 7, and g
In 2 (n-1) 8, the shaded area in FIG. 1 is an effective area having a certain density value, but the other white area is an invalid area having a density value of "0".

次に、照明変動による路面等の明るさの変化が、対象物
(路面、車両等)の明るさに対して線形に変化する(変
化率一定)ことから背景画像g(n−1)2に対する入
力画像f(n)1の明るさの変化率γを求める。
Next, since the change in the brightness of the road surface due to the illumination change changes linearly with the brightness of the target object (road surface, vehicle, etc.) (constant rate of change), the background image g (n-1) 2 is changed. The change rate γ of the brightness of the input image f (n) 1 is calculated.

まず、濃度品頻度分布算出回路107は、先に求めた画像f
1(n)の濃度頻度分布を求め9(第2図(a)参
照)、該濃度頻度分布から最大濃度max{f1(n)}、
最小濃度min{f1(n)}を求める10。
First, the density product frequency distribution calculation circuit 107 uses the previously calculated image f
The density frequency distribution of 1 (n) is obtained 9 (see FIG. 2A), and the maximum density max {f 1 (n)} is calculated from the density frequency distribution.
Obtain the minimum density min {f 1 (n)} 10.

また、一方、f1(n)に対応する背景画像g1(n−1)
7の濃度頻度分布を求め11、該分布11から最大濃度max
{g1(n−1)}、最小濃度min{g1(n−1)}を求
める12。次に、これら濃度値を用いて、入力画像1の背
景画像2に対する明るさの変化率γを(7)式により求
める13。
On the other hand, the background image g 1 (n-1) corresponding to f 1 (n)
The density frequency distribution of 7 is calculated 11, and the maximum density max is calculated from the distribution 11.
Obtain {g 1 (n-1)} and minimum density min {g 1 (n-1)} 12. Next, using these density values, the change rate γ of the brightness of the input image 1 with respect to the background image 2 is obtained by the equation (7) 13.

以上の濃度頻度分布と変化率γの関係を第2図(c)に
示す。
The relationship between the density frequency distribution and the change rate γ is shown in FIG. 2 (c).

なお、f1(n)およびg1(n−1)は路面上の白線等、
暗い部分から明るい部分まで、広い濃度分布を含んでい
た方が変化率γの精度を上げるためには好ましい。ま
た、第2図(a)、(b)において2つのピークのう
ち、左側のピークは路面の黒っぽい部分、右側のピーク
は白線等の白っぽい部分を表わす。上記(7)式は、第
2図(c)において、傾きγを意味する。
Note that f 1 (n) and g 1 (n-1) are white lines on the road surface,
It is preferable to include a wide density distribution from the dark portion to the bright portion in order to improve the accuracy of the change rate γ. In addition, of the two peaks in FIGS. 2A and 2B, the left peak represents a dark portion of the road surface and the right peak represents a whitish portion such as a white line. The above equation (7) means the inclination γ in FIG. 2 (c).

ここで、変化率γとg2(n−1)を用いて、f2(n)領
域の入力画像をf2′次式で置き換える。
Here, using the rate of change γ and g 2 (n-1), the input image in the f 2 (n) region is replaced with the following formula of f 2 ′.

f2′(n)=γ×g2(n−1) …(8) また、定数AおよびB(式(9)の関係あり)の値と、
現背景画像f(n)と前背景画像g(n−1)との式
(10)で表わされる線形結合演算により新しい背景画像
g(n)が作成できることが知られている。
f 2 ′ (n) = γ × g 2 (n−1) (8) Further, the values of the constants A and B (there is a relation of the equation (9)),
It is known that a new background image g (n) can be created by the linear combination operation of the current background image f (n) and the previous background image g (n-1) represented by the equation (10).

A+B=1 g(n)=A×f(n)+B×g(n−1) …(10) そこで、式(10)は式(5)、(6)、(8)により次
のように表わされる。
A + B = 1 g (n) = A * f (n) + B * g (n-1) (10) Then, the expression (10) is calculated by the expressions (5), (6), and (8) as follows. Represented.

g(n)=A×{f1(n)+γ×g2(n−1)}+B×
g(n−1) =A×f1(n)+A×γ×g2(n−1)+B×g(n−
1) …(11) 式(11)の演算実行は線形結合演算回路109で行われ、
具体的には第1図に示すように、定数A(小数点以下の
値なので、あらかじめ210倍程度スケールアップしてお
くことが望ましい)と入力画像f1(n)を掛算回路18に
入力し、その出力をシフト回路19で10ビットシフトダウ
ンすることにより210で割り、式(11)の第1項目を求
める。
g (n) = A × {f 1 (n) + γ × g 2 (n-1)} + B ×
g (n-1) = A × f 1 (n) + A × γ × g 2 (n-1) + B × g (n-
1) ... (11) The execution of the operation of the equation (11) is performed by the linear combination operation circuit 109,
As shown in FIG. 1 in particular, (because decimal values, it is desirable to scale up in advance about 2 10 times) constant A Type Type image f 1 (n) to multiplier circuit 18 , divided by 2 10 by 10-bit shift down-shift circuit 19 and the output, obtaining a first term of formula (11).

また、定数Aと変化率γ(あらかじめ210程度スケール
アップしておく)を掛算回路20で掛算し、その出力結果
と背景画像g2(n−1)8を掛算回路21で乗算し、その
出力をシフト回路22で上記と同様に210でスケールダウ
ンすることにより、式(11)の第2項目を求める。
Further, multiplied constants A and the rate of change γ of the (previously 2 10 degree scale-up) in multiplier circuit 20 multiplies the output result and the background image g 2 (n-1) 8 in multiplier circuit 21, the by scaling down 2 10 as above by the shift circuit 22 outputs, determining the second item of the equation (11).

さらに、定数B(あらかじめ210倍程度スケールアップ
しておく)と背景画像g(n−1)2を掛算回路23に入
力し、該出力をシフト回路24で上記と同様に210でスケ
ールダウンすることにより、式(11)の第3項を求め
る。
Further, the constant B (pre-2 10 times previously scaled up) a background image g (n-1), type 2 to multiplier circuit 23, scaled down by 2 10 in the same manner as described above by the shift circuit 24 to output Then, the third term of the equation (11) is obtained.

そして、これら3つの求めた結果を、加算回路25で加算
することにより新しい背景画像g(n)28を求める。
Then, a new background image g (n) 28 is obtained by adding these three obtained results by the addition circuit 25.

なお、この新しい背景画像g(n)28は、画像メモリに
格納され、次の背景更新の処理では背景画像g(n−
1)2として処理される。
The new background image g (n) 28 is stored in the image memory, and the background image g (n-
1) Processed as 2.

以上のように、本実施例によれば、入力画像f(n)の
車両部分の背景更新への影響を排除できるので、渋滞等
により車両が入力画像内に沢山存在していても、明るさ
の変化に追従して確実に背景画像を更新することができ
る。
As described above, according to the present embodiment, it is possible to eliminate the influence of the vehicle portion of the input image f (n) on the background update. Therefore, even if there are many vehicles in the input image due to traffic congestion or the like, the brightness can be reduced. The background image can be reliably updated by following changes in

また、入力画像に部分的に急激な明るさの変化するノイ
ズが発生しても、その部分は、式(4)および(8)か
ら分かるように、背景画像の明るさを基に補正されるの
で、問題なく新しい背景画像を作成でき、車両抽出が正
確に実行できる。
Further, even if noise in which the brightness changes abruptly occurs in the input image, that part is corrected based on the brightness of the background image, as can be seen from equations (4) and (8). Therefore, a new background image can be created without any problem, and vehicle extraction can be performed accurately.

また、本実施例は、ハードウェアでの実現性が高く、高
速な背景更新が可能である。
In addition, the present embodiment has a high possibility of being implemented by hardware and is capable of high-speed background updating.

また、以上の処理を近似化することにより、簡略化して
も良く、この場合、式(11)を実行するのではなく、式
(5)および(8)より g(n)=f1(n)+γ×g2(n−1) …(11′) を求め、式(11′)を実行することにより背景画像g
(n)28を求める。
Further, it may be simplified by approximating the above processing. In this case, instead of executing the equation (11), g (n) = f 1 (n ) + Γ × g 2 (n-1) (11 ') is obtained and the background image g is obtained by executing the equation (11').
(N) Find 28.

この場合、式(11)おいて、係数をA=1、B=0とす
ることによっても実現できるが、さらに進んで、第1図
における背景更新処理部分の、係数A、B、掛算回路1
8、20、23、シフト回路19,24を削除することができる。
In this case, although it can be realized by setting the coefficients A = 1 and B = 0 in the equation (11), it goes further and the coefficients A and B and the multiplication circuit 1 of the background update processing part in FIG.
The 8, 20, 23 and shift circuits 19, 24 can be deleted.

第3図に、この第2の背景更新処理部分の機能図を示
す。
FIG. 3 shows a functional diagram of the second background update processing portion.

また、変化率γを求める方法としては、入力画像f
1(n)および背景画像g1(n−1)の平均濃度値の比
を用いることも可能であり、この場合は、最大・最小濃
度検出10、12の代わりに式(12)、(13)を実行する平
均濃度検出30、31を、変化率算出13の代わりに式(14)
を実行する変化率算出33を備えれば良い。
Further, as a method of obtaining the change rate γ, the input image f
It is also possible to use the ratio of the average density values of 1 (n) and the background image g 1 (n-1), and in this case, instead of the maximum / minimum density detections 10 and 12, equations (12), (13 ) Is executed instead of the change rate calculation 13 by the formula (14).
The change rate calculation 33 for executing

第4図に、この第3の背景更新処理部分の機能図を示
す。
FIG. 4 shows a functional diagram of the third background update processing portion.

また、他の変化率γを求める方法としては、入力画像f1
(n)および背景画像g1(n−1)の路面および白線部
分のピーク濃度の差の比を用いることが可能であり、こ
の場合、第1図における背景更新部分の最大・最小検出
10、12の代りに、第5図に示すように、ピーク濃度検出
34、35を、変化率算出13の代りに、式(15)を実行する
変化率算出36を備えれば良い。
Further, as another method for obtaining the change rate γ, the input image f 1
(N) and the ratio of the difference in peak density between the road surface and the white line portion of the background image g 1 (n-1) can be used. In this case, the maximum / minimum detection of the background update portion in FIG. 1 can be used.
Instead of 10 and 12, as shown in Fig. 5, peak concentration detection
Instead of the change rate calculation 13, 34 and 35 may be provided with a change rate calculation 36 that executes the equation (15).

第5図に、この第4の背景更新部分の機能図を示す。FIG. 5 shows a functional diagram of the fourth background updating portion.

ピーク濃度検出34、35の処理の概念図を第6図に示す。 FIG. 6 shows a conceptual diagram of the processing of the peak density detection 34, 35.

まず、第6図(a)に示す入力画像f1(n)の濃度頻度
分布から、最大・最小濃度maxf1、minf1を求め、その平
均値から明るい側および暗い側の頻度liをチェックし、
それぞれの領域のピーク値をとる濃度レベルpeak
(f1h)、peak(f1d)を求める。
First, the maximum and minimum densities maxf 1 and minf 1 are obtained from the density frequency distribution of the input image f 1 (n) shown in FIG. 6 (a), and the frequencies l i on the bright side and the dark side are checked from the average value. Then
Concentration level peak that takes the peak value of each area
(F 1h ) and peak (f 1d ) are calculated.

同様にして第6図(b)に示す背景画像g1(n−1)の
濃度頻度分布からpeak(g1h)、peak(g1d)を求める。
Similarly, peak (g 1h ) and peak (g 1d ) are obtained from the density frequency distribution of the background image g 1 (n-1) shown in FIG. 6 (b).

そして、第6図(c)の傾き変化率γを求める。Then, the inclination change rate γ in FIG. 6 (c) is obtained.

このように、濃度頻度のmax濃度付近あるいはmin濃度付
近のノイズの影響を避けて、路面の全体の明るさを代表
する平均濃度値、ピーク濃度値で明るさの変化率を求め
ることにより、安定した補正画像f2(n)を得ることが
できる。
In this way, by avoiding the influence of noise near the maximum density or the minimum density of the density frequency and obtaining the rate of change in brightness by the average density value and peak density value that represent the overall brightness of the road surface, stable The corrected image f 2 (n) thus obtained can be obtained.

そのため、より正確な車両の抽出が可能となる。Therefore, it is possible to more accurately extract the vehicle.

なお、本実施例においては、(10)(11′)式等に基づ
く方法により、新たな背景画像を求めたが、本発明は、
背景更新処理における、入力画像の移動体部分領域の補
正を主要点とするものであり、他の方法においても同様
に実現でき、効果がある。
In this embodiment, a new background image is obtained by the method based on the equations (10) and (11 ′).
The correction of the moving object partial area of the input image in the background update processing is the main point, and other methods can be similarly realized and are effective.

また、車両の検出に限らず、人物等、他の移動体検出に
おいても同様に実現できる。
Further, not only the detection of the vehicle but also the detection of other moving objects such as a person can be similarly realized.

以上、本実施例によれば、渋滞時等においても明るさの
変動を考慮しながら背景画像の作成が可能のため、走行
車両、あるいは停止車両等を安定して抽出できる。
As described above, according to the present embodiment, it is possible to create a background image while considering a change in brightness even during a traffic jam or the like, so that a traveling vehicle, a stopped vehicle, or the like can be stably extracted.

なお、以上の実施例においては、移動体検出装置を例に
とり本発明の詳細について説明したが、本発明は、移動
体の検出のみならず、たとえば、工場内の異常監視装置
等の画像処理装置においても同様に実現できる。
In the above embodiments, the present invention has been described in detail by taking a moving body detection device as an example. However, the present invention is not limited to detection of a moving body, and may be, for example, an image processing device such as an abnormality monitoring device in a factory. The same can be realized in.

また、異常の実施例においては、背景画像と入力画像の
変化として輝度を用いる例について説明したが、たとえ
ば炉内の局部温度異常監視装置や、屋外におけるサーモ
テープやリトマス紙等の試験紙による状態監視装置にお
いては、輝度に代えてえて、または、併用して色を用い
ても良い。
Further, in the anomalous embodiment, an example of using brightness as a change between the background image and the input image has been described, but for example, a local temperature anomaly monitoring device in the furnace, or a test paper such as a thermotape or litmus paper outdoors In the monitoring device, color may be used instead of or in combination with luminance.

[発明の効果] 以上のように、本発明によれば、移動体検出装置にみら
れる渋滞時等の特殊状態においても、外部環境に追従し
た背景画像を得ることのできる背景更新方法、および、
画像処理装置を提供することができる。
[Effects of the Invention] As described above, according to the present invention, a background updating method capable of obtaining a background image following the external environment even in a special state such as a traffic jam seen in a moving object detection apparatus, and
An image processing device can be provided.

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

第1図は第1の背景画像更新処理部分の機能構成を示す
機能ブロック図、第2図は最大・最小濃度を用いた変化
率算出処理の概念を示す説明図、第3図は第2の背景画
像更新処理部分の機能構成を示す機能ブロック図、第4
図は第3の背景画像更新処理部分の機能構成を示す機能
ブロック図、第5図は第4の背景画像更新処理部分の機
能構成を示す機能ブロック図、第6図はピーク濃度レベ
ルを用いた変化率算出の概念を示す説明図、第7図は移
動体検出装置の構成を示すブロック図、第8図は移動体
の流れ計測の処理の流れを示すフロー図、第9図は移動
体抽出処理の流れを示す説明図である。 1…入力画像、2…背景画像、3…差分画像、4…2値
画像、5…反転2値画像、13…変化率算出回路、14…減
算回路、15…掛算回路、25…加算回路、101…カメラ、1
02…A/D変換回路、103…画像メモリ、104…画像間演算
回路、105…2値回路、106…2値画像反転回路、107…
濃度頻度分布算出回路、108…ヒストグラムメモリ、109
…線形結合演算回路、111…モニタ、112…CPU。
FIG. 1 is a functional block diagram showing the functional configuration of the first background image update processing portion, FIG. 2 is an explanatory view showing the concept of change rate calculation processing using maximum and minimum densities, and FIG. Fourth, a functional block diagram showing a functional configuration of a background image update processing portion,
FIG. 6 is a functional block diagram showing the functional configuration of the third background image update processing portion, FIG. 5 is a functional block diagram showing the functional configuration of the fourth background image update processing portion, and FIG. 6 uses the peak density level. FIG. 7 is an explanatory view showing the concept of change rate calculation, FIG. 7 is a block diagram showing the configuration of a moving body detection device, FIG. 8 is a flow chart showing the flow of processing of moving body flow measurement, and FIG. 9 is moving body extraction. It is explanatory drawing which shows the flow of a process. 1 ... Input image, 2 ... Background image, 3 ... Difference image, 4 ... Binary image, 5 ... Inverted binary image, 13 ... Change rate calculation circuit, 14 ... Subtraction circuit, 15 ... Multiplication circuit, 25 ... Addition circuit, 101 ... camera, 1
02 ... A / D conversion circuit, 103 ... Image memory, 104 ... Image arithmetic circuit, 105 ... Binary circuit, 106 ... Binary image inverting circuit, 107 ...
Concentration frequency distribution calculation circuit, 108 ... Histogram memory, 109
… Linear combination calculation circuit, 111… Monitor, 112… CPU.

───────────────────────────────────────────────────── フロントページの続き (72)発明者 田中 紀夫 茨城県日立市大みか町5丁目2番1号 株 式会社日立製作所大みか工場内 (56)参考文献 特開 平1−211083(JP,A) 特開 昭63−198193(JP,A) 特開 昭62−114064(JP,A) ─────────────────────────────────────────────────── ─── Continuation of the front page (72) Inventor Norio Tanaka 5-2-1 Omika-cho, Hitachi City, Ibaraki Prefecture, Ltd. Inside the Omika Plant, Hitachi, Ltd. (56) Reference JP-A 1-211083 (JP, A) JP-A-63-198193 (JP, A) JP-A-62-114064 (JP, A)

Claims (7)

【特許請求の範囲】[Claims] 【請求項1】背景画像gと入力画像fとに基づいて新た
な背景画像を生成し背景画像を更新する手段を有する画
像処理装置であって、 背景画像gと入力画像fとを比較する手段と、比較の結
果、所定値より差の小さい領域における、入力画像f1
背景画像g1との間の明るさの変化率rを求める手段と、
比較の結果、所定の値より差の大きかった領域に対応す
る背景画像g2に前記求めた変化率rを乗算する手段と、
前記新たな背景画像を生成する手段が使用する入力画像
fのうち、前記所定の値より変化の大きい領域に対応す
る入力画像f2を前記変化率を乗算した画像r×g2に置き
換える手段と、を有することを特徴とする画像処理装
置。
1. An image processing apparatus having means for generating a new background image based on the background image g and the input image f and updating the background image, the means for comparing the background image g and the input image f. And means for obtaining the rate of change r in brightness between the input image f 1 and the background image g 1 in a region where the difference is smaller than a predetermined value as a result of the comparison,
As a result of the comparison, a means for multiplying the background image g 2 corresponding to a region having a difference larger than a predetermined value by the obtained change rate r,
Of the input image f used by the means for generating the new background image, means for replacing the input image f 2 corresponding to a region having a larger change than the predetermined value with an image r × g 2 multiplied by the change rate. An image processing apparatus comprising:
【請求項2】背景画像gと入力画像fとを比較する手段
と、比較の結果、所定値より変化の小さい領域におけ
る、入力画像f1と背景画像g1との間の変化率rを求める
手段と、該変化率rと、比較の結果、所定の値より差の
大きい領域の背景画像g2と、所定値より差の小さい領域
の入力画像f1と、所定数A(0≦A≦1)とを用いたA
×(f1+r×g2)+(1−A)×gの演算により、新た
な背景画像を求め、背景画像を更新する手段と、を有す
ることを特徴とする画像処理装置。
2. A means for comparing the background image g and the input image f, and as a result of the comparison, a rate of change r between the input image f 1 and the background image g 1 in an area having a change smaller than a predetermined value is obtained. Means, the rate of change r, and as a result of comparison, a background image g 2 in an area having a larger difference than a predetermined value, an input image f 1 in an area having a smaller difference than a predetermined value, and a predetermined number A (0 ≦ A ≦ 1) and using A
An image processing apparatus comprising: a unit that obtains a new background image by a calculation of × (f 1 + r × g 2 ) + (1-A) × g and updates the background image.
【請求項3】請求項1または2記載の画像処理装置であ
って、 前記変化率rとして、所定値より差の小さい領域におけ
る、前記入力画像f1および前記背景画像g1のそれぞれの
最大、最小濃度の差より求めた明るさの変化率を用いる
ことを特徴とする画像処理装置。
3. The image processing apparatus according to claim 1, wherein the change rate r is the maximum of each of the input image f 1 and the background image g 1 in an area having a difference smaller than a predetermined value. An image processing apparatus characterized by using a rate of change in brightness obtained from a difference in minimum density.
【請求項4】請求項1または2記載の画像処理装置であ
って、 前記変化率rとして、所定値より差の小さい領域におけ
る、前記入力画像f1および前記背景画像g1のそれぞれの
平均濃度より求めた明るさの変化率を用いることを特徴
とする画像処理装置。
4. The image processing apparatus according to claim 1, wherein the change rate r is an average density of each of the input image f 1 and the background image g 1 in an area having a difference smaller than a predetermined value. An image processing apparatus, characterized in that a change rate of brightness obtained from the above is used.
【請求項5】請求項1または2記載の画像処理装置であ
って、 前記変化率rとして、所定値より差の小さい領域におけ
る、前記入力画像f1および前記背景画像g1のそれぞれの
画像中の2つのピーク濃度より求めた明るさの変化率を
用い、 前記所定値より差の小さい領域における前記入力画像f1
中の2つのピーク濃度は、当該入力画像f1の濃度の最大
値と最小値の中間値より明るい側において発生頻度が最
も高い濃度Peakf1hと、当該中間値より暗い側において
発生頻度が最も高い濃度Peakf1dであり、 前記所定値より差の小さい領域における前記背景画像g1
中の2つのピーク濃度は、当該背景画像g1の濃度の最大
値と最小値の中間値より明るい側において発生頻度が最
も高い濃度Peakg1hと、当該中間値より暗い側において
発生頻度が最も高い濃度Peakg1dであり、 前記明るさの変化率rを、 r=(Peakf1h−Peakf1d)/(Peakg1h−Peakg1d) に従って求めることを特徴とする画像処理装置。
5. The image processing apparatus according to claim 1, wherein the change rate r is within the respective images of the input image f 1 and the background image g 1 in an area having a difference smaller than a predetermined value. Using the rate of change in brightness obtained from the two peak densities of the input image f 1 in the region where the difference is smaller than the predetermined value
Among the two peak densities, the density Peak f 1 h having the highest occurrence frequency on the bright side of the intermediate value between the maximum and minimum densities of the input image f 1 and the occurrence frequency on the dark side of the intermediate value being the highest. High density Peak f 1 d, and the background image g 1 in an area where the difference is smaller than the predetermined value.
The two peak densities in the middle are density Peakg 1 h that has the highest occurrence frequency on the bright side of the intermediate value between the maximum and minimum values of the background image g1, and the highest occurrence frequency on the dark side of the intermediate value. The image processing apparatus is characterized in that the density is Peakg 1 d, and the change rate r of the brightness is obtained according to r = (Peakf 1 h-Peakf 1 d) / (Peakg 1 h-Peakg 1 d).
【請求項6】請求項1、2、3、4または5記載の画像
処理装置であって、 前記背景画像と入力画像とにより移動体を検出する手段
を有することを特徴とする移動体検出装置。
6. An image processing apparatus according to claim 1, 2, 3, 4 or 5, further comprising means for detecting a moving body based on the background image and the input image. .
【請求項7】背景画像gと入力画像fとに基づいて新た
な背景画像を生成し背景画像を更新する際に用いる、前
記入力画像fを補正する画像処理方法であって、 背景画像gと入力画像fとを比較し、 比較の結果、所定値より差の小さい領域における、入力
画像f1と背景画像g1との間の明るさの変化率rを求め、 比較の結果、所定の値より差の大きかった領域に対応す
る背景画像g2に前記求めた変化率rを乗算し、 前記新たな背景画像を生成する手段が使用する入力画像
fのうち、前記所定の値より変化の大きい領域に対応す
る入力画像f2を前記変化率を乗算した画像r×g2に置き
換えることを特徴とする画像処理方法。
7. An image processing method for correcting the input image f, which is used when a new background image is generated based on the background image g and the input image f and the background image is updated. The input image f is compared, and as a result of the comparison, the rate of change in brightness r between the input image f 1 and the background image g 1 in the area where the difference is smaller than the predetermined value is obtained. The background image g 2 corresponding to the region having a larger difference is multiplied by the obtained change rate r to generate a new background image. Among the input images f used by the means, the change is larger than the predetermined value. An image processing method, characterized in that an input image f 2 corresponding to a region is replaced with an image r × g 2 multiplied by the change rate.
JP1257289A 1989-10-02 1989-10-02 Image processing device, moving object detection device, and image processing method Expired - Lifetime JPH07113973B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP1257289A JPH07113973B2 (en) 1989-10-02 1989-10-02 Image processing device, moving object detection device, and image processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP1257289A JPH07113973B2 (en) 1989-10-02 1989-10-02 Image processing device, moving object detection device, and image processing method

Publications (2)

Publication Number Publication Date
JPH03118677A JPH03118677A (en) 1991-05-21
JPH07113973B2 true JPH07113973B2 (en) 1995-12-06

Family

ID=17304307

Family Applications (1)

Application Number Title Priority Date Filing Date
JP1257289A Expired - Lifetime JPH07113973B2 (en) 1989-10-02 1989-10-02 Image processing device, moving object detection device, and image processing method

Country Status (1)

Country Link
JP (1) JPH07113973B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3801137B2 (en) * 2003-01-21 2006-07-26 コニカミノルタホールディングス株式会社 Intruder detection device
JP4672680B2 (en) * 2007-02-05 2011-04-20 日本電信電話株式会社 Image processing method, image processing apparatus, image processing program, and computer-readable recording medium recording the program
JP5045449B2 (en) * 2008-01-17 2012-10-10 株式会社明電舎 Environment-adaptive intruder detection device by image processing
JP5796173B2 (en) * 2011-12-19 2015-10-21 パナソニックIpマネジメント株式会社 Object detection apparatus and object detection method
JP7062611B2 (en) * 2019-03-27 2022-05-06 Kddi株式会社 Area extraction device and program

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2644805B2 (en) * 1988-02-19 1997-08-25 株式会社日立製作所 Background image update method

Also Published As

Publication number Publication date
JPH03118677A (en) 1991-05-21

Similar Documents

Publication Publication Date Title
US20030052979A1 (en) Image processing method and apparatus
JP2000341559A (en) Device and method for processing image and device and method for estimating noise quantity
JPH07302328A (en) Method for extracting area of moving object based upon background difference
JPH07113973B2 (en) Image processing device, moving object detection device, and image processing method
JPH0651009A (en) Method and apparatus for measuring noise
JPH07104934B2 (en) Image processing device
JPH05143737A (en) Method and device for identification with motion vector
JPS6376578A (en) Automatic binarization system
JP3267107B2 (en) Background image creation method and image processing apparatus
JPH06242013A (en) Pattern defect inspection system
CN111768426B (en) Method, device, equipment and storage medium for detecting moving object
JPS63194477A (en) Background picture extracting method
JPH01211083A (en) Method and device for updating background picture
JP3480803B2 (en) Moving target detection processing apparatus and method
JPH07220076A (en) Image processing device
JPH06203147A (en) Shading correcting method for image
JPH10290446A (en) Method and device for generating background image
JP3252574B2 (en) Image processing device
JPH03237571A (en) Device for calculating binarizing threshold of image
JPH0544725Y2 (en)
JPH0641973B2 (en) Image data equalization method
JPH07320035A (en) Moving body image extracting method
JPH06219639A (en) Edge detecting device by image for band-like material
JP3175946B2 (en) Object position measuring method and device
JPH0727711A (en) Detecting method for defect in mark part in image