JP2001177740A - Portraiture photographing method and portraiture device - Google Patents

Portraiture photographing method and portraiture device

Info

Publication number
JP2001177740A
JP2001177740A JP36129299A JP36129299A JP2001177740A JP 2001177740 A JP2001177740 A JP 2001177740A JP 36129299 A JP36129299 A JP 36129299A JP 36129299 A JP36129299 A JP 36129299A JP 2001177740 A JP2001177740 A JP 2001177740A
Authority
JP
Japan
Prior art keywords
luminance
image
subject
person
photographed
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.)
Granted
Application number
JP36129299A
Other languages
Japanese (ja)
Other versions
JP4327317B2 (en
Inventor
Shuichi Yamada
周一 山田
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.)
Toshiba Corp
Original Assignee
Toshiba Corp
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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP36129299A priority Critical patent/JP4327317B2/en
Publication of JP2001177740A publication Critical patent/JP2001177740A/en
Application granted granted Critical
Publication of JP4327317B2 publication Critical patent/JP4327317B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Cameras Adapted For Combination With Other Photographic Or Optical Apparatuses (AREA)
  • Studio Devices (AREA)

Abstract

PROBLEM TO BE SOLVED: To provide a portraiture pickup method and a portraiture photographing device that can detect the head position of a person to be photographed with high accuracy even when the person is not a black-haired person and arrange the face posion of the person in a photographed image in an ideal state. SOLUTION: The portraiture photographing device, that photographs the upper half of the body including at least the face of a person to be photographed for the purpose of forming a certificate photograph that is stuck to an identification card and various licenses or the like, photographs the upper half of the body including at least the face of the person on a blue background, detects the head position of the person on the basis of the luminance of B and R signals of the blue background from the photographed image, segments the upper half of the person from the photographed image on the basis of the detected head position of the person, and prints out the segmented upper half of the person as a photographed image.

Description

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

【0001】[0001]

【発明の属する技術分野】本発明は、たとえば、身分証
明書や各種免許証などに貼付する証明用写真を作成する
ことを目的に、被撮影者の少なくとも顔を含む上半身像
を撮影する人物画像撮影方法および人物画像撮影装置に
関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a person image for photographing an upper body including at least the face of a person to be photographed, for the purpose of producing a photograph for identification to be attached to an identification card or various licenses. The present invention relates to a photographing method and a person image photographing device.

【0002】[0002]

【従来の技術】一般に、この種の人物画像撮影装置にあ
っては、被撮影者の顔の大きさや位置が、撮影画像内で
一定の比率(理想状態)になるように配慮する必要があ
る。従来、被撮影者の背景として、たとえば、青色(以
下、ブルーバックと称す)を用い、あらかじめ被撮影者
の身長のばらつきなどを見越して大きな領域を撮影し、
ブルーバックの青成分輝度(以下、B輝度と称す)を基
準として被撮影者の頭頂位置および左右頭側位置から頭
部位置を検出し、この検出した頭部位置を基に被撮影者
の顔位置が撮影画像内で理想状態になるように配置し、
撮影画像から被撮影者の上半身像を切出す方式が用いら
れていた。
2. Description of the Related Art In general, in this type of person image photographing apparatus, it is necessary to take care that the size and position of the face of a person to be photographed have a fixed ratio (ideal state) in a photographed image. . Conventionally, for example, blue (hereinafter, referred to as a blue background) is used as a background of a subject, and a large area is photographed in advance in consideration of variations in the height of the subject,
The head position is detected from the top position and the left and right temporal positions of the subject based on the blue component luminance of the blue background (hereinafter, referred to as B luminance), and the face of the subject is detected based on the detected head position. Arrange so that the position is ideal in the captured image,
A method of cutting out the upper body image of a subject from a captured image has been used.

【0003】[0003]

【発明が解決しようとする課題】被撮影者が一般的な黒
髪の日本人と想定した場合、ブルーバックのB輝度に比
べて被撮影者の頭部位置(黒髪部分)のB輝度が低いた
め、高い精度で頭部位置を検出することが可能である。
When the subject is assumed to be a Japanese with black hair, the B brightness at the head position (black hair portion) of the subject is lower than the B brightness of the blue background. It is possible to detect the head position with high accuracy.

【0004】ところが、近年の日本における外国人人口
の増加および高年齢化により、被撮影者が黒髪でない可
能性も充分に考えられる。たとえば、被撮影者が白髪あ
るいは無頭髪の場合は、頭部位置のB輝度が高くなって
しまうために、ブルーバックのB輝度基準では精度よく
頭部位置が検出できない。
[0004] However, due to the recent increase in the foreign population and the aging of the population in Japan, it is quite possible that the subject may not have black hair. For example, when the subject has white hair or headless hair, the B luminance at the head position becomes high, so that the head position cannot be detected with high accuracy based on the blue luminance B luminance reference.

【0005】そこで、本発明は、被撮影者が黒髪でない
場合でも、被撮影者の頭部位置を精度よく検出すること
ができ、被撮影者の顔の位置を撮影画像内で理想状態に
なるように配置できる人物画像撮影方法および人物画像
撮影装置を提供することを目的とする。
Accordingly, the present invention can accurately detect the position of the head of a subject even when the subject does not have black hair, and the position of the face of the subject becomes an ideal state in a photographed image. It is an object of the present invention to provide a person image photographing method and a person image photographing device which can be arranged as described above.

【0006】[0006]

【課題を解決するための手段】本発明の人物画像撮影方
法は、特定色を背景とする被撮影者の少なくとも顔を含
む画像を撮影する第1のステップと、この第1のステッ
プにより撮影された画像から、前記被撮影者の背景であ
る特定色に対して高輝度を示す色成分輝度および低輝度
を示す色成分輝度を基準として前記被撮影者の頭部位置
を検出する第2のステップと、この第2のステップによ
り検出された前記被撮影者の頭部位置を基に前記第1の
ステップにより撮影された画像から前記被撮影者の所定
領域の画像を切出す第3のステップと、この第3のステ
ップにより切出された前記被撮影者の所定領域の画像を
撮影画像として出力する第4のステップとを有する。
A person image photographing method according to the present invention includes a first step of photographing an image including at least a face of a person to be photographed with a background of a specific color, and photographing is performed by the first step. A second step of detecting a position of the subject's head based on a color component luminance indicating a high luminance and a color component luminance indicating a low luminance with respect to the specific color which is the background of the subject from the captured image And a third step of cutting out an image of a predetermined region of the subject from the image captured in the first step based on the head position of the subject detected in the second step. A fourth step of outputting, as a photographed image, the image of the predetermined region of the subject, which is cut out in the third step.

【0007】また、本発明の人物画像撮影方法は、前記
背景の特定色は青色であり、前記特定色に対して高輝度
を示す色成分輝度は青成分輝度であり、前記特定色に対
して低輝度を示す色成分輝度は赤成分輝度であることを
特徴とする。
Further, in the person image photographing method of the present invention, the specific color of the background is blue, the color component luminance indicating high luminance with respect to the specific color is blue component luminance, and The color component luminance indicating low luminance is a red component luminance.

【0008】また、本発明の人物画像撮影装置は、特定
色を背景とする被撮影者の少なくとも顔を含む画像を撮
影する撮影手段と、この撮影手段により撮影された画像
から、前記被撮影者の背景である特定色に対して高輝度
を示す色成分輝度および低輝度を示す色成分輝度を基準
として前記被撮影者の頭部位置を検出する頭部位置検出
手段と、この頭部位置検出手段により検出された前記被
撮影者の頭部位置を基に前記撮影手段により撮影された
画像から前記被撮影者の所定領域の画像を切出す画像切
出手段と、この上半身切出手段により切出された前記被
撮影者の所定領域の画像を撮影画像として出力する出力
手段とを具備している。
Further, the person image photographing apparatus of the present invention comprises a photographing means for photographing an image including at least a face of the photographed person with a specific color as a background, and an image photographed by the photographing means. Head position detecting means for detecting a head position of the subject based on a color component luminance indicating high luminance and a color component luminance indicating low luminance with respect to a specific color as a background of the subject; Image extracting means for extracting an image of a predetermined region of the subject from an image taken by the photographing means based on the head position of the subject detected by the means; Output means for outputting the output image of the subject in a predetermined area as a captured image.

【0009】さらに、本発明の人物画像撮影装置は、前
記背景の特定色は青色であり、前記特定色に対して高輝
度を示す色成分輝度は青成分輝度であり、前記特定色に
対して低輝度を示す色成分輝度は赤成分輝度であること
を特徴とする。
Further, in the person image photographing apparatus of the present invention, the specific color of the background is blue, a color component luminance indicating high luminance with respect to the specific color is a blue component luminance, and The color component luminance indicating low luminance is a red component luminance.

【0010】本発明によれば、たとえば、被撮影者の背
景として青色(ブルーバック)を用い、青色の青成分輝
度および赤成分輝度を基準として被撮影者の頭部位置を
検出し、この検出された被撮影者の頭部位置を基に、被
撮影者の顔の位置が理想状態になるように被撮影者の上
半身像を切出すことにより、被撮影者が黒髪でない場合
でも、被撮影者の頭部位置を精度よく検出することがで
き、被撮影者の顔の位置を撮影画像内で理想状態になる
ように配置することができる。
According to the present invention, for example, blue (blue background) is used as the background of the subject, and the head position of the subject is detected based on the blue component luminance and the red component luminance of blue. The upper body image of the subject is cut out based on the head position of the subject so that the position of the face of the subject is in an ideal state. The position of the head of the subject can be detected with high accuracy, and the position of the face of the subject can be arranged so as to be in an ideal state in the captured image.

【0011】[0011]

【発明の実施の形態】以下、本発明の実施の形態につい
て図面を参照して説明する。
Embodiments of the present invention will be described below with reference to the drawings.

【0012】図1は、本実施の形態に係る人物画像撮影
装置の外観構成を概略的に示すものである。この人物画
像撮影装置は、被撮影者1を照明する照明器2、被撮影
者1の少なくと顔を含む上半身像を撮影する撮影手段と
してのCCD形のビデオカメラ3、撮影状態や撮影者
(操作者)4の操作情報などを表示する表示器(モニタ
ディスプレイ)5、撮影者4による操作指示により、カ
メラ3からの入カ画像を加工したり、表示器5や内蔵す
る記憶部などに対して出力を行なう制御台(制御部)
6、被撮影者1が撮影の際に着座する椅子7、および、
撮影の際に被撮影者1の背景となる背景板8から構成さ
れている。ここに、背景板8の色は、たとえば、青色に
設定されているものとする。
FIG. 1 schematically shows an external configuration of a person image photographing apparatus according to the present embodiment. This person image photographing apparatus includes an illuminator 2 for illuminating a person 1 to be photographed, a CCD video camera 3 as photographing means for photographing an upper body image including at least the face of the person 1 to be photographed, a photographing state and a photographer ( A display (monitor display) 5 for displaying operation information of the operator 4, processing of an input image from the camera 3 in accordance with an operation instruction by the photographer 4, processing of the display 5 and a built-in storage unit, etc. Control table (control unit)
6, a chair 7 on which the subject 1 is seated at the time of shooting, and
It is composed of a background plate 8 that becomes the background of the subject 1 during shooting. Here, it is assumed that the color of the background plate 8 is set to, for example, blue.

【0013】図2は、図1に示した人物画像撮影装置の
全体的な構成を示すブロック図である。すなわち、カメ
ラ3からのアナログ信号(入力画像)をリアルタイムに
デジタル信号に変換し、ビデオメモリやメインメモリな
どに転送するビデオキャプチャ部11、ビデオキャプチ
ャ部11の画像データ、および、その他の描画処理を行
ない、表示器5への表示制御を行なうビデオアクセラレ
ート部12、画像データおよびその他への各種の演算処
理や各種制御などを行なうCPU(セントラル・プロセ
ッシング・ユニット)、画像データや演算結果などを一
時保存するメインメモリ、各種周辺機器とのインターフ
ェイスを備えたCPU部13、各種周辺機器を接続する
外部バス(たとえば、SCSIなど)を制御する外部バ
ス制御部14、各種OSやアプリケーション、制御用デ
ータ、画像データなどを保存するハードディスク装置な
どの大容量記憶装置15、制御台6の出力データなどを
保存する可搬性のある記憶媒体(たとえば、光磁気ディ
スクなど)16に対してデータの読み書きを行なうリー
ダライタ部17、操作者(撮影者)4が操作する入力装
置としてのキーボード18やマウス19、撮影した顔画
像などを例えば印刷出力する出力手段としての画像印刷
装置20、および、同一ネットワーク21上の他の各種
機器(画像印刷装置や画像ファイリング装置など)との
間で相互通信を行なうためのネットワークアダプタ(L
ANカードなど)22などによって構成されている。
FIG. 2 is a block diagram showing the overall configuration of the person image photographing apparatus shown in FIG. That is, a video capture unit 11 that converts an analog signal (input image) from the camera 3 into a digital signal in real time and transfers the digital signal to a video memory, a main memory, or the like, performs image data of the video capture unit 11, and performs other drawing processing. And a CPU (Central Processing Unit) for performing various arithmetic processing and various controls on image data and others, and temporarily storing image data and arithmetic results. Main memory for storing, CPU unit 13 having an interface with various peripheral devices, external bus control unit 14 for controlling an external bus (for example, SCSI, etc.) for connecting various peripheral devices, various OSs and applications, control data, Hard disk device for storing image data, etc. A mass storage device 15, a reader / writer unit 17 for reading / writing data from / to a portable storage medium (for example, a magneto-optical disk) 16 for storing output data of the control console 6, and an operator (photographer) 4, a keyboard 18 and a mouse 19 as input devices, an image printing device 20 as an output unit that prints out a captured face image and the like, for example, and other various devices (image printing device and image Network adapter (L) for performing mutual communication with a filing device, etc.
22).

【0014】図3は、被撮影者1の頭頂位置を検出する
際に用いる頭部の探索法を示した概念図である。
FIG. 3 is a conceptual diagram showing a head search method used when detecting the top position of the subject 1.

【0015】以下、図4、図5に示すフローチャートお
よび図3を参照して本装置の処理動作を説明する。な
お、以下に説明する処理は、主にCPU部13内のCP
Uの制御によって実行される。
Hereinafter, the processing operation of the present apparatus will be described with reference to the flowcharts shown in FIGS. 4 and 5 and FIG. The processing described below is mainly performed by using the CP in the CPU unit 13.
It is executed under the control of U.

【0016】まず、頭頂位置の検出について説明する。First, the detection of the crown position will be described.

【0017】ステップS1にて、ビデオキャプチャ部1
1を介して得られるカメラ3からの入力画像31(図3
参照、以降、撮影画像とも言う)を取込み、CPU部1
3内のメインメモリに一時格納する。そして、メインメ
モリ内の入力画像31により、その背景画像部の上端の
左右端の各2箇所、合計4点(たとえば、図3のa,
b,c,d)の高輝度を示す色成分輝度、この場合は青
成分輝度(以下、B輝度と称す)、および、低輝度を示
す色成分輝度、この場合は赤成分輝度(以下、R輝度と
称す)を求めるとともに、これら求めた4点a,b,
c,dのB輝度およびR輝度の各平均値をそれぞれ計算
し、この計算した各平均値をブルーバック(背景板8の
色である青色)に対する基準値bstd1,rstd1
とする。ここに、このステップS1の処理が本発明にお
ける第1の輝度計算手段に対応している。
In step S1, the video capture unit 1
An input image 31 from the camera 3 obtained through the
Reference, hereinafter also referred to as a photographed image).
3 is temporarily stored in the main memory. Then, based on the input image 31 in the main memory, a total of four points (for example, a,
b, c, d) indicating a high luminance of a color component, in this case a blue component luminance (hereinafter, referred to as B luminance), and a color component luminance indicating a low luminance, in this case, a red component luminance (hereinafter, referred to as R) Brightness) and the four points a, b,
The respective average values of the B luminance and the R luminance of c and d are calculated, and the calculated average values are used as reference values bstd1 and rstd1 for the blue background (blue which is the color of the background plate 8).
And Here, the processing in step S1 corresponds to the first luminance calculating means in the present invention.

【0018】次に、ステップS2,S3にて、撮影画像
31の上端ラインから所定のラインYRまでの範囲(初
期検出範囲)において、上端から順次、横方向に走査す
ることにより、その走査ライン(探索ライン)に対し、
以下に説明する2分探索法によりB輝度平均値を基準で
頭頂位置の検出を行なう。ここに、このステップS2,
S3の処理が本発明における第1の頭頂位置検出手段に
対応している。
Next, in steps S2 and S3, in the range from the upper end line of the photographed image 31 to a predetermined line YR (initial detection range), scanning is sequentially performed in the horizontal direction from the upper end to obtain the scanning line ( Search line)
The top position is detected based on the B luminance average value by the binary search method described below. Here, this step S2,
The processing in S3 corresponds to the first parietal position detecting means in the present invention.

【0019】1.横方向の走査ラインのある範囲内(た
とえば、図3に示すXスタートラインからXエンドライ
ンまでの間)において、撮影画像31の左端から所定画
素おきにB輝度を調べることにより、ステップS1にて
求めたB輝度平均値bstd1±α(αは誤差分)内に
ないB輝度の画素数をカウントする。
1. In a certain range of the horizontal scanning line (for example, between the X start line and the X end line shown in FIG. 3), the B luminance is checked at predetermined pixels from the left end of the photographed image 31 to check in step S1. The number of pixels of B luminance not within the calculated B luminance average value bstd1 ± α (α is an error) is counted.

【0020】2.上記1でのカウント値があらかじめ設
定される基準値bnmax1を越えた走査ラインを頭部
が存在する走査ライン(図3の例では、3回目の探索ラ
イン、n回目の探索ライン)とする。
2. A scan line in which the count value in 1 exceeds a preset reference value bnmax1 is defined as a scan line having a head (third search line, n-th search line in the example of FIG. 3).

【0021】3.上記2で調べた走査ラインに頭部が存
在する揚合は、その走査ラインよりも上方向の検出範囲
の半分の距離に位置する走査ラインについて調べ、その
走査ラインに頭部が存在しない場合は、その走査ライン
よりも下方向の検出範囲の半分の距離に位置する走査ラ
インについて調ベる。このように、検出範囲を1/2に
してライン調査を繰り返して行なうことにより、頭頂位
置を絞り込む(検出)ものである。
3. If there is a head in the scan line checked in the above 2, check the scan line located at half the distance of the detection range above the scan line, and if there is no head in the scan line, The scanning line located at a distance half the detection range below the scanning line is determined. In this manner, the head position is narrowed down (detected) by repeatedly performing the line survey with the detection range being halved.

【0022】このようにして、B輝度基準で頭頂位置が
確定された場合、ステップS4に進み、ノイズ検出処理
として、頭頂位置が確定された走査ラインよりも下方向
において、頭部が存在する走査ラインが所定のライン数
YN以上存在することを確認する。
When the head position is determined based on the B luminance as described above, the process proceeds to step S4, and as a noise detection process, a scan in which the head is present below the scan line in which the head position is determined is performed. It is confirmed that the number of lines is equal to or more than a predetermined number of lines YN.

【0023】ステップS2,S3において、B輝度基準
で頭頂位置の検出ができなかった場合、ステップS5,
S6に進み、撮影画像31の上端ラインから所定のライ
ンYRまでの範囲(初期検出範囲)において、上端から
順次、横方向に走査することにより、その走査ライン
(探索ライン)に対し、ステップS2,S3と同様な2
分探索法により、R輝度平均値を基準で頭頂位置の検出
を行なう。ただし、R輝度の基準値はrstd1±β
(βは誤差分)、最大カウント数をrnmax1とす
る。ここに、このステップS5,S6の処理が本発明に
おける第2の頭頂位置検出手段に対応している。
In steps S2 and S3, if the top position cannot be detected based on the B luminance,
Proceeding to S6, in the range (initial detection range) from the upper end line of the photographed image 31 to the predetermined line YR, by sequentially scanning in the horizontal direction from the upper end, the scan line (search line) is moved to step S2. 2 similar to S3
The top position is detected by the minute search method based on the R luminance average value. However, the reference value of R luminance is rstd1 ± β
(Β is an error), and the maximum count is rnmax1. Here, the processing of steps S5 and S6 corresponds to the second parietal position detecting means in the present invention.

【0024】このようにして、R輝度基準で頭頂位置が
確定された場合、ステップS4に進み、ノイズ検出処理
を行なう。R輝度基準で頭頂位置が確定されない場合、
ステップS22に進み、エラー処理を行なって、撮影処
理を終了する。ここに、このステップS22の処理が本
発明におけるエラー処理手段に対応している。
When the top position is determined based on the R luminance as described above, the process proceeds to step S4, and a noise detection process is performed. When the crown position is not determined based on the R luminance,
Proceeding to step S22, error processing is performed, and the photographing processing ends. Here, the processing in step S22 corresponds to the error processing means in the present invention.

【0025】なお、ステップS22におけるエラー処理
とは、たとえば、エラーの内容をCPU部13内のメイ
ンメモリに格納して、後で参照可能にするとともに、エ
ラーの内容を表示器5に表示して、撮影者4に案内す
る。
The error processing in step S22 means, for example, that the contents of the error are stored in a main memory in the CPU unit 13 so that they can be referred to later, and the details of the error are displayed on the display unit 5. To the photographer 4.

【0026】次に、左右頭側位置の検出について説明す
る。
Next, detection of the left and right head positions will be described.

【0027】まず、左頭側位置を検出する。First, the left head position is detected.

【0028】ステップS7にて、CPU部13内のメイ
ンメモリに格納されている撮影画像31により、その画
像の上記のようにして検出された頭頂位置の近辺におけ
る背景画像部の左右端の各2箇所、合計4点の高輝度を
示す色成分輝度、この場合は青成分輝度(以下、B輝度
と称す)、および、低輝度を示す色成分輝度、この場合
は赤成分輝度(以下、R輝度と称す)を求めるととも
に、これら求めた4点のB輝度およびR輝度の各平均値
をそれぞれ計算し、この計算した各平均値をブルーバッ
ク(背景板8の色である青色)に対する基準値bstd
2,rstd2とする。ここに、このステップS7の処
理が本発明における第2の輝度計算手段に対応してい
る。
In step S7, based on the photographed image 31 stored in the main memory in the CPU section 13, each of the two left and right ends of the background image portion near the top of the head of the image detected as described above. A total of four color component luminances indicating high luminance, in this case, blue component luminance (hereinafter, referred to as B luminance) and color component luminance indicating low luminance, in this case, red component luminance (hereinafter, R luminance) ) And calculate the average values of the B luminance and the R luminance of the four points, respectively, and calculate the calculated average value as a reference value bstd for a blue background (blue which is the color of the background plate 8).
2, rstd2. Here, the processing in step S7 corresponds to the second luminance calculating means in the present invention.

【0029】次に、ステップS8,S9にて、撮影画像
31の左端ラインから所定のラインXR1までの範囲
(初期検出範囲)において、左端から順次、縦方向に走
査することにより、その走査ライン(探索ライン)に対
し、以下に説明する2分探索法によりB輝度平均値を基
準で左頭側位置の検出を行なう。ここに、このステップ
S8,S9の処理が本発明における第1の頭側位置検出
手段に対応している。
Next, in steps S8 and S9, in the range from the left end line of the photographed image 31 to a predetermined line XR1 (initial detection range), scanning is sequentially performed in the vertical direction from the left end to obtain the scanning line ( For the search line), the left head side position is detected based on the B luminance average value by the binary search method described below. Here, the processing of steps S8 and S9 corresponds to the first head side position detecting means in the present invention.

【0030】1.縦方向の走査ラインのある範囲内(た
とえば、図3に示す頭頂ラインからYエンドラインまで
の間)において、撮影画像31の上端から所定画素おき
にB輝度を調べることにより、ステップS7にて求めた
B輝度平均値bstd2±α(αは誤差分)内にないB
輝度の画素数をカウントする。
1. In a certain range of the vertical scanning line (for example, between the top line and the Y end line shown in FIG. 3), the B luminance is determined at predetermined pixels from the upper end of the photographed image 31 to be obtained in step S7. B which is not within the B luminance average value bstd2 ± α (α is an error)
The number of pixels of luminance is counted.

【0031】2.上記1でのカウント値があらかじめ設
定される基準値bnmax2を越えた走査ラインを頭部
が存在する走査ラインとする。
2. A scan line in which the count value in 1 exceeds a preset reference value bnmax2 is defined as a scan line having a head.

【0032】3.上記2で調べた走査ラインに頭部が存
在する揚合は、その走査ラインよりも左方向の検出範囲
の半分の距離に位置する走査ラインについて調べ、その
走査ラインに頭部が存在しない場合は、その走査ライン
よりも右方向の検出範囲の半分の距離に位置する走査ラ
インについて調ベる。このように、検出範囲を1/2に
してライン調査を繰り返して行なうことにより、左頭側
位置を絞り込む(検出)ものである。
3. If there is a head in the scan line examined in the above 2, check the scan line located at a distance of half the detection range in the left direction from that scan line, and if there is no head in that scan line, The scanning line located half the distance in the rightward detection range from the scanning line is searched. In this manner, the left head side position is narrowed down (detected) by repeatedly performing the line inspection with the detection range being halved.

【0033】このようにして、B輝度基準で左頭側位置
が確定された場合、ステップS10に進み、ノイズ検出
処理として、左頭側位置が確定された走査ラインよりも
右方向において、頭部が存在する走査ラインが所定のラ
イン数XN1以上存在することを確認する。
When the left head position is determined on the basis of the B luminance in this way, the process proceeds to step S10, and the noise detection processing is performed in the right direction with respect to the scan line whose left head position is determined. It is confirmed that the number of scan lines in which there is a number is equal to or more than a predetermined number of lines XN1.

【0034】ステップS8,S9において、B輝度基準
で左頭側位置の検出ができなかった場合、ステップS1
1,S12に進み、撮影画像31の左端ラインから所定
のラインXR1までの範囲(初期検出範囲)において、
左端から順次、縦方向に走査することにより、その走査
ライン(探索ライン)に対し、ステップS8,S9と同
様な2分探索法により、R輝度平均値を基準で左頭側位
置の検出を行なう。ただし、R輝度の基準値はrstd
2±β(βは誤差分)、最大カウント数をrnmax2
とする。ここに、このステップS11,S12の処理が
本発明における第2の頭側位置検出手段に対応してい
る。
In steps S8 and S9, if the left head position cannot be detected on the basis of the B luminance, step S1
1, the process proceeds to S12, in a range from the left end line of the captured image 31 to a predetermined line XR1 (initial detection range),
By sequentially scanning in the vertical direction from the left end, the left head position is detected for the scan line (search line) by the binary search method similar to steps S8 and S9 based on the R luminance average value. . However, the reference value of R luminance is rstd
2 ± β (β is the error), the maximum count number is rnMax2
And Here, the processing of steps S11 and S12 corresponds to the second head-side position detecting means in the present invention.

【0035】このようにして、R輝度基準で左頭側位置
が確定された場合、ステップS10に進み、ノイズ検出
処理を行なう。R輝度基準で左頭側位置が確定されない
場合、ステップS22に進み、エラー処理を行なって、
撮影処理を終了する。
When the left head position is determined on the basis of the R luminance as described above, the process proceeds to step S10, and a noise detection process is performed. If the left temporal position is not determined based on the R luminance, the process proceeds to step S22, where error processing is performed, and
The photographing process ends.

【0036】次に、右頭側位置を検出する。Next, the right head position is detected.

【0037】ステップS13,S14にて、撮影画像3
1の右端ラインから所定のラインXR2までの範囲(初
期検出範囲)において、右端から順次、縦方向に走査す
ることにより、その走査ライン(探索ライン)に対し、
以下に説明する2分探索法によりB輝度平均値を基準で
右頭側位置の検出を行なう。ここに、このステップS1
3,S14の処理が本発明における第1の頭側位置検出
手段に対応している。
At steps S13 and S14, the photographed image 3
1 in the range from the right end line to the predetermined line XR2 (initial detection range), by sequentially scanning vertically from the right end, the scan line (search line)
The right head position is detected based on the B luminance average value by the binary search method described below. Here, this step S1
Steps S3 and S14 correspond to the first head-side position detecting means in the present invention.

【0038】1.縦方向の走査ラインのある範囲内(た
とえば、図3に示す頭頂ラインからYエンドラインまで
の間)において、撮影画像31の上端から所定画素おき
にB輝度を調べることにより、ステップS7にて求めた
B輝度平均値bstd2±α(αは誤差分)内にないB
輝度の画素数をカウントする。
1. In a certain range of the vertical scanning line (for example, between the top line and the Y end line shown in FIG. 3), the B luminance is determined at predetermined pixels from the upper end of the photographed image 31 to be obtained in step S7. B which is not within the B luminance average value bstd2 ± α (α is an error)
The number of pixels of luminance is counted.

【0039】2.上記1でのカウント値があらかじめ設
定される基準値bnmax2を越えた走査ラインを頭部
が存在する走査ラインとする。
2. A scan line in which the count value in 1 exceeds a preset reference value bnmax2 is defined as a scan line having a head.

【0040】3.上記2で調べた走査ラインに頭部が存
在する揚合は、その走査ラインよりも右方向の検出範囲
の半分の距離に位置する走査ラインについて調べ、その
走査ラインに頭部が存在しない場合は、その走査ライン
よりも左方向の検出範囲の半分の距離に位置する走査ラ
インについて調ベる。このように、検出範囲を1/2に
してライン調査を繰り返して行なうことにより、右頭側
位置を絞り込む(検出)ものである。
3. If there is a head in the scan line examined in the above 2, check the scan line located at a distance of half the detection range in the right direction from the scan line. If no head exists in the scan line, The scanning line located at a half distance of the detection range in the left direction from the scanning line is searched. In this manner, the right head side position is narrowed down (detected) by repeatedly performing the line inspection with the detection range being halved.

【0041】このようにして、B輝度基準で右頭側位置
が確定された場合、ステップS15に進み、ノイズ検出
処理として、右頭側位置が確定された走査ラインよりも
左方向において、頭部が存在する走査ラインが所定のラ
イン数XN1以上存在することを確認する。
When the right head position is determined on the basis of the B luminance in this way, the process proceeds to step S15, and the noise detection processing is performed in the left direction from the scan line in which the right head position is determined. It is confirmed that the number of scan lines in which there is a number is equal to or more than a predetermined number of lines XN1.

【0042】ステップS13,S14において、B輝度
基準で右側位置の検出ができなかった場合、ステップS
16,S17に進み、撮影画像31の右端ラインから所
定のラインXR2までの範囲(初期検出範囲)におい
て、右端から順次、縦方向に走査することにより、その
走査ライン(探索ライン)に対し、ステップS13,S
14と同様な2分探索法により、R輝度平均値を基準で
右頭側位置の検出を行なう。ただし、R輝度の基準値は
rstd2±β(βは誤差分)、最大カウント数をrn
max2とする。ここに、このステップS16,S17
の処理が本発明における第2の頭側位置検出手段に対応
している。
In steps S13 and S14, if the right position cannot be detected based on the B luminance,
The process proceeds to S17, and in the range from the right end line of the captured image 31 to the predetermined line XR2 (initial detection range), the scanning is sequentially performed in the vertical direction from the right end. S13, S
By the same binary search method as in 14, the right head position is detected based on the R luminance average value. Here, the reference value of R luminance is rstd2 ± β (β is an error), and the maximum count is rnd.
max2. Here, this step S16, S17
Corresponds to the second head-side position detecting means in the present invention.

【0043】このようにして、R輝度基準で右頭側位置
が確定された場合、ステップS15に進み、ノイズ検出
処理を行なう。R輝度基準で右頭側位置が確定されない
場合、ステップS22に進み、エラー処理を行なって、
撮影処理を終了する。
When the right head position is determined on the basis of the R luminance as described above, the process proceeds to step S15, and a noise detection process is performed. If the right head position is not determined based on the R luminance, the process proceeds to step S22, where error processing is performed, and
The photographing process ends.

【0044】なお、説明の便宜上から、頭頂位置の検出
を行なってから左右頭側位置の検出を行なうように説明
したが、実際は頭頂位置の検出と左右頭側位置の検出は
並列的に行なわれている。
For convenience of explanation, it has been described that the top position is detected and then the left and right head positions are detected. However, the top position detection and the left and right head positions are actually performed in parallel. ing.

【0045】さて、頭頂位置および左右頭側位置の検出
が終了すると、ステップS18に進み、検出された左右
頭側位置の中央位置を算出し、それを顔中央位置CCと
する。ここに、このステップS18の処理が本発明にお
ける顔中央位置計算手段に対応している。
When the detection of the parietal position and the left and right head side positions is completed, the process proceeds to step S18, where the center position of the detected left and right head side positions is calculated and set as the face center position CC. Here, the processing in step S18 corresponds to the face center position calculating means in the present invention.

【0046】次に、ステップS19にて、先に検出され
た頭頂位置および顔中央位置CCが、あらかじめ設定さ
れる基準範囲内に存在するか否かを確認する。この確認
の結果、基準範囲内に存在しない場合、ステップS22
に進み、エラー処理を行なって、撮影処理を終了する。
ここに、このステップS19の処理が本発明における判
定手段に対応している。
Next, in step S19, it is checked whether the head position and the face center position CC detected earlier are within a preset reference range. As a result of this check, if it is not within the reference range, step S22
Then, error processing is performed, and the photographing processing ends.
Here, the processing in step S19 corresponds to the determination means in the present invention.

【0047】上記確認の結果、基準範囲内に存在する場
合、ステップS20に進み、先に検出された頭頂位置お
よび左右頭側位置を基に、CPU部13内のメインメモ
リに格納されている撮影画像31から被撮影者1の上半
身像を切出す。切出された上半身像の一例を図3の符号
32で示す。ここに、このステップS20の処理が本発
明における上半身切出手段に対応している。
As a result of the above check, if it is within the reference range, the process proceeds to step S20, where the photographing stored in the main memory in the CPU unit 13 is performed based on the top position and the left and right temporal positions detected earlier. An upper body image of the subject 1 is cut out from the image 31. An example of the extracted upper body image is indicated by reference numeral 32 in FIG. Here, the process of step S20 corresponds to the upper body extracting means in the present invention.

【0048】次に、ステップS21にて、切出された上
半身像32を出力用に変換し、被撮影者1のその他の個
人情報とともに、目的に応じ、CPU部13に接続され
た画像印刷装置20、あるいは、ネットワークアダプタ
22からネットワーク21上に接続された画像印刷装置
(図示しない)において、記録媒体(用紙、カードな
ど)に印刷出力したり、同ネットワーク21上に接続さ
れた画像保存手段としての画像ファイリング装置(図示
しない)に対して保存出力したり、さらには、CPU部
13内のメインメモリあるいは大容量記憶装置15や可
搬性のある記憶媒体16を画像保存手段として用いるこ
とにより、それに対して記憶(保存出力)する。これ
で、被撮影者1人に対する全ての撮影処理が終了する。
Next, in step S21, the cut-out upper body image 32 is converted for output, and together with other personal information of the subject 1 and the image printing apparatus connected to the CPU 13 according to the purpose. 20 or an image printing device (not shown) connected to the network 21 from the network adapter 22 for printing out on a recording medium (paper, card, etc.) or as an image storage unit connected to the network 21 To an image filing device (not shown), and further, by using a main memory or a large-capacity storage device 15 or a portable storage medium 16 in the CPU section 13 as an image storage means, It is stored (stored and output). Thus, all the photographing processes for one photographed person are completed.

【0049】なお、撮影した顔画像を印刷出力するか保
存出力するかは目的に応じて選択すればよく、顔画像の
出力方法は任意である。
Whether the photographed face image is printed out or saved may be selected depending on the purpose, and the method of outputting the face image is arbitrary.

【0050】以上説明したような頭部位置検出アルゴリ
ズムにより、被撮影者1が黒髪でない場合においても、
被撮影者の頭部位置を高精度に検出可能となる。一例と
して、黒髪、白髪、無頭髪の揚合、被撮影者の頭部位置
のRGB値は下記表1に示すような値となる。
With the head position detection algorithm described above, even when the subject 1 does not have black hair,
The head position of the subject can be detected with high accuracy. As an example, the RGB values of the black hair, the white hair, the headless hair, and the head position of the subject are as shown in Table 1 below.

【0051】[0051]

【表1】 [Table 1]

【0052】上記表1から明らかなように、黒髪の揚合
はB輝度がブルーバックのB輝度とかけ離れているた
め、B輝度基準のみで頭部位置を精度よく検出できる。
また、白髪、無頭髪の揚合、B輝度がブルーバックのB
輝度とほとんど同じため、B輝度基準では検出できない
が、R輝度がブルーバックのR輝度とかけ離れているた
め、R輝度基準により頭部位置を精度よく検出できるこ
とがわかる。
As is clear from Table 1, since the brightness of the black hair is much different from the brightness of the blue background, the head position can be accurately detected only by using the brightness B reference.
In addition, white hair, hairless hair, B brightness is blue background B
Since the luminance is almost the same, it cannot be detected on the basis of the B luminance. However, since the R luminance is far from the R luminance of the blue background, it can be seen that the head position can be accurately detected on the basis of the R luminance.

【0053】なお、前記実施の形態では、被撮影者の背
景としてブルーバックを用い、ブルーバックのB輝度お
よびR輝度を基準として被撮影者の頭部位置を検出する
場合について説明したが、本発明はこれに限定されるも
のでなく、たとえば、被撮影者の背景として赤色や緑色
などの他の特定色を用いてもよい。その場合、被撮影者
の背景である特定色に対して高輝度を示す色成分輝度お
よび低輝度を示す色成分輝度を基準として被撮影者の頭
部位置を検出する。
In the above embodiment, the case where the blue back is used as the background of the subject and the head position of the subject is detected based on the B luminance and the R luminance of the blue back has been described. The invention is not limited to this. For example, another specific color such as red or green may be used as the background of the subject. In this case, the head position of the subject is detected based on the color component luminance indicating high luminance and the color component luminance indicating low luminance with respect to the specific color which is the background of the subject.

【0054】[0054]

【発明の効果】以上詳述したように本発明によれば、被
撮影者が黒髪でない場合でも、被撮影者の頭部位置を精
度よく検出することができ、被撮影者の顔の位置を撮影
画像内で理想状態になるように配置できる人物画像撮影
方法および人物画像撮影装置を提供できる。
As described above in detail, according to the present invention, even if the subject is not black hair, the position of the head of the subject can be accurately detected, and the position of the face of the subject can be detected. It is possible to provide a person image photographing method and a person image photographing apparatus which can be arranged in an ideal state in a photographed image.

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

【図1】本発明の実施の形態に係る人物画像撮影装置の
外観構成を概略的に示す構成図。
FIG. 1 is a configuration diagram schematically showing an external configuration of a person image photographing apparatus according to an embodiment of the present invention.

【図2】図1に示した人物画像撮影装置の全体的な構成
を示すブロック図。
FIG. 2 is a block diagram showing an overall configuration of the person image photographing apparatus shown in FIG.

【図3】被撮影者の頭頂位置を検出する際に用いる頭部
の探索法を示した概念図。
FIG. 3 is a conceptual diagram showing a head search method used when detecting a top position of a subject.

【図4】処理動作を説明するためのフローチャート。FIG. 4 is a flowchart illustrating a processing operation.

【図5】処理動作を説明するためのフローチャート。FIG. 5 is a flowchart illustrating a processing operation.

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

1……被撮影者 2……照明器 3……ビデオカメラ(撮影手段) 4……撮影者(操作者) 5……表示器(モニタディスプレイ) 6……制御台(制御部) 11……ビデオキャプチャ部 12……ビデオアクセラレート部 13……CPU部 15……大容量記憶媒体 16……記憶媒体 17……リーダライタ部 20……画像印刷装置(出力手段) DESCRIPTION OF SYMBOLS 1 ... Subject 2 ... Illumination device 3 ... Video camera (photographing means) 4 ... Photographer (operator) 5 ... Display (monitor display) 6 ... Control stand (control part) 11 ... Video capture section 12 Video acceleration section 13 CPU section 15 Large-capacity storage medium 16 Storage medium 17 Reader / writer section 20 Image printing device (output means)

───────────────────────────────────────────────────── フロントページの続き (51)Int.Cl.7 識別記号 FI テーマコート゛(参考) G03B 17/53 G03B 17/53 G06T 7/60 G06F 15/70 350B ──────────────────────────────────────────────────続 き Continued on the front page (51) Int.Cl. 7 Identification symbol FI Theme coat ゛ (Reference) G03B 17/53 G03B 17/53 G06T 7/60 G06F 15/70 350B

Claims (4)

【特許請求の範囲】[Claims] 【請求項1】 特定色を背景とする被撮影者の少なくと
も顔を含む画像を撮影する第1のステップと、 この第1のステップにより撮影された画像から、前記被
撮影者の背景である特定色に対して高輝度を示す色成分
輝度および低輝度を示す色成分輝度を基準として前記被
撮影者の頭部位置を検出する第2のステップと、 この第2のステップにより検出された前記被撮影者の頭
部位置を基に前記第1のステップにより撮影された画像
から前記被撮影者の所定領域の画像を切出す第3のステ
ップと、 この第3のステップにより切出された前記被撮影者の所
定領域の画像を撮影画像として出力する第4のステップ
と、 を有することを特徴とする人物画像撮影方法。
1. A first step of photographing an image including at least a face of a subject with a specific color as a background, and identifying a background of the subject from an image photographed in the first step. A second step of detecting a head position of the subject based on a color component luminance indicating a high luminance and a color component luminance indicating a low luminance with respect to a color, and the object detected by the second step. A third step of cutting out an image of the predetermined region of the subject from the image taken in the first step based on the position of the head of the photographer; and the subject cut out by the third step. A fourth step of outputting an image of a predetermined region of the photographer as a photographed image, and a method of photographing a person image.
【請求項2】 前記背景の特定色は青色であり、前記特
定色に対して高輝度を示す色成分輝度は青成分輝度であ
り、前記特定色に対して低輝度を示す色成分輝度は赤成
分輝度であることを特徴とする請求項1記載の人物画像
撮影方法。
2. The specific color of the background is blue, the color component luminance indicating high luminance with respect to the specific color is blue component luminance, and the color component luminance indicating low luminance with respect to the specific color is red. 2. The method according to claim 1, wherein the brightness is a component luminance.
【請求項3】 特定色を背景とする被撮影者の少なくと
も顔を含む画像を撮影する撮影手段と、 この撮影手段により撮影された画像から、前記被撮影者
の背景である特定色に対して高輝度を示す色成分輝度お
よび低輝度を示す色成分輝度を基準として前記被撮影者
の頭部位置を検出する頭部位置検出手段と、 この頭部位置検出手段により検出された前記被撮影者の
頭部位置を基に前記撮影手段により撮影された画像から
前記被撮影者の所定領域の画像を切出す画像切出手段
と、 この上半身切出手段により切出された前記被撮影者の所
定領域の画像を撮影画像として出力する出力手段と、 を具備したことを特徴とする人物画像撮影装置。
3. A photographing means for photographing an image including at least a face of a photographed person with a background of a specific color, and an image photographed by the photographing means is used for a specific color which is a background of the photographed person. Head position detecting means for detecting a head position of the subject based on color component luminance indicating high luminance and color component luminance indicating low luminance; and the subject detected by the head position detecting means. Image extracting means for extracting an image of the predetermined region of the subject from an image captured by the capturing means based on the head position of the subject; and a predetermined image of the subject extracted by the upper body extracting means. Output means for outputting an image of the region as a photographed image.
【請求項4】 前記背景の特定色は青色であり、前記特
定色に対して高輝度を示す色成分輝度は青成分輝度であ
り、前記特定色に対して低輝度を示す色成分輝度は赤成
分輝度であることを特徴とする請求項3記載の人物画像
撮影装置。
4. The specific color of the background is blue, the color component luminance indicating high luminance with respect to the specific color is blue component luminance, and the color component luminance indicating low luminance with respect to the specific color is red. 4. The apparatus according to claim 3, wherein the apparatus has component luminance.
JP36129299A 1999-12-20 1999-12-20 Person image photographing method and person image photographing apparatus Expired - Lifetime JP4327317B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP36129299A JP4327317B2 (en) 1999-12-20 1999-12-20 Person image photographing method and person image photographing apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP36129299A JP4327317B2 (en) 1999-12-20 1999-12-20 Person image photographing method and person image photographing apparatus

Publications (2)

Publication Number Publication Date
JP2001177740A true JP2001177740A (en) 2001-06-29
JP4327317B2 JP4327317B2 (en) 2009-09-09

Family

ID=18472983

Family Applications (1)

Application Number Title Priority Date Filing Date
JP36129299A Expired - Lifetime JP4327317B2 (en) 1999-12-20 1999-12-20 Person image photographing method and person image photographing apparatus

Country Status (1)

Country Link
JP (1) JP4327317B2 (en)

Also Published As

Publication number Publication date
JP4327317B2 (en) 2009-09-09

Similar Documents

Publication Publication Date Title
US6344907B1 (en) Image modification apparatus and method
US7973828B2 (en) Red-eye filter method and apparatus
US7734098B2 (en) Face detecting apparatus and method
KR20010029936A (en) Apparatus for Photographing a Face Image and Method Therefor
JP2003344021A (en) Method for calculating dimension of human face in image and method for detecting face
JP2005086516A (en) Imaging device, printer, image processor and program
JP4364466B2 (en) Imaging device
JPS6145372A (en) Picture character recognizer
JP2005316958A (en) Red eye detection device, method, and program
CA2409224C (en) Image recording for a document generation system
JP2001177740A (en) Portraiture photographing method and portraiture device
JP4316063B2 (en) Face image photographing method and face image photographing apparatus
JP4091184B2 (en) Camera and image generation method
JP2000292852A (en) Face picture photographing device
JP5477025B2 (en) Image display device and program
JP4336492B2 (en) Image data processing device
JP2000292834A (en) Device and method for photographing face picture
JP4454841B2 (en) Face image photographing apparatus and face image photographing method
JPH11250221A (en) Method and device for photographing facial picture
JP4709812B2 (en) Image generation method and image processing apparatus
JP2003187257A (en) Image creation system
JPH06282630A (en) Video id photo system
JP2003317036A (en) Apparatus and method for issuing medium for certification
JPH0944643A (en) Device and method for generating composite face data and displaying composite face image
JP2005184129A (en) Image photographing system and certificate medium issuing system

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20061127

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20090130

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20090203

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090406

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20090519

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

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20090611

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

Free format text: PAYMENT UNTIL: 20120619

Year of fee payment: 3

R151 Written notification of patent or utility model registration

Ref document number: 4327317

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151

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

Free format text: PAYMENT UNTIL: 20120619

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20120619

Year of fee payment: 3

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

Free format text: PAYMENT UNTIL: 20130619

Year of fee payment: 4

S111 Request for change of ownership or part of ownership

Free format text: JAPANESE INTERMEDIATE CODE: R313114

Free format text: JAPANESE INTERMEDIATE CODE: R313111

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

EXPY Cancellation because of completion of term