Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3616355B2 - Image processing method and image processing apparatus by computer - Google Patents
[go: Go Back, main page]

JP3616355B2 - Image processing method and image processing apparatus by computer - Google Patents

Image processing method and image processing apparatus by computer Download PDF

Info

Publication number
JP3616355B2
JP3616355B2 JP2001188416A JP2001188416A JP3616355B2 JP 3616355 B2 JP3616355 B2 JP 3616355B2 JP 2001188416 A JP2001188416 A JP 2001188416A JP 2001188416 A JP2001188416 A JP 2001188416A JP 3616355 B2 JP3616355 B2 JP 3616355B2
Authority
JP
Japan
Prior art keywords
frame
pixel
value
image
moving object
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 - Fee Related
Application number
JP2001188416A
Other languages
Japanese (ja)
Other versions
JP2003006659A (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.)
Tateyama Kagaku Kogyo Co Ltd
Original Assignee
Tateyama Kagaku Kogyo Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tateyama Kagaku Kogyo Co Ltd filed Critical Tateyama Kagaku Kogyo Co Ltd
Priority to JP2001188416A priority Critical patent/JP3616355B2/en
Publication of JP2003006659A publication Critical patent/JP2003006659A/en
Application granted granted Critical
Publication of JP3616355B2 publication Critical patent/JP3616355B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

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

Description

【0001】
【発明の属する技術分野】
本発明は、光学的に取得された動画データ上で動体と背景とを識別する為の画像処理方法と画像処理装置に関する。
【0002】
【従来の技術】
ビデオ連続画像は、ビデオフレーム(以下、フレームと記す。)と呼ばれる連続した静止画像から成り立っている。時間軸で前後するフレームは、互いによく似通っているものの僅かな相違点(前後差)が存在し、当該相違点の連続によって被写体の動きが表現される。
【0003】
画像処理装置の一態様である監視システムの主目的は、監視中の空間に侵入する動体を全て検知することにあり、監視システムの根幹たる動体捕捉では、この様なビデオ連続画像のリアルタイムでの動作分析が基本となる。例えば、パノラマ画像ブロック(以下、PALと記す。)を用いて取得した環状画像による全方向監視システムなど固定カメラを用いた監視システムでは、原則として背景自体が連続画像上で動作せず、動体として検知する対象は、風や光による外乱或いは動きを伴う機械・器具等を除けば、外部からの侵入物だけである。この様に、固定カメラ式の監視システムは、リアルタイムの動作分析におけるコスト面や設備面で有利であることに着眼し、固定カメラ式の監視システムに適した動体検出処理の開発を図ることとした。
【0004】
従来から用いられている第一の動体検出処理として、単純にビデオ画像の連続する二つのフレームの引き算をするものが挙げられる。この方法は、視野内に存在する動体を検出するには良い方法であるが、検出対象たる動体はもとより照明ノイズ、自然光の変化、電気的ノイズなど不必要な変化をも全て捉えてしまう。また、照度の違いは検出できても色彩的に背景に埋もれた動体は検出できず、たとえ色彩的に背景に埋もれる事が無いとしても色彩的な変化を多く含む周辺部以外が検出できない。
【0005】
その結果、例えば、図10(イ)の如く、単一の色調の服を着た人物が画像中を左から右へ移動する場合、上記動体検出処理では、図10(ロ)の如く、当該人物の右側だけを検出し、左側の背景の一部は検出できても残りは前のフレーム内の人物の左側で隠されてしまいフレーム毎の背景認識ができない。当該移動体検出処理は、上記不正確さにより商用の物体追跡用途には応用できないが、比較的遅いコンピュータでもフレームレートで処理できることから、単純に動きだけを検出する用途には理想的と言える。
【0006】
フレーム毎の背景認識を可能とする第2の動体検出処理として、ある画面の背景だけを基準背景画像として何らかの方法で記録し、その後各フレームから当該基準背景画像を差し引く方法が挙げられる。この方法を用いれば一様な動体をみつけたり小さなノイズを除去するのも容易となる。ところが、差し引かれる対象の背景自体は、明るさや色彩が刻々と変化する動画であるために、時間の経過に従って新たに取得した最新画像の背景と予め取得した基本背景画像の背景との差が増大し、次第にノイズが増加するという欠点もある。
【0007】
この問題を解消すべく、時間の経過と共に背景画像を動的に更新する方法、具体的には、連続するビデオ画像中で、各画素につき最新フレームから過去に向かう幾つかのフレームのピクセル値の平均をとって背景を造る平均背景抽出法を採用し、アナログのVLSIハードウエアを併用する事によって実用的なフレームレートで高速に且つ簡単に行える方法を試みた。
【0008】
【発明が解決しようとする課題】
しかしながら、上記の如く動体検出処理に用いる基本背景画像としていくつかのフレームの平均値をとるとすると、平均値の性格上、各フレームは当該平均の結果として得られる基本背景画像が背景と動体との合成画像(図12(イ))となってゴースト効果(図12(ロ)の当該合成画像と最新フレーム画像との閾値差による画像参照)が生じるという問題が残る。
【0009】
本発明は、この様な実情に鑑みてなされたもので、変化する環境に対して正確に適応し、動体と背景とを低コストで正確に且つ高速に識別し得るコンピュータによる画像処理方法と画像処理装置の提供を目的とする。
【0010】
【課題を解決するための手段】
上記課題を解決するために成された本発明によるコンピュータによる画像処理方法は、光学的に取得された動画データ上で動体と背景とを識別する為の画像処理方法において、前記動画のフレームを構成する画素それぞれのピクセル値について最新フレームと直前フレーム間の前後差を求め、最新フレームを構成する各画素に対し当該前後差の絶対値に反比例した重み付けを施して得た評価値より導出した動体成分値から、所定の閾値に基づいて動体構成画素を認定する動体検出処理を演算手段により実行することを特徴とする。
【0011】
尚、動画のフレームとは、CCD等の撮像素子から入力した時点のフレームでも良いし、受像器のディスプレイに表示される時点のフレームでも良い。ピクセル値とは、1出力画素の値で、輝度や色彩等の情報を数値化したものである。また、重み付けとは、例えば、前記前後差の絶対値に反比例させると言う様な計算式等の一定の規則に照らしてウエイトの大小を前記評価値に反映させることを意味する。閾値に基づいて動体構成画素を認定するとは、例えば、前記ピクセル値から評価値を差し引いた動体成分値について、閾値より高い値の画素については動体の一部を構成する動体構成画素と認定し、閾値より低い値の部分については背景成分画素として判断することを意味する。
【0012】
光の外乱による不具合を回避すべく、フレームを構成する画素毎に前記評価値の累積平均値及び制限時間内の最大変化量Dを最新フレームを取得する毎に導出し、最新フレームにおける各画素の評価値と前記累積平均値との差の絶対値たる累積平均格差が、前記最大変化量Dに基づく基準値を上回る画素を、前記動体構成画素として擬制する環境的フィルタリング処理を演算手段により実行する場合もある。尚、前記最大変化量Dに基づく基準値とは、当該最大変化量に対して一定の割合を増減させた値のことである。
【0013】
前記環境的フィルタリング処理については前記最新フレームにおける各画素のピクセル値と前記累積平均値との差の絶対値が、前記最大変化量Dに基づく基準値を下回る場合には、例えば、基準値を下回った量に相当する分だけ最大変化量Dを減少させる形で更新し、逆に前記最新フレームにおける各画素のピクセル値と前記累積平均値との差の絶対値が、前記最大変化量Dを上回る場合には、例えば、基準値を上回った量に相当する分だけ最大変化量Dを増加させる形で更新する学習処理を含む場合もある。
【0014】
又、前記動画のフレーム上において捕捉した相分離する動体間の距離が所定の近接距離未満の場合にそれら動体を相連結した一個の動体として認定すると共に、当該相連結した動体の大きさを算出し、所定の閾値を下回る大きさの動体を検出対象から除外する処理を含んだ物体的フィルタリング処理を演算手段により実行する場合もある。
【0015】
更に、前記動画のフレーム上において捕捉した動体に形状及び大きさが最も近似した動体を、その直前のフレーム上で検索し、当該動体の移動方向が当該画像処理の目的とは無関係な方向である動体を前記特定フレームにおける検出対象から除外する処理を含む物体的フィルタリング処理を演算手段により実行する場合もある。また更に、前記動画のフレーム上において捕捉した動体に形状及び大きさが最も近似した動体を、その直前のフレーム上で検索し、当該動体の移動速度が当該画像処理の目的とは無関係な移動速度である動体を前記特定フレームにおける検出対象から除外する処理を含む物体的フィルタリング処理を演算手段により実行する場合もある。
【0016】
上記課題を解決するために成された本発明によるコンピュータによる画像処理装置は、PAL光学系により撮像位置周辺360°に亘る三次元空間を環状画像として結像させる固定カメラと、当該固定カメラから取得したビデオ画像中から、上記いずれかのコンピュータによる画像処理方法によって動体を検出する為の演算手段を含む固定画像制御装置と、当該固定画像制御装置により認識した精査すべき動体の存在方向を向く単一指向性のズーム光学系スキャンカメラと、当該スキャンカメラで取得したビデオ画像の保存を行うコンピュータシステムを含む捕捉画像制御装置を具備したことを特徴とする。
【0017】
【発明の実施の形態】
以下、本発明によるコンピュータによる画像処理方法(以下、画像処理方法と記す。)の実施の形態を画像処理装置たる監視システムの一例を示しつつ図1のブロック図に基づき説明する。
【0018】
当該例では、図8に示すPAL光学系4により撮像位置周辺360°に亘る三次元空間を環状画像5として結像させる固定カメラ(以下、プレスキャンカメラと6記す。)と、当該プレスキャンカメラ6で取得したビデオ画像を表示する固定画像受像器8(図7参照)、及び当該プレスキャンカメラ6から取得したビデオ画像中から動体を検出する為のコンピュータシステムによる演算手段1を含む固定画像制御装置13と、当該固定画像制御装置13により認識した精査すべき動体の存在方向を向く単一指向性ではあるが画像分解能が高いズーム光学系で当該動体を自動的に拡大撮影するPZTスキャンカメラ(以下、スキャンカメラ7と記す。)と、当該スキャンカメラ7で取得したビデオ画像を表示する受像器(図示省略)、及び当該ビデオ画像の保存及び処理を行うコンピュータシステムを含む捕捉画像制御装置14を具備して構成される(図2及び図9参照)。当該構成によってCCDカメラによる分解能の制約というPALシステムの問題点が解消される。
【0019】
PAL光学系4は、垂直方向の視野角が約50度から70度程度に限定されるものの、水平視野が大きいため広範囲を撮影するに際して複数のカメラを設置したり、カメラを機械的に動かす必要がなく、例え小さなサイズのPALであっても鮮明な広角画像が得られるという利点がある。この様なPALの特性から侵入者の検知を目的とした監視システムに広く用いられているところである。尚、パノラマ画像ブロック9とは、前面中央の前遮光面aと、前面周縁部の前透光面bと、後面周縁部の後遮光面cと、後面中央部の後透光面dを具備した光透過性素材より成る回転体であって、前記後遮光面cは、前透光面bからの入射光を当該回転体を通過して前遮光面aへ集め得る反射鏡とされ、前遮光面aは、後遮光面cからの反射光を当該回転体内を通過して後透光面dへ集め得る反射鏡とされたものである(図8参照)。
【0020】
PALで三次元空間を二次元平面に投影すると、距離情報はすべて失われるため、PAL光学系4によるプレスキャンカメラ6の視野だけから物体の正確な位置を特定することはできないが、環状画像5を結んだ受光素子10のピクセルの位置から、その平面的な入射角度だけは特定できる。即ち、前記プレスキャンカメラ6のPAL光学系4の採光部とスキャンカメラ7を出来る限り近づけて設置する事でPAL光学系4により検知した動体の方向へ正確にスキャンカメラ7を向ける事が出来る。
【0021】
経験上、動体がスキャンカメラ7や、プレスキャンカメラ6のPAL光学系4の採光部から4m以上離れている場合には、図4の如く前記スキャンカメラ7と、プレスキャンカメラ6のPAL光学系4とが40cm程度離れていても実用上問題は無いが、動体の捕捉精度は、相互の距離が近ければ近いほどが高まるので、理想的には、図5の如くスキャンカメラ7の上に、当該スキャンカメラ7の旋回軸をPAL光学系4の光軸eとして配置することでスキャンカメラ7はPAL光学系4によるプレスキャンカメラ6の視野に入らず、又、環状画像5上の方位をそのままスキャンカメラ7の方位として用いることができ、前記動体検出処理2の効率を悪化させることもない。
【0022】
上記の如く適正な配設を行った上でシステムの初期設定を行う。初期設定としては、スキャンカメラ7の原点角度とPALの0度位相との角度差(図6参照。理想的には0度)を測定して固定画像制御装置13及び捕捉画像制御装置14に登録する。尚、PAL光学系に換えて通常レンズによる光学系を使用した場合にあっても(図3参照)、狭い視野角による動体の検出という点及び直角座標系の水平軸を角度換算する点が異なるだけでほぼ同様のシステム構成が可能となる。この様な構成を採った場合には、マスキング処理を行ったと同様に処理効率の向上が望めることとなる。
【0023】
以下、上記監視システムに採用するものとして以下に例示する画像処理方法は、ビデオ画像を対象とした統計的な変化検知をおこなって変化のある部分を抽出する動体検出処理(見方を変えれば背景検出処理として見る事もできる。)2と、当該結果から照明の変化や各種ノイズによる影響を除去する環境的フィルタリング処理3と、更に、予定しない大きさや動作特性を持った対象を除去する物体的フィルタリング処理11とで構成された画像処理方法である(図1参照)。
【0024】
当該画像処理方法における動体検出処理2は、背景の一部に生じた外乱によるピクセル値の変化は動体の一部のピクセル値の変化に比べて頻度も大きさも小さいという経験上の事実に基づき、結果として背景上で動きの少ない部分に大きな重みを与え、フレーム毎に変化する動きの激しい部分に小さい重みを与えて動体検出処理を行うものである。
【0025】
具体的には、先ず、前記プレスキャンカメラ6で撮影した画像の各フレームにおける各画素のピクセル値P1を、当該プレスキャンカメラ6の受光素子(CCD等)10からA/Dコンバータ等の物理量検出インターフェース12(図9参照)を介して採取し、演算手段1によって当該最新フレームのピクセル値P1と直前フレームのピクセル値P0の前後差の絶対値|P1−P0|を画素毎に求め、最新フレームを構成する各画素について、当該前後差の絶対値|P1−P0|に、フレーム毎の変化の反映度を決める平均ウエイトrを次式(α)の如く掛け合わせて動体に対するウエイトwを得る。そして、画素毎に、そのウエイトwを含んだ次式(β)を演算手段1により実行し、最新フレームのピクセル値P1に対して当該前後差の絶対値|P1−P0|に反比例した重み付けが施された評価値T1を得る。
【0026】
w=r*|P1−P0| ・・・・・・・・・(α)
T1=(w*T0+P1)/(w+1) ・・(β)
ここで
rは、前記重み付けを行う際の比例定数(平均重み)、
P0は、直前フレームの座標(x、y)に存在する画素のピクセル値、
P1は、最新フレームの座標(x、y)に存在する画素のピクセル値、
T0は、直前フレームにおける座標(x、y)に存在する画素の評価値、
T1は、最新フレームにおける座標(x、y)に存在する画素の評価値、
xは、フレームの横軸、
yは、フレームの縦軸、
である。
【0027】
【表1】

Figure 0003616355
【0028】
新規フレームを取得する毎に直前のフレームにおける重み付けの更新が行われる(表の上段から下段へ)上記演算を演算手段1を以て実行すれば、重み付けを受けたことにより、動きの頻繁な部分と動きの希薄な実質的背景部分との格差が高められた評価値T1が最新フレームを取得する毎に各画素について与えられる。そこで、演算手段1を以て最新フレームのピクセル値P1から当該評価値T1を減じてその絶対値を取ることにより、背景成分のほとんどが除去された前記最新フレームの動体成分値E1を画素毎に得ることができる。そして、得られた動体成分値E1を所定の閾値と比較し(表1、図14参照)、それより大きい画素を動体構成画素16として抽出し、その位置座標に基づいて一個のフレーム上に配置した状態を模擬した仮想フレームを演算手段1のメモリー15内に表現し、当該仮想フレームにおける動体ブロック(それぞれの位置座標に基づく前記動体構成画素の集合により構成されたブロック)の座標計算を演算装置1により行うことによって動体のみの位置及び大きさを割り出すことができる。
【0029】
この様に動作の頻度に応じた重み付けを行う上記方法によれば、動体が背景と同化することによって生じるゴーストの影響(図12(イ)(ロ))を排除することができるのみならず、従来の動体検出処理では検出できなかった物体、即ち、暫くの間動かなくなった物体やゆっくり動く物体であっても、静止時間を予め設定し当該設定時間に適したフレームサンプリング時間に設定しておくことで、動作の頻度に応じた重み付けが行われ、動体を問題なく検出することができることとなる。
【0030】
上記適正な設定時間による動体検出処理が行われ、適正な閾値が設定されると、前記動体成分E1によって抽出される一塊りの動体ブロックは一単位の物体として認識され、処理過程においても一単位の物体として処理されることとなる。そして、動体検出に係る処理時間の短縮を阻害する背景成分のほとんどが除去された前記動体成分値E1を用いることによって、処理対象が整理され処理効率と実用性が大きく高められることとなる。
【0031】
次に、当該例に用いたフィルタリング処理のうち、我々の周囲に存在する照度の変化(局地的輝度変化)に起因したノイズを除去する環境的フィルタリング処理3について説明する。当該処理は、例えば、直前の複数フレームの背景の平均輝度と最新フレームの背景の輝度とをフレーム上の画素毎に比較し、それらの輝度差が所定の閾値を超えるか否かで当該領域で物理的に重大な変化が生じたか否かを検出するものである。一日の照度変化の遷移函数はほぼ線形であるので、前記動体検出処理2等で抽出されるなどして得られた平均的輝度に基づき顕著な変化に対する閾値を適正に定めることは可能である。
【0032】
具体的には、ビデオ画像におけるフレーム取得開始から最新フレーム取得に至るまでの、各フレームを構成する全画素について、評価値T1に関する累積値(表2では累積評価値)、平均値(表2では平均評価値TA)、前後フレームの変化量(表2では直前変化量)、及びその間の最大変化量(表2では評価値最大変化量D)を演算手段1で導き出し、当該システムの記録手段17に保存する。
【0033】
そこで、演算手段1では、最新フレームの評価値T1と、当該最新フレームを含む平均評価値TAとの差の絶対値(表中では平均評価値格差)が、予め設定された検知感度s%を前記評価値最大変化量Dに割増した割増変化量TS以内であれば、当該画素は、物理的に重大な変化を含む動体の一部である蓋然性が高い画素(擬制画素)には当たらないとして、純然たる背景成分として動体検出に係る処理対象から省くと共に、もし、当該平均評価値格差が前記割増変化量TSより大きい場合には、その時の変化がそれまでのフレーム取得履歴で得た評価値最大変化量Dよりも格段に大きいと判断して、動体の一部である蓋然性が高い擬制画素としてマークする(表2、図15参照)。
【0034】
【表2】
Figure 0003616355
【0035】
擬制画素としてマークされた全ての画素は、演算手段1のメモリー15内に設定された仮想フレームに基づく動体ブロックの座標計算の際、同じフレームにおいて前記動体検出処理2により一塊りの動体ブロックとして認識された画素と共に、動体を構成する画素として取り扱われ、相分離する物体や擬制画素相互の間隔が所定の距離(設定調整可能)未満の場合に、それらの検出領域に対しぬりつぶし法や二進形態閉塞法等の連結・一体化処理を演算手段1で施すことにより、一塊りの繋がった動体ブロックとして取り扱われることとなる。
【0036】
上記環境的フィルタリング処理3に際し、演算手段1は、もし前記評価値T1についての前記平均評価値格差(|T1−TA|)がそれまでの評価値最大変化量Dより大きい場合には、当該最大変化量Dを、予め設定された感度係数(当該例においては“1”)に最大変化量Dの増加分を乗じた値だけ増加させて更新するという学習処理を行い、もし前記平均評価値格差の絶対値が前記最大変化量Dよりも小さい場合には、当該最大変化量Dを、予め設定された感度係数に最大変化量Dの増加分を乗じた値だけ減少させて更新するという学習処理(当該例においては、単位時間に一定の割合(或いは量)だけ減少させるといった定期的な処理として行われている。)を行う。当該最大変化量Dを増加或いは減少させるスピードは、前記感度係数を増減することにより適正なものに調整することができ、当該最大変化量Dを増加させるか否かの判断を生じさせる感度は、前記検知感度s%を適宜増減することによって調整することができる(表2及び図15参照)。
【0037】
上記環境的フィルタリング処理3は、動体成分値E1についても行うことが出来る。その場合、演算手段1は、もし前記動体成分値E1と平均動体成分値EAの差たる平均動体成分値格差(|E1−EA|)がそれまでの動体成分値最大変化量Lより大きい場合には、当該最大変化量Lを、予め設定された感度係数(当該例においては“1”)に最大変化量Lの増加分を乗じた値だけ増加させて更新するという学習処理を行い、もし前記平均動体成分値格差(|E1−EA|)が前記最大変化量Lよりも小さい場合には、当該最大変化量Lを、予め設定された感度係数に最大変化量Lの減少分を乗じた値だけ減少させて更新するという学習処理を行う。この場合も、当該最大変化量Lを増加或いは減少させるスピードは、前記感度係数を増減することにより適正なものに調整することができ、当該最大変化量Lを増加させるか否かの判断を生じさせる感度は、前記検知感度s%を適宜増減することによって調整することができる(表3及び図16参照)。
【0038】
【表3】
Figure 0003616355
【0039】
この様な環境フィルタリング処理3をフレームを構成する全画素に対して行い、擬制画素としてマークされなかった画素から成る領域の照度変化等をノイズであると判断して動体ブロックを構成する画素としての認識対象から除外することによって、処理内容の合理化を図ることが出来る。また、上記学習処理によってD又はLが自動的に実際の状況に即した値に設定され、常に適正な基準値が与えられて正確なノイズ除去が可能となる。
【0040】
この実施の形態では、当該物体の持つ空間的、或いは時間的特性により、更に幾つかの物体的フィルタリング処理が演算手段1によって行われる。
【0041】
前記演算手段1のメモリー15内に設定した仮想フレームで、動体ブロックの拾い出し18を行い、動体ブロックの座標計算による連結・一体化処理20を施した後、当該座標計算によって一つの物体の大きさを算出し、更に、基準以下の小さな物体は動体ブロックを構成する画素としての認識対象から除外する大きさフィルタ19を含んだ物体的フィルタリング処理11を当該演算手段1によって行う。当該物体的フィルタリング処理11によって、小さな動物や遠方の物体がフレームを横切るという場合であっても、検出対象たる物体より極端に小さい物体を動体検出処理2の対象から除くことができる。
【0042】
上記演算手段1による座標計算によって一旦動体ブロックを認識すると、その進行方向を導き運動の軌跡を予測することができるが、同動体ブロックについては進行方向の導出に間に合うようにその存在を検出して追跡しなければならない。そこで、当該例においては、直前のフレームで得られた動体成分値E0を所定の閾値と比較して(図14参考)それより大きい画素を抽出し、一個のフレームとして配置した仮想フレームを演算手段1のメモリー15内に設定し、ブロックマッチング(二値相関、パターン・マッチング或いはテンプレートマッチングと呼ばれる場合もある。)を行って進行方向導出の対象となる動体ブロックに最も近似した動体ブロックを、最新のフレーム上で探し出し、前後の位置座標の変化に基づく同演算手段1による座標計算を以て動体ブロックの移動ベクトルを算出し、当該画像処理の目的(監視システム等)とは無関係(無効)な方向(例えば、右が有効な方向であれば左が無効な方向)へ進む物体を検出対象から除く方向フィルタ22を含んだ処理が当該演算手段1によって行われる。
【0043】
上記の如く動体の移動方向が判明すると、当該動体ブロックの相対速度を導出することができる。よって、当該速度に基づき検出対象の速度として予測される速度から大きく外れる動作対象を除去する速度フィルタ23を含んだ物体的フィルタリング処理11を演算手段1により行うことが可能となる。尚、表1、表2、表3は、フレーム取得開始から50フレーム分の値を関係処理毎に分けて示したものである。
【0044】
当該画像処理においては、前記演算手段1により、上記フィルタリング処理に加えてカメラの視野に係るフレーム全体のうちの特定領域だけを検出の関心領域(ROI)とするマスキング処理を行うことによってより効率の良い画像処理が可能となる。
【0045】
【発明の効果】
上記の如く構成されたコンピュータによる画像処理方法と画像処理装置によれば、最新フレームを構成する各画素に対し当該前後差の絶対値に反比例した重み付けを施して得た評価値より導出した動体成分値から、所定の閾値に基づいて動体構成画素を認定する処理を演算手段を以て行うことにより、背景自体の明るさや色彩が刻々と変化する野外であっても、時間の経過に従って背景成分が評価値として更新されるので、経時的ノイズが増加するという欠点が解消されると共に、動体検出処理に用いる基本背景画像としていくつかのフレームの平均値をとるという手法で問題となっていたゴースト効果も解消される。
【0046】
また、フレームを構成する画素毎に前記評価値の累積平均値及び制限時間内の最大変化量Dを最新フレームを取得する毎に導出し、最新フレームにおける各画素の評価値と前記累積平均値との差の絶対値たる累積平均格差が、前記最大変化量Dに基づく基準値を上回る画素を、前記動体構成画素として擬制する環境的フィルタリング処理を演算手段を以て実行することで、影や雲の動きなどの影響で光が徐々に変化する状態、或いは屋外においては揺れた木を、屋内においてはモニタ画面のちらつきやカーテンの揺れなどを侵入者と明確に区別でき、その結果として動体と背景とを正確に識別し誤報を回避することができる低コストなシステムを提供することができる(図13参照)。
【0047】
又、前記自動的に閾値を学習する環境的フィルタリング処理を実行することによって、常に現場でのパラメータを実際の状況に合わせた環境的フィルタリングが可能となり、更に、前記種々の物体的フィルタリング処理を実行することによってより実状に即した効果的な画像処理が可能となる。そして、これらの具体的な効果を以て、変化する環境に対して正確に適応し、動体と背景とを低コストで正確に且つ高速に識別し得るコンピュータによる画像処理方法の提供が可能となる。
【図面の簡単な説明】
【図1】本発明によるコンピュータによる画像処理方法の処理手続きの一例を示すブロック図である。
【図2】本発明によるコンピュータによる画像処理方法を採用した監視システムの一例を示す概略説明図である。
【図3】本発明によるコンピュータによる画像処理方法を採用した監視システムの一例を示す概略説明図である。
【図4】本発明によるコンピュータによる画像処理方法を採用した監視システムのスキャンカメラとプレスキャンカメラの配設例を示す説明図である。
【図5】本発明によるコンピュータによる画像処理方法を採用した監視システムのスキャンカメラとプレスキャンカメラの配設例を示す説明図である。
【図6】本発明によるコンピュータによる画像処理方法を採用した監視システムのスキャンカメラとプレスキャンカメラの初期設定の一例を示す説明図である。
【図7】本発明によるコンピュータによる画像処理方法を採用した監視システムのプレスキャンカメラから取得した画像を映す受像器の一例を示す説明図である。
【図8】パノラマ画像ブロック光学系により撮像位置周辺の三次元空間を環状画像として結像させる一例を示した説明図である。
【図9】本発明によるコンピュータによる画像処理方法を実現するハードウェア構成の一例を示すブロック図である。
【図10】(イ)(ロ)従来のコンピュータによる画像処理方法の問題点の一例を示す最新原画像及び直前原画像との閾値差を表現した画像である。
【図11】(イ)(ロ)従来のコンピュータによる画像処理方法である背景減算法による最新原画像及び直前原画像との閾値差を表現した画像である。
【図12】(イ)(ロ)従来のコンピュータによる画像処理方法である背景減算法による直前の複数フレームを平均して得たゴースト効果を含む背景画像、及び当該背景画像と図11(イ)の最新原画像との閾値差を表現した画像である。
【図13】(イ)(ロ)(ハ)本発明によるコンピュータによる画像処理方法で採用された環境的フィルタリング処理の効果を示す最新原画像、動体の全てを検出したフィルタリング前の画像及びフィルタリング後の画像の一例を示したものである。
【図14】本発明によるコンピュータによる画像処理方法の動体検出処理の一例を説明するグラフである。
【図15】本発明によるコンピュータによる画像処理方法の学習処理の一例を説明するグラフである。
【図16】本発明によるコンピュータによる画像処理方法の学習処理の一例を説明するグラフである。
【符号の説明】
1 演算手段,2 動体検出処理,3 環境的フィルタリング処理,
4 パノラマ画像ブロック光学系,5 環状画像,
6 プレスキャンカメラ,7 スキャンカメラ,8 受像器,
9 パノラマ画像ブロック,10 受光素子,
11 物体的フィルタリング処理,12 物理量検出インターフェース,
13 固定画像制御装置,14 捕捉画像制御装置,15 メモリー,
16 動体構成画素,17 記録手段,18 動体ブロックの拾い出し,
19 連結・一体化処理,20 大きさフィルタ,
21 動きの方向と速度の演算,22 方向フィルタ,23 速度フィルタ,[0001]
BACKGROUND OF THE INVENTION
The present invention relates to an image processing method and an image processing apparatus for identifying a moving object and a background on optically acquired moving image data.
[0002]
[Prior art]
A video continuous image is composed of continuous still images called video frames (hereinafter referred to as frames). Although the frames that move back and forth on the time axis are very similar to each other, there are slight differences (front and back differences), and the motion of the subject is expressed by a series of the differences.
[0003]
The main purpose of the monitoring system, which is one aspect of the image processing apparatus, is to detect all moving objects that enter the space being monitored. In capturing moving objects that are the basis of the monitoring system, such a continuous video image in real time is used. Motion analysis is the basis. For example, in a monitoring system using a fixed camera such as an omnidirectional monitoring system using a circular image acquired using a panoramic image block (hereinafter referred to as PAL), the background itself does not operate on a continuous image in principle, and as a moving object. The objects to be detected are only intrusions from the outside, except for machines and instruments with disturbances or movements caused by wind or light. In this way, the fixed camera type monitoring system is advantageous in terms of cost and equipment in real-time motion analysis, and we decided to develop a moving object detection process suitable for the fixed camera type monitoring system. .
[0004]
As a first moving object detection process that has been used in the past, there is a process that simply subtracts two consecutive frames of a video image. This method is a good method for detecting a moving object existing in the field of view, but captures all unnecessary changes such as illumination noise, changes in natural light, and electrical noise as well as the moving object to be detected. Further, even if the difference in illuminance can be detected, a moving object that is buried in the background in color cannot be detected, and even if it is not buried in the background in color, it can not be detected except for the peripheral part that contains many color changes.
[0005]
As a result, for example, as shown in FIG. 10 (a), when a person wearing clothes of a single color moves from the left to the right in the image, in the above moving object detection process, as shown in FIG. Only the right side of the person is detected and a part of the background on the left side can be detected, but the rest is hidden on the left side of the person in the previous frame, and the background recognition for each frame cannot be performed. The moving object detection processing cannot be applied to commercial object tracking applications due to the above inaccuracy, but can be processed at a frame rate even with a relatively slow computer, so it can be said to be ideal for applications that simply detect motion.
[0006]
As a second moving object detection process that enables background recognition for each frame, there is a method of recording only the background of a certain screen as a reference background image by some method and then subtracting the reference background image from each frame. By using this method, it is easy to find a uniform moving body and remove small noises. However, since the background of the object to be subtracted is a moving image whose brightness and color change every moment, the difference between the background of the latest image newly acquired and the background of the basic background image acquired in advance increases over time. However, there is also a drawback that noise gradually increases.
[0007]
In order to solve this problem, a method of dynamically updating the background image over time, specifically, in a continuous video image, for each pixel, the pixel values of several frames going from the latest frame to the past. An average background extraction method that takes an average to create a background was adopted, and an attempt was made to perform a method that can be easily and quickly performed at a practical frame rate by using analog VLSI hardware together.
[0008]
[Problems to be solved by the invention]
However, if the average value of several frames is taken as the basic background image used for the moving object detection processing as described above, the basic background image obtained as a result of the average is the background and the moving object. The composite image (FIG. 12 (a)) becomes a ghost effect (refer to the image by the threshold difference between the composite image and the latest frame image in FIG. 12 (b)).
[0009]
The present invention has been made in view of the above circumstances, and is a computer-based image processing method and image that can be accurately adapted to a changing environment and can accurately and quickly identify moving objects and backgrounds at low cost. An object is to provide a processing apparatus.
[0010]
[Means for Solving the Problems]
An image processing method by a computer according to the present invention made to solve the above-mentioned problem is the image processing method for discriminating a moving object and a background on optically acquired moving image data. The moving body component derived from the evaluation value obtained by calculating the front-rear difference between the latest frame and the immediately preceding frame for each pixel value and weighting each pixel constituting the latest frame inversely proportional to the absolute value of the front-rear difference A moving body detection process for identifying a moving body constituent pixel based on a value based on a predetermined threshold value is executed by a calculation means.
[0011]
The moving image frame may be a frame at the time of input from an image sensor such as a CCD, or a frame at the time of display on the display of the receiver. The pixel value is a value of one output pixel and is a numerical value of information such as luminance and color. The weighting means reflecting the magnitude of the weight in the evaluation value in light of a certain rule such as a calculation formula such as inversely proportional to the absolute value of the difference between the front and rear. Recognizing moving body constituent pixels based on a threshold is, for example, a moving body component value obtained by subtracting an evaluation value from the pixel value, and a pixel having a value higher than the threshold is recognized as a moving body constituent pixel constituting a part of the moving body, This means that a portion having a value lower than the threshold is determined as a background component pixel.
[0012]
In order to avoid problems due to light disturbance, the cumulative average value of the evaluation values and the maximum change amount D within the time limit for each pixel constituting the frame are derived each time the latest frame is acquired, and each pixel in the latest frame is derived. The computing means executes an environmental filtering process that simulates a pixel whose cumulative average disparity, which is an absolute value of the difference between the evaluation value and the cumulative average value, exceeds a reference value based on the maximum change amount D as the moving object constituent pixel. In some cases. Note that the reference value based on the maximum change amount D is a value obtained by increasing or decreasing a certain ratio with respect to the maximum change amount.
[0013]
For the environmental filtering process, when the absolute value of the difference between the pixel value of each pixel in the latest frame and the cumulative average value is lower than a reference value based on the maximum change amount D, for example, it is lower than the reference value. The absolute value of the difference between the pixel value of each pixel in the latest frame and the cumulative average value exceeds the maximum change amount D. In some cases, for example, there may be included a learning process in which the maximum change amount D is increased by an amount corresponding to an amount exceeding the reference value.
[0014]
In addition, when the distance between the phase-separated moving bodies captured on the frame of the moving image is less than a predetermined proximity distance, the moving bodies are recognized as a single linked moving body, and the size of the phase-connected moving bodies is calculated. In some cases, the object filtering process including the process of excluding moving objects having a size below a predetermined threshold from the detection target is executed by the calculation means.
[0015]
Further, a moving object that is most similar in shape and size to the moving object captured on the frame of the moving image is searched on the immediately preceding frame, and the moving direction of the moving object is a direction unrelated to the purpose of the image processing. An object filtering process including a process of excluding a moving object from the detection target in the specific frame may be executed by the calculation means. Still further, a moving object having the closest shape and size to the moving object captured on the moving image frame is searched on the immediately preceding frame, and the moving speed of the moving object is unrelated to the purpose of the image processing. There is a case where the object filtering process including the process of excluding the moving object from the detection target in the specific frame is executed by the calculation means.
[0016]
In order to solve the above problems, a computer-based image processing apparatus according to the present invention obtains a fixed camera that forms an image of a three-dimensional space around the imaging position as a circular image by a PAL optical system, and the fixed camera. A fixed image control device including a computing means for detecting a moving object by any one of the above-described image processing methods using a computer, and a single image oriented in the direction of existence of the moving object to be examined recognized by the fixed image control device. A captured image control apparatus including a unidirectional zoom optical system scan camera and a computer system that stores a video image acquired by the scan camera is provided.
[0017]
DETAILED DESCRIPTION OF THE INVENTION
Hereinafter, an embodiment of an image processing method by a computer according to the present invention (hereinafter referred to as an image processing method) will be described based on a block diagram of FIG. 1 while showing an example of a monitoring system as an image processing apparatus.
[0018]
In this example, a fixed camera (hereinafter referred to as a prescan camera 6) that forms a three-dimensional space extending 360 ° around the imaging position as an annular image 5 by the PAL optical system 4 shown in FIG. 8, and the prescan camera. Fixed image receiver 8 (see FIG. 7) for displaying the video image acquired in step 6 and fixed image control including computing means 1 by a computer system for detecting moving objects from the video image acquired from the prescan camera 6 A PZT scan camera that automatically enlarges and captures the moving object with a zoom optical system having a high unidirectional directivity in the direction of existence of the moving object to be examined recognized by the apparatus 13 and the fixed image control apparatus 13 ( Hereinafter, this is referred to as a scan camera 7.), a receiver (not shown) for displaying a video image acquired by the scan camera 7, and the Constructed comprises a captured image control device 14 which includes a computer system for storing and processing of Deo image (see FIGS. 2 and 9). This configuration eliminates the problem of the PAL system, which is the resolution limitation of the CCD camera.
[0019]
The PAL optical system 4 has a vertical viewing angle limited to about 50 to 70 degrees. However, since the horizontal viewing field is large, it is necessary to install multiple cameras or move the cameras mechanically when photographing a wide area. There is an advantage that a clear wide-angle image can be obtained even with a small-sized PAL. Because of such PAL characteristics, it is widely used in monitoring systems for the purpose of detecting intruders. The panoramic image block 9 includes a front light-shielding surface a at the front center, a front light-transmitting surface b at the front peripheral edge, a rear light-shielding surface c at the rear peripheral edge, and a rear light-transmitting surface d at the rear central part. The rear light-shielding surface c is a reflecting mirror that can collect incident light from the front light-transmitting surface b through the rotary body and gather on the front light-shielding surface a. The light shielding surface a is a reflecting mirror capable of collecting the reflected light from the rear light shielding surface c through the rotating body and collecting it on the rear light transmitting surface d (see FIG. 8).
[0020]
When the three-dimensional space is projected onto the two-dimensional plane by PAL, all the distance information is lost, and thus the exact position of the object cannot be specified only from the field of view of the pre-scan camera 6 by the PAL optical system 4, but the annular image 5 Only the planar incident angle can be specified from the pixel position of the light receiving element 10 connecting the two. That is, by placing the daylighting part of the PAL optical system 4 of the pre-scan camera 6 and the scan camera 7 as close as possible, the scan camera 7 can be accurately directed in the direction of the moving object detected by the PAL optical system 4.
[0021]
From experience, when the moving object is at least 4 m away from the daylighting part of the PAL optical system 4 of the scan camera 7 or the pre-scan camera 6, the scan camera 7 and the PAL optical system of the pre-scan camera 6 as shown in FIG. 4 is about 40 cm away, there is no practical problem. However, the closer the mutual distance is, the higher the moving object capture accuracy, so ideally on the scan camera 7 as shown in FIG. By arranging the pivot axis of the scan camera 7 as the optical axis e of the PAL optical system 4, the scan camera 7 does not enter the field of view of the pre-scan camera 6 by the PAL optical system 4 and the orientation on the annular image 5 remains unchanged. It can be used as the orientation of the scan camera 7, and does not deteriorate the efficiency of the moving object detection processing 2.
[0022]
The system is initialized after the proper arrangement as described above. As an initial setting, an angle difference between the origin angle of the scan camera 7 and the 0 degree phase of the PAL (see FIG. 6; ideally 0 degree) is measured and registered in the fixed image control device 13 and the captured image control device 14. To do. Even when a normal lens optical system is used instead of the PAL optical system (see FIG. 3), the difference is that the moving object is detected with a narrow viewing angle and the horizontal axis of the rectangular coordinate system is converted into an angle. A similar system configuration can be achieved with just this. When such a configuration is adopted, an improvement in processing efficiency can be expected as in the masking process.
[0023]
Hereinafter, the image processing method exemplified below as employed in the monitoring system described above is a moving object detection process that performs statistical change detection on video images and extracts portions with changes (background detection from a different perspective). 2) Environmental filtering processing 3 that removes the effects of changes in lighting and various noises from the results, and object filtering that removes objects with unplanned size and operating characteristics This is an image processing method configured by processing 11 (see FIG. 1).
[0024]
The moving object detection process 2 in the image processing method is based on an empirical fact that a change in pixel value due to a disturbance generated in a part of the background is smaller in frequency and magnitude than a change in the pixel value of a part of the moving object. As a result, the moving object detection process is performed by giving a large weight to a portion with little motion on the background and giving a small weight to a portion with high motion that changes every frame.
[0025]
Specifically, first, the pixel value P1 of each pixel in each frame of the image captured by the prescan camera 6 is detected from the light receiving element (CCD or the like) 10 of the prescan camera 6 using a physical quantity such as an A / D converter. Sampled via the interface 12 (see FIG. 9), the computing means 1 obtains the absolute value | P1-P0 | of the difference between the pixel value P1 of the latest frame and the pixel value P0 of the immediately preceding frame for each pixel, and the latest frame Is multiplied by an average weight r that determines the degree of change of each frame as shown in the following equation (α) to obtain the weight w for the moving object. Then, for each pixel, the following expression (β) including the weight w is executed by the calculation means 1, and the weighting inversely proportional to the absolute value | P1−P0 | The applied evaluation value T1 is obtained.
[0026]
w = r * | P1-P0 | ... (α)
T1 = (w * T0 + P1) / (w + 1) (.)
here
r is a proportionality constant (average weight) for performing the weighting,
P0 is the pixel value of the pixel existing at the coordinates (x, y) of the immediately preceding frame,
P1 is the pixel value of the pixel present at the coordinates (x, y) of the latest frame,
T0 is an evaluation value of a pixel existing at coordinates (x, y) in the immediately preceding frame,
T1 is an evaluation value of a pixel existing at coordinates (x, y) in the latest frame,
x is the horizontal axis of the frame,
y is the vertical axis of the frame,
It is.
[0027]
[Table 1]
Figure 0003616355
[0028]
Every time a new frame is acquired, the weighting in the immediately preceding frame is updated (from the upper part to the lower part in the table). An evaluation value T1 with an increased disparity from the sparse substantial background portion is given for each pixel every time the latest frame is acquired. Therefore, by subtracting the evaluation value T1 from the pixel value P1 of the latest frame by the calculating means 1 and taking the absolute value, the moving body component value E1 of the latest frame from which most of the background components have been removed is obtained for each pixel. Can do. Then, the obtained moving body component value E1 is compared with a predetermined threshold (see Table 1 and FIG. 14), and pixels larger than that are extracted as moving body constituent pixels 16, and arranged on one frame based on the position coordinates. A virtual frame simulating the state is expressed in the memory 15 of the computing means 1 and the arithmetic unit calculates the coordinate of the moving object block (the block constituted by the set of moving object constituting pixels based on the respective position coordinates) in the virtual frame. The position and size of only the moving object can be determined by performing the above 1.
[0029]
Thus, according to the above-described method of performing weighting according to the frequency of movement, not only can the influence of the ghost (FIGS. 12A and 12B) caused by the assimilation of the moving object with the background be eliminated, Even for an object that could not be detected by the conventional moving object detection process, that is, an object that has not moved for a while or an object that moves slowly, a stationary time is set in advance and a frame sampling time suitable for the set time is set. Thus, weighting according to the frequency of movement is performed, and the moving object can be detected without any problem.
[0030]
When the moving object detection process is performed with the appropriate setting time and an appropriate threshold value is set, a group of moving object blocks extracted by the moving object component E1 is recognized as one unit object, and one unit is also used in the processing process. Will be processed as an object. Then, by using the moving body component value E1 from which most of the background components that hinder the reduction of the processing time related to moving body detection are used, the processing target is arranged, and the processing efficiency and practicality are greatly improved.
[0031]
Next, among the filtering processes used in this example, an environmental filtering process 3 for removing noise caused by a change in illuminance existing around us (local brightness change) will be described. For example, the processing compares the average luminance of the background of the immediately preceding frames and the luminance of the background of the latest frame for each pixel on the frame, and determines whether or not the luminance difference exceeds a predetermined threshold in the area. It detects whether a physically significant change has occurred. Since the transition function of the daily illuminance change is almost linear, it is possible to appropriately set a threshold for a significant change based on the average luminance obtained by extraction in the moving object detection process 2 or the like. .
[0032]
Specifically, the cumulative value (accumulated evaluation value in Table 2) and average value (in Table 2) for all the pixels constituting each frame from the start of frame acquisition to the latest frame acquisition in the video image. The average evaluation value TA), the change amount of the preceding and following frames (the change amount immediately before in Table 2), and the maximum change amount therebetween (the evaluation value maximum change amount D in Table 2) are derived by the calculation means 1, and the recording means 17 of the system. Save to.
[0033]
Therefore, in the calculation means 1, the absolute value of the difference between the evaluation value T1 of the latest frame and the average evaluation value TA including the latest frame (the average evaluation value difference in the table) is set to a predetermined detection sensitivity s%. If the pixel is within the premium change amount TS that is increased to the evaluation value maximum change amount D, the pixel is not considered to be a pixel (pseudo control pixel) having a high probability of being a part of a moving object that includes a physically significant change. If the average evaluation value difference is larger than the additional change amount TS, the change at that time is the evaluation value obtained from the frame acquisition history so far. It is judged that it is much larger than the maximum change amount D, and it is marked as a pseudo pixel having a high probability of being a part of the moving object (see Table 2, FIG. 15).
[0034]
[Table 2]
Figure 0003616355
[0035]
All the pixels marked as pseudo-pixels are recognized as a block of moving blocks in the same frame by the moving body detection processing 2 in the coordinate calculation of the moving block based on the virtual frame set in the memory 15 of the computing means 1. If the distance between the object to be phase-separated and the pseudo-pixels is less than a predetermined distance (adjustable settings), the detection method for these detection areas is filled or binary form. By performing connection / integration processing such as a blockage method by the calculation means 1, it is handled as a group of connected moving object blocks.
[0036]
In the environmental filtering process 3, the computing means 1 determines that the maximum evaluation value difference (| T1-TA |) for the evaluation value T1 is greater than the maximum evaluation value variation D so far. A learning process is performed in which the change amount D is updated by a value obtained by multiplying a preset sensitivity coefficient (“1” in this example) by an increase in the maximum change amount D, and the average evaluation value difference When the absolute value of is less than the maximum change amount D, the maximum change amount D is updated by decreasing the value obtained by multiplying a preset sensitivity coefficient by the increment of the maximum change amount D. (In this example, it is performed as a regular process of decreasing by a fixed rate (or amount) per unit time). The speed at which the maximum change amount D is increased or decreased can be adjusted to an appropriate value by increasing or decreasing the sensitivity coefficient, and the sensitivity for determining whether or not to increase the maximum change amount D is: It can be adjusted by appropriately increasing or decreasing the detection sensitivity s% (see Table 2 and FIG. 15).
[0037]
The environmental filtering process 3 can be performed also on the moving body component value E1. In this case, the calculation means 1 determines that the average moving body component value difference (| E1-EA |), which is the difference between the moving body component value E1 and the average moving body component value EA, is larger than the maximum moving body component value variation L so far. Performs a learning process of updating the maximum change amount L by increasing a value obtained by multiplying a preset sensitivity coefficient (in this example, “1”) by the increase amount of the maximum change amount L. When the average moving body component value difference (| E1-EA |) is smaller than the maximum change amount L, a value obtained by multiplying the maximum change amount L by a decrease in the maximum change amount L by a preset sensitivity coefficient. A learning process is performed in which the data is updated with a decrease. Also in this case, the speed at which the maximum change amount L is increased or decreased can be adjusted to an appropriate value by increasing or decreasing the sensitivity coefficient, and a determination is made as to whether or not the maximum change amount L is to be increased. The sensitivity to be adjusted can be adjusted by appropriately increasing or decreasing the detection sensitivity s% (see Table 3 and FIG. 16).
[0038]
[Table 3]
Figure 0003616355
[0039]
Such an environment filtering process 3 is performed on all the pixels constituting the frame, and the change in illuminance of the area composed of the pixels that are not marked as pseudo-pixels is determined to be noise, and the pixels constituting the moving object block By excluding it from the recognition target, the processing contents can be rationalized. In addition, D or L is automatically set to a value according to the actual situation by the learning process, and an appropriate reference value is always given to enable accurate noise removal.
[0040]
In this embodiment, some object filtering processes are further performed by the computing means 1 depending on the spatial or temporal characteristics of the object.
[0041]
A moving object block is picked up 18 by a virtual frame set in the memory 15 of the computing means 1 and subjected to a connection / integration process 20 by moving object block coordinate calculation, and then the size of one object is calculated by the coordinate calculation. Further, the calculation means 1 performs an object filtering process 11 including a size filter 19 that excludes a small object below the reference from a recognition target as a pixel constituting the moving object block. Even when a small animal or a distant object crosses the frame, the object filtering process 11 can remove an object that is extremely smaller than the object to be detected from the object of the moving object detection process 2.
[0042]
Once the moving object block is recognized by the coordinate calculation by the computing means 1, the traveling direction can be derived and the trajectory of the motion can be predicted. However, the existence of the moving object block is detected in time for deriving the traveling direction. Must be tracked. Therefore, in this example, the moving body component value E0 obtained in the immediately preceding frame is compared with a predetermined threshold (see FIG. 14), and a larger pixel is extracted, and a virtual frame arranged as one frame is calculated. 1 is set in the memory 15, and block matching (sometimes called binary correlation, pattern matching, or template matching) is performed, and the moving object block that is closest to the moving object block for which the traveling direction is derived is the latest The movement vector of the moving object block is calculated by the coordinate calculation by the calculation means 1 based on the change of the position coordinate before and after the frame, and the direction (invalid) irrelevant to the purpose of the image processing (monitoring system etc.) For example, a direction filter 22 is included that excludes an object moving in the detection direction from the detection target if the right is an effective direction. Management is performed by the operation means 1.
[0043]
When the moving direction of the moving object is found as described above, the relative speed of the moving object block can be derived. Therefore, it is possible to perform the object filtering process 11 including the speed filter 23 that removes the operation target greatly deviating from the speed predicted as the detection target speed based on the speed by the calculation unit 1. Tables 1, 2 and 3 show the values for 50 frames from the start of frame acquisition separately for each related process.
[0044]
In the image processing, in addition to the filtering processing, the calculation means 1 performs masking processing in which only a specific region of the entire frame related to the camera field of view is set as a region of interest (ROI) for detection. Good image processing becomes possible.
[0045]
【The invention's effect】
According to the image processing method and the image processing apparatus by the computer configured as described above, the moving body component derived from the evaluation value obtained by applying the weighting inversely proportional to the absolute value of the front-rear difference to each pixel constituting the latest frame. The background component is evaluated according to the passage of time, even in the outdoors where the brightness and color of the background itself changes every time, by performing processing for certifying moving object constituent pixels based on a predetermined threshold value from the value. As a result, the ghost effect that has been a problem with the method of taking the average value of several frames as the basic background image used for motion detection processing is also eliminated. Is done.
[0046]
Further, for each pixel constituting the frame, the cumulative average value of the evaluation value and the maximum change amount D within the time limit are derived every time the latest frame is acquired, and the evaluation value of each pixel in the latest frame, the cumulative average value, By executing an environmental filtering process that simulates, as a moving object constituent pixel, a pixel whose cumulative average disparity, which is an absolute value of the difference, exceeds a reference value based on the maximum change amount D, motion of shadows and clouds It is possible to clearly distinguish a tree that has been swaying under the influence of the light from the outside, or a tree that has been swaying outdoors, and a flickering monitor screen or a shake of a curtain from indoors. A low-cost system that can accurately identify and avoid false alarms can be provided (see FIG. 13).
[0047]
In addition, by executing the environmental filtering process that automatically learns the threshold value, it is possible to always perform the environmental filtering that matches the actual parameters in the field, and further executes the various object filtering processes. By doing so, it is possible to perform effective image processing that is more realistic. With these specific effects, it is possible to provide a computer-based image processing method that can be accurately adapted to a changing environment and can accurately identify moving objects and backgrounds at low cost and at high speed.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an example of a processing procedure of a computer image processing method according to the present invention.
FIG. 2 is a schematic explanatory diagram showing an example of a monitoring system employing a computer image processing method according to the present invention.
FIG. 3 is a schematic explanatory diagram showing an example of a monitoring system employing a computer image processing method according to the present invention.
FIG. 4 is an explanatory diagram showing an example of arrangement of a scan camera and a pre-scan camera of a monitoring system adopting an image processing method by a computer according to the present invention.
FIG. 5 is an explanatory diagram showing an arrangement example of a scan camera and a pre-scan camera of a monitoring system adopting an image processing method by a computer according to the present invention.
FIG. 6 is an explanatory diagram showing an example of initial settings of a scan camera and a pre-scan camera of a monitoring system adopting an image processing method by a computer according to the present invention.
FIG. 7 is an explanatory diagram showing an example of a receiver that displays an image acquired from a pre-scan camera of a monitoring system that employs an image processing method by a computer according to the present invention.
FIG. 8 is an explanatory diagram showing an example in which a panoramic image block optical system forms an image of a three-dimensional space around an imaging position as an annular image.
FIG. 9 is a block diagram showing an example of a hardware configuration for realizing an image processing method by a computer according to the present invention.
FIGS. 10A and 10B are images representing a threshold difference between the latest original image and the immediately preceding original image, showing an example of the problem of the conventional image processing method by a computer.
FIGS. 11A and 11B are images representing threshold differences between the latest original image and the immediately preceding original image by a background subtraction method, which is a conventional computer image processing method.
FIGS. 12A and 12B are a background image including a ghost effect obtained by averaging a plurality of immediately preceding frames by a background subtraction method, which is a conventional computer image processing method, and the background image and FIG. This is an image expressing a threshold difference from the latest original image.
FIGS. 13A and 13B are the latest original image showing the effect of the environmental filtering processing employed in the computer image processing method according to the present invention, the image before filtering in which all moving objects are detected, and the image after filtering. An example of the image is shown.
FIG. 14 is a graph illustrating an example of a moving object detection process of an image processing method by a computer according to the present invention.
FIG. 15 is a graph illustrating an example of learning processing of an image processing method by a computer according to the present invention.
FIG. 16 is a graph illustrating an example of learning processing of an image processing method by a computer according to the present invention.
[Explanation of symbols]
1 computing means, 2 moving object detection processing, 3 environmental filtering processing,
4 panoramic image block optical system, 5 ring image,
6 pre-scan cameras, 7 scan cameras, 8 receivers,
9 panoramic image block, 10 light receiving element,
11 object filtering process, 12 physical quantity detection interface,
13 fixed image control device, 14 capture image control device, 15 memory,
16 moving object constituent pixels, 17 recording means, 18 picking up moving object blocks,
19 connection / integration processing, 20 size filter,
21 Calculation of motion direction and speed, 22 direction filter, 23 speed filter,

Claims (5)

光学的に取得された動画データ上で動体と背景とを識別する為の画像処理方法において、
固定カメラの受光素子から採取した前記動画のフレームを構成する画素それぞれのピクセル値について最新フレームと直前フレーム間の前後差を求め、最新フレームを構成する各画素それぞれのピクセル値に対し当該前後差の絶対値に反比例した重み付けを施して得た評価値を、最新フレームのピクセル値から減じて動体成分値を導出し、得られた動体成分値を所定の閾値と比較して動体構成画素として抽出し、その位置座標に基づいて一個のフレーム上に配置した仮想フレームをメモリー内に表現する動体検出処理(2)を演算手段(1)により実行するコンピュータによる画像処理方法。
In an image processing method for identifying a moving object and a background on optically acquired moving image data,
For each pixel value of pixels constituting the moving image frame taken from the light receiving element of the fixed camera obtains respective differential between the latest frame and the previous frame, the front and rear differential For each pixel the respective pixel values forming the latest frame The evaluation value obtained by weighting inversely proportional to the absolute value is subtracted from the pixel value of the latest frame to derive the moving body component value, and the obtained moving body component value is compared with a predetermined threshold value and extracted as a moving body constituent pixel. A computer-based image processing method for executing a moving object detection process (2) in which a virtual frame arranged on one frame based on the position coordinates is represented in a memory by a calculation means (1).
光学的に取得された動画データ上で動体と背景とを識別する為の画像処理方法において、
固定カメラの受光素子から採取した前記動画のフレームを構成する画素それぞれのピクセル値について最新フレームと直前フレーム間の前後差を求め、下記式(α),及び式(β)を用い、最新フレームを構成する各画素それぞれのピクセル値に対し当該前後差の絶対値に反比例した重み付けを施して得た評価値を、最新フレームのピクセル値から減じて動体成分値を導出し、得られた動体成分値を所定の閾値と比較して動体構成画素として抽出し、その位置座標に基づいて一個のフレーム上に配置した仮想フレームをメモリー内に表現する動体検出処理(2)を演算手段(1)により実行するコンピュータによる画像処理方法。
w=r*|P1−P0| ・・・・(α)
T1=(w*T0+P1)/(w+1) ・・・・(β)
ここで
rは、前記重み付けを行う際の比例定数(平均重み)、
P0は、直前フレームの座標(x、y)に存在する画素のピクセル値、
P1は、最新フレームの座標(x、y)に存在する画素のピクセル値、
T0は、直前フレームにおける座標(x、y)に存在する画素の評価値、
T1は、最新フレームにおける座標(x、y)に存在する画素の評価値、
xは、フレームの横軸、
yは、フレームの縦軸、
である。
In an image processing method for identifying a moving object and a background on optically acquired moving image data,
For each pixel value constituting the moving image frame taken from the light receiving element of the fixed camera, the difference between the latest frame and the immediately preceding frame is obtained , and the latest frame is calculated using the following formula (α) and formula (β). an evaluation value obtained by applying weighting inversely proportional to the absolute value of the difference across for each pixel the respective pixel values forming, derives the motion component value is subtracted from the most recent frame pixel values, obtained body component values Is extracted as a moving object constituent pixel by comparing with a predetermined threshold value, and a moving object detection process (2) for expressing a virtual frame arranged on one frame in the memory based on the position coordinates is executed by the computing means (1). An image processing method by a computer.
w = r * | P1-P0 |... (α)
T1 = (w * T0 + P1) / (w + 1) (... (Β)
Here, r is a proportionality constant (average weight) for performing the weighting,
P0 is the pixel value of the pixel existing at the coordinates (x, y) of the immediately preceding frame,
P1 is the pixel value of the pixel present at the coordinates (x, y) of the latest frame,
T0 is an evaluation value of a pixel existing at coordinates (x, y) in the immediately preceding frame,
T1 is an evaluation value of a pixel existing at coordinates (x, y) in the latest frame,
x is the horizontal axis of the frame,
y is the vertical axis of the frame,
It is.
フレームを構成する画素毎に前記評価値の累積平均値及び制限時間内の最大変化量Dを最新フレームを取得する毎に導出し、最新フレームにおける各画素の評価値と前記累積平均値との差の絶対値たる累積平均格差が、前記最大変化量Dに基づく基準値を上回る画素を、前記動体構成画素として擬制する環境的フィルタリング処理(3)を演算手段(1)により実行する前記請求項1又は請求項2のいずれかに記載のコンピュータによる画像処理方法。The cumulative average value of the evaluation values and the maximum change amount D within the time limit are derived for each pixel constituting the frame every time the latest frame is acquired, and the difference between the evaluation value of each pixel in the latest frame and the cumulative average value absolute value serving accumulated average disparity, the pixels exceeding the maximum change amount reference value based on D, the claim executed by environmental filtering process of fictitious (3) a computation means (1) as the moving object pixels constituting 1 An image processing method by a computer according to claim 2 . 前記累積平均格差が前記最大変化量Dに基づく基準値を下回る場合には、最大変化量Dを減少させる形で更新し、逆に前記累積平均格差が前記最大変化量Dに基づく基準値を上回る場合には、最大変化量Dを増加させる形で更新する学習処理を含んだ環境的フィルタリング処理(3)を演算手段(1)により実行する前記請求項3に記載のコンピュータによる画像処理方法。 When the cumulative average disparity is less than the reference value based on the maximum change amount D, the maximum change amount D is updated to decrease, and conversely, the cumulative average disparity exceeds the reference value based on the maximum change amount D. In this case, the computer-based image processing method according to claim 3, wherein the computing means (1) executes an environmental filtering process (3) including a learning process for updating the maximum change amount D in an increasing manner. PAL光学系(4)により撮像位置周辺360°に亘る三次元空間を環状画像(5)として結像させる固定カメラと、当該固定カメラから取得したビデオ画像中から、前記請求項1乃至請求項4のいずれかのコンピュータによる画像処理方法によって動体を検出する為の演算手段(1)を含む固定画像制御装置(13)と、当該固定画像制御装置(13)により認識した精査すべき動体の存在方向を向く単一指向性のズーム光学系スキャンカメラ(7)と、当該スキャンカメラ(7)で取得したビデオ画像の保存を行うコンピュータシステムを含む捕捉画像制御装置(14)を具備した画像処理装置。A fixed camera that forms an image of a three-dimensional space extending around 360 ° around the imaging position as a ring image (5) by the PAL optical system (4), and a video image acquired from the fixed camera, the above claims 1 to 4. A fixed image control device (13) including a calculation means (1) for detecting a moving object by an image processing method using any one of the computers, and a moving object to be examined recognized by the fixed image control device (13) Unidirectional zoom optical system scan camera (7) facing the camera, and a captured image control device (14) including a computer system that stores a video image acquired by the scan camera (7).
JP2001188416A 2001-06-21 2001-06-21 Image processing method and image processing apparatus by computer Expired - Fee Related JP3616355B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2001188416A JP3616355B2 (en) 2001-06-21 2001-06-21 Image processing method and image processing apparatus by computer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2001188416A JP3616355B2 (en) 2001-06-21 2001-06-21 Image processing method and image processing apparatus by computer

Publications (2)

Publication Number Publication Date
JP2003006659A JP2003006659A (en) 2003-01-10
JP3616355B2 true JP3616355B2 (en) 2005-02-02

Family

ID=19027521

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2001188416A Expired - Fee Related JP3616355B2 (en) 2001-06-21 2001-06-21 Image processing method and image processing apparatus by computer

Country Status (1)

Country Link
JP (1) JP3616355B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2006333133A (en) 2005-05-26 2006-12-07 Sony Corp Imaging apparatus, imaging method, program, program recording medium, and imaging system
JP5471123B2 (en) * 2009-07-29 2014-04-16 カシオ計算機株式会社 Image monitoring system, program, and image display method
US11039081B2 (en) * 2019-07-17 2021-06-15 Pixart Imaging Inc. Image sensor capable of eliminating rolling flicker and adjusting frame rate

Also Published As

Publication number Publication date
JP2003006659A (en) 2003-01-10

Similar Documents

Publication Publication Date Title
US8300890B1 (en) Person/object image and screening
Boult et al. Frame-rate omnidirectional surveillance and tracking of camouflaged and occluded targets
CN104902246B (en) Video monitoring method and device
JP6109185B2 (en) Control based on map
US8175336B2 (en) Target tracker
KR101071352B1 (en) Apparatus and method for tracking object based on PTZ camera using coordinate map
JP6428266B2 (en) COLOR CORRECTION DEVICE, COLOR CORRECTION METHOD, AND COLOR CORRECTION PROGRAM
US10713798B2 (en) Low-complexity motion detection based on image edges
CN109299703B (en) Method and device for carrying out statistics on mouse conditions and image acquisition equipment
US20070058717A1 (en) Enhanced processing for scanning video
WO2011021128A2 (en) Method and system for image analysis
CN111601011A (en) Automatic alarm method and system based on video stream image
CN119964252B (en) Monitoring screen area candid photographing detection method based on real-time visual identification
CN112954188B (en) Human eye perception imitating active target snapshot method and device
CN107635099B (en) Human body induction double-optical network camera and security monitoring system
CN112613568A (en) Target identification method and device based on visible light and infrared multispectral image sequence
CN107862713A (en) Video camera deflection for poll meeting-place detects method for early warning and module in real time
JP6275022B2 (en) Image monitoring device
JP3616355B2 (en) Image processing method and image processing apparatus by computer
JP4559043B2 (en) Image monitoring device
JP6585668B2 (en) Object detection device
JPH0944681A (en) Moving object area detection device
CN106898014B (en) An Intrusion Detection Method Based on Depth Camera
JP2002027449A (en) Moving object identification method and moving object identification device
JPH05300516A (en) Animation processor

Legal Events

Date Code Title Description
A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20040713

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20040811

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20041104

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20081112

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20091112

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091112

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20101112

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20111112

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20111112

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20121112

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20131112

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees