JP3500891B2 - Dozing state detection device - Google Patents

Dozing state detection device

Info

Publication number
JP3500891B2
JP3500891B2 JP05563497A JP5563497A JP3500891B2 JP 3500891 B2 JP3500891 B2 JP 3500891B2 JP 05563497 A JP05563497 A JP 05563497A JP 5563497 A JP5563497 A JP 5563497A JP 3500891 B2 JP3500891 B2 JP 3500891B2
Authority
JP
Japan
Prior art keywords
differential value
point
value
positive
eye
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
JP05563497A
Other languages
Japanese (ja)
Other versions
JPH10236181A (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.)
Nissan Motor Co Ltd
Original Assignee
Nissan Motor Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Nissan Motor Co Ltd filed Critical Nissan Motor Co Ltd
Priority to JP05563497A priority Critical patent/JP3500891B2/en
Publication of JPH10236181A publication Critical patent/JPH10236181A/en
Application granted granted Critical
Publication of JP3500891B2 publication Critical patent/JP3500891B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Measurement Of The Respiration, Hearing Ability, Form, And Blood Characteristics Of Living Organisms (AREA)
  • Auxiliary Drives, Propulsion Controls, And Safety Devices (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、顔の画像データを
演算処理して、車両の運転者、船舶の操船者、プラント
等のオペレータ等の居眠り状態を検出する居眠り状態検
出装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a doze state detecting device for calculating the doze state of a driver of a vehicle, a ship operator, an operator of a plant or the like by arithmetically processing face image data.

【0002】[0002]

【従来の技術】従来の画像処理による居眠り状態検出装
置としては、例えば、特開平5−346094号公報に
記載されたようなものがある。これは、運転者の顔面を
撮影した濃淡画像データを二値化処理し、得られた二値
化画像において濃度投影、ラベリング処理等を行なうこ
とで眼の位置を検出して、開閉眼の状態変化から居眠り
状態を検出するようにしている。
2. Description of the Related Art As a conventional doze state detecting device using image processing, there is, for example, one disclosed in Japanese Patent Laid-Open No. 346094/1993. This is to binarize the grayscale image data of the driver's face and perform density projection and labeling on the resulting binarized image to detect the position of the eye and open / close the eye. The doze state is detected from the change.

【0003】このほか、濃淡画像を処理対象としたもの
で、居眠り状態検出にも用いることができる車両運転者
の眼の位置検出装置としては、特願平8−101904
号に記載されたようなものを本出願人は提案している。
ここでは、被撮影者の顔面画像を用いて顔の縦方向の画
素列に沿って画素の濃度を検出し、画素列における濃度
の局所的な高まり毎に1個ずつの画素を定めて抽出ポイ
ントとし、隣接画素列の画素列方向に近接した抽出ポイ
ントを連結して顔の横方向に伸びる曲線群から眼の位置
検出することによって、居眠り状態を検出するようにし
ている。
In addition, Japanese Patent Application No. 8-101904 discloses a device for detecting the position of the eyes of a vehicle driver that can process grayscale images and can also be used for drowsiness detection.
Applicants have proposed such as described in the publication.
Here, the density of pixels is detected along the pixel row in the vertical direction of the face using the face image of the person to be photographed, and one pixel is determined for each local increase in the density in the pixel row, and the extraction point is determined. Then, the dozing state is detected by connecting the extraction points adjacent to each other in the pixel row direction of the adjacent pixel rows and detecting the position of the eye from the group of curves extending in the lateral direction of the face.

【0004】[0004]

【発明が解決しようとする課題】しかしながら、上記前
者のものにあっては、図36に示すように例えば眼に髪
の毛が重なってしまった場合、髪の毛は、ほぼ眼と同一
階調の濃度値であるため、2値化処理後の画像において
眼は単独したラベルにならないので、眼の位置、眼の開
閉状態を認識できなくなるという問題があった。
However, in the former case, as shown in FIG. 36, for example, when the hair overlaps the eye, the hair has a density value of the same gradation as that of the eye. Therefore, in the image after the binarization processing, the eye is not a single label, and there is a problem that the position of the eye and the open / closed state of the eye cannot be recognized.

【0005】またこれを解決すべく提案した後者の場合
は、コスト的にカメラの画角を固定せざるを得ない。こ
の場合、個人差により図37に示すように画角に対して
顔の位置が極端に低くなることがある。このような場
合、例えば画素列Xa上の平均濃度値は図38の(a)
に示すようになり、抽出対象としたい眉や眼の他に髪の
毛の部分を含むことになる。したがってその微分値分布
図(b)に基づいて眉と眼のポイントp2、p3を抽出
するときに、その抽出条件である所定値以下の微分値ピ
ークq2、q3を持つのと同様に髪の毛のポイントp1
がq1を持ち、抽出される。A1、A2、A3は抽出ポ
イントのY座標を表わす。このように抽出対象として考
えている眼、眉、鼻、口などに加え、髪の毛の部分まで
も抽出対象となることで、眼の選択精度が低下するとい
う問題点があった。本発明は、上記従来の問題に鑑み、
運転者の髪型や顔の位置の違いなどに対応でき、眼の位
置、開閉状態をより一層確実に検出し居眠り状態検出を
常に安定して行なうことができる居眠り状態検出装置を
提供することを目的としている。
In the latter case proposed to solve this problem, the angle of view of the camera must be fixed in terms of cost. In this case, the position of the face may become extremely low with respect to the angle of view due to individual differences, as shown in FIG. In such a case, for example, the average density value on the pixel row Xa is (a) in FIG.
In addition to the eyebrows and eyes to be extracted, the hair portion is included. Therefore, when the eyebrow and eye points p2 and p3 are extracted based on the differential value distribution diagram (b), the points of the hair are similar to those having the differential value peaks q2 and q3 which are equal to or less than the predetermined value which is the extraction condition. p1
Has q1 and is extracted. A1, A2 and A3 represent the Y coordinates of the extraction points. As described above, in addition to the eyes, eyebrows, nose, mouth, and the like that are considered as extraction targets, even hair portions are also extraction targets, and thus there is a problem that the accuracy of eye selection decreases. The present invention, in view of the above conventional problems,
An object of the present invention is to provide a snooze state detection device capable of responding to differences in the hairstyle and face position of a driver, etc., and more reliably detecting eye position and open / closed state, and capable of constantly performing snooze state detection. I am trying.

【0006】[0006]

【課題を解決するための手段】このため、請求項1記載
の発明は、図1に示すように、顔の画像データを処理し
て居眠り状態を検出する居眠り状態検出装置において、
顔画像を入力する画像入力手段1と、顔の縦方向の画素
列に沿って画素の濃度を検出する濃度検出手段2と、前
記画素列に沿う濃度の片方向のピークの、その前後の濃
度微分値が所定値を越える画素を特定して第1のポイン
トを抽出する第1のポイント抽出手段3と、隣接する画
素列の画素列方向に近接した前記第1のポイントを連結
して顔の横方向に伸びる曲線群を抽出する曲線群の抽出
手段4と、前記曲線群から眼の曲線を特定して眼の位置
を検出する眼の位置検出手段5と、眼を含む所定領域内
で縦方向の画素列に沿う濃度の片方向のピークの、その
前後の濃度微分値が所定値を越える画素を特定して第2
のポイントを抽出する第2のポイント抽出手段6と、隣
接する画素列の画素列方向に近接した第2のポイントの
有無による顔の横方向への連続性を判定する連続性判定
手段7と、連続した第2のポイントの抽出データを基に
眼の開度を検出する眼の開度検出手段8と、眼の開度に
基づき眼の開閉状態の変化から覚醒度を判定する覚醒度
判定手段9とを有するものとした。
Therefore, according to the invention of claim 1, as shown in FIG. 1, in a doze state detecting device for processing face image data to detect a doze state,
Image input means 1 for inputting a face image, density detecting means 2 for detecting the density of pixels along a vertical pixel row of the face, and density before and after a unidirectional peak of density along the pixel row. A first point extracting means 3 for identifying a pixel having a differential value exceeding a predetermined value to extract a first point, and the first point adjacent in the pixel row direction of an adjacent pixel row are connected to connect the face A curve group extracting means 4 for extracting a laterally extending curve group, an eye position detecting means 5 for specifying an eye curve from the curve group to detect an eye position, and a vertical direction within a predetermined region including the eye. A pixel whose density differential value before and after the unidirectional peak of the density along the pixel row in the predetermined direction exceeds a predetermined value is specified.
Second point extracting means 6 for extracting the points, and continuity determining means 7 for determining the lateral continuity of the face depending on the presence / absence of the second points adjacent to each other in the pixel row direction of the adjacent pixel rows, Eye opening degree detection means 8 for detecting the eye opening degree based on the continuous extracted data of the second point, and awakening degree determination means for determining the awakening degree from the change in the open / closed state of the eye based on the eye opening degree. 9 and 9.

【0007】請求項2記載の発明は、前記第1のポイン
ト抽出手段3あるいは第2のポイント抽出手段6が、前
記画素列に沿う走査で、所定値を越える濃度の最小微分
値を負微分値区間から求めるとともに、微分値が負から
正に反転する画素を記憶し、続いた正微分値区間から前
記とは別の所定値を越える最大微分値を検出することに
よって、前記微分値が負から正に反転する画素を抽出し
第1あるいは第2のポイントとするものとした。
According to a second aspect of the present invention, the first point extracting means 3 or the second point extracting means 6 scans along the pixel row to determine a minimum differential value of a density exceeding a predetermined value as a negative differential value. The differential value is calculated from the negative value, and the pixel whose differential value is inverted from negative to positive value is stored, and the maximum differential value exceeding a predetermined value different from the above is detected from the subsequent positive differential value interval. Pixels that are positively inverted are extracted and set as the first or second points.

【0008】請求項3記載の発明するは、前記第1のポ
イント抽出手段3あるいは第2のポイント抽出手段6
が、前記画素列に沿う走査で、所定値を越える濃度の最
小微分値を負微分値区間から求めるとともに、微分値が
負から正に反転する画素を記憶し、所定区間内で前記と
は別の所定値を越える正微分値を検出することによっ
て、前記微分値が負から正に反転する画素を抽出し第1
あるいは第2のポイントとするものとした。
According to a third aspect of the present invention, the first point extracting means 3 or the second point extracting means 6 is provided.
However, in scanning along the pixel row, the minimum differential value of the density exceeding a predetermined value is obtained from the negative differential value section, and the pixel whose differential value is inverted from negative to positive is stored. By detecting a positive differential value that exceeds a predetermined value of, a pixel in which the differential value is inverted from negative to positive is extracted, and
Alternatively, the second point is set.

【0009】また、前記第1のポイント抽出手段3ある
いは第2のポイント抽出手段6において、前記最小微分
値と前記正微分値の大きさ判定を行なう所定値を越える
最初の正微分値の画素間の距離が判定値以上の場合に
は、微分値が負から正に反転する画素を第1あるいは第
2のポイントの抽出から除外する処理を施すことが可能
である。
Further, in the first point extracting means 3 or the second point extracting means 6, between pixels having a first positive differential value exceeding a predetermined value for judging the magnitude of the minimum differential value and the positive differential value. When the distance is greater than or equal to the determination value, it is possible to perform the process of excluding the pixel whose differential value is inverted from negative to positive from the extraction of the first or second point.

【0010】さらに、前記第1のポイント抽出手段3あ
るいは第2のポイント抽出手段6において、前記正微分
値の大きさ判定を行なう所定値を越える最初の正微分値
が検出される前に、前記最小微分値よりさらに小さい値
を有する他の最小微分値がある場合には、前記微分値が
負から正に反転する画素を第1あるいは第2のポイント
の抽出から除外する処理を施すことも可能である。
Further, before the first positive differential value exceeding a predetermined value for judging the magnitude of the positive differential value is detected in the first point extracting means 3 or the second point extracting means 6, When there is another minimum differential value having a value smaller than the minimum differential value, it is possible to perform a process of excluding the pixel whose differential value is inverted from negative to positive from the extraction of the first or second point. Is.

【0011】なお、前記微分値が負から正に反転する画
素に続いて、濃度変化のない0微分値の画素が所定数以
上に存在する場合には、前記微分値が負から正に反転す
る画素を第1あるいは第2のポイントの抽出から除外す
るのが望ましい。前記最大微分値あるいは正微分値の大
きさ判定を行なう所定値は前記最小微分値に応じて大き
さが変化するのが望ましい。
When there are a predetermined number or more of 0 differential value pixels without density change following the pixel whose differential value is inverted from negative to positive, the differential value is inverted from negative to positive. It is desirable to exclude pixels from the extraction of the first or second points. It is desirable that the predetermined value for determining the magnitude of the maximum differential value or the positive differential value be changed in magnitude according to the minimum differential value.

【0012】[0012]

【作用】請求項1記載の発明では、まず、画像入力手段
1で入力された顔画像について、濃度検出手段2により
縦方向の画素列に沿って画素の濃度が検出される。そし
て、第1のポイント抽出手段3が、前後に所定値以上の
微分値を有する濃度のピークの画素を抽出して第1のポ
イントとする。曲線群の抽出手段4が第1のポイントを
隣接する画素列間で近接したものを繋げ、顔の横方向に
伸びる曲線群を抽出する。個々の曲線は、画像の明かる
い部分を横方向に横断する暗い部分を代表しており、
眼、眉、口等を表わす。眼の位置検出手段5は、たとえ
ば眼は顔の両側にあり、眼と眉とは上下に近い位置にあ
るという特徴を利用して、上記の曲線群から眼を表わす
曲線を識別して眼の位置を検出する。
According to the first aspect of the invention, first, with respect to the face image input by the image inputting means 1, the density detecting means 2 detects the density of pixels along the vertical pixel row. Then, the first point extracting means 3 extracts the pixel of the peak of the density having the differential value equal to or more than the predetermined value before and after, and sets it as the first point. The curve group extracting means 4 connects the first points that are adjacent to each other between adjacent pixel rows, and extracts a curve group extending in the lateral direction of the face. The individual curves represent the dark areas transversely across the lighter areas of the image,
Represents eyes, eyebrows, mouth, etc. The eye position detecting means 5 identifies the curve representing the eye from the above curve group by utilizing the feature that the eyes are on both sides of the face and the eyes and the eyebrows are close to each other in the vertical direction. Detect the position.

【0013】次いで、第2のポイント抽出手段6におい
て、眼の位置を含む所定領域を設定し、その中で第1の
ポイントと同様に第2のポイントを抽出する。第2のポ
イントが隣接する画素列間で近接して顔の横方向へ連続
することを連続性判定手段7で確認したあと、第2のポ
イントの抽出データを基に開度検出手段8が眼の開度を
検出する。そして、覚醒度判定手段9において、眼の開
度に基づいて眼の開閉状態の変化から覚醒度を判定す
る。
Then, the second point extracting means 6 sets a predetermined area including the position of the eye, and extracts the second point in the predetermined area in the same manner as the first point. After confirming by the continuity determination means 7 that the second points are adjacent to each other and are continuous in the lateral direction of the face, the opening degree detection means 8 detects the eye based on the extracted data of the second points. The opening degree of is detected. Then, the awakening degree determination unit 9 determines the awakening degree from the change in the open / closed state of the eye based on the opening degree of the eye.

【0014】顔の横方向に伸びる曲線群を抽出したう
え、顔における眼と眉など他の部分との一般的な位置関
係の特徴を利用して、眼を表わす曲線を識別して眼の位
置を検出するので、被撮影者の体格や姿勢の違いなどが
あっても容易確実に眼の位置を検出することができる。
After extracting a group of curves extending in the lateral direction of the face, the curve representing the eyes is identified and the position of the eyes is identified by utilizing the characteristic of the general positional relationship between the eyes and other parts of the face such as the eyebrows. Therefore, the position of the eye can be detected easily and surely even if there is a difference in the physique or posture of the person to be photographed.

【0015】請求項2記載の発明では、微分値が負から
正に反転する画素は濃度のピークに対応しており、前記
第1のポイントあるいは第2のポイントとして抽出する
際、微分値が反転する前後の負、正微分値区間から最
小、最大微分値を求め、所定値による強度判定を行なう
ので、抽出されたポイントは境界のはっきりする暗い部
分の代表となり、眉、眼、口などに対応する。しわ、
影、等境界のはっきりしない暗い部分はピーク前後の微
分値強度が小さいので抽出対象から振り落とされ、質の
高い抽出となる。また、抽出ポイントは濃度のピークを
代表しており眼、眉、口のほぼ中心位置に対応する。
According to the second aspect of the invention, the pixel whose differential value is inverted from negative to positive corresponds to the density peak, and the differential value is inverted when the pixel is extracted as the first point or the second point. Since the minimum and maximum differential values are calculated from the negative and positive differential value sections before and after, and the strength is determined by a predetermined value, the extracted points are representative of dark areas with clear boundaries and correspond to eyebrows, eyes, mouths, etc. To do. Wrinkles
Dark areas where shadows and equal boundaries are not clear have small differential value strengths before and after the peak, and are therefore dropped from the extraction target, resulting in high quality extraction. The extraction point represents the peak of the density, and corresponds to the approximate center position of the eyes, eyebrows, and mouth.

【0016】請求項3記載の発明では、負微分値区間か
ら所定値を越える最小微分値を検出し、微分値が負から
正に反転する画素を前記第1のポイントあるいは第2の
ポイントとして抽出する際、所定区間内で所定値を越え
る正微分値を用いて強度判定を行なうので、最大値の求
めが不要となり、濃度値分布が歪んだり、変形したりし
た場合でもポイント抽出が可能となる。
According to the third aspect of the invention, the minimum differential value exceeding a predetermined value is detected from the negative differential value section, and the pixel whose differential value is inverted from negative to positive is extracted as the first point or the second point. In doing so, since the strength determination is performed using a positive differential value that exceeds a predetermined value within a predetermined section, it is not necessary to find the maximum value, and points can be extracted even if the density value distribution is distorted or deformed. .

【0017】また、前記最小微分値と前記正微分値の大
きさ判定を行なう所定値を越える最初の正微分値の画素
間の距離が判定値以上の場合には、微分値が負から正に
反転する画素を第1あるいは第2のポイントの抽出から
除外するようにすると、微分値の分布曲線の変形による
誤抽出が防止される。
When the distance between the pixels of the first positive differential value exceeding the predetermined value for judging the magnitude of the minimum differential value and the positive differential value is equal to or larger than the judgment value, the differential value changes from negative to positive. By excluding the inverted pixel from the extraction of the first or second point, erroneous extraction due to modification of the distribution curve of the differential value is prevented.

【0018】さらに、前記第1のポイント抽出手段ある
いは第2のポイント抽出手段において、前記正微分値の
大きさ判定を行なう所定値を越える最初の正微分値が検
出される前に、前記最小微分値よりさらに小さい値を有
する他の最小微分値がある場合には、前記微分値が負か
ら正に反転する画素を第1あるいは第2のポイントの抽
出から除外するようにすると、微分値の分布曲線の変形
による誤抽出が防止される。
Further, before the first positive differential value exceeding a predetermined value for judging the magnitude of the positive differential value is detected in the first point extracting means or the second point extracting means, the minimum differential value is detected. When there is another minimum differential value having a value smaller than the value, the pixel whose differential value is inverted from negative to positive is excluded from the extraction of the first or second point, and the distribution of the differential value is obtained. Erroneous extraction due to curve deformation is prevented.

【0019】なお、前記微分値が負から正に反転する画
素に続いて、濃度変化のない画素が所定数以上に存在す
る場合には、前記微分値が負から正に反転する画素を第
1あるいは第2のポイントの抽出から除外するようにす
ると、髪の毛などによる誤抽出が防止される。前記最大
微分値あるいは正微分値の大きさ判定を行なう所定値を
前記最小微分値に応じて大きさを変化させるようにすれ
ば、検出したい対象の濃度変化特徴に合わせポイントを
さらに高い精度で抽出することがである。
If a predetermined number or more of pixels having no change in density exist following the pixel whose differential value is inverted from negative to positive, the pixel whose differential value is inverted from negative to positive is the first pixel. Alternatively, by excluding the second point from extraction, erroneous extraction due to hair or the like is prevented. If the predetermined value for determining the magnitude of the maximum differential value or the positive differential value is changed in size according to the minimum differential value, the points are extracted with higher accuracy according to the density change characteristics of the target to be detected. There is something to do.

【0020】[0020]

【発明の実施の形態】次に、本発明を自動車の運転者の
居眠り状態警報に適用した実施例について図面を参照し
て説明する。図2は、実施例の構成を示す図である。自
動車のインストルメントパネルに、運転者の顔部分を正
面から撮影するTVカメラ21が設置されている。TV
カメラ21で撮影された入力画像は、横(X)方向51
2画素、縦(Y)方向480画素で構成されており、A
/D変換器22で画素毎のアナログ電圧を例えば256
段階のデジタル値に変換されて、画像メモリ23に格納
される。
BEST MODE FOR CARRYING OUT THE INVENTION Next, an embodiment in which the present invention is applied to a dozing state alarm for a driver of an automobile will be described with reference to the drawings. FIG. 2 is a diagram showing the configuration of the embodiment. On an instrument panel of a car, a TV camera 21 is installed to photograph the driver's face from the front. TV
The input image captured by the camera 21 is 51 in the horizontal (X) direction.
It consists of 2 pixels and 480 pixels in the vertical (Y) direction.
The analog voltage of each pixel is, for example, 256 by the / D converter 22
The converted digital value is stored in the image memory 23.

【0021】画像メモリ23には、画像データ演算回路
24が接続されている。画像データ演算回路24は、画
像メモリ23に格納された入力画像データに基づいて顔
の縦方向の画素列の濃度を検出し、画素列における濃度
の局所的な高まりとその濃度変化状態により後述する第
1のポイントを抽出し、第1のポイントの位置を示す二
次元データを内蔵のポイントメモリに記憶する。そし
て、各画素列について第1のポイントを抽出した後、隣
接する画素列の画素列方向に近接した第1のポイントを
つなげて顔の横方向への曲線群を抽出する。
An image data arithmetic circuit 24 is connected to the image memory 23. The image data calculation circuit 24 detects the density of the pixel row in the vertical direction of the face based on the input image data stored in the image memory 23, and will be described later depending on the local increase of the density in the pixel row and the density change state. The first point is extracted, and the two-dimensional data indicating the position of the first point is stored in the built-in point memory. Then, after extracting the first point for each pixel row, the first points that are adjacent to each other in the pixel row direction of the adjacent pixel rows are connected to each other to extract a curve group in the lateral direction of the face.

【0022】画像データ演算回路24には、眼の位置検
出回路25が接続され、続いて開閉眼検出回路26が接
続されている。眼の位置検出回路25は、曲線群から眼
の選択を行うことで眼の位置を検出する。開閉眼検出回
路26は、位置検出された眼を含む所定領域内で縦方向
への濃度の高まりとその濃度の変化状態により後述する
第2のポイントを抽出し、第2のポイントの位置を示す
二次元データを内蔵のポイントメモリに記憶する。そし
て、顔の横方向への第2のポイントの連続性を判定し
て、連続データ内から眼の開度値を検出する。
An eye position detection circuit 25 is connected to the image data arithmetic circuit 24, and an open / closed eye detection circuit 26 is subsequently connected. The eye position detection circuit 25 detects the eye position by selecting an eye from the group of curves. The open / closed eye detection circuit 26 extracts a second point, which will be described later, according to the increase in the density in the vertical direction and the changing state of the density within a predetermined area including the position-detected eye, and indicates the position of the second point. Two-dimensional data is stored in the built-in point memory. Then, the continuity of the second point in the lateral direction of the face is determined, and the eye opening value is detected from the continuous data.

【0023】開閉眼検出回路26には覚醒度判定回路2
7が接続され、覚醒度判定回路27は開閉眼検出回路2
6より送出される開閉眼の検出結果から覚醒度を判定す
る。この覚醒度判定回路27には警報装置28が接続さ
れ、覚醒度が低下した居眠り状態の判定信号を受けて警
報を発生する。
The open / closed eye detection circuit 26 includes an awakening degree determination circuit 2
7 is connected, and the awakening degree determination circuit 27 is the open / closed eye detection circuit 2
The degree of awakening is determined from the detection result of the open / closed eyes sent from S6. An alarm device 28 is connected to the awakening degree determination circuit 27, and an alarm is generated upon receiving a determination signal of a dozing state in which the awakening degree is lowered.

【0024】次に、上記構成における制御動作の流れを
図3のフローチャートにより説明する。ステップ31で
は、TVカメラ21によって運転者の顔部分が撮影され
る。ステップ32では、A/D変換器22によって画素
の濃度がデジタル値に変換された上で、画像メモリ23
に1フレームの画像に対応する画像データが格納され
る。
Next, the flow of control operation in the above configuration will be described with reference to the flowchart of FIG. In step 31, the TV camera 21 photographs the face portion of the driver. In step 32, the pixel density is converted into a digital value by the A / D converter 22, and then the image memory 23
The image data corresponding to the image of one frame is stored in.

【0025】ステップ33では、画像データ演算回路2
4において、眼の存在領域が設定されているかどうかを
チェックし、設定されていればステップ36へ進み、設
定されていなければステップ34へ進む。ここで、眼の
存在領域とは、後に図13により説明するが、眼を含む
所定領域100を示し、眼の開度検出の処理を行う領域
である。また、この眼を含む所定領域100は、眼の追
跡領域としても用いられる。ステップ34では、眼の位
置検出回路25で、眼の位置検出を行う。眼の位置検出
の詳細について、図4のフローチャート及び図5〜図9
の説明図により後述する。
In step 33, the image data arithmetic circuit 2
In step 4, it is checked whether or not the eye existence region is set. If it is set, the process proceeds to step 36, and if it is not set, the process proceeds to step 34. Here, the eye presence region, which will be described later with reference to FIG. 13, indicates a predetermined region 100 including the eye, and is a region where the eye opening detection process is performed. The predetermined area 100 including the eyes is also used as an eye tracking area. In step 34, the eye position detection circuit 25 detects the eye position. Regarding the details of the eye position detection, the flowchart of FIG. 4 and FIGS.
Will be described later with reference to FIG.

【0026】ステップ35では、眼を含む所定領域10
0の横方向(X方向)の幅と縦方向(Y方向)の幅を定
め、眼の存在領域(眼を含む所定領域)100の設定を
行いステップ36に進む。ステップ36では、開閉眼検
出回路26において、眼の開度検出を行う。眼の開度検
出の詳細については、図10のフローチャート及び図1
1、図12の説明図により後述する。
In step 35, the predetermined area 10 including the eyes
The width of 0 in the horizontal direction (X direction) and the width of 0 in the vertical direction (Y direction) are set, and the existence region of the eye (predetermined region including the eye) 100 is set, and the process proceeds to step 36. In step 36, the opening / closing eye detection circuit 26 detects the degree of eye opening. For details of the detection of the degree of eye opening, the flowchart of FIG. 10 and FIG.
1 and FIG. 12 will be described later.

【0027】ステップ37では、ステップ36で検出さ
れた眼の開度値より眼が正しく追跡されているか否かを
チェックし、正しく追跡されていればステップ38へ進
み、正しく追跡されていないと判断されたときはステッ
プ311へ進む。ステップ38では、眼の開度値により
開眼状態か閉眼状態かの判定を行う。続いてステップ3
9では、眼の追跡、つまり眼の存在領域の変更を行う。
眼の追跡の詳細については、図13により後述する。
In step 37, it is checked from the eye opening value detected in step 36 whether or not the eye is correctly tracked. If the eye is correctly tracked, the process proceeds to step 38 and it is determined that the eye is not correctly tracked. If so, the process proceeds to step 311. In step 38, it is determined whether the eye is open or closed based on the eye opening value. Then step 3
In 9, the eye tracking, that is, the area where the eye is present is changed.
Details of eye tracking will be described later with reference to FIG.

【0028】ステップ310では、覚醒度の判定を覚醒
度判定回路27により行い、覚醒状態であればステップ
31に戻り、次のフレームの処理に移る。覚醒状態でな
ければ、ステップ312に進み、運転者を覚醒させるた
め警報装置28を動作させて居眠り警報を発生させ、そ
の後ステップ31に戻る。ステップ311では、眼の開
度値と眼の存在領域をクリアして、ステップ31に戻
り、次のフレームの処理に移る。なお、上記のうちステ
ップ31〜32が本発明における画像入力手段を構成し
ている。
At step 310, the awakening degree is determined by the awakening degree determination circuit 27. If the vehicle is in the awake state, the process returns to step 31 to proceed to the processing of the next frame. If the vehicle is not in the awake state, the process proceeds to step 312, the alarm device 28 is operated to wake up the driver to generate a drowsiness alarm, and then the process returns to step 31. In step 311, the eye opening value and the eye existence region are cleared, the process returns to step 31, and the process for the next frame starts. It should be noted that steps 31 to 32 of the above constitute the image inputting means in the present invention.

【0029】図4は、ステップ34における眼の位置検
出の処理動作の詳細を示す。ここでは、図5に示すよう
にY軸方向に480画素のライン(画素列)上のデータ
に対して、それぞれの画素列の濃度値データを演算処理
して第1のポイントとなる画素(Y座標)を特定する。
すなわち、画素列上の濃度値の大きな変化を求め、その
局所的なピークを第1のポイントとする。このようなポ
イント抽出の処理を行い、1ライン終了すると、一つ隣
のラインの処理に移行する。そこでまず、ステップ41
では、所定方向(Y軸方向)の全ラインについてポイン
ト抽出が終了したかどうかをチェックする。
FIG. 4 shows details of the processing operation of eye position detection in step 34. Here, as shown in FIG. 5, with respect to the data on the line (pixel column) of 480 pixels in the Y-axis direction, the density value data of each pixel column is arithmetically processed, and the pixel (Y Coordinates).
That is, a large change in the density value on the pixel array is obtained, and its local peak is set as the first point. When the point extraction process is performed and one line is completed, the process moves to the next adjacent line. Therefore, first, step 41
Then, it is checked whether or not the point extraction is completed for all lines in the predetermined direction (Y-axis direction).

【0030】ステップ41で全ラインの第1のポイント
抽出が終了していないと判断されたときには、ステップ
42に進む。ステップ42では、所定方向の1ラインに
おいて濃度値の相加平均演算を行い、画素列上の相加平
均濃度値を求める。この処理は、画像デ−タ撮影時の濃
度値の変化の小さいバラツキを無くして濃度値の大局的
な変化を捉えることを目的としている。例えば、図5に
示す画素列Xaからは図6の(a)に示すような相加平
均濃度値が算出される。
If it is determined in step 41 that the first point extraction has not been completed for all lines, the process proceeds to step 42. In step 42, the arithmetic mean of the density values is calculated in one line in the predetermined direction to obtain the arithmetic mean density value on the pixel row. The purpose of this processing is to eliminate the small variation in the change in the density value at the time of photographing the image data and to catch the global change in the density value. For example, the arithmetic average density value as shown in FIG. 6A is calculated from the pixel row Xa shown in FIG.

【0031】ステップ43では、ステップ42で算出し
た所定方向の1ライン相加平均濃度値を微分する。図6
の(a)に示す相加平均濃度値からは同図の(b)に示
す微分値(微分データ)が得られる。次のステップ44
では、ステップ43の演算結果である図6の(b)の微
分値により、同図の(a)における相加平均濃度が下向
きに凸となる暗さのピークに対応するポイント(Y座
標)の抽出を行なう。微分値が負から正に反転するY座
標は、暗さのピークに対応しており、眼、眉、口などの
位置を示す座標となる。この濃度のピークポイントを、
その前後の濃度値の変化すなわち微分値が所定値以下あ
るいは以上であるか否かの判定によって第1のポイント
として抽出する。このポイントの抽出方法は、後に詳細
に説明する。ステップ45では、第1のポイントを抽出
するポイント抽出の処理が1ライン終了すると、次のラ
インの処理に切り換え、ステップ41へ戻り、処理を繰
り返す。
In step 43, the one-line arithmetic mean density value in the predetermined direction calculated in step 42 is differentiated. Figure 6
From the arithmetic mean density value shown in (a) of FIG. 11, the differential value (differential data) shown in (b) of the same figure is obtained. Next step 44
Then, according to the differential value of (b) of FIG. 6 which is the calculation result of step 43, the point (Y coordinate) corresponding to the peak of darkness in which the arithmetic average density in (a) of FIG. Extract. The Y coordinate where the differential value is inverted from negative to positive corresponds to the peak of darkness, and is the coordinate indicating the position of the eyes, eyebrows, mouth, and the like. The peak point of this concentration is
The change in the density value before and after that, that is, the differential value is extracted as the first point by determining whether it is less than or equal to a predetermined value or more. The method of extracting this point will be described in detail later. In step 45, when the point extraction process for extracting the first point is completed for one line, the process is switched to the process for the next line, the process returns to step 41, and the process is repeated.

【0032】ステップ41で全ラインのポイント抽出が
終了したと判断されたときには、図7に示すような眼、
眉、口などを代表する第1のポイントが抽出されている
ことになる。つまり、図7のラインXc上では、2つの
第1のポイントA1、A2が抽出されており、ラインX
d上では、A1、A2、A3、A4の4つの第1のポイ
ントが抽出されている。ステップ42が本発明の濃度検
出手段を構成するとともに、このステップ42およびス
テップ43、44が第1のポイント抽出手段を構成して
いる。
When it is determined in step 41 that the points of all the lines have been extracted, the eyes as shown in FIG.
This means that the first points representing the eyebrows, the mouth, etc. have been extracted. That is, the two first points A1 and A2 are extracted on the line Xc in FIG.
On d, the four first points A1, A2, A3, and A4 are extracted. The step 42 constitutes the concentration detecting means of the present invention, and the step 42 and the steps 43 and 44 constitute the first point extracting means.

【0033】ステップ41で全ラインに関して第1のポ
イントの抽出が終了したと判断されると、ステップ46
において、隣り合う各ラインの第1のポイントのY座標
値A1、A2、A3、・・・・を比較する。そして、Y座標
値の差が所定値(例えば10画素)以内の場合には、X
軸方向につなげてグループ化し、連続データのグルー
プ番号、連続開始ライン番号、連続データ数を記憶
する。
When it is judged in step 41 that the extraction of the first point has been completed for all lines, step 46
In, the Y coordinate values A1, A2, A3, ... Of the first points of adjacent lines are compared. When the difference in Y coordinate value is within a predetermined value (for example, 10 pixels), X
Grouping is performed by connecting in the axial direction, and the group number of continuous data, the continuous start line number, and the number of continuous data are stored.

【0034】ステップ46の具体的な処理内容を図8を
用いて説明する。ここでは、簡単にするためライン(画
素列)を11本として説明する。ライン1〜11でそれ
ぞれ抽出された第1のポイントは、ポイントごとに、
グループ番号(G)、Y座標値(Y値)、連続個数
(N)を付与されて連結データを形成している。図8に
示される34個のポイントは、10個のグループにまと
められている。
The specific processing contents of step 46 will be described with reference to FIG. Here, for simplification, description will be made assuming that there are 11 lines (pixel rows). The first point extracted in each of the lines 1 to 11 is
A group number (G), a Y coordinate value (Y value), and a continuous number (N) are given to form concatenated data. The 34 points shown in FIG. 8 are grouped into 10 groups.

【0035】ライン1には、Y座標値192と229の
2つの第1のポイントがある。ライン1のY座標値が1
92のポイントの左隣にはラインが存在しないので、こ
の段階では、他の連続データはないので、連続データの
グループ番号は1となる。また、Y座標値229のポ
イントも同様の理由でこの段階での連続データは上記1
には存在しないので、連続データのグループ番号は、
次の2とする。
Line 1 has two first points with Y coordinate values 192 and 229. Y coordinate value of line 1 is 1
Since there is no line to the left of point 92, there is no other continuous data at this stage, so the group number of continuous data is 1. For the same reason, the point of Y coordinate value 229 is the same as the above 1
Group number of continuous data,
The following 2 is set.

【0036】次に、右隣のライン2には、Y座標値が1
91と224の2つの抽出ポイントがある。ライン2の
Y座標値191のポイントは、左隣のライン1のY座標
値192と10画素以内のポイントであるため、抽出ポ
イント192とつなげる抽出ポイントとして、連続デー
タのグループ番号を1とする。このとき、連続データ
数は2となる。ライン2のY座標値224のポイント
についても、同様に判定を行い、連続データのグループ
番号は2、連続データ数は2とする。
Next, in the line 2 on the right, the Y coordinate value is 1.
There are two extraction points, 91 and 224. Since the point of the Y coordinate value 191 of the line 2 is within 10 pixels from the Y coordinate value 192 of the line 1 on the left side, the group number of continuous data is set as 1 as an extraction point connected to the extraction point 192. At this time, the number of continuous data is 2. The determination is similarly performed for the point of the Y coordinate value 224 on the line 2, and the group number of continuous data is 2 and the number of continuous data is 2.

【0037】次のライン3のY座標値360のポイント
では、左隣のライン2に360とY軸方向の画素数10
以内になるポイントが存在しないので、の連続データ
のグループ番号は3となり、の連続データ数は1とな
る。なお、ステップ46における、連続開始ライン番
号は、の連続データ数が1と判断されるポイントを有
するライン番号のことをいう。従って、例えば、Y座標
値360のポイントでは3となる。ステップ46では、
このようにして各ラインのポイントの連続性の判断を全
ラインについて終了するまで行い、曲線群を得る。終了
するとステップ47へ移行する。
At the next point of the Y coordinate value 360 of the line 3, 360 is displayed on the line 2 on the left and the number of pixels in the Y axis direction is 10.
Since there is no point that falls within the range, the group number of continuous data of is 3, and the number of continuous data of is 1. The continuous start line number in step 46 is a line number having a point where the continuous data number is determined to be 1. Therefore, for example, the point of the Y coordinate value 360 is 3. In step 46,
In this way, the continuity of the points on each line is determined until all lines are completed, and a group of curves is obtained. Upon completion, the process moves to step 47.

【0038】ステップ47では、先ず、連続データグ
ループの連続データ数を評価する。本実施例では、連続
データ数が5個以上あるときに、有効な連続データグル
ープを形成しているとする。次いで、有効連続データグ
ループについて、眼の位置の候補点データを形成する。
同じ連続データグループ番号を持つポイントのY座標値
の平均を算出して、連続ポイントの平均値として記憶す
る。この値は、そのグループの代表Y座標値として用い
られる。また、連続開始ラインとその連続データ数から
連続終了ラインを求め、連続開始ラインと連続終了ラ
インのX座標値の平均値を算出して記憶する。この値
は、そのグループの代表X座標値となる。
In step 47, first, the number of continuous data in the continuous data group is evaluated. In this embodiment, it is assumed that an effective continuous data group is formed when the number of continuous data is 5 or more. Then, candidate point data of eye positions is formed for the effective continuous data group.
The average of the Y coordinate values of the points having the same continuous data group number is calculated and stored as the average value of the continuous points. This value is used as the representative Y coordinate value of the group. Further, a continuous end line is obtained from the continuous start line and the number of continuous data, and an average value of X coordinate values of the continuous start line and the continuous end line is calculated and stored. This value becomes the representative X coordinate value of the group.

【0039】ステップ48では、ステップ47で得られ
た各連続グループデータを基に、各連続グループの長
さ、および(X、Y)座標の位置関係から眼の位置を検
出する。すなわち、眼の特徴量を考えると、横に長く、
上に凸型の弓形形状であると定義づけることができる。
この定義づけに基づいて連結データの絞り込みを行う
と、眼は横に長いという条件から、ポイント連続数が5
ポイント以上続き、また、弓形形状であるという条件か
ら、連続開始ポイントと連続終了ポイントのY座標値の
差の小さい連続データを眼の候補として絞り込むことが
できる。これに基づき連続データの絞り込みを行うと、
図9の(a)に示すようなグループG1〜G6が有効デ
ータグループとして抽出される。
In step 48, the eye position is detected based on the length of each continuous group and the positional relationship of the (X, Y) coordinates based on each continuous group data obtained in step 47. That is, considering the eye features,
It can be defined as an upwardly convex arcuate shape.
When the concatenated data is narrowed down based on this definition, the number of consecutive points is 5 due to the condition that the eyes are horizontally long.
From the condition that it continues for more points and has an arcuate shape, continuous data having a small difference in Y coordinate value between the continuous start point and the continuous end point can be narrowed down as eye candidates. If you narrow down the continuous data based on this,
Groups G1 to G6 as shown in FIG. 9A are extracted as valid data groups.

【0040】次に、前述のステップ47で算出した各グ
ループのX、Y代表座標値の位置を考えると、図9の
(b)に示すように、X座標方向での接近度合いによ
り、ZONE:L、ZONE:C、ZONE:Rに分類
できる。これは、左眼と右眼とはX座標方向に大きく離
れ、すなわち、顔の左右ほぼ対称に分かれ、左眼と左眉
とはX座標方向に大きく離れることはなく、右眼と右眉
も互いにX座標方向に大きく離れることはない。また、
鼻下の影により連結データとなったものや、口の連結デ
ータは中央部付近に位置する。
Next, considering the positions of the X and Y representative coordinate values of each group calculated in step 47, as shown in FIG. 9B, ZONE: depending on the degree of approach in the X coordinate direction. It can be classified into L, ZONE: C, and ZONE: R. This is because the left eye and the right eye are largely separated from each other in the X coordinate direction, that is, the faces are substantially symmetrically divided, and the left eye and the left eyebrow are not greatly separated from each other in the X coordinate direction. They are not greatly separated from each other in the X coordinate direction. Also,
The connected data due to the shadow under the nose and the connected data for the mouth are located near the center.

【0041】このようにX座標方向の接近度合いで、更
にデータを分類し、データを絞り込んでいくことで眼の
位置を容易に検出することができる。ZONE:Lに含
まれる連結データは、左眼と左眉であり、ZONE:R
に含まれる連結データは右眼と右眉であると判定する
と、図9の(a)では、眼の位置はG3とG4であり、
その座標値も特定できる。ステップ46が発明の曲線群
の抽出手段を構成し、ステップ47、48が眼の位置検
出手段を構成している。
As described above, the eye position can be easily detected by further classifying the data according to the degree of approach in the X coordinate direction and narrowing the data. The connected data included in ZONE: L is the left eye and the left eyebrow, and ZONE: R
If it is determined that the connected data included in the right eye is the right eye and the right eyebrow, the eye positions are G3 and G4 in FIG.
The coordinate value can also be specified. The step 46 constitutes the curve group extracting means of the invention, and the steps 47 and 48 constitute the eye position detecting means.

【0042】図10は、図3に示したステップ36にお
ける眼の開度検出の処理動作の詳細を示す。ここでは、
図11の(a)に示すようにY軸方向にライン(画素
列)上のデータに対して第2のポイント抽出の処理を行
ない、1ライン終了後に、1つ隣のラインの処理に移行
する。そこでまず、ステップ51では、眼を含む所定領
域100内で、Y軸方向にライン上のデータに対して前
記眼の位置検出と同様のポイント抽出処理が終了したか
どうかをチェックする。
FIG. 10 shows details of the processing operation for eye opening detection in step 36 shown in FIG. here,
As shown in FIG. 11A, the second point extraction process is performed on the data on the line (pixel array) in the Y-axis direction, and after the completion of one line, the process proceeds to the process for the next adjacent line. . Therefore, first, in step 51, it is checked whether or not the point extraction processing similar to the eye position detection is completed for the data on the line in the Y-axis direction within the predetermined area 100 including the eyes.

【0043】ステップ51のチェックで、全ラインにつ
いての第2のポイントの抽出が終了していないと判断さ
れたときは、ステップ52へ進む。ステップ52では、
縦方向の1ラインの濃度値の相加平均演算を行う。この
処理は、画像データ撮影時の濃度値の変化の小さなばら
つきをなくすことを目的としており、濃度値の大局的な
変化を捉えるために行う。図11の(b)は、同図の
(a)の画素列Xcのラインデータの相加平均演算の処
理結果を示す。続いてステップ53では、ステップ52
で算出した相加平均値について微分演算を行う。処理結
果を図11の(c)に示す。
When it is determined in the check in step 51 that the extraction of the second points has not been completed for all lines, the process proceeds to step 52. In step 52,
The arithmetic mean of the density values of one line in the vertical direction is calculated. This process is intended to eliminate small variations in the change in the density value when the image data is captured, and is performed to capture the global change in the density value. FIG. 11B shows the processing result of the arithmetic mean calculation of the line data of the pixel column Xc of FIG. Then, in step 53, step 52
A differential operation is performed on the arithmetic mean value calculated in. The processing result is shown in FIG.

【0044】次のステップ54では、まず、ステップ5
3で算出した微分値により第2のポイント抽出を行う。
この第2のポイントの抽出方法は、前記第1のポイント
と同様に後に詳細に説明する。図11の(c)の微分値
が負から正に変化するポイントAは、同図の(b)にお
いてグラフが左向きに凸になるポイントとなり、濃度の
ピークポイントとなる。そのピークポイントの前後の微
分値が所定以下あるいは以上であるか否か、すなわち図
11の(c)のようにハッチング部分に入っているか否
かを判定することによって、濃度のピークポイントを第
2のポイントとして抽出する。そして、この条件を満足
する微分値をもつポイントB、Cを抽出する。ポイント
Bは微分値の負の最大値、ポイントCは所定値を越えた
正の微分値の点となり、第2のポイントを含む縦方向の
画素列に沿う暗部と明かるい部分の境界点を表わしてい
る。ステップ52〜54は本発明の第2のポイント抽出
手段を構成している。
In the next step 54, first, step 5
The second point is extracted based on the differential value calculated in 3.
The method of extracting the second point will be described in detail later as with the first point. The point A at which the differential value in (c) of FIG. 11 changes from negative to positive is a point at which the graph is convex to the left in (b) of FIG. 11, and is a peak point of the concentration. By determining whether or not the differential value before and after the peak point is less than or equal to a predetermined value or more, that is, whether it is in the hatched portion as shown in (c) of FIG. To extract the points. Then, points B and C having differential values satisfying this condition are extracted. Point B is a negative maximum differential value, and point C is a point having a positive differential value exceeding a predetermined value, and represents a boundary point between a dark portion and a light portion along a vertical pixel row including the second point. ing. Steps 52 to 54 constitute the second point extracting means of the present invention.

【0045】ステップ55では、第2のポイントが存在
するか否かをチェックし、存在すればステップ56へ進
み、存在しなければステップ511へ進む。ステップ5
6では、先ずライン上の第2のポイントAの前後の微分
値の最大値であるポイントBとポイントC点のY座標方
向の間隔Hを求める。すなわち第2のポイントを含む画
素列に沿う暗部の長さを求める。次いで、縦方向の画素
列においてポイントBとポイントCが連続して存在する
場合には、各ラインについてその間隔Hを比較して、最
大値を更新する。
In step 55, it is checked whether or not the second point exists, and if it exists, the process proceeds to step 56, and if it does not exist, the process proceeds to step 511. Step 5
In 6, first, the distance H in the Y coordinate direction between the point B and the point C, which is the maximum differential value before and after the second point A on the line, is obtained. That is, the length of the dark portion along the pixel row including the second point is obtained. Next, when points B and C are continuously present in the pixel row in the vertical direction, the intervals H of the lines are compared to update the maximum value.

【0046】ステップ57では、各ラインにおいての第
2のポイントが連続して存在しているときに、第2のポ
イントのX軸方向への連続数のカウントアップを行う。
ステップ58では、第2のポイントの連続数が所定値を
越えたか否かを判定し、越えていればステップ59へ進
み、越えていなければステップ510へ進む。ステップ
510では、処理を次のラインへ切り換えてステップ5
1へ戻り、切り換えたラインについて上記の処理を繰り
返す。こうして第2のポイントの連続数が所定値になる
まで同じ処理を続ける。
In step 57, when the second points on each line are continuously present, the number of consecutive second points in the X-axis direction is counted up.
In step 58, it is determined whether or not the number of consecutive second points exceeds a predetermined value. If yes, the process proceeds to step 59, and if not, the process proceeds to step 510. In step 510, the process is switched to the next line and step 5
Returning to 1, the above processing is repeated for the switched line. In this way, the same processing is continued until the number of consecutive second points reaches a predetermined value.

【0047】この処理中に、抽出ポイントの連続性が途
切れて、ステップ55のチェックで第2のポイントが存
在しないと判定されたときは、ステップ511へ移行す
る。ステップ511では、ステップ56で更新した抽出
点BとCの間隔の最大値とカウンターをクリアしてステ
ップ510へ進み、ステップ510では次のラインへの
切り換えを行いステップ51へ戻る。
During this process, if the continuity of the extraction points is interrupted and it is determined in step 55 that the second point does not exist, the process proceeds to step 511. In step 511, the maximum value of the interval between the extraction points B and C updated in step 56 and the counter are cleared, and the process proceeds to step 510. In step 510, switching to the next line is performed and the process returns to step 51.

【0048】そして、ステップ58で第2のポイントの
連続性が所定値を超えたときは、ステップ59へ移行す
る。ステップ59では、ポイントB、Cの間隔の最大値
を更新して記憶する。ステップ59ではまた、連続デー
タ内での最大値のメモリの更新と、所定値を越える他の
連続データ間での更新も行う。
When the continuity of the second point exceeds the predetermined value in step 58, the process proceeds to step 59. In step 59, the maximum value of the interval between points B and C is updated and stored. In step 59, the maximum value of the memory in the continuous data is also updated, and the update is performed between other continuous data exceeding the predetermined value.

【0049】また、請求項2で定義する微分値が負から
正に反転する画素に続く正微分値区間を設定する。後述
の図15、図20、図21の第2ポイントの抽出条件で
は、図11のXCライン上のように眼の中心に輝点が入
ったときは、濃度の暗いピーク点が2つとなり、最大微
分値が小さくなるので、ハッチング部分である所定値に
入らないことがある。このように、第2のポイントの抽
出条件を満足しないため、抽出ポイントの連続性が途切
れることがあり、眼のデータが図12の(a)に例示す
るようにL1とL2に分割されることがある。しかし、
このような場合においても、ステップ58の連続数の所
定数を眼の半分弱の長さに設定することにより、L1、
L2の両者が所定値を越える連続データとして抽出さ
れ、ステップ59のポイントBとポイントCの間隔の最
大値の更新が、H1maxとH2maxにより行われ
る。
Further, the positive differential value section following the pixel in which the differential value defined in claim 2 is inverted from negative to positive is set. Under the second point extraction conditions of FIGS. 15, 20, and 21, which will be described later, when a bright point enters the center of the eye as on the XC line of FIG. 11, there are two dark peak points of darkness, Since the maximum differential value becomes small, it may not enter the predetermined value that is the hatched portion. As described above, since the extraction condition of the second point is not satisfied, the continuity of the extraction points may be interrupted, and the eye data may be divided into L1 and L2 as illustrated in FIG. There is. But,
Even in such a case, by setting the predetermined number of consecutive numbers in step 58 to be a little less than half the length of the eye, L1,
Both L2 are extracted as continuous data exceeding a predetermined value, and the maximum value of the interval between point B and point C in step 59 is updated by H1max and H2max.

【0050】もちろん、眼球に輝点が入ったにも拘わら
ず、第2のポイントAと、眼とその周囲の明かるい部分
との境界点を示すポイントB、Cを連続して抽出できれ
ば、図12の(b)のように眼が一つの連続データL1
として扱われ、連続データ内の最大値H1maxがメモ
リに記憶されることになる。なお、図12において、D
1、D2、D3区間はステップ54での第2のポイント
の抽出条件を満たす抽出点のない箇所を、L1、L2区
間は抽出点が存在する箇所を示している。
Of course, if the second point A and the points B and C indicating the boundary point between the eye and the surrounding light portion can be continuously extracted, even if the eyeball has a bright spot, As shown in 12 (b), continuous data L1 with one eye
And the maximum value H1max in the continuous data is stored in the memory. In FIG. 12, D
Sections 1, D2, and D3 indicate locations where there is no extraction point that satisfies the extraction condition of the second point in step 54, and sections L1 and L2 indicate locations where extraction points exist.

【0051】一方、ステップ51において上述した処理
が終了したと判定されると、ステップ512へ移行し、
ポイントB、Cの間隔の最大値Hmaxを眼の開度値と
して出力する。ここでは、ステップ57、58が本発明
の連続性判定手段を構成し、ステップ56、59、51
1、512が眼の開度検出手段を構成している。
On the other hand, if it is determined in step 51 that the above-mentioned processing has been completed, the process proceeds to step 512,
The maximum value Hmax between the points B and C is output as the eye opening value. Here, steps 57 and 58 constitute the continuity determining means of the present invention, and steps 56, 59 and 51.
Reference numerals 1 and 512 form eye opening detection means.

【0052】次に図3のフローチャートのステップ3
7、39、311における眼の追跡および追跡ミスした
ときの復帰方法を図13、図14により説明する。図3
のフローチャートに基づいて、システムをスタートさせ
た直後には、第1フレームでは、当然眼の存在領域(眼
を含む所定領域)は設定されていない。したがって、ス
テップ33のチェックで眼の存在領域はないと判断さ
れ、ステップ34の眼の位置検出を経て、ステップ35
で眼の存在領域100が設定される。このとき、眼の中
心座標と眼の存在領域100の中心座標は図13の
(a)に示すように一致している。
Next, step 3 in the flowchart of FIG.
A method of tracking an eye in Nos. 7, 39, and 311 and a method of returning when a tracking error occurs will be described with reference to FIGS. Figure 3
Immediately after the system is started based on the flowchart of (1), naturally, in the first frame, the eye existing area (predetermined area including the eye) is not set. Therefore, it is determined in the check in step 33 that there is no eye-existing region, and after the eye position is detected in step 34, step 35
The eye presence region 100 is set with. At this time, the center coordinates of the eye and the center coordinates of the eye existence region 100 match as shown in FIG.

【0053】第1フレームについて一連の処理が終了し
て第2フレームの処理に移り、処理が再びステップ33
へ進むと、今度はすでに眼の存在領域100が設定され
ているため、眼の存在領域有りと判定される。これによ
り次はステップ36へ進んで眼の開度検出を行ったあ
と、ステップ37へ進む。このとき、眼が正しく捉えら
れている場合には、例えば図13の(b)に示すように
なる。ここでは、眼の存在領域100は第1フレームで
設定された位置にあるのに対し、眼の位置は2フレーム
目に取り込まれた第2フレームの画像データにおける眼
の位置であるため、顔の動きなどにより、眼の中心点は
眼の存在領域100の中心に対してずれた位置にある。
しかし、眼の存在領域100の境界に眼が接しないかぎ
り、これまで説明してきた眼の開度検出を行うことがで
きる。
After the series of processes for the first frame is completed, the process proceeds to the process for the second frame, and the process returns to step 33.
When proceeding to, it is determined that there is an eye existence area because the eye existence area 100 has already been set. As a result, the process proceeds to step 36, the eye opening is detected, and then the process proceeds to step 37. At this time, when the eyes are correctly captured, for example, it becomes as shown in FIG. Here, the eye existence region 100 is located at the position set in the first frame, whereas the eye position is the eye position in the image data of the second frame captured in the second frame, Due to movement or the like, the center point of the eye is displaced from the center of the eye existence region 100.
However, as long as the eye does not come into contact with the boundary of the eye existence region 100, the eye opening detection described above can be performed.

【0054】ステップ39では、このようにして捉えら
れた図13の(b)の眼の中心座標に眼の存在領域10
0の基準点を変更する。これにより、運転者の顔の動き
に対応させることができる。図13の(c)、(d)は
それぞれ第3フレーム、第4フレームで取り込まれた顔
の画像データにおける眼の位置と眼の存在領域100と
の位置関係を示したものである。前フレームの処理にお
いて眼の存在領域100の変更が行われているので、眼
の中心座標と眼の存在領域100の中心座標とのずれは
小さくなっている。
In step 39, the existence region 10 of the eye is located at the center coordinates of the eye of FIG.
Change the 0 reference point. Thereby, it is possible to correspond to the movement of the driver's face. 13C and 13D show the positional relationship between the eye position and the eye existence region 100 in the face image data captured in the third frame and the fourth frame, respectively. Since the eye existence region 100 is changed in the processing of the previous frame, the deviation between the center coordinates of the eye and the center coordinates of the eye existence region 100 is small.

【0055】ステップ37での眼の追跡が正しくなされ
ているか否かの確認は、眼の開度値を用いて行なわれ
る。すなわち、被撮影者である運転者が特定されてしま
えば、眼の開度値は開眼時〜閉眼時の範囲で変化するだ
けであることから、この範囲外の値が出力されたとき
は、眼の追跡ミスがあったと判定する。この場合は、ス
テップ311へ移行して、眼の開度の出力値と眼の存在
領域をクリアし、次のフレーム処理に移行する。そして
ステップ33で、再び顔全体からの処理に入る。
Whether or not the eye tracking is correctly performed in step 37 is performed using the eye opening value. That is, once the driver who is the photographed person is specified, the eye opening value only changes in the range from the time of opening the eyes to the time of closing the eyes, so when a value outside this range is output, It is determined that there was an eye tracking error. In this case, the process proceeds to step 311, the output value of the eye opening and the region where the eye is present are cleared, and the process proceeds to the next frame process. Then, in step 33, the process for the entire face is started again.

【0056】つぎに、ステップ38における開閉眼の判
定の基準値について説明する。前述のように、運転者が
特定された場合、眼の開度の出力値は開眼状態から閉眼
状態の間で変化するから、開・閉眼の判定を行う基準値
つまり開閉眼を判定するスレッシュホールドは、その範
囲内にあることになる。ここでは、居眠り状態の人は熟
睡状態ではないため、完全に眼の閉じない場合もあるこ
とから、開眼・閉眼の中央値をスレッシュホールドとし
ている。
Next, the reference value for the determination of the open / closed eye in step 38 will be described. As described above, when the driver is specified, the output value of the eye opening changes between the eye open state and the eye closed state, so the reference value for determining the open / closed eye, that is, the threshold for determining the open / closed eye. Would be within that range. Here, since the person in the dozing state is not in the deep sleep state, the eyes may not be completely closed in some cases. Therefore, the median value of the open / closed eyes is set as the threshold.

【0057】つぎに、図3のフローチャートのステップ
310における覚醒度の判定について説明する。図14
は、ステップ38で出力される判定結果を示す開閉眼パ
ターンである。この開眼パターン上で覚醒度判定区間
(例えば1分程度)に出力される閉眼積算値が所定値
(例えば5)以上であるかどうかをチェックすることに
より、覚醒度を判定する。図14の例においては閉眼
(close)の積算値が7となっているので居眠りと
判定する。このようにして得られた覚醒度により居眠り
状態を検出することが可能となり、的確に警報装置を作
動させ、居眠り状態を解消させ、未然に居眠り事故等を
防ぐことができる。
Next, the determination of the awakening degree in step 310 of the flowchart of FIG. 3 will be described. 14
Is an open / closed eye pattern indicating the determination result output in step 38. The awakening degree is determined by checking whether the eye-closure integrated value output in the awakening degree determination section (for example, about 1 minute) on this eye opening pattern is a predetermined value (for example, 5) or more. In the example of FIG. 14, since the integrated value of closed eyes (close) is 7, it is determined to be dozing. It becomes possible to detect the dozing state by the awakening degree obtained in this way, and it is possible to accurately operate the alarm device, cancel the dozing state, and prevent a dozing accident or the like.

【0058】最後に、図4のステップ44における第1
のポイント、および図10のステップ55における第2
のポイント抽出の詳細をフローチャートに基づいて説明
する。ここでは、図15に示すように特定されたライン
上の微分値データに対して、微分値が負から正に反転す
るポイントAを抽出する。抽出されたポイントAに達す
るまでの負微分値更新区間(負微分値区間)において微
分値のピーク値である最小値が所定値以下、ポイントA
以降の正微分値更新区間(正微分値区間)において微分
値のピーク値である最大微分値が所定値以上かどうかを
判別し、すなわち負微分値更新区間内のピークポイント
Bと、正微分値更新区間内のピークポイントCがハッチ
ング部分に入るという条件を満足する場合に、抽出され
たポイントAを第1あるいは第2のポイントとする。
Finally, the first step in step 44 of FIG.
Point, and the second step 55 in FIG.
Details of the point extraction will be described with reference to a flowchart. Here, with respect to the differential value data on the specified line as shown in FIG. 15, the point A at which the differential value is inverted from negative to positive is extracted. In the negative differential value update section (negative differential value section) until reaching the extracted point A, the minimum value, which is the peak value of the differential value, is equal to or less than a predetermined value, point A
In the subsequent positive differential value update section (positive differential value section), it is determined whether or not the maximum differential value that is the peak value of the differential value is equal to or greater than a predetermined value, that is, the peak point B in the negative differential value update section and the positive differential value. When the peak point C in the update section satisfies the condition of entering the hatched portion, the extracted point A is set as the first or second point.

【0059】そこで、眼の位置検出回路25および開閉
眼検出回路26に、ポイントのデータを記憶するポイン
トメモリの他にメモリslmin、メモリslmax、
メモリoksld、カウンタfl0、カウンタm、フラ
グflmaxが備えられる。メモリslminは負微分
値更新区間内の最小微分値を記憶するものである。メモ
リslmaxは正微分値更新区間内の最大微分値を記憶
するものである。カウンタfl0は微分値が0となり、
かつ連続して検出されるときにその個数を計数するもの
である。カウンタmは各ライン毎の抽出ポイント数を計
数するものである。フラグflmaxは微分値が負から
正に変わるときに設定されるものである。メモリoks
ldは抽出されたポイントのY座標を記憶するものであ
る。
Therefore, in the eye position detection circuit 25 and the open / closed eye detection circuit 26, in addition to the point memory for storing the point data, the memory slmin, the memory slmax,
A memory oksld, a counter fl0, a counter m, and a flag flmax are provided. The memory slmin stores the minimum differential value in the negative differential value update section. The memory slmax stores the maximum differential value in the positive differential value update section. The counter fl0 has a differential value of 0,
In addition, the number is counted when continuously detected. The counter m counts the number of extraction points for each line. The flag flmax is set when the differential value changes from negative to positive. Memory oks
ld stores the Y coordinate of the extracted point.

【0060】まず、図16のステップ81で、ポイント
抽出の対象となるラインを特定して、ポイント抽出の処
理を開始する。ステップ82では、各メモリ、カウン
タ、フラグの初期化を行なう。これによって、メモリs
lminが0、メモリslmaxが1000、カウンタ
fl0が0、フラグflmaxが0、カウンタmが0に
設定される。ステップ83では、1つのライン上の全て
の微分値について大きさ判定を行なったかどうかをチェ
ックする。全ての微分値についての大きさ判定を行なっ
ていない場合は、ステップ84へ進む。
First, in step 81 of FIG. 16, the line to be the point extraction target is specified and the point extraction process is started. At step 82, each memory, counter, and flag are initialized. This allows the memory s
lmin is set to 0, memory slmax is set to 1000, counter fl0 is set to 0, flag flmax is set to 0, and counter m is set to 0. In step 83, it is checked whether or not the size determination has been performed for all the differential values on one line. If the magnitude determination has not been performed for all differential values, the process proceeds to step 84.

【0061】ステップ84では、判定対象となっている
微分値が負であるか否かを判断し、負の場合はステップ
85へ進み、ここではその微分値がメモリslminが
記憶した微分値より小さいかどうかを判定する。判定対
象の微分値が記憶値より小さくなければ、図17のステ
ップ87へ進み、判定対象の微分値が記憶値より小さけ
ればステップ86で、メモリslmin内の記憶値を更
新して、図17のステップ87へ進む。
At step 84, it is judged whether or not the differential value to be judged is negative, and if negative, the routine proceeds to step 85, where the differential value is smaller than the differential value stored in the memory slmin. Determine whether or not. If the differential value of the determination target is not smaller than the stored value, the process proceeds to step 87 in FIG. 17, and if the differential value of the determination target is smaller than the stored value, the stored value in the memory slmin is updated in step 86, and the stored value of FIG. Go to step 87.

【0062】ステップ87では、フラグflmaxが設
定されているか、すなわちフラグflmaxが1になっ
ているか否かをチェックする。フラグflmaxが0の
場合はステップ810へ進み、フラグflmaxが1に
なっている場合はステップ88、ステップ89を経て、
ステップ810へ進む。ステップ810では、各メモ
リ、フラグ、カウンタの初期化を行なう。これは微分値
が負である場合に、各メモリ、フラグ、カウンタを初期
状態に保つ処理で前回検出時のデータまたは検出途中の
ノイズによる記憶を削除するものである。ステップ81
1では、Y座標方向に判定対象を次の微分値に進めて、
ステップ83に戻り、Y座標が進んだ微分値について上
記の処理を繰り返す。こうして微分値が負でなくなるま
で同じ処理を続ける。この間の処理は図15の負微分値
更新区間(負微分値区間)を形成するとともに、区間内
の最小微分値(ピークポイントB)が検出され、メモリ
slmin内に記憶されることになる。
In step 87, it is checked whether the flag flmax is set, that is, whether the flag flmax is 1. If the flag flmax is 0, the process proceeds to step 810. If the flag flmax is 1, the process proceeds to steps 88 and 89,
Go to step 810. At step 810, each memory, flag and counter are initialized. This is for deleting the data at the time of the previous detection or the memory due to noise during the detection in the process of keeping each memory, the flag, and the counter in the initial state when the differential value is negative. Step 81
In 1, the judgment target is advanced to the next differential value in the Y coordinate direction,
Returning to step 83, the above process is repeated for the differential value with the advanced Y coordinate. In this way, the same processing is continued until the differential value is not negative. During the processing during this period, the negative differential value updating section (negative differential value section) of FIG. 15 is formed, and the minimum differential value (peak point B) in the section is detected and stored in the memory slmin.

【0063】そして、ステップ84で、判定対象となる
微分値が負でないと検出されると、図18のステップ8
13へ進む。ステップ813では、判定対象となる微分
値が0であるかどうかを判別する。微分値が0の場合は
ステップ814へ進む。
If it is detected in step 84 that the differential value to be judged is not negative, step 8 in FIG.
Proceed to 13. In step 813, it is determined whether or not the differential value to be determined is 0. When the differential value is 0, the process proceeds to step 814.

【0064】ステップ814では、まず、カウンタfl
0の計数値が6になったかどうかをチェックし、計数値
が6未満の場合は、ステップ816へ進み、カウンタf
l0の計数値が6になった場合は、ステップ815で、
フラグflmaxとカウンタfl0を初期化して、ステ
ップ816へ進む。ステップ816では、カウンタfl
0をイクリメントして、ステップ817でY座標方向に
判定対象を次の微分値へ進めてステップ83に戻る。
In step 814, first, the counter fl
It is checked whether or not the count value of 0 has become 6, and if the count value is less than 6, the process proceeds to step 816 and the counter f
When the count value of 10 becomes 6, in step 815,
The flag flmax and the counter fl0 are initialized, and the process proceeds to step 816. In step 816, the counter fl
It increments 0, advances the determination target to the next differential value in the Y coordinate direction in step 817, and returns to step 83.

【0065】0の微分値が連続して現われる場合は、上
記処理を繰り返すことになり、ステップ814でカウン
タfl0の計数値が6になると、ステップ815でポイ
ントの抽出条件であるフラグflmax、カウンタfl
0を初期化して、フラグflmax、カウンタfl0を
0にする。0の微分値が連続して現われること(上記処
理が6回連続)は、髪の毛の部分に見られ濃度変化のな
い部分が長く続いていることである。フラグflma
x、カウンタfl0を初期化することで、髪の毛の部分
における黒くなってくる所で後述するフラグflmax
が設定されるのをキャンセルし、髪の毛がポイントとし
て抽出されるのを防ぐ目的である。
When the differential value of 0 appears continuously, the above processing is repeated, and when the count value of the counter fl0 reaches 6 in step 814, the flag flmax and the counter fl which are the extraction conditions of points are calculated in step 815.
0 is initialized and the flag flmax and the counter fl0 are set to 0. The continuous appearance of the differential value of 0 (the above-mentioned treatment is repeated 6 times) means that a portion which is seen in the hair portion and has no change in density continues for a long time. Flag flma
By initializing x and the counter fl0, a flag flmax, which will be described later, appears at a place where the hair becomes black.
The purpose is to cancel the setting and prevent the hair from being extracted as points.

【0066】そして、ステップ813で、微分値が0で
ないと検出されると、図19のステップ91へ進む。ス
テップ91では、負微分値更新区間でメモリslmin
に記憶された最小微分値が所定値より小さく、かつフラ
グflmaxが0に設定されたという条件を満足するか
どうかをチェックする。満足する場合はステップ92へ
進み、満足しない場合はステップ93へ進む。
If it is detected in step 813 that the differential value is not 0, the process proceeds to step 91 in FIG. In step 91, the memory slmin is updated in the negative differential value update interval.
It is checked whether or not the condition that the minimum differential value stored in 1 is smaller than the predetermined value and the flag flmax is set to 0 is satisfied. If satisfied, the process proceeds to step 92, and if not satisfied, the process proceeds to step 93.

【0067】ステップ91に進んだことから、判定対象
の微分値が正であり、直前の微分値が負であった場合
は、微分値が負から正に反転するポイントAを捉らえる
ことになる。そして、これまでの微分値が負であった場
合は、最小微分値のメモリslminが更新されてお
り、その記憶値が所定値以下という条件を満足したとき
に、捉らえたポイントが最小微分値判定条件を満足する
ことになる。ステップ92では、負から正に反転する微
分値のY座標をメモリoksldに記憶するともに、フ
ラグflmaxを1に設定して、ステップ93、ステッ
プ94、ステップ95を経てY座標方向に判定対象を次
の微分値へ進める。
Since the process has proceeded to step 91, if the differential value to be judged is positive and the previous differential value is negative, the point A at which the differential value is inverted from negative to positive is caught. Become. If the differential value up to now is negative, the memory slmin of the minimum differential value is updated, and when the stored value satisfies the condition of being a predetermined value or less, the captured point is the minimum differential value. The judgment condition will be satisfied. In step 92, the Y coordinate of the differential value that is inverted from negative to positive is stored in the memory oksld, the flag flmax is set to 1, and the determination target is set in the Y coordinate direction through steps 93, 94, and 95. Advances to the differential value of.

【0068】その後、正の微分値が入力されれば、フラ
グflmaxが1に設定されているため、ステップ93
へ進み、ここで判定対象となる微分値がメモリslma
xの記憶値と比較され、それより大きければステップ9
4において記憶値を更新してステップ95へ進む。メモ
リslmaxには初期化で1000が設定されており、
1000以上の微分値が更新されることになる。これに
よりデータの入れ換えが少なくなり、処理時間が速くな
る。ステップ93で判定対象となる微分値がメモリsl
maxの記憶値より小さい場合は、ステップ95へ進
む。ステップ95では、メモリslmin、カウンタf
l0を初期化する。
Thereafter, if a positive differential value is input, the flag flmax has been set to 1, so step 93
Then, the differential value to be determined is the memory slma.
The stored value of x is compared, and if it is larger than that, step 9 is executed.
In step 4, the stored value is updated and the process proceeds to step 95. The memory slmax is initialized to 1000,
The differential value of 1000 or more will be updated. This reduces the replacement of data and speeds up the processing time. The differential value to be determined in step 93 is the memory sl
If it is smaller than the stored value of max, the routine proceeds to step 95. In step 95, the memory slmin and the counter f
Initialize 10

【0069】ステップ96では、Y座標方向に判定対象
を次の微分値へ進めて、ステップ83に戻り、Y座標が
進んだ微分値について上記の処理を繰り返す。この処理
は微分値が再び負になるまで行なわれる。その間の処理
は図15の正微分値更新区間を形成するとともに、その
間の最大微分値(ピークポイントC)が検出されメモリ
slmaxに記憶されることになる。
In step 96, the judgment target is advanced to the next differential value in the Y coordinate direction, the process returns to step 83, and the above processing is repeated for the differential value in which the Y coordinate is advanced. This process is repeated until the differential value becomes negative again. During the process, the positive differential value update section in FIG. 15 is formed, and the maximum differential value (peak point C) during that period is detected and stored in the memory slmax.

【0070】そして、負の微分値が再び現われ、図16
のステップ84で検出されるときに、ステップ85の判
定によって図17のステップ87へ進む。ステップ87
では、フラグflmaxが1に設定されているか否かを
判定する。フラグflmaxが1でなければ抽出ポイン
トなしとしてステップ810へ進み、フラグflmax
が1であればステップ88で、メモリslmaxの記憶
値が所定値以上かどうかを判断し、所定値以上の場合
は、メモリoksldに記憶してある画素はポイントの
抽出条件に満たし、ライン番号とY座標値からなる二次
元のデータをポイントメモリに記憶する。カウンタmを
インクリメントして同じライン上の抽出ポイントを計数
させて、ステップ810へ進む。そしてステップ88の
判断がメモリslmaxの記憶値が所定値以上でない場
合は、抽出ポイントなしとしてステップ810へ進む。
Then, the negative differential value appears again, and as shown in FIG.
17 is detected, the process proceeds to step 87 of FIG. 17 by the determination of step 85. Step 87
Then, it is determined whether or not the flag flmax is set to 1. If the flag flmax is not 1, it is determined that there is no extraction point and the process proceeds to step 810.
If it is 1, it is determined in step 88 whether the stored value of the memory slmax is equal to or larger than a predetermined value. If it is equal to or larger than the predetermined value, the pixel stored in the memory oksld satisfies the point extraction condition and the line number and Two-dimensional data composed of Y coordinate values is stored in the point memory. The counter m is incremented to count the extraction points on the same line, and the process proceeds to step 810. If the determination in step 88 is that the stored value of the memory slmax is not equal to or more than the predetermined value, it is determined that there is no extraction point and the process proceeds to step 810.

【0071】ステップ810では、メモリoksld、
メモリslmax、カウンタfl0、フラグflmax
を初期化して、ステップ811へ進み、ここでY座標方
向に判定対象を次の微分値へ進めて、ステップ83へ戻
り、上記の処理が再び行なわれる。最後にステップ83
でY座標について全ての微分値を判定したと判断される
と、ステップ812へ進み、次のラインについての判断
に移る。
In step 810, the memory oksld,
Memory slmax, counter fl0, flag flmax
Is initialized and the process proceeds to step 811, where the determination target is advanced to the next differential value in the Y coordinate direction, the process returns to step 83, and the above process is performed again. Finally step 83
When it is determined that all differential values have been determined for the Y coordinate in step 812, the process proceeds to step 812 and determination is performed for the next line.

【0072】本実施例は以上のように構成され、濃度の
ピークを代表し微分値が負から正に変わる画素をポイン
トとして抽出するときに、その画素に達するまでの濃度
値の最大変化(最小微分値)と、ポイント以降に濃度の
最大変化(最大微分値)をそれぞれ負微分値更新区間
と、正微分値更新区間において所定値と比較してポイン
トの抽出を行なうので、眼、眉、口など輪郭のはっきり
した暗い部分が抽出されることになる。抽出されるポイ
ントはそれらのほぼ中心位置に対応している。また最
小、最大微分値がポイントの抽出データとなるため、眼
の開度を検出する際それらを代表する画素の間隔が眼の
開度となり、特別な処理を要せず眼の開度検出ができ
る。個人差による顔の位置の違いにも十分対応でき、居
眠り状態の検出を常に安定して行うことができる。
The present embodiment is configured as described above, and when a pixel representing a density peak and having a differential value that changes from negative to positive is extracted as a point, the maximum change (minimum change in density value) until the pixel is reached is extracted. Differential value) and the maximum change in density (maximum differential value) after the point are compared with a predetermined value in the negative differential value update section and the positive differential value update section, respectively, to extract points, so that the eyes, eyebrows, mouth As a result, a dark part with a clear outline is extracted. The extracted points correspond to their approximate center positions. In addition, since the minimum and maximum differential values are the extracted data of the points, the interval of the pixels that represent them when detecting the eye opening is the eye opening, and the eye opening can be detected without any special processing. it can. It is possible to sufficiently cope with the difference in the position of the face due to the individual difference, and it is possible to stably detect the dozing state.

【0073】次に第2の実施例について説明する。この
実施例は、ポイントの検出精度を一層向上させたもので
ある。第1の実施例では、最小微分値と最大微分値の大
きさ判定に固定の所定値が使われているが、検出精度を
向上させる観点からすれば、微分値の大きさを判定する
所定値は極力小さく設定するのが望ましい。しかし所定
値を小さく設定すると、抽出対象外の髪の毛やしわ等が
ポイントとして抽出される可能性が大きくなる。
Next, the second embodiment will be described. In this embodiment, the point detection accuracy is further improved. In the first embodiment, a fixed predetermined value is used for determining the magnitude of the minimum differential value and the maximum differential value, but from the viewpoint of improving detection accuracy, the predetermined value for determining the magnitude of the differential value is used. Is preferably set as small as possible. However, if the predetermined value is set to be small, the possibility that hairs, wrinkles, and the like that are not the extraction target will be extracted as points will increase.

【0074】そこで本実施例では、最大微分値の大きさ
判定を行なう所定値(基準値)を最小微分値の大きさに
従って変化させる。すなわち図20のように負微分値更
新区間内で最小微分値が検出されると、それに基づいて
正微分値の大きさ判定を行なう所定値(基準値)の大き
さを設定して最大微分値の大きさ判断を行なうものであ
る。その他の構成は第1の実施例と同様である。
Therefore, in this embodiment, the predetermined value (reference value) for determining the magnitude of the maximum differential value is changed according to the magnitude of the minimum differential value. That is, when the minimum differential value is detected within the negative differential value update section as shown in FIG. 20, the size of the predetermined value (reference value) for determining the magnitude of the positive differential value is set based on the minimum differential value to set the maximum differential value. The size of is determined. The other structure is similar to that of the first embodiment.

【0075】従って、例えばピークポピントBの微分値
が大きければ、正方向の微分値を検出する所定値が大き
く設定される。この結果、眼のように正負の微分値が大
きく変わらないものがポイントに代表されて抽出され
る。図38に示す髪の毛に見られるように最小微分値q
1が大きく、最大微分値が大きくならないポイントp1
は抽出されなくなる。
Therefore, for example, if the differential value of the peak pop point B is large, the predetermined value for detecting the differential value in the positive direction is set large. As a result, a point whose positive and negative differential values do not significantly change like the eye is typified by points and extracted. As shown in the hair shown in FIG. 38, the minimum differential value q
Point 1 where 1 is large and maximum differential value does not increase
Will not be extracted.

【0076】次に、第3の実施例について説明する。こ
の実施例は、前記第2実施例と同様に正の微分値の大き
さを判定する所定値を最小微分値の大きさに従って変化
させる。ポイントの抽出は、ポイントAに達するまでの
濃度値の最大変化が所定値以下であるか否かを、最小微
分値更新区間内のピークポイントBの微分値が所定値以
下かどうかで判定する。この最小微分値が所定値以下で
ある場合に、この微分値を基準にA点以降の正微分値更
新区間内の所定値の大きさを設定し、この所定値を越え
る正微分値が検出されれば、ポイントAを第1あるいは
第2のポイントとして抽出して、Y座標値をメモリす
る。
Next, the third embodiment will be described. In this embodiment, similarly to the second embodiment, the predetermined value for determining the magnitude of the positive differential value is changed according to the magnitude of the minimum differential value. The extraction of points determines whether or not the maximum change in the density value before reaching point A is a predetermined value or less based on whether the differential value of the peak point B in the minimum differential value update section is a predetermined value or less. When the minimum differential value is less than or equal to the predetermined value, the size of the predetermined value in the positive differential value update section after the point A is set on the basis of this differential value, and the positive differential value exceeding this predetermined value is detected. If so, the point A is extracted as the first or second point, and the Y coordinate value is stored in the memory.

【0077】第1の実施例では、正微分値更新区間にお
いて所定値と比較する正微分値に最大微分値が用いられ
ている。そして最大微分値が眼の境界点を示すものとし
て眼の開度検出にも用いられるため、メガネをかけた対
象者の場合、夜間撮影用の赤外線ランプの光がレンズに
反射点としてあるときに、境界点に最大微分値が現われ
ない可能性がある。すなわち、図21のように眼の黒部
分から白への濃度変化部分で、反射点による黒から白へ
の濃度変化ピークは2つが発生する可能性がある。この
ような場合に、ポイントの抽出に微分値の高いピークD
を用いると、眼の位置検出には問題ないが、眼の開度検
出ではピークDが境界点として用いられるため、完璧な
眼の開度検出は難しくなる。本実施例では、これに対処
して、眼の境界点に近い、所定値を越える画素Cをポイ
ントAの抽出データとして図22〜図25のフローチャ
ートにしたがって処理が行なわれる。
In the first embodiment, the maximum differential value is used as the positive differential value to be compared with the predetermined value in the positive differential value update section. And since the maximum differential value is also used to detect the opening of the eye as indicating the boundary point of the eye, in the case of a subject wearing glasses, when the light of the infrared lamp for night photography is on the lens as a reflection point. , The maximum differential value may not appear at the boundary point. That is, as shown in FIG. 21, two peaks of density change from black to white due to reflection points may occur in the density change portion of the eye from black to white. In such a case, the peak D with a high differential value is used to extract the points.
However, since the peak D is used as a boundary point in the eye opening detection, perfect eye opening detection becomes difficult. In the present embodiment, in order to cope with this, the processing is performed in accordance with the flowcharts of FIGS. 22 to 25 with the pixel C near the boundary point of the eyes, which exceeds the predetermined value, as the extracted data of the point A.

【0078】眼の位置検出回路23には、第1の実施例
と同様にメモリslmin、メモリslmax、メモリ
oksld、カウンタfl0、カウンタm、フラグfl
maxが備えられる。メモリslmaxは用途を変え
て、Y座標に沿う走査で所定値を越える最初の正微分値
を記憶する。
As in the first embodiment, the eye position detecting circuit 23 includes a memory slmin, a memory slmax, a memory oksld, a counter fl0, a counter m, and a flag fl.
max is provided. The memory slmax is used for different purposes and stores the first positive differential value exceeding a predetermined value in scanning along the Y coordinate.

【0079】図22のステップ121〜ステップ128
は図16の第1の実施例におけるステップ81〜ステッ
プ86と同様で、ラインを特定して、各メモリ、カウン
タ、フラグの初期化を行なう。判定対象となる負微分値
から最小値(ピークポイントB)がメモリslminに
記憶される。ステップ127はその最小値を検出する際
に、メモリ、フラグ、カウンタを初期状態に保ち、前回
検出時のデータや検出途中のノイズによる記憶を削除す
るための処理である。
Steps 121 to 128 in FIG. 22.
Is similar to steps 81 to 86 in the first embodiment shown in FIG. 16, the line is specified and each memory, counter and flag are initialized. The minimum value (peak point B) from the negative differential value to be determined is stored in the memory slmin. In step 127, when the minimum value is detected, the memory, the flag, and the counter are kept in the initial state, and the data at the time of the previous detection and the memory due to the noise during the detection are deleted.

【0080】そして、ステップ124で、判定対象とな
る微分値が負でないと検出されると、図24のステップ
1210へ進む。ステップ1210〜ステップ1213
は、図18の第1の実施例におけるステップ813〜ス
テップ817と同様で、0の微分値の検出が6回続いた
ら、濃度変化のない髪の毛部分が検出されたとし、後述
する濃度が白から黒くなってくる所で設定されるフラグ
flmaxの設定をキャンセルして、誤検出を防止す
る。
When it is detected in step 124 that the differential value to be judged is not negative, the process proceeds to step 1210 in FIG. Steps 1210 to 1213
18 is the same as steps 813 to 817 in the first embodiment of FIG. 18, and if the detection of the differential value of 0 continues 6 times, it is assumed that the hair portion with no density change is detected, and the density described below changes from white. The setting of the flag flmax set at the place where it becomes black is canceled to prevent erroneous detection.

【0081】ステップ1210で、0でないと判定され
た場合は、図25のステップ131へ進む。ステップ1
31に進んだことは、判定対象の微分値が正であり、こ
れまでの微分値が負であった場合は、最小微分値のメモ
リslminが更新されており、その記憶値が所定値以
下という条件を満足したときに、負から正に反転するポ
イントAが最小微分値判定条件を満足するポイントとな
る。
If it is determined in step 1210 that the value is not 0, the process proceeds to step 131 in FIG. Step 1
If the differential value of the determination target is positive and the differential value up to now is negative, the memory slmin of the minimum differential value is updated and the stored value is equal to or less than the predetermined value. When the condition is satisfied, the point A that is inverted from negative to positive becomes the point that satisfies the minimum differential value determination condition.

【0082】ステップ131では、メモリslminに
記憶された最小微分値が所定値より小さく、かつフラグ
flmaxが1でないという条件に満足かどうかを判定
する。満足する場合はステップ132を経てステップ1
33へ進み、満足しない場合はステップ133へ進む。
In step 131, it is determined whether or not the condition that the minimum differential value stored in the memory slmin is smaller than a predetermined value and the flag flmax is not 1 is satisfied. If satisfied, go to step 132 and then step 1
If not satisfied, go to step 133.

【0083】ステップ132では、負から正に反転す
る微分値(ポイントA)のY座標をメモリoksldに
記憶する。フラグflmaxを1に設定する。メモ
リslminに記憶している最小微分値に係数をかけて
メモリslmaxに記憶させる。こうして最小微分値に
比例する所定値が設定される。ステップ133で、フラ
グflmaxが1かどうかをチェックし、1の場合はス
テップ134へ進み、1でない場合はステップ137へ
進む。
In step 132, the Y coordinate of the differential value (point A) which is inverted from negative to positive is stored in the memory oksld. The flag flmax is set to 1. The minimum differential value stored in the memory slmin is multiplied by a coefficient and stored in the memory slmax. Thus, a predetermined value proportional to the minimum differential value is set. In step 133, it is checked whether the flag flmax is 1, and if it is 1, the process proceeds to step 134, and if it is not 1, the process proceeds to step 137.

【0084】ステップ134では、判定対象となる微分
値がメモリslmaxの記憶値である所定値(基準値)
より大きいかどうかを判断し、大きくない場合は、ステ
ップ137へ進む。ステップ137では、メモリslm
in、カウンタfl0を初期化して、ステップ138へ
進む。ステップ138では、Y座標方向に判定対象を次
の微分値へ進めて、ステップ123に戻る。
In step 134, the differential value to be judged is a predetermined value (reference value) which is the value stored in the memory slmax.
It is determined whether or not it is larger, and if not, the process proceeds to step 137. In step 137, the memory slm
in, the counter fl0 is initialized, and the process proceeds to step 138. In step 138, the determination target is advanced to the next differential value in the Y coordinate direction, and the process returns to step 123.

【0085】そして、ステップ134で、メモリslm
axの記憶値より大きい値を有する微分値が検出される
と、ポイントAの抽出条件が満たされ、ステップ135
において、二次元のデータとしてライン番号とメモリo
ksldに記憶してあるY座標をポイントメモリに記憶
する。カウンタmをインクリメントして同じライン上の
抽出ポイントを計数させたのち、ステップ136へ進
む。
Then, in step 134, the memory slm
When a differential value having a value larger than the stored value of ax is detected, the extraction condition of the point A is satisfied, and step 135
At, the line number and the memory o as two-dimensional data
The Y coordinate stored in ksld is stored in the point memory. After the counter m is incremented to count the extraction points on the same line, the process proceeds to step 136.

【0086】ステップ136では、メモリoksld、
メモリslmax、カウンタfl0、フラグflmax
を初期化する。上記の処理を全ての微分値に対して行な
ったとステップ123で判定されたときに、ステップ1
29において、次のラインでの判定に切り替えられる。
In step 136, the memory oksld,
Memory slmax, counter fl0, flag flmax
To initialize. When it is determined in step 123 that the above processing has been performed on all differential values, step 1
At 29, the determination is switched to the next line.

【0087】本実施例は、以上のように構成され、最大
微分値の大きさ判定を行なう所定値を最小微分値の大き
さに基づいて設定し、その設定値を越えた最初の正の微
分値をポイント抽出の判定対象とすることによって、濃
度分布曲線が変形した場合でも、眼の境界点と対応関係
を持つポイント抽出データが得られ、前記第1の実施例
と同様の結果が得られるとともに、眼の開度検出が誤検
出を含まずに行なえる効果得られる。
The present embodiment is configured as described above, and sets a predetermined value for judging the magnitude of the maximum differential value based on the magnitude of the minimum differential value, and the first positive differential value exceeding the set value. By using the value as the determination target of the point extraction, even if the density distribution curve is deformed, the point extraction data having the correspondence relationship with the boundary point of the eye is obtained, and the same result as that of the first embodiment is obtained. At the same time, the effect that the eye opening can be detected without including erroneous detection is obtained.

【0088】次に第4の実施例について説明する。この
実施例は、前記第3の実施例と同様に正の微分値の大き
さを判定する所定値を最小微分値の大きさに従って変化
させる。ポイントの抽出は、図26に示すように、ポイ
ントA以降に所定値(基準値)より大きい微分値が検出
された場合、最小微分値のピークポイントBと所定値に
達するポイントCの間に、負微分値の出現に拘わらず、
ピークポイントBとポイントCの間のY座標方向の間隔
を判定値により判定して抽出を行なう。
Next, a fourth embodiment will be described. In this embodiment, similarly to the third embodiment, the predetermined value for determining the magnitude of the positive differential value is changed according to the magnitude of the minimum differential value. As shown in FIG. 26, when a differential value larger than a predetermined value (reference value) is detected after the point A, the points are extracted between the peak point B of the minimum differential value and the point C reaching the predetermined value. Despite the appearance of negative differential values,
The interval between the peak points B and C in the Y coordinate direction is determined by the determination value and extraction is performed.

【0089】前記実施例では、所定値を越える正微分値
あるいは最大微分値の検出は正微分値区間内で行なわれ
ている。すなわち正微分値区間は眼の濃度ピークからそ
の境界点までカバーするものとして用いられている。し
かし眼球の中に輝点がある場合に、正微分値区間は輝点
までとなり、検出されるべきのポイントが不検出となる
可能性がある。本実施例では、所定値を越える正微分値
に検出区間を設けず正微分値と最小微分値の間の距離に
よりポイントを抽出するかどうかを決定する。図27〜
図29はポイント検出処理のフローチャートである。こ
こで、第3の実施例に示した構成の他にメモリmini
iが備えられる。メモリminiiは最小微分値のY座
標を記憶するものである。
In the above embodiment, the detection of the positive differential value or the maximum differential value exceeding the predetermined value is performed within the positive differential value section. That is, the positive differential value section is used to cover from the eye density peak to the boundary point. However, when there is a bright point in the eyeball, the positive differential value section extends to the bright point, and the point to be detected may not be detected. In this embodiment, a detection section is not provided for a positive differential value exceeding a predetermined value, and whether to extract a point is determined based on the distance between the positive differential value and the minimum differential value. 27-
FIG. 29 is a flowchart of the point detection process. Here, in addition to the configuration shown in the third embodiment, the memory mini
i is provided. The memory minii stores the Y coordinate of the minimum differential value.

【0090】図27のステップ151〜ステップ158
は前記実施例と同様に、ラインを特定して、各メモリ、
カウンタ、フラグの初期化を行なう。判定対象となる負
微分値から最小値(ピークポイントB)がメモリslm
inに記憶されるとともに、ステップ156において最
小微分値のY座標をメモリminiiに記憶させる。ス
テップ157はその最小値を検出する際に、カウンタf
l0を初期状態に保ち、前回検出時のデータや検出途中
のノイズによる記憶を削除するための処理である。
Steps 151 to 158 of FIG. 27.
In the same manner as in the above embodiment, a line is specified, each memory,
Initialize counters and flags. The minimum value (peak point B) from the negative differential value to be determined is the memory slm
In addition to being stored in in, the Y coordinate of the minimum differential value is stored in the memory minii in step 156. In step 157, the counter f is detected when the minimum value is detected.
This is a process for keeping 10 in the initial state and deleting the data at the time of the previous detection and the memory due to noise during the detection.

【0091】そして、ステップ154で、判定対象とな
る微分値が負でないと検出されると、図28のステップ
1510へ進む。ステップ1510〜ステップ1514
は、図18の第1の実施例におけるステップ813〜ス
テップ817と同様で、0の微分値の検出が6回続いた
ら、濃度変化のない髪の毛部分が検出されたとし、後述
する濃度が白から黒くなってくる所で設定されるフラグ
flmaxの設定をキャンセルして、誤検出を防止す
る。
When it is detected in step 154 that the differential value to be judged is not negative, the routine proceeds to step 1510 in FIG. Steps 1510 to 1514
18 is the same as step 813 to step 817 in the first embodiment of FIG. 18, and if the detection of the differential value of 0 continues 6 times, it is assumed that a hair portion with no density change is detected, and the density described below changes from white to white. The setting of the flag flmax set at the place where it becomes black is canceled to prevent erroneous detection.

【0092】ステップ1510で、0でないと判定され
た場合は、図29のステップ161へ進む。その後は第
3の実施例と同様に最小値に基づいた正微分値の所定値
設定が行なわれる。微分値が負から正に反転するポイン
トAが検出されたあと、所定値を越える正微分値が検出
されると、ステップ165でそのY座標からメモリmi
niiに記憶してある最小微分値のY座標を引いてその
間の距離Fを求め、判定値(所定値)による判断で所定
距離以内の場合、ステップ166でポイントAを第1あ
るいは第2のポイントとして抽出しライン番号とポイン
トのY座標をポイントメモリに記憶させる。この考え方
は、ピークポイントBからのY座標方向の距離Fが上記
所定距離以内にポイントCが出現しない場合に、ポイン
トAに相当する第1あるいは第2のポイントの抽出から
除外するも適用できる。上記のような処理は全ての微分
値に対して行なうと、ステップ153で次のラインでの
判定に切り替えられる。
If it is determined in step 1510 that the value is not 0, the process proceeds to step 161 in FIG. After that, the predetermined value of the positive differential value based on the minimum value is set as in the third embodiment. When a positive differential value exceeding a predetermined value is detected after the point A at which the differential value is inverted from negative to positive is detected, in step 165, the memory mi is read from the Y coordinate.
The Y coordinate of the minimum differential value stored in nii is subtracted to obtain the distance F therebetween, and if the distance is within a predetermined distance by the judgment value (predetermined value), the point A is set to the first or second point in step 166. The line number and the Y coordinate of the point are stored in the point memory. This idea can also be applied to exclude the point C corresponding to the point A from the extraction of the first or second point when the point C does not appear within the predetermined distance from the peak point B in the Y coordinate direction. When the above-described processing is performed on all the differential values, the determination is switched to the next line in step 153.

【0093】本実施例は、以上のように構成され、最大
微分値の大きさ判定を行なう所定値を最小微分値の大き
さに基づいて設定し、その設定値を越えた最初の正の微
分値をポイント抽出の判定対象とする。判定対象につい
て、さらに最小微分値との距離間隔の判定を行なうの
で、前記実施例と同様な効果が得られるとともに、眼の
濃度データが途切れたときでも、ポイントの抽出が可能
である。
The present embodiment is configured as described above, and sets a predetermined value for judging the magnitude of the maximum differential value based on the magnitude of the minimum differential value, and the first positive differential value exceeding the set value. The value is used as the point extraction judgment target. Since the distance distance from the minimum differential value is further determined for the determination target, the same effect as in the above-described embodiment can be obtained, and points can be extracted even when the eye density data is interrupted.

【0094】次に、第5の実施例について説明する。こ
の実施例は第4の実施例の改良版として図30に示すよ
うにポイントAでの抽出条件満たされる前に、より濃淡
のはっきりしたポイントA1が対象外となってしまうこ
とを防止することを目的とする。すなわち図30のよう
髪の毛を含む濃度データがある場合、第4の実施例で
は、白から髪の毛の黒い部分に変わるところで所定値を
越える最小微分値Bが検出される。そしてその最小微分
値Bを以て検出したいポイントA1を検出するときに所
定値を越える正微分値Cとの距離判定を行なうときに、
距離の判定値を越えポイントA1を抽出できなくなる。
Next, a fifth embodiment will be described. In this embodiment, as an improved version of the fourth embodiment, as shown in FIG. 30, before the extraction condition at the point A is satisfied, it is possible to prevent the point A1 having a clearer shade from being excluded. To aim. That is, when there is density data including hair as shown in FIG. 30, in the fourth embodiment, the minimum differential value B exceeding a predetermined value is detected at the point where the hair changes from white to black. When the point A1 desired to be detected with the minimum differential value B is detected and the distance with the positive differential value C exceeding a predetermined value is determined,
The point A1 cannot be extracted because the distance judgment value is exceeded.

【0095】そこで、本実施例では最小微分値Bとポイ
ントAが検出された後、所定値に達する微分値Cが現わ
れる前に、最小微分値B以上に小さい第2の最小微分値
B1が現われた場合、ポイントAでの抽出条件判定をキ
ャンセルし、ポイント抽出を最小微分値B1をもつポイ
ントA1に切り換える処理を行なう。その他は第4の実
施例と同様である。
Therefore, in this embodiment, after the minimum differential value B and the point A are detected, the second minimum differential value B1 smaller than the minimum differential value B appears before the differential value C reaching the predetermined value appears. In this case, the extraction condition determination at the point A is canceled, and the point extraction is switched to the point A1 having the minimum differential value B1. Others are the same as those in the fourth embodiment.

【0096】ここで、第4の実施例に示した構成の他に
メモリslmin2とメモリminii2、フラグfl
minが備えられる。メモリslmin2は最小微分値
更新区間内の該当値を記憶するものである。メモリmi
nii2は最小微分値更新区間内の該当値のY座標を記
憶するものである。フラグflminはメモリslmi
n2の記憶値更新確認フラグで設定されたとき1とな
る。
Here, in addition to the configuration shown in the fourth embodiment, the memory slmin2 and the memory mini2, and the flag fl.
min is provided. The memory slmin2 stores the corresponding value in the minimum differential value update section. Memory mi
nii2 stores the Y coordinate of the corresponding value in the minimum differential value update section. The flag flmin is the memory slmi
It becomes 1 when the stored value update confirmation flag of n2 is set.

【0097】図31〜図35はポイント抽出のフローチ
ャートである。ステップ181〜ステップ1810は前
記実施例と同様に、ライン特定して、各メモリ、カウン
タ、フラグを初期化する。判定対象となる負微分値から
最小値Bがメモリslminに記憶されるとともに、ス
テップ186において最小微分値BのY座標をメモリm
iniiに記憶させる。
31 to 35 are flow charts for extracting points. In steps 181 to 1810, the line is specified and each memory, counter, and flag are initialized, as in the above-described embodiment. The minimum value B from the negative differential value to be determined is stored in the memory slmin, and the Y coordinate of the minimum differential value B is stored in the memory m in step 186.
Store inii.

【0098】ステップ187、ステップ188は、後述
の処理でメモリslminの記憶値である最小微分値B
よりさらに小さい第2の微分値B1が検出されたとき、
抽出をポイントAからポイントA1に切り換えて行なう
ための処理である。すなわち抽出対象ポイントAの仮抽
出が確認できるフラグflmaxの設定確認と同時に、
現在の判定対象となっている微分値がメモリslmin
2の記憶値より小さいかどうかの判断を行なう処理であ
る。
In steps 187 and 188, the minimum differential value B which is the stored value of the memory slmin in the processing described later.
When the second smaller differential value B1 is detected,
This is a process for switching extraction from point A to point A1. That is, at the same time as confirming the setting of the flag flmax, which allows confirmation of the temporary extraction of the extraction target point A,
The differential value that is the current judgment target is the memory slmin
This is a process of determining whether or not it is smaller than the stored value of 2.

【0099】この際、判定対象の微分値がメモリslm
in2の記憶値より大きい場合は、ステップ189へ移
行し、第4の実施例と同様に通常の判定を続ける。判定
対象の微分値はメモリslminの記憶値より小さい場
合、第2の最小微分値B1が検出され、ステップ188
で最小微分値更新フラグflminを設定し、判定対象
の微分値に−0.5をかけて演算したものをメモリsl
max記憶する。メモリslmin2、メモリmini
i2には第2の最小微分値B1の大きさとY座標をそれ
ぞれ再記憶させる。
At this time, the differential value to be judged is the memory slm.
If it is larger than the stored value of in2, the process proceeds to step 189, and the normal determination is continued as in the fourth embodiment. If the differential value to be determined is smaller than the storage value of the memory slmin, the second minimum differential value B1 is detected, and step 188 is performed.
Then, the minimum differential value update flag flmin is set, and the differential value to be judged is multiplied by -0.5 to calculate the result in the memory sl.
Remember max. Memory slmin2, memory mini
The magnitude of the second minimum differential value B1 and the Y coordinate are respectively stored in i2 again.

【0100】ステップ1812〜ステップ1816は、
第4の実施例のステップ1510〜ステップ1514と
同様で、0の微分値が6回続いたら、髪の毛が黒くなっ
てくる所で設定されるフラグflmaxの設定をキャン
セルして、誤検出を防止する。そして、ステップ181
2で、0でないと判定された場合は、図34のステップ
191へ進む。
Steps 1812 to 1816 are
Similar to steps 1510 to 1514 of the fourth embodiment, when the differential value of 0 continues 6 times, the setting of the flag flmax set at the place where the hair becomes black is canceled to prevent erroneous detection. . And step 181
If it is determined in 2 that it is not 0, the process proceeds to step 191 in FIG.

【0101】ステップ191では、メモリslminに
記憶された最小微分値Bの記憶値が所定値以下、かつフ
ラグflmaxが1でないという条件に満足かどうかを
判定する。満足する場合はステップ192を経てステッ
プ193へ進み、満足しない場合はステップ193へ進
む。ここで微分値が負から正に反転するポイントAが仮
抽出され、負微分値更新区間1が終了する。
In step 191, it is judged whether or not the condition that the stored value of the minimum differential value B stored in the memory slmin is less than a predetermined value and the flag flmax is not 1 is satisfied. If satisfied, go to step 193 via step 192, and if not satisfied, go to step 193. Here, the point A at which the differential value is inverted from negative to positive is provisionally extracted, and the negative differential value update section 1 ends.

【0102】ステップ192では、ポイントAのY座
標をメモリoksldに記憶する。フラグflmax
を1に設定する。メモリslminに記憶している最
小微分値に係数をかけて演算したものをメモリslma
xに記憶させる。メモリslmin内の記憶値をメモ
リslmin2に記憶する。minii2にメモリm
iniiの記憶値を記憶させる。こうして最小微分値更
新区間内の該当値を記憶するメモリに最小微分値の大き
さとY座標が記憶されるとともに最小微分値に比例する
所定値の設定が行なわれる。
At step 192, the Y coordinate of the point A is stored in the memory oksld. Flag flmax
Is set to 1. The memory slma is calculated by multiplying the minimum differential value stored in the memory slmin by a coefficient.
Store in x. The stored value in the memory slmin is stored in the memory slmin2. memory m in mini2
Store the stored value of inii. In this way, the magnitude of the minimum differential value and the Y coordinate are stored in the memory for storing the corresponding value in the minimum differential value updating section, and the predetermined value proportional to the minimum differential value is set.

【0103】ステップ193は、最小微分値値更新フラ
グflminの設定を判定し、フラグ設定されている場
合は、ステップ194で更新された最小微分値の負の区
間から正に反転するポイントA1が検出され、そのY座
標をメモリoksldに再メモリして、フラグflmi
nを初期化する。ステップ195〜ステップ1911は
図29の第4の実施例におけるステップ161〜ステッ
プ169と同様で、最小値に基づいた正微分値の所定値
設定が行なわれる。微分値が負から正に反転するポイン
トA1が検出されたあと、所定値を越える正微分値Cが
検出されると、ステップ197でそのY座標からメモリ
minii2に記憶してある最小微分値B1のY座標を
引いてその間の距離Fを求め、判定値(所定値)による
判断で所定距離以内の場合、ステップ198でポイント
A1を第1あるいは第2のポイントとして抽出しライン
番号とポイントのY座標をポイントメモリに記憶させ
る。上記のような処理を全ての微分値に対して行なう
と、ステップ183で次のラインでの判定に切り替えら
れる。
In step 193, the setting of the minimum differential value update flag flmin is determined. If the flag is set, a point A1 at which the minimum differential value updated in step 194 is positively inverted is detected from the negative interval. Then, the Y coordinate is re-stored in the memory oksld and the flag flmi is stored.
Initialize n. Steps 195 to 1911 are the same as steps 161 to 169 in the fourth embodiment of FIG. 29, and the predetermined value of the positive differential value based on the minimum value is set. When a positive differential value C exceeding a predetermined value is detected after the point A1 at which the differential value is inverted from negative to positive is detected, the minimum differential value B1 stored in the memory minii2 from the Y coordinate is detected in step 197. The Y coordinate is subtracted to obtain the distance F therebetween, and if the judgment is made within the predetermined distance by the judgment value (predetermined value), the point A1 is extracted as the first or second point in step 198, and the line number and the Y coordinate of the point Is stored in the point memory. When the above-described processing is performed on all differential values, the determination is switched to the next line in step 183.

【0104】本実施例は以上のように構成され、第4の
実施例に加えて、所定値を越える正微分値が検出される
前に、先に検出された最小微分値よりさらに微分値が小
さい第2の最小微分値が検出される場合は、それをもつ
ポイントを抽出対象とする処理を施したため、他の最小
微分値の入りにより距離判断でポイントが抽出できなく
なることを防止できる。
The present embodiment is configured as described above, and in addition to the fourth embodiment, before the positive differential value exceeding the predetermined value is detected, the differential value is further differentiated from the previously detected minimum differential value. When a small second minimum differential value is detected, the point having the second minimum differential value is subjected to the extraction processing, so that it is possible to prevent the point from being unable to be extracted by the distance determination due to the entry of another minimum differential value.

【0105】[0105]

【発明の効果】以上のとおり、本発明は、顔の画像デー
タ処理による居眠り状態検出装置において、顔の縦方向
の画素列における濃度の局所的な高まり毎に第1の抽出
点を抽出し、隣接する画素列の近接した第1の抽出点を
連続して顔の横方向に伸びる曲線群を抽出してこの曲線
群から眼の曲線を特定して、眼の位置を検出するように
し、検出した眼を含む所定領域内で縦方向の画素列に沿
って同様に第2の抽出点を抽出するとともに、該第2の
抽出点を含む濃度の局所的な高まりの境界点を示す第3
の抽出点を抽出し、横方向に連続した第3の抽出点のデ
ータを基に眼の開度を検出して、その眼の開度の状態変
化から覚醒度を判定するものとしたので、運転者の体格
や運転姿勢の違いなどがあっても容易確実に眼の位置を
検出することができる。
As described above, according to the present invention, in the doze state detecting device based on the face image data processing, the first extraction point is extracted for each local increase in the density in the pixel row in the vertical direction of the face, Detecting the eye position by extracting a curve group extending in the lateral direction of the face from adjacent first extraction points of adjacent pixel rows and identifying the curve of the eye from this curve group A second extraction point is similarly extracted along a vertical pixel row in a predetermined region including the eye, and a third boundary point indicating a local increase in density including the second extraction point is extracted.
Since the extraction point is extracted, the eye opening is detected based on the data of the third extraction point continuous in the lateral direction, and the arousal level is determined from the state change of the eye opening, Even if there is a difference in the physique or driving posture of the driver, the eye position can be detected easily and reliably.

【0106】請求項2記載の発明では、ポイントの抽
出、微分値が負から正に反転する画素の特定は濃度のピ
ークに対応しており、前記第1のポイントあるいは第2
のポイントとして抽出する際、微分値が反転する前後の
負、正微分値区間から最小、最大微分値を求め、所定値
による強度判定を行なうので、抽出されるポイントは境
界のはっきりする暗い部分の代表となり、しわ、影、等
の境界がはっきりしない暗い部分は抽出対象から振り落
とされ、質の高い抽出となる。また、抽出ポイントは濃
度のピークを代表しており、眼、眉、口のほぼ中心位置
に対応する。これによって、後続処理が簡単になる。
According to the second aspect of the present invention, the extraction of points and the identification of the pixel whose differential value is inverted from negative to positive correspond to the peak of the density, and the first point or the second point.
When extracting as the point of, the minimum and maximum differential values are obtained from the negative and positive differential value sections before and after the differential value is inverted, and the strength is determined by a predetermined value, so the extracted point is in the dark part where the boundary is clear. As a representative, dark areas such as wrinkles and shadows where the boundaries are not clearly defined are shaken off from the extraction target, resulting in high quality extraction. The extraction points represent the peaks of the density and correspond to the approximate center positions of the eyes, eyebrows, and mouth. This simplifies subsequent processing.

【0107】請求項3記載の発明では、微分値が負から
正に反転する画素を前記第1のポイントあるいは第2の
ポイントとして抽出する際、画素前の負微分値区間から
所定値を越える最小微分値と正微分値の検出による強度
判定を行なうので、請求項2の発明と同様の効果が得ら
れるとともに、微分値の分布曲線が歪んだり、変形した
りして、最大微分値が位置変化した場合でも、暗い部分
と明かるい部分の境界データが得られ眼の開度検出など
が誤検出を起こさず行なえる。
According to the third aspect of the present invention, when a pixel whose differential value is inverted from negative to positive is extracted as the first point or the second point, the minimum value exceeding the predetermined value from the negative differential value section before the pixel is extracted. Since the strength determination is performed by detecting the differential value and the positive differential value, the same effect as that of the invention of claim 2 is obtained, and the distribution curve of the differential value is distorted or deformed, and the maximum differential value changes in position. Even in such a case, the boundary data between the dark portion and the light portion can be obtained, and the eye opening can be detected without erroneous detection.

【0108】また、前記最小微分値と前記正微分値の大
きさ判定を行なう所定値を越える最初の正微分値の画素
間の距離が判定値以上の場合には、微分値が負から正に
反転する画素を第1あるいは第2のポイントの抽出から
除外するようにすると、髪の毛による誤抽出が防止され
る。
If the distance between the pixels of the first positive differential value exceeding the predetermined value for judging the magnitude of the minimum differential value and the positive differential value is equal to or larger than the judgment value, the differential value changes from negative to positive. Excluding the inverted pixel from the extraction of the first or second point prevents erroneous extraction due to hair.

【0109】さらに、前記第1のポイント抽出手段ある
いは第2のポイント抽出手段において、前記正微分値の
大きさ判定を行なう所定値を越える最初の正微分値が検
出される前に、前記最小微分値よりさらに小さい値を有
する他の最小微分値がある場合には、前記微分値が負か
ら正に反転する画素を第1あるいは第2のポイントの抽
出から除外するようにすると、微分値の分布曲線の変形
による誤抽出が防止される。
Further, in the first point extraction means or the second point extraction means, before the first positive differential value exceeding a predetermined value for judging the magnitude of the positive differential value is detected, the minimum differential value is detected. When there is another minimum differential value having a value smaller than the value, the pixel whose differential value is inverted from negative to positive is excluded from the extraction of the first or second point, and the distribution of the differential value is obtained. Erroneous extraction due to curve deformation is prevented.

【0110】なお、前記微分値が負から正に反転する画
素に続いて、濃度変化のない画素が所定数以上に存在す
る場合には、前記微分値が負から正に反転する画素を第
1あるいは第2のポイントの抽出から除外するようにす
ると、微分値の分布曲線の変形による誤抽出が防止され
る。そして、最大微分値あるいは正微分値の大きさ判定
を行なう所定値を前記最小微分値に応じて大きさを変化
させるようにすれば、検出したい対象の濃度変化特徴に
合わせポイントをさらに高い精度で抽出することがであ
る。
If there are a predetermined number or more of pixels without density change following the pixel whose differential value is inverted from negative to positive, the pixel whose differential value is inverted from negative to positive is first Alternatively, by excluding the second point from the extraction, erroneous extraction due to deformation of the differential value distribution curve is prevented. Then, by changing the magnitude of the predetermined value for determining the magnitude of the maximum differential value or the positive differential value according to the minimum differential value, the point can be adjusted with higher accuracy according to the density change feature of the target to be detected. It is to extract.

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

【図1】本発明の構成を示すブロック図である。FIG. 1 is a block diagram showing a configuration of the present invention.

【図2】本発明の第1の実施例の構成を示すブロック図
である。
FIG. 2 is a block diagram showing a configuration of a first exemplary embodiment of the present invention.

【図3】居眠り状態検出の処理動作を示すフローチャー
トである。
FIG. 3 is a flowchart showing a processing operation of a doze state detection.

【図4】眼の位置検出の処理動作を示すフローチャート
である。
FIG. 4 is a flowchart showing a processing operation of eye position detection.

【図5】眼の位置検出のための画素列を説明する図であ
る。
FIG. 5 is a diagram illustrating a pixel row for eye position detection.

【図6】第1のポイントの抽出原理の説明する図であ
る。
FIG. 6 is a diagram illustrating a first point extraction principle.

【図7】曲線群の抽出を説明する図である。FIG. 7 is a diagram illustrating extraction of a curve group.

【図8】第1の抽出点のグループ化処理を説明する図で
ある。
FIG. 8 is a diagram illustrating a first extraction point grouping process.

【図9】曲線群から眼の位置を検出する要領を説明する
図である。
FIG. 9 is a diagram illustrating a procedure for detecting an eye position from a group of curves.

【図10】眼の開度検出の処理動作を示すフローチャー
トであある。
FIG. 10 is a flowchart showing a processing operation of eye opening detection.

【図11】第2のポイントの抽出原理を説明する図であ
る。
FIG. 11 is a diagram illustrating a principle of extracting a second point.

【図12】眼の中心に輝点があるときの開度検出を説明
する図である。
FIG. 12 is a diagram illustrating detection of an opening when a bright spot is located at the center of an eye.

【図13】眼の追跡状態を説明する図である。FIG. 13 is a diagram illustrating an eye tracking state.

【図14】覚醒度の判定要領を説明する図である。FIG. 14 is a diagram illustrating a procedure for determining an awakening degree.

【図15】ポイントの抽出要領を説明する図である。FIG. 15 is a diagram illustrating a point extraction procedure.

【図16】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 16 is a flowchart showing a processing operation of point extraction.

【図17】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 17 is a flowchart showing a processing operation of point extraction.

【図18】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 18 is a flowchart showing the processing operation of point extraction.

【図19】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 19 is a flowchart showing the processing operation of point extraction.

【図20】本発明の第2の実施例におけるポイントの抽
出要領を説明する図である。
FIG. 20 is a diagram illustrating a point extraction procedure according to the second embodiment of the present invention.

【図21】本発明の第3の実施例におけるポイントの抽
出要領を説明する図である。
FIG. 21 is a diagram illustrating a point extraction procedure in the third embodiment of the present invention.

【図22】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 22 is a flowchart showing the processing operation of point extraction.

【図23】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 23 is a flowchart showing the processing operation of point extraction.

【図24】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 24 is a flowchart showing the processing operation of point extraction.

【図25】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 25 is a flowchart showing the processing operation of point extraction.

【図26】本発明の第4の実施例におけるポイントの抽
出要領を説明する図である。
FIG. 26 is a diagram illustrating a point extraction procedure in the fourth embodiment of the present invention.

【図27】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 27 is a flowchart showing the processing operation of point extraction.

【図28】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 28 is a flowchart showing the processing operation of point extraction.

【図29】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 29 is a flowchart showing the processing operation of point extraction.

【図30】本発明の第5の実施例におけるポイントの抽
出要領を説明する図である。
FIG. 30 is a diagram illustrating a point extraction procedure in the fifth embodiment of the present invention.

【図31】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 31 is a flowchart showing the processing operation of point extraction.

【図32】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 32 is a flowchart showing a processing operation of point extraction.

【図33】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 33 is a flowchart showing a processing operation of point extraction.

【図34】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 34 is a flowchart showing the processing operation of point extraction.

【図35】ポイント抽出の処理動作を示すフローチャー
トである。
FIG. 35 is a flowchart showing the processing operation of point extraction.

【図36】従来例を示す図である。FIG. 36 is a diagram showing a conventional example.

【図37】他の従来例を示す図である。FIG. 37 is a diagram showing another conventional example.

【図38】髪の毛の部分を含んだ画素の濃度変化とその
微分値変化を示す図である。
FIG. 38 is a diagram showing a change in density of pixels including a hair portion and a change in differential value thereof.

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

1 画像入力手段 2 濃度検出手段 3 第1のポイント抽出手段 4 曲線群の抽出手段 5 眼の位置検出手段 6 第2のポイント抽出手段 7 連続性判定手段 8 眼の開度検出手段 9 覚醒度判定手段 21 TVカメラ 22 A/D変換器 23 画像メモリ 24 画像データ演算回路 25 眼の位置検出回路 26 開閉眼検出回路 27 覚醒度判定回路 28 警報装置 1 Image input means 2 Concentration detection means 3 First point extraction means 4 Curve group extraction means 5 Eye position detection means 6 Second point extraction means 7 Continuity judgment means 8 Eye opening detection means 9 Arousal level judgment means 21 TV camera 22 A / D converter 23 Image memory 24 Image data operation circuit 25 eye position detection circuit 26 Open / closed eye detection circuit 27 Awakening level judgment circuit 28 Alarm device

Claims (7)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 顔の画像データを処理して居眠り状態を
検出する居眠り状態検出装置において、顔画像を入力す
る画像入力手段と、顔の縦方向の画素列に沿って画素の
濃度を検出する濃度検出手段と、前記画素列に沿う濃度
の片方向のピークの、その前後の濃度微分値が所定値を
越える画素を特定して第1のポイントを抽出する第1の
ポイント抽出手段と、隣接する画素列の画素列方向に近
接した前記第1のポイントを連結して顔の横方向に伸び
る曲線群を抽出する曲線群の抽出手段と、前記曲線群か
ら眼の曲線を特定して眼の位置を検出する眼の位置検出
手段と、眼を含む所定領域内で縦方向の画素列に沿う濃
度の片方向のピークの、その前後の濃度微分値が所定値
を越える画素を特定して第2のポイントを抽出する第2
のポイント抽出手段と、隣接する画素列の画素列方向に
近接した第2のポイントの有無による顔の横方向への連
続性を判定する連続性判定手段と、連続した第2のポイ
ントの抽出データを基に眼の開度を検出する眼の開度検
出手段と、前記眼の開度に基づき眼の開閉状態の変化か
ら覚醒度を判定することを特徴とする居眠り状態検出装
置。
1. A doze state detection device for processing face image data to detect a doze state, comprising: image input means for inputting a face image; and detecting pixel density along a vertical pixel row of the face. Adjacent to the density detection means, a first point extraction means for identifying a pixel having a density differential value before and after a unidirectional peak of the density along the pixel row exceeding a predetermined value, and extracting a first point, Curve group extracting means for connecting the first points that are close to each other in the pixel row direction of the pixel row to extract a curve group extending in the lateral direction of the face; An eye position detecting means for detecting a position, and a pixel in which a density differential value before and after a unidirectional peak of density along a vertical pixel row within a predetermined region including the eye exceeds a predetermined value is specified. Second to extract 2 points
Point extraction means, continuity determination means for determining the continuity of the face in the lateral direction depending on the presence or absence of the second points that are adjacent to each other in the pixel row direction of the adjacent pixel row, and the extracted data of the continuous second points. An eye opening detection means for detecting an eye opening based on the above, and a doze state detecting device characterized by determining an awakening degree from a change in an open / closed state of the eye based on the eye opening.
【請求項2】 前記第1のポイント抽出手段あるいは第
2のポイント抽出手段は、前記画素列に沿う走査で、所
定値を越える濃度の最小微分値を負微分値区間から求め
るとともに、微分値が負から正に反転する画素を記憶
し、続いた正微分値区間から前記とは別の所定値を越え
る最大微分値を検出することによって、前記微分値が負
から正に反転する画素を抽出し第1あるいは第2のポイ
ントとすることを特徴とする請求項1記載の居眠り状態
検出装置。
2. The first point extracting means or the second point extracting means obtains a minimum differential value of a density exceeding a predetermined value from a negative differential value section by scanning along the pixel row, and the differential value is By storing the pixel that is inverted from negative to positive and detecting the maximum differential value that exceeds a predetermined value different from the above from the subsequent positive differential value section, the pixel whose differential value is inverted from negative to positive is extracted. The dozing state detection device according to claim 1, wherein the first or second point is set.
【請求項3】 前記第1のポイント抽出手段あるいは第
2のポイント抽出手段は、前記画素列に沿う走査で、所
定値を越える濃度の最小微分値を負微分値区間から求め
るとともに、微分値が負から正に反転する画素を記憶
し、続いた所定区間から前記とは別の所定値を越える正
微分値を検出することによって、前記微分値が負から正
に反転する画素を抽出し第1あるいは第2のポイントと
することを特徴とする請求項1記載の居眠り状態検出装
置。
3. The first point extracting means or the second point extracting means obtains a minimum differential value of a density exceeding a predetermined value from a negative differential value section by scanning along the pixel row, and the differential value is A pixel in which the differential value is inverted from negative to positive is extracted by storing a pixel that is inverted from negative to positive and detecting a positive differential value that exceeds a predetermined value different from the above from a predetermined interval that follows. Alternatively, the second point is set, and the dozing state detection device according to claim 1.
【請求項4】 前記第1のポイント抽出手段あるいは第
2のポイント抽出手段は、前記最小微分値と前記正微分
値の大きさ判定を行なう所定値を越える最初の正微分値
との画素間の距離が判定値以上の場合には、前記微分値
が負から正に反転する画素を第1あるいは第2のポイン
トの抽出から除外することを特徴とする請求項3記載の
居眠り状態検出装置。
4. The first point extracting means or the second point extracting means is between pixels of the minimum differential value and the first positive differential value exceeding a predetermined value for judging the magnitude of the positive differential value. The doze state detection device according to claim 3, wherein when the distance is equal to or larger than a determination value, the pixel whose differential value is inverted from negative to positive is excluded from the extraction of the first or second point.
【請求項5】 前記第1のポイント抽出手段あるいは第
2のポイント抽出手段は、前記正微分値の大きさ判定を
行なう所定値を越える最初の正微分値が検出される前
に、前記最小微分値よりさらに小さい値を有する他の最
小微分値がある場合には、前記微分値が負から正に反転
する画素を第1あるいは第2のポイントの抽出から除外
することを特徴とする請求項3または4記載の居眠り状
態検出装置。
5. The first point extraction means or the second point extraction means is configured to detect the minimum differential value before a first positive differential value exceeding a predetermined value for determining the magnitude of the positive differential value is detected. 4. When there is another minimum differential value having a value smaller than the value, the pixel whose differential value is inverted from negative to positive is excluded from the extraction of the first or second point. Or the doze state detection device according to 4.
【請求項6】 前記第1のポイント抽出手段あるいは第
2のポイント抽出手段は、前記微分値が負から正に反転
する画素に続いて、濃度変化のない0微分値の画素が所
定数以上存在する場合には、前記微分値が負から正に反
転する画素を第1あるいは第2のポイントの抽出から除
外することを特徴とする請求項2、3、4または5記載
の居眠り状態検出装置。
6. The first point extraction means or the second point extraction means has a predetermined number or more of 0 differential value pixels having no density change following the pixel whose differential value is inverted from negative to positive. In that case, the dozing state detection device according to claim 2, 3, 4 or 5, wherein a pixel whose differential value is inverted from negative to positive is excluded from the extraction of the first or second point.
【請求項7】 前記最大微分値あるいは正微分値の大き
さ判定を行なう所定値は前記最小微分値に応じて大きさ
が変化するものであることを特徴とする請求項2、3、
4または5記載の居眠り状態検出装置。
7. The predetermined value for determining the magnitude of the maximum differential value or the positive differential value has a magnitude that changes according to the minimum differential value.
The doze state detection device according to 4 or 5.
JP05563497A 1997-02-24 1997-02-24 Dozing state detection device Expired - Fee Related JP3500891B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP05563497A JP3500891B2 (en) 1997-02-24 1997-02-24 Dozing state detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP05563497A JP3500891B2 (en) 1997-02-24 1997-02-24 Dozing state detection device

Publications (2)

Publication Number Publication Date
JPH10236181A JPH10236181A (en) 1998-09-08
JP3500891B2 true JP3500891B2 (en) 2004-02-23

Family

ID=13004235

Family Applications (1)

Application Number Title Priority Date Filing Date
JP05563497A Expired - Fee Related JP3500891B2 (en) 1997-02-24 1997-02-24 Dozing state detection device

Country Status (1)

Country Link
JP (1) JP3500891B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3797253B2 (en) * 2002-03-14 2006-07-12 日産自動車株式会社 Gaze direction detection device
JP4162503B2 (en) 2003-01-31 2008-10-08 富士通株式会社 Eye state determination device, eye state determination method, and computer program
US7742621B2 (en) * 2006-06-13 2010-06-22 Delphi Technologies, Inc. Dynamic eye tracking system

Also Published As

Publication number Publication date
JPH10236181A (en) 1998-09-08

Similar Documents

Publication Publication Date Title
JP2541688B2 (en) Eye position detection device
EP1589485B1 (en) Object tracking and eye state identification method
JP4135123B2 (en) Display processing device
US7418112B2 (en) Pedestrian detection apparatus
EP1933256B1 (en) Eye closure recognition system and method
JPH0944685A (en) Face image processor
JP4584120B2 (en) Road marking line detection device, road marking line detection method, road marking line detection program
KR20040053344A (en) Method and system for improving car safety using image-enhancement
US6718050B1 (en) Face-image processing apparatus
JP4989249B2 (en) Eye detection device, dozing detection device, and method of eye detection device
JP2822799B2 (en) Driver status detection device
JP3312562B2 (en) Dozing state detection device
JP4082203B2 (en) Open / close eye determination device
JP2000198369A (en) Eye state detecting device and doze-driving alarm device
JP4107087B2 (en) Open / close eye determination device
JP3500891B2 (en) Dozing state detection device
JP2936943B2 (en) Driver status detection device
JP3444115B2 (en) Dozing state detection device
JPH1044824A (en) Driver's-eye open/closed state determination device for vehicle
JP2836238B2 (en) Driving car eye position detection device and state detection device
JP4781292B2 (en) Closed eye detection device, dozing detection device, closed eye detection method, and closed eye detection program
JP2000199703A (en) Device for detecting state of eyes and device for warning on dozing at wheel
JPH09128548A (en) Vehicle detecting method
JP3465566B2 (en) Eye position detection device
JPH03202045A (en) Detecting device for state of driver

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

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

Free format text: PAYMENT UNTIL: 20081212

Year of fee payment: 5

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

Free format text: PAYMENT UNTIL: 20091212

Year of fee payment: 6

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

Free format text: PAYMENT UNTIL: 20101212

Year of fee payment: 7

LAPS Cancellation because of no payment of annual fees