JP4452832B2 - Method and apparatus for detecting pupils - Google Patents

Method and apparatus for detecting pupils Download PDF

Info

Publication number
JP4452832B2
JP4452832B2 JP2006098512A JP2006098512A JP4452832B2 JP 4452832 B2 JP4452832 B2 JP 4452832B2 JP 2006098512 A JP2006098512 A JP 2006098512A JP 2006098512 A JP2006098512 A JP 2006098512A JP 4452832 B2 JP4452832 B2 JP 4452832B2
Authority
JP
Japan
Prior art keywords
pupil
image
nostril
dark
bright
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.)
Active
Application number
JP2006098512A
Other languages
Japanese (ja)
Other versions
JP2007268026A (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.)
Shizuoka University NUC
Original Assignee
Shizuoka University NUC
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 Shizuoka University NUC filed Critical Shizuoka University NUC
Priority to JP2006098512A priority Critical patent/JP4452832B2/en
Publication of JP2007268026A publication Critical patent/JP2007268026A/en
Application granted granted Critical
Publication of JP4452832B2 publication Critical patent/JP4452832B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Eye Examination Apparatus (AREA)

Description

本発明は、撮影した画像によって、対象者の瞳孔を検出する方法及びそのための装置に関するものである。   The present invention relates to a method for detecting a pupil of a subject based on a photographed image and an apparatus therefor.

対象者の瞳孔を検出する技術は、例えば、自動車を運転中の対象者の視線や視線変化を検知することで居眠り運転を予防することや、また、対象者の瞳孔の動きによって指を用いることなくコンピュータへの入力を行う瞳孔マウスにも活用され得る。本発明者は、カメラによって撮影した画像から瞳孔を検出する技術を開発してきた。例えば、特許文献1では、瞳孔と角膜反射点との関係位置から対象者の視線を検出する技術を開示している。特許文献2では、検出した瞳孔の位置座標をカーソル位置制御信号とする技術を開示している。特許文献3では、瞳孔と鼻孔の位置を検出して頭部の方向を決定する技術を開示している。特許文献4では、瞳孔と角膜反射点の位置を検出して対象者が見ている視点の三次元位置を決定する技術を開示している。   The technology for detecting the subject's pupil is, for example, preventing a drowsy driving by detecting the subject's line of sight and changes in the line of sight while driving a car, or using a finger by the movement of the subject's pupil It can also be used for a pupil mouse that performs input to a computer. The inventor has developed a technique for detecting a pupil from an image photographed by a camera. For example, Patent Document 1 discloses a technique for detecting a subject's line of sight from a position between a pupil and a corneal reflection point. Patent Document 2 discloses a technique in which the position coordinate of the detected pupil is used as a cursor position control signal. Patent Document 3 discloses a technique for determining the direction of the head by detecting the positions of the pupil and nostril. Patent Document 4 discloses a technique for determining the three-dimensional position of the viewpoint viewed by the subject by detecting the positions of the pupil and the corneal reflection point.

これらの技術においては、瞳孔の検出には、カメラにより撮影した明瞳孔画像と暗瞳孔画像を差分することで、瞳孔部分を周囲画像から区別する方法を用いている。カメラの開口近くに近赤外線等の光源を設け、カメラの光軸に沿うようにして光を対象者の顔に照射して撮影すると、光は瞳孔から網膜に達して反射し、水晶体、角膜を通ってカメラの開口に戻る。このときの画像は、瞳孔が明るく撮影されており、その画像を明瞳孔画像という。一方、カメラの開口から離した光源による光を対象者の顔に照射して撮影すると、網膜から反射した光はカメラの開口にはほとんど入射しないために、瞳孔は暗く撮影され、その画像を暗瞳孔画像という。瞳孔は周囲の明るさで大きさが変化し、特に明るい場所では小さくなって検出し難くなる。また、メガネ着用者では、瞳孔近傍のメガネの一部が反射を起こしたりすることから、瞳孔の検出は、明瞳孔又は暗瞳孔のどちらを用いても単独の画像から行うことは困難を伴う。しかし、明瞳孔を撮影した画像と暗瞳孔を撮影した画像の差分を行うと、瞳孔部以外の周囲部分は両画像においてほぼ同じような明るさであることから、互いに相殺して、明るさに差がある瞳孔部だけが浮き彫りになる。これによって、瞳孔を容易に検出することができ、瞳孔検出の低コスト化とロバスト性向上を図ることができる。   In these techniques, for detection of the pupil, a method is used in which the pupil portion is distinguished from the surrounding image by subtracting the bright pupil image and the dark pupil image captured by the camera. When a light source such as near-infrared light is provided near the camera's aperture and the subject's face is irradiated with light along the optical axis of the camera, the light reaches the retina from the pupil and is reflected, and the lens and cornea are reflected. Go back to the camera opening. In this image, the pupil is photographed brightly, and the image is called a bright pupil image. On the other hand, if the subject's face is illuminated with light from a light source away from the camera opening, the light reflected from the retina hardly enters the camera opening, so the pupil is photographed darkly, and the image is darkened. This is called a pupil image. The size of the pupil changes depending on the brightness of the surroundings, and becomes small and difficult to detect particularly in bright places. In addition, since a part of the glasses near the pupil causes reflection in a spectacle wearer, it is difficult to detect the pupil from a single image using either the bright pupil or the dark pupil. However, if the difference between the image obtained by photographing the bright pupil and the image obtained by photographing the dark pupil is obtained, the surrounding portions other than the pupil portion have almost the same brightness in both images. Only the pupil with a difference will be highlighted. Thereby, the pupil can be easily detected, and the cost of pupil detection can be reduced and the robustness can be improved.

なお、周囲の明るさ等の条件によっては、明瞳孔であっても、必ずしも瞳孔部の画像が周囲の画像よりも明るいとは限らず、暗瞳孔であっても瞳孔部の画像が周囲の画像よりも暗いとは限らない。本明細書における明瞳孔、暗瞳孔とは、そのときに撮影した2つの画像における瞳孔の間に相対的な明るさの違いがあり、明瞳孔は暗瞳孔に比べて相対的に明るいものであるということである。   Depending on the surrounding brightness and other conditions, the image of the pupil part is not necessarily brighter than the surrounding image even in the case of the bright pupil. It is not always darker. The bright pupil and the dark pupil in this specification have a relative brightness difference between the pupils in the two images taken at that time, and the bright pupil is relatively brighter than the dark pupil. That's what it means.

さらに、本発明者は、2つの光源での点灯を切り替えて照射を行うことなく、網膜での反射率の異なる波長の光源を同時に点灯させた状態で、対象者の顔の撮影を行い、それぞれの波長による明瞳孔画像と暗瞳孔画像を同時に得て、それらの画像の差分を行う技術についての特許出願1,2をしている。
[特許文献1]特開2005−185431号公報
[特許文献2]特開2005−182247号公報
[特許文献3]特開2005−266868号公報
[特許文献4]特開2005−198743号公報
[特許出願1]特願2005−241728号
[特許出願2]特願2005−306961号
Furthermore, the present inventor shot the face of the subject in a state in which the light sources having different wavelengths of retina are simultaneously turned on without switching on and turning on the two light sources. Patent applications 1 and 2 relating to a technique for simultaneously obtaining a bright pupil image and a dark pupil image with different wavelengths and performing a difference between the images.
[Patent Document 1] JP-A-2005-185431
[Patent Document 2] JP 2005-182247 A
[Patent Document 3] Japanese Patent Application Laid-Open No. 2005-266868
[Patent Document 4] Japanese Patent Application Laid-Open No. 2005-198743
[Patent Application 1] Japanese Patent Application No. 2005-241728
[Patent Application 2] Japanese Patent Application No. 2005-306961

しかし、特許文献1〜4の技術では、明瞳孔撮影用の光源と暗瞳孔撮影用の2つの光源を交互に点灯して撮影することから、明瞳孔画像と暗瞳孔画像の撮影は時間差を伴っており、その間に対象者の顔が動くと、両画像における明瞳孔と暗瞳孔の位置にずれが生じることになり、画像差分によって瞳孔の位置を正確に検出できない場合がある。例えば、NTSC方式のカメラ撮影における1/30秒毎の1フレームを構成する奇数フィールドと偶数フィールドとをそれぞれ明瞳孔画像と暗瞳孔画像とした場合、両画像の撮影には、1/60秒の時間差があり、その間の顔の移動によって、両画像における瞳孔の位置が重なることのない状態までにずれてしまうと、画像を差分する効果がないことになる。図12(A)に示すように、明瞳孔の画像P1と暗瞳孔の画像P2が一部ずれた場合、その重なった斜線の部分だけにしか差分の効果が現れない。これがさらにずれると、重なり部分が無くなって全く差分の効果が出ず、瞳孔検出が困難になる。また、明瞳孔、暗瞳孔撮影時のシャッターを開いている間に顔が移動すると、図12(B)のように瞳孔画像がぶれることになる。(C)のようにぶれた明瞳孔画像P1と暗瞳孔画像P2でも、一部が重なれば、斜線部分には一応の差分効果は現れる。しかし、図13に示すように、瞳孔の近くでメガネの反射等の高輝度の部分があると、その画像d1、d2は、両画像が一致していれば差分を取ることで消去されるにもかかわらず、両画像がずれていると差分をしても斜線部分のように高輝度部分として残るために瞳孔の画像P1、P2と区別が付かなくなることもある。このように、明瞳孔の画像と暗瞳孔の画像がずれると、瞳孔を精度よく検出することが困難になる。
また、特許出願1,2の技術によれば、異なる波長の光を同時に照射して、それぞれの波長による明瞳孔画像と暗瞳孔画像を同時に得ることから、時間差を生じないが、波長分離をするための設備や2つの波長での撮影用の2台のカメラが必要なことや、波長分離のための作業が必要等の問題が生じる。
However, in the techniques of Patent Documents 1 to 4, since the light source for bright pupil photography and the two light sources for dark pupil photography are alternately turned on and photographed, the photographing of the bright pupil image and the dark pupil image involves a time difference. If the subject's face moves during that time, the positions of the bright and dark pupils in both images will shift, and the position of the pupil may not be detected accurately due to the image difference. For example, when an odd field and an even field constituting one frame every 1/30 seconds in NTSC camera shooting are a bright pupil image and a dark pupil image, respectively, 1/60 seconds are required for shooting both images. If there is a time difference and the position of the pupil in both images shifts to a state where they do not overlap due to the movement of the face between them, there is no effect of differentiating the images. As shown in FIG. 12A, when the bright pupil image P1 and the dark pupil image P2 are partially shifted, the difference effect appears only in the overlapping hatched portion. If this further deviates, there will be no overlapping portion and no difference effect will be produced, making pupil detection difficult. In addition, if the face moves while the shutter for photographing bright pupils and dark pupils is opened, the pupil image is blurred as shown in FIG. Even in the bright pupil image P1 and the dark pupil image P2 blurred as shown in (C), if a part of them overlaps, a temporary difference effect appears in the hatched portion. However, as shown in FIG. 13, if there is a high-luminance part such as the reflection of glasses near the pupil, the images d1 and d2 are erased by taking the difference if the two images match. However, if the two images are shifted, even if the difference is made, it remains as a high-luminance portion like a shaded portion, and thus it may not be distinguished from the pupil images P1 and P2. Thus, if the bright pupil image and the dark pupil image are shifted, it becomes difficult to detect the pupil with high accuracy.
In addition, according to the techniques of Patent Applications 1 and 2, light of different wavelengths is simultaneously irradiated, and a bright pupil image and a dark pupil image are obtained at the same wavelength, so that there is no time difference, but wavelength separation is performed. Problems such as the need for equipment and two cameras for photographing at two wavelengths, and the need for work for wavelength separation arise.

本発明は、これらの問題を解決するためになされたものであり、特段に複雑な装置や作業を要することなく、明瞳孔を撮影した画像と暗瞳孔を撮影した画像の時間差による瞳孔部分の位置のずれを解消して、ロバスト性の高い瞳孔の検出方法及び装置を提供することを目的とする。   The present invention has been made to solve these problems, and the position of the pupil part due to the time difference between the image obtained by photographing the bright pupil and the image obtained by photographing the dark pupil without requiring a particularly complicated apparatus or work. It is an object of the present invention to provide a highly robust pupil detection method and apparatus that eliminates the deviation.

このような目的を達成するために、本発明の瞳孔を検出する方法は、明瞳孔画像と暗瞳孔画像を差分することにより瞳孔を検出するための方法であって、ある時点に明瞳孔を撮影した画像と、その後の時点又はその前の時点に暗瞳孔を撮影した画像とにおける鼻孔の位置のずれ量を検出し、明瞳孔を撮影した画像又は暗瞳孔を撮影した画像を、鼻孔の位置のずれ量に対応する分だけずれを打ち消す方向に移動する位置補正を行い、位置補正後の両画像を差分するようにしたものである。   In order to achieve such an object, the method for detecting a pupil of the present invention is a method for detecting a pupil by subtracting a bright pupil image from a dark pupil image, and photographing a bright pupil at a certain point in time. The amount of deviation of the nostril position between the captured image and the image of the dark pupil taken at or after that point is detected, and the image of the bright pupil or the image of the dark pupil is Position correction is performed so as to cancel the shift by an amount corresponding to the shift amount, and both images after the position correction are differentiated.

本発明によれば、明瞳孔と暗瞳孔を撮影した2つの画像における鼻孔の位置のずれ量を検出して、明瞳孔を撮影した画像又は暗瞳孔を撮影した画像を、鼻孔の位置のずれ量に対応する分だけずれを打ち消す方向に移動する位置補正を行うことで、両画像の瞳孔部を実質的に一致させることができ、その上で、画像の差分をするようにした。そのため、両画像の取得に時間差があるにもかかわらず、明瞳孔と暗瞳孔は位置が一致した状態で差分されて周囲から浮き彫りにされ瞳孔検出が精度よくなされる。鼻孔をずれの検出のための基準とする理由は、鼻孔の場合は、まぶたによって閉じられたり明るさによって小さくなったり、めがねが存在したりする瞳孔の場合と異なり、明瞳孔を撮影した画像と暗瞳孔を撮影した画像のそれぞれにおいて、周囲に対して暗い部分として安定的に検出することが可能で、顔を移動したときには瞳孔とほぼ同じ並行的な移動をすることから、鼻孔を利用することで、顔に検出基準のためのマーカ等を付ける必要もないためである。ここで、位置補正を行う量である鼻孔の位置のずれ量に対応する分とは、鼻孔の位置のずれ量と同じ量であってもよく、鼻孔部分のずれと瞳孔部分のずれに1対1以外の対応関係があれば、それを考慮した量であってもよい。また、位置補正のために移動してその後差分を行う画像は、明瞳孔を撮影した画像又は暗瞳孔を撮影した画像の全体である必要はない。   According to the present invention, the deviation amount of the nostril position in two images obtained by photographing the bright pupil and the dark pupil is detected, and the image obtained by photographing the bright pupil or the image obtained by photographing the dark pupil is converted into the deviation amount of the nostril position. By performing position correction that moves in a direction that cancels the shift by the amount corresponding to, the pupil portions of both images can be substantially matched, and then the difference between the images is made. Therefore, even though there is a time difference between the acquisition of both images, the bright pupil and the dark pupil are differentiated in a state where the positions coincide with each other and are embossed from the surroundings, so that the pupil detection is performed with high accuracy. The reason for using the nostril as a standard for detecting the deviation is that in the case of a nostril, unlike a pupil that is closed by the eyelids, is reduced by brightness, or has glasses, In each of the images taken of the dark pupil, it is possible to detect stably as a dark part with respect to the surroundings, and when moving the face, it moves in the same parallel as the pupil, so use the nostril This is because it is not necessary to attach a marker or the like for detection reference to the face. Here, the amount corresponding to the shift amount of the nostril position, which is the amount of position correction, may be the same amount as the shift amount of the nostril position. If there is a correspondence relationship other than 1, the amount may be taken into consideration. In addition, the image that is moved for position correction and subsequently subjected to the difference need not be the entire image obtained by photographing the bright pupil or the entire image obtained by photographing the dark pupil.

また、本発明において、位置補正において移動する明瞳孔を撮影した画像又は暗瞳孔を撮影した画像を、瞳孔周囲に設定したウインドウ領域の画像であることとする場合は、鼻孔の位置のずれに対応して位置補正をして、瞳孔検出のための解析を行う画像領域を、瞳孔周囲の必要最小限の画像領域とできることから、瞳孔検出の演算効率を高めることができる。   Further, in the present invention, when the image of the bright pupil moving in the position correction or the image of the dark pupil is an image of the window area set around the pupil, it corresponds to the displacement of the nostril position. Since the image area for which the position correction is performed and the analysis for detecting the pupil is performed can be the minimum necessary image area around the pupil, the calculation efficiency of the pupil detection can be improved.

また本発明において、位置補正を、先に撮影した画像を後に撮影した画像の位置へ移動するものであることとする場合は、後に撮影した画像における瞳孔が求まることになる。すなわち最新の画像における瞳孔位置を求め、これを基準として、さらにその後に続く瞳孔の検出を行うことができる。   Further, in the present invention, when the position correction is to move the previously captured image to the position of the later captured image, the pupil in the later captured image is obtained. That is, the position of the pupil in the latest image can be obtained, and the subsequent pupil can be detected using this as a reference.

また、本発明において、鼻孔の位置のずれ量の検出に先立って、明瞳孔画像と暗瞳孔画像を差分することによって瞳孔の位置を検出し、この検出した瞳孔の位置を基準にして、鼻孔周囲にウインドウを設定し、ウインドウ内を探索することで鼻孔を検出する処理を伴うこととする場合は、当初の鼻孔検出が容易となる。すなわち、鼻孔は一旦検出できれば、画像の差分を利用することなく安定的に検出可能であるが、顔の位置がほぼ安定している等の一定の条件においては、画像の差分を利用して瞳孔を検出する方が容易な場合があることから、その場合、検出できた瞳孔の位置を基準にして、鼻孔の位置が予想される箇所にウインドウを設定して、その領域内で鼻孔探索することが効率的である。   Further, in the present invention, prior to detection of the displacement amount of the nostril position, the pupil position is detected by subtracting the bright pupil image from the dark pupil image, and the nostril circumference is determined based on the detected pupil position. If the window is set and the process of detecting the nostril by searching in the window is involved, initial nostril detection becomes easy. In other words, once the nostril can be detected, it can be stably detected without using the difference in the image, but under certain conditions such as the face position being almost stable, the difference in the image is used to make the pupil. In that case, based on the detected pupil position, set a window where the nostril position is expected and search for the nostril within that area. Is efficient.

また、本発明の瞳孔を検出する装置は、明瞳孔画像と暗瞳孔画像を差分することにより瞳孔を検出するための装置であって、明瞳孔及び暗瞳孔を撮影する手段と、ある時点に明瞳孔を撮影した画像とその後の時点又はその前の時点に暗瞳孔を撮影した画像とにおける鼻孔の位置のずれ量を検出する手段と、明瞳孔を撮影した画像又は暗瞳孔を撮影した画像を、鼻孔の位置のずれ量に対応する分だけずれを打ち消す方向に移動する位置補正を行う手段と、位置補正後の両画像を差分することにより瞳孔の位置を求める手段とを備える。   The pupil detection device of the present invention is a device for detecting a pupil by subtracting a bright pupil image from a dark pupil image, and means for photographing a bright pupil and a dark pupil, and a bright light at a certain time. Means for detecting the amount of deviation of the position of the nostril between the image obtained by photographing the pupil and the image obtained by photographing the dark pupil at the subsequent time or the time before the image; and the image obtained by photographing the bright pupil or the image obtained by photographing the dark pupil. Means for correcting the position of movement in a direction corresponding to the amount of deviation of the nostril position, and means for determining the position of the pupil by subtracting the two images after position correction.

本発明によれば、撮影手段によって明瞳孔と暗瞳孔を撮影した2つの画像における鼻孔の位置のずれ量を検出手段によって検出して、明瞳孔を撮影した画像又は暗瞳孔を撮影した画像を、鼻孔の位置のずれ量に対応する分だけずれを打ち消す方向に移動する位置補正を位置補正手段によって行うことで、両画像の瞳孔部を実質的に一致させることができ、その上で、画像の差分をすることにより瞳孔の位置を求めることができる。そのため、両画像の取得に時間差があるにもかかわらず、明瞳孔と暗瞳孔は位置が一致した状態で差分されて周囲から浮き彫りにされ瞳孔位置検出が精度よくなされる。   According to the present invention, the detection unit detects a shift amount of the nostril position in the two images obtained by photographing the bright pupil and the dark pupil by the photographing unit, and an image obtained by photographing the bright pupil or an image obtained by photographing the dark pupil, By performing position correction that moves in a direction that cancels the shift by an amount corresponding to the shift amount of the nostril position, the pupil portions of both images can be substantially matched, and then the image By calculating the difference, the position of the pupil can be obtained. Therefore, although there is a time difference in the acquisition of both images, the bright pupil and the dark pupil are differentiated in a state in which the positions coincide with each other and are embossed from the surroundings, so that the pupil position is accurately detected.

本発明によれば、特段に複雑な装置や作業を要することなく、明瞳孔を撮影した画像と暗瞳孔を撮影した画像の時間差による瞳孔部分の位置のずれを解消して、ロバスト性の高い瞳孔の検出方法及び装置を提供することができる。   According to the present invention, a highly robust pupil can be achieved by eliminating a shift in the position of the pupil due to a time difference between an image obtained by photographing a bright pupil and an image obtained by photographing a dark pupil without requiring a particularly complicated device or work. Detection method and apparatus can be provided.

以下、図面に基づいて、本発明による瞳孔を検出する方法及び装置の好適な実施形態について詳細に説明する。先ず、図1により、本実施形態の基本的な技術を説明する。図1(A)は、対象者の明瞳孔と暗瞳孔を撮影した画像を示す概念図である。対象者の顔を照明する近赤外線の光源として、カメラの開口に近い位置と遠い位置に配置した2つの光源を用いる。撮影手段としてNTSC方式のカメラを用いると、NTSC方式では、1秒間に30枚得られる1フレームは、奇数ラインだけの奇数フィールドと偶数ラインだけの偶数フィールドから構成されることから、奇数フィールドの画像と偶数フィールドの画像とが1/60秒の間隔で交互に得られる。そこで、奇数フィールドの撮影時にカメラの開口に近い位置の光源を点灯するようにし、偶数フィールドの撮影時にカメラの開口に遠い位置の光源を点灯するようにすると、奇数フィールドでは明瞳孔が撮影され、偶数フィールドでは暗瞳孔が撮影されることになる。   Hereinafter, preferred embodiments of a method and apparatus for detecting a pupil according to the present invention will be described in detail with reference to the drawings. First, the basic technique of this embodiment will be described with reference to FIG. FIG. 1A is a conceptual diagram showing an image obtained by photographing a bright pupil and a dark pupil of a subject. Two near-infrared light sources that illuminate the face of the subject are two light sources arranged near and far from the camera opening. When an NTSC system camera is used as a photographing means, in the NTSC system, one frame obtained per 30 frames is composed of an odd field with only odd lines and an even field with only even lines. And even field images are alternately obtained at 1/60 second intervals. Therefore, if the light source located near the camera aperture is lit when shooting an odd field, and the light source located far from the camera aperture is lit when shooting an even field, the bright pupil is shot in the odd field, In the even field, the dark pupil is photographed.

図1(A)では、このようにして、撮影した奇数フィールドの画像において、対象者の顔1aが撮影されており、この中には明瞳孔である左右の瞳孔21a、22a、左右の鼻孔31a,32aが存在している。ここで、鼻孔31a,32aについては、ある程度位置の予測がついていれば、1つの画像からでも判別分析法などによって画像明るさを2値化して検出することができるが、瞳孔21a,22aについては、この1つの画像からだけでは、前記のとおり検出が困難である。そこで、次の時点の偶数フィールドの画像における暗瞳孔である左右の瞳孔21b、22bと画像差分を行って、瞳孔を検出するのであるが、1/60秒の間に顔が1bの位置に矢印のように移動していると、明瞳孔21a,22aと暗瞳孔21b、22bとが図のようにずれてしまっており、差分をとっても瞳孔が周囲に対して浮き彫りになることなく、瞳孔の位置を検出することができない。   In FIG. 1A, the face 1a of the subject is photographed in the odd field image thus photographed, in which the left and right pupils 21a and 22a, which are bright pupils, and the left and right nostrils 31a are captured. , 32a exist. Here, the nostrils 31a and 32a can be detected by binarizing the image brightness by a discriminant analysis method or the like from one image if the position is predicted to some extent, but the pupils 21a and 22a are detected. As described above, it is difficult to detect only from this one image. Therefore, the difference between the left and right pupils 21b and 22b, which are dark pupils in the image of the even field at the next time point, is detected and the pupil is detected, but the face is moved to the position of 1b in 1/60 seconds. The bright pupils 21a and 22a and the dark pupils 21b and 22b are displaced as shown in the figure, and even if the difference is taken, the pupil is not relieved with respect to the surroundings. Cannot be detected.

ところが、この暗瞳孔21b、22bを撮影した画像でも鼻孔31b,31bの位置は検出できることから、2つの画像の撮影の間に鼻孔が31a,32aから31b、32bに矢印のように位置がずれた量を求めることができる。そして、そのずれ量の分だけ明瞳孔21a、22aを撮影した画像を暗瞳孔22a,22bを撮影した画像の位置に移動する補正を行った上で、画像の差分を取ると、瞳孔の位置が一致していることから、瞳孔が、偶数フィールドの画像位置において求められた差分画像上で、浮き彫りになってを検出することができる。その場合、画像全体を移動させたのでは、演算の負担が大きく、しかも解析する画像が広いと瞳孔と紛らわしい部分が解析対象となることもあるために、図1(B)に示すように、明瞳孔21a,22aが含まれていると予測されるウインドウ41a,42a内の画像だけを、鼻孔のずれ量だけ41b、42bのように移動する補正を行って、その領域の差分を演算すればよい。   However, since the positions of the nostrils 31b and 31b can be detected even in the images of the dark pupils 21b and 22b, the positions of the nostrils are shifted from 31a and 32a to 31b and 32b as indicated by arrows between the two images. The amount can be determined. Then, after correcting the image obtained by photographing the bright pupils 21a and 22a to the position of the image obtained by photographing the dark pupils 22a and 22b by the amount of the deviation, the position of the pupil is determined by taking the image difference. Since they match, it is possible to detect whether the pupil is embossed on the difference image obtained at the image position of the even field. In that case, if the entire image is moved, the burden of calculation is large, and if the image to be analyzed is wide, a portion that is confused with the pupil may be an analysis target. Therefore, as shown in FIG. If only the images in the windows 41a and 42a that are predicted to include the bright pupils 21a and 22a are corrected by moving the nostril displacement amounts as 41b and 42b, and the difference between the regions is calculated. Good.

この場合、補正値とする鼻孔のずれ量としては、左右の鼻孔のずれ量の平均値を用いても、右の鼻孔のずれ量は、右の瞳孔の位置補正に、左の鼻孔のずれ量は左の瞳孔の位置補正に用いてもよく、あるいは片方の鼻孔のずれ量を検出して、両方の瞳孔の位置補正に用いてもよい。また、鼻孔と瞳孔の移動量がほぼ等しいことが予測されている場合は、鼻孔のずれの方向とずれの値をそのまま瞳孔の位置の補正に用いてもよい。また、鼻孔の位置を容易に検出するためには、カメラの位置を下方として、鼻孔を下方側から撮影することが好ましいが、そのような撮影等を行うと、画像上での鼻孔のずれの方向とずれの値が、瞳孔の位置のずれとは完全には一致せずにある傾向を持つこともあるため、そのような傾向を考慮して位置補正を行ってもよい。また、奇数フィールドと偶数フィールドのどちらで、明瞳孔又は暗瞳孔の撮影を行ってもよい。また、画像がぶれないためには、カメラのシャッターを開口している時間は短いこと、すなわちシャッター速度が速いことが好ましい。   In this case, even if the average value of the right and left nostril deviations is used as the correction value for the nostril deviation, the right nostril deviation amount is used to correct the right pupil position and the left nostril deviation amount. May be used to correct the position of the left pupil, or may be used to correct the position of both pupils by detecting the amount of deviation of one nostril. In addition, when it is predicted that the movement amounts of the nostril and the pupil are almost equal, the direction of the nostril deviation and the deviation value may be used as they are for correcting the pupil position. In order to easily detect the position of the nostril, it is preferable to take a picture of the nostril from the lower side with the position of the camera below. Since there is a tendency that the value of the direction and the deviation does not completely coincide with the deviation of the pupil position, the position correction may be performed in consideration of such a tendency. Further, the bright pupil or the dark pupil may be imaged in either the odd field or the even field. In order not to blur the image, it is preferable that the time during which the shutter of the camera is opened is short, that is, the shutter speed is high.

図1においては、明瞳孔21a,22aを撮影した画像と次の時点での暗瞳孔21b、22bを撮影した画像を1つの単位として、これらの間の位置補正と画像差分することについて説明した。その後に続くステップにおいても、明瞳孔を撮影した画像と暗瞳孔を撮影した画像とを、1つの単位として同様に処理を行えばよい。この場合、1単位中の後の画像である例えば暗瞳孔の画像における瞳孔が求まることから、暗瞳孔画像が1/30秒で得られるものなら、瞳孔の検出もその間隔でなされることになる。   In FIG. 1, the image correction of the position correction and the image difference between the images of the bright pupils 21 a and 22 a and the image of the dark pupils 21 b and 22 b at the next time point are described as one unit. In the subsequent steps, the same processing may be performed for an image obtained by photographing the bright pupil and an image obtained by photographing the dark pupil as one unit. In this case, since the pupil in the image of the dark pupil, for example, the image of the dark pupil after one unit is obtained, if the dark pupil image can be obtained in 1/30 seconds, the detection of the pupil is also performed at that interval. .

あるいは、図2に示すように、明瞳孔21a,22aを撮影した画像と次の時点での暗瞳孔21b、22bを撮影した画像との間で、前記のとおりの位置補正と画像差分の処理を行った後、次の時点の明瞳孔21c、22cを撮影した画像については、暗瞳孔21b、22bを撮影した画像との間で、鼻孔が31b、32bから31c、32cにずれた量に基づいて、位置補正と画像差分の処理を行ってもよい。この場合は、明瞳孔21c、22cの画像の位置における瞳孔が求まることになる。このように、明瞳孔と次の暗瞳孔の画像の組み合わせだけを1単位とすることなく、隣接する時点での画像同士での処理を連続的に行うと、暗瞳孔21b、22bの画像での瞳孔位置が求まった後には、次の明瞳孔21c、22cの画像での瞳孔位置、またその次の暗瞳孔の画像での瞳孔位置というように、連続的に求めることができることになり、明瞳孔画像と暗瞳孔画像がそれぞれ、1/30秒で得られるものなら、瞳孔の位置はその倍の1/60秒間隔で得られることになる。   Alternatively, as shown in FIG. 2, the position correction and the image difference processing as described above are performed between an image obtained by photographing the bright pupils 21a and 22a and an image obtained by photographing the dark pupils 21b and 22b at the next time point. After the image is taken, the images of the bright pupils 21c and 22c at the next time point are based on the amount of deviation of the nostrils from 31b and 32b to 31c and 32c between the images of the dark pupils 21b and 22b. Alternatively, position correction and image difference processing may be performed. In this case, the pupil at the position of the image of the bright pupils 21c and 22c is obtained. As described above, when the processing between the images at the adjacent time points is continuously performed without setting only the combination of the image of the bright pupil and the next dark pupil as one unit, the images of the dark pupils 21b and 22b are displayed. After the pupil position is obtained, the pupil position in the next bright pupil image 21c, 22c image and the pupil position in the next dark pupil image can be obtained continuously. If the image and the dark pupil image can be obtained in 1/30 seconds, the position of the pupil can be obtained at 1/60 second intervals.

次に、本実施形態の具体的例を図3以下によって説明する。この例においては、NTSC方式のカメラを用い、奇数フィールドで明瞳孔を撮影して偶数フィールドでは暗瞳孔を撮影することとする。そして、ある時点で明瞳孔を撮影した画像とその次の1/60秒後の時点で暗瞳孔を撮影した画像の2枚の画像によって1単位(1フレーム)を構成して、図1において説明したような画像処理を行って瞳孔の位置を検出し、その処理が終了すると、その処理中に既にコンピュータ中に取り込んでいた次の1フレームのデータについて画像処理を行って新たな瞳孔の位置を検出する処理を繰り返すものである。   Next, a specific example of this embodiment will be described with reference to FIG. In this example, an NTSC camera is used, and a bright pupil is imaged in an odd field and a dark pupil is imaged in an even field. Then, one unit (one frame) is composed of two images of an image obtained by photographing the bright pupil at a certain time point and an image obtained by photographing the dark pupil at the next 1/60 second time point, and is described in FIG. When the image processing is performed to detect the position of the pupil and the processing ends, the next one frame of data already captured in the computer during the processing is subjected to image processing to obtain a new pupil position. The detection process is repeated.

図3では、画像を解析する全体的な手順を示している。ステップS0においては、前のフレームの処理において、鼻孔と瞳孔が検出できていたか否かによって、現フレームのデータ解析についての処理を、ケース1〜4に分けている。なお、この例では、瞳孔、鼻孔とも左右両方が検出できるかは問題にせず、片方でも検出できれば検出できたことにする。前のフレームのデータ解析の結果、瞳孔の位置が検出できていれば、S0において、フラグP=1になっており、瞳孔の位置が検出できていなければ、P=0となっている。同様に、鼻孔についても位置が検出できていなければフラグN=0であり、できていればN=1となっている。これらのフラグを識別して、以下のケース1〜4に区別される。   FIG. 3 shows an overall procedure for analyzing an image. In step S0, the processing for data analysis of the current frame is divided into cases 1 to 4 depending on whether or not the nostril and pupil were detected in the processing of the previous frame. In this example, it does not matter whether both the left and right pupils or nostrils can be detected. If the position of the pupil can be detected as a result of the data analysis of the previous frame, the flag P = 1 in S0, and if the position of the pupil cannot be detected, P = 0. Similarly, if the position of the nostril has not been detected, the flag N = 0, and if it has, N = 1. These flags are identified and are classified into the following cases 1 to 4.

前のフレームにおいて、鼻孔も瞳孔も検出されていない場合は、ステップS1におけるケース1の処理が実行される。なお、この瞳孔検出作業の立ち上がり時点では、鼻孔も瞳孔も未だ検出されていないことから、このケース1の処理が実行される。ケース1の処理手順を図4に示す。ケース1の場合、ステップ11において、画像全体から瞳孔を探索する。鼻孔も瞳孔も位置が予測不明であるときは、広い画像からそれぞれの画像の明暗や大きさ、画面の左右に現れた左右瞳孔又は左右鼻孔候補の部分の位置関係等から、検出することになるが、顔が1/60秒の間にほとんど移動しない状況では、瞳孔検出の方が、明瞳孔と暗瞳孔の画像の差分を取って瞳孔を際立たせることができることから、暗い鼻孔を検出するよりも容易である。そのため、S11では、先ず瞳孔検出を行う。この瞳孔検出は、図1において説明したような方法によって、明瞳孔を撮影した画像と暗瞳孔を撮影した画像を得て、両画像を差分して差分画像を形成し、設定した輝度によって2値化を行い、左右瞳孔の候補を見出した後、これらが所定の条件を備えているかによって、瞳孔かどうかを決定する。なお、S11の処理では、図1で説明したずれに関する位置補正を行わないことはいうまでもない。そして、S12において、瞳孔を検出できたかどうかを判別し、できたときはフラグPを1とし、できなかった場合はP=0のままで、次のフレームのデータの解析に移る。   If neither the nostril nor the pupil is detected in the previous frame, the process of case 1 in step S1 is executed. Since the nostril and the pupil have not been detected at the time of the start of the pupil detection operation, the process of case 1 is executed. The processing procedure of case 1 is shown in FIG. In case 1, in step 11, the pupil is searched from the entire image. When the position of both the nostril and the pupil is unknown, it will be detected from the wide image based on the brightness and size of each image, the positional relationship between the left and right pupils or left and right nostril candidates appearing on the left and right of the screen, etc. However, in the situation where the face hardly moves in 1/60 seconds, the pupil detection can make the pupil stand out by taking the difference between the bright pupil image and the dark pupil image, so that the dark nostril is detected. Is also easy. Therefore, in S11, pupil detection is first performed. In this pupil detection, an image obtained by photographing a bright pupil and an image obtained by photographing a dark pupil are obtained by the method described with reference to FIG. 1, a difference image is formed by subtracting both images, and a binary value is set according to the set luminance. After finding candidates for the left and right pupils, it is determined whether or not they are pupils depending on whether they have predetermined conditions. Needless to say, in the processing of S11, the position correction related to the shift described in FIG. 1 is not performed. Then, in S12, it is determined whether or not the pupil has been detected. If it has been detected, the flag P is set to 1. If not, P = 0 remains and the analysis of the next frame data is started.

次に、前のフレームで瞳孔は検出できたが鼻孔は検出できなかった場合は、ステップS2においてケース2の処理を行う。このケースは、例えば、ケース1の処理で瞳孔を検出した場合が該当する。ケース2の手順を図5に示す。前のフレームで瞳孔だけは検出できており、現在のフレームにおける瞳孔の位置もそれから大きくは変わっていない筈であるから、ステップS21では、前のフレームにおける瞳孔の位置を基準にして、それよりも下方に存在する鼻孔があると予測される周辺に図6に示すように大ウインドウ5を設定し、この領域内において、鼻孔を探索する。なお、前のフレームで左右2個の瞳孔が検出されていたときには、図6(A)のとおり、左右の瞳孔21,22の中間位置から下方に大ウインドウ5を設定する。瞳孔が1個しか検出されていなかったときには、(B)〜(D)のとおり、検出された瞳孔21,22に基づいて大ウインドウ5を設定して鼻孔探索を行う。鼻孔の探索は、現フレームの明瞳孔撮影画像、暗瞳孔撮影画像の両フィールドについて同様に行う。S22で鼻孔の検出ができたか否かを判別し、検出ができていなければ、フラグN=0のままで、S24で瞳孔探索を行う。なお、ここで、鼻孔が検出できたかどうかとは、明瞳孔画像と暗瞳孔画像の差分を行う際のずれの補正の規準とする鼻孔のずれ量が検知できたことが必要であることから、現フレーム中の両フィールドの画像において鼻孔が検出されている必要がある。S24の瞳孔探索では、鼻孔のずれ量による位置の補正ができないことから、従来どおりに位置補正なしでの瞳孔検出を行う。このケースでは、前のフレームで瞳孔位置は分かっているから、その瞳孔の位置に基づいて、カルマンフィルターなどの予測モデルを用いて、現フレームにおける瞳孔の位置を予測することができる。そのため、予測された部分に図7のように小ウインドウ6を設定し、その領域内において瞳孔を探索する。   Next, when the pupil can be detected in the previous frame but the nostril cannot be detected, the process of case 2 is performed in step S2. This case corresponds to, for example, a case where a pupil is detected by the processing of case 1. The procedure of case 2 is shown in FIG. Since only the pupil can be detected in the previous frame, and the position of the pupil in the current frame should not have changed much from that, in step S21, the position of the pupil in the previous frame is used as a reference. As shown in FIG. 6, a large window 5 is set in the vicinity where a nostril existing below is predicted, and the nostril is searched in this region. When two left and right pupils are detected in the previous frame, the large window 5 is set downward from an intermediate position between the left and right pupils 21 and 22, as shown in FIG. When only one pupil has been detected, the large window 5 is set based on the detected pupils 21 and 22 and the nostril search is performed as shown in (B) to (D). The nostril search is performed in the same manner for both the bright pupil image and dark pupil image of the current frame. In S22, it is determined whether or not the nostril has been detected. If no detection has been made, the flag N = 0 is maintained and the pupil search is performed in S24. Here, whether or not the nostril could be detected is because it is necessary to have detected the amount of deviation of the nostril as a criterion for correction of deviation when performing the difference between the bright pupil image and the dark pupil image, Nostrils need to be detected in both field images in the current frame. In the pupil search in S24, the position cannot be corrected by the amount of deviation of the nostril, so that the pupil detection without position correction is performed as usual. In this case, since the pupil position is known in the previous frame, the position of the pupil in the current frame can be predicted using a prediction model such as a Kalman filter based on the position of the pupil. Therefore, a small window 6 is set in the predicted portion as shown in FIG. 7, and the pupil is searched for in that region.

S21で鼻孔の検出ができた場合は、S25でフラグN=1として、S26の瞳孔探索を行う。このS26の処理は、基本的には、図1で説明したものである。図1(B)において、奇数フィールドである明瞳孔撮影画像中の鼻孔31a,32aから偶数フィールドである暗瞳孔撮影画像中の鼻孔31b、32bに位置がずれた量を求め、このずれ量の分だけ明瞳孔21a、22aが存在していると予測されるウインドウ41aを暗瞳孔21b、22bが存在する筈の方に、41b、42bのように移動させる補正を行って、瞳孔の位置を一致させた上で、画像の差分を行い瞳孔を検出する。ところで、図3で説明する例では、画像の差分を取って瞳孔の位置を求める場合には、常に、奇数フィールドの明瞳孔を偶数フィールドの暗瞳孔側に移動して、偶数フィールドにおける瞳孔位置として決定している。図1(B)に示す解析すべき領域を決定するための、現フレームにおける瞳孔が含まれると予測されるウインドウは、予測の基準とするそれ以前のフレームの瞳孔位置が偶数フィールドであることから、カルマンフィルターで予測して設定するウインドウは、偶数フィールドにおけるウインドウ41b、42bの方が先に決められる。そして、偶数フィールドのウインドウ41b、42bから鼻孔のずれ量を解消する分をずらして、奇数フィールドにおけるウインドウ41a,42aを設定し、この41a,42aの領域を偶数フィールドの座標に移動してウインドウ41b、42bに重ねた上で、差分画像を求めて、瞳孔を検出するようにすればよい。S24,S26において瞳孔の位置を検出できなかった場合、S28においてフラグP=0とし、検出できた場合はS29でP=1として次のフレームの解析に移行する。   If the nostril can be detected in S21, the flag N = 1 is set in S25, and the pupil search in S26 is performed. The process of S26 is basically the same as that described in FIG. In FIG. 1B, the amount of displacement from the nostrils 31a and 32a in the bright pupil photographed image as the odd field to the nostrils 31b and 32b in the dark pupil photographed image as the even field is obtained. The window 41a, which is predicted to have only the bright pupils 21a and 22a, is corrected to move the window 41a toward the eyelids where the dark pupils 21b and 22b exist as in 41b and 42b, so that the positions of the pupils are matched. After that, the difference between the images is performed to detect the pupil. By the way, in the example illustrated in FIG. 3, when obtaining the pupil position by taking the difference between the images, the bright pupil in the odd field is always moved to the dark pupil side in the even field to obtain the pupil position in the even field. Has been decided. The window predicted to include the pupil in the current frame for determining the region to be analyzed shown in FIG. 1B is because the pupil position of the previous frame used as a reference for prediction is an even field. As for the windows to be predicted and set by the Kalman filter, the windows 41b and 42b in the even field are determined first. Then, the window 41a, 42a in the odd field is set by shifting the amount of elimination of the nostril displacement from the windows 41b, 42b in the even field, and the area of the 41a, 42a is moved to the coordinates of the even field. , 42b, and a difference image is obtained to detect the pupil. If the pupil position cannot be detected in S24 and S26, the flag P = 0 is set in S28, and if it is detected, P = 1 is set in S29 and the process proceeds to the next frame analysis.

次に、前のフレームで瞳孔も鼻孔も検出できた場合は、ステップS3においてケース3の処理を行う。ケース3の処理の手順を図8に示す。ケース3では、先ず、S31において、鼻孔の探索を行う。これは、前のフレームで鼻孔の位置が分かっていれば検出のロバスト性が高いことと、最初に鼻孔の位置を検出できれば、後の瞳孔の検出において、鼻孔のずれ量を基にした位置補正によって瞳孔を探索できるためである。この場合、前のフレームにおいて鼻孔の検出ができていることから、現フレームにおける鼻孔の探索には、図9のとおり、前フレームの鼻孔の位置に基づいて、カルマンフィルター等の予測モデルによって、現フレームにおける鼻孔位置を予測して、小ウインドウ7を鼻孔31,32周囲に設定して、その領域内で探索をする。なお、現フレームの奇数フィールドにおいて鼻孔の位置が検出できた場合、その位置データを利用して、次の偶数フィールドにおける鼻孔位置の予測を行って、小ウインドウを設定してもよい。S32で鼻孔の検出ができたか否かを判別し、できていなければS33でフラグN=0として、S34において瞳孔の探索を行う。この場合は、現フレームでは鼻孔位置が検出できないために鼻孔ずれによる位置の補正はできないが、前のフレームにおける瞳孔の位置は検出されていることから、その値を基準にカルマンフィルター等の予測モデルによって瞳孔位置を予測して、図7と同様に瞳孔用小ウインドウ6を設定して、瞳孔探索を行う。   Next, when both the pupil and nostril can be detected in the previous frame, the process of case 3 is performed in step S3. FIG. 8 shows the processing procedure of case 3. In case 3, first, a nostril search is performed in S31. This is because the detection robustness is high if the position of the nostril is known in the previous frame, and if the position of the nostril can be detected first, position correction based on the amount of deviation of the nostril in the subsequent detection of the pupil. This is because the pupil can be searched for. In this case, since the nostril can be detected in the previous frame, the search for the nostril in the current frame is performed using a prediction model such as a Kalman filter based on the position of the nostril in the previous frame as shown in FIG. The position of the nostril in the frame is predicted, the small window 7 is set around the nostrils 31 and 32, and the search is performed in that region. If the nostril position can be detected in the odd field of the current frame, the small window may be set by predicting the nostril position in the next even field using the position data. In S32, it is determined whether or not the nostril has been detected. If not, the flag N is set to 0 in S33, and the pupil is searched in S34. In this case, the position of the nostril cannot be corrected because the nostril position cannot be detected in the current frame, but the position of the pupil in the previous frame is detected, so a prediction model such as a Kalman filter is used based on that value. Thus, the pupil position is predicted, the pupil small window 6 is set in the same manner as in FIG. 7, and the pupil search is performed.

一方、S32において鼻孔検出ができたと判別した場合は、S35でN=1として、S36において、S26と同様の鼻孔のずれによる位置を補正して差分画像による瞳孔探索の処理を行う。S34,S36において瞳孔の検出ができなかった場合は、S38でフラグP=0とし、瞳孔の検出ができた場合はS39でP=1として、次のフレームの解析に移行する。   On the other hand, if it is determined in S32 that the nostril has been detected, N = 1 is set in S35, and the position of the nostril shift similar to S26 is corrected in S36, and the pupil search process using the difference image is performed. If the pupil cannot be detected in S34 and S36, the flag P = 0 is set in S38, and if the pupil is detected, P = 1 is set in S39 to proceed to the analysis of the next frame.

次に、前のフレームで鼻孔は検出できたが、瞳孔は検出できていない場合は、ステップS4においてケース4の処理を行う。ケース4の処理の手順を図10に示す。ケース4では、先ず、S41において、鼻孔の探索を行う。前のフレームにおいて鼻孔の検出ができていることから、ステップ31と同様に現フレームにおける鼻孔の探索には、図11のとおり、前フレームの鼻孔の位置に基づいて、カルマンフィルター等の予測モデルによって、現フレームにおける鼻孔位置を予測して、小ウインドウ7を鼻孔31,32周囲に設定して、その領域内で探索をする。現フレームの奇数フィールドにおいて鼻孔の位置が検出できた場合、その位置データを利用して、次の偶数フィールドにおける鼻孔位置の予測を行って、小ウインドウを設定してよいことも、S31と同様である。S42で鼻孔の検出ができたか否かを判別し、できていなければS43でフラグN=0とし、検出できていれば、S44でN=1とする。   Next, when the nostril has been detected in the previous frame but the pupil has not been detected, the process of case 4 is performed in step S4. FIG. 10 shows the processing procedure of case 4. In case 4, first, a nostril search is performed in S41. Since the nostril is detected in the previous frame, the nostril search in the current frame is performed using a prediction model such as a Kalman filter based on the nostril position in the previous frame as shown in FIG. The nostril position in the current frame is predicted, the small window 7 is set around the nostrils 31 and 32, and the search is performed in that region. Similarly to S31, when the nostril position can be detected in the odd field of the current frame, the position data may be used to predict the nostril position in the next even field and set a small window. is there. In S42, it is determined whether or not the nostril has been detected. If it has not been detected, the flag N = 0 in S43, and if it has been detected, N = 1 in S44.

S45では、瞳孔の探索を行うが、前のフレームにおいて瞳孔の位置が検出できていないことから、図11に示すように、前のフレーム(又は前のフィールド)において検出できている鼻孔の位置よりも上側に、瞳孔用の大ウインドウ8を設定して、その領域内で瞳孔を探索する。なお、前のフレームにおいて、両鼻孔が検出されているときには、図11(A)のとおり、鼻孔31,32より上の位置でかつ、両鼻孔31,32の中間位置に左右対称となる大ウインドウ8を与える。図11(B)〜(D)のとおり、片側の鼻孔しか検出できていないときには、両鼻孔間は両瞳孔間に比較して大きく離れていないため、検出できている鼻孔を中心に、左右対称となる位置に大ウインドウ8を与えればよい。特に、(D)のように、対象者が横を向いているときは、普通、手前の鼻孔31しか検出できないが、このような場合でも、同様の方法で両方の瞳孔が大ウインドウ8の領域に入る。   In S45, the pupil is searched. Since the position of the pupil cannot be detected in the previous frame, the position of the nostril detected in the previous frame (or the previous field) is detected as shown in FIG. On the upper side, a large window 8 for the pupil is set, and the pupil is searched in that region. When both nostrils are detected in the previous frame, as shown in FIG. 11 (A), a large window that is symmetric with respect to the positions above the nostrils 31 and 32 and at an intermediate position between the nostrils 31 and 32. Give eight. As shown in FIGS. 11B to 11D, when only one nostril can be detected, the distance between both nostrils is not far from that between both pupils. What is necessary is just to give the large window 8 to the position which becomes. In particular, when the subject is facing sideways as in (D), usually only the nostril 31 in front is detectable, but even in such a case, both pupils are regions of the large window 8 in the same manner. to go into.

本実施形態によれば、鼻孔の位置のずれ量を基準として、明瞳孔を撮影した画像と暗瞳孔を撮影した画像における瞳孔部を実質的に一致させることができ、その上で、画像の差分をするようにした。そのため、各種輸送機の運転者やコンピュータの瞳孔マウス使用者等である対象者の頭部が短時間内に移動して、明瞳孔画像と暗瞳孔画像の取得に時間差があることに起因して、画像にずれを生じていても、解析に当たっては、明瞳孔と暗瞳孔は位置が一致した状態で差分されて周囲から浮き彫りにされ瞳孔検出が精度よくなされる。   According to this embodiment, it is possible to substantially match the pupil portion in the image obtained by photographing the bright pupil and the image obtained by photographing the dark pupil with reference to the shift amount of the nostril position, and then the difference between the images. I tried to do. Therefore, the head of the target person such as a driver of various transport aircraft or a pupil mouse user of a computer moves within a short time, and there is a time difference in the acquisition of the bright pupil image and the dark pupil image. Even if there is a deviation in the image, in the analysis, the bright pupil and the dark pupil are differentiated in a state where the positions coincide with each other, and are embossed from the surroundings, so that the pupil detection is performed with high accuracy.

また、本実施形態によれば、鼻孔の位置を検出してこれを位置補正の基準としているために、顔に何らかの位置基準のためのマーカ等を施すこともなく、瞳孔が移動した位置を補正することができる。   Further, according to the present embodiment, since the position of the nostril is detected and used as a reference for position correction, the position where the pupil has moved is corrected without applying any position reference marker to the face. can do.

また、本実施形態によれば、位置の補正を行うために、移動を行う画像領域は、カルマンフィルター等の予測モデルによってウインドウを設定した領域のみであることから、瞳孔検出のための解析を行う画像領域を、瞳孔周囲の必要最小限の画像領域とできて瞳孔検出の演算効率を高めることができる。また、解析する領域が狭いことから、この領域に瞳孔に紛らわしい他の画像が入る可能性を少なくできる。さらに、このような前のフレーム又は前のフィールドの位置データに基づく予測モデルによるウインドウの設定は、鼻孔の検出や鼻孔検出による位置補正ができない場合の瞳孔検出にも使用しており、本実施形態における瞳孔検出作業の効率化と高精度化を達成している。   Further, according to the present embodiment, in order to correct the position, the image area to be moved is only the area in which the window is set by a prediction model such as a Kalman filter, and therefore analysis for pupil detection is performed. The image area can be the minimum necessary image area around the pupil, and the calculation efficiency of pupil detection can be improved. In addition, since the area to be analyzed is narrow, the possibility that another image confusing the pupil enters this area can be reduced. Furthermore, the setting of the window based on the prediction model based on the position data of the previous frame or the previous field is also used for pupil detection when position detection by nostril detection or nostril detection cannot be performed. Achieves higher efficiency and higher accuracy in pupil detection work.

また本実施形態におよれば、位置補正において先に撮影した画像を後に撮影した画像の位置に対して移動するものであることから、最新の画像における瞳孔位置を基準として、その後に続く瞳孔の検出を行うことができる。   Further, according to the present embodiment, since the image captured earlier in the position correction is moved with respect to the position of the image captured later, the pupil position of the subsequent image is determined based on the pupil position in the latest image. Detection can be performed.

また、本実施形態によれば、鼻孔の位置のずれ量の検出に先立って、明瞳孔画像と暗瞳孔画像を差分することによって瞳孔の位置を検出し、この検出した瞳孔の位置を基準にして、鼻孔周囲にウインドウを設定し、ウインドウ内を探索することで鼻孔を検出する。瞳孔検出の全体作業開始時には、頭の位置がほぼ安定していることが多いことが想定されるところ、そのような条件においては、画像の差分を利用して瞳孔を検出する方が、鼻孔検出よりも容易であることから、これを先にして検出できた瞳孔の位置を基準にして、鼻孔の位置が予想される箇所にウインドウを設定して、その領域内で鼻孔探索することで効率化を達成している。   Further, according to the present embodiment, prior to detecting the amount of deviation of the nostril position, the pupil position is detected by subtracting the bright pupil image from the dark pupil image, and the detected pupil position is used as a reference. A window is set around the nostril, and the nostril is detected by searching the window. At the start of the entire pupil detection operation, it is assumed that the head position is often almost stable. Under such conditions, it is better to detect the pupil using the difference between the images. Since it is easier, the window is set at the position where the position of the nostril is expected based on the position of the pupil that can be detected earlier, and the nostril is searched in that area to improve efficiency. Has achieved.

本実施形態では、NTSC方式のカメラを使用する場合について主に説明したが、カメラは奇数フィールドと偶数フィールドに分かれることのないノンインターレース方式等のものでもよく、その場合は1フレーム毎に明瞳孔を撮影する画像と暗瞳孔を撮影する画像とすればよい。さらに、明瞳孔と暗瞳孔を得るためには、光源の設置位置を変える以外にも、光源の波長を変える手段を用いてもよい。その場合、例えば、850nm程度と950nm程度の波長の異なる光源を用いると、網膜反射率が異なることから、850nm程度の光源で撮影した画像が明瞳孔で、950nm程度の光源で撮影した画像が暗瞳孔となる。   In this embodiment, the case where the NTSC system camera is used has been mainly described. However, the camera may be a non-interlace system or the like that is not divided into an odd field and an even field, and in that case, a bright pupil is used for each frame. And an image for shooting the dark pupil. Further, in order to obtain the bright pupil and the dark pupil, means for changing the wavelength of the light source may be used in addition to changing the installation position of the light source. In this case, for example, when light sources having different wavelengths of about 850 nm and about 950 nm are used, the retina reflectance is different. Therefore, an image photographed with a light source of about 850 nm is a bright pupil, and an image photographed with a light source of about 950 nm is dark. It becomes the pupil.

本発明の実施形態の明瞳孔と暗瞳孔を撮影した画像の概念図である。It is a conceptual diagram of the image which image | photographed the bright pupil and dark pupil of embodiment of this invention. 本発明の実施形態の明瞳孔と暗瞳孔を撮影した画像の概念図である。It is a conceptual diagram of the image which image | photographed the bright pupil and dark pupil of embodiment of this invention. 本発明の実施形態の全体的処理手順を示す図である。It is a figure which shows the whole process sequence of embodiment of this invention. 本発明の実施形態の一部の処理手順を示す図である。It is a figure which shows the one part processing procedure of embodiment of this invention. 本発明の実施形態の一部の処理手順を示す図である。It is a figure which shows the one part processing procedure of embodiment of this invention. 本発明の実施形態の画像処理の一部を示す図である。It is a figure which shows a part of image processing of embodiment of this invention. 本発明の実施形態の画像処理の一部を示す図である。It is a figure which shows a part of image processing of embodiment of this invention. 本発明の実施形態の一部の処理手順を示す図である。It is a figure which shows the one part processing procedure of embodiment of this invention. 本発明の実施形態の画像処理の一部を示す図である。It is a figure which shows a part of image processing of embodiment of this invention. 本発明の実施形態の一部の処理手順を示す図である。It is a figure which shows the one part processing procedure of embodiment of this invention. 本発明の実施形態画像処理の一部を示す図である。It is a figure which shows a part of embodiment image processing of this invention. 瞳孔画像がずれた場合の説明図である。It is explanatory drawing when a pupil image has shifted | deviated. 瞳孔画像とメガネの反射部等の画像がずれた場合の説明図である。It is explanatory drawing when a pupil image and images, such as a reflection part of glasses, have shifted.

符号の説明Explanation of symbols

1‥顔、2‥瞳孔、21‥右の瞳孔、22‥左の瞳孔、3‥鼻孔、31‥右の鼻孔、32‥左の鼻孔、4‥ウインドウ、41‥右瞳孔のウインドウ、42‥左瞳孔のウインドウ、5‥鼻孔の大ウインドウ、6‥瞳孔用小ウインドウ、7‥鼻孔用小ウインドウ、8‥瞳孔用大ウインドウ   DESCRIPTION OF SYMBOLS 1 ... Face, 2 ... Pupil, 21 ... Right pupil, 22 ... Left pupil, 3 ... Nostril, 31 ... Right nostril, 32 ... Left nostril, 4 ... Window, 41 ... Right pupil window, 42 ... Left Pupil window, 5. Large nostril window, 6. Small pupil window, 7. Small nostril window, 8 Large pupil window

Claims (5)

明瞳孔画像と暗瞳孔画像を差分することにより瞳孔を検出するための方法であって、ある時点に明瞳孔を撮影した画像と、その後の時点又はその前の時点に暗瞳孔を撮影した画像とにおける鼻孔の位置のずれ量を検出し、前記明瞳孔を撮影した画像又は前記暗瞳孔を撮影した画像を、前記鼻孔の位置のずれ量に対応する分だけずれを打ち消す方向に移動する位置補正を行い、位置補正後の両画像を差分することにより、瞳孔を検出する方法。 A method for detecting a pupil by subtracting a bright pupil image from a dark pupil image, an image obtained by photographing a bright pupil at a certain time point, and an image obtained by photographing a dark pupil at a subsequent time point or a previous time point A position correction is performed in which an amount of deviation of the nostril position is detected and an image obtained by photographing the bright pupil or an image obtained by photographing the dark pupil is moved in a direction to cancel the deviation by an amount corresponding to the amount of deviation of the nostril position. A method of detecting a pupil by performing and subtracting both images after position correction. 前記位置補正において移動する前記明瞳孔を撮影した画像又は前記暗瞳孔を撮影した画像は、瞳孔周囲に設定したウインドウ領域の画像であることを特徴とする請求項1に記載の瞳孔を検出する方法。   The method for detecting a pupil according to claim 1, wherein the image obtained by photographing the bright pupil or the image obtained by photographing the dark pupil that moves in the position correction is an image of a window region set around the pupil. . 前記位置補正は、先に撮影した画像を後に撮影した画像の位置へ移動するものであることを特徴とする請求項1又は2に記載の瞳孔を検出する方法。   The method for detecting a pupil according to claim 1, wherein the position correction is to move a previously captured image to a position of a later captured image. 前記鼻孔の位置のずれ量の検出に先立って、明瞳孔画像と暗瞳孔画像を差分することによって瞳孔を検出し、検出した瞳孔の位置を基準にして、鼻孔周囲にウインドウを設定し、前記ウインドウ内を探索することで鼻孔を検出する処理を伴うことを特徴とする請求項1〜3のいずれかに記載の瞳孔を検出する方法。   Prior to detecting the amount of deviation of the nostril position, a pupil is detected by subtracting a bright pupil image and a dark pupil image, a window is set around the nostril based on the detected pupil position, and the window The method for detecting a pupil according to any one of claims 1 to 3, further comprising a process of detecting a nostril by searching inside. 明瞳孔画像と暗瞳孔画像を差分することにより瞳孔を検出するための装置であって、明瞳孔及び暗瞳孔を撮影する手段と、ある時点に明瞳孔を撮影した画像とその後の時点又はその前の時点に暗瞳孔を撮影した画像とにおける鼻孔の位置のずれ量を検出する手段と、前記明瞳孔を撮影した画像又は前記暗瞳孔を撮影した画像を、前記鼻孔の位置のずれ量に対応する分だけずれを打ち消す方向に移動する位置補正を行う手段と、位置補正後の両画像を差分することにより瞳孔を検出する手段とを備える、瞳孔を検出する装置。 An apparatus for detecting a pupil by subtracting a bright pupil image from a dark pupil image, means for photographing a bright pupil and a dark pupil, an image obtained by photographing a bright pupil at a certain time, and a subsequent time or before Means for detecting a deviation amount of the nostril position in the image obtained by photographing the dark pupil at the time point, and an image obtained by photographing the bright pupil or an image obtained by photographing the dark pupil correspond to the deviation amount of the nostril position. An apparatus for detecting a pupil, comprising: means for correcting a position that moves in a direction that cancels the shift by an amount; and means for detecting a pupil by subtracting both images after position correction.
JP2006098512A 2006-03-31 2006-03-31 Method and apparatus for detecting pupils Active JP4452832B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006098512A JP4452832B2 (en) 2006-03-31 2006-03-31 Method and apparatus for detecting pupils

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006098512A JP4452832B2 (en) 2006-03-31 2006-03-31 Method and apparatus for detecting pupils

Publications (2)

Publication Number Publication Date
JP2007268026A JP2007268026A (en) 2007-10-18
JP4452832B2 true JP4452832B2 (en) 2010-04-21

Family

ID=38671434

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006098512A Active JP4452832B2 (en) 2006-03-31 2006-03-31 Method and apparatus for detecting pupils

Country Status (1)

Country Link
JP (1) JP4452832B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013176265A1 (en) 2012-05-25 2013-11-28 国立大学法人静岡大学 Pupil detection method, corneal reflex detection method, facial posture detection method, and pupil tracking method

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010010926A1 (en) * 2008-07-24 2010-01-28 国立大学法人静岡大学 Feature-point tracking method and feature-point tracking device
JP6234762B2 (en) * 2013-10-09 2017-11-22 アイシン精機株式会社 Eye detection device, method, and program
JP6288770B2 (en) * 2014-06-09 2018-03-07 国立大学法人静岡大学 Face detection method, face detection system, and face detection program

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2013176265A1 (en) 2012-05-25 2013-11-28 国立大学法人静岡大学 Pupil detection method, corneal reflex detection method, facial posture detection method, and pupil tracking method
US9514538B2 (en) 2012-05-25 2016-12-06 National University Corporation Shizuoka University Pupil detection method, corneal reflex detection method, facial posture detection method, and pupil tracking method

Also Published As

Publication number Publication date
JP2007268026A (en) 2007-10-18

Similar Documents

Publication Publication Date Title
JP4452836B2 (en) Method and apparatus for detecting pupils
JP6322986B2 (en) Image processing apparatus, image processing method, and image processing program
US10659676B2 (en) Method and apparatus for tracking a moving subject image based on reliability of the tracking state
WO2010035472A1 (en) Line-of-sight direction determination device and line-of-sight direction determination method
JP4491604B2 (en) Pupil detection device
US20160048976A1 (en) Camera apparatus and method for tracking object in the camera apparatus
JP2008210239A (en) Line-of-sight estimation device
JP6583734B2 (en) Corneal reflection position estimation system, corneal reflection position estimation method, corneal reflection position estimation program, pupil detection system, pupil detection method, pupil detection program, gaze detection system, gaze detection method, gaze detection program, face posture detection system, face posture detection Method and face posture detection program
EP3011894B1 (en) Eye gaze detection apparatus and eye gaze detection method
JP2008146356A (en) Visual line direction predicting device and visual line direction predicting method
JP4501003B2 (en) Face posture detection system
JP6601351B2 (en) Eye gaze measurement device
JP4452832B2 (en) Method and apparatus for detecting pupils
WO2013008304A1 (en) Eyelid detection device
JP5429885B2 (en) Feature point tracking method and feature point tracking device
JP2010244156A (en) Image feature amount detection device and view line direction detection device using the same
JP2009265722A (en) Face direction sensing device
JPH1156782A (en) Detecting method of eyeball characteristic points by using two-light sources and differentiating means of image
JP4016694B2 (en) Face state detection apparatus and method
JP2007151798A (en) Open/closed eye determining apparatus and method
JP4452835B2 (en) Method and apparatus for detecting pupils
JP2008006149A (en) Pupil detector, iris authentication device and pupil detection method
JP4528976B2 (en) Pupil detection apparatus and method
JP2005348832A (en) Real-time pupil position detection system
WO2017154356A1 (en) Sight line detection device and sight line detection method

Legal Events

Date Code Title Description
A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20091221

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

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150