JPH07306483A - Method for detecting face area in photographic picture frame - Google Patents

Method for detecting face area in photographic picture frame

Info

Publication number
JPH07306483A
JPH07306483A JP9857994A JP9857994A JPH07306483A JP H07306483 A JPH07306483 A JP H07306483A JP 9857994 A JP9857994 A JP 9857994A JP 9857994 A JP9857994 A JP 9857994A JP H07306483 A JPH07306483 A JP H07306483A
Authority
JP
Japan
Prior art keywords
size
face
photographing
area
skin color
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.)
Pending
Application number
JP9857994A
Other languages
Japanese (ja)
Inventor
Takaaki Terashita
隆章 寺下
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Holdings Corp
Original Assignee
Fuji Photo Film Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Fuji Photo Film Co Ltd filed Critical Fuji Photo Film Co Ltd
Priority to JP9857994A priority Critical patent/JPH07306483A/en
Publication of JPH07306483A publication Critical patent/JPH07306483A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B2217/00Details of cameras or camera bodies; Accessories therefor
    • G03B2217/24Details of cameras or camera bodies; Accessories therefor with means for separately producing marks on the film
    • G03B2217/242Details of the marking device
    • G03B2217/244Magnetic devices

Landscapes

  • Camera Data Copying Or Recording (AREA)
  • Control Of Exposure In Printing And Copying (AREA)

Abstract

PURPOSE:To accurately detect a face area without performing a special operation. CONSTITUTION:A magnetic track 21a is installed on a photographic film 19, and photographic magnification data is recorded on the magnetic track 21a. At the time of photographic printing, by reading the photographic magnification data and obtaining the product with a standard profile size, the profile size on the image plane is estimated. A skin colored area is extracted from the image plane and the size of the extracted skin colored area is compared with the estimated face size, and in the case both are the same in size, or almost the same, the skin colored area is detected as the face area.

Description

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

【0001】[0001]

【産業上の利用分野】本発明は撮影画面の顔領域検出方
法に係り、より詳しくは、写真フィルム、電子スチール
カメラの磁気フロッピーやメモリーカード等に記録され
た画像の中から人物の顔の部分を検出する顔領域検出方
法に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a method for detecting a face area on a photographic screen, and more particularly, to a face portion of a person from an image recorded on a photographic film, a magnetic floppy of an electronic still camera, a memory card or the like. The present invention relates to a face area detecting method for detecting the.

【0002】[0002]

【従来の技術】写真画面には、主要被写体画像の他に背
景画像が記録されているが、プリント等のハードコピー
の作製に際しては主要被写体画像の濃度及びカラーバラ
ンスが適性に仕上がっていれば、たとえ背景画像の仕上
がりが不適性であっても、ハードコピーが良好とされる
ことが多い。
2. Description of the Related Art On a photographic screen, a background image is recorded in addition to a main subject image. However, in producing a hard copy such as a print, if the density and color balance of the main subject image are properly finished, Even if the finish of the background image is inadequate, the hard copy is often regarded as good.

【0003】主要被写体画像の殆どが人物の顔であるこ
とに着目し、写真画面に記録された画像の中から顔の部
分を抽出し、この顔の部分が適性に仕上がるように、ハ
ードコピーを再現する方法が知られている。例えば、写
真フィルムに関しては、特開昭52−156624号公
報があり、これに記載された露光制御方法では、ポジ画
像での肌色に相当するネガの色(以下、これを肌色とい
う)が予め定義されている。そして、コマをスキャンし
て得た各点の色濃度と比較して、各点の画素が肌色かど
うかを判定する。次に、抽出した肌色の画素から構成さ
れる領域の平均色濃度を算出し、この平均色濃度を用い
て焼付露光量を推定する。この方法は、露光制御方法と
しては優れているが、肌色画素の抽出が難しいために、
例えば肌の色と似ている壁等が含まれていると、この部
分を肌と誤認するという問題点がある。
Paying attention to the fact that most of the main subject image is a person's face, a face portion is extracted from the image recorded on the photographic screen, and a hard copy is made so that this face portion can be properly finished. A method of reproducing is known. For example, regarding a photographic film, there is Japanese Patent Laid-Open No. 52-156624, and in the exposure control method described therein, a negative color (hereinafter referred to as a skin color) corresponding to a skin color in a positive image is defined in advance. Has been done. Then, by comparing the color density of each point obtained by scanning the frame, it is determined whether the pixel of each point is a skin color. Next, the average color density of the region composed of the extracted skin color pixels is calculated, and the printing exposure amount is estimated using this average color density. This method is excellent as an exposure control method, but since it is difficult to extract skin color pixels,
For example, if a wall or the like that resembles the skin color is included, there is a problem in that this part is mistakenly recognized as the skin.

【0004】そこで、物体と人物の肌との誤認を防止す
るために、コマをモニタに表示し、これを観察して顔の
部分の一部をライトペン等で指定することで、この指定
された画素と同一または類似した色を持った画素を自動
抽出し、それにより顔領域を決定するようにした主要画
像検出方法が知られている(特開昭62−189456
号公報)。
Therefore, in order to prevent erroneous recognition of an object and a person's skin, a frame is displayed on the monitor, and a part of the face is designated by a light pen or the like by observing the frame, and this designation is performed. A main image detecting method is known in which pixels having the same color as or similar to those of the other pixels are automatically extracted and the face area is determined by the pixels (Japanese Patent Laid-Open No. 62-189456).
Issue).

【0005】[0005]

【発明が解決しようとする課題】しかしながら、上記従
来の主要画像検出方法では、誤認防止に効果があるが、
ラントペンで人物の顔の部分をいちいち指定しなければ
ならないため、操作が面倒であるという欠点がある。
However, although the above-mentioned conventional main image detecting method is effective in preventing misidentification,
There is a drawback that the operation is troublesome because the face portion of the person must be specified with the runt pen.

【0006】本発明は、上記欠点を解消するためになさ
れたもので、特別な操作を行なうことなく、顔領域を正
確に検出することができるようにした撮影画面の顔領域
検出方法を提供することを目的とするものである。
The present invention has been made to solve the above-mentioned drawbacks, and provides a face area detecting method for a photographing screen which enables the face area to be accurately detected without performing a special operation. That is the purpose.

【0007】[0007]

【課題を解決するための手段】上記目的を達成するため
に、請求項1の発明は、撮影時の撮影倍率データを記録
し、記録された撮影倍率データを読み取って人物の顔の
サイズを推定し、推定した人物の顔のサイズと撮影画面
上の肌色領域のサイズとを比較し、推定した人物の顔の
サイズと肌色領域のサイズとが同一または類似の場合に
肌色領域を人物の顔の領域として検出するものである。
In order to achieve the above object, the invention of claim 1 records the photographing magnification data at the time of photographing, and reads the recorded photographing magnification data to estimate the size of a person's face. Then, compare the estimated person's face size with the size of the skin color area on the shooting screen, and if the estimated person's face size and skin color area size are the same or similar, It is detected as a region.

【0008】また、請求項2の発明は、写真撮影時の撮
影倍率データを写真フィルムに設けられた磁気記録層に
記録し、写真フィルム取り扱い時に記録された撮影倍率
データを読み取って撮影画面の人物の顔のサイズを推定
し、推定した人物の顔のサイズと撮影画面上の肌色領域
のサイズとを比較し、推定した人物の顔のサイズと肌色
領域のサイズとが同一または類似の場合に肌色領域を人
物の顔の領域として検出するものである。
According to a second aspect of the present invention, the photographing magnification data at the time of photographing is recorded on a magnetic recording layer provided on the photographic film, and the photographing magnification data recorded at the time of handling the photographic film is read to read the person on the photographing screen. Estimate the size of the human face, compare the estimated human face size with the size of the skin color area on the shooting screen, and if the estimated human face size and skin color area size are the same or similar, The area is detected as a person's face area.

【0009】[0009]

【作用】請求項1の発明では記録された撮影倍率データ
に基づいて人物の顔のサイズを推定し、推定した人物の
顔のサイズと撮影画面上の肌色領域のサイズとを比較
し、推定した人物の顔のサイズと肌色領域とサイズが同
一または類似の場合に肌色領域を撮影画面上の人物の顔
の領域として判定して検出する。サイズを比較して人物
の顔の領域を検出しているので、特別な操作を行うこと
なく顔領域を検出することができる。なお、肌色は人種
によって異なるので撮影されている人物の人種に応じて
色相を異ならせてもよい。
According to the first aspect of the present invention, the size of the person's face is estimated based on the recorded photographing magnification data, and the estimated size of the person's face and the size of the skin color area on the photographing screen are compared and estimated. When the size of the person's face and the size of the skin color area are the same or similar, the skin color area is determined and detected as the area of the person's face on the photographing screen. Since the person's face area is detected by comparing the sizes, the face area can be detected without performing a special operation. Since the skin color differs depending on the race, the hue may be different according to the race of the person being photographed.

【0010】また、請求項2の発明では、写真撮影時の
撮影倍率データを写真フィルムに設けられた磁気記録層
に記録し、写真フィルム取り扱い時に記録された撮影倍
率データを読み取って撮影画面の人物の顔のサイズを推
定し、推定した人物の顔のサイズと撮影画面上の肌色領
域のサイズとを比較し、推定した人物の顔のサイズと肌
色領域のサイズとが同一または類似の場合に肌色領域を
人物の顔の領域として検出する。この発明では、磁気記
録層を用いているので、データの記録、再生、再記録等
を容易に行うことができる。
Further, in the invention of claim 2, the photographing magnification data at the time of photographing is recorded on the magnetic recording layer provided on the photographic film, and the photographing magnification data recorded at the time of handling the photographic film is read to read the person on the photographing screen. Estimate the size of the human face, compare the estimated human face size with the size of the skin color area on the shooting screen, and if the estimated human face size and skin color area size are the same or similar, The area is detected as a human face area. In the present invention, since the magnetic recording layer is used, data recording, reproduction, re-recording, etc. can be easily performed.

【0011】[0011]

【実施例】以下、写真カメラと写真フィルムを取り扱う
写真プリンタとを含む写真システムに本発明を適用した
実施例について説明する。
DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment in which the present invention is applied to a photographic system including a photographic camera and a photographic printer that handles photographic film will be described below.

【0012】図1は撮影時の撮影倍率を表す撮影倍率デ
ータを記録するカメラを示すものである。撮影レンズ1
0は、光学系10aと光学系10aを保持するレンズ鏡
胴10bとから構成されており、レンズ移動機構11に
よって光軸12に沿って移動する。このレンズ移動機構
11は、例えば距離計に連動した操作部材13で作動す
る。また、レンズ移動機構11は、ポテンショメータ等
のセンサー14を作動させ、撮影レンズ10の移動量
(直線的変位または回転量)を電気信号に変換し、これ
を撮影倍率演算回路15に送る。なお、このセンサー1
4は、操作部材13または撮影レンズ10の位置を検出
してもよい。更に、センサー14としては、撮影レンズ
10の移動量をリニアに変換するものの他に、撮影レン
ズ10の移動範囲を複数に分割し、これらの範囲毎に変
化したゾーン信号を発生するものも用いることができ
る。
FIG. 1 shows a camera for recording photographing magnification data representing a photographing magnification at the time of photographing. Shooting lens 1
Reference numeral 0 is composed of an optical system 10a and a lens barrel 10b holding the optical system 10a, and is moved along the optical axis 12 by the lens moving mechanism 11. The lens moving mechanism 11 is operated by, for example, an operation member 13 that is linked to a rangefinder. Further, the lens moving mechanism 11 actuates a sensor 14 such as a potentiometer to convert the movement amount (linear displacement or rotation amount) of the photographing lens 10 into an electric signal, which is sent to the photographing magnification calculation circuit 15. In addition, this sensor 1
4 may detect the position of the operation member 13 or the taking lens 10. Further, as the sensor 14, not only a sensor that linearly converts the movement amount of the photographing lens 10 but also a sensor that divides the movement range of the photographing lens 10 into a plurality and generates a zone signal that changes in each of these ranges is used. You can

【0013】焦点距離信号発生回路16は、撮影レンズ
10の焦点距離を表す信号を発生してこれを撮影倍率演
算回路15に送る。この撮影倍率演算回路15は、以下
の式に従って撮影倍率mを演算する。
The focal length signal generation circuit 16 generates a signal representing the focal length of the photographing lens 10 and sends it to the photographing magnification calculation circuit 15. The shooting magnification calculation circuit 15 calculates the shooting magnification m according to the following formula.

【0014】 m=f/(L−f) ・・・(1) ここで、Lはセンサー14によって検出された撮影レン
ズの移動量より求まる撮影レンズから被写体までの距
離、fは撮影レンズの焦点距離である。
M = f / (L−f) (1) where L is the distance from the photographing lens to the subject, which is obtained from the movement amount of the photographing lens detected by the sensor 14, and f is the focus of the photographing lens. It is a distance.

【0015】なお、L≫fであるので、撮影倍率mは以
下の(2)式で近似させてもよく、また、撮影倍率mは
撮影レンズからフィルム面までの距離Fと撮影レンズの
焦点距離fとを用いて(3)式のように表せるので
(3)式を用いて演算してもよい。
Since L >> f, the photographing magnification m may be approximated by the following equation (2), and the photographing magnification m is the distance F from the photographing lens to the film surface and the focal length of the photographing lens. Since f and can be expressed as in Expression (3), the calculation may be performed using Expression (3).

【0016】 m≒f/L ・・・(2) m=(F−f)/f ・・・(3) 写真フィルム19には、乳剤面と反対の面に全面にわた
って透明磁気層が塗布されており、図2に示すように画
像コマに対応して設けられた磁気トラック21aには撮
影時の撮影倍率データが記録される。なお、21bは写
真現像所で使用する磁気トラック、19bは各コマのエ
ッジに対応する位置に穿設されたパーフォレーションで
ある。このパーフォレーション19bを巻止め装置のセ
ンサーが検出することにより1コマ送りが行なわれる。
M = f / L (2) m = (F−f) / f (3) A photographic film 19 is coated with a transparent magnetic layer over the entire surface opposite to the emulsion surface. As shown in FIG. 2, the photographing magnification data at the time of photographing is recorded on the magnetic track 21a provided corresponding to the image frame. Reference numeral 21b is a magnetic track used in a photofinishing laboratory, and reference numeral 19b is a perforation formed at a position corresponding to the edge of each frame. The perforation 19b is detected by the sensor of the winding stop device, so that one frame is advanced.

【0017】なお、磁気トラック21aには、撮影時の
平均輝度BVを表す情報やフラッシュ発光の有無を表す
情報を更に記録してもよい。また、上記では、磁気的に
撮影倍率データを記録する例について説明したが、バー
コードや光学マークを用いて光学的に記録してもよく、
ポンチホール等によって機械的に記録してもよい。さら
に、フィルム上に情報を記録する位置は図2の位置に限
定されることはなく、フィルムコマ間でもよく、またフ
ィルムやフィルム収納カートリッジに貼着またはプリン
トしたICに記録してもよい。また、上記では、フィル
ム全面に渡って透明磁気層を塗布したが、フィルム側縁
近傍のフィルム長さ方向に沿った位置にのみ透明磁気層
または不透明な磁気層を塗布するようにしてもよい。フ
ィルム側縁近傍は、撮影された画像コマには影響しない
ので、磁気層の厚みを厚くすることにより、磁気記録密
度を高くすることができる。
The magnetic track 21a may be further recorded with information indicating the average brightness BV at the time of photographing and information indicating the presence or absence of flash emission. Further, in the above, an example of magnetically recording the photographing magnification data has been described, but it may be optically recorded by using a barcode or an optical mark,
It may be recorded mechanically by a punch hole or the like. Further, the position of recording the information on the film is not limited to the position shown in FIG. 2 and may be between film frames, or may be recorded on the IC attached or printed on the film or the film storage cartridge. Further, in the above, the transparent magnetic layer is applied over the entire surface of the film, but the transparent magnetic layer or the opaque magnetic layer may be applied only at the position near the side edge of the film along the length direction of the film. The vicinity of the side edge of the film does not affect the photographed image frame, so that the magnetic recording density can be increased by increasing the thickness of the magnetic layer.

【0018】上記のように演算された撮影倍率データ
は、ドライバ17に出力される。このドライバ17は、
記録用の磁気ヘッド20を駆動して、撮影倍率データを
写真フィルム19の磁気トッラクに記録する。
The photographing magnification data calculated as described above is output to the driver 17. This driver 17
The recording magnetic head 20 is driven to record the photographing magnification data on the magnetic track of the photographic film 19.

【0019】撮影レンズ10と写真フィルム19との間
には、シャッタ機構25が配置されている。このシヤッ
タ機構25は、例えば2枚のシャッタ羽根26,27か
ら構成されており、各シャッタ羽根26,27には切欠
き26a,27aがそれぞれ形成されている。これらの
シャッタ羽根26,27は、駆動機構28によって可動
ピン29が固定ピン30に向って移動する際に、固定ピ
ン30を中心にして離れる方向に移動して切欠き26
a,27aを重ねる。この切欠き26a,27aが重な
った部分が開口し、これを通った光が写真フィルム19
に入射し、写真フィルム19に被写体を写し込む。
A shutter mechanism 25 is arranged between the taking lens 10 and the photographic film 19. The shutter mechanism 25 includes, for example, two shutter blades 26 and 27, and the shutter blades 26 and 27 are formed with notches 26a and 27a, respectively. These shutter blades 26, 27 move away from the fixed pin 30 when the movable pin 29 moves toward the fixed pin 30 by the drive mechanism 28 and move away from the fixed pin 30.
Stack a and 27a. The portion where the notches 26a and 27a overlap is opened, and the light passing through the notch 26a and 27a is opened to the photographic film 19.
And the subject is imaged on the photographic film 19.

【0020】図3は写真プリンタを示すものである。光
源35から放出された白色光は、シアンフィルタ36,
マゼンフィルタ37,イエローフィルタ38を通ってか
らミキシングボックス39に入射する。これらのフィル
タ36〜38からなる色補正フィルタは、フィルタ調整
部40によって光路41への挿入量が調節され、それに
より焼付光の三色光成分及びその強度が調節される。こ
のミキシングボックス39は、内面がミラー面となった
角筒の両端部に拡散板を取り付けたものである。
FIG. 3 shows a photographic printer. The white light emitted from the light source 35 is converted into the cyan filter 36,
The light enters the mixing box 39 after passing through the magenta filter 37 and the yellow filter 38. In the color correction filter including these filters 36 to 38, the amount of insertion into the optical path 41 is adjusted by the filter adjusting unit 40, and thereby the three color light components of the printing light and its intensity are adjusted. This mixing box 39 is one in which diffusion plates are attached to both ends of a rectangular tube whose inner surface is a mirror surface.

【0021】フィルムキャリア44はプリント位置に配
置されており、現像済み写真フィルム19がセットさ
れ、ミキシングボックス39を透過した光で照明され
る。この写真フィルム19の平坦性を確保するために、
プリント位置の上にフィルムマスク45が設けられてい
る。このフィルムマスク45は、周知のようにコマのサ
イズに対応した開口が形成されており、写真フィルム1
9の移送時に、ソレノイド(図示せず)によって浮き上
がり、プリント時に写真フィルム19を押え付けるよう
になっている。
The film carrier 44 is arranged at the print position, the developed photographic film 19 is set, and the film carrier 44 is illuminated by the light transmitted through the mixing box 39. To ensure the flatness of this photographic film 19,
A film mask 45 is provided above the print position. As is well known, the film mask 45 has openings corresponding to the size of the frame, and the photographic film 1
When the sheet 9 is transferred, it is lifted up by a solenoid (not shown) and presses the photographic film 19 during printing.

【0022】このプリント位置の手前に、再生用の磁気
ヘッド46が配置されており、プリント位置に送られる
際に、各コマ毎に記録された撮影倍率データが読み取ら
れる。この読み取ったデータは、デコーダ47に送られ
てデコードされてから、演算部48に送られる。
A reproducing magnetic head 46 is arranged in front of the print position, and the photographing magnification data recorded for each frame is read when the magnetic head 46 is sent to the print position. The read data is sent to the decoder 47 and decoded, and then sent to the arithmetic unit 48.

【0023】また、プリント位置の斜め上方には、レン
ズ50とイメージエリヤセンサー51とから構成された
スキャナー52が配置されており、プリント位置にセッ
トされたコマの各点の透過光を測定する。このスキャナ
ー52の信号は、A/D変換器53でデシタル信号に変
換されてから、対数変換器54で対数変換される。この
対数変換器54で濃度信号に変換されてから演算部48
に送られ、顔領域の抽出と、顔領域の有無による焼付露
光量演算式の選択、選択した演算式による焼付露光量の
演算が行われ、得られた各色の焼付露光量はコントロー
ラ55に送られる。
A scanner 52 composed of a lens 50 and an image area sensor 51 is arranged diagonally above the print position, and measures the transmitted light at each point of the frame set at the print position. The signal of the scanner 52 is converted into a digital signal by the A / D converter 53 and then logarithmically converted by the logarithmic converter 54. After being converted into a density signal by the logarithmic converter 54, the calculation unit 48
To the controller 55. The face area is extracted, the printing exposure amount calculation formula is selected depending on the presence / absence of the face region, and the printing exposure amount is calculated according to the selected calculation formula. To be

【0024】プリント位置の上方には、焼付レンズ58
が配置されており、ペーパーマスク59の背後に配置し
たカラーペーパー60に、セットされたコマの画像を拡
大投影する。この焼付レンズ58とカラーペーパー60
との間にはシャッタ駆動部61で開閉制御されるシャッ
タ62が配置されている。
Above the print position, a printing lens 58 is provided.
Are arranged, and the image of the set frame is enlarged and projected on the color paper 60 arranged behind the paper mask 59. This baking lens 58 and color paper 60
A shutter 62 whose opening and closing is controlled by a shutter drive unit 61 is arranged between the and.

【0025】図4は演算部を機能ブロックで示すもので
ある。メモリ66には画面の各点を測光して得た各画素
の三色濃度(赤色濃度R,緑色濃度G,青色濃度B)が
記憶されている。この三色濃度は、露光量演算時に読み
出されて肌色画素抽出部67に送られ、ここで肌色の画
素が抽出される。この肌色抽出に際しては。メモリ68
に記憶された肌色の定義を参照して行われる。この肌色
は、例えば図5に示すように、濃度差(R−G),(G
−B)を軸とする直交座標において楕円で定義されてお
り、画素の濃度差がこの楕円内に含まれているものは肌
色であると判定される。この楕円の他に、矩形、菱形等
で肌色範囲を定義することもできる。
FIG. 4 shows the arithmetic unit in functional blocks. The memory 66 stores the three-color density (red density R, green density G, blue density B) of each pixel obtained by photometrically measuring each point on the screen. The three color densities are read at the time of exposure amount calculation and sent to the skin color pixel extraction unit 67, where the skin color pixels are extracted. When extracting this skin color. Memory 68
Is performed with reference to the definition of skin color stored in. This skin color is, for example, as shown in FIG. 5, density differences (R−G), (G
It is defined as an ellipse in the orthogonal coordinate system having -B) as an axis, and a pixel whose density difference is included in this ellipse is determined to be a skin color. In addition to this ellipse, the skin color range can be defined by a rectangle, a rhombus, or the like.

【0026】肌色画素であると判定された画素の位置
は、肌色領域推定部69に送られ、ここで肌色画素から
構成された閉じた領域を肌色領域と判定し、次に肌色領
域のサイズを算出する。このサイズとしては、輪郭上の
2点を結ぶ直線のうち最も長いものの長さでもよいが、
演算を簡単にするには面積を用いるのが望ましい。この
面積としては、肌色画素の個数を用いればよい。
The position of the pixel determined to be the skin color pixel is sent to the skin color region estimation unit 69, where the closed region composed of the skin color pixel is determined to be the skin color region, and then the size of the skin color region is determined. calculate. This size may be the length of the longest straight line connecting two points on the contour,
It is desirable to use the area to simplify the calculation. The number of skin color pixels may be used as this area.

【0027】他方、メモリ72には撮影倍率データが記
憶されている。演算部74はこの撮影倍率データを用い
て次式から写真フィルム19に記録された人物の顔のサ
イズSを求める。
On the other hand, the memory 72 stores photographing magnification data. The calculation unit 74 uses this photographing magnification data to obtain the size S of the face of the person recorded on the photographic film 19 from the following equation.

【0028】 S=SO ×m ・・・(4) ここで、SO は顔の平均的なサイズである。S = S O × m (4) Here, S O is the average size of the face.

【0029】判定部75は、算出された顔のサイズS
と、抽出された肌色領域のサイズとを比較し、顔サイズ
Sと同一か類似の場合に、この肌色領域を顔領域である
と判定する。この顔領域の位置座標は、特徴値抽出部7
6に送られ、顔の仕上がりを重視して焼付露光量を推定
する演算式の特徴値が抽出される。すなわち、特徴値抽
出部76は、メモリ66から顔領域の画素の色濃度を読
み出し、これらの画素の色濃度からその平均値を算出す
る。更に、この特徴値抽出部76は画面内の最大値や最
小値、あるいは画面中央部や周辺部等の特定エリアの平
均濃度等も算出する。得られた特徴値は演算部77に送
られ、肌色重視の焼付露光量演算式77aに代入され
る。他方、特徴値抽出部78は、一般的な焼付露光演算
式77bに用いられる特徴値を抽出する。これらの焼付
露光量演算式の具体例については、例えば特開昭62−
189456号公報に詳しく記載されている。
The determination unit 75 determines the calculated face size S.
And the size of the extracted skin color area are compared, and if the size is the same as or similar to the face size S, the skin color area is determined to be the face area. The position coordinates of the face area are calculated by the feature value extraction unit 7
6, the characteristic value of the arithmetic expression for estimating the exposure amount for printing is extracted with an emphasis on the finish of the face. That is, the feature value extraction unit 76 reads the color densities of the pixels in the face area from the memory 66, and calculates the average value from the color densities of these pixels. Further, the feature value extraction unit 76 also calculates the maximum value and the minimum value in the screen, or the average density of a specific area such as the central portion and the peripheral portion of the screen. The obtained feature value is sent to the calculation unit 77, and is substituted into the photographic color-oriented printing exposure amount calculation formula 77a. On the other hand, the characteristic value extraction unit 78 extracts the characteristic value used in the general printing exposure calculation formula 77b. Specific examples of these baking exposure amount calculation formulas are described in, for example, Japanese Patent Laid-Open No. 62-
It is described in detail in Japanese Patent No. 189456.

【0030】演算式選択部79は、コマ19a内に顔領
域が存在している場合には焼付露光演算式77aを選択
し、顔領域が存在しない場合には焼付露光量演算式77
bを選択する。この選択した演算式から求めた焼付露光
量はコントローラ55に送られる。
The arithmetic expression selection unit 79 selects the printing exposure arithmetic expression 77a when the face area exists in the frame 19a, and the printing exposure amount arithmetic expression 77 when the face area does not exist.
Select b. The printing exposure amount obtained from the selected arithmetic expression is sent to the controller 55.

【0031】次に、上記実施例の作用について説明す
る。写真撮影に際しては、カメラを主要被写体に向けて
構図を決定してから、操作部材13を操作する。この操
作部材13に連動してレンズ駆動機構11が撮影レンズ
10を光軸12に沿って移動させて焦点調節を行なう。
この焦点調節時に、センサー14は撮影レンズ10の位
置を検出して、信号を撮影倍率演算回路15に送る。ま
た、焦点距離信号発生回路16は、撮影レンズ10の焦
点距離信号を撮影倍率演算回路15に送る。
Next, the operation of the above embodiment will be described. When taking a picture, the camera is aimed at the main subject, the composition is determined, and then the operation member 13 is operated. The lens drive mechanism 11 moves the taking lens 10 along the optical axis 12 in conjunction with the operation member 13 to adjust the focus.
During this focus adjustment, the sensor 14 detects the position of the photographing lens 10 and sends a signal to the photographing magnification calculation circuit 15. Further, the focal length signal generation circuit 16 sends the focal length signal of the photographing lens 10 to the photographing magnification calculation circuit 15.

【0032】焦点調節後に、レリーズボタンを押下すれ
ば、駆動機構28は駆動ピン29を往復動させ、シャッ
タ機構28を開閉して撮影を行なう。
When the release button is pressed after the focus adjustment, the drive mechanism 28 reciprocates the drive pin 29 to open and close the shutter mechanism 28 to perform photographing.

【0033】写真撮影と同時またはその前後に、撮影倍
率演算回路15は、被写体までの距離Lと焦点距離fと
から撮影倍率を演算し、この撮影倍率データをドライバ
17に送る。ドライバ17は、記録ヘッド38を駆動
し、図2に示すように撮影倍率データを画面19aの周
辺部に設けられた磁気トラックに書き込む。
Simultaneously with or before and after the photographing, the photographing magnification calculation circuit 15 calculates the photographing magnification from the distance L to the subject and the focal length f, and sends this photographing magnification data to the driver 17. The driver 17 drives the recording head 38 to write the photographing magnification data on a magnetic track provided in the peripheral portion of the screen 19a as shown in FIG.

【0034】1本分の写真フィルム19の撮影が終了す
ると、カメラから写真フィルム19が取り出されて写真
現像所に提出される。写真現像所では、写真フィルム1
9を現像処理して、潜像で記録された各コマを可視像に
変換する。
When the photographing of one photographic film 19 is completed, the photographic film 19 is taken out from the camera and submitted to the photo lab. At the photo lab, photographic film 1
9 is developed to convert each frame recorded as a latent image into a visible image.

【0035】現像処理された写真フィルム19は、図3
に示す写真プリンタのフィルムキャリア44に装填され
る。この写真フィルム19は、フィルムキャリア44上
で移送される際に、図6のステップ100に示すように
再生ヘッド46でコマ19aの周辺部に記録した撮影倍
率データが読み取られる。この図6は顔領域の検出の実
施例を示すものである。読み取った撮影倍率データはデ
コーダ47でデコードされてから、演算部48に送られ
る。この演算部48は、これらのデータを用いて写真フ
ィルム19上での顔サイズSを算出する(ステップ10
2)。
The developed photographic film 19 is shown in FIG.
It is loaded in the film carrier 44 of the photographic printer shown in FIG. When the photographic film 19 is transported on the film carrier 44, the photographing magnification data recorded on the periphery of the frame 19a is read by the reproducing head 46 as shown in step 100 of FIG. FIG. 6 shows an embodiment of face area detection. The read photographing magnification data is decoded by the decoder 47 and then sent to the calculation unit 48. The calculation unit 48 uses these data to calculate the face size S on the photographic film 19 (step 10).
2).

【0036】コマ19aがプリント位置にセットされる
と、スキャナー52は、コマ19aの各点について赤
色、緑色、青色の透過光をそれぞれ測定する(ステップ
104)。この三色の測光値は、A/D変換処理、対数
変換処理を受けた後に演算部48に送られる。
When the top 19a is set at the print position, the scanner 52 measures red, green, and blue transmitted light at each point on the top 19a (step 104). The photometric values of the three colors are sent to the arithmetic unit 48 after undergoing A / D conversion processing and logarithmic conversion processing.

【0037】各画素の測光後に、演算部48は、肌色の
画素を抽出し(ステップ106)、次に肌色画素で構成
された肌色領域を決定する(ステップ108)。この肌
色領域のサイズと顔サイズSとを比較し、顔サイズSと
同一か類似の場合には(ステップ110)、これを顔領
域であると判定する(ステップ112)。全ての肌色領
域の判定が終了すると(ステップ114)、シーン分類
が行われる。このシーン分類では、顔領域が存在する場
合にはこれを人物撮影シーンであると判定し(ステップ
116及びステップ118)、そうでない場合にはその
他の撮影シーンであると判定する(ステップ120)。
人物撮影シーンに対しては、焼付露光量演算式77aに
特徴値抽出部76から抽出した特徴値を代入して焼付露
光量を算出する。他方、その他のシーンに対しては、焼
付露光量演算式77bに特徴値抽出部78から抽出した
特徴値を代入して焼付露光量を算出する。
After photometry of each pixel, the calculation unit 48 extracts the skin color pixel (step 106), and then determines the skin color region formed by the skin color pixel (step 108). The size of the flesh color area is compared with the face size S. If the size is the same as or similar to the face size S (step 110), it is determined to be the face area (step 112). When the determination of all skin color regions is completed (step 114), scene classification is performed. In this scene classification, if a face area exists, it is determined to be a person shooting scene (steps 116 and 118), and if not, it is determined to be another shooting scene (step 120).
For a portrait shooting scene, the printing exposure amount is calculated by substituting the feature value extracted from the feature value extraction unit 76 into the printing exposure amount calculation formula 77a. On the other hand, for other scenes, the printing exposure amount is calculated by substituting the feature value extracted from the feature value extraction unit 78 into the printing exposure amount calculation formula 77b.

【0038】焼付露光量の算出後に、コントローラ55
は、焼付露光量に応じて色補正フィルタ36〜38の光
路41への挿入量を調節する。このフィルタ調節後に、
シャッタ62が一定時間だけ開き、コマ19aをカラー
ペーパー60に焼付露光する。以下、同様にして各コマ
を順次カラーペーパー60に写真焼付する。
After calculating the printing exposure amount, the controller 55
Adjusts the insertion amount of the color correction filters 36 to 38 into the optical path 41 according to the exposure amount for printing. After adjusting this filter,
The shutter 62 is opened for a certain time, and the frame 19a is printed and exposed on the color paper 60. Thereafter, similarly, each frame is sequentially printed on the color paper 60.

【0039】図7は顔領域の検出の別の実施例を示すも
のである。この実施例では、輪郭検出によって丸みのあ
る閉じた輪郭をコマの中から抽出する(ステップ12
2)。次に、丸みのある領域のサイズと顔サイズSを比
較し、顔サイズSと同一か類似の場合に、この領域を顔
領域であると判定する(ステップ110)。なお、他の
部分は図6と同一であるので、図6と同一符号を付して
説明を省略する。
FIG. 7 shows another embodiment of face area detection. In this embodiment, a rounded closed contour is extracted from the frame by contour detection (step 12).
2). Next, the size of the rounded area is compared with the face size S, and if the size is the same as or similar to the face size S, this area is determined to be the face area (step 110). Since the other parts are the same as those in FIG. 6, the same reference numerals as those in FIG.

【0040】また、撮影倍率に対する顔のパターンをメ
モリに記憶しておき、撮影倍率データから対応する基準
顔パターンを選択し、パターンマッチング処理により、
基準顔パターンに一致または類似したパターンをコマの
中から抽出し、これを顔領域であると判定してもよい。
なお、顔のパターンは、向きによって異なるから、向き
を変えたいくつかの基準顔パターンをメモリに記憶させ
ておくのがよい。
Further, the face pattern corresponding to the photographing magnification is stored in the memory, the corresponding reference face pattern is selected from the photographing magnification data, and the pattern matching processing is performed.
A pattern that matches or is similar to the reference face pattern may be extracted from the frame, and this may be determined as the face area.
Since the face pattern differs depending on the orientation, it is preferable to store some reference face patterns with different orientations in the memory.

【0041】図8は、オートフォーカス装置を示すもの
である。測距センサーユニット82は、レンズ83とラ
インセンサー84とからなる受光部と、レンズ85と光
源86とからなる投光部とから構成されている。レリー
ズボタンが半押しされた測距時には、投光部からスポッ
ト状の近赤外光が被写体に向けて投光され、ここで反射
された光がライセンサー84に入射する。このライセン
サー84の出力信号は、測距回路87に送られ、ライセ
ンサー84のどの位置に反射光が入射したかについて調
べられる。この入射位置から被写体距離が検出され、こ
の被写体距離の信号がレンズセット機構88に送られ
る。このレンズセット機構88は、レリーズボタンが完
全に押下された時に、被写体距離に応じた位置に撮影レ
ンズ10をセットする。
FIG. 8 shows an autofocus device. The distance measuring sensor unit 82 includes a light receiving unit including a lens 83 and a line sensor 84, and a light projecting unit including a lens 85 and a light source 86. At the time of distance measurement when the release button is pressed halfway, spot-like near infrared light is projected from the light projecting portion toward the subject, and the light reflected here enters the licensor 84. The output signal of the licensor 84 is sent to the distance measuring circuit 87, and the position of the licensor 84 where the reflected light is incident is checked. The subject distance is detected from this incident position, and a signal of this subject distance is sent to the lens setting mechanism 88. The lens setting mechanism 88 sets the taking lens 10 at a position corresponding to the subject distance when the release button is completely pressed.

【0042】測距回路87から出力された被写体距離の
信号は、撮影倍率演算回路15に送られる。
The subject distance signal output from the distance measuring circuit 87 is sent to the photographing magnification calculation circuit 15.

【0043】上記実施例では、撮影倍率データを磁気記
録したが、この代わりに発光ダイオード等で表示される
光学マークやバーコード等を用いてもよい。また、カメ
ラで求めた顔サイズを撮影倍率データとして記録しても
よい。更に、写真フィルムに記録する代わりに、カメラ
にICカードをセットしてこれに記録したり、あるいは
カートリッジに記録してもよい。また、電子スチールカ
メラでは、画像データとともに被写体距離データを磁気
データを磁気フロッピィやメモリカードに書き込まれ
る。
In the above embodiment, the photographing magnification data is magnetically recorded, but instead of this, an optical mark or bar code displayed by a light emitting diode or the like may be used. In addition, the face size obtained by the camera may be recorded as shooting magnification data. Further, instead of recording on a photographic film, an IC card may be set in the camera and recorded on it, or it may be recorded on a cartridge. In addition, in the electronic still camera, subject distance data and magnetic data are written in a magnetic floppy or a memory card together with the image data.

【0044】また、撮影倍率データは、写真撮影と同時
またはその前後に記録する例について説明したが、電子
手帳等に記録しておいて撮影後に記録するようにしても
よく、要は写真フィルム等を取り扱う前に記録されてい
れば良い。
Although the photographing magnification data has been described as an example of being recorded at the same time as, or before and after taking a picture, it may be recorded in an electronic notebook or the like and recorded after taking a picture, that is, a photographic film or the like. It should be recorded before handling.

【0045】上記では、写真フィルムを取り扱う装置と
してプリンタで顔領域を検出する例について説明した
が、本発明はこれに限定されることはなく、フィルムに
記録された画像コマを撮影してCRTに表示する表示装
置、フィルムに記録された画像コマを撮影してプリント
状態の画像を推定しCRTに表示するシミュレータ等に
も適用できるものである。
In the above, an example in which a printer detects a face area as an apparatus for handling photographic film has been described, but the present invention is not limited to this, and an image frame recorded on a film is photographed to be used as a CRT. The present invention can also be applied to a display device for displaying, a simulator for photographing an image frame recorded on a film, estimating a printed image, and displaying the image on a CRT.

【0046】[0046]

【発明の効果】以上説明したように請求項1、2の発明
では、撮影時の撮影倍率データから人物の顔のサイズを
推定し、推定した顔のサイズと画面上の肌色領域のサイ
ズとを比較して顔領域かどうかを判定しているので、特
別な操作を要することなく、顔領域を正確に検出するこ
とができる、という効果が得られる。
As described above, according to the first and second aspects of the invention, the size of the human face is estimated from the photographing magnification data at the time of photographing, and the estimated face size and the size of the skin color area on the screen are calculated. Since it is determined whether or not it is the face area by comparison, there is an effect that the face area can be accurately detected without requiring a special operation.

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

【図1】本発明を実施する写真カメラを示す概略図であ
る。
FIG. 1 is a schematic diagram showing a photographic camera embodying the present invention.

【図2】写真フィルムの磁気トラックを示す説明図であ
る。
FIG. 2 is an explanatory diagram showing a magnetic track of a photographic film.

【図3】図3は本発明を実施する写真プリンタの概略図
である。
FIG. 3 is a schematic diagram of a photographic printer embodying the present invention.

【図4】焼付露光量を算出する演算部の機能ブロックで
ある。
FIG. 4 is a functional block of a calculation unit that calculates a printing exposure amount.

【図5】肌色の範囲を示すグラフである。FIG. 5 is a graph showing a range of skin color.

【図6】顔領域の検出手順を示すフローチャートであ
る。
FIG. 6 is a flowchart showing a procedure for detecting a face area.

【図7】顔領域の検出手順を示す他のフローチャートで
ある。
FIG. 7 is another flowchart showing a procedure for detecting a face area.

【図8】オートフォーカス装置を示すブロック図であ
る。
FIG. 8 is a block diagram showing an autofocus device.

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

10 撮影レンズ 19 写真フィルム 52 スキャナー 60 カラーペーパー 84 ラインセンサー 86 光源 10 Photographic lens 19 Photographic film 52 Scanner 60 Color paper 84 Line sensor 86 Light source

Claims (2)

【特許請求の範囲】[Claims] 【請求項1】撮影時の撮影倍率データを記録し、記録さ
れた撮影倍率データを読み取って人物の顔のサイズを推
定し、推定した人物の顔のサイズと撮影画面上の肌色領
域のサイズとを比較し、推定した人物の顔のサイズと肌
色領域のサイズとが同一または類似の場合に肌色領域を
人物の顔の領域として検出する撮影画面の顔領域検出方
法。
1. A photographing magnification data at the time of photographing is recorded, the recorded photographing magnification data is read to estimate the size of a person's face, and the estimated person's face size and the size of a skin color area on the photographing screen are calculated. And a face area detection method for detecting a skin color area as a human face area when the estimated human face size and the skin color area size are the same or similar.
【請求項2】写真撮影時の撮影倍率データを写真フィル
ムに設けられた磁気記録層に記録し、写真フィルム取り
扱い時に記録された撮影倍率データを読み取って撮影画
面の人物の顔のサイズを推定し、推定した人物の顔のサ
イズと撮影画面上の肌色領域のサイズとを比較し、推定
した人物の顔のサイズと肌色領域のサイズとが同一また
は類似の場合に肌色領域を人物の顔の領域として検出す
る撮影画面の顔領域検出方法。
2. The size of a person's face on a photographing screen is estimated by recording photographing magnification data at the time of photographing on a magnetic recording layer provided on a photographic film and reading the photographing magnification data recorded at the time of handling the photographic film. , The estimated human face size is compared with the size of the skin color area on the shooting screen, and if the estimated human face size and the skin color area size are the same or similar, the skin color area is set to the human face area. A method for detecting the face area of the shooting screen.
JP9857994A 1994-05-12 1994-05-12 Method for detecting face area in photographic picture frame Pending JPH07306483A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP9857994A JPH07306483A (en) 1994-05-12 1994-05-12 Method for detecting face area in photographic picture frame

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP9857994A JPH07306483A (en) 1994-05-12 1994-05-12 Method for detecting face area in photographic picture frame

Publications (1)

Publication Number Publication Date
JPH07306483A true JPH07306483A (en) 1995-11-21

Family

ID=14223574

Family Applications (1)

Application Number Title Priority Date Filing Date
JP9857994A Pending JPH07306483A (en) 1994-05-12 1994-05-12 Method for detecting face area in photographic picture frame

Country Status (1)

Country Link
JP (1) JPH07306483A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000066312A (en) * 1998-05-20 2000-03-03 Fuji Photo Film Co Ltd Method and device for reproducing picture
JP2001273505A (en) * 1999-12-14 2001-10-05 Canon Inc Visual language classification system
JP2006508463A (en) * 2002-11-29 2006-03-09 ソニー・ユナイテッド・キングダム・リミテッド Face detection
WO2007125866A1 (en) 2006-04-28 2007-11-08 Nikon Corporation Object extracting method, object pursuing method, image synthesizing method, computer program for extracting object, computer program for pursuing object, computer program for synthesizing images, object extracting device, object pursuing device, and image synthesizing device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2000066312A (en) * 1998-05-20 2000-03-03 Fuji Photo Film Co Ltd Method and device for reproducing picture
JP2001273505A (en) * 1999-12-14 2001-10-05 Canon Inc Visual language classification system
JP4612772B2 (en) * 1999-12-14 2011-01-12 キヤノン株式会社 Image processing method, image processing apparatus, and computer-readable storage medium
JP2006508463A (en) * 2002-11-29 2006-03-09 ソニー・ユナイテッド・キングダム・リミテッド Face detection
WO2007125866A1 (en) 2006-04-28 2007-11-08 Nikon Corporation Object extracting method, object pursuing method, image synthesizing method, computer program for extracting object, computer program for pursuing object, computer program for synthesizing images, object extracting device, object pursuing device, and image synthesizing device
US8254630B2 (en) 2006-04-28 2012-08-28 Nikon Corporation Subject extracting method and device by eliminating a background region using binary masks

Similar Documents

Publication Publication Date Title
US5128711A (en) Apparatus for recording position information of principal image and method of detecting principal image
US5289227A (en) Method of automatically controlling taking exposure and focusing in a camera and a method of controlling printing exposure
US5023656A (en) Photographic printing method
JPH01306821A (en) Camera capable of trimming photography and image output device
JPH07306483A (en) Method for detecting face area in photographic picture frame
JP2552727B2 (en) Face area detection method for photographic originals
JP2509703B2 (en) Cameras and photo printers that record major parts
JP2509702B2 (en) Photo print method
JP2728995B2 (en) How to make a print photo
JP2888558B2 (en) Photo printing method
JPH0355536A (en) Photographic printing method
JP2553196B2 (en) Photo print method
JP2553197B2 (en) Camera and photo printing method
JP2571852B2 (en) Auto focus camera
JP2552724B2 (en) Photo printing method
JP2798182B2 (en) Photo printing method
JP2695325B2 (en) How to make a print photo
JPH0372338A (en) Camera and photographic printer
JP2506191B2 (en) Photo printing method
JP2801985B2 (en) How to make a print photo
JPH0572649A (en) Method for forming photographic print
JPH04156530A (en) Photograph printing method, camera and photographic printer
JP2638673B2 (en) Camera and photo printer
JPH0338628A (en) Camera and photographic printing method
JP2529416B2 (en) Photo print method