JP2004303014A - Gesture recognition device, its method and gesture recognition program - Google Patents

Gesture recognition device, its method and gesture recognition program Download PDF

Info

Publication number
JP2004303014A
JP2004303014A JP2003096520A JP2003096520A JP2004303014A JP 2004303014 A JP2004303014 A JP 2004303014A JP 2003096520 A JP2003096520 A JP 2003096520A JP 2003096520 A JP2003096520 A JP 2003096520A JP 2004303014 A JP2004303014 A JP 2004303014A
Authority
JP
Japan
Prior art keywords
gesture
posture
target person
gesture recognition
hand position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2003096520A
Other languages
Japanese (ja)
Other versions
JP4153819B2 (en
Inventor
Nobuo Higaki
信男 檜垣
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.)
Honda Motor Co Ltd
Original Assignee
Honda Motor 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 Honda Motor Co Ltd filed Critical Honda Motor Co Ltd
Priority to JP2003096520A priority Critical patent/JP4153819B2/en
Priority to DE602004006190T priority patent/DE602004006190T8/en
Priority to EP04006728A priority patent/EP1477924B1/en
Priority to US10/805,392 priority patent/US7593552B2/en
Publication of JP2004303014A publication Critical patent/JP2004303014A/en
Application granted granted Critical
Publication of JP4153819B2 publication Critical patent/JP4153819B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide a gesture recognition device capable of reducing arithmetic processing in performing posture recognition or gesture recognition. <P>SOLUTION: A gesture recognition device 4 is provided with: a face and finger position detection means for detecting a face position and finger positions in the real space of a target person; and a posture/gesture recognition means 42 for recognizing the posture or gesture of the target person on the basis of the face position and finger positions detected by the face and finger position detection means 41. The posture/gesture recognition means 42 recognizes the posture or gesture of the target person by using the "Bayes method" which is one of statistical methods. <P>COPYRIGHT: (C)2005,JPO&NCIPI

Description

【0001】
【発明の属する技術分野】
本発明は、カメラによって対象人物を撮像した画像から、対象人物のポスチャ(姿勢)又はジェスチャ(動作)を認識するための装置、方法及びプログラムに関する。
【0002】
【従来の技術】
従来、カメラによって対象人物を撮像した画像から、対象人物の動きの特徴を示す点(特徴点)を検出し、その特徴点に基づいて対象人物のジェスチャを推定するジェスチャ認識手法が数多く提案されている(例えば、特許文献1参照)。
【0003】
【特許文献1】
特開2000−149025号公報(第3−6頁、第1図)
【0004】
【発明が解決しようとする課題】
しかし、従来のジェスチャ認識手法では、対象人物のジェスチャを認識する際に、前記特徴点を一々検出する必要があるため、計算量が多くなり演算処理の負担が増加するという問題があった。
【0005】
本発明は、以上のような問題点に鑑みてなされたものであり、ポスチャ認識又はジェスチャ認識を行う際の演算処理を軽減することができるジェスチャ認識装置、ジェスチャ認識方法及びジェスチャ認識プログラムを提供することを目的とする。
【0006】
【課題を解決するための手段】
請求項1に記載のジェスチャ認識装置は、カメラによって対象人物を撮像した画像から、前記対象人物のポスチャ又はジェスチャを認識するための装置であって、前記画像から生成した前記対象人物の輪郭情報と肌色領域情報に基づいて、前記対象人物の実空間上における顔位置と手先位置を検出する顔・手先位置検出手段と、前記顔位置と前記手先位置から、前記顔位置を基準とした際の前記手先位置の所定数フレームにおける平均及び分散を特徴ベクトルとして求め、前記特徴ベクトルに基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の事後分布の確率密度を計算し、各フレームにおける前記事後分布の確率密度が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識するポスチャ・ジェスチャ認識手段とを備えたことを特徴とする。
【0007】
この装置は、まず、顔・手先位置検出手段によって、画像から生成した対象人物の輪郭情報と肌色領域情報に基づいて、対象人物の実空間上における顔位置と手先位置を検出する。次に、ポスチャ・ジェスチャ認識手段によって、顔位置と手先位置から、顔位置を基準とした際の手先位置の所定数フレーム(例えば5フレーム)における平均及び分散を「特徴ベクトル」として求める。そして、求めた「特徴ベクトル」に基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の「事後分布の確率密度」を計算し、各フレームにおける「事後分布の確率密度」が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識する。
【0008】
なお、ポスチャ・ジェスチャ認識手段は、所定数フレームにおいて、同一のポスチャ又はジェスチャを所定回数以上認識できた場合にのみ、前記同一のポスチャ又はジェスチャを認識できたと判断する(請求項2)。
【0009】
請求項3に記載のジェスチャ認識方法は、カメラによって対象人物を撮像した画像から、前記対象人物のポスチャ又はジェスチャを認識するための方法であって、前記画像から生成した前記対象人物の輪郭情報と肌色領域情報に基づいて、前記対象人物の実空間上における顔位置と手先位置を検出する顔・手先位置検出ステップと、前記顔位置と前記手先位置から、前記顔位置を基準とした際の前記手先位置の所定数フレームにおける平均及び分散を特徴ベクトルとして求め、前記特徴ベクトルに基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の事後分布の確率密度を計算し、各フレームにおける前記事後分布の確率密度が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識するポスチャ・ジェスチャ認識ステップとを含むことを特徴とする。
【0010】
この方法は、まず、顔・手先位置検出ステップにおいて、画像から生成した対象人物の輪郭情報と肌色領域情報に基づいて、対象人物の実空間上における顔位置と手先位置を検出する。次に、ポスチャ・ジェスチャ認識ステップにおいて、顔位置と手先位置から、顔位置を基準とした際の手先位置の所定数フレームにおける平均及び分散を「特徴ベクトル」として求める。そして、求めた「特徴ベクトル」に基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の「事後分布の確率密度」を計算し、各フレームにおける「事後分布の確率密度」が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識する。
【0011】
請求項4に記載のジェスチャ認識プログラムは、カメラによって対象人物を撮像した画像から、前記対象人物のポスチャ又はジェスチャを認識するために、コンピュータを、前記画像から生成した前記対象人物の輪郭情報と肌色領域情報に基づいて、前記対象人物の実空間上における顔位置と手先位置を検出する顔・手先位置検出手段、前記顔位置と前記手先位置から、前記顔位置を基準とした際の前記手先位置の所定数フレームにおける平均及び分散を特徴ベクトルとして求め、前記特徴ベクトルに基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の事後分布の確率密度を計算し、各フレームにおける前記事後分布の確率密度が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識するポスチャ・ジェスチャ認識手段、として機能させることを特徴とする。
【0012】
このプログラムは、まず、顔・手先位置検出手段によって、画像から生成した対象人物の輪郭情報と肌色領域情報に基づいて、対象人物の実空間上における顔位置と手先位置を検出するする。次に、ポスチャ・ジェスチャ認識手段によって、顔位置と手先位置から、顔位置を基準とした際の手先位置の所定数フレーム(例えば5フレーム)における平均及び分散を「特徴ベクトル」として求める。そして、求めた「特徴ベクトル」に基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の「事後分布の確率密度」を計算し、各フレームにおける「事後分布の確率密度」が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識する。
【0013】
【発明の実施の形態】
以下、本発明の実施の形態について、適宜図面を参照して詳細に説明する。ここでは、まず、本発明に係るジェスチャ認識装置を含むジェスチャ認識システムの構成について図1〜図13を参照して説明し、その後、ジェスチャ認識システムの動作について図14及び図15を参照して説明する。
【0014】
(ジェスチャ認識システムAの構成)
まず、本発明に係るジェスチャ認識装置4を含むジェスチャ認識システムAの全体構成について図1を参照して説明する。図1はジェスチャ認識システムAの全体構成を示すブロック図である。
【0015】
図1に示すように、ジェスチャ認識システムAは、図示しない対象人物を撮像する2台のカメラ1(1a,1b)と、カメラ1で撮像された画像(撮像画像)を解析して各種情報を生成する撮像画像解析装置2と、撮像画像解析装置2で生成された各種情報に基づいて対象人物の輪郭を抽出する輪郭抽出装置3と、撮像画像解析装置2で生成された各種情報及び輪郭抽出装置3で抽出された対象人物の輪郭(輪郭情報)に基づいて、対象人物のポスチャ(姿勢)又はジェスチャ(動作)を認識するジェスチャ認識装置4とから構成されている。以下、カメラ1、撮像画像解析装置2、輪郭抽出装置3、ジェスチャ認識装置4について、順に説明する。
【0016】
(カメラ1)
カメラ1(1a,1b)はカラーCCDカメラであり、右カメラ1aと左カメラ1bは、左右に距離Bだけ離れて並設されている。ここでは、右カメラ1aを基準カメラとしている。カメラ1a,1bで撮像された画像(撮像画像)は、フレーム毎に図示しないフレームグラバに記憶された後、撮像画像解析装置2に同期して入力される。
【0017】
なお、カメラ1a,1bで撮像した画像(撮像画像)は、図示しない補正機器によりキャリブレーション処理とレクティフィケーション処理を行い、画像補正した後に撮像画像解析装置2に入力される。
【0018】
(撮像画像解析装置2)
撮像画像解析装置2は、カメラ1a,1bから入力された画像(撮像画像)を解析して、「距離情報」、「動き情報」、「エッジ情報」、「肌色領域情報」を生成する装置である(図1参照)。
【0019】
図2は、図1に示したジェスチャ認識システムAに含まれる撮像画像解析装置2と輪郭抽出装置3の構成を示すブロック図である。図2に示すように、撮像画像解析装置2は、「距離情報」を生成する距離情報生成部21と、「動き情報」を生成する動き情報生成部22と、「エッジ情報」を生成するエッジ情報生成部23と、「肌色領域情報」を生成する肌色領域情報生成部24とから構成されている。
【0020】
(距離情報生成部21)
距離情報生成部21は、同時刻にカメラ1a,1bで撮像された2枚の撮像画像の視差に基づいて、各画素についてカメラ2からの距離を検出する。具体的には、基準カメラであるカメラ1aで撮像された第1の撮像画像と、カメラ1bで撮像された第2の撮像画像とからブロック相関法を用いて視差を求め、その視差から三角法を用いて、カメラ1から「各画素に撮像された物」までの距離を求める。そして、求めた距離を第1の撮像画像の各画素に対応付けて、距離を画素値で表現した距離画像D1(図3(a)参照)を生成する。この距離画像D1が距離情報となる。図3(a)の例では、同一の距離に対象人物Cが存在している。
【0021】
なお、ブロック相関法とは、第1の撮像画像と第2の撮像画像とで特定の大きさの同一ブロック(例えば8×3画素)を比較し、第1の撮像画像と第2の撮像画像とでブロック内の被写体が何画素分ずれているかを調べることにより視差を検出する方法である。
【0022】
(動き情報生成部22)
動き情報生成部22は、基準カメラであるカメラ1aで時系列に撮像した「時刻t」における「撮像画像(t)」と、「時刻t+Δt」における「撮像画像(t+Δt)」との差分に基づいて、対象人物の動きを検出する。具体的には、「撮像画像(t)」と「撮像画像(t+Δt)」との差分をとり、各画素の変位を調べる。そして、調べた変位に基づいて変位ベクトルを求め、求めた変位ベクトルを画素値で表わした差分画像D2(図3(b)参照)を生成する。この差分画像D2が動き情報となる。図3(b)の例では、対象人物Cの左腕に動きが検出されている。
【0023】
(エッジ情報生成部23)
エッジ情報生成部23は、基準カメラであるカメラ1aで撮像された画像(撮像画像)における各画素の濃淡情報又は色情報に基づいて、その撮像画像内に存在するエッジを抽出したエッジ画像を生成する。具体的には、撮像画像における各画素の輝度に基づいて、輝度が大きく変化する部分をエッジとして検出し、そのエッジのみからなるエッジ画像D3(図3(c)参照)を生成する。このエッジ画像D3がエッジ情報となる。
【0024】
エッジの検出は、例えばSobelオペレータを画素毎に乗算し、行又は列単位で、隣の線分と所定の差がある線分をエッジ(横エッジ又は縦エッジ)として検出する。なお、Sobelオペレータとは、ある画素の近傍領域の画素に対して重み係数を持つ係数行例のことである。
【0025】
(肌色領域情報生成部24)
肌色領域情報生成部24は、基準カメラであるカメラ1aで撮像された画像(撮像画像)から、その撮像画像内に存在する対象人物の肌色領域を抽出する。具体的には、撮像画像における全画素のRGB値を、色相、明度、彩度からなるHLS空間に変換し、色相、明度、彩度が予め設定された閾値の範囲内にある画素を肌色領域として抽出する(図3(d)参照)。図3(d)の例では、対象人物Cの顔が肌色領域R1として抽出され、手が肌色領域R2として抽出されている。この肌色領域R1,R2が肌色領域情報となる。
【0026】
撮像画像解析装置2で生成された「距離情報(距離画像D1)」、「動き情報(差分画像D2)」、「エッジ情報(エッジ画像D3)」は、輪郭抽出装置3に入力される。また、撮像画像解析装置2で生成された「距離情報(距離画像D1)」と「肌色領域情報(肌色領域R1,R2)」は、ジェスチャ認識装置4に入力される。
【0027】
(輪郭抽出装置3)
輪郭抽出装置3は、撮像画像解析装置2で生成された「距離情報(距離画像D1)」、「動き情報(差分画像D2)」、「エッジ情報(エッジ画像D3)」に基づいて、対象人物の輪郭を抽出する装置である(図1参照)。
【0028】
図2に示すように、輪郭抽出装置3は、対象人物が存在する距離である「対象距離」を設定する対象距離設定部31と、「対象距離」に基づいた「対象距離画像」を生成する対象距離画像生成部32と、「対象距離画像内」における「対象領域」を設定する対象領域設定部33と、「対象領域内」から「対象人物の輪郭」を抽出する輪郭抽出部34とから構成されている。
【0029】
(対象距離設定部31)
対象距離設定部31は、撮像画像解析装置2で生成された距離画像D1(図3(a)参照)と、差分画像D2(図3(b)参照)とに基づいて、対象人物が存在する距離である「対象距離」を設定する。具体的には、距離画像D1における同一の画素値を有する画素を一群(画素群)として、差分画像D2における前記画素群の画素値を累計する。そして、画素値の累計値が所定値よりも大きい、かつ、カメラ1に最も近い距離にある領域に、最も動き量の多い移動物体、即ち対象人物が存在しているとみなし、その距離を対象距離とする(図4(a)参照)。図4(a)の例では、対象距離は2.2mに設定されている。対象距離設定部31で設定された対象距離は、対象距離画像生成部32に入力される。
【0030】
(対象距離画像生成部32)
対象距離画像生成部32は、撮像画像解析装置2で生成された距離画像D1(図3(a)参照)を参照し、対象距離設定部31で設定された対象距離±αmに存在する画素に対応する画素をエッジ画像D3(図3(c)参照)から抽出した「対象距離画像」を生成する。具体的には、距離画像D1における対象距離設定部31から入力された対象距離±αmに対応する画素を求める。そして、求められた画素のみをエッジ情報生成部23で生成されたエッジ画像D3から抽出し、対象距離画像D4(図4(b)参照)を生成する。したがって、対象距離画像D4は、対象距離に存在する対象人物をエッジで表現した画像になる。対象距離画像生成部32で生成された対象距離画像D4は、対象領域設定部33と輪郭抽出部34に入力される。
【0031】
(対象領域設定部33)
対象領域設定部33は、対象距離画像生成部32で生成された対象距離画像D4(図3(b)参照)内における「対象領域」を設定する。具体的には、対象距離画像D4の縦方向の画素値を累計したヒストグラムHを生成し、ヒストグラムHにおける度数が最大となる位置を、対象人物Cの水平方向における中心位置として特定する(図5(a)参照)。そして、特定された中心位置の左右に特定の大きさ(例えば0.5m)の範囲を対象領域Tとして設定する(図5(b)参照)。なお、対象領域Tの縦方向の範囲は、特定の大きさ(例えば2m)に設定される。また、対象領域Tを設定する際は、カメラ1のチルト角や高さ等のカメラパラメータを参照して、対象領域Tの設定範囲を補正する。対象領域設定部33で設定された対象領域Tは、輪郭抽出部34に入力される。
【0032】
(輪郭抽出部34)
輪郭抽出部34は、対象距離画像生成部32で生成された対象領域画像D4(図4(b)参照)において、対象領域設定部33で設定された対象領域T内から対象人物Cの輪郭Oを抽出する(図5(c)参照)。具体的には、対象人物Cの輪郭Oを抽出する際は、「Snakes」と呼ばれる閉曲線からなる動的輪郭モデルを用いた手法(以下、「スネーク手法」という)を用いる。なお、スネーク手法とは、動的輪郭モデルである「Snakes」を、予め定義されたエネルギ関数が最小となるように収縮変形させることにより、対象物の輪郭を抽出する手法である。輪郭抽出部34で抽出された対象人物Cの輪郭Oは、「輪郭情報」としてジェスチャ認識装置4に入力される(図1参照)。
【0033】
(ジェスチャ認識装置4)
ジェスチャ認識装置4は、撮像画像解析装置2で生成された「距離情報」及び「肌色領域情報」と、輪郭抽出装置3で生成された「輪郭情報」とに基づいて、対象人物のポスチャ又はジェスチャを認識し、その認識結果を出力する装置である(図1参照)。
【0034】
図6は、図1に示したジェスチャ認識システムAに含まれるジェスチャ認識装置4の構成を示すブロック図である。図6に示すように、ジェスチャ認識装置4は、対象人物の実空間上における顔位置と手先位置を検出する顔・手先位置検出手段41と、顔・手先位置検出手段41によって検出された顔位置と手先位置に基づいて、対象人物のポスチャ又はジェスチャを認識するポスチャ・ジェスチャ認識手段42とを備えている。
【0035】
(顔・手先位置検出手段41)
顔・手先位置検出手段41は、実空間上における対象人物の「頭頂部の位置(頭頂部位置)」を検出する頭位置検出部41Aと、対象人物の「顔の位置(顔位置)」を検出する顔位置検出部41Bと、対象人物の「手の位置(手位置)」を検出する手位置検出部41Cと、対象人物の「手先の位置(手先位置)」を検出する手先位置検出部41Dとから構成されている。なお、ここでいう「手」とは、腕(arm)と手(Hand)とからなる部位のことであり、「手先」とは、手(Hand)の指先のことである。
【0036】
(頭位置検出部41A)
頭位置検出部41Aは、輪郭抽出装置3で生成された輪郭情報に基づいて、対象人物Cの「頭頂部位置」を検出する。頭頂部位置の検出方法について図7(a)を参照して説明すると、まず、輪郭Oで囲まれた領域における重心Gを求める(1)。次に、頭頂部位置を探索するための領域(頭頂部位置探索領域)F1を設定する(2)。頭頂部位置探索領域F1の横幅(X軸方向の幅)は、重心GのX座標を中心にして、予め設定されている人間の平均肩幅Wとなるようにする。なお、人間の平均肩幅Wは、撮像画像解析装置2で生成された距離情報を参照して設定される。また、頭頂部位置探索領域F1の縦幅(Y軸方向の幅)は、輪郭Oを覆うことができるような幅に設定される。そして、頭頂部位置探索領域F1内における輪郭Oの上端点を、頭頂部位置m1とする(3)。頭位置検出部41Aで検出された頭頂部位置m1は、顔位置検出部41Bに入力される。
【0037】
(顔位置検出部41B)
顔位置検出部41Bは、頭位置検出部41Aで検出された頭頂部位置m1と、撮像画像解析装置2で生成された肌色領域情報とに基づいて、対象人物Cの「顔位置」を検出する。顔位置の検出方法について図7(b)を参照して説明すると、まず、顔位置を探索するための領域(顔位置探索領域)F2を設定する(4)。顔位置探索領域F2の範囲は、頭頂部位置m1を基準にして、予め設定されている「おおよそ人間の頭部を覆う大きさ」となるようにする。なお、顔位置探索領域F2の範囲は、撮像画像解析装置2で生成された距離情報を参照して設定される。
【0038】
次に、顔位置探索領域F2内における肌色領域R1の重心を、画像上における顔位置m2とする(5)。肌色領域R1については、撮像画像解析装置2で生成された肌色領域情報を参照する。そして、画像上における顔位置m2(Xf,Yf)から、撮像画像解析装置2で生成された距離情報を参照して、実空間上における顔位置m2t(Xft,Yft,Zft)を求める。
【0039】
顔位置検出部41Bで検出された「画像上における顔位置m2」は、手位置検出部41Cと手先位置検出部41Dに入力される。また、顔位置検出部41Bで検出された「実空間上における顔位置m2t」は、図示しない記憶手段に記憶され、ポスチャ・ジェスチャ認識手段42のポスチャ・ジェスチャ認識部42B(図6参照)において対象人物Cのポスチャ又はジェスチャを認識する際に使用される。
【0040】
(手位置検出部41C)
手位置検出部41Cは、撮像画像解析装置2で生成された肌色領域情報と、輪郭抽出装置3で生成された輪郭情報とに基づいて、対象人物Cの「手位置」を検出する。なお、ここでは、肌色領域情報は、顔位置m2周辺を除いた領域の情報を用いる。手位置の検出方法について図8(a)を参照して説明すると、まず、手位置を探索するための領域(手位置探索領域)F3(F3R,F3L)を設定する(6)。手位置探索領域F3は、顔位置検出部41Bで検出された顔位置m2を基準にして、予め設定されている「手が届く範囲(左右の手の届く範囲)」となるようにする。なお、手位置探索領域F3の大きさは、撮像画像解析装置2で生成された距離情報を参照して設定される。
【0041】
次に、手位置探索領域F3内における肌色領域R2の重心を、画像上における手位置m3とする(7)。肌色領域R2については、撮像画像解析装置2で生成された肌色領域情報を参照する。なお、ここでは、肌色領域情報は、顔位置m2周辺を除いた領域の情報を用いる。図8(a)の例では、肌色領域は手位置探索領域F3(L)においてのみ存在しているので、手位置m3は手位置探索領域F3(L)においてのみ検出される。また、図8(a)の例では、対象人物は長袖の服を着ており、手首より先しか露出していないので、手(HAND)の位置が手位置m3となる。手位置検出部41Cで検出された「画像上における手位置m3」は、手先位置検出部41Dに入力される。
【0042】
(手先位置検出部41D)
手先位置検出部41Dは、顔位置検出部41Bで検出された顔位置m2と、手位置検出部41Cで検出された手位置m3とに基づいて、対象人物Cの「手先位置」を検出する。手先位置の検出方法について図8(b)を参照して説明すると、まず、手位置探索領域F3L内において、手先位置を探索するための領域(手先位置探索範囲)F4を設定する(8)。手先位置探索範囲F4は、手位置m3を中心にして、予め設定されている「おおよそ手を覆う大きさ」となるようにする。なお、手先位置探索範囲F4の範囲は、撮像画像解析装置2で生成された距離情報を参照して設定される。
【0043】
続いて、手先位置探索範囲F4における肌色領域R2の上下左右の端点m4a〜m4dを検出する(9)。肌色領域R2については、撮像画像解析装置2で生成された肌色領域情報を参照する。そして、上下端点間(m4a、m4b間)の垂直方向距離d1と、左右端点間(m4c、m4d間)の水平方向距離d2とを比較し、距離が長い方を手が伸びている方向と判断する(10)。図8(b)の例では、垂直方向距離d1の方が水平方向距離d2よりも距離が長いので、手先は上下方向に伸びていると判断される。
【0044】
次に、画像上における顔位置m2と、画像上における手位置m3との位置関係に基づいて、上下端点m4a,m4bのどちら(もしくは左右端点m4c,m4dのどちらか)が手先位置であるかを判断する。具体的には、手位置m3が顔位置m2から遠い場合は、手は伸びているとみなし、顔位置m2から遠い方の端点を手先位置(画像上における手先位置)m4と判断する。逆に、手位置m3が顔位置m2に近い場合は、肘を曲げているとみなし、顔位置m2に近い方の端点を手先位置m4と判断する。図8(b)の例では、手位置m3が顔位置m2から遠く、上端点m4aが下端点m4bよりも顔位置m2から遠いので、上端点m4aが手先位置m4であると判断する(11)。
【0045】
そして、画像上における手先位置m4(Xh,Yh)から、撮像画像解析装置2で生成された距離情報を参照して、実空間上における手先位置m4t(Xht,Yht,Zht)を求める。手先位置検出部41Dで検出された「実空間上における手先位置m4t」は、図示しない記憶手段に記憶され、ポスチャ・ジェスチャ認識手段42のポスチャ・ジェスチャ認識部42B(図6参照)において対象人物Cのポスチャ又はジェスチャを認識する際に使用される。
【0046】
(ポスチャ・ジェスチャ認識手段42)
ポスチャ・ジェスチャ認識手段42は、ポスチャデータとジェスチャデータを記憶するポスチャ・ジェスチャデータ記憶部42Aと、顔・手先位置検出手段41によって検出された「実空間上における顔位置m2t」と「実空間上における手先位置m4t」に基づいて、対象人物のポスチャ又はジェスチャを認識するポスチャ・ジェスチャ認識部42Bとから構成されている(図6参照)。
【0047】
(ポスチャ・ジェスチャデータ記憶部42A)
ポスチャ・ジェスチャデータ記憶部42Aは、ポスチャデータP1〜P4(図9参照)とジェスチャデータJ1〜J4(図10参照)を記憶している。ポスチャデータP1〜P4とジェスチャデータJ1〜J4は、「顔位置を基準とした際の手先位置と、その手先位置の変動」に対応するポスチャ又はジェスチャを記したデータである。ポスチャデータP1〜P4とジェスチャデータJ1〜J4は、ポスチャ・ジェスチャ認識部42Bにおいて対象人物のポスチャ又はジェスチャを認識する際に使用される。
【0048】
ポスチャデータP1〜P4について図9を参照して説明すると、図9(a)に示す「ポスチャP1:FACE SIDE」は「こんにちは」、図9(b)に示す「ポスチャP2:HIGH HAND」は「追従開始」、図9(c)に示す「ポスチャP3:SIDE HAND」は「手の方向を見よ」、図9(d)に示す「ポスチャP4:LOW HAND」は「手の方向に曲がれ」を意味するポスチャである。
【0049】
また、ジェスチャJ1〜J4について図10を参照して説明すると、図10(a)に示す「ジェスチャJ1:HAND SWING」は「注意せよ」、図10(b)に示す「ジェスチャJ2:BYE BYE」は「さようなら」、図10(c)に示す「ジェスチャJ3:COME HERE」は「接近せよ」、図10(d)に示す「ジェスチャJ4:HAND CIRCLING」は「旋回せよ」を意味するジェスチャである。
【0050】
なお、本実施の形態では、ポスチャ・ジェスチャデータ記憶部42A(図6参照)は、ポスチャデータP1〜P4(図9参照)とジェスチャデータJ1〜J4(図10参照)を記憶しているが、ポスチャ・ジェスチャデータ記憶部42Aに記憶させるポスチャデータとジェスチャデータは任意に設定することができる。また、各ポスチャと各ジェスチャの意味も任意に設定することができる。
【0051】
ポスチャ・ジェスチャ認識部42Bは、統計的手法の一つである「ベイズの手法」を用いて、対象人物のポスチャ又はジェスチャを認識する。具体的には、まず、顔・手先位置検出手段41によって検出された「実空間上における顔位置m2t」と「実空間上における手先位置m4t」から、「顔位置m2tを基準とした際の手先位置の所定数フレーム(例えば5フレーム)における平均及び分散」を特徴ベクトルxとして求める。そして、求めた特徴ベクトルxに基づいて、ベイズの手法を用いて、全てのポスチャ及びジェスチャiの確率変数ωiの「事後分布の確率密度」を計算し、各フレームにおける「事後分布の確率密度」が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識する。
【0052】
次に、図11及び図12に示すフローチャートを参照して、ポスチャ・ジェスチャ認識部42Bにおけるポスチャ又はジェスチャの認識方法について詳しく説明する。ここでは、まず、図11に示すフローチャートを参照してポスチャ・ジェスチャ認識部42Bでの処理の概略について説明し、その後、図12に示すフローチャートを参照して図11に示したフローチャートにおける「ステップS1:ポスチャ・ジェスチャ認識処理」について説明する。
【0053】
(ポスチャ・ジェスチャ認識部42Bでの処理の概略)
図11は、ポスチャ・ジェスチャ認識部42Bでの処理の概略を説明するためのフローチャートである。図11に示すフローチャートを参照して、まず、ステップS1では、ポスチャ又はジェスチャの認識を試みる。次に、ステップS2では、ステップS1においてポスチャ又はジェスチャを認識できたかどうかを判断する。ここで、ポスチャ又はジェスチャを認識できたと判断された場合はステップS3に進み、ポスチャ又はジェスチャを認識できなかったと判断された場合はステップS5に進む。
【0054】
ステップS3では、過去の所定数のフレーム(例えば10フレーム)において、同一のポスチャ又はジェスチャを所定回数(例えば5回)以上認識できたかどうかを判断する。ここで、同一のポスチャ又はジェスチャを所定回数以上認識できたと判断された場合はステップS4に進み、同一のポスチャ又はジェスチャを所定回数以上認識できなかったと判断された場合はステップS5に進む。
【0055】
そして、ステップS4では、ステップS1において認識されたポスチャ又はジェスチャを認識結果として出力し、処理を終了する。また、ステップS5では、ポスチャ又はジェスチャを認識できなかった、即ち認識不能であると出力し、処理を終了する。
【0056】
(ステップS1:ポスチャ・ジェスチャ認識処理)
図12は、図11に示したフローチャートにおける「ステップS1:ポスチャ・ジェスチャ認識処理」について説明するためのフローチャートである。図12に示すフローチャートを参照して、まず、ステップS11では、顔・手先位置検出手段41によって検出された「実空間上における顔位置m2t(Xft,Yft,Zft)」と「実空間上における手先位置m4t(Xht,Yht,Zht)」から、「顔位置m2tを基準とした際の手先位置の所定数フレーム(例えば5フレーム)における平均及び分散」を

Figure 2004303014
として求める。
【0057】
次のステップS12では、ステップS11で求めた特徴ベクトルxに基づいて、ベイズの手法を用いて、全てのポスチャ及びジェスチャiの確率変数ωiの「事後分布の確率密度」を計算する。
【0058】
ステップS12における「事後分布の確率密度」の求め方について詳しく説明すると、まず、特徴ベクトルxが与えられたときに、それがポスチャ又はジェスチャiである確率密度P(ωi|x)は、下記の「ベイズの定理」と呼ばれる式(1)により求められる。なお、確率変数ωiは各ポスチャ及び各ジェスチャ毎に予め設定されている。
【0059】
【数1】
Figure 2004303014
【0060】
式(1)におけるP(x|ωi)は、ポスチャ又はジェスチャiが与えられたときに、画像が特徴ベクトルxを含む「条件付き確率密度」であり、下記の式(2)で表わされる。なお、特徴ベクトルxは、共分散行列Σを持ち、
Figure 2004303014
の正規分布に従うものとする。
【0061】
【数2】
Figure 2004303014
【0062】
また、式(1)におけるP(ωi)は、確率変数ωiの「事前分布の確率密度」であり、下記の式(3)で表わされる。なお、P(ωi)は、期待値ωi、分散V[ωi]の正規分布であるとする。
【0063】
【数3】
Figure 2004303014
【0064】
式(1)の右項の分母はωiに依存しないので、式(2),式(3)より、確率変数ωiの「事後分布の確率密度」は、下記の式(4)で表わされる。
【0065】
【数4】
Figure 2004303014
【0066】
図12のフローチャートに戻り、次のステップS13では、各フレームにおける「事後分布の確率密度」が最大であるポスチャ又はジェスチャを求め、続くテップS14では、ステップS13で求められたポスチャ又はジェスチャが各フレームにおけるポスチャ又はジェスチャであるという認識結果を出力し、処理を終了する。
【0067】
図13は、フレーム1〜100における、ポスチャP1〜P4及びジェスチャJ1〜J4についての確率変数ωiの「事後分布の確率密度」を示すグラフである。なお、ここでは、ポスチャP1〜P4及びジェスチャJ1〜J4を、「i(i=1〜8)」としている。
【0068】
図13に示すように、フレーム1〜26では「ジェスチャJ2:BYE BYE」の確率密度が最大となるので、フレーム1〜26では、対象人物のポスチャ又はジェスチャは「ジェスチャJ2:BYE BYE」(図10(b)参照)であると認識される。また、フレーム27〜43では「ポスチャP1:FACE SIDE」の確率密度が最大となるので、フレーム27〜43では対象人物のポスチャ又はジェスチャは「ポスチャP1:FACE SIDE」(図9(a)参照)であると認識される。
【0069】
また、フレーム44〜76では「ジェスチャJ3:COME HERE」の確率密度が最大となるので、フレーム44〜76では対象人物のポスチャ又はジェスチャは「ジェスチャJ3:COME HERE」(図10(c)参照)であると認識される。そして、フレーム80〜100では「ジェスチャJ1:HANDSWING」の確率密度が最大となるので、フレーム80〜100では対象人物のポスチャ又はジェスチャは「ジェスチャJ1:HAND SWING」図10(a)参照)であると認識される。
【0070】
なお、フレーム77〜79では「ジェスチャJ4:HAND CIRCLING」の確率密度が最大となるが、「ジェスチャJ4:HAND CIRCLING」は3回しか認識されていないため、対象人物のポスチャ又はジェスチャは「ジェスチャJ4:HAND CIRCLING」であるとは認識されない。これは、前記したように、ポスチャ・ジェスチャ認識42Bでは、過去の所定数のフレーム(例えば10フレーム)において、同一のポスチャ又はジェスチャを所定回数(例えば5回)以上認識できた場合にのみ、前記同一のポスチャ又はジェスチャを認識できたと判断するためである(図11に示すフローチャートのステップS3〜ステップS5参照)。
【0071】
以上のようにして、ポスチャ・ジェスチャ認識42Bは、ベイズの手法を用いて、全てのポスチャ及びジェスチャi(i=1〜8)の確率変数ωiの「事後分布の確率密度」を計算し、各フレームにおける「事後分布の確率密度」が最大であるポスチャ又はジェスチャを調べることにより、対象人物のポスチャ又はジェスチャを認識することができる。
【0072】
(ジェスチャ認識システムAの動作)
次に、ジェスチャ認識システムAの動作について図1に示すジェスチャ認識システムAの全体構成を示すブロック図と、図14及び図15に示すフローチャートを参照して説明する。図14は、ジェスチャ認識システムAの動作における「撮像画像解析ステップ」と「輪郭抽出ステップ」を説明するために示すフローチャートであり、図15は、ジェスチャ認識システムAの動作における「顔・手先位置検出ステップ」と「ポスチャ・ジェスチャ認識ステップ」を説明するために示すフローチャートである。
【0073】
<撮像画像解析ステップ>
図14に示すフローチャートを参照して、撮像画像解析装置2では、カメラ1a,1bから撮像画像が入力されると(ステップS101)、距離情報生成部21において、撮像画像から距離情報である距離画像D1(図3(a)参照)を生成し(ステップS102)、動き情報生成部22において、撮像画像から動き情報である差分画像D2(図3(b)参照)を生成する(ステップS103)。また、エッジ情報生成部23において、撮像画像からエッジ情報であるエッジ画像D3(図3(c)参照)を生成し(ステップS104)、肌色領域情報生成部24において、撮像画像から肌色領域情報である肌色領域R1,R2(図3(d)参照)を抽出する(ステップS105)。
【0074】
<輪郭抽出ステップ>
引き続き図14に示すフローチャートを参照して、輪郭抽出装置3では、まず、対象距離設定部31において、ステップS102とステップS103で生成された距離画像D1と差分画像D2から、対象人物が存在する距離である対象距離を設定する(ステップS106)。続いて、対象距離画像生成部32において、ステップS104で生成されたエッジ画像D3からステップS106で設定された対象距離に存在する画素を抽出した対象距離画像D4(図4(b)参照)を生成する(ステップS107)。
【0075】
次に、対象領域設定部33において、ステップS107で生成された対象距離画像D4内における対象領域T(図5(b)参照)を設定する(ステップS108)。そして、輪郭抽出部34において、ステップS108で設定された対象領域T内から、対象人物Cの輪郭O(図5(c)参照)を抽出する(ステップS109)。
【0076】
<顔・手先位置検出ステップ>
図15に示すフローチャートを参照して、ジェスチャ認識装置4の顔・手先位置検出手段41では、まず、頭位置検出部41Aにおいて、ステップS109で生成された輪郭情報に基づいて、対象人物Cの頭頂部位置m1(図7(a)参照)を検出する(ステップS110)。
【0077】
続いて、顔位置検出部41Bにおいて、ステップS110で検出された頭頂部位置m1と、ステップS105で生成された肌色領域情報とに基づいて、「画像上における顔位置m2」(図7(b)参照)を検出し、検出された「画像上における顔位置m2(Xf,Yf)」から、ステップS102で生成された距離情報を参照して、「実空間上における顔位置m2t(Xft,Yft,Zft)」を求める(ステップS111)。
【0078】
次に、手位置検出部41Cにおいて、ステップS111で検出された「画像上における顔位置m2」から、「画像上における手位置m3」(図8(a)参照)を検出する(ステップS112)。
【0079】
そして、手先位置検出部41Dにおいて、顔位置検出部41Bで検出された「画像上における顔位置m2」と、手位置検出部41Cで検出された手位置m3とに基づいて、「画像上における手先位置m4」(図8(b)参照)を検出し、検出された「画像上における手先位置m4(Xh,Yh)」から、ステップS102で生成された距離情報を参照して、「実空間上における手先位置m4t(Xht,Yht,Zht)」を求める(ステップS113)。
【0080】
<ポスチャ・ジェスチャ認識ステップ>
引き続き図15に示すフローチャートを参照して、ジェスチャ認識装置4のポスチャ・ジェスチャ認識部42Bでは、統計的手法の一つである「ベイズの手法」を用いて、対象人物のポスチャ又はジェスチャを認識する。ポスチャ・ジェスチャ認識部42Bにおけるポスチャ又はジェスチャの認識方法の詳細については、前記したのでここでは省略する。
【0081】
以上、ジェスチャ認識システムAについて説明したが、このジェスチャ認識システムAに含まれるジェスチャ認識装置4は、コンピュータにおいて各手段を各機能プログラムとして実現することも可能であり、各機能プログラムを結合してジェスチャ認識プログラムとして動作させることも可能である。
【0082】
また、このジェスチャ認識システムAは、例えば自律ロボットに適用することができる。その場合、自律ロボットは、例えば人が手を上げるとそのポスチャ「ポスチャP2:HIGH HAND」(図9(b)参照)と認識することや、人が手を振るとそのジェスチャを「ジェスチャJ1:HAND SWING」(図10(a)参照)と認識することが可能となる。
【0083】
なお、ポスチャやジェスチャによる指示は、音声による指示と比べて、周囲の騒音により左右されない、音声が届かないような状況でも指示が可能である、言葉では表現が難しい(又は冗長になる)指示を簡潔に行うことができる、という利点がある。
【0084】
【発明の効果】
以上、詳細に説明したように、本発明によれば、対象人物のジェスチャを認識する際に、特徴点(対象人物の動きの特徴を示す点)を一々検出する必要が無いため、従来のジェスチャ認識手法と比べて、ポスチャ認識又はジェスチャ認識を行う際の演算処理を軽減することができる。
【図面の簡単な説明】
【図1】ジェスチャ認識システムAの全体構成を示すブロック図である。
【図2】図1に示したジェスチャ認識システムAに含まれる撮像画像解析装置2と輪郭抽出装置3の構成を示すブロック図である。
【図3】(a)は距離画像D1、(b)は差分画像D2、(c)はエッジ画像D3、(d)は肌色領域R1,R2を示す図である。
【図4】対象距離を設定する方法を説明するための図である。
【図5】対象領域Tを設定する方法と、対象領域T内から対象人物Cの輪郭Oを抽出する方法を説明するための図である。
【図6】図1に示したジェスチャ認識システムAに含まれるジェスチャ認識装置4の構成を示すブロック図である。
【図7】(a)は頭頂部位置m1の検出方法を説明するための図であり、(b)は顔位置m2の検出方法を説明するための図である。
【図8】(a)は手位置m3の検出方法を説明するための図であり、(b)は手先位置m4の検出方法を説明するための図である。
【図9】ポスチャデータP1〜P4を示す図である。
【図10】ジェスチャデータJ1〜J4を示す図である。
【図11】ポスチャ・ジェスチャ認識部42Bでの処理の概略を説明するためのフローチャートである。
【図12】図11に示したフローチャートにおける「ステップS1:ポスチャ・ジェスチャ認識処理」について説明するためのフローチャートである。
【図13】フレーム1〜100における、ポスチャP1〜P4及びジェスチャJ1〜J4についての確率変数ωiの「事後分布の確率密度」を示すグラフである。
【図14】ジェスチャ認識システムAの動作における「撮像画像解析ステップ」と「輪郭抽出ステップ」を説明するために示すフローチャートである。
【図15】ジェスチャ認識システムAの動作における「顔・手先位置検出ステップ」と「ポスチャ・ジェスチャ認識ステップ」を説明するために示すフローチャートである。
【符号の説明】
A ジェスチャ認識システム
1 カメラ
2 撮像画像解析装置
3 輪郭抽出装置
4 ジェスチャ認識装置
41 顔・手先位置検出手段
41A 頭位置検出部
41B 顔位置検出部
41C 手位置検出部
41D 手先位置検出部
42 ポスチャ・ジェスチャ認識手段
42A ポスチャ・ジェスチャデータ記憶部
42B ポスチャ・ジェスチャ認識部[0001]
TECHNICAL FIELD OF THE INVENTION
The present invention relates to an apparatus, a method, and a program for recognizing a posture (posture) or a gesture (motion) of a target person from an image of the target person captured by a camera.
[0002]
[Prior art]
2. Description of the Related Art Conventionally, many gesture recognition methods have been proposed that detect points (feature points) indicating characteristics of movement of a target person from an image of the target person captured by a camera, and estimate a gesture of the target person based on the characteristic points. (For example, see Patent Document 1).
[0003]
[Patent Document 1]
JP-A-2000-149025 (page 3-6, FIG. 1)
[0004]
[Problems to be solved by the invention]
However, in the conventional gesture recognition method, when recognizing the gesture of the target person, it is necessary to detect the feature points one by one, so that there is a problem that the amount of calculation increases and the load of the arithmetic processing increases.
[0005]
The present invention has been made in view of the above-described problems, and provides a gesture recognition device, a gesture recognition method, and a gesture recognition program that can reduce arithmetic processing when performing posture recognition or gesture recognition. The purpose is to:
[0006]
[Means for Solving the Problems]
The gesture recognition device according to claim 1, which is a device for recognizing a posture or a gesture of the target person from an image of the target person captured by a camera, wherein the outline information of the target person generated from the image and Based on the skin color area information, a face / hand position detecting means for detecting a face position and a hand position of the target person in the real space, and the face position and the hand position, based on the face position, The average and variance of the hand positions in a predetermined number of frames are obtained as a feature vector, and based on the feature vector, the probability density of the posterior distribution of the random variables of all the postures and gestures is calculated using a statistical method. Recognizes the posture or gesture in which the probability density of the posterior distribution is the largest in the frame as the posture or gesture in the frame Characterized by comprising a that posture, gesture recognition means.
[0007]
In this device, first, a face / hand position of a target person in a real space is detected by a face / hand position detection unit based on contour information and skin color region information of the target person generated from an image. Next, from the face position and the hand position, an average and a variance of the hand position based on the face position in a predetermined number of frames (for example, five frames) are obtained as a “feature vector” by the posture / gesture recognition unit. Then, based on the obtained “feature vector”, using a statistical method, calculate the “probability density of the posterior distribution” of the random variables of all postures and gestures, and calculate the “probability density of the posterior distribution” in each frame. The largest posture or gesture is recognized as the posture or gesture in the frame.
[0008]
Note that the posture / gesture recognition means determines that the same posture or gesture has been recognized only when the same posture or gesture has been recognized a predetermined number of times or more in a predetermined number of frames (claim 2).
[0009]
The gesture recognition method according to claim 3 is a method for recognizing a posture or a gesture of the target person from an image of the target person captured by a camera, and includes outline information of the target person generated from the image. Based on the skin color area information, a face / hand position detection step of detecting a face position and a hand position in the real space of the target person, and, based on the face position and the hand position, based on the face position, The average and variance of the hand positions in a predetermined number of frames are obtained as a feature vector, and based on the feature vector, the probability density of the posterior distribution of the random variables of all the postures and gestures is calculated using a statistical method. The posture or gesture having the maximum probability density of the posterior distribution in is defined as the posture or gesture in the frame. Characterized in that it comprises a posture gesture recognition step of identification.
[0010]
In this method, first, in a face / hand position detection step, a face position and a hand position of a target person in a real space are detected based on contour information and skin color region information of the target person generated from an image. Next, in a posture / gesture recognition step, an average and a variance of a hand position in a predetermined number of frames based on the face position are obtained as a “feature vector” from the face position and the hand position. Then, based on the obtained “feature vector”, using a statistical method, calculate the “probability density of the posterior distribution” of the random variables of all postures and gestures, and calculate the “probability density of the posterior distribution” in each frame. The largest posture or gesture is recognized as the posture or gesture in the frame.
[0011]
The gesture recognition program according to claim 4, wherein the computer recognizes a posture or a gesture of the target person from an image obtained by capturing the target person with a camera. Face / hand position detecting means for detecting a face position and a hand position of the target person in real space based on the area information, and the hand position based on the face position based on the face position and the hand position The average and variance in a predetermined number of frames are determined as a feature vector, and based on the feature vector, the probability density of the posterior distribution of the random variables of all the postures and gestures is calculated using a statistical method. Posture or gesture with the highest probability density of the post-article distribution is defined as the posture or gesture in the frame. Characterized in that to function as posture, gesture recognition means recognizes that.
[0012]
In this program, first, a face / hand position of a target person in a real space is detected by a face / hand position detection unit based on contour information and skin color region information of the target person generated from an image. Next, from the face position and the hand position, an average and a variance of the hand position based on the face position in a predetermined number of frames (for example, five frames) are obtained as a “feature vector” by the posture / gesture recognition unit. Then, based on the obtained “feature vector”, using a statistical method, calculate the “probability density of the posterior distribution” of the random variables of all postures and gestures, and calculate the “probability density of the posterior distribution” in each frame. The largest posture or gesture is recognized as the posture or gesture in the frame.
[0013]
BEST MODE FOR CARRYING OUT THE INVENTION
Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings as appropriate. Here, first, the configuration of the gesture recognition system including the gesture recognition device according to the present invention will be described with reference to FIGS. 1 to 13, and then the operation of the gesture recognition system will be described with reference to FIGS. 14 and 15. I do.
[0014]
(Configuration of Gesture Recognition System A)
First, an overall configuration of a gesture recognition system A including a gesture recognition device 4 according to the present invention will be described with reference to FIG. FIG. 1 is a block diagram showing the overall configuration of the gesture recognition system A.
[0015]
As shown in FIG. 1, the gesture recognition system A analyzes two images of a camera 1 (1a, 1b) that captures a target person (not shown) and an image (captured image) captured by the camera 1 to obtain various information. A captured image analysis device 2 to generate, a contour extraction device 3 that extracts a contour of a target person based on various information generated by the captured image analysis device 2, and various information and a contour extraction generated by the captured image analysis device 2. The gesture recognition device 4 recognizes the posture (posture) or gesture (motion) of the target person based on the target person's contour (contour information) extracted by the device 3. Hereinafter, the camera 1, the captured image analysis device 2, the contour extraction device 3, and the gesture recognition device 4 will be described in order.
[0016]
(Camera 1)
The cameras 1 (1a, 1b) are color CCD cameras, and the right camera 1a and the left camera 1b are arranged side by side with a distance B left and right. Here, the right camera 1a is used as a reference camera. Images (captured images) captured by the cameras 1a and 1b are stored in a frame grabber (not shown) for each frame, and are input in synchronization with the captured image analysis device 2.
[0017]
Note that images (captured images) captured by the cameras 1a and 1b are subjected to calibration processing and rectification processing by a correction device (not shown), and are input to the captured image analysis device 2 after image correction.
[0018]
(Captured image analysis device 2)
The captured image analysis device 2 is a device that analyzes images (captured images) input from the cameras 1a and 1b and generates “distance information”, “motion information”, “edge information”, and “skin color region information”. (See FIG. 1).
[0019]
FIG. 2 is a block diagram showing a configuration of the captured image analysis device 2 and the contour extraction device 3 included in the gesture recognition system A shown in FIG. As shown in FIG. 2, the captured image analysis device 2 includes a distance information generation unit 21 that generates “distance information”, a motion information generation unit 22 that generates “motion information”, and an edge that generates “edge information”. It comprises an information generation unit 23 and a skin color region information generation unit 24 that generates “skin color region information”.
[0020]
(Distance information generation unit 21)
The distance information generation unit 21 detects the distance of each pixel from the camera 2 based on the parallax of the two captured images captured by the cameras 1a and 1b at the same time. Specifically, a parallax is obtained from the first captured image captured by the camera 1a, which is the reference camera, and the second captured image captured by the camera 1b using a block correlation method. Is used to determine the distance from the camera 1 to the “object imaged at each pixel”. Then, the obtained distance is associated with each pixel of the first captured image, and a distance image D1 (see FIG. 3A) in which the distance is expressed by a pixel value is generated. This distance image D1 becomes distance information. In the example of FIG. 3A, the target person C exists at the same distance.
[0021]
Note that the block correlation method refers to comparing the same block (for example, 8 × 3 pixels) of a specific size between a first captured image and a second captured image, and comparing the first captured image with the second captured image. Is a method of detecting parallax by checking how many pixels the subject in the block is shifted.
[0022]
(Motion information generation unit 22)
The motion information generation unit 22 is based on the difference between the “captured image (t)” at “time t” and the “captured image (t + Δt)” at “time t + Δt” captured in time series by the camera 1a as the reference camera. Then, the movement of the target person is detected. Specifically, the difference between the “captured image (t)” and “captured image (t + Δt)” is obtained, and the displacement of each pixel is checked. Then, a displacement vector is obtained based on the checked displacement, and a difference image D2 (see FIG. 3B) in which the obtained displacement vector is represented by pixel values is generated. This difference image D2 becomes the motion information. In the example of FIG. 3B, a motion is detected in the left arm of the target person C.
[0023]
(Edge information generation unit 23)
The edge information generation unit 23 generates an edge image by extracting an edge present in the captured image based on density information or color information of each pixel in the image (captured image) captured by the camera 1a as the reference camera. I do. Specifically, based on the brightness of each pixel in the captured image, a portion where the brightness changes greatly is detected as an edge, and an edge image D3 (see FIG. 3C) including only the edge is generated. This edge image D3 becomes edge information.
[0024]
For edge detection, for example, a Sobel operator is multiplied for each pixel, and a line segment having a predetermined difference from an adjacent line segment is detected as an edge (horizontal edge or vertical edge) in row or column units. Note that the Sobel operator is an example of a coefficient row having a weight coefficient for a pixel in an area near a certain pixel.
[0025]
(Skin color area information generation unit 24)
The skin color area information generation unit 24 extracts a skin color area of the target person existing in the captured image from an image (captured image) captured by the camera 1a as the reference camera. Specifically, the RGB values of all the pixels in the captured image are converted into an HLS space including hue, lightness, and saturation, and the pixels whose hue, lightness, and saturation are within a preset threshold are replaced with skin color areas. (See FIG. 3D). In the example of FIG. 3D, the face of the target person C is extracted as the skin color region R1, and the hand is extracted as the skin color region R2. The skin color regions R1 and R2 serve as skin color region information.
[0026]
The “distance information (distance image D1)”, “motion information (difference image D2)”, and “edge information (edge image D3)” generated by the captured image analysis device 2 are input to the contour extraction device 3. The “distance information (distance image D1)” and “skin color region information (skin color regions R1, R2)” generated by the captured image analysis device 2 are input to the gesture recognition device 4.
[0027]
(Contour extraction device 3)
The contour extraction device 3 generates a target person based on “distance information (distance image D1)”, “motion information (difference image D2)”, and “edge information (edge image D3)” generated by the captured image analysis device 2. (See FIG. 1).
[0028]
As illustrated in FIG. 2, the contour extraction device 3 generates a target distance setting unit 31 that sets a “target distance” that is a distance at which the target person exists, and a “target distance image” based on the “target distance”. The target distance image generation unit 32, a target region setting unit 33 that sets “target region” in “target distance image”, and a contour extraction unit 34 that extracts “target person contour” from “target region” It is configured.
[0029]
(Target distance setting unit 31)
The target distance setting unit 31 includes a target person based on the distance image D1 (see FIG. 3A) generated by the captured image analysis device 2 and the difference image D2 (see FIG. 3B). The "target distance" which is a distance is set. Specifically, the pixels having the same pixel value in the distance image D1 are regarded as one group (pixel group), and the pixel values of the pixel group in the difference image D2 are accumulated. Then, it is considered that a moving object having the largest amount of motion, that is, a target person is present in an area in which the accumulated pixel value is larger than a predetermined value and which is closest to the camera 1, and the distance is set as a target. The distance is set (see FIG. 4A). In the example of FIG. 4A, the target distance is set to 2.2 m. The target distance set by the target distance setting unit 31 is input to the target distance image generation unit 32.
[0030]
(Target distance image generation unit 32)
The target distance image generation unit 32 refers to the distance image D1 generated by the captured image analysis device 2 (see FIG. 3A), and generates a pixel existing at the target distance ± αm set by the target distance setting unit 31. A “target distance image” is generated by extracting corresponding pixels from the edge image D3 (see FIG. 3C). Specifically, a pixel corresponding to the target distance ± αm input from the target distance setting unit 31 in the distance image D1 is obtained. Then, only the determined pixels are extracted from the edge image D3 generated by the edge information generation unit 23, and a target distance image D4 (see FIG. 4B) is generated. Therefore, the target distance image D4 is an image in which the target person existing at the target distance is represented by an edge. The target distance image D4 generated by the target distance image generation unit 32 is input to the target area setting unit 33 and the contour extraction unit 34.
[0031]
(Target area setting unit 33)
The target area setting unit 33 sets a “target area” in the target distance image D4 (see FIG. 3B) generated by the target distance image generation unit 32. Specifically, a histogram H is generated by accumulating the vertical pixel values of the target distance image D4, and the position where the frequency in the histogram H is maximum is specified as the horizontal center position of the target person C (FIG. 5). (A)). Then, a range of a specific size (for example, 0.5 m) is set as the target region T on the left and right of the specified center position (see FIG. 5B). Note that the vertical range of the target region T is set to a specific size (for example, 2 m). When the target area T is set, the setting range of the target area T is corrected with reference to camera parameters such as the tilt angle and the height of the camera 1. The target area T set by the target area setting unit 33 is input to the contour extraction unit 34.
[0032]
(Contour extraction unit 34)
In the target area image D4 generated by the target distance image generating section 32 (see FIG. 4B), the contour extracting section 34 extracts the outline O of the target person C from within the target area T set by the target area setting section 33. Is extracted (see FIG. 5C). Specifically, when the contour O of the target person C is extracted, a method using a dynamic contour model called a “Snakes” and composed of a closed curve (hereinafter, referred to as a “snake method”) is used. The snake method is a method of extracting the contour of the object by contracting and deforming “Snakes”, which is an active contour model, so that a predefined energy function is minimized. The contour O of the target person C extracted by the contour extracting unit 34 is input to the gesture recognition device 4 as “contour information” (see FIG. 1).
[0033]
(Gesture recognition device 4)
The gesture recognition device 4 is configured to posture or gesture the target person based on the “distance information” and “skin color region information” generated by the captured image analysis device 2 and the “contour information” generated by the contour extraction device 3. This is a device that recognizes and outputs the recognition result (see FIG. 1).
[0034]
FIG. 6 is a block diagram showing a configuration of the gesture recognition device 4 included in the gesture recognition system A shown in FIG. As shown in FIG. 6, the gesture recognition device 4 includes a face / hand position detection unit 41 that detects a face position and a hand position of the target person in the real space, and a face position detected by the face / hand position detection unit 41. And a gesture / gesture recognizing means 42 for recognizing a posture or a gesture of the target person based on the hand position.
[0035]
(Face / hand position detecting means 41)
The face / hand position detection unit 41 detects a head position detection unit 41A that detects the “top position (top position)” of the target person in the real space, and a “face position (face position)” of the target person. A face position detection unit 41B to detect, a hand position detection unit 41C to detect the "hand position (hand position)" of the target person, and a hand position detection unit to detect the "hand position (hand position)" of the target person 41D. Note that the “hand” here refers to a portion composed of an arm (arm) and a hand (Hand), and the “hand” refers to a fingertip of the hand (Hand).
[0036]
(Head position detector 41A)
The head position detection unit 41A detects the “top position” of the target person C based on the outline information generated by the outline extraction device 3. The method of detecting the top of the head will be described with reference to FIG. 7 (a). Next, an area (top area search area) F1 for searching the top position is set (2). The lateral width (width in the X-axis direction) of the crown position search area F1 is set to be a preset average human shoulder width W around the X coordinate of the center of gravity G. The average shoulder width W of a human is set with reference to the distance information generated by the captured image analysis device 2. The vertical width (the width in the Y-axis direction) of the crown position search area F1 is set to a width that can cover the contour O. Then, the upper end point of the contour O in the crown position search area F1 is defined as the crown position m1 (3). The head position m1 detected by the head position detection unit 41A is input to the face position detection unit 41B.
[0037]
(Face position detector 41B)
The face position detection unit 41B detects the “face position” of the target person C based on the top position m1 detected by the head position detection unit 41A and the skin color region information generated by the captured image analysis device 2. . The method for detecting a face position will be described with reference to FIG. 7B. First, an area (face position search area) F2 for searching for a face position is set (4). The range of the face position search area F2 is set to a preset “approximately a size that covers a human head” with reference to the top position m1. Note that the range of the face position search area F2 is set with reference to the distance information generated by the captured image analysis device 2.
[0038]
Next, the center of gravity of the skin color area R1 in the face position search area F2 is set as the face position m2 on the image (5). For the skin color region R1, the skin color region information generated by the captured image analysis device 2 is referred to. Then, the face position m2t (Xft, Yft, Zft) in the real space is obtained from the face position m2 (Xf, Yf) on the image with reference to the distance information generated by the captured image analysis device 2.
[0039]
The “face position m2 on the image” detected by the face position detection unit 41B is input to the hand position detection unit 41C and the hand position detection unit 41D. The “face position m2t in the real space” detected by the face position detection unit 41B is stored in a storage unit (not shown), and is stored in the posture / gesture recognition unit 42B (see FIG. 6) of the posture / gesture recognition unit 42. It is used when recognizing the posture or gesture of the person C.
[0040]
(Hand position detector 41C)
The hand position detection unit 41C detects the “hand position” of the target person C based on the skin color region information generated by the captured image analysis device 2 and the outline information generated by the outline extraction device 3. Here, as the skin color area information, information on an area excluding the periphery of the face position m2 is used. The method for detecting the hand position will be described with reference to FIG. 8A. First, an area (hand position search area) F3 (F3R, F3L) for searching the hand position is set (6). The hand position search area F3 is set to be a preset “range of reach of hands (range of reach of left and right hands)” based on the face position m2 detected by the face position detection unit 41B. Note that the size of the hand position search area F3 is set with reference to the distance information generated by the captured image analysis device 2.
[0041]
Next, the center of gravity of the skin color region R2 in the hand position search region F3 is set as the hand position m3 on the image (7). For the skin color region R2, the skin color region information generated by the captured image analysis device 2 is referred to. Here, as the skin color area information, information on an area excluding the periphery of the face position m2 is used. In the example of FIG. 8A, since the skin color area exists only in the hand position search area F3 (L), the hand position m3 is detected only in the hand position search area F3 (L). In the example of FIG. 8A, the target person is wearing long-sleeved clothes and is exposed only before the wrist, so that the position of the hand (HAND) is the hand position m3. The “hand position m3 on the image” detected by the hand position detection unit 41C is input to the hand position detection unit 41D.
[0042]
(Hand position detection unit 41D)
The hand position detection unit 41D detects the “hand position” of the target person C based on the face position m2 detected by the face position detection unit 41B and the hand position m3 detected by the hand position detection unit 41C. The method of detecting the hand position will be described with reference to FIG. 8B. First, an area (hand position search range) F4 for searching the hand position is set in the hand position search area F3L (8). The hand position search range F4 is set to a preset “approximately covering the hand” centering on the hand position m3. The range of the hand position search range F4 is set with reference to the distance information generated by the captured image analysis device 2.
[0043]
Subsequently, upper, lower, left and right end points m4a to m4d of the skin color region R2 in the hand position search range F4 are detected (9). For the skin color region R2, the skin color region information generated by the captured image analysis device 2 is referred to. The vertical distance d1 between the upper and lower end points (between m4a and m4b) and the horizontal distance d2 between the left and right end points (between m4c and m4d) are compared, and the longer distance is determined to be the direction in which the hand is extending. (10). In the example of FIG. 8B, since the vertical distance d1 is longer than the horizontal distance d2, it is determined that the hand extends vertically.
[0044]
Next, based on the positional relationship between the face position m2 on the image and the hand position m3 on the image, it is determined which of the upper and lower end points m4a and m4b (or which of the left and right end points m4c and m4d) is the hand position. to decide. Specifically, when the hand position m3 is far from the face position m2, the hand is regarded as being extended, and the end point farther from the face position m2 is determined as the hand position (hand position on the image) m4. Conversely, when the hand position m3 is close to the face position m2, it is considered that the elbow is bent, and the end point closer to the face position m2 is determined as the hand position m4. In the example of FIG. 8B, since the hand position m3 is farther from the face position m2 and the upper end point m4a is farther from the face position m2 than the lower end point m4b, it is determined that the upper end point m4a is the hand position m4 (11). .
[0045]
Then, the hand position m4t (Xht, Yht, Zht) in the real space is obtained from the hand position m4 (Xh, Yh) on the image with reference to the distance information generated by the captured image analysis device 2. The “hand position m4t in the real space” detected by the hand position detection unit 41D is stored in a storage unit (not shown), and is read by the posture / gesture recognition unit 42B of the posture / gesture recognition unit 42 (see FIG. 6). Is used when recognizing the posture or gesture of the user.
[0046]
(Posture / gesture recognition means 42)
The posture / gesture recognition unit 42 includes a posture / gesture data storage unit 42A that stores the posture data and the gesture data, the “face position m2t in the real space” detected by the face / hand position detection unit 41, and the “ And a gesture / recognition unit 42B for recognizing a posture or a gesture of the target person based on the hand position m4t in (see FIG. 6).
[0047]
(Posture / gesture data storage unit 42A)
The posture / gesture data storage unit 42A stores posture data P1 to P4 (see FIG. 9) and gesture data J1 to J4 (see FIG. 10). The posture data P1 to P4 and the gesture data J1 to J4 are data describing a posture or a gesture corresponding to “the hand position based on the face position and the fluctuation of the hand position”. The posture data P1 to P4 and the gesture data J1 to J4 are used when the posture / gesture recognition unit 42B recognizes the posture or gesture of the target person.
[0048]
With reference to FIG. 9, the posture data P1 to P4, shown in FIG. 9 (a) "Posture P1: FACE SIDE" is "Hello", shown in FIG. 9 (b) "Posture P2: HIGH HAND" is ""Startfollowing","Posture P3: SIDE HAND" shown in FIG. 9C shows "look at the hand direction", and "Posture P4: LOW HAND" shown in FIG. 9D shows "Bend in the hand direction". Posture that means.
[0049]
Also, the gestures J1 to J4 will be described with reference to FIG. 10. "Be careful" is shown in "gesture J1: HAND SWING" shown in FIG. 10A, and "gesture J2: BYE BYE" shown in FIG. Is a gesture that means "goodbye", "gesture J3: COMME HERE" shown in FIG. 10C means "approach", and "gesture J4: HAND CIRCLING" shown in FIG. 10D means "turn". .
[0050]
In the present embodiment, the posture / gesture data storage unit 42A (see FIG. 6) stores the posture data P1 to P4 (see FIG. 9) and the gesture data J1 to J4 (see FIG. 10). The posture data and the gesture data stored in the posture / gesture data storage unit 42A can be set arbitrarily. Further, the meaning of each posture and each gesture can be arbitrarily set.
[0051]
The posture / gesture recognition unit 42B recognizes the posture or the gesture of the target person by using the “Bayesian method” which is one of the statistical methods. Specifically, first, from the “face position m2t in the real space” and the “hand position m4t in the real space” detected by the face / hand position detection means 41, the “tip based on the face position m2t” is obtained. The average and the variance of the position in a predetermined number of frames (for example, 5 frames) are obtained as the feature vector x. Then, based on the obtained feature vector x, using the Bayesian method, the “probability density of the posterior distribution” of the random variables ωi of all postures and gestures i is calculated, and the “probability density of the posterior distribution” in each frame is calculated. Is recognized as the posture or gesture in the frame.
[0052]
Next, a method of recognizing a posture or a gesture in the posture / gesture recognition unit 42B will be described in detail with reference to flowcharts illustrated in FIGS. Here, first, the outline of the processing in the posture / gesture recognition unit 42B will be described with reference to the flowchart shown in FIG. 11, and then “step S1” in the flowchart shown in FIG. 11 will be described with reference to the flowchart shown in FIG. : Posture / Gesture Recognition Processing ”will be described.
[0053]
(Outline of Processing in Posture / Gesture Recognition Unit 42B)
FIG. 11 is a flowchart for explaining the outline of the processing in the posture / gesture recognition unit 42B. Referring to the flowchart shown in FIG. 11, first, in step S1, an attempt is made to recognize a posture or a gesture. Next, in step S2, it is determined whether or not the posture or the gesture has been recognized in step S1. Here, if it is determined that the posture or the gesture has been recognized, the process proceeds to step S3. If it is determined that the posture or the gesture has not been recognized, the process proceeds to step S5.
[0054]
In step S3, it is determined whether or not the same posture or gesture has been recognized a predetermined number of times (for example, 5 times) in a predetermined number of past frames (for example, 10 frames). Here, if it is determined that the same posture or gesture has been recognized a predetermined number of times or more, the process proceeds to step S4. If it is determined that the same posture or gesture has not been recognized a predetermined number of times or more, the process proceeds to step S5.
[0055]
In step S4, the posture or gesture recognized in step S1 is output as a recognition result, and the process ends. In step S5, it is output that the posture or the gesture could not be recognized, that is, the posture or the gesture could not be recognized, and the process is terminated.
[0056]
(Step S1: Posture / gesture recognition processing)
FIG. 12 is a flowchart for explaining “Step S1: posture / gesture recognition processing” in the flowchart shown in FIG. Referring to the flowchart shown in FIG. 12, first, in step S11, "face position m2t (Xft, Yft, Zft) in real space" detected by face / hand position detecting means 41 and "hand in real space" From the position m4t (Xht, Yht, Zht), the “average and variance of the hand positions based on the face position m2t in a predetermined number of frames (for example, 5 frames)” is calculated.
Figure 2004303014
Asking.
[0057]
In the next step S12, based on the feature vector x obtained in step S11, the “probability density of the posterior distribution” of the random variables ωi of all the postures and gestures i is calculated using Bayesian method.
[0058]
The method of calculating the “probability density of the posterior distribution” in step S12 will be described in detail. First, when a feature vector x is given, the probability density P (ωi | x) that is a posture or a gesture i is given by It is obtained by equation (1) called “Bayes' theorem”. Note that the probability variable ωi is set in advance for each posture and each gesture.
[0059]
(Equation 1)
Figure 2004303014
[0060]
P (x | ωi) in Expression (1) is a “conditional probability density” in which an image includes a feature vector x when a posture or a gesture i is given, and is expressed by Expression (2) below. Note that the feature vector x has a covariance matrix Σ,
Figure 2004303014
Is assumed to follow a normal distribution.
[0061]
(Equation 2)
Figure 2004303014
[0062]
Further, P (ωi) in the equation (1) is the “probability density of the prior distribution” of the random variable ωi, and is expressed by the following equation (3). It is assumed that P (ωi) is a normal distribution of the expected value ωi 0 and the variance V [ωi 0 ].
[0063]
[Equation 3]
Figure 2004303014
[0064]
Since the denominator of the right term of the equation (1) does not depend on ωi, the “probability density of the posterior distribution” of the random variable ωi is expressed by the following equation (4) from the equations (2) and (3).
[0065]
(Equation 4)
Figure 2004303014
[0066]
Returning to the flowchart of FIG. 12, in the next step S13, the posture or gesture in which the “probability density of the posterior distribution” in each frame is the largest, and in the subsequent step S14, the posture or gesture found in step S13 is The recognition result indicating that the gesture is a posture or a gesture is output, and the process ends.
[0067]
FIG. 13 is a graph showing the “probability density of the posterior distribution” of the random variables ωi for the postures P1 to P4 and the gestures J1 to J4 in the frames 1 to 100. Here, the postures P1 to P4 and the gestures J1 to J4 are set to “i (i = 1 to 8)”.
[0068]
As shown in FIG. 13, the probability density of “gesture J2: BYE BYE” is maximum in frames 1 to 26, and therefore in the frames 1 to 26, the posture or gesture of the target person is “gesture J2: BYE BYE” (see FIG. 10 (b)). Further, in frames 27 to 43, the probability density of “posture P1: FACE SIDE” is maximum, and in frames 27 to 43, the posture or gesture of the target person is “posture P1: FACE SIDE” (see FIG. 9A). Is recognized.
[0069]
In the frames 44 to 76, the probability density of “gesture J3: COMME HERE” becomes the maximum, and in the frames 44 to 76, the posture or gesture of the target person is “gesture J3: COMME HERE” (see FIG. 10C). Is recognized. Since the probability density of “gesture J1: HANDSWING” is maximum in frames 80 to 100, the posture or gesture of the target person is “gesture J1: HAND SWING” in frames 80 to 100 (see FIG. 10A). Is recognized.
[0070]
In the frames 77 to 79, the probability density of “gesture J4: HAND CIRCLING” is the maximum, but since “gesture J4: HAND CIRCLING” is recognized only three times, the posture or gesture of the target person is “gesture J4”. : HAND CIRCLING ”is not recognized. This is because, as described above, in the gesture / gesture recognition 42B, the same gesture or gesture can be recognized a predetermined number of times (for example, 5 times) in a predetermined number of past frames (for example, 10 frames), and This is to determine that the same posture or gesture has been recognized (see steps S3 to S5 in the flowchart shown in FIG. 11).
[0071]
As described above, the posture / gesture recognition 42B calculates the “probability density of the posterior distribution” of the random variables ωi of all the postures and the gestures i (i = 1 to 8) using the Bayesian method. The posture or the gesture of the target person can be recognized by examining the posture or the gesture in which the “probability density of the posterior distribution” in the frame is the largest.
[0072]
(Operation of Gesture Recognition System A)
Next, the operation of the gesture recognition system A will be described with reference to the block diagram showing the entire configuration of the gesture recognition system A shown in FIG. 1 and the flowcharts shown in FIGS. FIG. 14 is a flowchart illustrating the “captured image analysis step” and the “contour extraction step” in the operation of the gesture recognition system A. FIG. 15 is a flowchart illustrating the “face / hand position detection” in the operation of the gesture recognition system A. It is a flowchart shown for demonstrating "step" and "posture gesture recognition step".
[0073]
<Captured image analysis step>
Referring to the flowchart shown in FIG. 14, in the captured image analysis device 2, when a captured image is input from the cameras 1a and 1b (step S101), the distance information generation unit 21 uses the distance information, which is distance information, based on the captured image. D1 (see FIG. 3A) is generated (step S102), and the motion information generating unit 22 generates a difference image D2 (see FIG. 3B) as motion information from the captured image (step S103). Further, the edge information generation unit 23 generates an edge image D3 (see FIG. 3C), which is edge information, from the captured image (step S104), and the skin color region information generation unit 24 uses the skin color region information from the captured image. A certain skin color region R1, R2 (see FIG. 3D) is extracted (step S105).
[0074]
<Contour extraction step>
Continuing with reference to the flowchart illustrated in FIG. 14, in the contour extraction device 3, first, the target distance setting unit 31 determines the distance at which the target person exists from the distance image D1 and the difference image D2 generated in steps S102 and S103. Is set (step S106). Subsequently, the target distance image generation unit 32 generates a target distance image D4 (see FIG. 4B) in which pixels existing at the target distance set in step S106 are extracted from the edge image D3 generated in step S104. (Step S107).
[0075]
Next, the target area setting unit 33 sets a target area T (see FIG. 5B) in the target distance image D4 generated in step S107 (step S108). Then, the contour extraction unit 34 extracts a contour O (see FIG. 5C) of the target person C from the target area T set in step S108 (step S109).
[0076]
<Face / hand position detection step>
Referring to the flowchart shown in FIG. 15, in the face / hand position detection means 41 of the gesture recognition device 4, first, the head position detection unit 41A detects the head of the target person C based on the contour information generated in step S109. The top position m1 (see FIG. 7A) is detected (step S110).
[0077]
Subsequently, in the face position detection unit 41B, based on the crown position m1 detected in step S110 and the skin color region information generated in step S105, “the face position m2 on the image” (FIG. 7B) Reference), and from the detected “face position m2 (Xf, Yf) on the image”, refer to the distance information generated in step S102, and refer to “face position m2t (Xft, Yft, Zft) ”is obtained (step S111).
[0078]
Next, the hand position detection unit 41C detects “hand position m3 on the image” (see FIG. 8A) from “face position m2 on the image” detected in step S111 (step S112).
[0079]
Then, based on the “face position m2 on the image” detected by the face position detection unit 41B and the hand position m3 detected by the hand position detection unit 41C, the hand position detection unit 41D determines “the hand position on the image”. The position m4 ”(see FIG. 8B) is detected, and from the detected“ hand position m4 (Xh, Yh) on the image ”, the distance information generated in step S102 is referred to, and At the hand end m4t (Xht, Yht, Zht) "(step S113).
[0080]
<Posture / gesture recognition step>
With continued reference to the flowchart illustrated in FIG. 15, the posture / gesture recognition unit 42 </ b> B of the gesture recognition device 4 recognizes the posture or the gesture of the target person by using the “Bayesian method” which is one of the statistical methods. . The details of the method of recognizing the posture or the gesture in the posture / gesture recognition unit 42B have been described above, and thus are omitted here.
[0081]
Although the gesture recognition system A has been described above, the gesture recognition device 4 included in the gesture recognition system A can also realize each unit as a function program in a computer. It is also possible to operate as a recognition program.
[0082]
The gesture recognition system A can be applied to, for example, an autonomous robot. In this case, for example, the autonomous robot recognizes that the posture is “posture P2: HIGH HAND” (see FIG. 9B) when a person raises his hand, or changes the gesture to “gesture J1: HAND SWING ”(see FIG. 10A).
[0083]
It should be noted that, in the case of an instruction by a posture or a gesture, an instruction that is not influenced by the surrounding noise or can be issued even in a situation where the sound does not reach, and an instruction that is difficult to express in words (or becomes redundant), as compared with an instruction by a voice. There is an advantage that it can be performed simply.
[0084]
【The invention's effect】
As described above in detail, according to the present invention, when recognizing a gesture of a target person, it is not necessary to detect each feature point (point indicating a feature of the motion of the target person). As compared with the recognition method, it is possible to reduce calculation processing when performing posture recognition or gesture recognition.
[Brief description of the drawings]
FIG. 1 is a block diagram showing an overall configuration of a gesture recognition system A.
FIG. 2 is a block diagram showing a configuration of a captured image analysis device 2 and a contour extraction device 3 included in the gesture recognition system A shown in FIG.
3A is a diagram showing a distance image D1, FIG. 3B is a diagram showing a difference image D2, FIG. 3C is a diagram showing an edge image D3, and FIG. 3D is a diagram showing skin color regions R1 and R2.
FIG. 4 is a diagram for explaining a method of setting a target distance.
FIG. 5 is a diagram for explaining a method of setting a target area T and a method of extracting a contour O of a target person C from within the target area T;
6 is a block diagram showing a configuration of a gesture recognition device 4 included in the gesture recognition system A shown in FIG.
FIG. 7A is a diagram for explaining a method for detecting a top position m1, and FIG. 7B is a diagram for explaining a method for detecting a face position m2.
8A is a diagram for explaining a method for detecting a hand position m3, and FIG. 8B is a diagram for explaining a method for detecting a hand position m4.
FIG. 9 is a diagram showing posture data P1 to P4.
FIG. 10 is a diagram showing gesture data J1 to J4.
FIG. 11 is a flowchart for explaining an outline of processing in a posture / gesture recognition unit 42B.
FIG. 12 is a flowchart for describing “Step S1: posture / gesture recognition processing” in the flowchart shown in FIG. 11;
FIG. 13 is a graph showing the “probability density of the posterior distribution” of the random variables ωi for the postures P1 to P4 and the gestures J1 to J4 in the frames 1 to 100.
FIG. 14 is a flowchart illustrating a “captured image analysis step” and an “outline extraction step” in the operation of the gesture recognition system A;
FIG. 15 is a flowchart illustrating a “face / hand position detection step” and a “posture / gesture recognition step” in the operation of the gesture recognition system A.
[Explanation of symbols]
A gesture recognition system 1 camera 2 captured image analysis device 3 contour extraction device 4 gesture recognition device 41 face / hand position detection means 41A head position detection unit 41B face position detection unit 41C hand position detection unit 41D hand position detection unit 42 posture / gesture Recognition unit 42A Posture / gesture data storage unit 42B Posture / gesture recognition unit

Claims (4)

カメラによってポスチャ認識又はジェスチャ認識の対象人物を撮像した撮像画像から、前記対象人物のポスチャ又はジェスチャを認識するための装置であって、
前記撮像画像から生成した前記対象人物の輪郭情報と肌色領域情報に基づいて、前記対象人物の実空間上における顔位置と手先位置を検出する顔・手先位置検出手段と、
前記顔位置と前記手先位置から、前記顔位置を基準とした際の前記手先位置の所定数フレームにおける平均及び分散を特徴ベクトルとして求め、前記特徴ベクトルに基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の事後分布の確率密度を計算し、各フレームにおける前記事後分布の確率密度が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識するポスチャ・ジェスチャ認識手段と
を備えたことを特徴とするジェスチャ認識装置。
Apparatus for recognizing the posture or gesture of the target person from a captured image of a target person for posture recognition or gesture recognition by a camera,
Face / hand position detection means for detecting a face position and a hand position in the real space of the target person based on contour information and skin color region information of the target person generated from the captured image,
From the face position and the hand position, the average and variance in a predetermined number of frames of the hand position based on the face position are obtained as a feature vector, and based on the feature vector, all using a statistical method, Posture and gesture recognition means for calculating the probability density of the posterior distribution of the posture and gesture random variables, and recognizing the posture or gesture having the largest probability density of the posterior distribution in each frame as the posture or gesture in the frame. And a gesture recognition device.
前記ポスチャ・ジェスチャ認識手段は、所定数フレームにおいて、同一のポスチャ又はジェスチャを所定回数以上認識できた場合にのみ、前記同一のポスチャ又はジェスチャを認識できたと判断することを特徴とする請求項1に記載のジェスチャ認識装置。The method according to claim 1, wherein the posture / gesture recognizing unit determines that the same posture or gesture has been recognized only when the same posture or gesture has been recognized more than a predetermined number of times in a predetermined number of frames. The gesture recognition device according to the above. カメラによってポスチャ認識又はジェスチャ認識の対象人物を撮像した撮像画像から、前記対象人物のポスチャ又はジェスチャを認識するための方法であって、
前記撮像画像から生成した前記対象人物の輪郭情報と肌色領域情報に基づいて、前記対象人物の実空間上における顔位置と手先位置を検出する顔・手先位置検出ステップと、
前記顔位置と前記手先位置から、前記顔位置を基準とした際の前記手先位置の所定数フレームにおける平均及び分散を特徴ベクトルとして求め、前記特徴ベクトルに基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の事後分布の確率密度を計算し、各フレームにおける前記事後分布の確率密度が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識するポスチャ・ジェスチャ認識ステップと
を含むことを特徴とするジェスチャ認識方法。
A method for recognizing a posture or gesture of the target person from a captured image of a target person for posture recognition or gesture recognition by a camera,
A face / hand position detection step of detecting a face position and a hand position in the real space of the target person based on contour information and skin color region information of the target person generated from the captured image,
From the face position and the hand position, the average and variance in a predetermined number of frames of the hand position based on the face position are obtained as a feature vector, and based on the feature vector, all using a statistical method, Posture / gesture recognition step of calculating the probability density of the posterior distribution of the posture and gesture random variables, and recognizing the posture or gesture having the largest probability density of the posterior distribution in each frame as the posture or gesture in that frame. And a gesture recognition method.
カメラによってポスチャ認識又はジェスチャ認識の対象人物を撮像した撮像画像から、前記対象人物のポスチャ又はジェスチャを認識するために、コンピュータを、
前記撮像画像から生成した前記対象人物の輪郭情報と肌色領域情報に基づいて、前記対象人物の実空間上における顔位置と手先位置を検出する顔・手先位置検出手段、
前記顔位置と前記手先位置から、前記顔位置を基準とした際の前記手先位置の所定数フレームにおける平均及び分散を特徴ベクトルとして求め、前記特徴ベクトルに基づいて、統計的手法を用いて、全てのポスチャ及びジェスチャの確率変数の事後分布の確率密度を計算し、各フレームにおける前記事後分布の確率密度が最大であるポスチャ又はジェスチャを、そのフレームにおけるポスチャ又はジェスチャと認識するポスチャ・ジェスチャ認識手段、
として機能させることを特徴とするジェスチャ認識プログラム。
From a captured image obtained by capturing a target person for posture recognition or gesture recognition by a camera, a computer for recognizing the posture or gesture of the target person,
Face / hand position detection means for detecting a face position and a hand position in the real space of the target person based on contour information and skin color region information of the target person generated from the captured image,
From the face position and the hand position, the average and variance in a predetermined number of frames of the hand position based on the face position are obtained as a feature vector, and based on the feature vector, all using a statistical method, Posture and gesture recognition means for calculating the probability density of the posterior distribution of the posture and gesture random variables, and recognizing the posture or gesture having the largest probability density of the posterior distribution in each frame as the posture or gesture in the frame. ,
A gesture recognition program characterized by functioning as a.
JP2003096520A 2003-03-31 2003-03-31 Gesture recognition device, gesture recognition method, and gesture recognition program Expired - Fee Related JP4153819B2 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2003096520A JP4153819B2 (en) 2003-03-31 2003-03-31 Gesture recognition device, gesture recognition method, and gesture recognition program
DE602004006190T DE602004006190T8 (en) 2003-03-31 2004-03-19 Device, method and program for gesture recognition
EP04006728A EP1477924B1 (en) 2003-03-31 2004-03-19 Gesture recognition apparatus, method and program
US10/805,392 US7593552B2 (en) 2003-03-31 2004-03-22 Gesture recognition apparatus, gesture recognition method, and gesture recognition program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2003096520A JP4153819B2 (en) 2003-03-31 2003-03-31 Gesture recognition device, gesture recognition method, and gesture recognition program

Publications (2)

Publication Number Publication Date
JP2004303014A true JP2004303014A (en) 2004-10-28
JP4153819B2 JP4153819B2 (en) 2008-09-24

Family

ID=33408575

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2003096520A Expired - Fee Related JP4153819B2 (en) 2003-03-31 2003-03-31 Gesture recognition device, gesture recognition method, and gesture recognition program

Country Status (1)

Country Link
JP (1) JP4153819B2 (en)

Cited By (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2007122218A (en) * 2005-10-26 2007-05-17 Fuji Xerox Co Ltd Image analyzing device
JP2007257088A (en) * 2006-03-20 2007-10-04 Univ Of Electro-Communications Robot device and its communication method
JP2008015931A (en) * 2006-07-07 2008-01-24 Honda Motor Co Ltd Vehicle surroundings monitoring system, vehicle, vehicle surroundings monitoring program, and system for constructing vehicle surroundings monitoring system
JP2008263422A (en) * 2007-04-12 2008-10-30 Yasumasa Muto Imaging apparatus and imaging method
JP2009080539A (en) * 2007-09-25 2009-04-16 Toshiba Corp Gesture recognition device and method therefor
JP2009211563A (en) * 2008-03-05 2009-09-17 Tokyo Metropolitan Univ Image recognition device, image recognition method, image recognition program, gesture operation recognition system, gesture operation recognition method, and gesture operation recognition program
US7756299B2 (en) 2004-12-14 2010-07-13 Honda Motor Co., Ltd. Face region estimating device, face region estimating method, and face region estimating program
JP2010170275A (en) * 2009-01-21 2010-08-05 Secom Co Ltd Transaction monitoring device
JP2011095984A (en) * 2009-10-29 2011-05-12 Nikon Corp Image display apparatus
JP2011175347A (en) * 2010-02-23 2011-09-08 Nec System Technologies Ltd Information processing apparatus and method
JP2011182386A (en) * 2010-02-05 2011-09-15 Sony Corp Image processing apparatus, image processing method, program, and electronic apparatus
JP2012003364A (en) * 2010-06-15 2012-01-05 Nippon Hoso Kyokai <Nhk> Person movement determination device and program for the same
US8165344B2 (en) 2005-05-31 2012-04-24 Fujifilm Corporation Image processing apparatus, moving image encoding apparatus, information processing method and information processing program
JP2016081251A (en) * 2014-10-15 2016-05-16 株式会社ソニー・コンピュータエンタテインメント Image processor and image processing method

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4231320B2 (en) * 2003-03-31 2009-02-25 本田技研工業株式会社 Moving body detection device

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7756299B2 (en) 2004-12-14 2010-07-13 Honda Motor Co., Ltd. Face region estimating device, face region estimating method, and face region estimating program
US8165344B2 (en) 2005-05-31 2012-04-24 Fujifilm Corporation Image processing apparatus, moving image encoding apparatus, information processing method and information processing program
US7978907B2 (en) 2005-10-26 2011-07-12 Fuji Xerox, Co., Ltd. Image analyzer
JP2007122218A (en) * 2005-10-26 2007-05-17 Fuji Xerox Co Ltd Image analyzing device
JP2007257088A (en) * 2006-03-20 2007-10-04 Univ Of Electro-Communications Robot device and its communication method
JP2008015931A (en) * 2006-07-07 2008-01-24 Honda Motor Co Ltd Vehicle surroundings monitoring system, vehicle, vehicle surroundings monitoring program, and system for constructing vehicle surroundings monitoring system
JP2008263422A (en) * 2007-04-12 2008-10-30 Yasumasa Muto Imaging apparatus and imaging method
JP2009080539A (en) * 2007-09-25 2009-04-16 Toshiba Corp Gesture recognition device and method therefor
JP2009211563A (en) * 2008-03-05 2009-09-17 Tokyo Metropolitan Univ Image recognition device, image recognition method, image recognition program, gesture operation recognition system, gesture operation recognition method, and gesture operation recognition program
JP2010170275A (en) * 2009-01-21 2010-08-05 Secom Co Ltd Transaction monitoring device
JP2011095984A (en) * 2009-10-29 2011-05-12 Nikon Corp Image display apparatus
JP2011182386A (en) * 2010-02-05 2011-09-15 Sony Corp Image processing apparatus, image processing method, program, and electronic apparatus
JP2011175347A (en) * 2010-02-23 2011-09-08 Nec System Technologies Ltd Information processing apparatus and method
JP2012003364A (en) * 2010-06-15 2012-01-05 Nippon Hoso Kyokai <Nhk> Person movement determination device and program for the same
JP2016081251A (en) * 2014-10-15 2016-05-16 株式会社ソニー・コンピュータエンタテインメント Image processor and image processing method

Also Published As

Publication number Publication date
JP4153819B2 (en) 2008-09-24

Similar Documents

Publication Publication Date Title
JP4153818B2 (en) Gesture recognition device, gesture recognition method, and gesture recognition program
US7593552B2 (en) Gesture recognition apparatus, gesture recognition method, and gesture recognition program
JP4317465B2 (en) Face identification device, face identification method, and face identification program
JP4318465B2 (en) Person detection device and person detection method
JP4153819B2 (en) Gesture recognition device, gesture recognition method, and gesture recognition program
JP4372051B2 (en) Hand shape recognition apparatus and method
US9117138B2 (en) Method and apparatus for object positioning by using depth images
JP5001930B2 (en) Motion recognition apparatus and method
KR101612605B1 (en) Method for extracting face feature and apparatus for perforimg the method
JP6579950B2 (en) Image analysis apparatus, program, and method for detecting person appearing in captured image of camera
JP6066093B2 (en) Finger shape estimation device, finger shape estimation method, and finger shape estimation program
JP2014165660A (en) Method of input with virtual keyboard, program, storage medium, and virtual keyboard system
JP3952460B2 (en) Moving object detection apparatus, moving object detection method, and moving object detection program
JP2004301607A (en) Moving object detection device, moving object detection method, and moving object detection program
JP2005351814A (en) Detector and detecting method
Chai et al. Human gait recognition: approaches, datasets and challenges
JP7501747B2 (en) Information processing device, control method, and program
KR102216124B1 (en) Method and apparatus for processing images
CN106406507B (en) Image processing method and electronic device
JP2005196359A (en) Moving object detection apparatus, moving object detection method and moving object detection program
WO2020016963A1 (en) Information processing device, control method, and program
JP7491380B2 (en) IMAGE SELECTION DEVICE, IMAGE SELECTION METHOD, AND PROGRAM
JP7270304B2 (en) Method and mobile device for implementing the method for verifying the identity of a user by identifying an object in an image that has the user&#39;s biometric characteristics
KR20170136691A (en) Method of facial recognition in camera image
JP2017227687A (en) Camera assembly, finger shape detection system using camera assembly, finger shape detection method using camera assembly, program implementing detection method, and recording medium of program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20051130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20080408

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20080609

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20080704

R150 Certificate of patent or registration of utility model

Ref document number: 4153819

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

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

Free format text: PAYMENT UNTIL: 20110711

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20110711

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120711

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20120711

Year of fee payment: 4

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

Free format text: PAYMENT UNTIL: 20130711

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20140711

Year of fee payment: 6

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees