JP2006092191A - Apparatus for detecting face image, method for detecting face image, and program for detecting face image - Google Patents

Apparatus for detecting face image, method for detecting face image, and program for detecting face image Download PDF

Info

Publication number
JP2006092191A
JP2006092191A JP2004275862A JP2004275862A JP2006092191A JP 2006092191 A JP2006092191 A JP 2006092191A JP 2004275862 A JP2004275862 A JP 2004275862A JP 2004275862 A JP2004275862 A JP 2004275862A JP 2006092191 A JP2006092191 A JP 2006092191A
Authority
JP
Japan
Prior art keywords
face
detection
detected
score
area
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
JP2004275862A
Other languages
Japanese (ja)
Inventor
Makoto Yonaha
誠 與那覇
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 JP2004275862A priority Critical patent/JP2006092191A/en
Publication of JP2006092191A publication Critical patent/JP2006092191A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

<P>PROBLEM TO BE SOLVED: To provide an apparatus, a method and a program for detecting face images that make it possible to accurately and easily specify the positions of a number of face images in captured images in a short period of time, the face images being combined into a "backdrop" template image, etc. <P>SOLUTION: To continue the detection of face images, a face detection area setting part 11 sets as a detection area A an area obtained when an area Al' where detected face images exist is excluded from a currently set face detection area Al. A score threshold setting part 13 sets a score threshold V at V=Vl. There are no particular restrictions on the score threshold Vl to be reset as long as it is smaller than the currently set score threshold V. Face detection is carried out again based upon the newly set area A and the score threshold V. <P>COPYRIGHT: (C)2006,JPO&NCIPI

Description

本発明は顔画像検出装置、顔画像検出方法及び顔画像検出プログラムに係り、特に多数の人物を記録した撮影画像から人物の顔部分を検出する装置、方法及びプログラムに関する。   The present invention relates to a face image detection apparatus, a face image detection method, and a face image detection program, and more particularly, to an apparatus, method, and program for detecting a face portion of a person from a captured image in which a large number of persons are recorded.

従来、人物画像の顔部分の画像である顔画像と背景画像や服装画像を容易に合成するための技術が様々開発されている。例えば特許文献1によると、背景画像や服装画像などに合成の基準となる2点を指定する一方、顔画像の頭髪領域と顔輪郭の内部を合成に用いる領域とし、顔画像の合成の基準となる2点を指定する。顔画像の合成の基準となる2点は、あごの先端を通る水平線上で、その2点を結ぶ線分の中点があごの先端に、長さが顔の横幅になるように指定する。そして、顔画像に指定された2点と背景画像などに指定された2点が重なるように、顔画像の合成に用いる領域をマッピングして肖像画像を生成する。
特開平10−222649号公報
Conventionally, various techniques for easily synthesizing a face image, which is an image of a face portion of a person image, a background image, and a clothing image have been developed. For example, according to Patent Document 1, while specifying two points as a reference for synthesis in a background image, a clothing image, and the like, the hair region of the face image and the inside of the face outline are used as a region for synthesis, Specify two points. Two points serving as a reference for the synthesis of the face image are specified so that the midpoint of the line connecting the two points is on the tip of the jaw on the horizontal line passing through the tip of the jaw and the length is the width of the face. Then, the portrait image is generated by mapping the region used for the synthesis of the face image so that the two points designated for the face image and the two points designated for the background image overlap.
Japanese Patent Laid-Open No. 10-222649

ところで最近、人物キャラクタの顔部分がくり抜かれたように空白にしておき、その空白部分に別途複数の人物を撮影した画像から抽出された顔画像をはめ込んで合成するいわゆる「かきわり」状のテンプレート画像が開発されている。この顔画像の抽出元として、多数の人物を撮影した集合写真などの撮影画像を用いる場合、撮影画像から全ての顔画像の存在位置を特定する必要がある。しかし、顔検出の技術の制約上、1回の顔検出で全ての顔画像の存在位置を正確に特定するのは困難である。このため、検出された顔画像の中から誤検出された物体と正しく検出された顔画像との選別を手作業で繰り返していくことが必要となる。この作業は顔画像の数が増えると非常に煩雑になり、作業者の負荷も増えることが予想される。本発明はこのような問題点に鑑みてなされたもので、「かきわり」状のテンプレート画像などに合成する多数の顔画像の存在位置を、撮影画像中から短時間で正確かつ簡単に特定できる顔画像検出装置及び方法を提供することを目的とする。   By the way, recently, the character character's face part is blanked out, and a so-called “skin” -like template is created by inserting a face image extracted from an image obtained by photographing a plurality of persons into the blank part. Images are being developed. When a captured image such as a group photo of a large number of people is used as the face image extraction source, it is necessary to specify the positions of all face images from the captured image. However, due to the limitations of face detection technology, it is difficult to accurately specify the positions of all face images in one face detection. For this reason, it is necessary to manually repeat the selection of the erroneously detected object from the detected face image and the correctly detected face image. This operation becomes very complicated as the number of face images increases, and the load on the operator is expected to increase. The present invention has been made in view of such problems, and can accurately and easily identify the positions of a large number of face images to be combined with a “crisp” template image in a short time from a captured image. An object of the present invention is to provide a face image detection apparatus and method.

上述の課題を解決するため、本願発明に係る顔画像検出装置は、人物を記録した撮影画像を入力する撮影画像入力部と、操作入力を受け付ける操作部と、撮影画像において人物の顔部分を検出する領域である顔検出領域を設定する領域設定部と、設定された顔検出領域において人物の顔部分を検出する検出部と、検出された顔部分の検出の正確さを数値化したスコアを算出する算出部と、顔部分以外の物体を誤検出したか否かを判定する基準となるスコアの閾値を設定するスコア閾値設定部と、設定された閾値と算出されたスコアとを比較し、閾値を超えるスコアの顔部分である検出済顔部分を判定する判定部と、検出済顔部分を表示する表示部と、検出済顔部分の中から誤検出された顔部分以外の物体である誤検出物体を操作部により指定させる誤検出指定部と、指定された誤検出物体以外の検出済顔部分の位置を記憶する記憶部と、を備え、領域設定部は、検出を繰り返す場合、現在設定されている顔検出領域から検出済顔部分の存在する領域を除いた領域を新たな顔検出領域に設定し、スコア閾値設定部は、検出を繰り返す場合、現在設定されている閾値未満の値を新たな閾値に設定する。   In order to solve the above-described problems, a face image detection apparatus according to the present invention detects a face portion of a person in a captured image, a captured image input unit that inputs a captured image in which a person is recorded, an operation unit that receives an operation input, and the like. An area setting unit for setting a face detection area, a detection unit for detecting a human face part in the set face detection area, and calculating a score that quantifies the accuracy of detection of the detected face part And a score threshold setting unit for setting a threshold of a score serving as a reference for determining whether or not an object other than the face portion has been erroneously detected, and comparing the set threshold with the calculated score. A determination unit that determines a detected face part that is a face part with a score exceeding, a display unit that displays the detected face part, and an erroneous detection that is an object other than the face part that is erroneously detected from the detected face part Specify the object using the operation unit And a storage unit for storing the position of the detected face part other than the specified erroneously detected object, and the region setting unit starts from the currently set face detection region when repeating the detection. An area excluding the area where the detected face part exists is set as a new face detection area, and the score threshold setting unit sets a value less than the currently set threshold as a new threshold when the detection is repeated.

この発明によると、現在設定されている顔検出領域から顔検出が完了した領域を除いた領域を新たな顔検出領域に再設定し、かつスコア閾値を現在設定されているスコア閾値よりも小さい値に再設定した上で、その顔検出領域について顔検出を行う。撮影画像中の顔部分の未検出領域について、スコア閾値を下げて顔検出を繰り返すことで、未検出の顔部分のある領域を絞り込むことができ、撮影画像中に多数の人物が記録されている場合でも顔画像の特定を短時間で効率良く正確に行うことが可能となる。   According to the present invention, an area obtained by removing the area where face detection has been completed from the currently set face detection area is reset as a new face detection area, and the score threshold is a value smaller than the currently set score threshold Then, face detection is performed for the face detection area. By reducing the score threshold and repeating face detection for the undetected area of the face part in the captured image, the area with the undetected face part can be narrowed down, and a large number of people are recorded in the captured image. Even in this case, it is possible to specify the face image efficiently and accurately in a short time.

顔画像検出装置は、検出部が検出する顔部分のサイズの閾値を設定する顔サイズ閾値設定部をさらに備えていてもよい。   The face image detection apparatus may further include a face size threshold value setting unit that sets a threshold value of the size of the face portion detected by the detection unit.

こうすることで、未検出の顔部分のサイズも絞り込むことができる。   By doing so, the size of the undetected face portion can be narrowed down.

また、上述の課題を解決するため、本願発明に係る顔画像検出方法は、人物を記録した撮影画像を入力する撮影画像入力ステップと、撮影画像において人物の顔部分を検出する領域である顔検出領域を設定する領域設定ステップと、設定された顔検出領域において人物の顔部分を検出する検出ステップと、検出された顔部分の検出の正確さを数値化したスコアを算出する算出ステップと、顔部分以外の物体を誤検出したか否かを判定する基準となるスコアの閾値を設定するスコア閾値設定ステップと、設定された閾値と算出されたスコアとを比較し、閾値を超えるスコアの顔部分である検出済顔部分を判定する判定ステップと、検出済顔部分を表示する表示ステップと、検出済顔部分の中から誤検出された顔部分以外の物体である誤検出物体を指定させる誤検出指定ステップと、指定された誤検出物体以外の検出済顔部分の位置を記憶する記憶ステップと、を含み、領域設定ステップは、検出を繰り返す場合、現在設定されている顔検出領域から検出済顔部分の存在する領域を除いた領域を新たな顔検出領域に設定し、スコア閾値設定ステップは、検出を繰り返す場合、現在設定されている閾値未満の値を新たな閾値に設定する。   In order to solve the above-described problems, a face image detection method according to the present invention includes a captured image input step for inputting a captured image in which a person is recorded, and face detection that is an area for detecting a human face portion in the captured image. An area setting step for setting an area; a detection step for detecting a face part of a person in the set face detection area; a calculation step for calculating a score that quantifies the accuracy of detection of the detected face part; and a face A score threshold setting step for setting a threshold of a score serving as a reference for determining whether or not an object other than the portion is erroneously detected is compared with the calculated threshold and the face portion having a score exceeding the threshold A determination step for determining a detected face part, a display step for displaying the detected face part, and a false detection object that is an object other than the face part erroneously detected from the detected face part A false detection designation step for designating, and a storage step for storing the position of the detected face part other than the designated false detection object, and the region setting step when the detection is repeated, the currently set face detection region The area excluding the area where the detected face part exists is set as a new face detection area, and the score threshold setting step sets a value less than the currently set threshold as the new threshold when the detection is repeated. .

この顔画像検出方法は、上述の顔画像検出装置と同様の作用効果を奏する。   This face image detection method has the same effect as the above-described face image detection device.

また、上述の課題を解決するため、本願発明に係る顔画像検出プログラムは、人物を記録した撮影画像を入力する撮影画像入力ステップと、撮影画像において人物の顔部分を検出する領域である顔検出領域を設定する領域設定ステップと、設定された顔検出領域において人物の顔部分を検出する検出ステップと、検出された顔部分の検出の正確さを数値化したスコアを算出する算出ステップと、顔部分以外の物体を誤検出したか否かを判定する基準となるスコアの閾値を設定するスコア閾値設定ステップと、設定された閾値と算出されたスコアとを比較し、閾値を超えるスコアの顔部分である検出済顔部分を判定する判定ステップと、検出済顔部分を表示する表示ステップと、検出済顔部分の中から誤検出された顔部分以外の物体である誤検出物体を指定させる誤検出指定ステップと、指定された誤検出物体以外の検出済顔部分の位置を記憶する記憶ステップと、をコンピュータに実行させ、領域設定ステップは、検出を繰り返す場合、現在設定されている顔検出領域から検出済顔部分の存在する領域を除いた領域を新たな顔検出領域に設定し、スコア閾値設定ステップは、検出を繰り返す場合、現在設定されている閾値未満の値を新たな閾値に設定する。   In order to solve the above-described problems, a face image detection program according to the present invention includes a captured image input step for inputting a captured image in which a person is recorded, and face detection that is an area for detecting a human face portion in the captured image. An area setting step for setting an area; a detection step for detecting a face part of a person in the set face detection area; a calculation step for calculating a score that quantifies the accuracy of detection of the detected face part; and a face A score threshold setting step for setting a threshold of a score serving as a reference for determining whether or not an object other than the portion is erroneously detected is compared with the calculated threshold and the face portion having a score exceeding the threshold A determination step for determining a detected face portion, a display step for displaying the detected face portion, and a false detection that is an object other than the face portion that is erroneously detected from the detected face portions. An error detection designation step for designating an object and a storage step for storing the position of a detected face part other than the designated false detection object are executed by the computer, and the region setting step is currently set when the detection is repeated. An area obtained by removing the area where the detected face part exists from the face detection area being set is set as a new face detection area, and the score threshold setting step newly sets a value less than the currently set threshold when the detection is repeated. Set to a proper threshold.

この顔画像検出プログラムは、上述の顔画像検出装置と同様の作用効果を奏する。この顔画像検出プログラムは、CD−ROM、DVD、MOその他のコンピュータ読み取り可能な記録媒体に記録して提供してもよい。   This face image detection program has the same effects as the above-described face image detection apparatus. The face image detection program may be provided by being recorded on a CD-ROM, DVD, MO, or other computer-readable recording medium.

この発明によると、現在設定されている顔検出領域から顔検出が完了した領域を除いた領域を新たな顔検出領域に再設定し、かつスコア閾値を現在設定されているスコア閾値よりも小さい値に再設定した上で、その顔検出領域について顔検出を行う。撮影画像中の顔部分の未検出領域について、スコア閾値を下げて顔検出を繰り返すことで、未検出の顔部分のある領域を絞り込むことができ、撮影画像中に多数の人物が記録されている場合でも顔画像の特定を短時間で効率良く正確に行うことが可能となる。   According to the present invention, an area obtained by removing the area where face detection has been completed from the currently set face detection area is reset as a new face detection area, and the score threshold is a value smaller than the currently set score threshold Then, face detection is performed for the face detection area. By reducing the score threshold and repeating face detection for the undetected area of the face part in the captured image, the area with the undetected face part can be narrowed down, and a large number of people are recorded in the captured image. Even in this case, it is possible to specify the face image efficiently and accurately in a short time.

以下、添付した図面を参照し本発明の好ましい実施の形態を説明する。   Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings.

[概略構成]
図1は、本発明の好ましい実施形態に係る顔画像検出装置100の概略機能構成図である。顔画像検出装置100は、撮影画像入力部1、表示部9、操作部10、処理部20及び記憶部30を有している。撮影画像入力部1はデジタルスチルカメラ、フィルムスキャナ、メディアドライバおよび各種無線・有線通信装置などによって取得した撮影画像を入力する。処理部20は、CPUやワンチップマイコンなどによって構成され各種演算処理を行う。記憶部30は半導体メモリで構成され、処理部20の実行するプログラムや処理部20の各種演算に必要なデータを記憶する。表示部9は液晶ディスプレイなどで構成された表示装置である。操作部10は、ユーザの操作入力を受け付けるキーボードやタッチパネルなどで構成されている。
[Schematic configuration]
FIG. 1 is a schematic functional configuration diagram of a face image detection apparatus 100 according to a preferred embodiment of the present invention. The face image detection apparatus 100 includes a captured image input unit 1, a display unit 9, an operation unit 10, a processing unit 20, and a storage unit 30. The captured image input unit 1 inputs captured images acquired by a digital still camera, a film scanner, a media driver, various wireless / wired communication devices, and the like. The processing unit 20 is configured by a CPU, a one-chip microcomputer, and the like, and performs various arithmetic processes. The storage unit 30 is configured by a semiconductor memory, and stores a program executed by the processing unit 20 and data necessary for various operations of the processing unit 20. The display unit 9 is a display device configured with a liquid crystal display or the like. The operation unit 10 includes a keyboard, a touch panel, and the like that receive user operation inputs.

顔検出領域設定部11、スコア算出部12、スコア閾値設定部13、顔サイズ閾値設定部14、顔検出部15、検出結果判定部16、検出結果表示部17、誤検出指示部18、及び顔抽出部19は、記憶部30に記憶されたプログラムであり、処理部20にロードされて実行される。   Face detection area setting unit 11, score calculation unit 12, score threshold setting unit 13, face size threshold setting unit 14, face detection unit 15, detection result determination unit 16, detection result display unit 17, erroneous detection instruction unit 18, and face The extraction unit 19 is a program stored in the storage unit 30 and is loaded into the processing unit 20 and executed.

顔検出領域設定部11は、撮影画像上で顔検出部15が顔検出を行う領域(顔検出領域)を設定する。顔検出部15は、パターンマッチングなど公知の顔認識技術により顔検出領域から人物の顔部分を表す画像(顔画像)を検出する。顔検出領域に複数の人物が記録されている場合は、複数の顔部分を個別に検出する。顔サイズ閾値設定部14は、顔検出部15が検出する顔のサイズ(画素数などで規定)の上限の閾値(顔サイズ上限値)あるいは下限の閾値(顔サイズ下限値)を設定する。顔検出部15は、顔サイズ上限値が設定されていると、顔サイズ上限値未満のサイズを有する顔部分を検出する。一方、顔検出部15は、顔サイズ下限値が設定されていると、顔サイズ下限値未満のサイズを有する顔部分を検出する。顔サイズ上限値も顔サイズ下限値も設定されていない場合、顔検出部15は、全てのサイズの顔部分を検出する。   The face detection area setting unit 11 sets an area (face detection area) in which the face detection unit 15 performs face detection on the captured image. The face detection unit 15 detects an image (face image) representing the face portion of a person from the face detection area by a known face recognition technique such as pattern matching. When a plurality of persons are recorded in the face detection area, a plurality of face portions are individually detected. The face size threshold value setting unit 14 sets an upper limit threshold value (face size upper limit value) or a lower limit threshold value (face size lower limit value) of the face size (specified by the number of pixels) detected by the face detection unit 15. The face detection unit 15 detects a face portion having a size smaller than the face size upper limit value when the face size upper limit value is set. On the other hand, when the face size lower limit value is set, the face detection unit 15 detects a face portion having a size smaller than the face size lower limit value. When neither the face size upper limit value nor the face size lower limit value is set, the face detection unit 15 detects face portions of all sizes.

スコア算出部12は、顔検出部15が検出した人物の顔部分の検出の正確さを数値化したスコアを算出する。顔部分の検出の正確さを数値化するには、例えば検出された顔部分の円形度を用いることができる。なお、人物の顔はほぼ楕円形状であるので、抽出された顔部分の円形度が楕円の円形度に近ければ、高いスコアが算出され、楕円の円形度から外れるほど低いスコアが算出される。スコア閾値設定部13は、検出された顔部分が実際に人物の顔部分であるか、あるいは人物の顔部分以外の物体であるかを判定する基準となるスコアの閾値を設定する。以下、この閾値をスコア閾値と称す。スコア閾値の設定の仕方は任意であり、操作部10から入力された任意の値をスコア閾値とすることもできる。   The score calculation unit 12 calculates a score obtained by quantifying the accuracy of detection of the human face portion detected by the face detection unit 15. In order to quantify the accuracy of detection of the face portion, for example, the circularity of the detected face portion can be used. Since the person's face is almost elliptical, a higher score is calculated when the circularity of the extracted face portion is close to the circularity of the ellipse, and a lower score is calculated as it deviates from the circularity of the ellipse. The score threshold setting unit 13 sets a score threshold that serves as a reference for determining whether the detected face part is actually a person's face part or an object other than the person's face part. Hereinafter, this threshold value is referred to as a score threshold value. The method of setting the score threshold is arbitrary, and an arbitrary value input from the operation unit 10 can be used as the score threshold.

[処理の流れ]
次に、図2のフローチャートに基づき、顔画像検出装置100の実行する顔検出処理の流れを説明する。以下の処理では、実行の完了したループ(ステップS4〜S9)で誤検出と指示された顔部分と検出の終わった顔部分を顔検出領域から除いた領域を次回の顔検出領域に設定し、かつ前回のループにおいて設定されたスコア閾値よりも低いスコア閾値を設定して新たに設定された顔検出領域における顔部分の検出を続行する。
[Process flow]
Next, a flow of face detection processing executed by the face image detection apparatus 100 will be described based on the flowchart of FIG. In the following processing, an area obtained by removing the face part instructed to be erroneously detected in the loop (steps S4 to S9) that has been executed and the face part that has been detected from the face detection area is set as the next face detection area. In addition, a score threshold lower than the score threshold set in the previous loop is set, and the detection of the face portion in the newly set face detection area is continued.

S1では、撮影画像入力部1は撮影画像を入力する。また、スコア算出部12は、ステップS4の実行回数l(l=1,2,・・)をl=1に設定する。図3は撮影画像入力部1に入力される撮影画像の一例である。撮影画像には、複数の人物Fn(n=1,2・・,6)と人物の顔部分以外の物体Xが記録されている。人物Fnの顔部分をfnで表す。   In S1, the captured image input unit 1 inputs a captured image. Further, the score calculation unit 12 sets the number of executions l (l = 1, 2,...) Of step S4 to l = 1. FIG. 3 is an example of a photographed image input to the photographed image input unit 1. In the captured image, a plurality of persons Fn (n = 1, 2,..., 6) and an object X other than the person's face are recorded. The face portion of the person Fn is represented by fn.

S2では、スコア閾値設定部13は、スコア閾値Vの初期値を設定する。この初期値は特に限定されず、操作部10から入力された任意の値を初期値とすればよい。例えば、顔部分fnのスコアが0〜200の間であると予想される場合、初期値としてスコア閾値V=100などとする。   In S2, the score threshold setting unit 13 sets an initial value of the score threshold V. The initial value is not particularly limited, and an arbitrary value input from the operation unit 10 may be set as the initial value. For example, when the score of the face part fn is predicted to be between 0 and 200, the score threshold V = 100 is set as the initial value.

S3では、顔検出領域設定部11は、撮影画像の全体領域A1を初期の顔検出領域Aに設定する。撮影画像の全体から所定の上下左右の余白部分(マージン)を除いた部分を顔検出領域Aに設定してもよい。   In S3, the face detection area setting unit 11 sets the entire area A1 of the captured image as the initial face detection area A. A part obtained by excluding predetermined vertical and horizontal margins (margins) from the entire captured image may be set as the face detection area A.

S4では、顔検出部15は、顔検出領域設定部11の設定した顔検出領域内に存在する顔部分を検出する。スコア算出部12は、検出された各顔部分についてスコアを算出する。   In S <b> 4, the face detection unit 15 detects a face part existing in the face detection region set by the face detection region setting unit 11. The score calculation unit 12 calculates a score for each detected face part.

S5では、検出結果判定部16は、各顔部分について算出されたスコアとスコア閾値設定部13の設定したスコア閾値Vとを比較し、スコア閾値Vを上回るスコアの顔部分を検出が完了した顔画像(以下検出済顔画像という)と判定する。検出結果表示部17は、検出済顔画像を表示部9に表示する。図4は検出済顔画像の表示例である。この図では、図3の人物F1〜F6の内、顔検出部15が検出できた一部の人物F1〜F3の顔画像f1〜f3と、顔検出部15が顔画像として誤検出した人物の顔部分以外の物体Xが撮影画像から抽出されて表示されている。図4はあくまで一例であり、要するに本実施形態では、顔検出部15が一部の顔画像しか検出できないことや、顔部分でない物体を顔画像として誤検出してしまうことを想定している。   In S5, the detection result determination unit 16 compares the score calculated for each face part with the score threshold value V set by the score threshold value setting unit 13, and detects the face part whose score exceeds the score threshold value V. It is determined as an image (hereinafter referred to as a detected face image). The detection result display unit 17 displays the detected face image on the display unit 9. FIG. 4 is a display example of a detected face image. In this figure, among the persons F1 to F6 in FIG. 3, the face images f1 to f3 of some persons F1 to F3 that the face detection unit 15 has detected, and the persons falsely detected as face images by the face detection unit 15. An object X other than the face portion is extracted from the captured image and displayed. FIG. 4 is merely an example. In short, in the present embodiment, it is assumed that the face detection unit 15 can detect only a part of a face image, or that an object that is not a face part is erroneously detected as a face image.

S6では、顔部分の検出を終えるか否かの指示を操作部10から受け付ける。顔部分の検出を終える指示が操作部10から入力された場合はこの処理を終了し、顔部分の検出を終える指示が操作部10から入力されない場合はS7に移行する。なお、操作部10から顔部分の検出を終えるか否かの指示を受けるのではなく、処理を終了するかS7に移行するかを検出が完了した顔部分の数に従って判定してもよい。即ち、S1で予め撮影された人物の人数を操作部10から入力させておき、S6では、検出済顔画像の数が入力された人数と合致するか否かを判断し、合致する場合はS7へ移行し、合致しない場合は処理を終了してもよい。   In S <b> 6, an instruction is received from the operation unit 10 as to whether or not the detection of the face portion is finished. If an instruction to finish the detection of the face portion is input from the operation unit 10, this process is terminated. If an instruction to end the detection of the face portion is not input from the operation unit 10, the process proceeds to S7. Instead of receiving an instruction on whether or not to detect the face part from the operation unit 10, whether to end the process or shift to S7 may be determined according to the number of face parts that have been detected. That is, the number of persons photographed in advance in S1 is input from the operation unit 10, and in S6, it is determined whether or not the number of detected face images matches the input number of persons. If it does not match, the process may be terminated.

S7では、誤検出指示部18は、誤って顔画像として検出された人物の顔部分以外の物体を操作部10から指定させる。指定の仕方は任意であり、例えばポインティングデバイスでポインタPを顔部分以外の物体に合わせてクリックさせる。こうすれば検出済顔画像から誤検出した物体を簡単に排除できる。   In S <b> 7, the erroneous detection instructing unit 18 causes the operation unit 10 to specify an object other than the face portion of the person mistakenly detected as the face image. The designation method is arbitrary. For example, the pointer P is clicked on an object other than the face portion with a pointing device. In this way, it is possible to easily exclude an object that is erroneously detected from the detected face image.

図4は顔部分以外の物体Xが誤検出物体として指定された様子を示している。顔抽出部19は、検出済顔画像のうち誤検出物体として指定されていないものの撮影画像上の位置を記憶部30に記憶する。例えば、図4では、顔部分f1〜f3の位置が記憶部30に記憶される。なお、顔抽出部19は、記憶部30に記憶された位置に存在する顔画像を抽出する。処理部20は、抽出した顔画像を、各種のテンプレート画像の所定位置に配置して合成してもよい。   FIG. 4 shows a state where an object X other than the face portion is designated as an erroneously detected object. The face extraction unit 19 stores, in the storage unit 30, the position on the captured image of the detected face image that is not designated as an erroneously detected object. For example, in FIG. 4, the positions of the face portions f <b> 1 to f <b> 3 are stored in the storage unit 30. Note that the face extraction unit 19 extracts a face image existing at a position stored in the storage unit 30. The processing unit 20 may synthesize the extracted face image by arranging it at predetermined positions of various template images.

S8では、スコア算出部12はlをインクリメント(現在のlに1だけ加算)する。顔検出領域設定部11は、現在設定されている顔検出領域Alから検出済顔画像の存在する領域Al’を除いた領域を検出領域Aに設定する。図3及び4の検出結果を例にとると、領域A1’は検出が完了したと判定されかつ誤検出物体に指定されていない顔部分の外接長方形であり、新たに検出領域Aに設定される領域A2は、現在設定されている領域A1から領域A1’を除いた領域である。新たな検出領域Aの中心を操作部10から指定できるようにしてもよい。   In S8, the score calculation unit 12 increments l (adds 1 to the current l). The face detection area setting unit 11 sets an area obtained by removing the area Al ′ where the detected face image exists from the currently set face detection area Al as the detection area A. Taking the detection results of FIGS. 3 and 4 as an example, the region A1 ′ is a circumscribed rectangle of the face portion that is determined to have been detected and is not designated as an erroneously detected object, and is newly set as the detection region A. The area A2 is an area obtained by removing the area A1 ′ from the currently set area A1. The center of the new detection area A may be designated from the operation unit 10.

S8で新たに設定する検出領域Aの設定の仕方は上記に特に限定されない。例えば、図5に示すように、検出が完了したと判定されかつ誤検出物体に指定されていない2人の人物の顔部分f1、f2が撮影画像横方向Xに並んでいる場合は、さらに略等間隔で別の人物がf1ないしf2の横に並んでいることが推認されるから、顔部分f1ないしf2から横方向Xの距離aだけ隔てた位置X0を中心線mが通りかつ人物の顔の横方向が収まるような幅Wを有する縦方向Yに沿って広がる帯領域Rxを新たな領域Aに設定してもよい。あるいは、図6に示すように、検出が完了したと判定されかつ誤検出物体に指定されていない2人の人物の顔部分f1、f2が撮影画像縦方向Yに並んでいる場合は、f1とf2の間の列に他の人物列が撮影されていると推認されるから、2人の人物f1ないしf2の間を横方向Xに沿って広がる帯領域Ryを新たな領域Aに設定してもよい。   The method of setting the detection area A newly set in S8 is not particularly limited to the above. For example, as shown in FIG. 5, when the face portions f1 and f2 of two persons who are determined to have been detected and are not designated as erroneously detected objects are arranged in the lateral direction X of the captured image, it is further omitted. Since it is presumed that another person is lined up f1 to f2 at equal intervals, the center line m passes through a position X0 separated from the face parts f1 to f2 by a distance a in the horizontal direction X, and the person's face. The band region Rx extending along the vertical direction Y having a width W such that the horizontal direction can be accommodated may be set as a new region A. Alternatively, as shown in FIG. 6, when the face portions f1 and f2 of two persons who are determined to have been detected and are not designated as false detection objects are aligned in the vertical direction Y of the captured image, f1 Since it is presumed that another person row is photographed in the row between f2, the band region Ry extending along the horizontal direction X between the two persons f1 to f2 is set as a new region A. Also good.

S9では、スコア閾値設定部13は、スコア閾値VをV=Vlに設定する。再設定するスコア閾値Vlは、現在設定されているスコア閾値Vよりも小さい値であれば特に限定されない。例えば、スコア閾値Vlは、検出が完了したと判定されかつ誤検出物体と指定されなかった顔部分のスコアを総和し、検出が完了したと判定されかつ誤検出物体と指定されなかった顔部分の数Nよりも大きい数(N+1など)でその総和を割った数とする。そして、処理は再びS4に戻り、新たに設定された領域Aとスコア閾値Vに基づいて顔検出が行われる。   In S9, the score threshold setting unit 13 sets the score threshold V to V = Vl. The score threshold value V1 to be reset is not particularly limited as long as it is a value smaller than the score threshold value V currently set. For example, the score threshold value Vl is the sum of the scores of the face portions that are determined to have been detected and not designated as false detection objects, and the score threshold value Vl The sum is divided by a number larger than the number N (such as N + 1). Then, the process returns to S4 again, and face detection is performed based on the newly set area A and the score threshold value V.

なお、S9においては、顔サイズ閾値設定部14が顔サイズ閾値を再設定してもよい。例えば、検出が完了したと判定されかつ誤検出物体に指定されていない顔部分の平均顔サイズを算出し、そのサイズを顔サイズ上限値あるいは顔サイズ下限値に設定してもよい。あるいは、現在設定されている顔サイズ上限値よりも大きな値を新たな顔サイズ上限値に設定してもよいし、現在設定されている顔サイズ下限値よりも小さな値を新たな顔サイズ下限値に設定してもよい。こうすることで、未検出の顔部分のサイズも絞り込むことができる。   In S9, the face size threshold setting unit 14 may reset the face size threshold. For example, an average face size of a face portion that is determined to have been detected and is not designated as an erroneously detected object may be calculated, and the size may be set as the face size upper limit value or the face size lower limit value. Alternatively, a value larger than the currently set face size upper limit value may be set as a new face size upper limit value, or a value smaller than the currently set face size lower limit value may be set as a new face size lower limit value. May be set. By doing so, the size of the undetected face portion can be narrowed down.

また、ステップS1〜9を処理部20に実行させる顔画像検出プログラムは、記憶部30に記憶されている。顔画像検出プログラムは、CD−ROM、DVD、MOその他のコンピュータ読み取り可能な記録媒体に記録して処理部20に提供してもよい。   A face image detection program that causes the processing unit 20 to execute steps S <b> 1 to S <b> 9 is stored in the storage unit 30. The face image detection program may be recorded on a CD-ROM, DVD, MO, or other computer-readable recording medium and provided to the processing unit 20.

以上説明した通り、顔画像検出装置100は、現在設定されている顔検出領域から顔検出が完了した領域を除いた領域を新たな顔検出領域に再設定し(S8)、かつスコア閾値を現在設定されているスコア閾値Vよりも小さい値に再設定した上で、その顔検出領域について顔検出を行う。撮影画像中の顔部分の未検出領域について、スコア閾値Vを下げて顔検出を繰り返すことで、未検出の顔部分のある領域を絞り込むことができ、撮影画像中に多数の人物が記録されている場合でも顔画像の抽出を短時間で効率良く正確に行うことが可能となる。   As described above, the face image detection apparatus 100 resets an area obtained by removing the area where face detection has been completed from the currently set face detection area as a new face detection area (S8), and sets the score threshold to the current value. After resetting to a value smaller than the set score threshold V, face detection is performed for the face detection area. By reducing the score threshold V and repeating face detection for the undetected area of the face part in the captured image, the area with the undetected face part can be narrowed down, and a large number of persons are recorded in the captured image. Even in such a case, it is possible to extract a face image efficiently and accurately in a short time.

顔画像検出装置の概略機能構成図Schematic functional block diagram of face image detection device 顔検出処理の流れを示すフローチャートFlow chart showing the flow of face detection processing 撮影画像の外観を示す図Figure showing the appearance of the captured image 顔画像の検出結果を示す図The figure which shows the detection result of the face image 縦方向に広がる顔検出領域の一例を示す図The figure which shows an example of the face detection area extended in the vertical direction 横方向に広がる顔検出領域の一例を示す図The figure which shows an example of the face detection area extended in a horizontal direction

符号の説明Explanation of symbols

1:撮影画像入力部、9:表示部、10:操作部、11:顔検出領域設定部、12:スコア算出部、13:スコア閾値設定部、15:顔検出部、16:検出結果判定部、17:検出結果表示部、18:誤検出指示部、19:顔抽出部 1: shot image input unit, 9: display unit, 10: operation unit, 11: face detection area setting unit, 12: score calculation unit, 13: score threshold setting unit, 15: face detection unit, 16: detection result determination unit , 17: detection result display unit, 18: erroneous detection instruction unit, 19: face extraction unit

Claims (4)

人物を記録した撮影画像を入力する撮影画像入力部と、
操作入力を受け付ける操作部と、
前記撮影画像において人物の顔部分を検出する領域である顔検出領域を設定する領域設定部と、
前記設定された顔検出領域において人物の顔部分を検出する検出部と、
前記検出された顔部分の検出の正確さを数値化したスコアを算出する算出部と、
顔部分以外の物体を誤検出したか否かを判定する基準となるスコアの閾値を設定するスコア閾値設定部と、
前記設定された閾値と前記算出されたスコアとを比較し、前記閾値を超えるスコアの顔部分である検出済顔部分を判定する判定部と、
前記検出済顔部分を表示する表示部と、
前記検出済顔部分の中から誤検出された顔部分以外の物体である誤検出物体を前記操作部により指定させる誤検出指定部と、
前記指定された誤検出物体以外の検出済顔部分の位置を記憶する記憶部と、
を備え、
前記領域設定部は、前記検出を繰り返す場合、現在設定されている顔検出領域から前記検出済顔部分の存在する領域を除いた領域を新たな顔検出領域に設定し、
前記スコア閾値設定部は、前記検出を繰り返す場合、現在設定されている閾値未満の値を新たな閾値に設定する顔画像検出装置。
A captured image input unit for inputting a captured image in which a person is recorded;
An operation unit for receiving operation inputs;
An area setting unit for setting a face detection area that is an area for detecting a human face portion in the captured image;
A detection unit for detecting a face portion of a person in the set face detection region;
A calculation unit that calculates a score obtained by quantifying the accuracy of detection of the detected face part;
A score threshold value setting unit for setting a threshold value of a score serving as a reference for determining whether or not an object other than the face part is erroneously detected;
A determination unit that compares the set threshold value with the calculated score and determines a detected face part that is a face part having a score exceeding the threshold value;
A display unit for displaying the detected face part;
An erroneous detection designating unit that causes the operation unit to designate an erroneously detected object that is an object other than the face part erroneously detected from the detected face part;
A storage unit for storing the position of a detected face part other than the designated erroneously detected object;
With
When repeating the detection, the region setting unit sets a region obtained by removing the region where the detected face part exists from the currently set face detection region as a new face detection region,
When the detection is repeated, the score threshold setting unit sets a value less than the currently set threshold as a new threshold.
前記検出部が検出する顔部分のサイズの閾値を設定する顔サイズ閾値設定部をさらに備える請求項1に記載の顔画像検出装置。   The face image detection apparatus according to claim 1, further comprising a face size threshold setting unit configured to set a threshold value of a size of the face portion detected by the detection unit. 人物を記録した撮影画像を入力する撮影画像入力ステップと、
前記撮影画像において人物の顔部分を検出する領域である顔検出領域を設定する領域設定ステップと、
前記設定された顔検出領域において人物の顔部分を検出する検出ステップと、
前記検出された顔部分の検出の正確さを数値化したスコアを算出する算出ステップと、
顔部分以外の物体を誤検出したか否かを判定する基準となるスコアの閾値を設定するスコア閾値設定ステップと、
前記設定された閾値と前記算出されたスコアとを比較し、前記閾値を超えるスコアの顔部分である検出済顔部分を判定する判定ステップと、
前記検出済顔部分を表示する表示ステップと、
前記検出済顔部分の中から誤検出された顔部分以外の物体である誤検出物体を指定させる誤検出指定ステップと、
前記指定された誤検出物体以外の検出済顔部分の位置を記憶する記憶ステップと、
を含み、
前記領域設定ステップは、前記検出を繰り返す場合、現在設定されている顔検出領域から前記検出済顔部分の存在する領域を除いた領域を新たな顔検出領域に設定し、
前記スコア閾値設定ステップは、前記検出を繰り返す場合、現在設定されている閾値未満の値を新たな閾値に設定する顔画像検出方法。
A captured image input step for inputting a captured image in which a person is recorded;
An area setting step for setting a face detection area which is an area for detecting a face portion of a person in the captured image;
A detection step of detecting a face portion of a person in the set face detection area;
A calculation step of calculating a score obtained by quantifying the accuracy of detection of the detected face part;
A score threshold setting step for setting a threshold of a score serving as a reference for determining whether or not an object other than the face portion is erroneously detected;
A determination step of comparing the set threshold value with the calculated score and determining a detected face portion that is a face portion having a score exceeding the threshold value;
A display step for displaying the detected face portion;
An erroneous detection designation step for designating an erroneously detected object that is an object other than the erroneously detected facial part from the detected facial part;
A storage step of storing a position of a detected face part other than the designated erroneously detected object;
Including
In the region setting step, when the detection is repeated, a region obtained by removing the region where the detected face portion exists from the currently set face detection region is set as a new face detection region,
The score threshold setting step is a face image detection method in which, when the detection is repeated, a value less than a currently set threshold is set as a new threshold.
人物を記録した撮影画像を入力する撮影画像入力ステップと、
前記撮影画像において人物の顔部分を検出する領域である顔検出領域を設定する領域設定ステップと、
前記設定された顔検出領域において人物の顔部分を検出する検出ステップと、
前記検出された顔部分の検出の正確さを数値化したスコアを算出する算出ステップと、
顔部分以外の物体を誤検出したか否かを判定する基準となるスコアの閾値を設定するスコア閾値設定ステップと、
前記設定された閾値と前記算出されたスコアとを比較し、前記閾値を超えるスコアの顔部分である検出済顔部分を判定する判定ステップと、
前記検出済顔部分を表示する表示ステップと、
前記検出済顔部分の中から誤検出された顔部分以外の物体である誤検出物体を指定させる誤検出指定ステップと、
前記指定された誤検出物体以外の検出済顔部分の位置を記憶する記憶ステップと、
をコンピュータに実行させ、
前記領域設定ステップは、前記検出を繰り返す場合、現在設定されている顔検出領域から前記検出済顔部分の存在する領域を除いた領域を新たな顔検出領域に設定し、
前記スコア閾値設定ステップは、前記検出を繰り返す場合、現在設定されている閾値未満の値を新たな閾値に設定する顔画像検出プログラム。

A captured image input step for inputting a captured image in which a person is recorded;
An area setting step for setting a face detection area which is an area for detecting a face portion of a person in the captured image;
A detection step of detecting a face portion of a person in the set face detection area;
A calculation step of calculating a score obtained by quantifying the accuracy of detection of the detected face part;
A score threshold setting step for setting a threshold of a score serving as a reference for determining whether or not an object other than the face portion is erroneously detected;
A determination step of comparing the set threshold value with the calculated score and determining a detected face portion that is a face portion having a score exceeding the threshold value;
A display step for displaying the detected face portion;
An erroneous detection designation step for designating an erroneously detected object that is an object other than the erroneously detected facial part from the detected facial part;
A storage step of storing a position of a detected face part other than the designated erroneously detected object;
To the computer,
In the region setting step, when the detection is repeated, a region obtained by removing the region where the detected face portion exists from the currently set face detection region is set as a new face detection region,
In the score threshold setting step, when the detection is repeated, a face image detection program that sets a value less than the currently set threshold as a new threshold.

JP2004275862A 2004-09-22 2004-09-22 Apparatus for detecting face image, method for detecting face image, and program for detecting face image Pending JP2006092191A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2004275862A JP2006092191A (en) 2004-09-22 2004-09-22 Apparatus for detecting face image, method for detecting face image, and program for detecting face image

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2004275862A JP2006092191A (en) 2004-09-22 2004-09-22 Apparatus for detecting face image, method for detecting face image, and program for detecting face image

Publications (1)

Publication Number Publication Date
JP2006092191A true JP2006092191A (en) 2006-04-06

Family

ID=36233101

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2004275862A Pending JP2006092191A (en) 2004-09-22 2004-09-22 Apparatus for detecting face image, method for detecting face image, and program for detecting face image

Country Status (1)

Country Link
JP (1) JP2006092191A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008141617A (en) * 2006-12-04 2008-06-19 Fujifilm Corp Photographing apparatus, face detection method thereof and image recording method
JP2011078143A (en) * 2011-01-19 2011-04-14 Fujifilm Corp Photographing apparatus, face detecting method thereof and image recording method
US8139136B2 (en) 2008-06-24 2012-03-20 Casio Computer Co., Ltd. Image pickup apparatus, control method of image pickup apparatus and image pickup apparatus having function to detect specific subject
JP2012100183A (en) * 2010-11-05 2012-05-24 Seiko Epson Corp Image processing device and image processing method
JP2018159976A (en) * 2017-03-22 2018-10-11 株式会社東芝 Information processing apparatus, method, and program
JP7218421B1 (en) 2021-12-10 2023-02-06 レノボ・シンガポール・プライベート・リミテッド Electronic device and control method

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008141617A (en) * 2006-12-04 2008-06-19 Fujifilm Corp Photographing apparatus, face detection method thereof and image recording method
JP4697549B2 (en) * 2006-12-04 2011-06-08 富士フイルム株式会社 Image capturing apparatus and face detection method thereof
US8139136B2 (en) 2008-06-24 2012-03-20 Casio Computer Co., Ltd. Image pickup apparatus, control method of image pickup apparatus and image pickup apparatus having function to detect specific subject
JP2012100183A (en) * 2010-11-05 2012-05-24 Seiko Epson Corp Image processing device and image processing method
JP2011078143A (en) * 2011-01-19 2011-04-14 Fujifilm Corp Photographing apparatus, face detecting method thereof and image recording method
JP2018159976A (en) * 2017-03-22 2018-10-11 株式会社東芝 Information processing apparatus, method, and program
JP7218421B1 (en) 2021-12-10 2023-02-06 レノボ・シンガポール・プライベート・リミテッド Electronic device and control method
JP2023086523A (en) * 2021-12-10 2023-06-22 レノボ・シンガポール・プライベート・リミテッド Electronic apparatus and control method

Similar Documents

Publication Publication Date Title
US8358838B2 (en) Red eye detecting apparatus, red eye detecting method and red eye detecting program stored on a computer readable medium
US10007846B2 (en) Image processing method
US20110273474A1 (en) Image display apparatus and image display method
JP2006155563A (en) Motion analyzer
KR20140029222A (en) Gesture recognition device, control method thereof and display device and control recording medium of recording program
KR20100075167A (en) Apparatus and method for capturing digital image using face recognition function
JP5247569B2 (en) Person tracking device, person tracking method and program
JP2007233871A (en) Image processor, control method for computer, and program
JP6969878B2 (en) Discriminator learning device and discriminator learning method
JP2013215549A (en) Image processing device, image processing program, and image processing method
US8861857B2 (en) Image processing apparatus and image processing method
JP2011089784A (en) Device for estimating direction of object
JP4659722B2 (en) Human body specific area extraction / determination device, human body specific area extraction / determination method, human body specific area extraction / determination program
JP2006092191A (en) Apparatus for detecting face image, method for detecting face image, and program for detecting face image
JP4717445B2 (en) Image processing system, image processing device, game device, program, information storage medium, and image processing method
US9727145B2 (en) Detecting device and detecting method
JPWO2020008576A1 (en) Judgment method, judgment program and information processing device
JP2008299834A (en) Photographic subject tracking program and photographic subject tracking device
US10410044B2 (en) Image processing apparatus, image processing method, and storage medium for detecting object from image
JP2013041553A (en) Image processing apparatus, image processing method, and image processing program
JP4487247B2 (en) Human image search device
JP4972013B2 (en) Information presenting apparatus, information presenting method, information presenting program, and recording medium recording the program
US10922864B2 (en) Image processing device, image processing method and program, for object detection in an image
JP2010146581A (en) Person&#39;s image retrieval device
JP7253872B2 (en) Information processing device, information processing method, and program

Legal Events

Date Code Title Description
A711 Notification of change in applicant

Free format text: JAPANESE INTERMEDIATE CODE: A712

Effective date: 20070105