JP3455752B2 - Age estimation device and age display control method - Google Patents
Age estimation device and age display control methodInfo
- Publication number
- JP3455752B2 JP3455752B2 JP14694593A JP14694593A JP3455752B2 JP 3455752 B2 JP3455752 B2 JP 3455752B2 JP 14694593 A JP14694593 A JP 14694593A JP 14694593 A JP14694593 A JP 14694593A JP 3455752 B2 JP3455752 B2 JP 3455752B2
- Authority
- JP
- Japan
- Prior art keywords
- age
- face
- data
- face image
- address
- 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
Links
Landscapes
- Processing Or Creating Images (AREA)
- Image Processing (AREA)
- Image Analysis (AREA)
Description
【0001】[0001]
【産業上の利用分野】本発明は、年齢推定装置および年
齢表示制御方法に係わり、詳しくは顔又は顔画像から推
論によって年齢を推定可能な年齢推定装置および年齢表
示制御方法に関する。BACKGROUND OF THE INVENTION The present invention relates to an age estimation device and year.
The present invention relates to an age display control method , more specifically, an age estimation device and an age table capable of estimating age by inference from a face or a face image.
Indication control method .
【0002】[0002]
【従来の技術】一般的に、人間は他人の顔を見てあたら
ずとも遠からずの年齢を推測することができる能力をも
っているものの、自己の健康管理などの見地から、自己
の顔の年齢が平均的な人物の顔の年齢と近似の年齢であ
るか、あるいは極端に離れた年齢になっているかを客観
的に確認したいことがある。また、犯罪捜査では犯人の
検挙の実効を期する上で、犯人目撃者により作成された
モンタージュ写真からその犯人の年齢を推定したいこと
がある。2. Description of the Related Art Generally, human beings have the ability to infer the age of a person without looking at the face of others, but from the viewpoint of managing their own health, the age of their own face is There are times when you want to objectively check whether the age is close to the average person's face or is extremely distant. Also, in the criminal investigation, in order to make the arrest of the criminal effective, it is sometimes desired to estimate the age of the criminal from the montage photograph created by the criminal witness.
【0003】[0003]
【発明が解決しようとする課題】しかしながら、従来、
このような要望を満足することができるものはなかっ
た。したがって、例えば顔画像から対応する客観的な年
齢を迅速かつ容易に知ることはできなかった。また、平
均的な年齢との対比結果を容易に知ることもできなかっ
た。[Problems to be Solved by the Invention]
There is nothing that can satisfy such a demand. Therefore, for example, it has not been possible to quickly and easily know the corresponding objective age from the face image. Moreover, it was not possible to easily know the result of comparison with the average age.
【0004】そこで本発明は、作成された顔又は顔画像
から客観的に年齢を迅速かつ容易に推定可能であるとと
もに、入力され表示されている実際の年齢と、顔又は顔
画像に基づいて推定された推定の年齢との大小を、表示
中の顔又は顔画像を見ながら比較検討することができ、
表示中の顔又は顔画像が実際の年齢より若く見えるか、
年老いて見えるかの判断を迅速かつ確実に確認すること
が可能な年齢推定装置および年齢表示制御方法を提供す
ることを目的としている。Therefore, according to the present invention, the age can be objectively and quickly estimated from the created face or face image, and the actual age that is input and displayed and the face or face can be estimated.
Display the size with the estimated age, estimated based on the image
You can compare and look at the inside face or face image,
Whether the face or face image being displayed looks younger than the actual age,
Promptly and surely confirming the judgment of whether to look old
It is an object of the present invention to provide an age estimation device and an age display control method capable of controlling the age .
【0005】[0005]
【課題を解決するための手段】上記目的達成のため、本
発明による年齢推定装置は、次の構成を備えている。す
なわち、請求項1に記載の発明は、複数のパーツ画像を
組み合せて顔画像を作成する顔画像作成手段と、この顔
画像作成手段によって作成された顔画像の特徴を検出す
る顔特徴検出手段と、この顔特徴検出手段により検出さ
れた特徴を入力パラメータとして所定のファジールール
に従ってファジー推論を行い、このファジー推論の結果
に基づいて、前記顔画像作成手段によって作成された顔
画像の年齢を推定する年齢推定手段と、前記顔画像作成
手段により作成された顔画像に対応する実際の年齢を入
力する年齢入力手段と、この年齢入力手段により入力さ
れた実際の年齢、前記年齢推定手段により推定された推
定の年齢、および、前記顔画像作成手段によって作成さ
れた顔画像を同じ画面上に表示するように制御する表示
制御手段と、を備えたことを特徴とする。To achieve the above object, the age estimating device according to the present invention has the following configuration. That is, the invention according to claim 1 includes a face image creating means for creating a face image by combining a plurality of part images, and a face feature detecting means for detecting a feature of the face image created by the face image creating means. , Performing fuzzy inference according to a predetermined fuzzy rule using the feature detected by the face feature detecting means as an input parameter, and estimating the age of the face image created by the face image creating means based on the result of the fuzzy inference. Age estimation means and face image creation
Enter the actual age corresponding to the face image created by
The age input method to be used and the age input method
Actual age, estimated by the age estimation means
A certain age and created by the face image creation means
Display to control the displayed face image on the same screen
And a control means .
【0006】請求項2に記載に記載の発明は、顔の特徴
を検出する顔特徴検出手段と、 この顔特徴検出手段に
より検出された顔の特徴を表す顔特徴データを入力デー
タとして所定のファジールールに従ってファジー推論を
行い、このファジー推論の結果に基づいて前記顔の年齢
を推定する年齢推定手段と、前記顔特徴検出手段により
検出される顔に対応する実際の年齢を入力する年齢入力
手段と、この年齢入力手段により入力された実際の年
齢、前記年齢推定手段により推定された推定の年齢、お
よび、前記前記顔特徴検出手段により検出される顔を同
じ画面上に表示するように制御する表示制御手段と、を
備えたことを特徴とする。According to the second aspect of the present invention, a face feature detecting means for detecting face features and face feature data representing the face features detected by the face feature detecting means are used as input data for a predetermined fuzzy operation. The fuzzy inference is performed according to a rule, and the age estimating means for estimating the age of the face based on the result of the fuzzy inference, and the face feature detecting means.
Age input to enter the actual age corresponding to the detected face
Means and the actual year entered by this age input means
Age, the estimated age estimated by the age estimating means,
The face detected by the face feature detection means
Display control means for controlling the same screen to be displayed .
【0007】請求項3に記載の発明は、記憶されている
顔を表示させる第1の表示制御手段と、この第1の表示
制御手段の制御により表示されている顔の特徴を検出す
る顔特徴検出手段と、この顔特徴検出手段により検出さ
れた顔の特徴に基づいて、前記顔の年齢を推定する年齢
推定手段と、前記第1の表示制御手段の制御により顔を
表示した後、当該顔に対応する実際の年齢を入力する年
齢入力手段と、この年齢入力手段により入力された実際
の年齢と前記年齢推定手段により推定された推定の年齢
とを前記表示されている顔と同じ画面上に表示するよう
に制御する第2の表示制御手段と、を備えたことを特徴
とする。According to a third aspect of the present invention, there is provided a first display control means for displaying the stored face, and a face feature for detecting the feature of the face displayed under the control of the first display control means. The detecting means, the age estimating means for estimating the age of the face based on the face feature detected by the face feature detecting means, and the control of the first display control means
After displaying, enter the actual age for the face
Age input means and the actual input by this age input means
Age and estimated age estimated by the age estimating means
So that and are displayed on the same screen as the displayed face.
And a second display control means for controlling .
【0008】[0008]
【作用】請求項1の発明によれば、複数のパーツ画像を
組み合せて顔画像を作成し、この作成された顔画像の特
徴を検出し、その後、この検出された特徴を入力パラメ
ータとして所定のファジールールに従ってファジー推論
を行い、このファジー推論の結果に基づいて、前記作成
された顔画像の年齢を推定することができる。一方、前
記作成された顔画像に対応する実際の年齢を入力する
と、この入力された実際の年齢、前記推定された推定の
年齢、および、前記作成された顔画像を同じ画面上に表
示することができる。請求項2の発明によれば、顔の特
徴を検出し、この検出された顔の特徴を表す顔特徴デー
タを入力データとして所定のファジールールに従ってフ
ァジー推論を行い、このファジー推論の結果に基づいて
前記顔の年齢を推定することができる。一方、前記検出
される顔に対応する実際の年齢を入力すると、この入力
された実際の年齢、前記推定された推定の年齢、およ
び、前記前記検出される顔を同じ画面上に表示すること
ができる。請求項3の発明によれば、記憶されている顔
を表示させた後、この表示されている顔の特徴を検出す
ると、この検出された顔の特徴に基づいて、前記顔の年
齢を推定することができる。一方、前記顔を表示した
後、当該顔に対応する実際の年齢を入力すると、この入
力された実際の年齢と前記推定された推定の年齢とを前
記表示されている顔と同じ画面上に表示することができ
る。According to the first aspect of the invention, a face image is created by combining a plurality of part images, the features of the created face image are detected, and then the detected features are used as input parameters to determine a predetermined value. It is possible to perform fuzzy inference according to a fuzzy rule and estimate the age of the created face image based on the result of the fuzzy inference. Meanwhile, before
Enter the actual age corresponding to the created face image
And the actual age entered, the estimated
Display the age and the created face image on the same screen.
Can be shown . According to the invention of claim 2, the facial features are detected, fuzzy inference is performed according to a predetermined fuzzy rule using the facial feature data representing the detected facial features as input data, and based on the result of the fuzzy inference. The age of the face can be estimated. Meanwhile, the detection
Enter the actual age corresponding to the face
Actual age, estimated age, and
And displaying the detected face on the same screen
You can According to the invention of claim 3, when the stored face is displayed and then the feature of the displayed face is detected, the age of the face is estimated based on the detected face feature. be able to. On the other hand, the face was displayed
After that, if you enter the actual age corresponding to the face, this
Forced actual age and said estimated estimated age
It can be displayed on the same screen as the displayed face.
It
【0009】したがって、本発明によれば、特殊な技能
を必要とすることなく、顔又は顔画像から客観的な年齢
を迅速かつ容易に推定することができる。そればかりで
なく、入力され表示されている実際の年齢と、顔又は顔
画像に基づいて推定された推定の年齢との大小を、表示
中の顔又は顔画像を見ながら比較検討することができ、
表示中の顔又は顔画像が実際の年齢より若く見えるか、
年老いて見えるかの判断を迅速かつ確実に確認すること
ができる。 Therefore , according to the present invention, it is possible to quickly and easily estimate the objective age from the face or the face image without requiring any special skill. Not only that, but the actual age entered and displayed and the face or face
Display the size with the estimated age, estimated based on the image
You can compare and look at the inside face or face image,
Whether the face or face image being displayed looks younger than the actual age,
Promptly and surely confirming the judgment of whether to look old
You can
【0010】[0010]
【実施例】以下、図面を参照して本発明の実施例につい
て説明する。図1は本発明に係る年齢推定装置の一実施
例を示す構成図である。図1において、年齢推定装置は
大きく分けてCPU1、特徴スイッチ2、カーソルスイ
ッチ3、表示スイッチ4、位置修正スイッチ5、年齢推
定スイッチ6、年齢入力キー7、プログラムROM8、
ワークRAM9、パーツ画面ROM10、VRAM1
1、テーブルROM12および表示部13によって構成
される。Embodiments of the present invention will be described below with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of an age estimating device according to the present invention. In FIG. 1, the age estimating device is roughly divided into a CPU 1, a characteristic switch 2, a cursor switch 3, a display switch 4, a position correcting switch 5, an age estimating switch 6, an age input key 7, a program ROM 8,
Work RAM 9, parts screen ROM 10, VRAM 1
1, a table ROM 12 and a display unit 13.
【0011】CPU1は装置全体を制御するもので、特
徴スイッチ2、カーソルスイッチ3、表示スイッチ4、
位置修正スイッチ5、年齢推定スイッチ6、年齢入力キ
ー7によって顔のパーツや特徴等の指定操作が行われる
と、その操作情報に応じてプログラムROM8に格納さ
れているプログラムに従い、年齢データに応じた顔特徴
データをテーブルROM12から読み出し、その顔特徴
データに応じてパーツ画面ROM10から対応する各パ
ーツ毎のパーツパターンを読み出して組み合せることに
より、顔画像(例えば、自分の顔あるいは他人の顔)を
作成する処理を行う。また、作成された顔画像について
の年齢に応じた特徴データを検出し、この検出データを
入力パラメータとして所定のファジールールに従ってフ
ァジー推論を行い、その推論結果に基づいて作成された
顔画像の年齢を推定する処理を行う。CPU1は顔画像
作成手段、特徴データ検出手段、顔特徴検出手段、実年
齢指定定手段および年齢推定手段としての機能を有す
る。The CPU 1 controls the entire apparatus, and includes a characteristic switch 2, a cursor switch 3, a display switch 4,
When the position correction switch 5, the age estimation switch 6, and the age input key 7 are used to specify the face parts, features, etc., according to the operation information, according to the program stored in the program ROM 8, the age data is displayed. A face image (for example, one's face or the face of another person) is read out by reading out the face feature data from the table ROM 12, and reading out and combining the corresponding part patterns for each part from the part screen ROM 10 according to the face feature data. Perform the process of creating. Also, the feature data corresponding to the age of the created face image is detected, fuzzy inference is performed according to a predetermined fuzzy rule using the detected data as an input parameter, and the age of the face image created based on the inference result is calculated. Perform an estimation process. The CPU 1 has functions as a face image creating means, a feature data detecting means, a face feature detecting means, an actual age designation determining means, and an age estimating means.
【0012】特徴スイッチ2は顔の特徴を指定するスイ
ッチであり、顔を構成する各パーツ(例えば、髪型、顔
の輪郭、眉、目、鼻、口等)を順番に指定するものであ
る。本実施例では顔を構成する各パーツとして6個用意
されている。カーソルスイッチ3は表示部13に表示さ
れた顔画像について、顔を構成する各パーツ(例えば、
髪、眉、目、鼻、口等)を択一的に選択するものであ
る。具体的には、画面上のカーソル位置(例えば、点滅
状態で表される)を動かすことにより、パーツを選択す
る。なお、カーソルスイッチ3の他に、マウス等を用い
てもよい。マウスの使用は他のスイッチについても同様
である。The feature switch 2 is a switch for designating the features of the face, and sequentially designates each part (for example, hairstyle, face outline, eyebrows, eyes, nose, mouth, etc.) that constitutes the face. In this embodiment, six parts are prepared as each part that constitutes the face. For the face image displayed on the display unit 13, the cursor switch 3 is provided for each part (eg,
Hair, eyebrows, eyes, nose, mouth, etc.). Specifically, the part is selected by moving the cursor position on the screen (for example, represented by a blinking state). A mouse or the like may be used instead of the cursor switch 3. The use of the mouse is the same for other switches.
【0013】表示スイッチ4は顔画像を表示部13に表
示させて修正したり、作成した顔画像が所望の状態であ
るとき、でき上がり画面としてセットしたりするときに
操作されるものである。位置修正スイッチ5は顔を構成
する各パーツ(特に、眉)の位置を修正するときに操作
されるもので、例えばアップおよびダウン式の押しボタ
ンたタイプのスイッチからなる。年齢推定スイッチ6は
作成された顔画像の年齢を推定するときに操作されるも
のである。年齢入力キー7は年齢に関するデータを入力
して指定するもので、年齢に関するデータとしては実際
の年齢、生年月日、何年先、何年後がある。年齢入力キ
ー7は、例えば年齢あるいは生年月日を簡単に入力でき
るようにテンキーが用いられる。年齢入力キー7により
入力された年齢は図16に示すように表示部13に表示
される。The display switch 4 is operated when the face image is displayed on the display unit 13 for correction, or when the created face image is in a desired state or set as a finished screen. The position correction switch 5 is operated when correcting the position of each part (especially, eyebrows) forming a face, and is composed of, for example, an up and down push button type switch. The age estimation switch 6 is operated when estimating the age of the created face image. The age input key 7 is used for inputting and specifying data relating to age, and as data relating to age, there are actual age, date of birth, year before, and year after. As the age input key 7, for example, a ten-key is used so that the age or date of birth can be easily entered. The age input by the age input key 7 is displayed on the display unit 13 as shown in FIG.
【0014】プログラムROM8はCPU1の制御プロ
グラムを格納しており、その内容は後述の各図に示され
る。ワークRAM9はCPU1の行う制御においてワー
クエリアとして用いられる。パーツ画面ROM10は顔
画像を表す各パーツ毎のパーツパターンを記憶してお
り、パーツパターン記憶手段を構成する。ここで、パー
ツ画面ROM10に記憶されている顔のパーツ種類
(N)としては顔を構成する各種のものがあり、例えば
髪型、顔の輪郭、目、眉毛、鼻、口というに複数種用意
されている。なお、この他、肩、胸部、胴部、足などの
パーツ種類(N)を用意してもよい。The program ROM 8 stores a control program for the CPU 1, the contents of which are shown in the respective figures described later. The work RAM 9 is used as a work area in the control performed by the CPU 1. The parts screen ROM 10 stores a parts pattern for each part representing a face image, and constitutes a parts pattern storage means. Here, as the face part types (N) stored in the parts screen ROM 10, there are various face parts, and a plurality of types are prepared, for example, hairstyle, face outline, eyes, eyebrows, nose, mouth. ing. In addition to this, parts types (N) such as shoulders, chest, torso, and feet may be prepared.
【0015】パーツパターンは各パーツの変形態様(特
に、年齢に応じた特徴を有する形状のパーツパターン)
であり、例えば男性の髪型について各種のタイプに対応
して複数種のものが予め設けられ、パーツ画面ROM1
0に記憶されている。この場合、顔画像を構成する各種
のパーツパターンは、顔の輪郭、目、眉毛などの各パー
ツ毎で、かつ年齢に応じて複数用意されている。また、
各パーツパターンについては、さらにそのバリエーショ
ンが予め用意されて記憶されており、例えば顔の輪郭パ
ターンのバリエーションとして16種類の各輪郭パター
ンがある。これらは多様な顔の輪郭が存在するという実
情に合せて設けられているものである。The part pattern is a modified mode of each part (particularly, a part pattern having a shape according to age)
For example, a plurality of types of male hairstyles corresponding to various types are provided in advance, and the parts screen ROM 1
It is stored in 0. In this case, various parts patterns that form the face image are prepared for each part such as the contour of the face, eyes, and eyebrows, and according to age. Also,
For each part pattern, variations thereof are prepared and stored in advance. For example, there are 16 types of contour patterns as variations of facial contour patterns. These are provided according to the actual situation in which various face contours exist.
【0016】VRAM11は顔画像を作成するときに、
その作成画像を1画面単位で記憶するもので、VRAM
11としては、例えば半導体メモリが用いられる。テー
ブルROM12は年齢に応じた顔特徴データを記憶する
もので、顔特徴データ記憶手段を構成する。年齢に応じ
た顔特徴データとしては、顔の縦横比、顔の全体に対す
る目の高さ、目の大きさ、しわの本数、髪際の後退度等
がある。テーブルROM12に記憶されている顔特徴デ
ータを具体的に説明すると、例えば縦軸に顔の特徴を表
すパーツとして目尻のしわ、額のしわ、ほおのしわ等・
・・を配置し、横軸に30歳から順次5歳ずつ年齢を区
切って100歳までの特徴を配置するような構成で顔特
徴データが予め用意される。この場合、例えば目尻のし
わに着目すると、30歳では目尻のしわがないが、年齢
が上がるに従って目尻のしわが増えるように年齢に応じ
た顔の特徴(この場合は目尻のしわ)が予め記憶されて
いる。また、テーブルROM12は後述するファジー推
論において使用するメンバシップ関数を表すテーブルデ
ータを記憶している。The VRAM 11 is used when a face image is created.
The created image is stored on a screen-by-screen basis.
For example, a semiconductor memory is used as 11. The table ROM 12 stores face characteristic data according to age and constitutes a face characteristic data storage means. The face feature data according to age includes face aspect ratio, eye height with respect to the whole face, eye size, number of wrinkles, receding degree of hair. The facial feature data stored in the table ROM 12 will be described in detail. For example, the vertical axis represents the facial features, such as wrinkles around the eyes, wrinkles on the forehead, and wrinkles on the cheeks.
The facial feature data is prepared in advance in such a manner that the features up to 100 are arranged by dividing the ages from 30 to 5 on the horizontal axis in sequence on the horizontal axis. In this case, for example, paying attention to the wrinkles on the outer corners of the eyes, there is no wrinkle on the outer corners of the eyes at the age of 30, but the facial features (in this case, the wrinkles on the outer corners of the eyes) are stored in advance so that the wrinkles on the outer corners of the eyes increase as the age increases. Has been done. Further, the table ROM 12 stores table data representing a membership function used in fuzzy inference described later.
【0017】表示部(表示手段)13はCPU1によっ
て作成処理される顔画像および推定された年齢等を表示
するもので、VRAM11との間でデータの授受を行い
ながら、作成途中で各パーツを選択したあとの顔画像を
表示したり、完成した顔画像および推定年齢等を表示し
たりする。表示部13は顔画像等を表示するために、例
えばTVディスプレイを有している。なお、画像等を表
示する部分はTVディスプレイに限らず、例えば専用の
モニタ装置、あるいはCRTを有するものでなく、LC
D等の液晶によって画像を表示するものでもよい。ある
いは、他の用途にも兼用されているものを用いてもよ
い。A display unit (display means) 13 displays a face image created by the CPU 1, an estimated age, etc., and selects each part during creation while exchanging data with the VRAM 11. The displayed face image is displayed, or the completed face image and estimated age are displayed. The display unit 13 has, for example, a TV display for displaying a face image and the like. It should be noted that the portion for displaying images and the like is not limited to the TV display, and may be, for example, a dedicated monitor device or a CRT, and may be an LC
An image may be displayed by a liquid crystal such as D. Alternatively, one that is also used for other purposes may be used.
【0018】ここで、年齢推定処理のファジールールに
ついて説明する。図2(a)、(b)は前件部のメンバ
ーシップ関数で、そのうち図2(a)は顔の縦横比に関
するメンバーシップ関数、図2(b)は目の位置に関す
るメンバーシップ関数である。また、図2(c)は後件
部におけるファジー出力で、年齢に関するメンバーシッ
プ関数である。Here, the fuzzy rule of the age estimation process will be described. 2A and 2B are membership functions of the antecedent part, of which FIG. 2A is a membership function relating to the aspect ratio of the face, and FIG. 2B is a membership function relating to the position of the eyes. . Further, FIG. 2C is a fuzzy output in the consequent part, which is a membership function regarding age.
【0019】なお、各メンバーシップ関数におけるラベ
ルの意味は、次の通りである。
FS:「顔の縦横比が小さい」FM:「顔の縦横比が中
くらいである」
FL:「顔の縦横比が大きい」
EL:「目の位置が低い」
EM:「目の位置が中くらいである」
EH:「目の位置が高い」
YY:「年齢が若い」
YM:「年齢が中年」
YO:「年齢が高い」
なお、「年齢が中年」は基準とする年齢(例えば、30
歳)は対象となる人物層に応じて適切に定めればよい。The meaning of the label in each membership function is as follows. FS: "Face aspect ratio is small" FM: "Face aspect ratio is medium" FL: "Face aspect ratio is large" EL: "Eye position is low" EM: "Eye position is medium" EH: "Eye position is high" YY: "Age is young" YM: "Age is middle age" YO: "Age is high" In addition, "Age is middle age" is a reference age (for example, , 30
The age may be appropriately set according to the target person group.
【0020】ファジィルールは、いわゆるIF、THE
N(もし、ならば)の形式で表現される。本実施例で
は、以下の3つのルールを採用している。
ルールA:IF 顔の縦横比=FL AND 目の位置=
EL THEN ファジー出力
=YY(年齢は若い)
ファジィルールAは、「もし、顔の縦横比が大きく、か
つ目の位置が低い場合には年齢は若い。」という意味で
ある。
ルールB:IF 顔の縦横比=FM AND 目の位置=
EM THEN ファジー出力=YM(年齢は中年)
ファジィルールBは、「もし、顔の縦横比が中くらい
で、かつ目の位置が中くらいの場合には年齢は中年であ
る。」という意味である。
ルールC:IF 顔の縦横比=FS AND 目の位置=
EH THEN ファジー出力=YO(年齢は高い)
ファジィルールCは、「もし、顔の縦横比が小さく、か
つ目の位置が高い場合には年齢は高い。」という意味で
ある。The fuzzy rules are so-called IF, THE
It is expressed in the form N (if, if). In this embodiment, the following three rules are adopted. Rule A: IF Face Aspect Ratio = FL AND Eye Position =
EL THEN Fuzzy output = YY (younger age) The fuzzy rule A means "if the face aspect ratio is large and the eye position is low, the age is young." Rule B: IF Face Aspect Ratio = FM AND Eye Position =
EM THEN Fuzzy output = YM (age is middle age) The fuzzy rule B means "if the face aspect ratio is medium and the eye position is medium, the age is middle age". Is. Rule C: IF Face Aspect Ratio = FS AND Eye Position =
EH THEN Fuzzy output = YO (older age) The fuzzy rule C means "if the face aspect ratio is small and the eye position is high, the age is high".
【0021】次に、作用を説明する。図3は顔画像作成
・年齢推定処理のメインプログラムを示すフローチャー
トである。このプログラムがスタートすると、まずステ
ップS10で初期設定を行う。初期設定では各種レジス
タ、ワークRAM9、VRAM11のクリア、サブルー
チンのイニシャライズ、フラグのリセット等が行われ
る。次いで、ステップS12でポインタMを[0]にク
リアする。ポインタMは顔の特徴、年齢等の情報を入力
するときの指定用として用いられるもので、その値はC
PU1内の対応するレジスタに格納される。Next, the operation will be described. FIG. 3 is a flowchart showing a main program of face image creation / age estimation processing. When this program starts, first, in step S10, initialization is performed. In the initial setting, various registers, the work RAM 9, the VRAM 11 are cleared, the subroutine is initialized, the flags are reset, and the like. Next, in step S12, the pointer M is cleared to [0]. The pointer M is used as a designation when inputting information such as facial features and age, and its value is C
It is stored in the corresponding register in PU1.
【0022】次いで、ステップS14でVRAM11の
内容を表示部13に表示させる。これにより、例えば作
成途中で各パーツごとの所要のパーツパターンの組み合
せで作成された顔画像や完成した顔画像、さらにはファ
ジー推論結果が出た場合と、その推定結果に基づいて推
定した年齢とそのときの顔画像とが表示部13に表示さ
れる(図16参照)。そして、以後はこのステップS1
4に待機し、このとき各スイッチからの割り込み信号に
基づいて必要な処理が行われる。すなわち、各パーツを
選択するときの処理等は、全て以下に示す割り込みルー
チンで実行される。Next, in step S14, the contents of the VRAM 11 are displayed on the display unit 13. As a result, for example, a face image created by combining the required part patterns for each part in the process of creation, a completed face image, and a fuzzy inference result, and the age estimated based on the estimation result. The face image at that time is displayed on the display unit 13 (see FIG. 16). After that, this step S1
4, the necessary processing is performed based on the interrupt signal from each switch. That is, the processing for selecting each part is executed by the interrupt routine shown below.
【0023】図4は特徴スイッチ割り込みルーチンを示
すフローチャートである。特徴スイッチ2が操作される
と、この特徴スイッチ割り込みルーチンに移行する。こ
の割り込みルーチンに移行すると、まずステップS20
でポインタMを[1]だけインクリメントする。次い
で、ステップS22でポインタMが[9]に等しいか否
かを判別する。ここで、ポインタMを[9]と比較する
のは、顔の特徴を表す顔特徴データとして8個あるの
で、8個を超えた値である[9]になったか否かを判断
するためである。FIG. 4 is a flowchart showing the feature switch interrupt routine. When the characteristic switch 2 is operated, the routine proceeds to this characteristic switch interrupt routine. When the process shifts to this interrupt routine, first, step S20.
The pointer M is incremented by [1]. Next, in step S22, it is determined whether or not the pointer M is equal to [9]. Here, the pointer M is compared with [9] in order to determine whether or not the value is [9], which is a value exceeding eight, because there are eight pieces of facial feature data representing facial characteristics. is there.
【0024】ポインタMが[9]に等しくなければ、ス
テップS26に進んでワークRAM9における(M+O
FFSET1)番地のデータをスタートアドレスとして
画面データの内容をVRAM11に転送する。例えば、
M=1のときには(1+OFFSET1)番地のデータ
がスタートアドレスとなってワークRAM9の画面デー
タの内容がVRAM11に転送される。If the pointer M is not equal to [9], the process proceeds to step S26, where (M + O in the work RAM 9).
The contents of the screen data are transferred to the VRAM 11 using the data of the address FFSET1) as the start address. For example,
When M = 1, the data at the address (1 + OFFSET1) becomes the start address and the contents of the screen data in the work RAM 9 are transferred to the VRAM 11.
【0025】ここで、ワークRAM9には図5に示すよ
うに、(OFFSET1+1)番地から主にOFFSE
T4番地までの間に各種の必要なデータが一時的に格納
される。例えば、(OFFSET1+1)番地をアドレ
スとするエリアは、ポインタM=1によって指定される
ADD1なるデータが格納され、このデータはパーツ画
面ROM10に記憶されている各パーツ毎のアドレスに
対応する。同様に、(OFFSET1+2)番地をアド
レスとするエリアは、ポインタM=2によって指定され
るADD2なるデータが格納され、以下、(OFFSE
T1+7)番地をアドレスとするエリアは、ポインタM
=7によって指定されるADD7なるデータデータが格
納される。Here, as shown in FIG. 5, the work RAM 9 mainly stores OFFSE from the address (OFFSET1 + 1).
Various necessary data are temporarily stored until the address T4. For example, in the area having the address (OFFSET1 + 1) as address, data ADD1 designated by the pointer M = 1 is stored, and this data corresponds to the address of each part stored in the parts screen ROM 10. Similarly, in the area whose address is (OFFSET1 + 2), the data ADD2 designated by the pointer M = 2 is stored.
The area whose address is T1 + 7) is the pointer M
Data data ADD7 designated by = 7 is stored.
【0026】ワークRAM9の他のエリアを説明する
と、(OFFSET2+1)番地、(OFFSET2+
2)番地・・・・はカーソル位置に対応するデータが格
納される。(OFFSET3+1)番地、(OFFSE
T3+2)番地・・・・は顔の特徴を表すデータが格納
される。具体的には、(OFFSET3+1)番地をア
ドレスとするエリアは、髪型に関するデータが格納され
るもので、データの最上位ビット(aで示す部分)には
男性あるいは女性を区別する性別パラメータが格納され
る。性別パラメータは1ビット単位であり、[1]のと
き男性を表し、[0]のとき女性を表す。The other areas of the work RAM 9 will be described. (OFFSET2 + 1) address, (OFFSET2 +)
2) Address ... Stores data corresponding to the cursor position. (OFFSET3 + 1) address, (OFFSE
The address T3 + 2) ... Stores data representing facial features. Specifically, the area whose address is (OFFSET3 + 1) stores hairstyle data, and the most significant bit (portion indicated by a) of the data stores a gender parameter for distinguishing between male and female. It The gender parameter is a 1-bit unit, and when it is [1], it represents a male, and when it is [0], it represents a female.
【0027】また、(OFFSET3+1)番地をアド
レスとするエリアのうち上位側のビット領域(上位ビッ
ト群)bには髪型に関するデータが格納され、同エリア
のうち下位側のビット領域(下位ビット群)cには髪型
に関して年齢に応じた特徴データが格納される。(OF
FSET3+2)番地をアドレスとするエリアは、顔の
輪郭に関するデータが格納されるもので、データの最上
位ビットaには性別パラメータが格納される。(OFF
SET3+2)番地をアドレスとするエリアのうち上位
ビット群bには顔の輪郭に関するデータが格納され、同
エリアのうち下位ビット群cには顔の輪郭に関して年齢
に応じた特徴データが格納される。(OFFSET3+
3)番地をアドレスとするエリアは、目に関するデータ
が格納されるもので、データの最上位ビットaには性別
パラメータが格納される。(OFFSET3+3)番地
をアドレスとするエリアのうち上位ビット群bには目に
関するデータが格納され、同エリアのうち下位ビット群
cには目に関して年齢に応じた特徴データが格納され
る。Further, in the area whose address is the address (OFFSET3 + 1), data on the hairstyle is stored in the upper bit area (upper bit group) b, and the lower bit area (lower bit group) in the same area is stored. Characteristic data according to age regarding the hairstyle is stored in c. (OF
The area whose address is FSET3 + 2) stores data relating to the contour of the face, and the sex parameter is stored in the most significant bit a of the data. (OFF
Data regarding the contour of the face is stored in the upper bit group b in the area whose address is SET3 + 2), and characteristic data regarding the contour of the face is stored in the lower bit group c in the area. (OFFSET3 +
3) The area whose address is the address stores data relating to the eyes, and the sex parameter is stored in the most significant bit a of the data. In the area whose address is (OFFSET3 + 3), the upper bit group b stores the eye data, and the lower bit group c in the same area stores the eye-related feature data.
【0028】以下、同様にして(OFFSET3+4)
番地をアドレスとするエリアは、眉に関するデータが格
納されるという具合に順次データ(例えば、鼻、口等)
が格納される。なお、顔の特徴パーツのうち、年齢に応
じて変化が著しいパーツは上述した髪型、輪郭、目の3
種類であり、したがって、年齢に応じた特徴データとし
ては、これら3種類(髪型、輪郭、目)について年齢に
応じて変化した態様が特徴データとして格納される。O
FFSET4番地には年齢に関するデータが格納され
る。Thereafter, similarly (OFFSET3 + 4)
Areas whose addresses are addresses sequentially store data about eyebrows (eg, nose, mouth, etc.)
Is stored. Among the characteristic parts of the face, the parts that change significantly according to age are the hairstyle, outline, and eye
Therefore, as the characteristic data according to age, the feature data corresponding to these three types (hairstyle, contour, eyes) changed according to age is stored as characteristic data. O
Data related to age is stored in the FFSET address 4.
【0029】さて、例えば前述したようにポインタM=
1のときには(1+OFFSET1)番地のデータがス
タートアドレスとなってワークRAM9の画面データの
内容がVRAM11に転送されるが、このときワークR
AM9における(1+OFFSET1)番地のデータは
ADD1であり、その内容は図6に示すようにパーツ画
面ROM10に記憶されている各パーツ毎の画面のうち
の1つである。図10において、ADD1のアドレスに
対応する画面データは性別を選択する画面であり、した
がって、M=1のときはADD1に対応して[01]:
男性あるいは[02]:女性のどちらかの指定を促す画
面が表れる。Now, for example, as described above, the pointer M =
When it is 1, the data of the address (1 + OFFSET1) becomes the start address and the content of the screen data of the work RAM 9 is transferred to the VRAM 11. At this time, the work R
The data at the address (1 + OFFSET1) in AM9 is ADD1 and its content is one of the screens for each part stored in the parts screen ROM 10 as shown in FIG. In FIG. 10, the screen data corresponding to the address of ADD1 is a screen for selecting the sex, and therefore when M = 1, the screen data corresponding to ADD1 is [01]:
A screen prompting to specify either male or [02]: female appears.
【0030】同様に、図6においてADD2のアドレス
に対応する画面データは髪型を選択する画面であり、例
えば[01]は髪の量が豊かな七三分け、[02]は髪
の量が薄い七三分け、・・・・・というようになってい
る。このADD2に対応して髪型の選択を促す画面する
画面が表れる。ADD3のアドレスに対応する画面デー
タは顔の輪郭を選択する画面であり、例えば[01]は
丸型、[02]は四角型、・・・・・というようになっ
ている。このADD3に対応して顔の輪郭の選択を促す
画面する画面が表れる。ADD4のアドレスに対応する
画面データは目を選択する画面であり、例えば[01]
は目が丸い二重まぶた、[02]は目が卵型、・・・・
というようになっている。このADD4に対応して目の
形の選択を促す画面する画面が表れる。Similarly, in FIG. 6, the screen data corresponding to the address of ADD2 is a screen for selecting a hairstyle. For example, [01] is seventy-three divisions with a rich hair amount, and [02] is a thin hair amount. Seventy-three divisions, and so on. A screen for prompting the selection of a hairstyle is displayed corresponding to this ADD2. The screen data corresponding to the address of ADD3 is a screen for selecting the contour of the face, and for example, [01] is a round shape, [02] is a square shape, and so on. A screen for prompting the selection of the contour of the face appears corresponding to this ADD3. The screen data corresponding to the address of ADD4 is a screen for selecting an eye, for example, [01]
Has double eyelids with round eyes, [02] has oval eyes, ...
It is supposed to be. Corresponding to this ADD4, a screen prompting the selection of the shape of the eyes appears.
【0031】ADD5のアドレスに対応する画面データ
は眉毛を選択する画面であり、例えば[01]は眉毛が
三ケ月形、[02]は眉毛がさがり型、・・・・という
ようになっている。このADD5に対応して眉毛の形の
選択を促す画面する画面が表れる。ADD6のアドレス
に対応する画面データは鼻を選択する画面であり、例え
ば[01]は鼻が大きくて高い、[02]は鼻が小さく
て低い、・・・・というようになっている。このADD
6に対応して鼻の選択を促す画面する画面が表れる。A
DD7のアドレスに対応する画面データは口を選択する
画面であり、例えば[01]、[02]、・・・・とい
うようになっている。このADD7に対応して口の選択
を促す画面する画面が表れる。また、この他にもADD
8以降のアドレスに対応する画面データが年齢の入力を
要請する画面となっており、これに対応して年齢入力キ
ー7からの年齢の入力を促す画面する画面が表れる。さ
らに、ADD8以降のアドレスに対応する画面データと
して、各パ−ツ毎のパーツパターンを格納するエリアが
ある。具体的には、髪型のパーツパターン、顔の輪郭の
パーツパターン、目のパーツパターン、・・・・という
具合に各種のパーツパターンが格納されている。The screen data corresponding to the address of the ADD 5 is a screen for selecting eyebrows. For example, [01] has crescent-shaped eyebrows, [02] has eyebrow-shaped, ... Corresponding to this ADD5, a screen prompting the selection of the eyebrow shape appears. The screen data corresponding to the address of the ADD 6 is a screen for selecting the nose. For example, [01] has a large and high nose, [02] has a small and low nose, and so on. This ADD
A screen for prompting the selection of the nose corresponding to 6 appears. A
The screen data corresponding to the address of the DD 7 is a screen for selecting a mouth, and is, for example, [01], [02], ... Corresponding to this ADD7, a screen prompting the selection of the mouth appears. In addition to this, ADD
The screen data corresponding to the addresses after 8 is a screen for requesting the input of age, and a screen for prompting the input of the age from the age input key 7 appears correspondingly. Further, there is an area for storing a part pattern for each part as screen data corresponding to addresses after ADD8. Specifically, various part patterns such as a hairstyle part pattern, a face contour part pattern, an eye part pattern, ... Are stored.
【0032】再び図4の説明に戻り、ステップS26の
処理を経ると、リターンする。そして、次の特徴スイッ
チ割り込みルーチンになると、同様の処理を繰り返す。
このとき、まずステップS20でポインタMをインクリ
メントし、ステップS22でポインタMが[9]に等し
くなると、ステップS24に進んでポインタMを[1]
に戻し、その後、ステップS26に進む。このようにし
て特徴スイッチ2が操作される度にポインタMを[1]
ずつインクリメントしていき、ポインタMが[9]に等
しくなると再びポインタMを[1]に戻すことが行われ
る。したがって、ポインタM=1に対応するワークRA
M9の(M+OFFSET1)番地のデータをスタート
アドレスとして画面データの内容がVRAM11に転送
され、以後、特徴スイッチ2が操作される度にポインタ
Mが[1]ずつインクリメントされて(M+OFFSE
T1)番地の画面データの内容がVRAM11に転送さ
れ、表示部13に表示される。Returning to the explanation of FIG. 4 again, after the processing of step S26, the process returns. Then, when the next feature switch interrupt routine is reached, similar processing is repeated.
At this time, first, the pointer M is incremented in step S20, and when the pointer M becomes equal to [9] in step S22, the process proceeds to step S24 and the pointer M is set to [1].
To step S26. Thus, every time the characteristic switch 2 is operated, the pointer M is moved to [1].
The pointer M is incremented by one, and when the pointer M becomes equal to [9], the pointer M is returned to [1] again. Therefore, the work RA corresponding to the pointer M = 1
The contents of the screen data are transferred to the VRAM 11 by using the data of the address (M + OFFSET1) of M9 as the start address, and thereafter, every time the characteristic switch 2 is operated, the pointer M is incremented by [1] (M + OFFSE).
The contents of the screen data at the address T1) are transferred to the VRAM 11 and displayed on the display unit 13.
【0033】特徴スイッチ2が操作される度毎の画面デ
ータの内容は、図6のADD1からADD7に対応する
データに応じて変化する。すなわち、特徴スイッチ2を
操作すれば、その都度、特徴スイッチ割り込みルーチン
に移行し、図6のADD1からADD7に対応するデー
タに応じた画面が表れる。オペレータは、これらの画面
を見ながら性別、髪型、目、眉毛、・・・・等について
顔の特徴を選択していくことになる。Each time the characteristic switch 2 is operated, the contents of the screen data change according to the data corresponding to ADD1 to ADD7 in FIG. That is, each time the characteristic switch 2 is operated, each time the characteristic switch 2 is operated, the characteristic switch interruption routine is executed, and a screen corresponding to the data corresponding to ADD1 to ADD7 in FIG. 6 appears. The operator selects facial features such as gender, hairstyle, eyes, eyebrows, ... While watching these screens.
【0034】図7はカーソルスイッチ割り込みルーチン
を示すフローチャートである。カーソルスイッチ3が操
作されると、このカーソルスイッチ割り込みルーチンに
移行する。この割り込みルーチンに移行すると、まずス
テップS80で顔画像データを表示中であるか否かを判
別する(例えば、表示フラグにより判断する)。これ
は、表示部13に顔画像の画面が表示されているか否か
を判断するもので、顔画像が表示されていればカーソル
が現れていないからである。したがって、画像データを
表示中であれば今回のルーチンはリターンする。FIG. 7 is a flowchart showing the cursor switch interrupt routine. When the cursor switch 3 is operated, the process proceeds to this cursor switch interrupt routine. In this interrupt routine, it is first determined in step S80 whether face image data is being displayed (for example, a display flag is used). This is because it is determined whether or not the screen of the face image is displayed on the display unit 13, and if the face image is displayed, the cursor does not appear. Therefore, if the image data is being displayed, this routine returns.
【0035】一方、顔画像データを表示中でないときは
続くステップS82に進んでワークRAM9の(M+O
FFSET2)番地のデータをカーソル位置に応じて変
更する。OFFSET2番地はカーソル位置に対応する
データを格納するものであるから、例えば、M=2のと
きは髪型に関して(OFFSET2+1)番地のデータ
がカーソル位置に応じて変更される。また、M=3のと
きは輪郭に関してOFFSET2+2番地のデータがカ
ーソル位置に応じて変更される。例えば、パーツパター
ンを選択するためにカーソルスイッチ3を操作した場合
に、輪郭に関する各種のパーツパターンのバリエーショ
ンのうちの1つをカーゾルで選択する。On the other hand, when the face image data is not being displayed, the operation proceeds to the subsequent step S82, where (M + O of the work RAM 9 is displayed.
FFSET2) Change the data of the address according to the cursor position. Since the OFFSET address 2 stores data corresponding to the cursor position, for example, when M = 2, the data of the (OFFSET2 + 1) address for the hairstyle is changed according to the cursor position. Further, when M = 3, the data of the address OFFSET2 + 2 regarding the contour is changed according to the cursor position. For example, when the cursor switch 3 is operated to select a part pattern, one of the variations of various part patterns related to the contour is selected with the aerosol.
【0036】次いで、ステップS84でカーソル位置の
表示を変更する。これにより、カーソルスイッチ3を操
作して動かした場合には、その表示位置が変更されて画
面に示される。次いで、ステップS86でポインタMが
[1]であるか否かを判別する。すなわち、性別を判断
する画面であるか否かを判別する。M=[1]のときは
ステップS88に進んで(OFFSET2+M)番地の
データが男を表すか否かを判別する。男を表すものであ
るときは、まずステップS90でN=1に戻す。Nは性
別ポインタである。これは、性別ポインタNを最小の
値、すなわち(OFFSET2+1)番地に対応するエ
リアから順次インクリメントしていくためである。(O
FFSET4+M)番地は顔の特徴を表すデータが格納
され、そのデータの最上位ビットMSB(aで示す部
分)には男性あるいは女性を区別する性別パラメータが
格納される。性別パラメータは1ビット単位であり、
「1」のとき男性を表し、「0」のとき女性を表す。Next, in step S84, the display of the cursor position is changed. As a result, when the cursor switch 3 is operated and moved, the display position is changed and displayed on the screen. Next, in step S86, it is determined whether or not the pointer M is [1]. That is, it is determined whether or not the screen is a gender determination screen. When M = [1], the process proceeds to step S88, and it is determined whether or not the data at the (OFFSET2 + M) address represents a man. If it represents a man, it is first reset to N = 1 in step S90. N is a gender pointer. This is because the gender pointer N is sequentially incremented from the minimum value, that is, the area corresponding to the (OFFSET2 + 1) address. (O
The address FFSET4 + M) stores data representing facial features, and the most significant bit MSB (portion indicated by a) of the data stores a gender parameter for distinguishing between male and female. Gender parameter is 1 bit unit,
"1" represents a male, and "0" represents a female.
【0037】次いで、ステップS92に進んで(OFF
SET3+N)番地のデータのMSBを「1」にセット
する。このとき、N=1であるから、まず(OFFSE
T4+1)番地のデータのMSBが「1」にセットされ
ることになる。次いで、ステップS94で性別ポインタ
Nをインクリメントする。これにより、N=2となる。
次いで、ステップS96でN=7になったか否かを判別
する。N=7を判断するのは、(OFFSET3+N)
番地の最大番地まで、そのMSBを「1」にセットする
ためである。今回はN=7でないから、ステップS92
に戻って同様の処理を繰り返す。したがって、次回はN
=2であるから、(OFFSET3+2)番地のデータ
のMSBが「1」にセットされる。以下同様にして、
(OFFSET3+3)番地、・・・(OFFSET3
+6)番地の各データのMSBがそれぞれ「1」にセッ
トされていく。Then, the process proceeds to step S92 (OFF
Set the MSB of the data at address SET3 + N) to "1". At this time, since N = 1, first (OFFSE
The MSB of the data at address T4 + 1) will be set to "1". Next, in step S94, the gender pointer N is incremented. As a result, N = 2.
Next, in step S96, it is determined whether N = 7. Judging N = 7 is (OFFSET3 + N)
This is to set the MSB to "1" up to the maximum address. Since N = 7 this time, step S92
Return to and repeat the same processing. Therefore, next time N
= 2, the MSB of the data at the address (OFFSET3 + 2) is set to "1". And so on
(OFFSET3 + 3) address ... (OFFSET3
The MSB of each data at address +6) is set to "1".
【0038】そして、ステップS96でN=7になる
と、今回のカーソルスイッチ割り込みルーチンを終了し
てメインプログラムにリターンする。一方、ステップS
86でポインタMが[1]でないときは、ステップS1
06にジャンプして(OFFSET2+M)番地の内容
を{(OFFSET3+(M−1)}番地のデータのM
SBを除く上位ビット群bに転送する。これにより、カ
ーソルスイッチ3によって指定された位置のデータ内容
が顔の特徴データを格納するエリアに転送されることに
なる。ステップS106を経ると、カーソルスイッチ割
り込みルーチンを終了してメインプログラムにリターン
する。また、ステップS88でNOのとき、すなわち
(OFFSET2+M)番地のデータが男を表すもので
なく、女を表すものであるときは、ステップS98に進
んで性別ポインタNをN=1に戻す。これは、性別ポイ
ンタNを最小の値、すなわち(OFFSET2+1)番
地に対応するエリアから順次インクリメントしていくた
めである。When N = 7 in step S96, the current cursor switch interrupt routine is terminated and the process returns to the main program. On the other hand, step S
If the pointer M is not [1] at 86, step S1
Jump to 06 and change the contents of the (OFFSET2 + M) address to the M of the data of the {(OFFSET3 + (M-1)} address.
Transfer to upper bit group b excluding SB. As a result, the data content at the position designated by the cursor switch 3 is transferred to the area for storing the facial feature data. After step S106, the cursor switch interrupt routine is terminated and the process returns to the main program. If NO in step S88, that is, if the data at the address (OFFSET2 + M) does not represent a man but a woman, the process proceeds to step S98 and the gender pointer N is returned to N = 1. This is because the gender pointer N is sequentially incremented from the minimum value, that is, the area corresponding to the (OFFSET2 + 1) address.
【0039】次いで、ステップS100で(OFFSE
T3+N)番地のデータのMSBを「0」にセットす
る。このとき、N=1であるから、まず(OFFSET
3+1)番地のデータのMSBが「0」にセットされる
ことになる。次いで、ステップS102で性別ポインタ
Nをインクリメントする。これにより、N=2となる。
次いで、ステップS104でN=7になったか否かを判
別する。N=7を判断するのは、(OFFSET3+
N)番地の最大番地まで、そのMSBを「0」にセット
するためである。今回はN=7でないから、ステップS
100に戻って同様の処理を繰り返す。したがって、次
回はN=2であるから、(OFFSET3+2)番地の
データのMSBが「0」にセットされる。以下同様にし
て、(OFFSET3+3)番地、・・・(OFFSE
T3+6)番地の各データのMSBがそれぞれ「0」に
セットされていく。そして、ステップS104でN=7
になると、今回のカーソルスイッチ割り込みルーチンを
終了してメインプログラムにリターンする。Then, in step S100 (OFFSE
The MSB of the data at address T3 + N) is set to "0". At this time, since N = 1, first (OFFSET
The MSB of the data at address 3 + 1) will be set to "0". Next, in step S102, the gender pointer N is incremented. As a result, N = 2.
Next, in step S104, it is determined whether N = 7. It is (OFFSET3 +
This is to set the MSB to "0" up to the maximum address of N). This time N = 7, so step S
Returning to 100, the same processing is repeated. Therefore, the next time N = 2, the MSB of the data at the address (OFFSET3 + 2) is set to "0". Similarly, in the same way, (OFFSET3 + 3), ... (OFFSE
The MSB of each data at address T3 + 6) is set to "0". Then, in step S104, N = 7
Then, the cursor switch interrupt routine this time is terminated and the process returns to the main program.
【0040】図8は表示スイッチ割り込みルーチンを示
すフローチャートである。表示スイッチ4が操作される
と、この表示スイッチ割り込みルーチンに移行する。こ
の割り込みルーチンに移行すると、まずステップS15
0で表示フラグを反転させる。したがって、表示フラグ
は、表示スイッチ4が操作される度に反転する。例え
ば、最初は表示フラグが「0」で、操作されると、表示
フラグが「1」になり、以後、操作毎に「0」、「1」
を繰り返す。このようにして、前回のルーチンに対して
表示スイッチ4が操作されたか否かを判断する。FIG. 8 is a flow chart showing the display switch interrupt routine. When the display switch 4 is operated, the process proceeds to this display switch interrupt routine. When the process shifts to this interrupt routine, first, step S15.
The display flag is inverted with 0. Therefore, the display flag is inverted every time the display switch 4 is operated. For example, the display flag is “0” at first, and when operated, the display flag becomes “1”, and thereafter, “0” and “1” are set for each operation.
repeat. In this way, it is determined whether or not the display switch 4 has been operated in the previous routine.
【0041】次いで、ステップS152で表示フラグが
「1」であるか否かを判別する。表示フラグが「1」と
いうことは、例えば最初のルーチンの場合である。この
ときはステップS154に分岐して(OFFSET1+
M)番地にストアされた内容をスタートアドレスにした
画面データをVRAM9に転送する。このとき、M=1
であればワークRAM9における(1+OFFSET
1)番地のデータであるADD1が読み出される。AD
D1のアドレスに対応する画面データは性別を選択する
画面であり、したがって、ADD1に対応して最初は性
別の選択を促す画面が表示部13に表示される。この画
面に従ってオペレータはカーソルスイッチ3を操作して
[01]:男性あるいは[02]:女性のどちらかを指
定する。ステップS154を経ると、メインプログラム
にリターンする。Next, in step S152, it is determined whether or not the display flag is "1". The display flag being “1” is, for example, the case of the first routine. In this case, the process branches to step S154 (OFFSET1 +
M) The screen data having the content stored in the address as the start address is transferred to the VRAM 9. At this time, M = 1
If so, (1 + OFFSET in the work RAM 9
1) The address data ADD1 is read. AD
The screen data corresponding to the address of D1 is a screen for selecting the gender, and therefore, a screen prompting the selection of the gender is displayed on the display unit 13 at first corresponding to ADD1. According to this screen, the operator operates the cursor switch 3 to specify either [01]: male or [02]: female. After step S154, the process returns to the main program.
【0042】一方、最初のルーチンを終了した後は、表
示スイッチ4が操作される度に表示フラグが反転するの
で、次回はステップS152の判別結果がYESにな
り、ステップS156に進む。ステップS156ではポ
インタMを[1]に戻す。ポインタM=1は性別、M=
2は髪型、M=3は輪郭、M=4は目、・・・・という
ように対応しているから、ステップS156でポインタ
Mを[1]に戻すのは、最初に性別を判断し、次いで、
髪型から年齢に応じた特徴データ(例えば、パーツパタ
ーン)を順次選択して表示させるためである。On the other hand, after the completion of the first routine, the display flag is inverted every time the display switch 4 is operated, so that the next time the determination result in step S152 is YES, the process proceeds to step S156. In step S156, the pointer M is returned to [1]. Pointer M = 1 is gender, M =
2 corresponds to a hairstyle, M = 3 corresponds to a contour, M = 4 corresponds to an eye, and so on. Therefore, in order to return the pointer M to [1] in step S156, the gender is first determined, Then
This is for sequentially selecting and displaying characteristic data (for example, a part pattern) according to age from the hairstyle.
【0043】次いで、ステップS158で(M+OFF
SET3)番地にストアされた内容をスタートアドレス
にした画面データをVRAM11に転送する。このと
き、ワークRAM9における(OFFSET3+M)番
地のデータは顔の特徴データを格納するエリアである。
したがって、顔の特徴データに応じた顔画像が表示部1
3に表示される。Then, in step S158 (M + OFF
The screen data having the content stored in the address SET3) as the start address is transferred to the VRAM 11. At this time, the data of the address (OFFSET3 + M) in the work RAM 9 is an area for storing the facial feature data.
Therefore, a face image corresponding to the face feature data is displayed on the display unit 1.
It is displayed in 3.
【0044】次いで、ステップS160でポインタMを
インクリメントし、ステップS162でポインタMが
[7]であるか否かを判別する。これは、顔の特徴デー
タとして髪型、輪郭、目の6つの全ての特徴データの選
択が終了したか否かを判断するものである。M=[7]
でなければステップS158に戻って同様のループを繰
り返す。このようにしてポインタMが[1]〜[6]の
範囲で上記処理が繰り返され、ステップS162でM=
[7]になると、今回のルーチンを終了してメインプロ
グラムにリターンする。Next, in step S160, the pointer M is incremented, and in step S162, it is determined whether or not the pointer M is [7]. This is to determine whether or not the selection of all the six feature data of the hairstyle, the contour, and the eyes has been completed as the feature data of the face. M = [7]
If not, the process returns to step S158 and the same loop is repeated. In this way, the above processing is repeated in the range of the pointer M of [1] to [6], and M = M in step S162.
When [7] is reached, this routine is terminated and the process returns to the main program.
【0045】図9は位置修正スイッチ割り込みルーチン
を示すフローチャートである。位置修正スイッチ5が操
作されると、この位置修正スイッチ割り込みルーチンに
移行する。この割り込みルーチンに移行すると、まずス
テップS200で表示フラグが[1]であるか否かを判
別する。表示フラグは、前述のごとく表示スイッチ4が
が操作されると反転する。FIG. 9 is a flow chart showing the position correction switch interruption routine. When the position correction switch 5 is operated, the process proceeds to this position correction switch interrupt routine. When this interrupt routine is entered, it is first determined in step S200 whether the display flag is [1]. The display flag is inverted when the display switch 4 is operated as described above.
【0046】ステップS200で表示フラグが[1]で
ないときは表示部13に顔画像が表示されていないと判
断し、今回のルーチンを終了してメインプログラムにリ
ターンする。一方、表示フラグが[1]であると、顔画
像が表示されていると判断し、続くステップS202に
進む。ステップS202では位置修正スイッチ5の操作
結果がパーツの位置をアップさせるものであるか否かを
判別する。位置修正スイッチ5は顔を構成するパーツ
(特に、眉)の位置を修正するときに操作されるもの
で、押しボタンタイプのアップスイッチおよびダウンス
イッチからなるため、ここではアップスイッチが押され
たか否かを判別する。アップスイッチが押されていなけ
れば、ダウンスイッチが押されたと判断してステップS
204に進む。When the display flag is not [1] in step S200, it is determined that the face image is not displayed on the display unit 13, the routine of this time is ended, and the process returns to the main program. On the other hand, if the display flag is [1], it is determined that the face image is displayed, and the process proceeds to the subsequent step S202. In step S202, it is determined whether or not the operation result of the position correction switch 5 is to raise the position of the part. The position correction switch 5 is operated when correcting the positions of the parts (especially, eyebrows) that form the face, and is composed of push-button type up and down switches. Therefore, here, it is determined whether or not the up switch is pressed. Determine whether. If the up switch has not been pressed, it is determined that the down switch has been pressed and step S
Proceed to 204.
【0047】ステップS204では(3+OFFSET
3)番地にストアされている内容をアドレスとして画面
データを順次読み出し、ステップS206で読み出され
た画面データのy座標を[1]だけデクリメントした値
に変換してVRAM11に転送する。これにより、目に
ついては位置修正スイッチ5の操作により、その位置
(特に、y座標位置)が下がるように変化し、目につい
ての配置が下方に修正された顔画像が表示部13に表示
される。一般的には、年齢が上がると、目の位置が上が
るような傾向にあり、目の位置が修正されると、年齢の
推定精度が向上する。ステップS206を経ると、今回
のルーチンを終了してメインプログラムにリターンす
る。In step S204, (3 + OFFSET
3) The screen data is sequentially read using the content stored in the address as an address, the y coordinate of the screen data read in step S206 is converted into a value decremented by [1], and the value is transferred to the VRAM 11. As a result, the position of the eyes (in particular, the y coordinate position) changes so as to be lowered by the operation of the position correction switch 5, and the display unit 13 displays the face image in which the position of the eyes is corrected downward. . Generally, as the age increases, the eye position tends to increase, and when the eye position is corrected, the accuracy of age estimation improves. After step S206, the routine of this time is ended and the process returns to the main program.
【0048】一方、ステップS202でアップスイッチ
が押されたときは、ステップS208に進み、(3+O
FFSET3)番地にストアされている内容をアドレス
として画面データを順次読み出し、ステップS210で
読み出された画面データのy座標を[1]だけインクリ
メントした値に変換してVRAM11に転送する。これ
により、目の位置(特に、y座標位置)が上がるように
変化し、目についての配置が上方に修正された顔画像が
表示部13に表示される。ステップS210を経ると、
今回のルーチンを終了してメインプログラムにリターン
する。On the other hand, when the up switch is pressed in step S202, the process proceeds to step S208 and (3 + O
The screen data is sequentially read by using the content stored in the address FFSET3) as an address, the y coordinate of the screen data read in step S210 is converted to a value incremented by [1], and the value is transferred to the VRAM 11. As a result, the position of the eyes (in particular, the y-coordinate position) changes so as to go up, and the face image in which the arrangement of the eyes has been corrected upward is displayed on the display unit 13. After step S210,
The routine this time is ended and the process returns to the main program.
【0049】図10は年齢推定スイッチ割り込みルーチ
ンを示すフローチャートである。年齢推定スイッチ6が
操作されると、この年齢推定スイッチ割り込みルーチン
に移行する。この割り込みルーチンに移行すると、まず
ステップS300で表示フラグが「1」であるか否かを
判別する。ステップS300で表示フラグが[1]でな
いときは顔画像が表示されていないと判断し、今回のル
ーチンを終了してメインプログラムにリターンする。FIG. 10 is a flowchart showing an age estimation switch interruption routine. When the age estimation switch 6 is operated, the process proceeds to this age estimation switch interrupt routine. When this interrupt routine is entered, it is first determined in step S300 whether the display flag is "1". When the display flag is not [1] in step S300, it is determined that the face image is not displayed, the routine of this time is ended, and the process returns to the main program.
【0050】一方、表示フラグが[1]であると、顔画
像が表示されていると判断してステップS302以降の
処理を実行する。まず、ステップS302では(OFF
SET3+2)番地にストアされた内容(すなわち、顔
の輪郭)を読み出し、ステップS304で読み出された
データに基づいて顔の縦横比を求め、求めた値をCPU
1内のAレジスタにストアする。これは、顔画像の輪郭
データによって作成顔画像の縦横比を求めるもので、基
準となる縦横比は予め持っている。顔の縦横比を検出す
ることにより、ファジー推論により年齢を推定するため
である。したがって、Aレジスタにストアされた内容
は、ファジー推論における入力パラメータの1つにな
る。なお、顔画像き縦方向(頭の頂部とあごの底部とを
結ぶ方向)の長さと横方向(顔の左右方向)の長さを当
該顔画像から実測することにより、顔画像の縦横比を求
めるようにしてもよい。On the other hand, if the display flag is [1], it is determined that the face image is displayed, and the processing from step S302 is executed. First, in step S302 (OFF
The contents stored in the address (SET3 + 2) (that is, the contour of the face) are read out, the aspect ratio of the face is calculated based on the data read out in step S304, and the calculated value is calculated by the CPU.
Store in the A register in 1. This is to obtain the aspect ratio of the created face image from the contour data of the face image, and has a reference aspect ratio in advance. This is because the age is estimated by fuzzy reasoning by detecting the aspect ratio of the face. Therefore, the content stored in the A register becomes one of the input parameters in fuzzy inference. In addition, the aspect ratio of the face image is calculated by measuring the length of the face image in the vertical direction (direction connecting the top of the head and the bottom of the chin) and the length in the horizontal direction (left and right direction of the face) from the face image. You may ask.
【0051】次いで、ステップS306で(OFFSE
T3+3)番地にストアされた内容(すなわち、目の位
置)を読み出し、ステップS308で読み出されたデー
タに基づいて目の位置データを求める。なお、顔画像か
ら実際に目の位置を測定することで、求めるようにして
もよい。次いで、ステップS310で求めた位置データ
を位置修正スイッチ5で修正された座標位置(y座標の
位置)によって修正し、修正した値をCPU1内のBレ
ジスタにストアする。これは、顔画像の目の置データに
よって作成顔画像の目の位置を求め、このとき位置修正
スイッチ5が操作されていれば、その修正値も考慮に入
れて最終的に目の位置を求めるものである。なお、位置
修正スイッチ5が操作されていなければ、修正値が
[0]で何も加算されないことになる。目の位置を検出
することにより、ファジー推論により年齢を推定するた
めである。したがって、Bレジスタにストアされた内容
は、ファジー推論における入力パラメータの1つにな
る。Then, in step S306 (OFFSE
The content (that is, the eye position) stored in the address T3 + 3) is read, and the eye position data is obtained based on the data read in step S308. Note that the position may be obtained by actually measuring the eye position from the face image. Next, the position data obtained in step S310 is corrected by the coordinate position (y coordinate position) corrected by the position correction switch 5, and the corrected value is stored in the B register in the CPU 1. In this case, the eye position of the created face image is obtained from the eye position data of the face image, and if the position correction switch 5 is operated at this time, the eye position is finally obtained by taking the correction value into consideration. It is a thing. If the position correction switch 5 is not operated, the correction value is [0] and nothing is added. This is because the age is estimated by fuzzy reasoning by detecting the position of the eyes. Therefore, the content stored in the B register becomes one of the input parameters in fuzzy inference.
【0052】以上で、ファジー推論における2つの入力
パラメータ(顔の縦横比および目の位置)が求められた
ので、次いで、ファジー推論の処理を行う。まず、ステ
ップ312で顔の縦横比および目の位置に基づいて前述
したファジールールAの演算を行う。同様に、ステップ
S314、ステップS316では顔の縦横比および目の
位置に基づいてそれぞれ前述したファジールールB、フ
ァジールールCの演算を行う。これらファジールール
A、B、Cの詳しい処理内容は後述のサブルーチンで説
明する。これにより、ファジー推論における前件部の処
理が行われ、各メンバーシップ関数に対する適合度が求
められる。Since the two input parameters (face aspect ratio and eye position) in fuzzy inference have been obtained as described above, fuzzy inference processing is performed next. First, in step 312, the aforementioned fuzzy rule A is calculated based on the aspect ratio of the face and the position of the eyes. Similarly, in steps S314 and S316, the aforementioned fuzzy rule B and fuzzy rule C are calculated based on the aspect ratio of the face and the position of the eyes. Detailed processing contents of these fuzzy rules A, B, and C will be described in a subroutine described later. Thereby, the processing of the antecedent part in the fuzzy inference is performed, and the goodness of fit for each membership function is obtained.
【0053】次いで、ステップS318でルール演算で
得られたデータの最大値をとる処理(すなわち、MAX
演算=OR処理)を行うとともに、ステップS320で
このデータの重心計算を行って脱ファジー化する。これ
により、ファジー推論における後件部の処理が行われて
作成顔画像の推定年齢jが求められる。なお、最大値演
算および重心演算の詳しい処理内容は後述のサブルーチ
ンで説明する。次いで、ステップS320で得られた推
定年齢jをVRAM11に転送して表示部13によって
表示する。これにより、作成された顔画像から客観的に
年齢が迅速かつ容易に推定され、かつ平均的な年齢との
対比結果がわかる。Next, in step S318, the process of taking the maximum value of the data obtained by the rule calculation (that is, MAX
Along with the calculation = OR processing, the center of gravity of this data is calculated in step S320 to defuzzify the data. Thus, the consequent part of the fuzzy inference is processed to obtain the estimated age j of the created face image. Detailed processing contents of the maximum value calculation and the center of gravity calculation will be described in a subroutine described later. Next, the estimated age j obtained in step S320 is transferred to the VRAM 11 and displayed on the display unit 13. As a result, the age can be objectively and quickly estimated from the created face image, and the result of comparison with the average age can be known.
【0054】図11はファジールールA演算処理のサブ
ルーチンを示すフローチャートである。まず、ステップ
S350でAレジスタの内容(顔の縦横比)をアドレス
にして、テーブルROM12における「縦横比が大き
い」というメンバーシップ関数が格納されているFLテ
ーブルからデータ(前件部データ)Daを読み出す。こ
の場合のデータは、図2(a)に示すメンバーシップ関
数FLの適合度(グレード)に相当し、0〜1の範囲の
値である。すなわち、データDaは顔の縦横比という入
力値に対してルールAが示した適合度である。データD
aは、例えばCPU1内の同名のレジスタに格納され、
これは後述のデータDbについても同様である。FIG. 11 is a flow chart showing a subroutine of the fuzzy rule A arithmetic processing. First, in step S350, data (antecedent part data) Da is obtained from the FL table in the table ROM 12 in which the membership function "the aspect ratio is large" is stored by using the content of the A register (face aspect ratio) as an address. read out. The data in this case corresponds to the goodness of fit (grade) of the membership function FL shown in FIG. 2A, and has a value in the range of 0 to 1. That is, the data Da is the matching degree indicated by the rule A with respect to the input value of the aspect ratio of the face. Data D
a is stored in a register of the same name in the CPU 1, for example,
This also applies to data Db described later.
【0055】同様に、ステップS352でBレジスタの
内容(目の位置)をアドレスにして、テーブルROM1
2における「目の位置が低い」というメンバーシップ関
数が格納されているELテーブルからデータ(前件部デ
ータ)Dbを読み出す。この場合のデータは、図2
(b)に示すメンバーシップ関数ELの適合度に相当
し、0〜1の範囲の値である。すなわち、データDbは
目の位置という入力値に対してルールAが示した適合度
である。次いで、ステップS354でデータDaがデー
タDb以上であるか否かを判別し、Da≧Dbのときは
ステップS356に進んで、値の小さい方をデータDと
して採用する。このケースではD=Dbとなる。Similarly, in step S352, the contents of the B register (eye position) are used as addresses, and the table ROM 1
The data (the antecedent data) Db is read from the EL table in which the membership function "the eye position is low" in 2 is stored. The data in this case is shown in Figure 2.
It corresponds to the goodness of fit of the membership function EL shown in (b), and is a value in the range of 0 to 1. That is, the data Db is the matching degree indicated by the rule A for the input value of the eye position. Next, in step S354, it is determined whether or not the data Da is greater than or equal to the data Db. If Da ≧ Db, the process proceeds to step S356, and the smaller value is adopted as the data D. In this case, D = Db.
【0056】この処理は、各データの論理積をとるもの
で、いわゆる「MINをとる」ことに相当するものであ
る。これは、「MINをとる」ことにより、2つの入力
値に対して少なくとも両方を満足する状態を得るためで
ある。これにより、データDaとデータDbのうち、最
小のものが今回のルーチンにおいてルールAが示す判断
として採用される。一方、Da<Dbのときはステップ
S358に進んで、D=Daを採用する。このように、
ルールAに対して、その時点での2つの入力値(顔の縦
横比および目の位置)が判断され、ルールAの前件部に
対する適合度が求められる。This process is to take the logical product of the respective data and is equivalent to the so-called "take MIN". This is to obtain a state that satisfies at least both of two input values by "taking MIN". As a result, the smallest one of the data Da and the data Db is adopted as the judgment indicated by the rule A in this routine. On the other hand, when Da <Db, the process proceeds to step S358, and D = Da is adopted. in this way,
For rule A, two input values at that time (aspect ratio of face and eye position) are determined, and the degree of conformity to the antecedent part of rule A is obtained.
【0057】次いで、ステップS360でアドレスポイ
ンタiを[0]にリセットし、ステップS362でアド
レスポインタiが終了アドレスに等しいか否か判別す
る。終了アドレスでなければ、続くステップS364で
iをアドレスとしてテーブルROM12の「年齢は若
い」というメンバーシップ関数が格納されているYYテ
ーブルからデータ(後件部データ)Eを読み出す。この
場合のデータは、図2(c)に示すメンバーシップ関数
YYの適合度に相当し、0〜1の範囲の値である。デー
タEは、例えばCPU1内の同名のレジスタに格納され
る。Then, in step S360, the address pointer i is reset to [0], and in step S362 it is determined whether the address pointer i is equal to the end address. If it is not the end address, the data (consequent part data) E is read from the YY table of the table ROM 12 in which the membership function "age is young" is stored with i as the address in the following step S364. The data in this case corresponds to the goodness of fit of the membership function YY shown in FIG. 2C, and has a value in the range of 0 to 1. The data E is stored in the register of the same name in the CPU 1, for example.
【0058】次いで、ステップS366でデータDとデ
ータEを比較し、D>EのときはステップS368に進
んでiをアドレスとしてワークRAM9に入っているP
AテーブルにデータEを書き込む。一方、D≦Eのとき
はステップS370に進んで同じくiをアドレスとして
ワークRAM9に入っているPAテーブルにデータDを
書き込む。このように、小さい方の値が採用されてメン
バーシップ関数YYをカットする処理が行われる。この
処理は、後件部たるメンバーシップ関数YYを前件部の
適合度に応じてカットする「いわゆる頭切り法」を行う
ものである。Next, in step S366, the data D and the data E are compared, and if D> E, the process proceeds to step S368 and P stored in the work RAM 9 with i as the address.
Write data E to table A. On the other hand, when D ≦ E, the process proceeds to step S370, and the data D is written in the PA table stored in the work RAM 9 using i as an address. In this way, the processing of cutting the membership function YY is performed by using the smaller value. This processing is to perform a "so-called head-cutting method" in which the membership function YY which is the consequent part is cut according to the conformity of the antecedent part.
【0059】次いで、ステップS372でアドレスポイ
ンタiを[1]だけインクリメントし、その後、ステッ
プS362に戻る。そして、ステップS362でアドレ
スポインタiが終了アドレスに等しくなるまで、同様の
処理を繰り返し、アドレスポインタiが終了アドレスに
等しくなると、図10の年齢推定スイッチ割り込みルー
チンにリターンする。アドレスポインタiを終了アドレ
スまでインクリメントすることにより、メンバーシップ
関数YYをすべてサーチすることになる。これにより、
メンバーシップ関数YYに対して前件部の適合度に応じ
た「頭切り法」が実行される。このようにして、顔の縦
横比および目の位置に基づいてファジールールAの演算
が行われ、「顔の縦横比が大きく、かつ目の位置が低い
場合には年齢は若い」という処理に対してどの程度適合
しているかが算出される。すなわち、年齢は若いという
ファジー推定値が、頭切りしたメンバーシップ関数YY
の大きさとして求められる。Next, in step S372, the address pointer i is incremented by [1], and then the process returns to step S362. Then, in step S362, the same process is repeated until the address pointer i becomes equal to the end address, and when the address pointer i becomes equal to the end address, the process returns to the age estimation switch interrupt routine of FIG. By incrementing the address pointer i to the end address, all membership functions YY will be searched. This allows
The "head cut method" is executed for the membership function YY according to the suitability of the antecedent part. In this way, the fuzzy rule A is calculated on the basis of the aspect ratio of the face and the position of the eyes, and the process is “young when the aspect ratio of the face is large and the position of the eyes is low”. The degree of conformity is calculated. In other words, the fuzzy estimate that the age is young is the truncated membership function YY
Is calculated as the size of.
【0060】図12はファジールールB演算処理のサブ
ルーチンを示すフローチャートである。まず、ステップ
S400でAレジスタの内容(顔の縦横比)をアドレス
にして、テーブルROM12における「縦横比が中くら
い」というメンバーシップ関数が格納されているFMテ
ーブルからデータ(前件部データ)Daを読み出す。こ
の場合のデータは、図2(a)に示すメンバーシップ関
数FMの適合度(グレード)に相当し、0〜1の範囲の
値である。すなわち、データDaは顔の縦横比という入
力値に対してルールBが示した適合度である。データD
aは、例えばCPU1内の同名のレジスタに格納され、
これは後述のデータDbについても同様である。FIG. 12 is a flow chart showing a subroutine of fuzzy rule B calculation processing. First, in step S400, data (antecedent data) Da from the FM table in the table ROM 12 in which the membership function "medium aspect ratio" is stored, using the contents of the A register (face aspect ratio) as an address. Read out. The data in this case corresponds to the goodness of fit (grade) of the membership function FM shown in FIG. 2A, and has a value in the range of 0 to 1. That is, the data Da is the matching degree indicated by the rule B with respect to the input value of the aspect ratio of the face. Data D
a is stored in a register of the same name in the CPU 1, for example,
This also applies to data Db described later.
【0061】同様に、ステップS402でBレジスタの
内容(目の位置)をアドレスにして、テーブルROM1
2における「目の位置が中くらい」というメンバーシッ
プ関数が格納されているEMテーブルからデータ(前件
部データ)Dbを読み出す。この場合のデータは、図2
(b)に示すメンバーシップ関数EMの適合度に相当
し、0〜1の範囲の値である。すなわち、データDbは
目の位置という入力値に対してルールAが示した適合度
である。次いで、ステップS404でデータDがデータ
Db以上であるか否かを判別し、Da≧Dbのときはス
テップS406に進んで、値の小さい方をデータDとし
て採用する。このケースではD=Dbとなる。Similarly, in step S402, the contents (eye position) of the B register are used as addresses, and the table ROM 1
The data (antecedent part data) Db is read from the EM table in which the membership function “the position of the eyes is medium” in 2 is stored. The data in this case is shown in Figure 2.
It corresponds to the goodness of fit of the membership function EM shown in (b) and is a value in the range of 0 to 1. That is, the data Db is the matching degree indicated by the rule A for the input value of the eye position. Next, in step S404, it is determined whether or not the data D is greater than or equal to the data Db. If Da ≧ Db, the process proceeds to step S406, and the smaller value is adopted as the data D. In this case, D = Db.
【0062】この処理は、各データの論理積をとるもの
で、いわゆる「MINをとる」ことに相当するものであ
る。これは、「MINをとる」ことにより、2つの入力
値に対して少なくとも両方を満足する状態を得るためで
ある。これにより、データDaとデータDbのうち、最
小のものが今回のルーチンにおいてルールBが示す判断
として採用される。一方、Da<Dbのときはステップ
S408に進んで、D=Daを採用する。このように、
ルールBに対して、その時点での2つの入力値(顔の縦
横比および目の位置)が判断され、ルールBの前件部に
対する適合度が求められる。This process is to take the logical product of the respective data and is equivalent to the so-called "take MIN". This is to obtain a state that satisfies at least both of two input values by "taking MIN". As a result, the smallest one of the data Da and the data Db is adopted as the determination indicated by the rule B in this routine. On the other hand, when Da <Db, the process proceeds to step S408, and D = Da is adopted. in this way,
For rule B, two input values at that time (aspect ratio of face and eye position) are determined, and the degree of conformity with the antecedent part of rule B is obtained.
【0063】次いで、ステップS410でアドレスポイ
ンタiを[0]にリセットし、ステップS412でアド
レスポインタiが終了アドレスに等しいか否か判別す
る。終了アドレスでなければ、続くステップS414で
iをアドレスとしてテーブルROM12の「年齢は中く
らい」というメンバーシップ関数が格納されているYM
テーブルからデータ(後件部データ)Eを読み出す。こ
の場合のデータは、図2(c)に示すメンバーシップ関
数YMの適合度に相当し、0〜1の範囲の値である。デ
ータEは、例えばCPU1内の同名のレジスタに格納さ
れる。Then, in step S410, the address pointer i is reset to [0], and in step S412 it is determined whether the address pointer i is equal to the end address. If it is not the end address, then in step S414 the YM in which the membership function "age is medium" in the table ROM 12 is stored with i as the address.
Data (consequent part data) E is read from the table. The data in this case corresponds to the goodness of fit of the membership function YM shown in FIG. 2C, and has a value in the range of 0 to 1. The data E is stored in the register of the same name in the CPU 1, for example.
【0064】次いで、ステップS416でデータDとデ
ータEを比較し、D>EのときはステップS418に進
んでiをアドレスとしてワークRAM9に入っているP
BテーブルにデータEを書き込む。一方、D≦Eのとき
はステップS420に進んで同じくiをアドレスとして
ワークRAM9に入っているPBテーブルにデータDを
書き込む。このように、小さい方の値が採用されてメン
バーシップ関数YMをカットする処理が行われる。この
処理は、後件部たるメンバーシップ関数YMを前件部の
適合度に応じてカットする「いわゆる頭切り法」を行う
ものである。Next, in step S416, the data D and the data E are compared, and if D> E, the process proceeds to step S418, in which P is stored in the work RAM 9 with i as the address.
Write data E to table B. On the other hand, when D ≦ E, the process proceeds to step S420, and the data D is written in the PB table stored in the work RAM 9 using i as an address. In this way, the processing of cutting the membership function YM is performed by using the smaller value. This processing is a "so-called head-cutting method" in which the membership function YM, which is the consequent part, is cut in accordance with the degree of conformity of the antecedent part.
【0065】次いで、ステップS422でアドレスポイ
ンタiを[1]だけインクリメントし、その後、ステッ
プS412に戻る。そして、ステップS412でアドレ
スポインタiが終了アドレスに等しくなるまで、同様の
処理を繰り返し、アドレスポインタiが終了アドレスに
等しくなると、図10の年齢推定スイッチ割り込みルー
チンにリターンする。アドレスポインタiを終了アドレ
スまでインクリメントすることにより、メンバーシップ
関数YMをすべてサーチすることになる。これにより、
メンバーシップ関数YMに対して前件部の適合度に応じ
た「頭切り法」が実行される。このようにして、顔の縦
横比および目の位置に基づいてファジールールBの演算
が行われ、「顔の縦横比が中くらいで、かつ目の位置が
中くらいの場合には年齢は中年」という処理に対してど
の程度適合しているかが算出される。すなわち、年齢は
中年というファジー推定値が、頭切りしたメンバーシッ
プ関数YMの大きさとして求められる。Next, in step S422, the address pointer i is incremented by [1], and then the process returns to step S412. Then, in step S412, the same processing is repeated until the address pointer i becomes equal to the end address, and when the address pointer i becomes equal to the end address, the process returns to the age estimation switch interrupt routine of FIG. By incrementing the address pointer i to the end address, all membership functions YM will be searched. This allows
The "head cut method" according to the conformity of the antecedent part is executed for the membership function YM. In this manner, the fuzzy rule B is calculated based on the aspect ratio of the face and the position of the eyes, and "if the aspect ratio of the face is medium and the position of the eyes is medium, the age is middle age. The degree of conformity to the process of “” is calculated. That is, the fuzzy estimated value that the age is middle age is obtained as the magnitude of the truncated membership function YM.
【0066】図13はファジールールC演算処理のサブ
ルーチンを示すフローチャートである。まず、ステップ
S450でAレジスタの内容(顔の縦横比)をアドレス
にして、テーブルROM12における「縦横比が小さ
い」というメンバーシップ関数が格納されているFSテ
ーブルからデータ(前件部データ)Daを読み出す。こ
の場合のデータは、図2(a)に示すメンバーシップ関
数FSの適合度(グレード)に相当し、0〜1の範囲の
値である。すなわち、データDaは顔の縦横比という入
力値に対してルールCが示した適合度である。データD
aは、例えばCPU1内の同名のレジスタに格納され、
これは後述のデータDbについても同様である。FIG. 13 is a flow chart showing a subroutine of the fuzzy rule C arithmetic processing. First, in step S450, data (antecedent data) Da is obtained from the FS table in the table ROM 12 in which the membership function "aspect ratio is small" is stored with the contents of the A register (face aspect ratio) as an address. read out. The data in this case corresponds to the goodness of fit (grade) of the membership function FS shown in FIG. 2A, and has a value in the range of 0 to 1. That is, the data Da is the matching degree indicated by the rule C with respect to the input value of the aspect ratio of the face. Data D
a is stored in a register of the same name in the CPU 1, for example,
This also applies to data Db described later.
【0067】同様に、ステップS452でBレジスタの
内容(目の位置)をアドレスにして、テーブルROM1
2における「目の位置が高い」というメンバーシップ関
数が格納されているEHテーブルからデータ(前件部デ
ータ)Dbを読み出す。この場合のデータは、図2
(b)に示すメンバーシップ関数EHの適合度に相当
し、0〜1の範囲の値である。すなわち、データDbは
目の位置という入力値に対してルールCが示した適合度
である。次いで、ステップS454でデータDaがデー
タDb以上であるか否かを判別し、Da≧Dbのときは
ステップS456に進んで、値の小さい方をデータDと
して採用する。このケースではD=Dbとなる。Similarly, in step S452, the contents of the B register (eye position) are used as addresses, and the table ROM1
The data (antecedent part data) Db is read from the EH table in which the membership function "the eye position is high" in 2 is stored. The data in this case is shown in Figure 2.
It corresponds to the goodness of fit of the membership function EH shown in (b) and is a value in the range of 0 to 1. That is, the data Db is the matching degree indicated by the rule C for the input value of the eye position. Next, in step S454, it is determined whether or not the data Da is greater than or equal to the data Db. If Da ≧ Db, the process proceeds to step S456, and the smaller value is adopted as the data D. In this case, D = Db.
【0068】この処理は、各データの論理積をとるもの
で、いわゆる「MINをとる」ことに相当するものであ
る。これは、「MINをとる」ことにより、2つの入力
値に対して少なくとも両方を満足する状態を得るためで
ある。これにより、データDaとデータDbのうち、最
小のものが今回のルーチンにおいてルールCが示す判断
として採用される。一方、Da<Dbのときはステップ
S458に進んで、D=Daを採用する。このように、
ルールCに対して、その時点での2つの入力値(顔の縦
横比および目の位置)が判断され、ルールCの前件部に
対する適合度が求められる。This processing is to take the logical product of the respective data and is equivalent to the so-called "take MIN". This is to obtain a state that satisfies at least both of two input values by "taking MIN". As a result, the smallest one of the data Da and the data Db is adopted as the determination indicated by the rule C in this routine. On the other hand, when Da <Db, the process proceeds to step S458 and D = Da is adopted. in this way,
For the rule C, two input values at that time (aspect ratio of the face and eye position) are determined, and the degree of conformity with the antecedent part of the rule C is obtained.
【0069】次いで、ステップS460でアドレスポイ
ンタiを[0]にリセットし、ステップS462でアド
レスポインタiが終了アドレスに等しいか否か判別す
る。終了アドレスでなければ、続くステップS464で
iをアドレスとしてテーブルROM12の「年齢は高
い」というメンバーシップ関数が格納されているYOテ
ーブルからデータ(後件部データ)Eを読み出す。この
場合のデータは、図2(c)に示すメンバーシップ関数
YOの適合度に相当し、0〜1の範囲の値である。デー
タEは、例えばCPU1内の同名のレジスタに格納され
る。Next, in step S460, the address pointer i is reset to [0], and in step S462 it is determined whether the address pointer i is equal to the end address. If it is not the end address, the data (consequent part data) E is read out from the YO table of the table ROM 12 in which the membership function "Age is high" is stored with the address i in step S464. The data in this case corresponds to the goodness of fit of the membership function YO shown in FIG. 2C, and has a value in the range of 0 to 1. The data E is stored in the register of the same name in the CPU 1, for example.
【0070】次いで、ステップS466でデータDとデ
ータEを比較し、D>EのときはステップS468に進
んでiをアドレスとしてワークRAM9に入っているP
CテーブルにデータEを書き込む。一方、D≦Eのとき
はステップS470に進んで同じくiをアドレスとして
ワークRAM9に入っているPCテーブルにデータDを
書き込む。このように、小さい方の値が採用されてメン
バーシップ関数YOをカットする処理が行われる。この
処理は、後件部たるメンバーシップ関数YOを前件部の
適合度に応じてカットする「いわゆる頭切り法」を行う
ものである。Next, in step S466, the data D and the data E are compared, and if D> E, the process proceeds to step S468 and P stored in the work RAM 9 with i as the address.
Write the data E in the C table. On the other hand, when D ≦ E, the process proceeds to step S470 and similarly, the data D is written in the PC table stored in the work RAM 9 using i as an address. In this way, the processing of cutting the membership function YO is performed by using the smaller value. This process is a "so-called head-cutting method" in which the membership function YO, which is the consequent part, is cut in accordance with the degree of conformity of the antecedent part.
【0071】次いで、ステップS472でアドレスポイ
ンタiを[1]だけインクリメントし、その後、ステッ
プS462に戻る。そして、ステップS462でアドレ
スポインタiが終了アドレスに等しくなるまで、同様の
処理を繰り返し、アドレスポインタiが終了アドレスに
等しくなると、図10の年齢推定スイッチ割り込みルー
チンにリターンする。アドレスポインタiを終了アドレ
スまでインクリメントすることにより、メンバーシップ
関数YOをすべてサーチすることになる。これにより、
メンバーシップ関数YOに対して前件部の適合度に応じ
た「頭切り法」が実行される。このようにして、顔の縦
横比および目の位置に基づいてファジールールCの演算
が行われ、「顔の縦横比が小さく、かつ目の位置が高い
場合には年齢は高い」という処理に対してどの程度適合
しているかが算出される。すなわち、年齢は高いという
ファジー推定値が、頭切りしたメンバーシップ関数YO
の大きさとして求められる。Then, in step S472, the address pointer i is incremented by [1], and then the process returns to step S462. Then, in step S462, the same process is repeated until the address pointer i becomes equal to the end address, and when the address pointer i becomes equal to the end address, the process returns to the age estimation switch interrupt routine of FIG. By incrementing the address pointer i to the end address, all membership functions YO will be searched. This allows
The "head cut method" is executed for the membership function YO according to the suitability of the antecedent part. In this way, the fuzzy rule C is calculated on the basis of the aspect ratio of the face and the position of the eyes, and in contrast to the process "when the aspect ratio of the face is small and the eye position is high, the age is high". The degree of conformity is calculated. In other words, the fuzzy estimate that the age is high is the truncated membership function YO
Is calculated as the size of.
【0072】図14は最大値演算処理のサブルーチンを
示すフローチャートである。まず、ステップS500で
アドレスポインタiを[0]にリセットし、ステップS
502でアドレスポインタiをアドレスとしてワークR
AM9に入っているPAメモリからデータD1を読み出
し、同名のレジスタへロードする。データD1は、ファ
ジールールAについての演算結果であり、具体的には、
「顔の縦横比が大きく、かつ目の位置が低い場合には年
齢は若い」という処理に対してどの程度適合しているか
算出して頭切りしたメンバーシップ関数YYに対応す
る。FIG. 14 is a flowchart showing a subroutine of maximum value calculation processing. First, in step S500, the address pointer i is reset to [0], and step S
Work R with address pointer i as an address in 502
The data D1 is read from the PA memory in the AM9 and loaded into the register of the same name. The data D1 is the calculation result for the fuzzy rule A, and specifically,
It corresponds to the membership function YY, which is calculated by calculating the degree of conformity with the process “Your age is high when the aspect ratio of the face is large and the eye position is low”.
【0073】次いで、ステップS504でアドレスポイ
ンタiをアドレスとしてワークRAM9に入っているP
BメモリからデータD2を読み出し、同名のレジスタへ
ロードする。データD2は、ファジールールBについて
の演算結果であり、具体的には、「顔の縦横比が中くら
いで、かつ目の位置が中くらいの場合には年齢は中年で
ある」という処理に対してどの程度適合しているか算出
して頭切りしたメンバーシップ関数YMに対応する。次
いで、ステップS506で同様にアドレスポインタiを
アドレスとしてワークRAM9に入っているPCメモリ
からデータD3を読み出し、同名のレジスタへロードす
る。データD3は、ファジールールCについての演算結
果であり、具体的には、「顔の縦横比が小さく、かつ目
の位置が高い場合には年齢は高い」という処理に対して
どの程度適合しているか算出して頭切りしたメンバーシ
ップ関数YOに対応する。Next, in step S504, the P stored in the work RAM 9 is set with the address pointer i as an address.
The data D2 is read from the B memory and loaded into the register of the same name. The data D2 is the calculation result of the fuzzy rule B, and specifically, the process is “when the aspect ratio of the face is medium and the position of the eyes is medium, the age is middle age”. Corresponding to the membership function YM, which is calculated by calculating the degree of conformity with the membership function. Next, in step S506, the data D3 is similarly read from the PC memory in the work RAM 9 using the address pointer i as an address and loaded into the register of the same name. The data D3 is the calculation result for the fuzzy rule C, and specifically, to what extent is it suitable for the process of “when the aspect ratio of the face is small and the eye position is high, the age is high”? Corresponds to the membership function YO, which is calculated and truncated.
【0074】次いで、ステップS508で上記各データ
D1〜D3のうちの最大値を判別する。そして、データ
D1〜D3の最大値判別結果に応じてそれぞれステップ
S510、ステップS512、ステップS514に進
む。このような最大値判別を行っているのは、各ファジ
ールールA〜C毎の推論結果を統合するために論理和
(OR論理)をとる必要がかあるからで、いわゆる「M
AXをとる」という処理に相当するものである。具体的
には、例えばある顔画像がファジールールAからファジ
ールールCまでの、どのルールに影響されるのか、少し
でも影響されるなら、それは年齢推定の判断に反映して
おきたいという要求に答えるもので、これが「OR論
理」の関係の基本の考え方である。そして、この考え方
を集合論では「和をとる」としており、本実施例では、
どれかひとつでも影響がある限り、考察の対象にすると
して上記処理が実行される。Then, in step S508, the maximum value of the data D1 to D3 is determined. Then, according to the maximum value determination result of the data D1 to D3, the process proceeds to step S510, step S512, and step S514, respectively. Such maximum value determination is performed because it is necessary to take a logical sum (OR logic) to integrate the inference results for each of the fuzzy rules A to C.
This is equivalent to the process "take AX". Specifically, for example, which face image from a fuzzy rule A to a fuzzy rule C is affected by a certain face image, and if it is affected even a little, it responds to a request to reflect it in the judgment of age estimation. This is the basic idea of the "OR logic" relationship. Then, this idea is set as "take a sum" in the set theory, and in this embodiment,
As long as any one is affected, the above process is executed as a target of consideration.
【0075】さて、ステップS510ではアドレスポイ
ンタiをアドレスとしてワークRAM9に入っているP
DメモリにレジスタD1の内容(データD1)を書き込
む。これにより、今回のアドレスポインタi(最初のル
ーチンではi=0)の値によって指定されるファジール
ールAの演算結果である頭切りしたメンバーシップ関数
YYの一部がPDメモリに書き込まれる。なお、後述の
ように、アドレスポインタiを終了アドレスまでインク
リメントすることにより、頭切りされたメンバーシップ
関数YYがすべてサーチされてPDメモリに書き込まれ
ることになる。In step S510, the address pointer i is used as an address in the P stored in the work RAM 9.
The contents of the register D1 (data D1) are written in the D memory. As a result, part of the truncated membership function YY, which is the calculation result of the fuzzy rule A specified by the value of the address pointer i (i = 0 in the first routine) this time, is written to the PD memory. As will be described later, by incrementing the address pointer i to the end address, all the truncated membership functions YY are searched and written in the PD memory.
【0076】ステップS512ではアドレスポインタi
をアドレスとしてワークRAM9に入っているPDメモ
リにレジスタD2の内容(データD2)を書き込む。こ
れにより、今回のアドレスポインタiの値によって指定
されるファジールールBの演算結果である頭切りしたメ
ンバーシップ関数YMの一部がPDメモリに書き込まれ
る。In step S512, the address pointer i
Is used as an address to write the contents of the register D2 (data D2) to the PD memory in the work RAM 9. As a result, part of the truncated membership function YM, which is the calculation result of the fuzzy rule B designated by the value of the address pointer i this time, is written in the PD memory.
【0077】同様に、ステップS514ではアドレスポ
インタiをアドレスとしてワークRAM9に入っている
PDメモリにレジスタD3の内容(データD3)を書き
込む。これにより、今回のアドレスポインタiの値によ
って指定されるファジールールCの演算結果である頭切
りしたメンバーシップ関数YOの一部がPDメモリに書
き込まれる。次いで、ステップS516でアドレスポイ
ンタiが終了アドレスに等しいか否か判別する。終了ア
ドレスでなければ、続くステップS518でアドレスポ
インタiを[1]だけインクリメントし、その後、ステ
ップS502に戻る。そして、ステップS516でアド
レスポインタiが終了アドレスに等しくなるまで、上記
処理を繰り返し、アドレスポインタiが終了アドレスに
等しくなると、図10の年齢推定スイッチ割り込みルー
チンにリターンする。Similarly, in step S514, the content of the register D3 (data D3) is written to the PD memory in the work RAM 9 using the address pointer i as an address. As a result, a part of the truncated membership function YO, which is the calculation result of the fuzzy rule C designated by the value of the address pointer i this time, is written in the PD memory. Next, in step S516, it is determined whether the address pointer i is equal to the end address. If it is not the end address, the address pointer i is incremented by [1] in the following step S518, and then the process returns to step S502. Then, in step S516, the above processing is repeated until the address pointer i becomes equal to the end address, and when the address pointer i becomes equal to the end address, the process returns to the age estimation switch interrupt routine of FIG.
【0078】アドレスポインタiを終了アドレスまでイ
ンクリメントすることにより、頭切りされた各メンバー
シップ関数YY、YM、YOがすべてサーチされてPD
メモリにデータD4として書き込まれる。このようにし
て、各ファジールールA〜C毎の推論結果を統合するた
めに論理和をとる(「MAXをとる」)処理が実行さ
れ、頭切りされた各メンバーシップ関数YY、YM、Y
OがOR合成される。すなわち、MAX合成処理によっ
て各ファジールールA〜C毎の推論結果が重ね合わせら
れて合成出力が生成される。By incrementing the address pointer i to the end address, all the truncated membership functions YY, YM, and YO are searched and PD
The data D4 is written in the memory. In this way, the processing of taking a logical sum (“taking MAX”) is performed to integrate the inference results of each of the fuzzy rules A to C, and the truncated membership functions YY, YM, Y
O is OR-combined. That is, the MAX combining processing superimposes the inference results for each of the fuzzy rules A to C to generate a combined output.
【0079】図15は重心計算処理のサブルーチンを示
すフローチャートである。まず、ステップS550でア
ドレスポインタiを[0]にリセットするとともに、面
積レジスタareaおよび重心レジスタhafを同様に
[0]にリセットする。面積レジスタareaは重心計
算に必要な面積areaのデータを格納するもので、重
心レジスタhafは重心計算に必要な重心値hafを格
納するものである。次いで、ステップS552でアドレ
スポインタiをアドレスとしてワークRAM9に入って
いるPDメモリからデータD4を読み出す。データD4
は、前述の最大値演算処理によって頭切りされた各メン
バーシップ関数YY、YM、YOをOR合成したものの
一部(iをアドレスとして指定された部分)で、言い換
えると、MAX合成処理によって各ファジールールA〜
C毎の推論結果が重ね合わせられた合成出力データ(後
に、OR合成関数として表す)の一部である。FIG. 15 is a flow chart showing a subroutine of the center of gravity calculation processing. First, in step S550, the address pointer i is reset to [0], and the area register area and the center of gravity register haf are similarly reset to [0]. The area register area stores the data of the area area required for the center of gravity calculation, and the center of gravity register haf stores the center of gravity value haf required for the center of gravity calculation. Next, in step S552, the data D4 is read from the PD memory in the work RAM 9 using the address pointer i as an address. Data D4
Is a part of the OR function of the membership functions YY, YM, and YO, which are truncated by the maximum value calculation process described above (the part specified by i as an address). Rule A ~
The inference result for each C is a part of the combined output data (later expressed as an OR combination function).
【0080】今回は、i(最初のルーチンではi=0)
をアドレスとしてPDメモリから合成出力データの一部
を読み出したことになる。なお、後述のように、アドレ
スポインタiを終了アドレスまでインクリメントするこ
とにより、合成出力データがすべてサーチされて読み出
されることになる。すなわち、続くステップS554で
は面積レジスタareaの値を、今回読み出した合成出
力データD4だけインクリメントして面積areaの積
算値を算出する。次いで、ステップS556でアドレス
ポインタiが終了アドレスに等しいか否か判別する。終
了アドレスでなければ、続くステップS558でアドレ
スポインタiを[1]だけインクリメントし、その後、
ステップS552に戻る。そして、ステップS556で
アドレスポインタiが終了アドレスに等しくなるまで、
上記処理を繰り返し、アドレスポインタiが終了アドレ
スに等しくなると、ステップS560に抜ける。This time, i (i = 0 in the first routine)
That is, a part of the combined output data is read out from the PD memory by using as the address. As will be described later, by incrementing the address pointer i to the end address, all the combined output data are searched and read. That is, in the following step S554, the value of the area register area is incremented by the combined output data D4 read this time to calculate the integrated value of the area area. Then, in step S556, it is determined whether the address pointer i is equal to the end address. If it is not the end address, the address pointer i is incremented by [1] in the following step S558, and thereafter,
It returns to step S552. Then, in step S556, until the address pointer i becomes equal to the end address,
The above processing is repeated, and when the address pointer i becomes equal to the end address, the procedure goes to step S560.
【0081】アドレスポインタiを終了アドレスまでイ
ンクリメントすることにより、頭切りされた各メンバー
シップ関数YY、YM、YOのOR合成出力データがす
べてサーチされて読み出されることになる。ステップS
560では、ステップS554で求めた積算面積are
aの1/2の値を重心値hafとして重心レジスタha
fに記憶する。次いで、ステップS562で各メンバー
シップ関数YY、YM、YOのOR合成関数の横軸に対
応するjおよび面積積算エリアbalを共に[0]にリ
セットする。なお、jおよびbalの値は、例えば同名
のレジスタに格納される。By incrementing the address pointer i to the end address, all OR-combined output data of the truncated membership functions YY, YM and YO are searched and read. Step S
At 560, the integrated area are obtained at step S554
The value of 1/2 of a is set as the center of gravity value haf and the center of gravity register ha
Store in f. Next, in step S562, both j and the area integration area bal corresponding to the horizontal axis of the OR combination function of the membership functions YY, YM, and YO are reset to [0]. The values of j and bal are stored in the register having the same name, for example.
【0082】次いで、ステップS564で横軸jをアド
レスとしてワークRAM9に入っているPDメモリから
OR合成関数に対応するデータD4を読み出す。続くス
テップS566では面積積算エリアbalの値を、今回
読み出したデータD4だけインクリメントして面積積算
エリアbalを積算する。次いで、ステップS568で
積算した面積積算エリアbalを重心値hafと比較
し、面積積算エリアbalが重心値hafより小さいと
きはステップS570に進んで横軸jをインクリメント
した後、ステップS564に戻る。そして、ステップS
568で面積積算エリアbalが重心値haf以上にな
るまで上記処理を繰り返し、bal≧hafになると、
そのときの横軸jの値が重心点であると判断して、ステ
ップS572において横軸iの値を推定年齢として表示
部13に表示して、図10の年齢推定スイッチ割り込み
ルーチンにリターンする。これと同時に年齢の推定値を
CPU1内のレジスタに格納する。このようにして、O
R合成関数の重心をとり、その値を論理和の代表とする
脱ファジー化処理(ディファジファイア処理)が行わ
れ、推論処理での結論の全体が1つの確定値、すなわ
ち、この場合は年齢の推定値として算出される。Next, in step S564, the data D4 corresponding to the OR combination function is read from the PD memory in the work RAM 9 using the horizontal axis j as an address. In the following step S566, the value of the area integration area bal is incremented by the data D4 read this time to integrate the area integration area bal. Next, the area integration area bal integrated in step S568 is compared with the center of gravity value haf. When the area integration area bal is smaller than the center of gravity value haf, the process proceeds to step S570 to increment the horizontal axis j and then returns to step S564. And step S
At 568, the above processing is repeated until the area integration area bal becomes equal to or more than the center of gravity value haf, and when bal ≧ haf,
It is determined that the value of the horizontal axis j at that time is the center of gravity, the value of the horizontal axis i is displayed as the estimated age on the display unit 13 in step S572, and the process returns to the age estimation switch interrupt routine of FIG. At the same time, the estimated age value is stored in the register in the CPU 1. In this way, O
The defuzzification process (defuzzifier process) that takes the center of gravity of the R composition function and uses that value as a representative of the logical sum is performed, and the entire conclusion in the inference process is one definite value, that is, the age in this case. Is calculated as an estimated value of.
【0083】このように本実施例では、カーソルスイッ
チ3や位置修正スイッチ5等を操作して作成された顔画
像について年齢を知りたいと思うときには、年齢推定ス
イッチ6を押すと、作成された顔画像についての年齢に
応じた特徴データ(ここでは顔の縦横比および目の位
置)が検出され、この検出データを入力パラメータとし
て前述したファジールールA〜Cに従ってファジー推論
が行われ、その推論結果に基づいて作成された顔画像の
年齢が推定され、図15の重心計算処理のルーチンによ
って横軸jの値(重心点)として算出される。この算出
された推定年齢は図16に示すように、各顔画像F1〜
F4とともに表示部13に表示される。As described above, in this embodiment, when it is desired to know the age of the face image created by operating the cursor switch 3, the position correction switch 5, etc., the age estimation switch 6 is pushed to create the created face. Characteristic data (here, the aspect ratio of the face and the position of the eyes) according to the age of the image are detected, fuzzy inference is performed according to the fuzzy rules A to C described above using the detected data as input parameters, and the inference result is obtained. The age of the face image created based on this is estimated and calculated as the value of the horizontal axis j (center of gravity point) by the routine of the center of gravity calculation processing of FIG. The calculated estimated age is, as shown in FIG.
It is displayed on the display unit 13 together with F4.
【0084】したがって、特殊な技能を必要とすること
なく、作成された顔画像から客観的に年齢を迅速かつ容
易に推定することができ、かつ平均的な年齢との対比結
果を容易に知ることもできる。そして、年齢入力キー7
より入力された実際の年齢も図16に示すように併記し
て表示されるので、この実際の年齢と比較してその顔画
像に基づいて推定された推定年齢の大小を比較検討する
ことができるので、実際の年齢より若く見えるか、年老
いて見えるかの判断もできる。また、年齢の推定処理で
は、ファジー推論が用いられているので、推定演算に際
して膨大な処理が必要でなく、演算負担を軽減すること
ができる。その結果、既在のCPUにより容易に演算を
行うことができ、高機能の年齢推定装置を低コストで実
現することができる。Therefore, the age can be objectively and quickly estimated from the created face image without requiring special skill, and the result of comparison with the average age can be easily known. You can also And age input key 7
Since the actual input age is additionally displayed as shown in FIG. 16, it is possible to compare the actual age and the estimated age estimated based on the face image in comparison with the actual age. Therefore, it is possible to judge whether it looks younger than the actual age or looks older. In addition, since fuzzy inference is used in the age estimation process, a huge amount of processing is not required in the estimation calculation, and the calculation load can be reduced. As a result, the existing CPU can easily perform the calculation, and the highly functional age estimating device can be realized at low cost.
【0085】なお、上述した実施例ではカーソルスイッ
チ3を操作してパーツ画面ROM10内に格納されてい
る各パーツ毎のパーツパターンを選択し、あるいは位置
修正スイッチ5を用いて選択したパーツパターンの位置
を修正するなどして作成された顔画像に基づいてファジ
ー推論によりその年齢を推定するようにしているが、例
えばCCDカメラ20で撮像された顔画像を表す顔画像
データを顔画像RAM21に記憶し、その記憶された顔
画像データに基づいてその顔の縦横比、目の位置などを
CPU1にて検出し、これらの顔特徴データに基づいて
ファジー推論を実行してその年齢を推定するようにして
もよい。さらに、上述した実施例では、予め作成された
顔画像の年齢をファジー推論により推定するにあたっ
て、顔の縦横比および目の位置を表す顔特徴データを入
力データとしているが、顔特徴データとしては、このほ
かに、顔のしわの本数、髪際の後退度(額の禿げ上がり
度合い)などを用いてもよい。また、上記実施例ではフ
ァジー推論をCPU1およびテーブルROM12を用い
てソフトによって実現しているが、例えばファジーチッ
プを用いてハード的に実現してもい。また、ファジー推
論で用いるメンバーシップ関数の値は対象となる画像、
特徴データなどに応じて適切に設定するとよい。このよ
うにすれば、年齢推定の精度が一層向上する。In the above-described embodiment, the cursor switch 3 is operated to select a part pattern for each part stored in the parts screen ROM 10, or the position of the selected part pattern is adjusted using the position correction switch 5. Although the age is estimated by fuzzy inference based on the face image created by correcting, for example, the face image data representing the face image captured by the CCD camera 20 is stored in the face image RAM 21. The CPU 1 detects the aspect ratio of the face, the position of the eyes, and the like based on the stored face image data, and executes fuzzy inference based on these face feature data to estimate its age. Good. Further, in the above-mentioned embodiment, when estimating the age of the face image created in advance by fuzzy inference, the face feature data representing the aspect ratio of the face and the eye position is used as the input data, but as the face feature data, In addition to this, the number of wrinkles on the face, the degree of receding hair (the degree of baldness of the forehead), and the like may be used. Further, in the above embodiment, the fuzzy inference is realized by software using the CPU 1 and the table ROM 12, but it may be realized by hardware using a fuzzy chip, for example. Also, the value of the membership function used in fuzzy inference is the target image,
It may be set appropriately according to the characteristic data. By doing so, the accuracy of age estimation is further improved.
【0086】なお、性別による区分をすることにより、
女性の顔をについても同様の処理で年齢に応じた顔画像
を自動的に作成することができ、作成された顔画像から
客観的に年齢を迅速かつ容易に推定することができる。
また、顔画像は自分の顔であってもよいし、あるいは他
人の顔であってもよい。例えば、他人の顔画像であると
きは、これをモンタージュ画像として作成し、その個人
データ(このとき、例えば年齢データを除く)とともに
登録する際に、その年齢を推定して個人データとして登
録することもできる。また、予め登録する顔画像は本装
置を用いて作成し、それを他の記憶手段(例えば、EE
PROMあるいは不揮発性RAM)に格納するようにし
てもよい。そのようにすると、電源を切っても最新の登
録顔画像を使用して過去又は未来の予想顔を作成し、そ
の過去又は未来の予想顔に対して年齢を推定すれば、平
均的な年齢との対比結果を容易に知ることもできる。By dividing by sex,
With respect to the face of a woman, a face image according to age can be automatically created by the same process, and the age can be objectively and quickly estimated from the created face image.
Further, the face image may be one's own face or the face of another person. For example, if it is a face image of another person, create it as a montage image, and when registering it with its personal data (at this time, for example, excluding age data), estimate its age and register it as personal data. You can also In addition, a face image to be registered in advance is created using this apparatus, and it is stored in another storage means (for example, EE).
It may be stored in a PROM or a non-volatile RAM). By doing so, even if the power is turned off, the latest registered face image is used to create a past or future expected face, and if the age is estimated with respect to the past or future expected face, the average age will be obtained. It is also possible to easily know the comparison result of.
【0087】[0087]
【発明の効果】請求項1の発明によれば、複数のパーツ
画像を組み合せて顔画像を作成し、この作成された顔画
像の特徴を検出し、その後、この検出された特徴を入力
パラメータとして所定のファジールールに従ってファジ
ー推論を行い、このファジー推論の結果に基づいて、前
記作成された顔画像の年齢を推定することができる。そ
ればかりでなく、入力され表示されている実際の年齢
と、顔画像に基づいて推定された推定の年齢との大小
を、表示中の顔又は顔画像を見ながら比較検討すること
ができ、表示中の顔画像が実際の年齢より若く見える
か、年老いて見えるかの判断を迅速かつ確実に確認する
ことができる。また、請求項2の発明によれば、顔の特
徴を検出し、この検出された顔の特徴を表す顔特徴デー
タを入力データとして所定のファジールールに従ってフ
ァジー推論を行い、このファジー推論の結果に基づいて
前記顔の年齢を推定することができる。そればかりでな
く、入力され表示されている実際の年齢と、顔に基づい
て推定された推定の年齢との大小を、表示中の顔又は顔
画像を見ながら比較検討することができ、表示中の顔が
実際の年齢より若く見えるか、年老いて見えるかの判断
を迅速かつ確実に確認することができる。また、請求項
3の発明によれば、記憶されている顔を表示させ、この
表示されている顔の特徴を検出し、この検出された顔の
特徴に基づいて、前記顔の年齢を推定することができ
る。そればかりでなく、入力され表示されている実際の
年齢と、顔に基づいて推定された推定の年齢との大小
を、表示中の顔又は顔画像を見ながら比較検討すること
ができ、表示中の顔が実際の年齢より若く見えるか、年
老いて見えるかの判断を迅速かつ確実に確認することが
できる。したがって、本発明によれば、特殊な技能を必
要とすることなく、顔又は顔画像から客観的な年齢を迅
速かつ容易に推定することができるばかりでなく、入力
され表示されている実際の年齢と、顔又は顔画像に基づ
いて推定された推定の年齢との大小を、表示中の顔又は
顔画像を見ながら比較検討することができ、表示中の顔
又は顔画像が実際の年齢より若く見えるか、年老いて見
えるかの判断を迅速かつ確実に確認することができる。 According to the first aspect of the invention, a face image is created by combining a plurality of part images, the features of the created face image are detected, and then the detected features are used as input parameters. Fuzzy inference can be performed according to a predetermined fuzzy rule, and the age of the created face image can be estimated based on the result of the fuzzy inference. Not only that, but the actual age entered and displayed
And the estimated age estimated based on the facial image
Compare and examine while viewing the face or face image being displayed.
And the displayed face image looks younger than the actual age.
Quickly and reliably confirm whether or not you look old
be able to. According to the second aspect of the present invention, a facial feature is detected, fuzzy inference is performed according to a predetermined fuzzy rule using the facial feature data representing the detected facial feature as input data, and the result of the fuzzy inference is obtained. Based on this, the age of the face can be estimated. Not only that, but based on the actual age entered and displayed and the face
The estimated age and estimated size by the face or face being displayed.
You can compare and examine while looking at the image, and the face displayed is
Judging whether you look younger or older than the actual age
Can be confirmed quickly and reliably. Further, according to the invention of claim 3, to display a face it is stored, and detects the facial features being the display, based on the characteristics of the detected face, to estimate the age of the face be able to. Not only that, but the actual typed and displayed
The size of the age and the estimated age estimated based on the face
Compare and examine while viewing the face or face image being displayed.
The displayed face looks younger than the actual age, or
Quick and reliable confirmation of what looks old
it can. Therefore, according to the present invention, it is possible not only to quickly and easily estimate an objective age from a face or a face image without requiring special skills , but also to input
Based on the actual age displayed and the face or face image.
The estimated age and
You can compare and examine while looking at the face image and display the face
Or the face image looks younger than the actual age or looks old.
It is possible to quickly and surely confirm whether or not to make a decision.
【図1】本発明に係る年齢推定装置の一実施例の構成図
である。FIG. 1 is a configuration diagram of an embodiment of an age estimating device according to the present invention.
【図2】同実施例のファジー推論のメンバーシップ関数
を示す図である。FIG. 2 is a diagram showing a fuzzy inference membership function of the embodiment.
【図3】同実施例の顔画像作成・年齢推定処理のメイン
プログラムを示すフローチャートである。FIG. 3 is a flowchart showing a main program of face image creation / age estimation processing of the embodiment.
【図4】同実施例の特徴スイッチ割り込みルーチンを示
すフローチャートである。FIG. 4 is a flowchart showing a feature switch interrupt routine of the same embodiment.
【図5】同実施例のワークRAMのデータ格納エリアの
一例を示す図である。FIG. 5 is a diagram showing an example of a data storage area of the work RAM of the same embodiment.
【図6】同実施例のパーツ画面ROMに記憶されている
各パーツ毎の画面データの一例を示す図である。FIG. 6 is a diagram showing an example of screen data for each part stored in a parts screen ROM of the embodiment.
【図7】同実施例のカーソルスイッチ割り込みルーチン
を示すフローチャートである。FIG. 7 is a flowchart showing a cursor switch interrupt routine of the embodiment.
【図8】同実施例の表示スイッチ割り込みルーチンを示
すフローチャートである。FIG. 8 is a flowchart showing a display switch interrupt routine of the embodiment.
【図9】同実施例の位置修正スイッチ割り込みルーチン
を示すフローチャートである。FIG. 9 is a flowchart showing a position correction switch interrupt routine of the embodiment.
【図10】同実施例の年齢推定スイッチ割り込みルーチ
ンを示すフローチャートである。FIG. 10 is a flowchart showing an age estimation switch interrupt routine of the embodiment.
【図11】同実施例のファジールールA演算処理のサブ
ルーチンを示すフローチャートである。FIG. 11 is a flowchart showing a subroutine of fuzzy rule A calculation processing of the embodiment.
【図12】同実施例のファジールールB演算処理のサブ
ルーチンを示すフローチャートである。FIG. 12 is a flowchart showing a subroutine of fuzzy rule B calculation processing of the embodiment.
【図13】同実施例のファジールールC演算処理のサブ
ルーチンを示すフローチャートである。FIG. 13 is a flowchart showing a subroutine of fuzzy rule C arithmetic processing of the embodiment.
【図14】同実施例の最大値演算処理のサブルーチンを
示すフローチャートである。FIG. 14 is a flowchart showing a subroutine of maximum value calculation processing of the embodiment.
【図15】同実施例の重心計算処理のサブルーチンを示
すフローチャートである。FIG. 15 is a flowchart showing a subroutine of a center of gravity calculation process of the same embodiment.
【図16】同実施例の作成顔画像の一例を示す図であ
る。FIG. 16 is a diagram showing an example of a created face image of the embodiment.
1 CPU(顔画像作成手段、特徴データ検出手段、顔
特徴検出手段、実年齢指定定手段、年齢推定手段)
2 特徴スイッチ
3 カーソルスイッチ
4 表示スイッチ
5 位置修正スイッチ
6 年齢推定スイッチ
7 年齢入力キー
8 プログラムROM
9 ワークRAM
10 パーツ画面ROM(パーツパターン記憶手段)
11 VRAM
12 テーブルROM(顔特徴データ記憶手段)
13 表示部(表示手段)1 CPU (face image creation means, feature data detection means, face feature detection means, actual age designation setting means, age estimation means) 2 feature switch 3 cursor switch 4 display switch 5 position correction switch 6 age estimation switch 7 age input key 8 Program ROM 9 Work RAM 10 Parts screen ROM (parts pattern storage means) 11 VRAM 12 Table ROM (face characteristic data storage means) 13 Display unit (display means)
フロントページの続き (56)参考文献 特開 平6−168314(JP,A) 飯田国明 古川達也,正面頭部骨格デ ータに基づく成長期の人の年齢ファジィ 推論,電子情報通信学会論文誌 J75− D−2,日本,社団法人電子情報通信学 会,1992年 3月,p538−544 (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 G06T 7/00 - 7/60 G06T 11/00 - 11/80 A63F 13/00 Continuation of the front page (56) References JP-A-6-168314 (JP, A) Kuniaki Iida Tatsuya Furukawa, Age fuzzy reasoning of growing person based on frontal skeleton data, IEICE Transactions J75 -D-2, Japan, The Institute of Electronics, Information and Communication Engineers, March 1992, p538-544 (58) Fields investigated (Int.Cl. 7 , DB name) G06T 1/00 G06T 7/00-7 / 60 G06T 11/00-11/80 A63F 13/00
Claims (9)
作成する顔画像作成手段と、 この顔画像作成手段によって作成された顔画像の特徴を
検出する顔特徴検出手段と、 この顔特徴検出手段により検出された特徴を入力パラメ
ータとして所定のファジールールに従ってファジー推論
を行い、このファジー推論の結果に基づいて、前記顔画
像作成手段によって作成された顔画像の年齢を推定する
年齢推定手段と、前記顔画像作成手段により作成された顔画像に対応する
実際の年齢を入力する年齢入力手段と、 この年齢入力手段により入力された実際の年齢、前記年
齢推定手段により推定された推定の年齢、および、前記
顔画像作成手段によって作成された顔画像を同じ画面上
に表示するように制御する表示制御手段と、 を備えたことを特徴とする年齢推定装置。1. A face image is formed by combining a plurality of part images.
Face image creation means to create, The features of the face image created by this face image creating means
Facial feature detection means for detecting, Input the features detected by this facial feature detection means.
Fuzzy inference according to predetermined fuzzy rules as data
Based on the result of this fuzzy inference
Estimate the age of the face image created by the image creation means
Age estimation means,It corresponds to the face image created by the face image creating means.
Age input means to input the actual age, The actual age input by this age input means, the year
The estimated age estimated by the age estimating means, and
The face image created by the face image creating means is displayed on the same screen.
Display control means for controlling to display An age estimating device comprising:
特徴データを入力データとして所定のファジールールに
従ってファジー推論を行い、このファジー推論の結果に
基づいて前記顔の年齢を推定する年齢推定手段と、前記顔特徴検出手段により検出される顔に対応する実際
の年齢を入力する年齢入力手段と、 この年齢入力手段により入力された実際の年齢、前記年
齢推定手段により推定された推定の年齢、および、前記
前記顔特徴検出手段により検出される顔を同じ画面上に
表示するように制御する表示制御手段と、 を備えたことを特徴とする年齢推定装置。2. A facial feature detecting means for detecting facial features, A face representing the features of the face detected by the face feature detecting means.
Use the characteristic data as input data and follow a predetermined fuzzy rule
Therefore, fuzzy inference is performed, and the result of this fuzzy inference is
Age estimating means for estimating the age of the face based onActual corresponding to the face detected by the face feature detection means
Age input means to enter the age of, The actual age input by this age input means, the year
The estimated age estimated by the age estimating means, and
The face detected by the face feature detection means is displayed on the same screen.
Display control means for controlling to display, An age estimating device comprising:
示制御手段と、 この第1の表示制御手段の制御により表示されている顔
の特徴を検出する顔特徴検出手段と、 この顔特徴検出手段により検出された顔の特徴に基づい
て、前記顔の年齢を推定する年齢推定手段と、前記第1の表示制御手段の制御により顔を表示した後、
当該顔に対応する実際の年齢を入力する年齢入力手段
と、 この年齢入力手段により入力された実際の年齢と前記年
齢推定手段により推定された推定の年齢とを前記表示さ
れている顔と同じ画面上に表示するように制御する第2
の表示制御手段と、 を備えたことを特徴とする年齢推定装置。3. A first table for displaying stored faces.
Indicating control means, The face displayed by the control of the first display control means.
Facial feature detecting means for detecting the feature of Based on the facial features detected by this facial feature detection means
And an age estimating means for estimating the age of the face,After displaying the face under the control of the first display control means,
Age input means for inputting the actual age corresponding to the face
When, Actual age and the year entered by this age input means
The estimated age estimated by the age estimation means is displayed above.
Second control to display on the same screen as the face
Display control means of An age estimating device comprising:
に対する目の高さ、目の大きさ、しわの本数、髪際の後
退度のいずれかであることを特徴とする請求項2又は3
記載の年齢推定装置。4. The face characteristic is any one of a face aspect ratio, eye height with respect to the whole face, eye size, number of wrinkles, and receding degree of hair. Item 2 or 3
The described age estimation device.
手段によって作成された顔画像の縦横比、目の高さ、目
の大きさ、しわの本数、髪際の後退度のうちの少なくと
も1つを検出することを特徴とする請求項1記載の年齢
推定装置。5. The face feature detecting means is at least one of aspect ratio of the face image created by the face image creating means, eye height, eye size, number of wrinkles, and receding degree of hair. The age estimating device according to claim 1, wherein one is detected.
る顔の縦横比および目の高さに従ってファジー推論を行
い、前記顔の年齢を推定することを特徴とする請求項3
記載の年齢推定装置。6. The age estimating means estimates the age of the face by performing fuzzy inference according to the aspect ratio of the face and the eye height which are the features of the face.
The described age estimation device.
作成する顔画像作成ステップと、 この顔画像作成ステップによって作成された顔画像の特
徴を検出する顔特徴検出ステップと、 この顔特徴検出ステップにより検出された特徴を入力パ
ラメータとして所定のファジールールに従ってファジー
推論を行い、このファジー推論の結果に基づいて、前記
顔画像作成ステップによって作成された顔画像の年齢を
推定する年齢推定ステップと、 前記顔画像作成ステップにより作成された顔画像に対応
する実際の年齢を入力する年齢入力ステップと、 この年齢入力ステップにより入力された実際の年齢、前
記年齢推定ステップにより推定された推定の年齢、およ
び、前記顔画像作成ステップによって作成された顔画像
を同じ画面上に表示するように制御する表示制御ステッ
プと、 を備えたことを特徴とする年齢表示制御方法 。7.Combine multiple parts images to create a face image
Face image creation step to create, ThisOf the face image created by the face image creation step of
A facial feature detecting step for detecting a sign, Input the features detected by this facial feature detection step.
Fuzzy according to a predetermined fuzzy rule as a parameter
Make inferences, and based on the results of this fuzzy inference,
The age of the face image created by the face image creation step
An age estimation step to estimate, Corresponds to the face image created by the face image creation step
An age input step to enter the actual age, Actual age entered in this age entry step, previous
Estimated age estimated by the age estimation step, and
And the face image created in the face image creating step
Display control step that controls to display on the same screen.
And Age control method characterized by comprising .
と、 この顔特徴検出ステップにより検出された顔の特徴を表
す顔特徴データを入力データとして所定のファジールー
ルに従ってファジー推論を行い、このファジー推論の結
果に基づいて前記顔の年齢を推定する年齢推定ステップ
と、 前記顔特徴検出ステップにより検出される顔に対応する
実際の年齢を入力する年齢入力ステップと、 この年齢入力ステップにより入力された実際の年齢、前
記年齢推定ステップにより推定された推定の年齢、およ
び、前記前記顔特徴検出ステップにより検出される顔を
同じ画面上に表示するように制御する表示制御ステップ
と、 を備えたことを特徴とする年齢表示制御方法。 8.Facial feature detection step for detecting facial features
When, Display the facial features detected by this facial feature detection step.
Using the facial feature data as input data,
Fuzzy inference according to
Age estimation step for estimating the age of the face based on the result
When, Corresponds to the face detected by the face feature detection step
An age input step to enter the actual age, Actual age entered in this age entry step, previous
Estimated age estimated by the age estimation step, and
The face detected by the face feature detection step
Display control step to control to display on the same screen
When, An age display control method comprising:
示制御ステップと、 この第1の表示制御ステップの制御により表示されてい
る顔の特徴を検出する顔特徴検出ステップと、 この顔特徴検出ステップにより検出された顔の特徴に基
づいて、前記顔の年齢を推定する年齢推定ステップと、 前記第1の表示制御ステップの制御により顔を表示した
後、当該顔に対応する実際の年齢を入力する年齢入力ス
テップと、 この年齢入力ステップにより入力された実際の年齢と前
記年齢推定ステップにより推定された推定の年齢とを前
記表示されている顔と同じ画面上に表示するように制御
する第2の表示制御ステップと、 を備えたことを特徴とする年齢表示制御方法。 9.First table for displaying stored faces
The indicated control step, It is displayed under the control of this first display control step.
Facial feature detection step for detecting facial features that Based on the facial features detected by this facial feature detection step,
Then, an age estimation step of estimating the age of the face, The face is displayed under the control of the first display control step.
Then enter the actual age corresponding to the face
Tep, Actual age and previous entered by this age input step
The estimated age estimated by the age estimation step
Control to display on the same screen as the displayed face
A second display control step to An age display control method comprising:
Priority Applications (15)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14694593A JP3455752B2 (en) | 1993-05-26 | 1993-05-26 | Age estimation device and age display control method |
| TW083104642A TW359781B (en) | 1993-05-25 | 1994-05-23 | Animal image display controlling devices and method thereof |
| EP00116877A EP1045342B1 (en) | 1993-05-25 | 1994-05-24 | Face image data processing device and method |
| EP94107995A EP0626657B1 (en) | 1993-05-25 | 1994-05-24 | Image data processing device and method |
| MYPI94001326A MY111479A (en) | 1993-05-25 | 1994-05-24 | Face image data processing devices |
| DE69430496T DE69430496T2 (en) | 1993-05-25 | 1994-05-24 | Facial image data processing device and method |
| DE69426138T DE69426138T2 (en) | 1993-05-25 | 1994-05-24 | Image data processing device and method |
| KR1019940011447A KR940027556A (en) | 1993-05-25 | 1994-05-25 | Facial image data processing device |
| CN94105871A CN1047680C (en) | 1993-05-25 | 1994-05-25 | Facial image data processing device |
| US08/749,730 US5818457A (en) | 1993-05-25 | 1996-11-15 | Face image data processing devices |
| US08/896,642 US5867171A (en) | 1993-05-25 | 1997-07-18 | Face image data processing devices |
| KR2019980014160U KR200142432Y1 (en) | 1993-05-25 | 1998-07-29 | Facial image data processing device |
| US09/158,479 US6226013B1 (en) | 1993-05-25 | 1998-09-22 | Face image data processing devices |
| HK98114703.2A HK1013461B (en) | 1993-05-25 | 1998-12-22 | Image data processing device and method |
| HK01102709.7A HK1032133B (en) | 1993-05-25 | 2001-04-17 | Face image data processing device and method |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP14694593A JP3455752B2 (en) | 1993-05-26 | 1993-05-26 | Age estimation device and age display control method |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JPH06333023A JPH06333023A (en) | 1994-12-02 |
| JP3455752B2 true JP3455752B2 (en) | 2003-10-14 |
Family
ID=15419133
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP14694593A Expired - Fee Related JP3455752B2 (en) | 1993-05-25 | 1993-05-26 | Age estimation device and age display control method |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP3455752B2 (en) |
Families Citing this family (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020162031A1 (en) * | 2001-03-08 | 2002-10-31 | Shmuel Levin | Method and apparatus for automatic control of access |
| JP4575619B2 (en) * | 2001-05-08 | 2010-11-04 | ポーラ化成工業株式会社 | Real age estimation method |
| JP4204336B2 (en) * | 2003-01-30 | 2009-01-07 | 富士通株式会社 | Facial orientation detection device, facial orientation detection method, and computer program |
| JP4924742B2 (en) | 2010-06-30 | 2012-04-25 | カシオ計算機株式会社 | Image processing apparatus and method, and program |
| JP5836095B2 (en) | 2011-12-05 | 2015-12-24 | キヤノン株式会社 | Image processing apparatus and image processing method |
| KR20210142342A (en) * | 2020-05-18 | 2021-11-25 | 주식회사 엘지생활건강 | Age estimating apparatus and method for estimating age |
-
1993
- 1993-05-26 JP JP14694593A patent/JP3455752B2/en not_active Expired - Fee Related
Non-Patent Citations (1)
| Title |
|---|
| 飯田国明 古川達也,正面頭部骨格データに基づく成長期の人の年齢ファジィ推論,電子情報通信学会論文誌 J75−D−2,日本,社団法人電子情報通信学会,1992年 3月,p538−544 |
Also Published As
| Publication number | Publication date |
|---|---|
| JPH06333023A (en) | 1994-12-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| EP0626657B1 (en) | Image data processing device and method | |
| JP3334230B2 (en) | Montage image display control device and montage image display control method | |
| JP6537419B2 (en) | Template selection system, template selection method, template selection program and recording medium storing the program | |
| KR20100019067A (en) | System for providing internet service using three-dimensional avatar and method thereof | |
| JP3455752B2 (en) | Age estimation device and age display control method | |
| US5787419A (en) | Face image searching apparatus for searching for and displaying a face image | |
| CN112418995A (en) | Online shopping virtual interaction method based on MR virtual reality technology and storage medium | |
| JP3298242B2 (en) | Face image creation device and face image creation method | |
| CN110310357B (en) | Model interleaving processing method and device, computing equipment and storage medium | |
| JP2021072080A (en) | Arithmetic device and arithmetic method | |
| CN115035248A (en) | Graphic data processing method and system based on three-dimensional modeling | |
| KR200142432Y1 (en) | Facial image data processing device | |
| JP2023168495A (en) | Display device, display method and display program | |
| HK1013461B (en) | Image data processing device and method | |
| JP3341050B2 (en) | Face image creation device and face image creation method | |
| CN118691766A (en) | A virtual fitting method, device, equipment, and storage medium | |
| JP2020154844A (en) | Image processing equipment, image processing method, image processing program and product development system | |
| WO2023160196A1 (en) | Content display method and apparatus, electronic device, and storage medium | |
| JPH08305836A (en) | Face image creation device | |
| CN114298929A (en) | Image processing method, image processing device, electronic equipment and storage medium | |
| HK1032133B (en) | Face image data processing device and method | |
| JP7705996B1 (en) | Generation system and generation program | |
| CN112308979A (en) | Prompt message display method and device, computer equipment and storage medium | |
| JP3341051B2 (en) | Face image creation device and face image creation method | |
| CN117726376A (en) | Sales system using eye tracking module |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080801 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20080801 Year of fee payment: 5 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20090801 Year of fee payment: 6 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20100801 Year of fee payment: 7 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20110801 Year of fee payment: 8 |
|
| FPAY | Renewal fee payment (event date is renewal date of database) |
Free format text: PAYMENT UNTIL: 20120801 Year of fee payment: 9 |
|
| LAPS | Cancellation because of no payment of annual fees |