Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3219425B2 - Eye gaze detection device - Google Patents
[go: Go Back, main page]

JP3219425B2 - Eye gaze detection device - Google Patents

Eye gaze detection device

Info

Publication number
JP3219425B2
JP3219425B2 JP12109491A JP12109491A JP3219425B2 JP 3219425 B2 JP3219425 B2 JP 3219425B2 JP 12109491 A JP12109491 A JP 12109491A JP 12109491 A JP12109491 A JP 12109491A JP 3219425 B2 JP3219425 B2 JP 3219425B2
Authority
JP
Japan
Prior art keywords
photoelectric conversion
image
pupil
pixel
edge
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
JP12109491A
Other languages
Japanese (ja)
Other versions
JPH04347130A (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.)
Canon Inc
Original Assignee
Canon Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Canon Inc filed Critical Canon Inc
Priority to JP12109491A priority Critical patent/JP3219425B2/en
Publication of JPH04347130A publication Critical patent/JPH04347130A/en
Priority to US08/387,614 priority patent/US5848175A/en
Application granted granted Critical
Publication of JP3219425B2 publication Critical patent/JP3219425B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B2213/00Viewfinders; Focusing aids for cameras; Means for focusing for cameras; Autofocus systems for cameras
    • G03B2213/02Viewfinders
    • G03B2213/025Sightline detection

Landscapes

  • Automatic Focus Adjustment (AREA)
  • Eye Examination Apparatus (AREA)

Description

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

【0001】[0001]

【産業上の利用分野】本発明はカメラ等の光学機器を使
用する観察者の視線(注視点)を検出する視線検出装置
に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a line-of-sight detecting device for detecting a line of sight (fixation point) of an observer using an optical device such as a camera.

【0002】[0002]

【従来の技術】従来より光学装置の観察者が観察面上の
どの位置を観察しているかを検出する、いわゆる視線検
出装置が、特開昭61−172552号公報、特開平1
−241511号公報、特開平2−5号公報等に開示さ
れている。
2. Description of the Related Art Conventionally, a so-called line-of-sight detection device for detecting which position on an observation surface an observer of an optical device observes has been disclosed in Japanese Patent Application Laid-Open No. 61-172552 and Japanese Patent Application Laid-Open No.
Japanese Patent Application Laid-Open No. 2415111, Japanese Patent Application Laid-Open No. 2-5, and the like.

【0003】例えば特開昭61−172552号公報に
おいては、光源からの平行光束を観察者の眼球の前眼部
へ投射し、角膜からの反射光による角膜反射像と瞳孔の
結像位置を利用して視軸を求めている。
For example, in Japanese Patent Application Laid-Open No. Sho 61-172552, a parallel light beam from a light source is projected to the anterior segment of an observer's eyeball, and a corneal reflection image due to light reflected from the cornea and an image forming position of a pupil are used. And seek the visual axis.

【0004】図15(A),(B)は視線検出方法の原
理説明図で、同図(A)は視線検出光学系の概略図、同
図(B)は光電素子列6からの出力信号の強度図であ
る。
FIGS. 15A and 15B are views for explaining the principle of the line-of-sight detection method. FIG. 15A is a schematic diagram of a line-of-sight detection optical system, and FIG. FIG.

【0005】同図において5は観察者に対して不感の赤
外光を放射する発光ダイオード等の光源であり、投光レ
ンズ3の焦点面に配置されている。
In FIG. 1, reference numeral 5 denotes a light source such as a light emitting diode which emits infrared light insensitive to an observer, and is disposed on a focal plane of the light projecting lens 3.

【0006】光源5より発光した赤外光は投光レンズ3
により平行光となりハーフミラー2で反射し、眼球20
1の角膜21を照明する。このとき角膜21の表面で反
射した赤外光の一部による角膜反射像dはハーフミラー
2を透過し受光レンズ4により集光され光電素子列6上
の位置Zd′に再結像する。
The infrared light emitted from the light source 5 is
The light becomes parallel light and is reflected by the half mirror 2 so that the eyeball 20
The first cornea 21 is illuminated. At this time, a corneal reflection image d due to a part of the infrared light reflected on the surface of the cornea 21 is transmitted through the half mirror 2, condensed by the light receiving lens 4, and re-images at a position Zd ′ on the photoelectric element array 6.

【0007】また虹彩23の端部(瞳孔のふち)a,b
からの光束はハーフミラー2、受光レンズ4を介して光
電素子列6上の位置Za′,Zb′に該端部a,bの像
を結像する。受光レンズ4の光軸(光軸ア)に対する眼
球の光軸イの回転角θが小さい場合、虹彩23の端分
a,bのZ座標をZa,Zbとすると、虹彩23の中心
位置cの座標Zcは Zc≒(Za+Zb)/2 と表わされる。
Further, the ends (pupil edge) a, b of the iris 23
Forms an image of the ends a and b at positions Za 'and Zb' on the photoelectric element array 6 via the half mirror 2 and the light receiving lens 4. When the rotation angle θ of the optical axis a of the eyeball with respect to the optical axis (optical axis a) of the light receiving lens 4 is small, the Z coordinates of the ends a and b of the iris 23 are Za and Zb, and the center position c of the iris 23 is The coordinates Zc are expressed as Zc ≒ (Za + Zb) / 2.

【0008】又、角膜反射像の発生位置dのZ座標をZ
d、角膜21の曲率中心Oと瞳孔24の中心Cまでの距
離をOCとすると眼球光軸イの回転角θは、OC*SI
Nθ≒Zc−Zd…(1)の関係式を略満足する。
Further, the Z coordinate of the position d where the corneal reflection image is generated is Z
d, assuming that the distance between the center of curvature O of the cornea 21 and the center C of the pupil 24 is OC, the rotation angle θ of the optical axis a of the eyeball is OC * SI
Nθ ≒ Zc−Zd (1) is substantially satisfied.

【0009】ここで角膜反射像の位置dのZ座標Zdと
角膜21の曲率中心OのZ座標Z0とは一致している。
このため演算手段9において、同図(B)のごとく光電
素子列6面上に投影された各特異点(角膜反射像d及び
虹彩の端部a,b)の位置を検出することにより眼球光
軸イの回転角θを求めることができる。この時(1)式
は、
Here, the Z coordinate Zd of the position d of the corneal reflection image coincides with the Z coordinate Z 0 of the center of curvature O of the cornea 21.
Therefore, the arithmetic means 9 detects the position of each singular point (corneal reflection image d and the end portions a and b of the iris) projected on the surface of the photoelectric element array 6 as shown in FIG. The rotation angle θ of the axis b can be obtained. At this time, equation (1) is

【0010】[0010]

【外1】 とかきかえられる。但し、βは角膜反射像の発生位置d
と受光レンズ4との距離L1と受光レンズ4と光電素子
列6との距離L0で決まる倍率で、通常ほぼ一定の値と
なっている。
[Outside 1] Can be changed. Here, β is the position d where the corneal reflection image is generated.
The magnification is determined by the distance L1 between the light-receiving lens 4 and the light-receiving lens 4 and the distance L0 between the light-receiving lens 4 and the photoelectric element array 6, and is usually substantially constant.

【0011】これは例えばカメラの自動焦点検出装置に
おいて測距点を画面中心のみならず画面内の複数箇所に
設けた場合、観察者がそのうち1つの測距点を選択して
自動焦点検出を行おうとする場合、その1つを選択入力
する手間を省き観察者が観察している点を測距点とみな
し、該測距点を自動的に選択して自動焦点検出を行うの
に有効である。
[0011] This is because, for example, in a camera automatic focus detection device, when distance measuring points are provided not only at the center of the screen but also at a plurality of places in the screen, the observer selects one of the distance measuring points and performs automatic focus detection. When trying to do so, it is effective to omit the trouble of selecting and inputting one of them, regard the point observed by the observer as a ranging point, and automatically select the ranging point to perform automatic focus detection. .

【0012】[0012]

【発明が解決しようとしている課題】ところで、従来の
視線検出装置では、眼球像を水平方向に処理してゆき、
瞳孔円(瞳孔部と虹彩部の境界−「瞳孔エッジ」と称す
る−が形づくる円)の直径に相当する水平ライン(ある
いはその上下の複数ライン)上の瞳孔エッジ位置から瞳
孔の横方向の中心位置を求め、それから視線方向を検出
している。
By the way, in the conventional gaze detecting device, the eyeball image is processed in the horizontal direction,
From the position of the pupil edge on the horizontal line (or a plurality of lines above and below it) corresponding to the diameter of the pupil circle (the circle forming the boundary between the pupil portion and the iris portion-referred to as the "pupil edge"), the horizontal center position of the pupil And the direction of the line of sight is detected.

【0013】瞳孔エッジの抽出方法としては、眼球の中
で瞳孔の反射率が最も低いことから、眼球像中の最低輝
度値の部分を瞳孔の判断条件とするのは妥当な方法であ
る。
As a pupil edge extraction method, since the reflectance of the pupil is the lowest among the eyeballs, it is appropriate to use the portion having the lowest luminance value in the eyeball image as the pupil determination condition.

【0014】しかしながら、処理装置の記憶容量の制限
で、センサから出力される時系列の眼球像信号を逐次処
理して瞳孔エッジの抽出を行わせる場合を考えてみる
と、全信号中の最低値は総ての像信号を処理し終わらな
いと確定しないため、信号出力が途中のエッジ抽出処理
では不適当な条件で瞳孔と判断されてしまう可能性があ
り、視線検出にとって甚だ不都合である。
However, considering the case where the time-series eyeball image signal output from the sensor is sequentially processed to extract the pupil edge due to the limitation of the storage capacity of the processing device, the lowest value among all the signals is considered. Is not determined until all image signals have been processed, so that the signal output may be judged as a pupil under inappropriate conditions in the middle edge extraction processing, which is extremely inconvenient for gaze detection.

【0015】[0015]

【課題を解決するための手段】そして、請求項1に記載
した発明は、上記問題を解決するために、複数の画素か
ら成るラインが複数並んで配置され、眼球像を受光して
前記画素毎光電変換信号をライン毎に出力する受光手
段と、所定数のラインから光電変換信号が出力された以
降であってライン毎に光電変換信号が出力される度に、
所定数のラインから出力される光電変換信号の中の最低
値を保持する最低値保持手段と、前記最低値保持手段に
保持されている最低値を用いて眼球の瞳孔エッジらしき
光電変換信号を出力する画素を抽出する第1の抽出手段
と、全ての光電変換信号が出力された後に前記最低値保
持手段に保持されている最終の最低値を用いて瞳孔エッ
ジらしき光電変換信号を出力する画素を、前記第1の抽
出手段にて抽出した画素の中から抽出する第2の抽出手
段と、前記光電変換信号の中からプルキンエ像に関する
信号を出力する画素位置を検出するプルキンエ像検出手
段と、前記第2の抽出手段にて抽出される画素の位置と
前記プルキンエ像検出手段にて検出された画素位置とに
基づいて視線方向を検出する検出手段、とを有すること
にある。
According to the first aspect of the present invention, a plurality of pixels are provided to solve the above problem .
Et consisting line are arranged side by side a plurality, more than a light receiving unit, the photoelectric conversion signals from a predetermined number of lines have been output by receiving the eyeball image to output a photoelectric conversion signal of each pixel in each line
Every time a photoelectric conversion signal is output for each line,
A minimum value holding unit that holds a minimum value among the photoelectric conversion signals output from a predetermined number of lines, and a photoelectric conversion signal that looks like a pupil edge of an eyeball using the minimum value held by the minimum value holding unit. A first extraction unit for extracting a pixel to be output, and a pixel for outputting a photoelectric conversion signal like a pupil edge using a final lowest value held in the lowest value holding unit after all the photoelectric conversion signals are output. A second extraction unit that extracts from the pixels extracted by the first extraction unit; a Purkinje image detection unit that detects a pixel position at which a signal relating to a Purkinje image is output from the photoelectric conversion signal; A detecting means for detecting a line-of-sight direction based on the position of the pixel extracted by the second extracting means and the pixel position detected by the Purkinje image detecting means.

【0016】請求項2に記載した発明は、上記問題を解
決するために、複数の画素から成るラインが複数並んで
配置され、眼球像を受光して前記画素毎光電変換信号
ライン毎に出力する受光手段と、所定数のラインから
光電変換信号が出力された以降であってライン毎に光電
変換信号が出力される度に、所定数のラインから出力さ
れる光電変換信号の中の最低輝度値を保持する最低輝度
値保持手段と、前記最低輝度値保持手段に保持されてい
る最低輝度値を用いて眼球の瞳孔エッジらしき光電変換
信号を出力する画素を抽出する第1の抽出手段と、前記
第1の抽出手段により抽出された画素の輝度と位置を記
憶する記憶手段と、全ての光電変換信号が出力された後
に前記最低輝度値保持手段に保持されている最終の最低
輝度値を用いて瞳孔エッジらしき光電変換信号を出力す
る画素を、前記記憶手段に記憶される画素の中から抽出
する第2の抽出手段と、前記光電変換信号の中からプル
キンエ像に関する信号を出力する画素位置を検出するプ
ルキンエ像検出手段と、前記第2の抽出手段にて抽出さ
れる画素位置と前記プルキンエ像検出手段にて検出され
た画素位置と基づいて視線方向を検出する検出手段と、
を有することにある。
According to a second aspect of the present invention, in order to solve the above problem, a plurality of lines composed of a plurality of pixels are arranged side by side.
Are arranged, a light receiving means for outputting a photoelectric conversion signal of each pixel for each line by receiving eyeball image, a predetermined number of lines
After the photoelectric conversion signal is output, the photoelectric
Each time the conversion signal is output, it is output from a predetermined number of lines.
The lowest luminance value holding means for holding the lowest luminance value among the photoelectric conversion signals to be output, and a pixel for outputting a photoelectric conversion signal like a pupil edge of an eyeball using the lowest luminance value held in the lowest luminance value holding means. First extraction means for extracting, storage means for storing the brightness and position of the pixel extracted by the first extraction means, and the lowest brightness value holding means after all the photoelectric conversion signals are output. A second extraction unit for extracting a pixel which outputs a pupil edge-like photoelectric conversion signal by using the final lowest luminance value among the pixels stored in the storage unit; A Purkinje image detecting means for detecting a pixel position for outputting a signal relating to an image, and a pixel position detected by the second extracting means and a pixel position detected by the Purkinje image detecting means. Detection means for detecting a gaze direction Te,
Is to have.

【0017】[0017]

【0018】[0018]

【実施例】図1は本発明を一眼レフカメラに適用したと
きの一実施例の光学系の要部概略図、図2は図1の焦点
検出部の説明図である。図3は図1の視線検出系の要部
斜視図である。
FIG. 1 is a schematic view of a main part of an optical system according to an embodiment when the present invention is applied to a single-lens reflex camera, and FIG. 2 is an explanatory diagram of a focus detection unit in FIG. FIG. 3 is a perspective view of a main part of the visual line detection system of FIG.

【0019】図中、1は接眼レンズで、その内部には可
視光透過・赤外光反射のダイクロイックミラー1aが斜
設されており、光路分割器を兼ねている。
In FIG. 1, reference numeral 1 denotes an eyepiece, in which a dichroic mirror 1a for transmitting visible light and reflecting infrared light is obliquely provided, and also serves as an optical path splitter.

【0020】4は受光レンズ、5(5a,5b,5c,
5d)は照明手段であり、例えば発光ダイオードから成
っている。このうち5a,5bは接眼レンズの下部に配
置され角膜反射像を発生させる為の赤外発光ダイオード
であり、角膜反射像をできるだけ分解能よく検知できる
よう見かけのチップサイズの小さなスポット性のある発
光ダイオードを用いている。
4 is a light receiving lens, 5 (5a, 5b, 5c,
5d) is an illuminating means, which comprises, for example, a light emitting diode. Of these, 5a and 5b are infrared light emitting diodes which are arranged below the eyepiece and generate a corneal reflection image. The light emitting diodes have a small apparent chip size and a spot shape so that the corneal reflection image can be detected with as high a resolution as possible. Is used.

【0021】5c,5dは接眼レンズの両側面上部に設
けられた赤外発光ダイオードで眼球全体を照明するよう
に拡散性を持たせたもの、又は面発光的な特性を持った
もので、眼球が光軸中心よりはずれた場合でも十分カバ
ーする照明範囲を持っており、かつ受光レンズ4によっ
てエリアセンサ7には角膜反射像が結像されないように
配置されている。
Reference numerals 5c and 5d denote infrared light emitting diodes provided on the upper sides of both sides of the eyepiece, which have a diffusive property so as to illuminate the entire eyeball, or have surface emitting characteristics. Has an illumination range enough to cover even if it deviates from the center of the optical axis, and is arranged such that a corneal reflection image is not formed on the area sensor 7 by the light receiving lens 4.

【0022】虹彩情報検出用のエリアセンサ7は複数の
光電素子列によって構成されている。
The area sensor 7 for detecting iris information is constituted by a plurality of photoelectric element arrays.

【0023】受光レンズ4と光電素子列6は受光手段の
一要素を構成している。
The light receiving lens 4 and the photoelectric element array 6 constitute one element of the light receiving means.

【0024】各要素1,4,5,6,7より眼球の視線
検出系を構成している。
The elements 1, 4, 5, 6, 7 constitute an eye gaze detection system.

【0025】101は撮影レンズ、102はクイックリ
ターン(QR)ミラー、103は表示素子、104はピ
ント板、105はコンデンサーレンズ、106はペンタ
ダハプリズム、107はサブミラー、108は多点焦点
検出装置であり、撮影画面内の複数の領域を選択して焦
点検出を行っている。
Reference numeral 101 denotes a photographing lens, 102 denotes a quick return (QR) mirror, 103 denotes a display element, 104 denotes a focus plate, 105 denotes a condenser lens, 106 denotes a penta roof prism, 107 denotes a sub mirror, and 108 denotes a multipoint focus detection device. In addition, focus detection is performed by selecting a plurality of regions in a shooting screen.

【0026】多点焦点検出装置の説明は本発明理解のた
めに必要ないため概略に止める。
The description of the multi-point focus detecting device is not necessary for understanding the present invention, and therefore will be briefly described.

【0027】即ち本実施例では図2に描く様に撮影レン
ズ101の予定結像面近傍に配され、夫々測距域を決め
る複数のスリットを有する視野マスク110と各スリッ
ト内の像に対してフィールドレンズの作用を果たすレン
ズ部材111を近接配置し、更にスリット数に応じた再
結像レンズの組112と光電素子列の組113を順置す
る。スリット110、フィールドレンズ111、再結像
レンズの組112、そして光電素子列の組113はそれ
ぞれ周知の焦点検出系を構成している。
That is, in the present embodiment, as shown in FIG. 2, a field mask 110 having a plurality of slits which are arranged in the vicinity of a predetermined image forming plane of the photographing lens 101 and each of which determines a distance measurement area, and an image in each slit are formed. A lens member 111 that functions as a field lens is arranged close to the lens element, and a set 112 of re-imaging lenses and a set 113 of photoelectric element arrays are arranged in order according to the number of slits. The slit 110, the field lens 111, the set 112 of the re-imaging lens, and the set 113 of the photoelectric element array constitute a well-known focus detection system.

【0028】本実施例では撮影レンズ101の透過した
被写体光の一部はQRミラー102によって反射してピ
ント板104近傍に被写体像を結像する。ピント板10
4の拡散面で拡散した被写体光はコンデンサーレンズ1
05、ペンタダハプリズム106、接眼レンズ1を介し
てアイポイントEに導かれる。
In this embodiment, a part of the subject light transmitted through the photographing lens 101 is reflected by the QR mirror 102 to form a subject image near the focus plate 104. Focus plate 10
The object light diffused by the diffusing surface 4 is the condenser lens 1
05, through the penta roof prism 106 and the eyepiece 1 to the eye point E.

【0029】ここで表示素子103は例えば偏光板を用
いない2層タイプのゲスト−ホスト型液晶素子で、ファ
インダー視野内の測距域(焦点検出位置)を表示するも
のである。
The display element 103 is, for example, a two-layer type guest-host type liquid crystal element that does not use a polarizing plate, and displays a distance measurement area (focus detection position) within a finder visual field.

【0030】又、撮影レンズ101を透過した被写体光
の一部は、QRミラー102を透過し、サブミラー10
7で反射してカメラ本体底部に配置された前述の多点焦
点検出装置108に導かれる。さらに多点焦点検出装置
108の選択した被写体面上の位置の焦点検出情報に基
づいて、不図示の撮影レンズ駆動装置により撮影レンズ
101の繰り出しあるいは繰り込が行われ、焦点調節が
行われる。
A part of the subject light transmitted through the taking lens 101 is transmitted through the QR mirror 102 and
The light is reflected at 7 and guided to the above-mentioned multipoint focus detection device 108 arranged at the bottom of the camera body. Further, based on the focus detection information of the position on the object plane selected by the multipoint focus detection device 108, the taking lens 101 is extended or retracted by a not-shown taking lens driving device, and the focus is adjusted.

【0031】視線検出用の信号処理回路109は、いわ
ゆるワンチップマイクロコンピュータ(MCU)であ
り、内部にROM,RAM,A/D変換器等を内蔵して
いるものである。MCU109は内蔵のROMに格納さ
れているプログラムに従って一連の視線検出動作を実行
する。
The line-of-sight detection signal processing circuit 109 is a so-called one-chip microcomputer (MCU), and has a ROM, a RAM, an A / D converter and the like built therein. The MCU 109 executes a series of gaze detection operations according to a program stored in a built-in ROM.

【0032】視線検出の概略の手順を述べると、先ず赤
外発生ダイオード5を点灯する。放射された赤外光は図
中の上方から接眼レンズ1に入射し、ダイクロイックミ
ラー1aにより反射されアイポイントE近傍に位置する
観察者の眼球201を照明する。また眼球201で反射
した赤外光はダイクロイックミラー1aで再び反射され
受光レンズ4によってエリアセンサ6上に像を形成す
る。MCU109はエリアセンサ6によって光電変換さ
れた眼球像を信号処理し、注視点情報(視線)を検知す
る。
The procedure of the visual line detection will be described briefly. First, the infrared generating diode 5 is turned on. The emitted infrared light enters the eyepiece 1 from above in the figure, is reflected by the dichroic mirror 1a, and illuminates the eyeball 201 of the observer located near the eye point E. The infrared light reflected by the eyeball 201 is reflected again by the dichroic mirror 1a and forms an image on the area sensor 6 by the light receiving lens 4. The MCU 109 performs signal processing on the eyeball image photoelectrically converted by the area sensor 6 and detects gazing point information (line of sight).

【0033】検知された注視点情報は、多点焦点検出動
作と表示動作に利用される。即ち、注視点に最も近い測
距点の焦点検出結果に基づいて焦点調節を行い、同時に
表示素子103によって観察者の注視した場所をカメラ
のファインダー内に表示し、注視点の確認を行わさせる
ことが出来る。
The detected point-of-regard information is used for a multipoint focus detection operation and a display operation. That is, the focus is adjusted based on the focus detection result of the distance measuring point closest to the gazing point, and at the same time, the location gazed by the observer is displayed in the viewfinder of the camera by the display element 103, and the gazing point is confirmed. Can be done.

【0034】図4(A),(B)は視線を検出するため
の原理を示す原理図である。図4(A)において光電素
子列6の横方向(X軸方向)に分離して配置された赤外
発光ダイオード5a,5bからの光束はX軸方向に分離
した位置に角膜反射像e,dをそれぞれ形成する。この
時、角膜反射像e及びdの中点のX座標は角膜21の曲
率中心oのX座標と一致している。また角膜反射像e及
びdの間隔は赤外発光ダイオードと観察者の眼球との距
離に対応して変化するため、光電素子列6上に再結像し
た角膜反射像の位置e′,d′を検出することにより眼
球からの反射像の結像倍率βを求めることが可能とな
る。虹彩情報検出用の赤外発光ダイオード5c,5d
は、フィインダの側面方向から眼球を照明するが、角膜
反射像が受光レンズ4によって光電素子列6上に再結像
しないように配置されている。これによって光電素子列
6上における虹彩と瞳孔の境界位置a,bに不用光によ
るフレアー反射像が入射しないようにし、境界位置a,
bの検出精度の低下を防止している。
FIGS. 4A and 4B are principle diagrams showing the principle for detecting the line of sight. In FIG. 4A, the luminous fluxes from the infrared light emitting diodes 5a and 5b separately arranged in the lateral direction (X-axis direction) of the photoelectric element array 6 are reflected at the corneal reflection images e and d at positions separated in the X-axis direction. Are formed respectively. At this time, the X coordinate of the middle point of the corneal reflection images e and d matches the X coordinate of the center of curvature o of the cornea 21. Since the interval between the corneal reflection images e and d changes in accordance with the distance between the infrared light emitting diode and the eyeball of the observer, the positions e ′ and d ′ of the corneal reflection images re-imaged on the photoelectric element array 6. , It is possible to determine the imaging magnification β of the reflected image from the eyeball. Infrared light emitting diodes 5c and 5d for detecting iris information
Is arranged to illuminate the eyeball from the side direction of the finder, but to prevent the corneal reflection image from being re-imaged on the photoelectric element array 6 by the light receiving lens 4. This prevents the flare reflection image due to the unnecessary light from entering the boundary positions a and b between the iris and the pupil on the photoelectric element array 6, and the boundary positions a and b.
The detection accuracy of b is prevented from lowering.

【0035】図5(A)は本実施例において複数の光電
素子列6からなるエリアセンサー7上に投影された眼球
からの反射像を示す説明図である。同図において、角膜
反射像e′,d′は光電素子列Yp′上に再結像してい
る。一例としてこのとき光電素子列Yp′より得られる
光強度分布の出力信号を図5(B)に示す。
FIG. 5A is an explanatory diagram showing a reflected image from an eyeball projected on an area sensor 7 including a plurality of photoelectric element arrays 6 in this embodiment. In the figure, the corneal reflection images e 'and d' are re-imaged on the photoelectric element row Yp '. As an example, FIG. 5B shows an output signal of the light intensity distribution obtained from the photoelectric element row Yp 'at this time.

【0036】先にも説明したように、MCU109は図
5(A),(B)に示したセンサ信号から、瞳孔の中心
位置と角膜反射像e′,d′の位置を検出し、それらの
位置関係に基づいて注視点(視線)を検知する。
As described above, the MCU 109 detects the center position of the pupil and the positions of the corneal reflection images e 'and d' from the sensor signals shown in FIGS. 5 (A) and 5 (B). The gaze point (line of sight) is detected based on the positional relationship.

【0037】図6以降に、本発明の実施例の信号処理装
置であるマイクロコンピュータMCU109のフローチ
ャートを示す。
FIG. 6 shows a flowchart of the microcomputer MCU 109 which is a signal processing device according to the embodiment of the present invention.

【0038】図6は視線検出の主たるフローチャートで
ある。MCU109が視線検出動作を開始すると、ステ
ップ(#000)を経て、ステップ(#001)のデー
タの初期化を実行する。
FIG. 6 is a main flow chart of gaze detection. When the MCU 109 starts the line-of-sight detection operation, the data is initialized in step (# 001) through step (# 000).

【0039】変数EYEMINは眼球反射像の光電変換
信号中の最低の輝度値を記憶する変数であり、マイクロ
コンピュータ(MCU109)に内蔵されているA/D
変換器の分解能を8bitと想定し、像信号の読み込み
に伴って、逐次的に最低値を比較・更新してゆく。初期
値は8bitでの最大の値を表す255を格納してお
く。
The variable EYEMIN is a variable for storing the lowest luminance value in the photoelectric conversion signal of the eyeball reflection image, and is an A / D built in the microcomputer (MCU 109).
Assuming that the resolution of the converter is 8 bits, the lowest value is sequentially compared and updated as the image signal is read. The initial value stores 255 representing the maximum value in 8 bits.

【0040】変数EDGCNTは、虹彩と瞳孔の境界を
エッジとして抽出した個数をカウントする変数である。
The variable EDGCNT is a variable for counting the number of edges extracted from the boundary between the iris and the pupil as an edge.

【0041】変数IP1,IP2,JP1,JP2は発
光ダイオード5a,5bの角膜反射像(以下「プルキン
エ像;P像」と称する)の位置を表す変数であり、横方
向(X軸)の範囲IP1〜IP2,縦方向(Y軸)の範
囲JP1〜JP2で囲まれる眼球反射像の領域内に、2
個のP像が存在する。
Variables IP1, IP2, JP1, and JP2 are variables representing the position of a corneal reflection image (hereinafter, referred to as a "Purkinje image; P image") of the light emitting diodes 5a and 5b, and a range IP1 in the horizontal direction (X axis). ~ IP2, within the area of the eyeball reflection image surrounded by the range JP1 to JP2 in the vertical direction (Y axis).
There are P images.

【0042】いまエリアセンサ7の画素数は横方向に1
50画素、縦方向に100画素のサイズを想定してお
り、IP1,IP2,JP1,JP2は全体のちょうど
真中の位置(75、50)を初期値として格納してお
く。
Now, the number of pixels of the area sensor 7 is 1 in the horizontal direction.
It is assumed that the size is 50 pixels and the size is 100 pixels in the vertical direction. For IP1, IP2, JP1, and JP2, the position (75, 50) at the center of the whole is stored as an initial value.

【0043】データの初期化の次はステップ(#00
2)へ移行する。
Following the data initialization, a step (# 00)
Go to 2).

【0044】ステップ(#002)ではP像用の発光ダ
イオード5a,5bと、眼球照明用の発光ダイオード5
c,5dを点灯する。次のステップ(#003)にて、
エリアセンサ7の蓄積動作を開始させる。センサの制御
は本発明と直接の関わりはないので詳細な説明は省略す
るが、本発明の実施例では不図示のセンサ・インターフ
ェース回路によって駆動制御されるものとする。
In step (# 002), the light emitting diodes 5a and 5b for the P image and the light emitting diode 5 for the eyeball illumination are used.
Lights c and 5d. In the next step (# 003)
The accumulation operation of the area sensor 7 is started. Since the control of the sensor does not directly relate to the present invention, a detailed description thereof will be omitted. However, in the embodiment of the present invention, it is assumed that the driving is controlled by a sensor interface circuit (not shown).

【0045】ステップ(#004)において、エリアセ
ンサの蓄積終了を待つ。
In step (# 004), the process waits until the accumulation of the area sensor is completed.

【0046】所定の電荷蓄積が終了すると、次のステッ
プ(#005)で発光ダイオードを消灯する。
When the predetermined charge accumulation is completed, the light emitting diode is turned off in the next step (# 005).

【0047】さて、次のステップ(#006)以降か
ら、エリアセンサの光電変換信号の読み込みを開始す
る。
From the next step (# 006) onward, reading of the photoelectric conversion signal of the area sensor is started.

【0048】ステップ(#006)はループ変数Jを0
から99までカウントアップしながら、枠内の処理を実
行する、いわゆる「ループ処理」を表している。
The step (# 006) sets the loop variable J to 0.
This represents a so-called "loop process" in which the process in the frame is executed while counting up from "99" to "99".

【0049】ステップ(#006)内のループ処理で
は、まずステップ(#007)にてエリアセンサの横方
向(X軸)の1ラインの光電変換信号の読み込みを行
う。1ラインの読み込みはサブルーチン形式となってお
り、図7にサブルーチン「1ライン読み込み」のフロー
チャートを示す。
In the loop processing in step (# 006), first, in step (# 007), a photoelectric conversion signal of one line in the horizontal direction (X axis) of the area sensor is read. The reading of one line is in a subroutine format, and FIG. 7 shows a flowchart of the subroutine "1 line reading".

【0050】サブルーチン「1ライン読み込み」がコー
ルされると、図7のステップ(#100)を経て、次の
ステップ(#101)を実行する。ステップ(#10
1)と、その枠内のステップ(#102)は、前述した
ステップ(#006)と同様のループ処理を表してお
り、ステップ(#101)では変数Kを0から3へカウ
ントアップさせながら、そしてステップ(#102)で
は変数Iを0から149までカウントアップさせなが
ら、それぞれの枠内の処理を実行してゆく。従って、ス
テップ(#101)とステップ(#102)は変数Kと
変数Iの、いわゆる「入れ子」となったループ処理を表
している。
When the subroutine "1 line read" is called, the next step (# 101) is executed via the step (# 100) in FIG. Step (# 10
1) and the step (# 102) in that frame represent the same loop processing as the above-described step (# 006). In step (# 101), while the variable K is counted up from 0 to 3, In step (# 102), the process in each frame is executed while the variable I is counted up from 0 to 149. Therefore, step (# 101) and step (# 102) represent a so-called "nested" loop process of the variables K and I.

【0051】ステップ(#102)のループ処理内のス
テップ(#103)では、配列変数IM(i,k)の再
格納作業を行っている。
In the step (# 103) in the loop processing of the step (# 102), the work of restoring the array variables IM (i, k) is performed.

【0052】本実施例では、マイクロコンピュータMC
U109が信号処理を行っているわけであるが、一般に
マイクロコンピュータの内蔵RAM(ランダム・アクセ
ス・メモリ)の記憶容量は、エリアセンサの全画素情報
を一度に記憶できる程大きくはない。そこで、本実施例
では、エリアセンサから出力される像信号を逐時読みだ
しながら、横方向(X軸)5ライン分に相当する最新の
像信号のみをマイクロコンピュータの内蔵RAMに記憶
させ、1ラインの読み込み毎に視線検出のための処理を
実行するようにしている。
In this embodiment, the microcomputer MC
Although U109 performs signal processing, the storage capacity of a built-in RAM (random access memory) of a microcomputer is generally not large enough to store all pixel information of the area sensor at one time. Therefore, in the present embodiment, while reading out the image signals output from the area sensor one by one, only the latest image signals corresponding to five lines in the horizontal direction (X axis) are stored in the built-in RAM of the microcomputer, and 1 The processing for gaze detection is executed every time a line is read.

【0053】ステップ(#101)からステップ(#1
03)の2重ループ処理で実行している内容は、新たな
1ライン分の像信号を読み込むために、記憶している過
去5ライン分の像信号データを更新する作業である。即
ち、配列変数IM(i,k)の内、IM(i,0)[i
=0〜149]が最も過去の、またIM(i,4)[i
=0〜149]が最も最近の1ラインの像データを表し
ており、次のようにデータを更新して新たな1ライン分
の像信号をIM(i,4)「i=0〜149]に格納で
きるように準備する。
From step (# 101) to step (# 1)
The content executed in the double loop processing of 03) is an operation of updating the stored image signal data of the past five lines in order to read a new image signal of one line. That is, among the array variables IM (i, k), IM (i, 0) [i
= 0 to 149] is the oldest and IM (i, 4) [i
= 0 to 149] represents the most recent one-line image data, and the data is updated as follows to obtain a new one-line image signal as IM (i, 4) “i = 0 to 149]. Prepare to be stored in.

【0054】IM(i,0)←IM(i,1) IM(i,1)←IM(i,2) IM(i,2)←IM(i,3) IM(i,3)←IM(i,4)[i=0〜149]IM (i, 0) ← IM (i, 1) IM (i, 1) ← IM (i, 2) IM (i, 2) ← IM (i, 3) IM (i, 3) ← IM (I, 4) [i = 0 to 149]

【0055】さて、ステップ(#101)〜ステップ
(#103)のデータ更新のためのロープ処理が終了す
ると、次のステップ(#104)のループ処理を実行す
る。
When the rope processing for updating the data in steps (# 101) to (# 103) is completed, the loop processing in the next step (# 104) is executed.

【0056】ステップ(#104)のループ処理では、
エリアセンサの横方向(X軸)の1ライン分(150画
素)の像信号を逐次的にA/D変換しながら、RAMに
格納し、また像信号の最小値を検出している。
In the loop processing of step (# 104),
The image signals for one line (150 pixels) in the horizontal direction (X-axis) of the area sensor are sequentially stored in the RAM while performing A / D conversion, and the minimum value of the image signal is detected.

【0057】ステップ(#104)のループ内の最初の
ステップ(#105)では、マイクロコンピュータMC
U109の内蔵のA/D変換器から、像信号をA/D変
換したディジタル値ADCを取り出し、その値を一時的
に変換EYEDTに格納する。そして、次のステップ
(#106)にて、EYEDTの値を配列変数IM
(I,4)に格納する。変数Iは外側のループ処理ステ
ップ(#104)にて0から149までカウントアップ
される。
In the first step (# 105) in the loop of step (# 104), the microcomputer MC
The digital value ADC obtained by A / D converting the image signal is taken out from the built-in A / D converter of U109, and the value is temporarily stored in the conversion EYEDT. Then, in the next step (# 106), the value of EYEDT is stored in the array variable IM.
(I, 4). The variable I is counted up from 0 to 149 in the outer loop processing step (# 104).

【0058】ステップ(#107)と(#108)は像
信号の最小値を検出処理である。変数EYEMINは像
信号の最小値を保持する変数であり、ステップ(#10
7)において、EYEMINよりEYEDTの方が小さ
ければ、ステップ(#108)へ分岐し、EYEMIN
をこの小さなEYEDTの値で更新する。
Steps (# 107) and (# 108) are processing for detecting the minimum value of the image signal. The variable EYEMIN is a variable that holds the minimum value of the image signal, and is set in step (# 10).
In 7), if EYEDT is smaller than EYEMIN, the process branches to step (# 108), and EYEMIN
Is updated with this small EYEDT value.

【0059】ステップ(#104)〜(#108)のル
ープ処理が終了し、新たな1ライン分の像信号の格納
と、最小値の検出が終ると、次のステップ(#109)
でサブルーチン「1ラインの読み込み」をリターンす
る。
When the loop processing of steps (# 104) to (# 108) is completed and the storage of a new one-line image signal and the detection of the minimum value are completed, the next step (# 109)
Returns the subroutine "read one line".

【0060】図6のフローチャートに戻って、ステップ
(#007)のサブルーチン「1ラインの読み込み」が
完了すると、次のステップ(#008)へ移行し、外側
のループ処理ステップ(#006)のループ変数Jが5
以上か否か調べる。
Returning to the flowchart of FIG. 6, when the subroutine "read one line" of step (# 007) is completed, the process proceeds to the next step (# 008), and the loop of the outer loop processing step (# 006) Variable J is 5
Check to see if this is the case.

【0061】ループ変数Jはエリアセンサの縦方向(Y
軸)の画素ラインを表しており、本実施例では、エリア
センサの画素数を(150×100)としているので、
Jは0から99までカウントアップされる。
The loop variable J is set in the vertical direction (Y
Axis), and in this embodiment, the number of pixels of the area sensor is (150 × 100).
J is counted up from 0 to 99.

【0062】ステップ(#008)にてループ変数Jが
5以上の場合にはステップ(#009)へ分岐する。こ
れは、読み込んだ像信号のライン数が5以上になると、
エリアセンサの縦方向(Y軸)の処理が出来るようにな
るからである。
If the loop variable J is 5 or more in step (# 008), the flow branches to step (# 009). This is because when the number of lines of the read image signal becomes 5 or more,
This is because processing in the vertical direction (Y axis) of the area sensor can be performed.

【0063】分岐した先のステップ(#009)ではサ
ブルーチン「P像の検出」を実行する。
In the step (# 009) ahead of the branch, the subroutine "P image detection" is executed.

【0064】サブルーチン「P像の検出」は、前述した
角膜反射像(P像)の位置を検出するための処理であ
り、エリアセンサの横方向(X軸)の1ラインの読み込
み毎に実行する。そのフローチャートを図8に示す。
The subroutine "detection of P image" is a process for detecting the position of the corneal reflection image (P image) described above, and is executed every time one line in the horizontal direction (X axis) of the area sensor is read. . The flowchart is shown in FIG.

【0065】サブルーチン「P像の検出」がコールされ
ると、ステップ(#200)を経てステップ(#20
1)のループ処理を実行する。ループ処理内では、像デ
ータ(配列変数IM(i,k)に記憶)中のP像の位置
を検索し、もし見つかれば、エリアセンサ上でのその位
置を記憶する。本実施例ではP像は2個発生するので、
記憶する位置情報も2個となる。
When the subroutine "P image detection" is called, the process proceeds to step (# 20) through step (# 200).
The loop processing of 1) is executed. In the loop processing, the position of the P image in the image data (stored in the array variable IM (i, k)) is searched, and if found, the position on the area sensor is stored. In this embodiment, since two P images are generated,
Two pieces of position information are stored.

【0066】ループ内の最初のステップ(#202)で
は、所定位置の像データがP像としての条件を満足する
か否かを判定する。条件としては、次のようなものであ
る。
In the first step (# 202) in the loop, it is determined whether or not the image data at a predetermined position satisfies the condition as a P image. The conditions are as follows.

【0067】ステップ(#202)の「P像条件」 IM(1,2)>C1 かつ IM(I,1)>C2 かつ IM(I,3)>C2 かつ IM(I−1,2)>C2 かつ IM(I+1,2)>C2"P image condition" in step (# 202) IM (1,2)> C1 and IM (I, 1)> C2 and IM (I, 3)> C2 and IM (I-1,2)> C2 and IM (I + 1,2)> C2

【0068】但し、C1,C2はしきい値定数で、C1
≧C2なる関係があり、例えば、C1=230,C2=
200である。また、変数Iはループ処理のループ変数
であり、エリアセンサの横方向(X軸)の位置を表して
いる。
Here, C1 and C2 are threshold constants, and C1
≧ C2, for example, C1 = 230, C2 =
200. The variable I is a loop variable of the loop processing, and represents the position of the area sensor in the horizontal direction (X axis).

【0069】上記条件は、P像が図5で説明したよう
に、スポット像のようなものであることに注目し、横/
縦方向(X/Y軸)の両方向に定義したものである。こ
の条件が満足されたとき、位置(I,2)にP像が存在
するものと見なす。
The above conditions are based on the fact that the P image is like a spot image as described with reference to FIG.
It is defined in both directions of the vertical direction (X / Y axis). When this condition is satisfied, it is considered that a P image exists at the position (I, 2).

【0070】前述したように配列変数IM(i,k)は
エリアセンサの横方向(X軸)の1ライン読み込み毎に
更新しており、縦方向(Y軸)位置JラインはIM
(i、4)「i=0〜149]に格納されている。従っ
て、変数IMに対するアドレス(1,2)は、エリアセ
ンサ上では、位置(I,J−2)となる。
As described above, the array variable IM (i, k) is updated every time one line is read in the horizontal direction (X axis) of the area sensor, and the vertical (Y axis) position J line is set to IM.
(I, 4) Stored in “i = 0 to 149.” Therefore, the address (1, 2) for the variable IM is the position (I, J−2) on the area sensor.

【0071】ステップ(#202)にて、P像の条件を
満足する像データがあった場合、ステップ(#203)
以降へ分岐し、ない場合には外側のループ変数Iがカウ
ントアップされる。
In step (# 202), if there is image data that satisfies the condition of the P image, step (# 203)
Branching to the following, if not, the outer loop variable I is counted up.

【0072】ステップ(#203)以降は、2個のP像
の存在範囲(X軸方向の範囲[IP1〜IP2],Y軸
方向の範囲[JP1〜JP2])を決定する処理であ
る。
The process after step (# 203) is a process for determining the existing range of two P images (the range [IP1 to IP2] in the X-axis direction and the range [JP1 to JP2] in the Y-axis direction).

【0073】先ず、ステップ(#203)では、エリア
センサの横方向(X軸)の位置を表す変数Iと変数IP
1を比較し、I<IP1ならば、ステップ(#204)
へ分岐する。即ち,P像の存在範囲のうち、横方向の左
方にあるP像位置IP1の位置よりも、変数Iの位置の
方が左にあれば、IP1を書換えようとするものであ
る。
First, in step (# 203), a variable I and a variable IP representing the position of the area sensor in the horizontal direction (X axis) are set.
1 and if I <IP1, step (# 204)
Branch to That is, if the position of the variable I is on the left side of the P image position IP1 on the left side in the horizontal direction in the existing range of the P image, IP1 is to be rewritten.

【0074】ステップ(#204)では、変数IP1に
変数Iの値を格納し、そのときの縦方向の位置(J−
2)を変数JP1に格納する。
In step (# 204), the value of the variable I is stored in the variable IP1, and the vertical position (J-
2) is stored in the variable JP1.

【0075】ステップ(#205)、(#206)で
は、P像存在範囲のうち、横方向の右方にあるP像位置
IP2と、その縦方向位置を表すJP2の更新の判定を
行う。
In steps (# 205) and (# 206), the P image position IP2 on the right side in the horizontal direction in the P image existence range and the update of JP2 representing the vertical position are determined.

【0076】以上のようにして、ステップ(#201)
のループ処理で、横方向(X軸)の位置Iが0から14
9までの1ラインの処理が終了すると、次のステップ
(#207)へ移行する。
As described above, step (# 201)
In the loop processing, the position I in the horizontal direction (X axis) is changed from 0 to 14
When the processing of one line up to 9 is completed, the process proceeds to the next step (# 207).

【0077】ステップ(#207)では、後の処理で参
照する変数XP1、XP2、YP1、YP2を図中の式
の如く計算する。
In step (# 207), the variables XP1, XP2, YP1, and YP2 to be referred to in the subsequent processing are calculated as shown in the figure.

【0078】これらの変数の意味については図12の説
明のところで詳述するが、簡単に述べるならば、瞳孔中
心を検出する際に、P像位置周辺に発生する偽の瞳孔エ
ッジ情報を排除するために使用するものである。
The meanings of these variables will be described in detail in the description of FIG. 12, but in brief, when detecting the center of the pupil, false pupil edge information generated around the P image position is excluded. Is what you use for

【0079】ステップ(#207)の処理が終了する
と、次のステップ(#208)でサブルーチン「P像の
検出」をリターンする。
When the processing in step (# 207) is completed, the subroutine "P image detection" is returned in the next step (# 208).

【0080】再び図6のフローチャートに戻る。Returning to the flowchart of FIG.

【0081】ステップ(#009)のサブルーチン「P
像の検出」が完了すると、次のステップ(#010)で
サブルーチン「瞳孔エッジの検出」を実行する。
The subroutine "P" of step (# 009)
When the "image detection" is completed, a subroutine "pupil edge detection" is executed in the next step (# 010).

【0082】「瞳孔エッジの検出」は眼球反射像中の瞳
孔エッジ(虹彩と瞳孔の境界)の位置の検出を行うサブ
ルーチンであり、図9にそのフローチャートを示してい
る。
"Pupil edge detection" is a subroutine for detecting the position of the pupil edge (boundary between the iris and the pupil) in the eyeball reflection image, and its flowchart is shown in FIG.

【0083】サブルーチン「瞳孔エッジの検出」がコー
ルされると、ステップ(#300)を経て、次のステッ
プ(#301)のループ処理が実行される。ステップ
(#301)は図8のステップ(#201)と同様に、
エリアセンサの横方向(X軸)の位置を表す変数Iをル
ープ変数とするループ処理である。
When the subroutine "pupil edge detection" is called, a loop process of the next step (# 301) is executed via step (# 300). Step (# 301) is the same as step (# 201) in FIG.
This is a loop process in which the variable I representing the position of the area sensor in the horizontal direction (X axis) is used as a loop variable.

【0084】ステップ(#301)のループ処理内で
は、像データ中に瞳孔のエッジを表す特徴があるかどう
かを検索し、もしあればあ、その位置情報を記憶する。
瞳孔エッジ位置情報は、配列変数EDGDT(m、n)
に格納される。
In the loop process of step (# 301), it is searched whether or not the image data has a feature representing the edge of the pupil, and if there is, the position information is stored.
The pupil edge position information is represented by an array variable EDGDT (m, n).
Is stored in

【0085】配列変数EDGDT(m、n)のデータ形
式は以下のように設定している。
The data format of the array variable EDGDT (m, n) is set as follows.

【0086】EDGDT(m、1)…m番目のエッジ点
の輝度 EDGDT(m、2)…m番目のエッジ点のX軸座標 EDGDT(m、3)…m番目のエッジ点のY軸座標
EDGDT (m, 1)... Luminance of m-th edge point EDGDT (m, 2). X-axis coordinate of m-th edge point EDGDT (m, 3)... Y-axis coordinate of m-th edge point

【0087】mは瞳孔エッジ検出の逐次処理の過程で見
つかったエッジ点の順番である。従って、エッジがM個
検出されれば、配列変数EDGDTの容量は[M×3]
バイ程が必要となる。フローチャートでは、エッジの検
出個数は変数EDGCNTでカウントしている。
M is the order of the edge points found in the course of the sequential processing of pupil edge detection. Therefore, if M edges are detected, the capacity of the array variable EDGDT is [M × 3].
You need to buy. In the flowchart, the number of detected edges is counted by the variable EDGCNT.

【0088】さて、ループ内の最初のステップ(#30
2)では、像データIM(I、2)の近傍に、過去に検
出されたエッジ点があるが否かを判定している。もう少
し詳しく説明すると次のようになる。
The first step in the loop (# 30
In 2), it is determined whether there is an edge point detected in the past near the image data IM (I, 2). The following is a more detailed explanation.

【0089】外側のループ処理のループ変数Iは、エリ
アセンサの横方向(X軸)の位置を表し、像データを格
納している配列変数IM(i、k)に対するアドレス
(I、2)は、いま正に瞳孔エッジであるが否かを検定
しようとしている点(画素の座標)である。この(I、
2)の点に隣接する各点が、過去の逐次処理の過程で瞳
孔エッジと判定されたかどうかを、エッジ位置情報を格
納している配列変数EDGDT(m、n)から調べよう
とするものである。
The loop variable I of the outer loop processing represents the position of the area sensor in the horizontal direction (X axis), and the address (I, 2) for the array variable IM (i, k) storing the image data is This is the point (coordinates of the pixel) for which it is to be tested whether or not it is a pupil edge. This (I,
An attempt is made to check whether or not each point adjacent to the point 2) is determined as a pupil edge in the process of the past sequential processing from the array variable EDGDT (m, n) storing the edge position information. is there.

【0090】ステップ(#302)の判定条件を具体的
に記述すると、次のような条件となる。
The conditions for determination in step (# 302) are specifically described as follows.

【0091】ステップ(#302)の「判定条件」 {EDGDT(m、2)、EDGDT(m、3)}=
{(I−1)、(J−2)}あるいは={(I−1)、
(J−3)} あるいは={(I)、(J−3)} あるいは={(I+1)、(J−3)} なる{EDGDT(m、2)、EDGDT(m、3)}
が存在する。
"Judgment condition" of step (# 302) {EDGDT (m, 2), EDGDT (m, 3)} =
{(I-1), (J-2)} or = {(I-1),
(J-3)} or = {(I), (J-3)} or = {(I + 1), (J-3)} where {EDGDT (m, 2), EDGDT (m, 3)}
Exists.

【0092】但し、m=0〜(EDGCNT−1)However, m = 0 to (EDGCNT-1)

【0093】現在検定しようとしている座標は
{(I)、(J−2)}であるから、上記座標は現在座
標に対して順に左隣、左上隣、上隣、右上隣の位置を表
している。
Since the coordinates to be tested are {(I), (J-2)}, the coordinates represent the positions of the left, upper left, upper, and upper right adjacent to the current coordinates in order. I have.

【0094】また、EDGDT(m、2)、EDGDT
(m、3)はそれぞれm番目のエッジ点のX軸座標、Y
軸座標を表わしているから、結局上記条件は、現在座標
の左隣、左上隣、上隣、右上隣の位置にエッジ点があっ
たかどうかを判定していることになる。
Further, EDGDT (m, 2), EDGDT
(M, 3) are the X-axis coordinates of the m-th edge point, and Y
Since the coordinates represent the axis coordinates, the above condition is to determine whether there is an edge point at the position on the left, next to the upper left, next to the upper, and next to the upper right of the current coordinates.

【0095】ステップ(#302)において、座標
(I、J−2)の近傍にエッジ点があると判定された場
合にはステップ(#304)へ、そうでない場合には、
ステップ(#303)へ分岐し、それぞれ別の条件を用
いて瞳孔エッジの判定を行う。
In step (# 302), if it is determined that there is an edge point near the coordinates (I, J-2), go to step (# 304); otherwise, go to step (# 304).
The process branches to step (# 303), and the pupil edge is determined using different conditions.

【0096】近傍にエッジ点のない場合について先に説
明する。
The case where there is no edge point in the vicinity will be described first.

【0097】ステップ(#303)では、現在検定しよ
うとしている座標(I、J−2)の像データが瞳孔エッ
ジの条件(ステップ(#303)での判定条件を「エッ
ジ条件1」と称する)を満たすか否かを判定している。
座標(I、J−2)の像データは配列変数IM(I、
2)に格納されていることに留意されたい。
In the step (# 303), the image data of the coordinates (I, J-2) to be examined is the pupil edge condition (the judgment condition in the step (# 303) is called "edge condition 1"). It is determined whether or not is satisfied.
The image data of the coordinates (I, J-2) is an array variable IM (I,
Note that it is stored in 2).

【0098】判定条件は以下のようになる。The judgment conditions are as follows.

【0099】 ステップ(♯303)の「エッジ条件1」 1、{IM(I-1,2)-IM(I,2)}>C3かつ {IM(I-2,2)-IM(I-1,2)}>C3かつ IM(I,2)<a 2、{IM(I+1,2)-IM(I,2)}>C3かつ {IM(I+2,2)-IM(I+1,2)}>C3かつ IM(I,2)<a 3、{IM(I,1)-IM(I,2)}>C3かつ {IM(I,0)-IM(I,1)}>C3かつ IM(I,2)<a 4、{IM(I,3)-IM(I,2)}>C3かつ {IM(I,4)-IM(I,3)}>C3かつ IM (I,2)<a“Edge condition 1” of step (♯303) 1, {IM (I-1,2) -IM (I, 2)}> C3 and {IM (I-2,2) -IM (I- 1,2)}> C3 and IM (I, 2) <a 2,{IM(I+1,2)-IM(I,2)}> C3 and {IM (I + 2,2) -IM ( I + 1,2)}> C3 and IM (I, 2) <a 3,{IM(I,1)-IM(I,2)}> C3 and {IM (I, 0) -IM (I, 1)}> C3 and IM (I, 2) <a 4,{IM(I,3)-IM(I,2)}> C3 and {IM (I, 4) -IM (I, 3)}> C3 and IM (I, 2) <a

【0100】上記1〜4の何れかを満足すれば、座標
(I、J-2)をエッジ点と見なす。但し、a=EYEMIN+C4
で、EYEMINは現在の逐次処理までの像データ中最低輝度
値である。
If any of the above 1 to 4 is satisfied, the coordinates (I, J-2) are regarded as an edge point. Where a = EYEMIN + C4
EYEMIN is the lowest luminance value in the image data up to the current sequential processing.

【0101】しきい値C3、C4は、例えば、C3=
3、C4=20である。
The threshold values C3 and C4 are, for example, C3 =
3, C4 = 20.

【0102】上記条件は、瞳孔エッジ(虹彩と瞳孔の境
界)においては連続して所定の輝度差があり、同時に瞳
孔部は眼球反射像の中で最も低い輝度となることを特徴
としてとらえている。1と2の条件はエリアセンサの横
方向(X軸)のエッジを抽出し、3と4の条件は縦方向
(Y軸)のエッジを抽出する。
The above condition is characterized in that the pupil edge (the boundary between the iris and the pupil) continuously has a predetermined luminance difference, and at the same time, the pupil has the lowest luminance in the eyeball reflection image. . The conditions 1 and 2 extract the edge in the horizontal direction (X axis) of the area sensor, and the conditions 3 and 4 extract the edge in the vertical direction (Y axis).

【0103】座標(I、J−2)が瞳孔エッジ点として
抽出された場合には、ステップ(#303)からステッ
プ(#305)へ分岐し、エッジ点の輝度値と座標を記
憶する。
If the coordinates (I, J-2) are extracted as pupil edge points, the process branches from step (# 303) to step (# 305), and stores the luminance values and coordinates of the edge points.

【0104】ステップ(#305)では、エッジ位置情
報格納用の配列変数EDGDT(m、k)に次のように
情報を格納する。
In step (# 305), information is stored in the array variable EDGDT (m, k) for storing edge position information as follows.

【0105】EDGDT(EDGCNT、1)←IM
(I、2) EDGDT(EDGCNT、2)←I EDGDT(EDGCNT、3)←J−2
EDGDT (EDGCNT, 1) ← IM
(I, 2) EDGDT (EDGCNT, 2) ← I EDGDT (EDGCNT, 3) ← J-2

【0106】IM(I、2)はEDGCNT番目に検出
されたエッジ点の輝度、Iは同X座標、(J−2)は同
Y座標である。
IM (I, 2) is the luminance of the edge point detected at the EDGCNT-th, I is the same X coordinate, and (J-2) is the same Y coordinate.

【0107】そして、検出されたエッジ点の個数をカウ
ントする変数EDGCNTを1つカウントアップする。
Then, the variable EDGCNT for counting the number of detected edge points is incremented by one.

【0108】ステップ(#305)の処理が終了する
と、外側のループ処理のループ変数I(横方向、X軸の
座標を表す)をカウントアップし、再びステップ(#3
02)以降のフローチャートを実行する。
When the processing of step (# 305) is completed, the loop variable I (representing the coordinates in the horizontal direction and the X axis) of the outer loop processing is counted up, and the processing returns to step (# 3).
02) The following flowchart is executed.

【0109】さて、ステップ(#302)において、現
在座標(I、J−2)の近傍にエッジ点があると判定さ
れた場合について説明する。
The case where it is determined in step (# 302) that there is an edge point near the current coordinates (I, J-2) will be described.

【0110】その場合、ステップ(#304)へ分岐
し、ステップ(#303)と同じように、現在検定しよ
うとしている座標(I、J−2)の像データが瞳孔エッ
ジの条件(ステップ(#304)での判定条件を「エッ
ジ条件2」と称する)を満たすか否かを判定する。
In this case, the flow branches to step (# 304), and the image data of the coordinates (I, J-2) to be examined is determined by the pupil edge condition (step (# 303)) in the same manner as in step (# 303). It is determined whether the determination condition in 304) is referred to as “edge condition 2”).

【0111】ここで、「エッジ条件2」は「エッジ条件
1」よりも、いわば緩い条件を設定してある。本実施例
では、条件式に同じで、しきい値C3、C4をそれぞれ
C3′、C4′とし、次のように変えている。
Here, the "edge condition 2" is set to a condition that is less strict than the "edge condition 1". In the present embodiment, the threshold values C3 and C4 are C3 'and C4', respectively, as in the conditional expression, and are changed as follows.

【0112】C3′=2、C4′=30 上のように設定することで、「エッジ条件1」よりもエ
ッジと判定される率が上昇する。
C3 '= 2, C4' = 30 By setting as above, the rate of determination as an edge is higher than in "edge condition 1".

【0113】エッジ条件をこのように2種類用意する理
由は、そもそもエッジ点は孤立して存在するものではな
く、連続しているものであり、ある点がエッジ点である
ならば、その近傍が同じくエッジ点である可能性が高い
であろう、という観点に基づいている。
The reason for preparing two types of edge conditions in this way is that the edge points are not isolated in the first place, but continuous, and if a certain point is an edge point, its neighborhood It is also based on the viewpoint that it is likely to be an edge point.

【0114】ステップ(#304)の「エッジ条件2」
でエッジ点と判定された場合には、ステップ(#30
5)へ分岐して、その座標の情報を記憶する。
"Edge condition 2" in step (# 304)
If it is determined in step (# 30) that the point is an edge point,
The process branches to 5) to store information on the coordinates.

【0115】以上のようにして、ループ変数Iが149
となるまで、ステップ(#301)のループ処理が実行
され、エリアセンサの横方向(X軸)の1ライン分のエ
ッジ検出の処理が終了すると、ステップ(#306)へ
移行し、サブルーチン「瞳孔エッジの検出」をリターン
する。
As described above, when the loop variable I is 149
The loop processing of step (# 301) is executed until the processing of step (# 301) is completed, and when the processing of detecting the edge of one line in the horizontal direction (X-axis) of the area sensor is completed, the process proceeds to step (# 306) and the subroutine "pupil" Edge detection "is returned.

【0116】再び図6の説明に戻る。Returning to the description of FIG.

【0117】ステップ(#010)のサブルーチン「瞳
孔エッジの検出」が完了すると、外側のループ処理ステ
ップ(#006)のループ変数J(エリアセンサの縦方
向、Y軸の座標を表す)がカウントアップされ、Jが9
9となるまで、再びステップ(#007)以降の処理が
実行される。
When the subroutine "pupil edge detection" in step (# 010) is completed, the loop variable J (representing the vertical and Y-axis coordinates of the area sensor) in the outer loop processing step (# 006) is counted up. And J is 9
Until the processing reaches 9, the processing after step (# 007) is executed again.

【0118】ループ変数Jが99となり、エリアセンサ
の全画素の読み込みと処理が終了すると、ステップ(#
006)からステップ(#011)へ移行する。
When the loop variable J becomes 99 and reading and processing of all pixels of the area sensor are completed, the step (#
006) to step (# 011).

【0119】ステップ(#011)〜(#013)で
は、ステップ(#006)のループ処理内で検出された
P像位置および瞳孔エッジ情報から、瞳孔の中心座標の
検出と視線の検出を行う。
In steps (# 011) to (# 013), the center coordinates of the pupil and the line of sight are detected from the P image position and the pupil edge information detected in the loop processing in step (# 006).

【0120】先ず、ステップ(#011)ではサブルー
チン「瞳孔推定範囲の設定」をコールする。
First, in step (# 011), a subroutine "setting of estimated pupil range" is called.

【0121】ステップ(#010)のサブルーチン「瞳
孔エッジの検出」で検出された複数の瞳孔エッジ点に
は、実際に瞳孔円(虹彩と瞳孔の境界が形成する円)を
表しているエッジ点以外にも、種々のノイズによって発
生した偽のエッジ点も含まれている。
The pupil edge points detected in the subroutine "pupil edge detection" in step (# 010) include those other than the edge points that actually represent the pupil circle (the circle formed by the boundary between the iris and the pupil). Also, false edge points generated by various noises are included.

【0122】「瞳孔推定範囲の設定」は、上記偽のエッ
ジ点を排除するために、P像位置情報に基づいて、確か
らしいエッジ点の座標範囲を限定するためのサブルーチ
ンであり、そのフローチャートを図10に示している。
"Setting the estimated pupil range" is a subroutine for limiting the coordinate range of a probable edge point based on the P image position information in order to eliminate the false edge point. It is shown in FIG.

【0123】サブルーチン「瞳孔推定範囲の設定」がコ
ールされると、ステップ(#400)を経て、ステップ
(#401)を実行する。
When the subroutine "set pupil estimation range" is called, step (# 401) is executed after step (# 400).

【0124】ステップ(#401)では、先に「P像の
検出」サブルーチンで説明したP像位置範囲、即ち、横
方向(X軸)にIP1〜IP2、縦方向(Y軸)にJP
1〜JP2の情報を用いて、瞳孔円の座標範囲IS1、
IS2、JS1、JS2を次の式に従って計算する。
In step (# 401), the P image position range described in the "P image detection" subroutine, ie, IP1 to IP2 in the horizontal direction (X axis) and JP in the vertical direction (Y axis).
Using the information of 1 to JP2, the pupil circle coordinate range IS1,
IS2, JS1, and JS2 are calculated according to the following equations.

【0125】IS1←IP1−20 IS2←IP2+20 JS1←(JP1+JP2)/2−20 JS2←(JP1+JP2)/2+40IS1 ← IP1-20 IS2 ← IP2 + 20 JS1 ← (JP1 + JP2) / 2-20 JS2 ← (JP1 + JP2) / 2 + 40

【0126】確からしい瞳孔エッジ点は、エリアセンサ
の横方向(X軸)の範囲IS1〜IS2、縦方向(Y
軸)の範囲JS1〜JS2に存在する点である、と設定
する。
The pupil edge points that are likely to be in the range IS1 to IS2 in the horizontal direction (X axis) of the area sensor and in the vertical direction (Y
It is set that the point exists in the range JS1 to JS2 of (axis).

【0127】本実施例の光学系では、図5(A)に示し
た如く、2個のP像は常に瞳孔円の円内の上部に存在す
るようになっており、これから上記計算式が成立する。
In the optical system of this embodiment, as shown in FIG. 5A, the two P images always exist in the upper part of the pupil circle. I do.

【0128】ステップ(#401)の計算の後は、ステ
ップ(#402)へ移行し、サブルーチン「瞳孔推定範
囲の設定」をリターンする。
After the calculation in step (# 401), the process proceeds to step (# 402), and returns to the subroutine "set pupil estimation range".

【0129】図6に戻って、次にステップ(#012)
のサブルーチン「瞳孔中心の検出」をコールする。
Returning to FIG. 6, the next step (# 012)
Subroutine "detection of pupil center" is called.

【0130】「瞳孔中心の検出」は、確からしい瞳孔エ
ッジ点の座標から、瞳孔円の形状(中心座標と大きさ)
を推定するサブルーチンであり、そのフローチャートを
図11〜図13に示した。
“Detection of pupil center” is based on the coordinates of the pupil circle (center coordinates and size) based on the coordinates of the likely pupil edge points.
Is shown in FIGS. 11 to 13.

【0131】瞳孔円の形状の推定には、「最小2乗法」
を用いる。その考え方について先に述べておく。
To estimate the shape of the pupil circle, the "least square method"
Is used. The concept is described above.

【0132】円の公式は周知のように、中心座標を
(a、b)、半径をcとすると、(x−a)2+(y−
b)2=c2 …(10) で与えられる。
As is well known, the formula of the circle is (x−a) 2 + (y−) where (a, b) is the central coordinate and c is the radius.
b) 2 = c 2 (10)

【0133】複数の観測点(x1、y1)、(x2、y
2)…(xn、yn)から、次式の誤差量ERが最小と
なるようにa、b、cを決定することを考える。
A plurality of observation points (x1, y1), (x2, y
2) Consider determining a, b, and c from (xn, yn) such that the error amount ER of the following equation is minimized.

【0134】ER=Σ[(xi−a)2+(yi−b)2
−c22 …(11)ERは各観測点と、a、b、cで
決定される円の法線方向の距離(誤差)の2乗和であ
り、これを最小する。
ER = Σ [(xi−a) 2 + (yi−b) 2
−c 2 ] 2 (11) ER is the sum of squares of the distance (error) in the normal direction of each observation point and the circle determined by a, b, and c, and minimizes this.

【0135】ERをa、b、cで各々偏微分し、0とお
く。
ER is partially differentiated with respect to a, b, and c, and is set to 0.

【0136】[0136]

【外2】 但し、i=1〜nとする。[Outside 2] However, i = 1 to n.

【0137】式(14)より、From equation (14),

【0138】[0138]

【外3】 式(15)を式(13)、(14)へ代入し、ここで、 X1=Σxi、X2=Σxi2、X3=Σxi3…(16)〜(18) Y1=Σyi、Y2=Σyi2、Y3=Σyi3…(19)〜(21) Z1=Σxiyi、Z2=Σxi2yi、Z3=Σxiyi2…(22)〜(2 4) とおき、さらに、V1=X2−X12/n …(25) V2=Y2−Y12/n …(26) W1=X3+Z3 …(27) W2=Y3+Z3 …(28) W3=(X2+Y2)/n …(29) W4=Z1−X1Y1/n …(30) W5=(Z1−2・X1Y1/n)Z1 …(31) W6=X1Y2 …(32) W7=X2Y1 …(33) とおいて整理すると、円の中心座標a、bは[Outside 3] Equation (15) Equation (13), is substituted into (14), wherein, X1 = Σxi, X2 = Σxi 2, X3 = Σxi 3 ... (16) ~ (18) Y1 = Σyi, Y2 = Σyi 2, Y3 = Σyi 3 ... (19) ~ (21) Z1 = Σxiyi, Z2 = Σxi 2 yi, Z3 = Σxiyi 2 ... (22) ~ (2 4) Distant further, V1 = X2-X1 2 / n ... ( 25) V2 = Y2-Y1 2 / n (26) W1 = X3 + Z3 (27) W2 = Y3 + Z3 (28) W3 = (X2 + Y2) / n (29) W4 = Z1-X1Y1 / n (30) W5 = (Z1-2 · X1Y1 / n) Z1 (31) W6 = X1Y2 (32) W7 = X2Y1 (33) By rearranging, the center coordinates a and b of the circle are

【0139】[0139]

【外4】 で計算される。[Outside 4] Is calculated.

【0140】また、視線(注視点)の計算には直接関係
はないが、半径cは、c=[W3−2(aX1+bY
1)/n+a2+b21/2…(36)で計算される。
Although there is no direct relation to the calculation of the line of sight (point of gaze), the radius c is c = [W3-2 (aX1 + bY
1) / n + a 2 + b 2 ] 1/2 (36)

【0141】本発明の実施例では、さらに誤差量ERを
瞳孔中心検出の信頼性判定に用いており、ERは次の計
算式で与えられる。
In the embodiment of the present invention, the error amount ER is used for determining the reliability of pupil center detection, and ER is given by the following equation.

【0142】ER=X4−4aX3+2(2a2+d)
X2−4adX1+Y4−4bY3+2(2b2+d)
Y2−4bdY1+2(Z4−2aZ3−2bZ2+4
abZ1)+d2n…(37)但し、X4=Σxi4
(38) Y4=Σyi4 …(39) Z4=Σxi2yi2 …(40) d=a2+b2−c2 …(41) としている。
ER = X4-4aX3 + 2 (2a 2 + d)
X2-4adX1 + Y4-4bY3 + 2 (2b 2 + d)
Y2-4bdY1 + 2 (Z4-2aZ3-2bZ2 + 4
abZ1) + d 2 n (37) where X4 = {xi 4 ...
(38) Y4 = Σyi 4 (39) Z4 = Σxi 2 yi 2 (40) d = a 2 + b 2 -c 2 (41)

【0143】さて、以上のような数値計算の裏付けに従
って、図11〜図13のフローチャートの説明を行う。
Now, the flowcharts of FIGS. 11 to 13 will be described according to the above numerical calculations.

【0144】サブルーチン「瞳孔中心の検出」がコール
されると、ステップ(#500)を経て、ステップ(#
501)の「円の最小2乗推定」サブルーチンをコール
する。
When the subroutine "pupil center detection" is called, the process proceeds to step (# 500), and then to step (# 500).
The subroutine 501) "Estimation of least square of circle" is called.

【0145】「円の最小2乗推定」は上記式に従って、
瞳孔円の中心座標(a、b)と誤差量ERを計算するサ
ブルーチンであり、そのフローチャートを図12に示し
ている。同サブルーチンでは、さらに最低輝度値の見直
しと、P像による偽の瞳孔エッジの排除を行っている。
The “least-squares estimation of a circle” is given by the following equation.
This is a subroutine for calculating the center coordinates (a, b) of the pupil circle and the error amount ER, and its flowchart is shown in FIG. In this subroutine, the minimum luminance value is further reviewed, and a false pupil edge is eliminated from the P image.

【0146】サブルーチン「円の最小2乗推定」がコー
ルされると、ステップ(#600)を経て、ステップ
(#601)へ移行する。
When the subroutine "least-squares estimation of circle" is called, the process proceeds to step (# 601) via step (# 600).

【0147】ステップ(#601)では上述した最小2
乗推定式のワーク変数の初期化を行っている。
In step (# 601), the minimum 2
The work variables of the power estimation formula are being initialized.

【0148】次のステップ(#602)は変数Lをルー
プ変数とするループ処理であり、記憶している瞳孔エッ
ジ情報を元に最小2乗法の計算の前半を行う部分であ
る。
The next step (# 602) is a loop process in which the variable L is used as a loop variable, and is a part for performing the first half of the calculation of the least squares method based on the stored pupil edge information.

【0149】いま、瞳孔エッジ点として、(EDGCN
T−1)個の情報が配列変数EDGDTに記憶されてい
る。ループ変数Lは記憶された順番を表している。
Now, as a pupil edge point, (EDGCN
T-1) pieces of information are stored in the array variable EDGDT. The loop variable L indicates the order of storage.

【0150】ループ処理内の最初のステップ(#60
3)では、L番目のエッジ点の輝度値EDGDT(L、
1)と(EYEMIN+C5)を比較し、輝度値の方が
大きければ分岐し、現在のループ変数Lの処理を終了す
る。
The first step in the loop processing (# 60)
In 3), the luminance value EDGDT (L,
1) is compared with (EYEMIN + C5), and if the luminance value is larger, the process branches to terminate the processing of the current loop variable L.

【0151】本実施例では、エリアセンサの光電変換信
号を読み込みながら、逐次的な処理を行っているため、
エッジ点検出の部分で使用している最低輝度値も、その
時点までの最低輝度値に過ぎない。故に、エッジ点とし
て検出された点も、実は本当の最低輝度値で判定された
ものではなく、実際にはエッジ点としてふさわしくない
点も含まれている可能性がある。そこで、このステップ
の目的は、最終的に決定された最低輝度値に基づいて、
もう一度最低輝度の判定にかけ、瞳孔エッジとしてふさ
わしくない点を排除しようとするものである。
In this embodiment, the sequential processing is performed while reading the photoelectric conversion signal of the area sensor.
The lowest luminance value used in the edge point detection part is also the lowest luminance value up to that point. Therefore, the point detected as an edge point is not actually determined based on the true lowest luminance value, and may include a point that is not actually suitable as an edge point. So, the purpose of this step is based on the final determined minimum brightness value,
The determination of the lowest luminance is performed again to eliminate points that are not suitable as pupil edges.

【0152】しきい値C5としては、例えば、C5=2
0である。
As the threshold value C5, for example, C5 = 2
0.

【0153】ステップ(#603)にて、輝度値が小さ
いと判断された場合は、ステップ(#604)へ移行
し、横方向(X軸)座標と縦方向(Y軸)座標をそれぞ
れ変数X、Yに一時的に格納する。
If it is determined in step (# 603) that the luminance value is small, the process proceeds to step (# 604), in which the horizontal (X-axis) coordinate and the vertical (Y-axis) coordinate are each set as a variable X. , Y temporarily.

【0154】次のステップ(#605)では、L番目の
エッジ点の横方向座標Xが、横方向の範囲IS1〜IS
2に適合しているか否かを判定する。IS1、IS2は
サブルーチン「瞳孔推定範囲の設定」で求められた値で
あり、この範囲に入っていないエッジ点は瞳孔のエッジ
点として認めないように分岐し、現在のループ変数Lの
処理を終了する。
In the next step (# 605), the horizontal coordinate X of the L-th edge point falls within the horizontal range IS1-IS.
2 is determined. IS1 and IS2 are values obtained in the subroutine "set pupil estimation range". Edge points that do not fall within this range are branched so as not to be recognized as pupil edge points, and the processing of the current loop variable L ends. I do.

【0155】その次のステップ(#606)は、今度は
縦方向について同様の判定を行っている。
In the next step (# 606), the same determination is made in the vertical direction.

【0156】L番目のエッジ点が瞳孔推定範囲に存在し
ていれば、ステップ(#607)へ移行する。
If the L-th edge point exists in the pupil estimation range, the flow shifts to step (# 607).

【0157】ステップ(#607)、(#608)は、
L番目のエッジ点の座標がP像の近傍であるかどうかを
判断している。
Steps (# 607) and (# 608)
It is determined whether the coordinates of the L-th edge point are near the P image.

【0158】XP1、XP2、YP1、YP2はサブル
ーチン「P像の検出」で決定された値であり、エッジ点
の座標が横方向の範囲XP1〜XP2、縦方向の範囲Y
P1〜YP2に入っている場合には分岐し、現在のルー
プ変数Lの処理を終了するようにしている。これは、本
実施例の光学系では、2個のP像が瞳孔円内の上部に存
在するようになっているため、スポツト像的な形状をし
ているP像の「すそ」の部分が、前述した瞳孔エッジの
条件に適合し易く、偽の瞳孔エッジとして検出されてし
まっているのを排除するためである。
XP1, XP2, YP1, and YP2 are values determined in the subroutine "P image detection", and the coordinates of the edge point are in the horizontal range XP1 to XP2 and the vertical range Y
If it is in P1 to YP2, the process branches to end the processing of the current loop variable L. This is because, in the optical system of the present embodiment, two P images are present in the upper part of the pupil circle, so that the "tail" portion of the P image having a spot-like shape is formed. This is because it is easy to conform to the above-described pupil edge condition, and it is excluded that the pupil edge is detected as a false pupil edge.

【0159】以上のステップ(#603)〜(#60
8)の判定をパスしたエッジ点の座標情報が、ステップ
(#609)における最小2乗法の計算に供される。
The above steps (# 603) to (# 60)
The coordinate information of the edge point that has passed the determination of 8) is used for the calculation of the least squares method in step (# 609).

【0160】ステップ(#609)の計算は前述の式
(16)〜(24)、(38)〜(40)を実行し、さ
らに、計算に用いたエッジ点の個数Nをカウントアップ
する。
In the calculation in step (# 609), the above-described equations (16) to (24) and (38) to (40) are executed, and the number N of edge points used in the calculation is counted up.

【0161】ステップ(#602)のループ処理にて、
記憶していたエッジ点(EDGCNT−1)個の処理が
総て終了すると、ステップ(#610)へ移行する。
In the loop processing of step (# 602),
When the processing for all the stored edge points (EDGCNT-1) is completed, the process proceeds to step (# 610).

【0162】ステップ(#610)では、式(25)〜
(35)、(37)〜(41)を計算し、瞳孔円の中心
座標(a、b)と誤差量ERを求める。
In step (# 610), equations (25) to (25)
(35), (37) to (41) are calculated, and the center coordinates (a, b) of the pupil circle and the error amount ER are obtained.

【0163】そして、次のステップ(#611)へ移行
し、サブルーチン「円の最小2乗推定」をリターンす
る。
Then, the flow shifts to the next step (# 611) to return the subroutine "least-squares estimation of circle".

【0164】図11に戻って、ステップ(#501)の
サブルーチン「円の最小2乗推定」を完了すると、次の
ステップ(#502)へ移行する。
Returning to FIG. 11, when the subroutine "least-squares estimation of circle" of step (# 501) is completed, the process proceeds to the next step (# 502).

【0165】ステップ(#502)では、円の推定に用
いたデータの個数Nをしきい値NTHRと比較し、N<
NTHRならば、データ数が少ないため結果の信頼性が
低いと見なして、ステップ(#512)へ分岐し、検出
失敗であるとする。
In step (# 502), the number N of data used for estimating a circle is compared with a threshold value NTHR, and N <
In the case of NTHR, since the number of data is small, it is considered that the reliability of the result is low, and the flow branches to step (# 512) to determine that the detection has failed.

【0166】NTHRとしては、例えば、NTHR=3
0である。
As NTHR, for example, NTHR = 3
0.

【0167】ステップ(#502)にて、N≧NTHR
ならば、次のステップ(#503)にて、誤差量ERと
しきい値ERTHRを比較する。
In step (# 502), N ≧ NTHR
Then, in the next step (# 503), the error amount ER is compared with the threshold value ERTHR.

【0168】ER<ERTHRならば、誤差が小さく、
検出結果が充分信頼できるものと見なして、ステップ
(#514)へ分岐し、検出成功であるとする。
If ER <ERTHR, the error is small,
Assuming that the detection result is sufficiently reliable, the flow branches to step (# 514), and it is assumed that the detection is successful.

【0169】しきい値ERTHRとしては、例えば、E
RTHR=10000である。
The threshold value ERTHR is, for example, E
RTHR = 10000.

【0170】ステップ(#503)において、ER≧E
RTHRならば、データ数が充分にも拘らず誤差が大き
すぎるとして、ステップ(#504)以下の再計算を実
施する。誤差が大きくなった原因としては、瞳孔円以外
の偽のエッジ点を計算に入れてしまったことが考えら
れ、各エッジ点の座標の内、縦/横方向で端の座標のエ
ッジ点を計算から除外していって、誤差が減少するかど
うかを調べてゆく。
In step (# 503), ER ≧ E
In the case of RTHR, it is determined that the error is too large although the number of data is sufficient, and the recalculation after step (# 504) is performed. It is considered that the cause of the increase in the error is that false edge points other than the pupil circle were included in the calculation, and among the coordinates of each edge point, the edge point at the coordinates of the end in the vertical / horizontal direction was calculated. And check whether the error decreases.

【0171】ステップ(#504)ではサブルーチン
「円の最小2乗推定 再計算1」をコールする。
In the step (# 504), a subroutine "least squares estimation recalculation 1 of circle" is called.

【0172】「円の最小2乗推定 再計算1」は、最小
2乗推定の計算に用いたエッジ点の内、エリアセンサの
縦方向上部に在るエッジ点(全体の5分の1)を除外し
て、再び最小2乗推定の計算を行うサブルーチンであ
り、そのフローチャートを図13に示す。
The "least-squares estimation of circle recalculation 1" means that among the edge points used in the calculation of the least-square estimation, the edge point (one-fifth of the whole) at the upper part in the vertical direction of the area sensor is determined. This is a subroutine for excluding and calculating the least squares estimation again, and its flowchart is shown in FIG.

【0173】サブルーチン「円の最小2乗推定 再計算
1」がコールされると、ステップ(#700)を経て、
次のステップ(#701)にて図中のように変数の格納
を行う。
When the subroutine “least-squares estimation of circle, recalculation 1” is called, the program goes through step (# 700)
In the next step (# 701), variables are stored as shown in the figure.

【0174】変数XS1〜ZS4は、ステップ(#50
1)で計算した全エッジ点をしようしたときの対応する
ワーク変数の値を記憶する。そして、除外するエッジ点
の個数を全エッジ点の個数Nの5分の1として変数Mに
記憶しておく。
The variables XS1 to ZS4 are stored in the step (# 50
The value of the corresponding work variable when all the edge points calculated in 1) are used is stored. Then, the number of edge points to be excluded is stored in the variable M as 1/5 of the number N of all edge points.

【0175】次のステップ(#702)ではステップ
(#601)と同様に計算のワークを初期化し、ステッ
プ(#703)へ移行する。
In the next step (# 702), the work for calculation is initialized as in step (# 601), and the routine goes to step (# 703).

【0176】ステップ(#703)はステップ(#60
2)と同様のループ処理であり、このループ内で除外す
るエッジ点の最小2乗法の計算を行う。
Step (# 703) is replaced with step (# 60)
This is a loop process similar to 2), in which the least squares method of an edge point to be excluded in this loop is calculated.

【0177】本発明の実施例では、エリアセンサを縦方
向上部から読み込む構成にしているから、エッジ情報を
記憶している配列変数EDGDT(m、k)には、縦方
向の上部のエッジから順に格納されている。従って、E
DGDT(m、k)のmを0からアップカウントしてい
けば、縦方向上のエッジ点から取り出せることになる。
In the embodiment of the present invention, since the area sensor is read from the upper part in the vertical direction, the array variables EDGDT (m, k) storing the edge information are sequentially stored from the upper edge in the vertical direction. Is stored. Therefore, E
If m of DGDT (m, k) is counted up from 0, it can be extracted from an edge point in the vertical direction.

【0178】さて、ステップ(#703)のループ内の
最初のステップ(#704)ではエッジ点(X、Y)が
瞳孔エッジとして有効か否かを判別しているが、これは
ステップ(#603)〜(#608)と全く同様であ
る。
In the first step (# 704) in the loop of step (# 703), it is determined whether or not the edge point (X, Y) is valid as a pupil edge. ) To (# 608).

【0179】瞳孔エッジ点として有効と見なされた場合
にはステップ(#705)へ移行し、これもまたステッ
プ(#609)と同じ計算を実行する。
If it is determined that the pupil edge point is valid, the process proceeds to step (# 705), and the same calculation as in step (# 609) is executed.

【0180】そして、次のステップ(#706)にて、
新たに計算したエッジ点の個数Nと除外すべきエッジ点
の個数Mを比較し、M個の計算が終了すれば分岐し、外
側のステップ(#703)のループ処理を中止する。M
個に達していない場合は、ループ変数Lをカウントアッ
プし、再びステップ(#704)移行の処理を続行す
る。
Then, in the next step (# 706),
The newly calculated number N of the edge points is compared with the number M of the edge points to be excluded. When the calculation of the M points is completed, the process branches and the loop processing of the outer step (# 703) is stopped. M
If the number has not been reached, the loop variable L is counted up, and the process of step (# 704) is continued again.

【0181】M個の計算が終了するとステップ(#70
8)へ分岐し、瞳孔円の中心(a、b)および誤差量E
R′を再計算する。再計算の式は次のようになる。
When the M calculations are completed, step (# 70)
8), the center (a, b) of the pupil circle and the error E
Recalculate R '. The recalculation formula is as follows.

【0182】X1=X1S−X1…(16′) X2=X2S−X2…(17′) X3=X3S−X3…(18′) Y1=Y1S−Y1…(19′) Y2=Y2S−Y2…(20′) Y3=Y3S−Y3…(21′) Z1=Z1S−Z1…(22′) Z2=Z2S−Z2…(23′) Z3=Z3S−Z3…(24′) X4=X4S−X4…(38′) Y4=Y4S−Y4…(39′) Z4=Z4S−Z4…(40′)X1 = X1S-X1 (16 ') X2 = X2S-X2 (17') X3 = X3S-X3 (18 ') Y1 = Y1S-Y1 (19') Y2 = Y2S-Y2 ( 20 ') Y3 = Y3S-Y3 ... (21') Z1 = Z1S-Z1 ... (22 ') Z2 = Z2S-Z2 ... (23') Z3 = Z3S-Z3 ... (24 ') X4 = X4S-X4 ... ( 38 ') Y4 = Y4S-Y4 ... (39') Z4 = Z4S-Z4 ... (40 ')

【0183】そして、式(25)〜(35)、(37)
〜(41)を計算し直せば、新たな瞳孔中心(a、b)
と誤差量ER′を得ることが出来る。式(16)〜(4
0)はもともと逐次形式になっているため、再び全デー
タを計算し直す必要はなく、除外したいデータの加算
(あるいは累乗加算)を計算して、元の値から減算すれ
ば済む。
The equations (25) to (35) and (37)
Recalculating (41) gives a new pupil center (a, b)
And the error amount ER 'can be obtained. Expressions (16) to (4)
Since (0) is originally a sequential format, it is not necessary to recalculate all data again, but it is sufficient to calculate addition (or power addition) of data to be excluded and subtract from the original value.

【0184】再計算が終った後は、ステップ(#70
9)へ移行し、サブルーチン「円の最小2乗推定 再計
算1」をリターンする。
After the recalculation is completed, step (# 70)
The process proceeds to 9) and returns the subroutine "least squares estimation recalculation of circle 1".

【0185】図11に戻って、ステップ(#504)を
完了すると、ステップ(#505)へ移行し、再計算し
た誤差量ER′としきい値ERTHRを比較する。E
R′が小さい場合は、除外操作が効を奏したものとし
て、ステップ(#514)へ分岐し、検出成功とする。
Returning to FIG. 11, when step (# 504) is completed, the process proceeds to step (# 505), where the recalculated error amount ER 'is compared with the threshold value ERTHR. E
If R 'is small, it is determined that the exclusion operation has been effective, and the flow branches to step (# 514) to determine that the detection was successful.

【0186】未だ誤差量ER′が大きい場合には、ステ
ップ(#506)へ移行し、別のサブルーチン「円の最
小2乗推定 再計算2」をコールする。
If the error amount ER 'is still large, the flow shifts to step (# 506) to call another subroutine "recalculation of least squares of circle, recalculation 2".

【0187】「円の最小2乗推定 再計算2」は、最小
2乗推定の計算に用いたエッジ点の内、エリアセンサの
縦方向下部に在るエッジ点(全体の5分の1)を除外し
て、再び最小2乗推定の計算を行うサブルーチンであ
り、そのフローチャートを図13(B)に示す。
The “least-squares estimation of circle, recalculation 2” means that among the edge points used in the calculation of the least-square estimation, the edge point (one-fifth of the whole) located below the area sensor in the vertical direction is determined. This is a subroutine for excluding and calculating the least squares estimation again, and its flowchart is shown in FIG.

【0188】「再計算2」は「再計算1」とほとんど同
様であるが、「再計算1」と違って縦方向下部のエッジ
点から除外してゆくようにするため、ステップ(#71
2)においてループ変数Lを(EDGCNT−1)から
ダウンカウントさせている。その他は「再計算1」と全
く同様であるため、説明を省略する。
“Recalculation 2” is almost the same as “Recalculation 1”. However, unlike “Recalculation 1”, step (# 71)
In 2), the loop variable L is counted down from (EDGCNT-1). The rest is exactly the same as “recalculation 1”, and thus the description is omitted.

【0189】再び図11に戻って説明を続ける。Returning to FIG. 11, the description will be continued.

【0190】ステップ(#506)のサブルーチン「円
の最小2乗推定 再計算2」を完了すると、ステップ
(#507)へ移行し、再計算した誤差量ER′としき
い値ERYHRを比較する。ER′が小さい場合は、除
外操作が有効であったものとして、ステップ(#51
4)へ分岐し、検出成功と見なす。
Upon completion of the subroutine "recalculation of least squares of circle, recalculation 2" in step (# 506), the flow advances to step (# 507) to compare recalculated error amount ER 'with threshold value ERYHR. If ER 'is small, it is determined that the exclusion operation has been effective, and step (# 51)
The process branches to 4), and the detection is regarded as successful.

【0191】未だ誤差量ER′が大きい場合には、ステ
ップ(#508)へ移行し、さらに別のサブルーチン
「円の最小2乗推定 再計算3」をコールする。
If the error amount ER 'is still large, the flow shifts to step (# 508), and calls another subroutine "least squares estimation recalculation 3 of circle".

【0192】「円の最小2乗推定 再計算3」では、今
度は最小2乗推定の計算に用いたエッジ点の内、エリア
センサの横方向左部に在るエッジ点(全体の5分の1)
を除外して、再び最小2乗推定の計算を行うサブルーチ
ンであり、そのフローチャートを図13(C)に示す。
In the “least-squares estimation of circle, recalculation 3”, of the edge points used in the calculation of the least-square estimation, the edge point located at the left side in the horizontal direction of the area sensor (5/5 of the whole) 1)
Is a subroutine for calculating the least squares estimation again, excluding the subroutine, and its flowchart is shown in FIG.

【0193】サブルーチン「再計算3」がコールされる
と、ステップ(#720)を経て、ステップ(#72
1)にて、エッジ情報を記憶している配列変数EDGD
T(m、k)の並べ換えを行う。
When the subroutine "recalculation 3" is called, the process proceeds to step (# 720) and then to step (# 72).
In 1), the array variable EDGD storing the edge information
Rearrange T (m, k).

【0194】先にも説明したように、EDGDT(m、
k)にはエリアセンサの縦方向のエッジ点から順に格納
されているため、横方向に注目して処理を行うために
は、EDGDTに格納されているデータの並べ換えが必
要である。
As described above, EDGDT (m,
k) is stored in order from the vertical edge points of the area sensor, so that the data stored in the EDGDT needs to be rearranged in order to perform processing while paying attention to the horizontal direction.

【0195】EDGDT(m、2)にはエッジ点の横方
向(X軸座標)の値が格納されているから、この値に対
して公知の「ソート操作」を実施すれば、EDGDTに
は横方向の左からの順となったエッジ情報が再格納が可
能である。
Since a value in the horizontal direction (X-axis coordinate) of the edge point is stored in EDGDT (m, 2), if a known "sort operation" is performed on this value, the EDGDT will have a horizontal value. Edge information in the order from the left in the direction can be stored again.

【0196】並べ換えを実行すると、ステップ(#70
2)へ分岐し、後は「再計算1」と全く同様の処理を行
えば、エリアセンサの横方向左右のエッジ点を除外した
再計算ができる。
When the rearrangement is executed, the step (# 70)
By branching to 2) and performing the same processing as “recalculation 1”, recalculation can be performed excluding the left and right edge points of the area sensor in the horizontal direction.

【0197】再び、図11に戻って、ステップ(#50
8)のサブルーチン「円の最小2乗推定 再計算3」を
完了すると、ステップ(#509)へ移行し、再計算し
た誤差量ER′としきい値ERTHRを比較する。E
R′が小さい場合は、除外操作が有効であったものとし
て、ステップ(#514)へ分岐し、検出成功と見な
す。
Returning again to FIG. 11, step (# 50
When the subroutine of (8) "Least square estimation of circle, recalculation 3" is completed, the process proceeds to step (# 509) to compare the recalculated error amount ER 'with the threshold value ERTHR. E
If R 'is small, it is determined that the exclusion operation has been effective, and the flow branches to step (# 514) to determine that the detection has been successful.

【0198】未だ誤差量ER′が大きい場合には、ステ
ップ(#510)へ移行し、さらに別のサブルーチン
「円の最小2乗推定 再計算4」をコールする。
If the error amount ER 'is still large, the flow shifts to step (# 510) to call another subroutine "least squares estimation recalculation 4 of circle".

【0199】「円の最小2乗推定 再計算4」では、今
度は最小2乗推定の計算に用いたエッジ点の内、エリア
センサの横方向右部に在るエッジ点(全体の5分の1)
を除外して、再び最小2乗推定の計算を行うサブルーチ
ンであり、そのフローチャートを図13(D)に示す。
In the “least-squares estimation of circle, recalculation 4”, among the edge points used in the calculation of the least-square estimation, the edge point located on the right side in the horizontal direction of the area sensor (5/5 of the whole) 1)
Is a subroutine for calculating the least-squares estimation again, and its flowchart is shown in FIG.

【0200】いま配列変数EDGDT(m、k)には、
横方向の左から順のエッジ点が格納されているから、右
から順にエッジ点を除外しようとすれば、EDGDT
(m、k)を「再計算2」と同じように取り扱えば良
い。そこで、サブルーチン「再計算4」をコールされれ
ば直ちにステップ(#711)へ分岐して、「再計算
2」と同様の処理を行うようにしている。
Now, the array variables EDGDT (m, k) include:
Since the edge points in the horizontal direction are stored from the left, if the edge points are to be excluded in order from the right, EDGDT
(M, k) may be handled in the same manner as “recalculation 2”. Therefore, if the subroutine "recalculation 4" is called, the process immediately branches to step (# 711), and the same processing as "recalculation 2" is performed.

【0201】再び、図11に戻って説明を続ける。Returning to FIG. 11, the description will be continued.

【0202】ステップ(#510)のサブルーチン「円
の最小2乗推定 再計算4」を完了すると、ステップ
(#511)へ移行し、再計算した誤差量ER′としき
い値ERTHRを比較する。ER′が小さい場合は、除
外操作が有効であったものとして、ステップ(#51
4)へ分岐し、検出成功と見なす。
When the subroutine "least-squares estimation of circle, recalculation 4" in step (# 510) is completed, the process proceeds to step (# 511) to compare the recalculated error amount ER 'with the threshold value ERTHR. If ER 'is small, it is determined that the exclusion operation has been effective, and step (# 51)
The process branches to 4), and the detection is regarded as successful.

【0203】未だ誤差量ER′が大きい場合には、ステ
ップ(#512)へ移行し、上述の操作が有効に働かな
かったものとして、ステップ(#512)へ移行し、検
出失敗とする。
If the error amount ER 'is still large, the flow shifts to step (# 512), assuming that the above-mentioned operation did not work effectively, and shifts to step (# 512), and the detection fails.

【0204】ステップ(#512)あるいは(#51
4)で瞳孔中心の検出が最終判断されると、ステップ
(#513)あるいは(#515)でサブルーチン「瞳
孔中心の検出」をリターンする。
Step (# 512) or (# 51)
When the pupil center detection is finally determined in 4), the subroutine "pupil center detection" is returned in step (# 513) or (# 515).

【0205】図14に本発明の実施例の最小2乗推定の
一例を紹介しておく。
FIG. 14 shows an example of the least squares estimation according to the embodiment of the present invention.

【0206】図中の●が1つのエッジ点を表し、これら
のエッジ点に基づいて瞳孔円を推定したものである。
In the figure, ● represents one edge point, and the pupil circle is estimated based on these edge points.

【0207】図6の説明に戻る。Returning to the description of FIG.

【0208】ステップ(#012)での「瞳孔中心の検
出」が完了すると、ステップ(#013)へ移行し、サ
ブルーチン「視線の検出」をコールする。
When the “detection of the pupil center” in step (# 012) is completed, the process proceeds to step (# 013), and calls a subroutine “detection of line of sight”.

【0209】「視線の検出」は、これまでの処理で検出
したP像位置および瞳孔円の中心位置から、視線(注視
点)を検出するサブルーチンである。
"Detection of line of sight" is a subroutine for detecting a line of sight (point of gaze) from the position of the P image and the center position of the pupil circle detected in the processing so far.

【0210】基本的には、前述した公知例と同様に、式
(2)に従って、眼球光軸の回転角θを計算すれば良
い。
Basically, the rotation angle θ of the optical axis of the eyeball may be calculated according to the equation (2) in the same manner as in the above-mentioned known example.

【0211】本発明の実施例では、瞳孔中心を横方向
(X軸)、縦方向(Y軸)の2次元で検出しているの
で、公知例のように横方向のみではなく、縦方向の視線
の方向も横方向の検出と同様な考え方で、検出すること
ができる。
In the embodiment of the present invention, the center of the pupil is detected two-dimensionally in the horizontal direction (X-axis) and in the vertical direction (Y-axis). The direction of the line of sight can be detected in the same way as the detection in the lateral direction.

【0212】視線の検出が完了すると、ステップ(#0
14)へ移行し、一連の処理を終了する。
When the detection of the line of sight is completed, step (# 0)
The process proceeds to 14), and a series of processing ends.

【0213】[0213]

【発明の効果】以上説明したように、本発明の構成を採
用することにより、最終的に保持されている最低値に基
づいて瞳孔エッジ点の見直しを行い、この見直された瞳
孔エッジ点を基にして視線を検出しているために、正確
な瞳孔エッジを検出し、また正確な視線方向検出が可能
となった。
As described above, by adopting the configuration of the present invention, the pupil edge points are reviewed based on the finally held minimum value, and the pupil edge points that have been reviewed are used as a basis. Thus, since the gaze is detected, an accurate pupil edge can be detected, and an accurate gaze direction can be detected.

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

【図1】本発明に関する視線検出装置を搭載したAF
(オートフォーカス)カメラの概略図。
FIG. 1 is an AF equipped with a gaze detection device according to the present invention.
(Auto focus) Schematic diagram of a camera.

【図2】焦点検出系の斜視図。FIG. 2 is a perspective view of a focus detection system.

【図3】本発明に関する視線検出系の斜視図。FIG. 3 is a perspective view of a visual line detection system according to the present invention.

【図4】本発明に関し、視線を検出するための原理を説
明するための原理図。
FIG. 4 is a principle diagram for explaining a principle for detecting a line of sight according to the present invention.

【図5】本発明に関し、エリアセンサーの光強度分布を
示す図。
FIG. 5 is a diagram showing a light intensity distribution of an area sensor according to the present invention.

【図6】本発明に関し、視線を検出するためのフローチ
ャート図。
FIG. 6 is a flowchart for detecting a line of sight according to the present invention.

【図7】エリアセンサーの1ライン(X軸方向)の読み
込み動作を示すフローチャート図。
FIG. 7 is a flowchart showing a reading operation of one line (X-axis direction) of the area sensor.

【図8】P像を検出するためのフローチャート図。FIG. 8 is a flowchart for detecting a P image.

【図9】瞳孔エッジのポイントを検出するフローチャー
ト図。
FIG. 9 is a flowchart for detecting a pupil edge point.

【図10】瞳孔円の推定範囲を設定するフローチャート
図。
FIG. 10 is a flowchart for setting an estimated range of a pupil circle.

【図11】瞳孔円の検出を果たすためのフローチャート
図。
FIG. 11 is a flowchart for detecting a pupil circle.

【図12】検出された瞳孔エッジの複数のポイントから
瞳孔円を導出するに適切なポイントを選択するフローチ
ャート図。
FIG. 12 is a flowchart for selecting an appropriate point for deriving a pupil circle from a plurality of points of a detected pupil edge.

【図13】瞳孔円を算出するにあたり、不適切と考えら
れる瞳孔エッジのポイントを排除するためのフローチャ
ート図。
FIG. 13 is a flowchart for eliminating pupil edge points considered to be inappropriate in calculating a pupil circle.

【図14】本発明に関し、複数のエッジポイントとこの
エッジポイントから算出した瞳孔円を示す図。
FIG. 14 is a diagram showing a plurality of edge points and a pupil circle calculated from the edge points according to the present invention.

【図15】視線を検出するための原理を説明するための
図。
FIG. 15 is a view for explaining the principle for detecting a line of sight.

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

1 接眼連部 4 受光レンズ 5a、5b 角膜反射像発生用の照明手段としての赤外
発光ダイオード 5c、5d 虹彩情報検出用の照明手段としての赤外発
光ダイオード 6 光電素子列(エリアセンサ) 21 角膜 22 眼球 23 虹彩 24 瞳孔 101 撮影レンズ 102 跳ね上げミラー 103 表示素子 104 ピント板 105 コンデンサーレンズ 106 ペンタタハプリズム
DESCRIPTION OF SYMBOLS 1 Eyepiece connection part 4 Light receiving lens 5a, 5b Infrared light emitting diode 5c, 5d as illuminating means for generating a corneal reflection image Infrared light emitting diode as illuminating means for detecting iris information 6 Photoelectric element array (area sensor) 21 Cornea Reference Signs List 22 eyeball 23 iris 24 pupil 101 photographing lens 102 flip-up mirror 103 display element 104 focus plate 105 condenser lens 106 pentatach prism

Claims (2)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 複数の画素から成るラインが複数並んで
配置され、眼球像を受光して前記画素毎光電変換信号
ライン毎に出力する受光手段と、所定数のラインから
光電変換信号が出力された以降であってライン毎に光電
変換信号が出力される度に、所定数のラインから出力さ
れる光電変換信号の中の最低値を保持する最低値保持手
段と、前記最低値保持手段に保持されている最低値を用
いて眼球の瞳孔エッジらしき光電変換信号を出力する画
素を抽出する第1の抽出手段と、全ての光電変換信号が
出力された後に前記最低値保持手段に保持されている最
終の最低値を用いて瞳孔エッジらしき光電変換信号を出
力する画素を、前記第1の抽出手段にて抽出した画素の
中から抽出する第2の抽出手段と、前記光電変換信号の
中からプルキンエ像に関する信号を出力する画素位置を
検出するプルキンエ像検出手段と、前記第2の抽出手段
にて抽出される画素の位置と前記プルキンエ像検出手段
にて検出された画素位置とに基づいて視線方向を検出す
る検出手段、とを有することを特徴とする視線検出装
置。
1. A plurality of lines composed of a plurality of pixels are arranged side by side.
Are arranged, a light receiving means for outputting a photoelectric conversion signal of each pixel for each line by receiving eyeball image, a predetermined number of lines
After the photoelectric conversion signal is output, the photoelectric
Each time the conversion signal is output, it is output from a predetermined number of lines.
First extracting the minimum value holding means for holding a minimum value in the photoelectric conversion signals, a pixel that outputs the pupil edge Rashiki photoelectric conversion signal of the eye by using the minimum value held in said minimum value holding means And a pixel outputting a pupil edge-like photoelectric conversion signal using the final lowest value held in the lowest value holding means after all the photoelectric conversion signals are output, by the first extraction means. A second extraction unit that extracts from the pixels extracted in step 2, a Purkinje image detection unit that detects a pixel position at which a signal relating to a Purkinje image is output from the photoelectric conversion signal, and a second extraction unit. A gaze detection device comprising: a detection unit configured to detect a gaze direction based on a position of a pixel to be extracted and a pixel position detected by the Purkinje image detection unit.
【請求項2】 複数の画素から成るラインが複数並んで
配置され、眼球像を受光して前記画素毎光電変換信号
ライン毎に出力する受光手段と、所定数のラインから
光電変換信号が出力された以降であってライン毎に光電
変換信号が出力される度に、所定数のラインから出力さ
れる光電変換信号の中の最低輝度値を保持する最低輝度
値保持手段と、前記最低輝度値保持手段に保持されてい
る最低輝度値を用いて眼球の瞳孔エッジらしき光電変換
信号を出力する画素を抽出する第1の抽出手段と、前記
第1の抽出手段により抽出された画素の輝度と位置を記
憶する記憶手段と、全ての光電変換信号が出力された後
に前記最低輝度値保持手段に保持されている最終の最低
輝度値を用いて瞳孔エッジらしき光電変換信号を出力す
る画素を、前記記憶手段に記憶される画素の中から抽出
する第2の抽出手段と、前記光電変換信号の中からプル
キンエ像に関する信号を出力する画素位置を検出するプ
ルキンエ像検出手段と、前記第2の抽出手段にて抽出さ
れる画素の位置と前記プルキンエ像検出手段にて検出さ
れた画素位置と基づいて視線方向を検出する検出手段
と、を有することを特徴とする視線検出装置。
2. A plurality of lines composed of a plurality of pixels are arranged side by side.
Are arranged, a light receiving means for outputting a photoelectric conversion signal of each pixel for each line by receiving eyeball image, a predetermined number of lines
After the photoelectric conversion signal is output, the photoelectric
Each time the conversion signal is output, it is output from a predetermined number of lines.
The lowest luminance value holding means for holding the lowest luminance value of the photoelectric conversion signals to be output, and a pixel for outputting a photoelectric conversion signal like a pupil edge of an eyeball using the lowest luminance value held in the lowest luminance value holding means. First extraction means for extracting, storage means for storing the brightness and position of the pixel extracted by the first extraction means, and the lowest brightness value holding means after all the photoelectric conversion signals are output. A second extraction means for extracting a pixel which outputs a pupil edge-like photoelectric conversion signal by using the final lowest luminance value among the pixels stored in the storage means; A Purkinje image detecting means for detecting a pixel position for outputting a signal relating to an image; a pixel position extracted by the second extracting means; and a pixel position detected by the Purkinje image detecting means. Visual axis detecting apparatus characterized by having a detecting means for detecting a sight line direction are.
JP12109491A 1991-05-27 1991-05-27 Eye gaze detection device Expired - Fee Related JP3219425B2 (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP12109491A JP3219425B2 (en) 1991-05-27 1991-05-27 Eye gaze detection device
US08/387,614 US5848175A (en) 1991-05-27 1995-02-13 View point detecting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP12109491A JP3219425B2 (en) 1991-05-27 1991-05-27 Eye gaze detection device

Publications (2)

Publication Number Publication Date
JPH04347130A JPH04347130A (en) 1992-12-02
JP3219425B2 true JP3219425B2 (en) 2001-10-15

Family

ID=14802732

Family Applications (1)

Application Number Title Priority Date Filing Date
JP12109491A Expired - Fee Related JP3219425B2 (en) 1991-05-27 1991-05-27 Eye gaze detection device

Country Status (1)

Country Link
JP (1) JP3219425B2 (en)

Also Published As

Publication number Publication date
JPH04347130A (en) 1992-12-02

Similar Documents

Publication Publication Date Title
JP3166179B2 (en) Eye gaze detection device
JP2803222B2 (en) Eye gaze detection device
US5652641A (en) Method of detecting eye component information for determining sight axis direction, and sight axis direction detection apparatus
JP3352238B2 (en) Eye gaze detection device and camera
JPH06148513A (en) Line-of-sight detector
US6035054A (en) Visual axis detection apparatus and optical apparatus provided therewith
JP3219426B2 (en) Eye gaze detection device
JP2676870B2 (en) Optical device having gazing point detection means
JP3143490B2 (en) Eye gaze detection device
JP3143491B2 (en) Eye gaze detection device
JP3313803B2 (en) Eye gaze detection device
JP3219425B2 (en) Eye gaze detection device
JPH02264632A (en) Sight line detector
JP3184553B2 (en) Eye gaze detection device
JPH04347127A (en) Visual axis detector
US5706071A (en) Line of sight detection apparatus and an equipment having the line of sight detection apparatus
JP3192503B2 (en) Eye gaze detection device
US5848175A (en) View point detecting device
JPH04347128A (en) line of sight detection device
JPH06138373A (en) Eye gaze detector
JP3296578B2 (en) camera
JP3179182B2 (en) Eye gaze detection device
JPH0918760A (en) Line-of-sight detection device and imaging device used for the same
JPH06138370A (en) Sight line detecting device
JPH07148114A (en) Eye-gaze detecting device and eye-gaze detecting method

Legal Events

Date Code Title Description
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20010724

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

Free format text: PAYMENT UNTIL: 20070810

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20080810

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20080810

Year of fee payment: 7

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

Free format text: PAYMENT UNTIL: 20090810

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20090810

Year of fee payment: 8

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

Free format text: PAYMENT UNTIL: 20100810

Year of fee payment: 9

LAPS Cancellation because of no payment of annual fees