JP4708250B2 - Red-eye correction processing system, red-eye correction processing method, and red-eye correction processing program - Google Patents

Red-eye correction processing system, red-eye correction processing method, and red-eye correction processing program Download PDF

Info

Publication number
JP4708250B2
JP4708250B2 JP2006104874A JP2006104874A JP4708250B2 JP 4708250 B2 JP4708250 B2 JP 4708250B2 JP 2006104874 A JP2006104874 A JP 2006104874A JP 2006104874 A JP2006104874 A JP 2006104874A JP 4708250 B2 JP4708250 B2 JP 4708250B2
Authority
JP
Japan
Prior art keywords
red
eye
correction
image
unit
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.)
Active
Application number
JP2006104874A
Other languages
Japanese (ja)
Other versions
JP2007281847A (en
Inventor
尚史 松下
淳 榎本
杭 傅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Fujifilm Corp
Original Assignee
Fujifilm 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 Fujifilm Corp filed Critical Fujifilm Corp
Priority to JP2006104874A priority Critical patent/JP4708250B2/en
Publication of JP2007281847A publication Critical patent/JP2007281847A/en
Application granted granted Critical
Publication of JP4708250B2 publication Critical patent/JP4708250B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Image Processing (AREA)
  • Facsimile Image Signal Circuits (AREA)
  • Color Image Communication Systems (AREA)
  • Image Analysis (AREA)

Description

本発明は、赤目補正処理システム、赤目補正処理方法、および赤目補正処理プログラムに関する。特に、本発明は、インデックスプリントを作成する赤目補正処理システム、赤目補正処理方法、および赤目補正処理プログラムに関する。   The present invention relates to a red-eye correction processing system, a red-eye correction processing method, and a red-eye correction processing program. In particular, the present invention relates to a red-eye correction processing system, a red-eye correction processing method, and a red-eye correction processing program for creating an index print.

撮像時にストロボを用いる場合には、人物の瞳孔が赤色に写る赤目現象または金色に写る金目現象が起こる場合がある。赤目現象または金目現象が発生すると、撮像された被写体の写り栄えがよいとはいえないので、これら赤目または金目を、自然な瞳孔の色に修正する様々な画像処理方法が提案されている。例えば、ユーザに色調不良となった目の画像を含む処理対象領域を指定させ、指定された処理対象領域の色相、彩度、および明度から得られる色の値に基づいて、目の瞳部分に赤目修正処理を施す方法が提案されている(例えば、特許文献1参照。)。また、撮像した画像にストロボ情報、Ev値、シャッター速度、および絞り値等の撮影情報を付加しておき、赤目が発生している可能性があると判断された画像についてだけ赤目修正処理を施す方法が提案されている(例えば、特許文献4参照。)。そして、複数の画像に施した画像処理の内容を識別することを目的として、画像に画像処理の内容を示す文字等を付加したインデックスプリントを作成するシステムについて提案されている(例えば、特許文献6参照。)。   When a strobe is used at the time of imaging, a red-eye phenomenon in which a human pupil appears in red or a gold-eye phenomenon in which gold appears in gold may occur. When the red-eye phenomenon or the gold-eye phenomenon occurs, it cannot be said that the photographed subject looks good. Therefore, various image processing methods for correcting these red-eye or gold-eye to natural pupil colors have been proposed. For example, the user is allowed to specify a processing target area including an image of an eye with poor color tone, and based on the color value obtained from the hue, saturation, and brightness of the specified processing target area, A method of performing red-eye correction processing has been proposed (see, for example, Patent Document 1). In addition, shooting information such as strobe information, Ev value, shutter speed, and aperture value is added to the captured image, and red-eye correction processing is performed only on an image that is determined to have a possible red eye. A method has been proposed (see, for example, Patent Document 4). In order to identify the contents of image processing performed on a plurality of images, a system for creating an index print in which characters indicating the contents of image processing are added to images has been proposed (for example, Patent Document 6). reference.).

なお、画像から人物の顔が含まれる候補領域を抽出した後に、抽出した候補領域を複数の小領域に分割して、複数の小領域の特徴量を予め設定した顔領域パターンと照合することにより顔領域を抽出する方法(例えば、特許文献2参照。)、画像から人物の顔領域を抽出して、抽出した顔領域の色の濃度が所定の閾値に対応する場合に、人物の胴体の候補となる領域を抽出して、顔、または胴体の領域の濃度および彩度を用いて顔領域の確度(抽出した領域が顔画像であることの確からしさ)を評価することにより、顔領域を抽出する方法(例えば、特許文献3参照。)、および画像から複数の顔候補領域を抽出して、抽出した複数の顔候補領域の重複度から確度を評価して顔領域を抽出する方法が提案されている(例えば、特許文献5参照。)。
特開2000−76427号公報 特開2000−137788号公報 特開2000−148980号公報 特開2004−145287号公報 特開2000−149018号公報 特開平11−341256号公報
In addition, after extracting a candidate area including a human face from an image, the extracted candidate area is divided into a plurality of small areas, and the feature amounts of the plurality of small areas are collated with a preset face area pattern. A method for extracting a face area (see, for example, Patent Document 2), a human face area extracted from an image, and a human body candidate when the color density of the extracted face area corresponds to a predetermined threshold The face area is extracted by evaluating the accuracy of the face area (the likelihood that the extracted area is a face image) using the density and saturation of the face or torso area. And a method of extracting a plurality of face candidate regions from an image and evaluating the accuracy from the degree of overlap of the extracted plurality of face candidate regions to extract a face region. (For example, see Patent Document 5) ).
JP 2000-76427 A JP 2000-137788 A JP 2000-148980 A JP 2004-145287 A JP 2000-149018 A Japanese Patent Laid-Open No. 11-341256

しかしながら、特許文献5に記載の発明において出力されるインデックスプリントにおいては、例えば、画像に施された画像処理が赤目修正処理である場合において、原画像に含まれる赤目の種類(赤目、金目、および黒目等の種類)にかかわらず、赤目修正処理を画像に施したか否かを示す情報だけを出力する。したがって、ユーザは、インデックスプリントを参照しても、原画像に含まれていた赤目修正対象の目がいかなる目であったのか判断することができない場合がある。   However, in the index print output in the invention described in Patent Document 5, for example, when the image processing performed on the image is a red-eye correction processing, the type of red-eye (red-eye, gold-eye, and Regardless of the type (such as black eye), only the information indicating whether or not the red-eye correction process has been applied to the image is output. Therefore, even if the user refers to the index print, the user may not be able to determine what eye the red-eye correction target eye included in the original image was.

そこで本発明は、上記課題を解決することができる赤目補正処理システム、赤目補正処理方法、および赤目補正処理プログラムを提供することを目的とする。この目的は特許請求の範囲における独立項に記載の特徴の組み合わせにより達成される。また従属項は本発明の更なる有利な具体例を規定する。   Accordingly, an object of the present invention is to provide a red-eye correction processing system, a red-eye correction processing method, and a red-eye correction processing program that can solve the above-described problems. This object is achieved by a combination of features described in the independent claims. The dependent claims define further advantageous specific examples of the present invention.

上記課題を解決するために、本発明の第1の形態においては、赤目補正処理システムであって、複数の画像を入力する画像入力部と、画像入力部が入力した複数の画像のそれぞれに含まれる赤目を検出する赤目検出部と、赤目検出部が検出した赤目に赤目修正処理を施す赤目修正部と、赤目修正部による赤目修正処理の修正度合が予め定められた所定の修正度合より大きいか否かを判断する修正度合判断部と、赤目検出部によって赤目が検出されなかった画像については赤目修正処理が施されていない画像を出力し、赤目検出部によって赤目が検出された画像については赤目修正処理が施された画像を出力する画像出力部と、画像出力部が出力する画像のうちで、所定の修正度合より大きい赤目修正処理が施された画像には赤目補正処理が施されたことを示す情報を画像に対応づけて出力し、所定の修正度合より小さい赤目修正処理が施された画像には赤目修正処理が施されたことを示す情報を画像に対応づけて出力しない修正結果出力部とを備える。   In order to solve the above problems, in the first embodiment of the present invention, a red-eye correction processing system includes an image input unit that inputs a plurality of images and a plurality of images that are input by the image input unit. The red-eye detection unit for detecting the red eye, the red-eye correction unit for performing the red-eye correction process detected by the red-eye detection unit, and whether the correction degree of the red-eye correction process by the red-eye correction unit is greater than a predetermined correction level A correction degree determination unit that determines whether or not a red-eye is not detected by the red-eye detection unit, an image that has not been subjected to red-eye correction processing is output, and a red-eye that is detected by the red-eye detection unit Of the images output by the image output unit that outputs the corrected image and the images output by the image output unit, red-eye correction processing is performed on an image that has been subjected to red-eye correction processing that is greater than a predetermined correction degree. Information indicating that the red-eye correction processing has been performed is not output in association with the image. A correction result output unit.

また、赤目検出部が検出した赤目修正前の赤目の色を示す情報である修正前色情報を取得する赤目色情報取得部をさらに備え、修正度合判断部は、赤目色情報取得部が取得した修正前色情報に基づいて、赤目修正部による赤目修正処理の修正度合が予め定められた所定の修正度合より大きいか否かを判断してもよい。また、赤目色情報取得部は、前記赤目修正部が赤目修正処理を施した後の赤目の色を示す情報である修正後色情報をさらに取得し、修正度合判断部は、赤目色情報取得部が取得した修正前色情報と修正後色情報とを比較して、修正後色情報が示す色の修正前色情報が示す色からの変化量が予め定められた範囲内に含まれる場合に、前記赤目修正部の赤目修正処理による修正度合が所定の修正度合より小さいと判断してもよい。   Further, the image processing apparatus further includes a red-eye color information acquisition unit that acquires pre-correction color information that is information indicating the red-eye color before red-eye correction detected by the red-eye detection unit, and the correction degree determination unit is acquired by the red-eye color information acquisition unit Based on the pre-correction color information, it may be determined whether the correction degree of the red-eye correction process by the red-eye correction unit is greater than a predetermined correction degree. The red-eye color information acquisition unit further acquires post-correction color information that is information indicating the color of the red eye after the red-eye correction unit has performed the red-eye correction process, and the correction degree determination unit includes a red-eye color information acquisition unit When the pre-correction color information acquired and the post-correction color information are compared, and the amount of change from the color indicated by the pre-correction color information of the color indicated by the post-correction color information is included within a predetermined range, You may determine that the correction degree by the red eye correction process of the red eye correction unit is smaller than a predetermined correction degree.

そして、赤目色情報取得部は、赤目検出部が検出した赤目修正前の赤目の領域内の色バランスを示す情報を修正前色情報として取得し、修正度合判断部は、修正前色情報が示す色バランスが予め定められたバランスの場合に、赤目修正部の赤目修正処理による修正度合が所定の修正度合より小さいと判断してもよい。また、赤目検出部は、検出した赤目の領域の大きさを示す赤目領域情報をさらに取得し、修正度合判断部は、赤目検出部が取得した赤目領域情報に基づいて、赤目修正部による赤目修正処理の修正度合が予め定められた所定の修正度合より大きいか否かを判断してもよい。また、赤目検出部は、検出した赤目の画像における位置を示す赤目位置情報をさらに取得し、修正度合判断部は、赤目検出部が取得した赤目位置情報に基づいて、赤目修正部による赤目修正処理の修正度合が予め定められた所定の修正度合より大きいか否かを判断してもよい。   The red-eye color information acquisition unit acquires information indicating the color balance in the red-eye region before red-eye correction detected by the red-eye detection unit as pre-correction color information, and the correction degree determination unit indicates the pre-correction color information. When the color balance is a predetermined balance, it may be determined that the correction degree by the red-eye correction process of the red-eye correction unit is smaller than the predetermined correction degree. The red-eye detection unit further acquires red-eye region information indicating the size of the detected red-eye region, and the correction degree determination unit is based on the red-eye region information acquired by the red-eye detection unit and corrects the red-eye by the red-eye correction unit. It may be determined whether or not the processing correction degree is greater than a predetermined correction degree. Further, the red-eye detection unit further acquires red-eye position information indicating a position in the detected red-eye image, and the correction degree determination unit is based on the red-eye position information acquired by the red-eye detection unit, and the red-eye correction processing by the red-eye correction unit It may be determined whether the correction degree is greater than a predetermined correction degree.

また、画像入力部が入力した複数の画像のそれぞれに含まれる黒目を検出する黒目検出部を更に備え、修正度合判断部は、赤目検出部が検出した赤目と同一の位置に黒目検出部が黒目を検出した場合に、赤目修正部の赤目修正処理による修正度合が所定の修正度合より小さいと判断してもよい。更に、赤目検出部は、複数の画像のそれぞれに含まれる赤目候補と赤目のテンプレート画像とをマッチングして、予め定められた第1のマッチング度以上の赤目候補を赤目として検出し修正度合判断部は、第1のマッチング度より大きい予め定められた第2のマッチング度より小さい赤目に赤目修正部が赤目修正処理を施した場合に、赤目修正部による赤目修正処理の修正度合が所定の修正度合よりも小さいと判断してもよい。   The image input unit further includes a black eye detection unit that detects black eyes included in each of the plurality of images input, and the correction degree determination unit includes the black eye detection unit at the same position as the red eye detected by the red eye detection unit. May be determined that the correction degree by the red-eye correction process of the red-eye correction unit is smaller than a predetermined correction degree. Furthermore, the red-eye detection unit matches a red-eye candidate and a red-eye template image included in each of the plurality of images, detects a red-eye candidate having a predetermined first matching degree or more as a red-eye, and a correction degree determination unit When the red-eye correction unit performs red-eye correction processing with a red eye smaller than a predetermined second matching level that is larger than the first matching degree, the correction degree of the red-eye correction processing by the red-eye correction unit is a predetermined correction degree. You may judge that it is smaller than.

そして、画像入力部が入力した画像が、ストロボが発光されているときに撮像されたか否かを判断する撮像条件判断部を更に備え、修正度合判断部は、撮像条件判断部によってストロボが発光されていないときに撮像されたと判断された画像についての修正度合を、所定の修正度合よりも小さいと判断してもよい。また、撮像条件判断部は、画像入力部が入力した画像に含まれる被写体の輝度が、予め定められた値以上であるか否かを判断し、修正度合判断部は、撮像条件判断部によって被写体の輝度が予め定められた値以上であると判断された画像についての修正度合を、所定の修正度合よりも小さいと判断してもよい。また、撮像条件判断部は、画像入力部が入力した画像の撮像時の撮像装置から被写体までの距離が予め定められた範囲内にあるか否かを判断し、修正度合判断部は、撮像条件判断部によって距離が予め定められた範囲内にないと判断された画像についての修正度合を、所定の修正度合よりも小さいと判断してもよい。   The image input unit further includes an imaging condition determination unit that determines whether or not the image input when the strobe is fired. The correction degree determination unit emits the strobe light by the imaging condition determination unit. It may be determined that the correction degree of the image that is determined to have been captured when the image is not captured is smaller than a predetermined correction degree. The imaging condition determining unit determines whether or not the luminance of the subject included in the image input by the image input unit is equal to or higher than a predetermined value. It may be determined that the correction degree of the image for which the luminance of the image is determined to be equal to or higher than a predetermined value is smaller than the predetermined correction degree. The imaging condition determination unit determines whether or not the distance from the imaging device to the subject at the time of imaging of the image input by the image input unit is within a predetermined range. The degree of correction of an image for which the distance is determined not to be within a predetermined range by the determination unit may be determined to be smaller than a predetermined correction degree.

また、撮像条件判断部は、画像入力部が入力した画像の撮像時の光源情報から画像が室内で撮像されたか否かを判断し、修正度合判断部は、撮像条件判断部によって画像が室内で撮像されたと判断した画像についての修正度合を、所定の修正度合よりも大きいと判断してもよい。更に、撮像条件判断部は、画像入力部が入力した画像の撮像時の撮像モードがポートレートモードまたは夜景モードであるか否かを判断し、修正度合判断部は、撮像条件判断部によって画像がポートレートモードまたは夜景モードで撮像されたと判断された画像についての修正度合を、所定の修正度合よりも大きいと判断してもよい。そして、撮像条件判断部は、画像入力部が入力した画像に赤目修正処理が施されているか否かを判断し、修正度合判断部は、撮像条件判断部によって画像に赤目修正処理が施されていると判断された画像についての修正度合を、所定の修正度合よりも小さいと判断してもよい。   The imaging condition determination unit determines whether the image is captured indoors from light source information at the time of imaging of the image input by the image input unit, and the correction degree determination unit determines whether the image is captured indoors by the imaging condition determination unit. You may determine that the correction degree about the image judged to be imaged is larger than a predetermined correction degree. Further, the imaging condition determination unit determines whether the imaging mode at the time of imaging of the image input by the image input unit is the portrait mode or the night view mode, and the correction degree determination unit determines whether the image is captured by the imaging condition determination unit. You may determine that the correction degree about the image determined to be imaged in portrait mode or night view mode is larger than a predetermined correction degree. The imaging condition determination unit determines whether the image input by the image input unit is subjected to red-eye correction processing, and the correction degree determination unit performs the red-eye correction processing on the image by the imaging condition determination unit. It may be determined that the correction degree of the image determined to be smaller than a predetermined correction degree.

また、本発明の第2の形態においては、赤目修正処理を画像に施す赤目補正処理方法であって、複数の画像を入力する画像入力段階と、画像入力段階において入力された複数の画像のそれぞれに含まれる赤目を検出する赤目検出段階と、赤目検出段階において検出された赤目に赤目修正処理を施す赤目修正段階と、赤目修正段階による赤目修正処理の修正度合が予め定められた所定の修正度合より大きいか否かを判断する修正度合判断段階と、赤目検出段階において赤目が検出されなかった画像については赤目修正処理が施されていない画像を出力し、赤目検出段階において赤目が検出された画像については赤目修正処理が施された画像を出力する画像出力段階と、画像出力段階において出力される画像のうちで、所定の修正度合より大きい赤目修正処理が施された画像には赤目補正処理が施されたことを示す情報を画像に対応づけて出力させ、所定の修正度合より小さい赤目修正処理が施された画像には赤目修正処理が施されたことを示す情報を画像に対応づけて出力させない修正結果出力段階とを備える。   Further, in the second embodiment of the present invention, a red-eye correction processing method for performing red-eye correction processing on an image, each of an image input stage for inputting a plurality of images and a plurality of images input in the image input stage A red-eye detection stage for detecting red eyes, a red-eye correction stage for performing red-eye correction processing detected in the red-eye detection stage, and a predetermined correction degree for which the correction degree of the red-eye correction processing by the red-eye correction stage is predetermined. An image that has not been subjected to red-eye correction processing is output for an image in which the red-eye is not detected in the correction degree determination stage for determining whether or not the red-eye is detected in the red-eye detection stage, and an image in which red-eye is detected in the red-eye detection stage The image output stage for outputting the image subjected to the red-eye correction process, and the image output in the image output stage is larger than a predetermined correction degree. Information indicating that red-eye correction processing has been performed is output for an image subjected to eye correction processing in association with the image, and red-eye correction processing is performed on an image that has undergone red-eye correction processing that is less than a predetermined correction degree. A correction result output stage that does not output information indicating that it has been applied in association with an image.

また、本発明の第3の形態においては、赤目修正処理を画像に施す赤目補正処理システム用の赤目補正処理プログラムであって、赤目補正処理システムを、複数の画像を入力する画像入力部、画像入力部が入力した複数の画像のそれぞれに含まれる赤目を検出する赤目検出部、赤目検出部が検出した赤目に赤目修正処理を施す赤目修正部、赤目修正部による赤目修正処理の修正度合が予め定められた所定の修正度合より大きいか否かを判断する修正度合判断部、赤目検出部によって赤目が検出されなかった画像については赤目修正処理が施されていない画像を出力し、赤目検出部によって赤目が検出された画像については赤目修正処理が施された画像を出力する画像出力部、画像出力部が出力する画像のうちで、所定の修正度合より大きい赤目修正処理が施された画像には赤目補正処理が施されたことを示す情報を画像に対応づけて出力し、所定の修正度合より小さい赤目修正処理が施された画像には赤目修正処理が施されたことを示す情報を画像に対応づけて出力しない修正結果出力部として機能させる。   According to a third aspect of the present invention, there is provided a red-eye correction processing program for a red-eye correction processing system that performs red-eye correction processing on an image. The red-eye correction processing system includes an image input unit that inputs a plurality of images, an image A red-eye detection unit that detects red-eye included in each of a plurality of images input by the input unit, a red-eye correction unit that performs red-eye correction processing detected by the red-eye detection unit, and a correction degree of red-eye correction processing by the red-eye correction unit in advance A correction degree determination unit that determines whether or not a predetermined correction degree is greater than a predetermined correction degree, and outputs an image that has not been subjected to red-eye correction processing for an image that has not been detected by the red-eye detection unit. For an image in which red-eye is detected, an image output unit that outputs an image subjected to red-eye correction processing, and an image that is output from the image output unit has a red value that is greater than a predetermined correction level. Information indicating that red-eye correction processing has been performed is output to the image subjected to correction processing in association with the image, and red-eye correction processing is performed on an image that has been subjected to red-eye correction processing that is less than a predetermined correction degree. It is made to function as a correction result output part which does not output the information which shows having been made corresponding to an image.

なお、上記の発明の概要は、本発明の必要な特徴の全てを列挙したものではなく、これらの特徴群のサブコンビネーションもまた、発明となりうる。   The above summary of the invention does not enumerate all the necessary features of the present invention, and sub-combinations of these feature groups can also be the invention.

本発明によれば、赤目修正処理の度合に応じて赤目修正結果の表示の有無を決定したり、赤目修正結果に原画像の目の情報を付加したりすることができる。   According to the present invention, it is possible to determine whether to display a red-eye correction result according to the degree of red-eye correction processing, or to add eye information of the original image to the red-eye correction result.

以下、発明の実施の形態を通じて本発明を説明するが、以下の実施形態は特許請求の範囲にかかる発明を限定するものではなく、また実施形態の中で説明されている特徴の組み合わせの全てが発明の解決手段に必須であるとは限らない。   Hereinafter, the present invention will be described through embodiments of the invention. However, the following embodiments do not limit the invention according to the scope of claims, and all combinations of features described in the embodiments are included. It is not necessarily essential for the solution of the invention.

図1は、本発明の一実施形態に係る赤目補正処理システム10の概要を示す。受付機12、画像処理装置14、プリンタ16、およびパーソナルコンピュータ18は赤目補正処理システム10の一例である。本実施形態に係る赤目補正処理システム10は、インデックスプリントを出力する場合において、画像に施した赤目修正処理の度合が所定の度合以上である場合に赤目修正処理を施した旨を示す情報を出力する一方で、画像に施した赤目修正処理の度合が所定の度合以下である場合には、赤目修正処理を施した旨を示す情報を出力しないことを目的とする。また、本実施形態に係る赤目補正処理システム10は、インデックスプリントを出力する場合において、原画像に含まれる赤目修正対象の目がいかなる種類の目であったかを示す情報を出力することを目的とする。   FIG. 1 shows an overview of a red-eye correction processing system 10 according to an embodiment of the present invention. The accepting device 12, the image processing device 14, the printer 16, and the personal computer 18 are examples of the red-eye correction processing system 10. When outputting an index print, the red-eye correction processing system 10 according to the present embodiment outputs information indicating that red-eye correction processing has been performed when the degree of red-eye correction processing performed on an image is equal to or greater than a predetermined level. On the other hand, when the degree of the red-eye correction process performed on the image is equal to or less than the predetermined degree, the object is to not output information indicating that the red-eye correction process has been performed. In addition, the red-eye correction processing system 10 according to the present embodiment is intended to output information indicating what kind of eye the red-eye correction target included in the original image is when an index print is output. .

本実施形態に係る赤目補正処理システム10は、ユーザから画像データを受け取る。そして、赤目補正処理システム10は、ユーザから受け取った画像データが示す画像に対して赤目修正処理を施す。ここで、赤目には赤目の他に金目を含んでいてもよい。なお、赤目補正処理システム10は、画像に赤目修正処理を施すべき目が含まれていない場合には、赤目修正処理を画像に施さない。続いて、赤目補正処理システム10は、入力された画像に含まれる目に関する情報と、赤目修正処理が施された後の画像に含まれる目に関する情報とを取得して、取得した情報を比較する。そして、赤目補正処理システム10は、比較結果に基づいて、赤目修正処理の修正度合を判断する。赤目補正処理システム10は、赤目修正処理を施された画像を出力するときに、赤目修正処理の修正度合に応じたマーク等を画像に付加する。   The red-eye correction processing system 10 according to the present embodiment receives image data from a user. Then, the red-eye correction processing system 10 performs red-eye correction processing on the image indicated by the image data received from the user. Here, the red eye may include a gold eye in addition to the red eye. Note that the red-eye correction processing system 10 does not perform the red-eye correction process on the image when the image does not include an eye to be subjected to the red-eye correction process. Subsequently, the red-eye correction processing system 10 acquires the information about the eyes included in the input image and the information about the eyes included in the image after the red-eye correction processing, and compares the acquired information. . Then, the red-eye correction processing system 10 determines the correction degree of the red-eye correction process based on the comparison result. When the red-eye correction processing system 10 outputs an image subjected to red-eye correction processing, the red-eye correction processing system 10 adds a mark or the like according to the correction degree of the red-eye correction processing to the image.

例えば、赤目補正処理システム10は、入力された画像に含まれる目に関する情報と、赤目修正処理を施された後の画像に含まれる目に関する情報とを比較した結果から、入力された画像に対して施された赤目修正処理が所定の修正度合よりも大きい場合に、出力する画像に赤目修正処理が施された旨を示すマーク等を付加する。一方、赤目補正処理システム10は、入力された画像に含まれる目に関する情報と、赤目修正処理を施された後の画像に含まれる目に関する情報とを比較した結果から、入力された画像に対して施された赤目修正処理が所定の修正度合よりも小さい場合には、出力する画像にマーク等を付加しない。すなわち、赤目補正処理システム10は、画像に含まれる赤目が、一見すると赤目と判別できない赤目であっても赤目修正処理を施してよいが、係る場合においては、赤目修正処理を施した旨を示すマーク等を、出力する画像に付加しない。また、赤目補正処理システム10は、入力された画像に付帯されているタグ情報を解析して、画像が撮像されたときの撮像条件に基づいて、画像に施された赤目修正処理の度合が所定の修正度合よりも大きいか否かを判断してもよい。そして、赤目補正処理システム10は、タグ情報の解析結果から判断した結果に基づいて、画像に所定のマーク等を付加してもよい。   For example, the red-eye correction processing system 10 compares the information related to the eyes included in the input image with the information related to the eyes included in the image after the red-eye correction processing is performed on the input image. When the red-eye correction process performed in this way is larger than a predetermined correction level, a mark indicating that the red-eye correction process has been performed is added to the output image. On the other hand, the red-eye correction processing system 10 compares the information related to the eyes included in the input image with the information related to the eyes included in the image after the red-eye correction process. If the red-eye correction process performed in step S3 is smaller than a predetermined correction level, no mark or the like is added to the output image. In other words, the red-eye correction processing system 10 may perform the red-eye correction process even if the red-eye included in the image cannot be distinguished from the red-eye at first glance. In such a case, the red-eye correction processing system 10 indicates that the red-eye correction process has been performed. Do not add marks or the like to the output image. Further, the red-eye correction processing system 10 analyzes the tag information attached to the input image, and the degree of red-eye correction processing applied to the image is predetermined based on the imaging conditions when the image is captured. It may be determined whether or not the degree of correction is greater than. Then, the red-eye correction processing system 10 may add a predetermined mark or the like to the image based on the result determined from the analysis result of the tag information.

更に、赤目補正処理システム10は赤目修正処理を施した後の画像を出力するときに、出力する画像に、入力された画像に含まれる目に関する情報を示すマーク等を付加してもよい。また、赤目補正処理システム10は、赤目修正処理を画像に施したときの処理ルーチンを識別する情報に対応するマーク等を、赤目修正処理を施した後の画像を出力するときに、当該画像に付加してよい。なお、処理ルーチンは、赤目補正処理システム10が画像に施す修正処理の一例である。例えば、赤目補正処理システム10は、画像に含まれる目が金目であった場合に、当該金目に施した修正処理ルーチンが金目修正処理である旨を示すマーク等を画像に付加して出力してよい。なお、処理ルーチンは、赤目修正処理を画像に施すときの赤目修正処理ルーチン、または、金目修正処理を画像に施すときの金目修正処理ルーチン、若しくは、画像から目の領域である目領域を検出するときに目を含む顔領域を検出する顔検出処理ルーチン等であってよい。   Further, when the red-eye correction processing system 10 outputs the image after the red-eye correction processing, a mark or the like indicating information about the eyes included in the input image may be added to the output image. The red-eye correction processing system 10 adds a mark or the like corresponding to information for identifying a processing routine when the red-eye correction process is performed on the image to the image after the red-eye correction process is output. May be added. The processing routine is an example of a correction process that the red-eye correction processing system 10 performs on an image. For example, when the eye included in the image is a gold eye, the red-eye correction processing system 10 adds a mark or the like indicating that the correction processing routine applied to the gold eye is a gold eye correction process, and outputs the image. Good. The processing routine detects a red-eye correction processing routine when the red-eye correction processing is performed on the image, a gold-eye correction processing routine when the gold-eye correction processing is performed on the image, or an eye region that is an eye region from the image. It may be a face detection processing routine that detects a face area that sometimes includes eyes.

なお、赤目補正処理システム10は、赤目修正処理を施した後の画像にマーク等を付加して、例えば、インデックスプリントとして出力してよい。また、赤目補正処理システム10がモニタ等の表示部を有している場合には、表示部にマーク等を付加した画像を表示してもよい。また、赤目補正処理システム10は、マーク等を付加した画像をDVD等の記録媒体に記録させてもよい。更に、赤目補正処理システム10は、紙媒体等にマーク等を付加した画像を印刷して出力してもよい。なお、受付機12、画像処理装置14、プリンタ16、およびパーソナルコンピュータ18のいずれの機器においても、マーク等を付加した画像を出力してよい。   Note that the red-eye correction processing system 10 may add a mark or the like to the image after the red-eye correction processing and output it as an index print, for example. When the red-eye correction processing system 10 has a display unit such as a monitor, an image with a mark or the like added to the display unit may be displayed. Further, the red-eye correction processing system 10 may record an image with a mark or the like on a recording medium such as a DVD. Further, the red-eye correction processing system 10 may print and output an image in which a mark or the like is added to a paper medium or the like. Note that an image to which a mark or the like is added may be output from any of the receiving machine 12, the image processing apparatus 14, the printer 16, and the personal computer 18.

例えば、店舗等に設置された受付機12においてユーザから画像データを取得する。画像データを取得した受付機12は、受付機12において画像に赤目修正処理を施してよい。そして、受付機12は、画像に所定のマーク等を付加して受付機12のモニタに画像を表示してよい。また、受付機12は、取得した画像に対して赤目修正処理を施さずに、取得した画像データを画像処理装置14に送信してもよい。そして、画像データを受け取った画像処理装置14において、画像に赤目修正処理を施してもよい。続いて、画像処理装置14において、所定のマーク等を付加した画像を出力してもよい。また、画像処理装置14は、プリンタ16に所定のマーク等を付加した画像データを送信して画像を出力させてもよい。また、ユーザが所有するパーソナルコンピュータ18に画像データが入力された場合には、画像処理装置14は、ネットワークを介してパーソナルコンピュータ18に入力された画像データを取得する。そして、画像処理装置14において、取得した画像に対して赤目修正処理を施してよい。   For example, the image data is acquired from the user in the receiving machine 12 installed in a store or the like. The accepting machine 12 that has acquired the image data may perform red-eye correction processing on the image in the accepting machine 12. Then, the accepting machine 12 may add a predetermined mark or the like to the image and display the image on the monitor of the accepting machine 12. The accepting machine 12 may transmit the acquired image data to the image processing apparatus 14 without performing the red-eye correction process on the acquired image. Then, the image processing device 14 that has received the image data may perform red-eye correction processing on the image. Subsequently, the image processing apparatus 14 may output an image to which a predetermined mark or the like is added. The image processing apparatus 14 may output image data by transmitting image data to which a predetermined mark or the like is added to the printer 16. When image data is input to the personal computer 18 owned by the user, the image processing device 14 acquires the image data input to the personal computer 18 via the network. Then, the image processing device 14 may perform red-eye correction processing on the acquired image.

図2は、本実施形態に係る赤目補正処理システム10の機能構成の一例を示す。赤目補正処理システム10は、画像入力部100、赤目検出部110、黒目検出部115、赤目修正部120、撮像条件取得部130、赤目色情報取得部135、修正度合判断部140、撮像条件判断部145、画像出力部150、修正結果出力部160、インデックス格納部170、表示部180、および印刷部185を備える。なお、赤目補正処理システム10が複数の機器から構成されている場合には、複数の機器のそれぞれが上記各構成部材の一部、または全部を備えていてもよい。例えば、画像処理装置14にプリンタ16およびモニタが接続されている場合には、画像処理装置14が、画像入力部100、赤目検出部110、黒目検出部115、赤目修正部120、撮像条件取得部130、赤目色情報取得部135、修正度合判断部140、撮像条件判断部145を備え、プリンタ16が、画像出力部150、修正結果出力部160、インデックス格納部170、および印刷部185を備え、そして、モニタが表示部180を備えていてもよい。   FIG. 2 shows an example of a functional configuration of the red-eye correction processing system 10 according to the present embodiment. The red-eye correction processing system 10 includes an image input unit 100, a red-eye detection unit 110, a black-eye detection unit 115, a red-eye correction unit 120, an imaging condition acquisition unit 130, a red-eye color information acquisition unit 135, a correction degree determination unit 140, and an imaging condition determination unit. 145, an image output unit 150, a correction result output unit 160, an index storage unit 170, a display unit 180, and a printing unit 185. In addition, when the red-eye correction processing system 10 is configured by a plurality of devices, each of the plurality of devices may include some or all of the above-described components. For example, when the printer 16 and the monitor are connected to the image processing device 14, the image processing device 14 includes the image input unit 100, the red eye detection unit 110, the black eye detection unit 115, the red eye correction unit 120, and the imaging condition acquisition unit. 130, a red-eye color information acquisition unit 135, a correction degree determination unit 140, and an imaging condition determination unit 145. The printer 16 includes an image output unit 150, a correction result output unit 160, an index storage unit 170, and a printing unit 185. The monitor may include a display unit 180.

画像入力部100は、複数の画像を入力する。画像入力部100は、写真、および紙媒体等に印刷された画像を読み取ることにより画像を画像データとして外部から入力する。また、画像入力部100は、半導体メモリ等の記憶媒体、または、LAN、およびインターネット等のネットワークを介して画像データを入力してよい。なお、画像データには、画像が撮像されたときの撮像条件を示す画像撮像情報、画像に所定の画像処理が施されているか否かを示す情報、およびいずれの機器においてインデックスプリントまたは画像を出力するかを示す情報等を含むタグ情報(例えばExif:Exchangeable Image File Formatに準拠した情報)が付加されていてよい。タグ情報は、画像を撮像した撮像装置等において画像に付加されてよい。画像入力部100は入力した画像データを、赤目検出部110、赤目修正部120、および黒目検出部115に供給する。また、画像入力部100は、画像に付加されているタグ情報を撮像条件取得部130の制御に基づいて、撮像条件取得部130に供給する。   The image input unit 100 inputs a plurality of images. The image input unit 100 inputs an image from the outside as image data by reading a photograph and an image printed on a paper medium or the like. The image input unit 100 may input image data via a storage medium such as a semiconductor memory, or a network such as a LAN and the Internet. The image data includes image capturing information indicating imaging conditions when the image is captured, information indicating whether or not the image has been subjected to predetermined image processing, and an index print or image on any device. Tag information including information indicating whether or not to perform (for example, information compliant with Exif: Exchangeable Image File Format) may be added. The tag information may be added to the image in an imaging device that captures the image. The image input unit 100 supplies the input image data to the red-eye detection unit 110, the red-eye correction unit 120, and the black-eye detection unit 115. Further, the image input unit 100 supplies the tag information added to the image to the imaging condition acquisition unit 130 based on the control of the imaging condition acquisition unit 130.

赤目検出部110は、画像入力部100から受け取った複数の画像のそれぞれに含まれる赤目を検出する。具体的には、赤目検出部110は、まず、赤色を検出する予め定められた検出閾値を用いて、予め定められた色範囲に含まれる赤色を有する赤目候補を、画像入力部100から受け取った複数の画像から検出する。なお、係る場合において、赤色の色範囲は、画像に含まれる赤目を適切に検出することができる範囲に設定してよい。また、赤目検出部110は、機械学習により赤色の色範囲を設定してもよい。更に、赤目検出部110は、予め定められた色範囲の色を有する、所定形状および大きさの赤目のテンプレート画像を用いてマッチングすることにより赤目候補を画像から探索してもよい。そして、赤目検出部110は、複数の異なる形状および大きさを有する赤目のテンプレート画像を、予め有していてよい。   The red eye detection unit 110 detects red eyes included in each of the plurality of images received from the image input unit 100. Specifically, the red-eye detection unit 110 first receives a red-eye candidate having a red color included in a predetermined color range from the image input unit 100 using a predetermined detection threshold value for detecting red. Detect from multiple images. In such a case, the red color range may be set to a range in which red eyes included in the image can be appropriately detected. The red-eye detection unit 110 may set a red color range by machine learning. Further, the red-eye detection unit 110 may search for a red-eye candidate from the image by matching using a red-eye template image having a predetermined shape and size and having a color in a predetermined color range. Then, the red-eye detection unit 110 may have a red-eye template image having a plurality of different shapes and sizes in advance.

ここで、赤目検出部110は、赤目を探索するときには、少なくとも1つの種類のパラメータに基づいて赤目を探索してよい。例えば、赤目検出部110は、赤目の探索条件として、赤目検出をするときに用いる複数の異なる大きさの赤目のテンプレート画像、複数の異なる形状を有する赤目のテンプレート画像、複数の異なる種類の色相を有する赤目のテンプレート画像を用いて赤目候補を検出してよい。また、赤目検出部110は、赤目のテンプレート画像を画像上で予め定められたピッチ幅で移動させてよい。赤目検出部110は、赤目のテンプレート画像を画像上で移動させるときの複数の異なるピッチ幅、および赤目のテンプレート画像を画像上で移動させるときの複数の異なる移動開始位置等に関する情報を予め有していてもよい。例えば、赤目検出部110は、複数のパラメータを順次変化させて、画像内から赤目候補を検出してもよい。   Here, when searching for red eyes, the red eye detection unit 110 may search for red eyes based on at least one type of parameter. For example, the red-eye detection unit 110 uses a plurality of different-sized red-eye template images, a plurality of different-shaped red-eye template images, and a plurality of different types of hues as red-eye search conditions. A red-eye candidate may be detected using a red-eye template image. In addition, the red-eye detection unit 110 may move the red-eye template image on the image with a predetermined pitch width. The red-eye detection unit 110 has in advance information regarding a plurality of different pitch widths when moving the red-eye template image on the image, and a plurality of different movement start positions when moving the red-eye template image on the image. It may be. For example, the red eye detection unit 110 may detect a red eye candidate from the image by sequentially changing a plurality of parameters.

具体的には、赤目検出部110は、第1のパラメータを用いて、画像内の赤目を探索して赤目候補の検出を試みる。赤目検出部110は、第1のパラメータを用いて赤目候補を検出できなかった場合には、第1のパラメータを第2のパラメータに変更して赤目候補の検出を試みる。例えば、赤目検出部110は、画像内において赤目のテンプレート画像を第1の画素ピッチで探索位置を移動させながら赤目を探索して、赤目候補を検出する。赤目検出部110は、第1の画素ピッチで赤目候補を検出できなかった場合には、第1の画素ピッチとは異なる第2の画素ピッチで赤目のテンプレート画像を移動させながら赤目候補を検出する。赤目検出部110は、赤目候補が検出されるまで、画素ピッチを順次変更して赤目のテンプレート画像を移動させてもよい。なお、赤目検出部110は、第1の画素ピッチで探索した探索位置と、第2の画素ピッチで探索する探索位置とが重複することがない画素ピッチを用いてよい。   Specifically, the red-eye detection unit 110 searches for red eyes in the image using the first parameter and tries to detect a red-eye candidate. If the red-eye candidate cannot be detected using the first parameter, the red-eye detection unit 110 attempts to detect the red-eye candidate by changing the first parameter to the second parameter. For example, the red-eye detection unit 110 detects a red-eye candidate by searching for a red-eye template image while moving the search position at the first pixel pitch in the image. If the red eye candidate cannot be detected at the first pixel pitch, the red eye detection unit 110 detects the red eye candidate while moving the red eye template image at a second pixel pitch different from the first pixel pitch. . The red-eye detection unit 110 may move the red-eye template image by sequentially changing the pixel pitch until a red-eye candidate is detected. Note that the red-eye detection unit 110 may use a pixel pitch at which the search position searched at the first pixel pitch and the search position searched at the second pixel pitch do not overlap.

そして、赤目検出部110は、検出した赤目候補のうち、顔の中の所定の位置にある赤目候補を赤目修正対象である赤目候補として選択する。具体的には、赤目検出部110は、検出した赤目候補の周囲に顔が存在するか否かを検出する。例えば、顔に含まれる、眉、鼻、口、耳、ひげ、および顔の輪郭等の各部位の位置と、赤目候補との位置関係に基づいて、赤目候補が顔の中で目に相当する位置に存在しているか否かを判断する。また、赤目検出部110は、検出した赤目候補の周囲に存在する被写体の画像を回転させて、当該被写体の画像が対称的な形を有している場合に当該被写体の画像が顔の画像であると判断してもよい。そして、赤目検出部110は、顔の中の目の位置に存在すると判断された赤目候補を、赤目修正対象である赤目候補として選択してよい。   Then, the red-eye detection unit 110 selects a red-eye candidate at a predetermined position in the face among the detected red-eye candidates as a red-eye candidate that is a red-eye correction target. Specifically, the red eye detection unit 110 detects whether a face exists around the detected red eye candidate. For example, the red eye candidate corresponds to the eye in the face based on the positional relationship between the position of each part included in the face, such as the eyebrows, nose, mouth, ears, beard, and face contour, and the red eye candidate. It is determined whether or not it exists at the position. The red-eye detection unit 110 rotates the image of the subject existing around the detected red-eye candidate, and when the subject image has a symmetric shape, the subject image is a face image. You may judge that there is. Then, the red-eye detection unit 110 may select a red-eye candidate determined to be present at the position of the eye in the face as a red-eye candidate that is a red-eye correction target.

更に、赤目検出部110は、複数の画像のそれぞれに含まれる赤目候補と赤目のテンプレート画像とをマッチングして、予め定められた第1のマッチング度以上の赤目候補を赤目として検出してもよい。なお、マッチング度とは、赤目のテンプレート画像の色、形状、および大きさと赤目候補の色、形状、および大きさとを比較した場合における、赤目候補の赤目のテンプレート画像との一致度合であってよい。赤目のテンプレート画像と赤目候補との一致度合が高いほどマッチング度合は高くてよい。そして、マッチング度合が高いほど、赤目候補が目である確率が高いといえる。したがって、マッチング度合が高い場合に、赤目検出部110が検出した赤目候補が目である確率の高さを示す指標である、目の信頼度が高いと評価してよい。赤目検出部110は、赤目の検出に用いた赤目のテンプレート画像の大きさを示す情報、複数の画像のそれぞれが含む赤目が画像において占める位置を示す情報、赤目の色を示す情報、およびマッチング度合(または、目の信頼度)を示す情報を赤目修正部120、赤目色情報取得部135、および修正度合判断部140に供給する。なお、赤目のテンプレート画像の大きさを示す情報は、赤目領域情報の一例である。   Further, the red-eye detection unit 110 may match a red-eye candidate included in each of a plurality of images with a red-eye template image and detect a red-eye candidate having a predetermined first matching degree or more as a red eye. . The matching degree may be a matching degree with the red-eye candidate red-eye template image when the color, shape, and size of the red-eye template image are compared with the color, shape, and size of the red-eye candidate. . The matching degree may be higher as the matching degree between the red-eye template image and the red-eye candidate is higher. The higher the matching degree, the higher the probability that the red-eye candidate is an eye. Therefore, when the degree of matching is high, it may be evaluated that the eye reliability is high, which is an index indicating the probability that the red-eye candidate detected by the red-eye detection unit 110 is an eye. The red-eye detection unit 110 includes information indicating the size of the red-eye template image used for detecting the red-eye, information indicating the position occupied by the red-eye included in each of the plurality of images, information indicating the red-eye color, and the matching degree. Information indicating (or eye reliability) is supplied to the red-eye correction unit 120, the red-eye color information acquisition unit 135, and the correction degree determination unit 140. The information indicating the size of the red-eye template image is an example of red-eye area information.

黒目検出部115は、画像入力部100から受け取った複数の画像のそれぞれに含まれる黒目を検出する。具体的には、黒目検出部115は、まず、黒色を検出する予め定められた検出閾値を用いて、予め定められた色範囲に含まれる黒色を有する黒目候補を画像入力部100から受け取った複数の画像からそれぞれ検出する。そして、上記説明における赤目検出部110と同様の動作によって、黒目検出部115は検出した黒目候補の中から顔の中の目の位置に存在すると判断される黒目を選択する。黒目検出部115は、選択した黒目の顔の中において占める位置を示す情報、および黒目の色の情報を修正度合判断部140に供給する。   The black eye detection unit 115 detects black eyes included in each of the plurality of images received from the image input unit 100. Specifically, the black-eye detecting unit 115 first receives a plurality of black-eye candidates having black contained in a predetermined color range from the image input unit 100 using a predetermined detection threshold for detecting black. Are detected from the respective images. Then, by the same operation as the red-eye detection unit 110 in the above description, the black-eye detection unit 115 selects a black eye that is determined to exist at the position of the eye in the face from the detected black-eye candidates. The black eye detection unit 115 supplies information indicating the position occupied in the selected black eye face and information on the color of the black eye to the correction degree determination unit 140.

撮像条件取得部130は、画像入力部100が入力した画像に付加されているタグ情報を参照して、画像が撮像されたときの撮像条件を示す画像撮像情報、画像に所定の画像処理が施されているか否かを示す情報、およびいずれの機器においてインデックスプリントまたは画像を出力するかを示す情報等を取得する。撮像条件取得部130は、取得した情報を撮像条件判断部145に供給する。撮像条件判断部145は、撮像条件取得部130が取得した情報を解析して、画像入力部100が入力した画像が撮像されたときの画像の撮像条件を判断する。撮像条件判断部145が解析する情報に含まれる画像撮像情報には、画像撮像時にストロボが使用されたか否かを示すストロボ情報、撮像された画像に含まれる被写体の輝度を示す被写体輝度情報、画像を撮像したときの撮像装置から被写体までの距離を示す被写体距離情報、画像を撮像したときの光源を示す光源情報、画像を撮像した時の撮像モードの種類を示す撮像モード情報、および入力した画像に赤目修正処理が施されているか否かを示す情報である赤目修正情報が含まれていてよい。   The imaging condition acquisition unit 130 refers to the tag information added to the image input by the image input unit 100 and performs predetermined image processing on the image imaging information indicating the imaging condition when the image is captured. Information indicating whether or not an image is output, information indicating which index print or image is output in which device, and the like. The imaging condition acquisition unit 130 supplies the acquired information to the imaging condition determination unit 145. The imaging condition determination unit 145 analyzes the information acquired by the imaging condition acquisition unit 130 and determines the imaging condition of the image when the image input by the image input unit 100 is captured. The image capturing information included in the information analyzed by the image capturing condition determining unit 145 includes strobe information indicating whether or not the strobe is used at the time of image capturing, subject brightness information indicating the brightness of the subject included in the captured image, and an image. Subject distance information indicating the distance from the imaging device to the subject when the image is captured, light source information indicating the light source when the image is captured, imaging mode information indicating the type of imaging mode when the image is captured, and the input image May include red-eye correction information that is information indicating whether or not red-eye correction processing has been performed.

具体的には、撮像条件判断部145は、画像入力部100が入力した画像が、ストロボが発光されているときに撮像されたか否かを、ストロボ情報を参照して判断する。また、撮像条件判断部145は、画像入力部100が入力した画像に含まれる被写体の輝度が、予め定められた値以上であるか否かを、被写体輝度情報を参照して判断する。なお、被写体の輝度とは、画像に含まれる背景部分の輝度、または、画像全体の平均輝度、若しくは、画像の輝度分布であってよい。また、撮像条件判断部145は、画像入力部100が入力した画像に含まれる被写体の、撮像時における撮像装置から当該被写体までの距離が、予め定められた範囲内にあるか否かについて、被写体距離情報を参照して判断する。   Specifically, the imaging condition determination unit 145 determines whether or not the image input by the image input unit 100 was captured when the strobe light is emitted with reference to the strobe information. Further, the imaging condition determination unit 145 determines whether the luminance of the subject included in the image input by the image input unit 100 is equal to or higher than a predetermined value with reference to the subject luminance information. Note that the luminance of the subject may be the luminance of the background portion included in the image, the average luminance of the entire image, or the luminance distribution of the image. In addition, the imaging condition determination unit 145 determines whether the subject included in the image input by the image input unit 100 has a distance from the imaging device to the subject at the time of imaging within a predetermined range. Judge by referring to the distance information.

更に、撮像条件判断部145は、画像入力部100が入力した画像の撮像時の光源情報から画像が室内で撮像されたか否かを、光源情報を参照して判断する。例えば、撮像条件判断部145は、光源情報が示す光の波長分布に基づいて、光源が太陽光、または蛍光灯、若しくは白熱灯などのいずれであるかを判断する。すなわち、撮像条件判断部145は、光源情報が示す光の波長分布を解析して、太陽光に特徴的な波長分布であるか否か、蛍光灯が発する光に特徴的な波長分布であるか否か、若しくは白熱灯が発する光に特徴的な波長分布である否かを判断して、光源の種類を判断してよい。また、撮像条件判断部145は、画像入力部100が入力した画像に赤目修正処理が施されているか否かを、赤目修正情報を参照して判断する。なお、赤目修正処理は、例えば、撮像装置、または赤目補正処理システム10とは異なる画像処理装置等において画像に施されていてもよい。   Further, the imaging condition determination unit 145 determines whether an image is captured indoors from the light source information at the time of imaging of the image input by the image input unit 100 with reference to the light source information. For example, the imaging condition determination unit 145 determines whether the light source is sunlight, a fluorescent lamp, an incandescent lamp, or the like based on the wavelength distribution of light indicated by the light source information. That is, the imaging condition determination unit 145 analyzes the wavelength distribution of the light indicated by the light source information to determine whether the wavelength distribution is characteristic to sunlight or whether the wavelength distribution is characteristic to light emitted from a fluorescent lamp. The type of the light source may be determined by determining whether or not the wavelength distribution is characteristic to the light emitted by the incandescent lamp. In addition, the imaging condition determination unit 145 determines whether or not the image input by the image input unit 100 has been subjected to red-eye correction processing with reference to red-eye correction information. Note that the red-eye correction processing may be performed on the image in, for example, an image processing device or an image processing device different from the red-eye correction processing system 10.

また、撮像条件判断部145は、画像入力部100が入力した画像の撮像時の撮像モードが、予め定められた光量以下で撮像するモード、または、赤目現象が発生する可能性が高いモードとして予め定められているモードであるか否かを、撮像モード情報を参照して判断する。例えば、撮像条件判断部145は、撮像時の撮像モードがポートレートモードまたは夜景モードであるか否かを、撮像モード情報を参照して判断する。また、撮像条件判断部145は、撮像時の撮像モードが、屋内でのパーティーシーン用のモードであるパーティーモード、または、夜間における人物撮像モードである夜景ポートレートモード、若しくは屋内撮像用のモードである屋内撮影モードであるか否かを、撮像モード情報を参照して判断してよい。さらに、撮像条件判断部145は、撮像時に画像が赤目軽減モードにより撮像されたか否かを判断してもよい。なお、赤目軽減モードは、ストロボをプレ発光させてから被写体を撮像する手法等により、赤目現象の発生を抑制する撮像モードであってよい。撮像条件判断部145は、判断結果を修正度合判断部140に供給する。   In addition, the imaging condition determination unit 145 is preliminarily set as a mode in which the imaging mode at the time of imaging of the image input by the image input unit 100 is a predetermined amount of light or less, or a mode in which a red eye phenomenon is highly likely to occur. Whether or not the mode is determined is determined with reference to the imaging mode information. For example, the imaging condition determination unit 145 determines whether the imaging mode at the time of imaging is a portrait mode or a night scene mode with reference to the imaging mode information. In addition, the imaging condition determination unit 145 is configured such that the imaging mode at the time of imaging is a party mode that is a mode for indoor party scenes, a night scene portrait mode that is a person imaging mode at night, or a mode for indoor imaging. Whether or not it is a certain indoor shooting mode may be determined by referring to the shooting mode information. Further, the imaging condition determination unit 145 may determine whether an image is captured in the red-eye reduction mode at the time of imaging. Note that the red-eye reduction mode may be an imaging mode that suppresses the occurrence of a red-eye phenomenon by a method of imaging a subject after pre-flashing the strobe. The imaging condition determination unit 145 supplies the determination result to the correction degree determination unit 140.

赤目修正部120は、画像入力部100から受け取った画像に含まれる、赤目検出部110において検出された赤目に赤目修正処理を施す。赤目修正部120は、赤目検出部110から受け取った赤目修正を施すべき赤目の画像における位置を示す情報から、画像において赤目修正を施すべき赤目を検出して、検出した赤目に対して赤目修正処理を施す。なお、赤目修正部120が画像に施す赤目修正処理は、赤目領域探索処理、赤目修正量算出処理、および赤目黒目変換処理を含んでいてよい。赤目領域探索処理は、赤目検出部110が検出した赤目の画像における位置等を示す赤目検出情報から、赤目の領域を特定する処理であってよい。また、赤目修正量算出処理は、赤目領域探索処理において特定された赤目領域に対して明度・彩度調整量、および置き換える色情報を算出する処理であってよい。そして、赤目黒目変換処理は、赤目領域探索処理において特定された赤目領域と赤目修正量算出処理において算出された修正量から、赤目を黒目に変換する処理であってよい。   The red-eye correction unit 120 performs red-eye correction processing that is included in the image received from the image input unit 100 and detected by the red-eye detection unit 110. The red-eye correction unit 120 detects a red eye to be subjected to red-eye correction in the image from information indicating a position in the image of the red-eye to be subjected to red-eye correction received from the red-eye detection unit 110, and performs a red-eye correction process on the detected red eye. Apply. Note that the red-eye correction process performed on the image by the red-eye correction unit 120 may include a red-eye area search process, a red-eye correction amount calculation process, and a red-eye black-eye conversion process. The red-eye area search process may be a process for specifying a red-eye area from red-eye detection information indicating a position or the like in the red-eye image detected by the red-eye detection unit 110. The red-eye correction amount calculation processing may be processing for calculating lightness / saturation adjustment amounts and replacement color information for the red-eye region specified in the red-eye region search processing. The red-eye / black-eye conversion processing may be processing for converting red-eye to black-eye from the red-eye region specified in the red-eye region search processing and the correction amount calculated in the red-eye correction amount calculation processing.

また、赤目修正部120は、赤目に赤目修正処理を施すだけではなく、金目に金目修正処理を施してもよい。なお、金目修正処理は、金目領域の色バランスを予め定められたバランスに変更した後に、明度および彩度を変更して金目を黒目に修正する処理であってよい。また、金目修正処理は、金目領域の色を予め定められた黒目の色に置き換えることによって金目を黒目に修正する処理であってよい。そして、赤目修正部120は、赤目修正処理を施した赤目の画像における位置、および赤目修正処理後の目の色に関する情報を赤目色情報取得部135および修正度合判断部140に供給する。また、赤目修正部120は、赤目修正処理を施した後の画像を画像出力部150および修正結果出力部160に供給する。   Further, the red-eye correction unit 120 may perform not only red-eye correction processing for red eyes but also gold-eye correction processing for gold eyes. The gold eye correction process may be a process of changing the lightness and saturation and correcting the gold eye to the black eye after changing the color balance of the gold eye region to a predetermined balance. The gold eye correction process may be a process of correcting the gold eye by replacing the color of the gold eye region with a predetermined black eye color. Then, the red-eye correction unit 120 supplies information regarding the position in the red-eye image subjected to the red-eye correction process and the eye color after the red-eye correction process to the red-eye color information acquisition unit 135 and the correction degree determination unit 140. The red-eye correction unit 120 supplies the image after the red-eye correction processing to the image output unit 150 and the correction result output unit 160.

赤目色情報取得部135は、赤目検出部110が検出した赤目修正前の赤目の色を示す情報である修正前色情報を取得する。具体的には、赤目色情報取得部135は、赤目検出部110から受け取った、複数の画像のそれぞれが含む赤目の画像における位置を示す情報、および赤目の色を示す情報を参照して修正前色情報を取得する。例えば、赤目色情報取得部135は、複数の画像のそれぞれについて、赤目の色を抽出する。そして、赤目色情報取得部135は、抽出した赤目の色のR成分、G成分、およびB成分のレベルの値を算出して修正前色情報として取得してよい。また、赤目色情報取得部135は、赤目修正部120が赤目修正処理を施さない場合には、目の色の情報、例えば、赤目修正処理を施さなかった黒目の色の情報を修正前色情報として取得してよい。   The red-eye color information acquisition unit 135 acquires pre-correction color information that is information indicating the red-eye color before red-eye correction detected by the red-eye detection unit 110. Specifically, the red-eye color information acquisition unit 135 refers to the information indicating the position in the red-eye image included in each of the plurality of images and the information indicating the red-eye color received from the red-eye detection unit 110 before correction. Get color information. For example, the red eye color information acquisition unit 135 extracts the red eye color for each of the plurality of images. Then, the red-eye color information acquisition unit 135 may calculate the value of the extracted red-eye color R component, G component, and B component and acquire it as pre-correction color information. In addition, when the red-eye correction unit 120 does not perform the red-eye correction process, the red-eye color information acquisition unit 135 displays the information of the eye color, for example, the information of the black eye color that has not been subjected to the red-eye correction process. You may get as.

また、赤目色情報取得部135は、赤目修正部120が赤目修正処理を施した後の赤目の色を示す情報である修正後色情報を取得する。赤目色情報取得部135は、赤目修正部120から受け取った、複数の画像のそれぞれが含む赤目修正処理後の目の画像における位置を示す情報、および当該目の色を示す情報を参照して修正後色情報を取得する。例えば、赤目色情報取得部135は、複数の画像のそれぞれについて、赤目修正処理後の目の色を抽出する。そして、赤目色情報取得部135は、抽出した目の色のR成分、G成分、およびB成分のレベルの値を算出して修正後色情報としてよい。更に、赤目色情報取得部135は、赤目検出部110が検出した赤目修正前の赤目の領域内の色バランスを示す情報を修正前色情報として取得してよい。色バランスは、例えば、R成分、G成分、およびB成分のレベルのバランスであってよい。赤目色情報取得部135は、取得した修正前色情報および修正後色情報を修正度合判断部140に供給する。   Also, the red-eye color information acquisition unit 135 acquires post-correction color information that is information indicating the color of the red eye after the red-eye correction unit 120 performs the red-eye correction process. The red-eye color information acquisition unit 135 refers to the information received from the red-eye correction unit 120 indicating the position in the eye image after the red-eye correction process included in each of the plurality of images and the information indicating the eye color. Get back color information. For example, the red-eye color information acquisition unit 135 extracts the eye color after the red-eye correction process for each of the plurality of images. Then, the red-eye color information acquisition unit 135 may calculate the R component, G component, and B component level values of the extracted eye color as corrected color information. Further, the red-eye color information acquisition unit 135 may acquire information indicating the color balance in the red-eye region before red-eye correction detected by the red-eye detection unit 110 as pre-correction color information. The color balance may be, for example, a balance between the levels of the R component, the G component, and the B component. The red-eye color information acquisition unit 135 supplies the acquired pre-correction color information and post-correction color information to the correction degree determination unit 140.

修正度合判断部140は、赤目修正部120による赤目修正処理の修正度合が予め定められた所定の修正度合より大きいか否かを判断する。例えば、修正度合判断部140は、修正前色情報が示す赤目の色のR成分のレベルが、G成分およびB成分のレベルと比較して予め定められたレベルよりも大きい場合に、修正度合が大きいと判断してよい。また、修正度合判断部140は、赤目色情報取得部135から受け取った修正前色情報と修正後色情報とを比較する。そして、修正度合判断部140は、修正後色情報が示す色の修正前色情報が示す色からの変化量が予め定められた範囲内に含まれる場合に、赤目修正部120の赤目修正処理による修正度合が所定の修正度合より小さいと判断する。例えば、修正度合判断部140は、修正前色情報が示す色のR成分のレベルと、修正後色情報が示すR成分のレベルとを比較する。すなわち、修正度合判断部140は、修正前色情報が示す色のR成分のレベルから、修正後色情報が示す色のR成分のレベルへの変化量を算出する。そして、修正度合判断部140は、算出した変化量が予め定められた範囲内に含まれる場合に、修正度合が予め定められた修正度合よりも小さいと判断してよい。一方、修正度合判断部140は、算出した変化量が予め定められた値を超える場合に、修正度合が予め定められた修正度合よりも大きいと判断してよい。   The correction degree determination unit 140 determines whether or not the correction degree of the red-eye correction process by the red-eye correction unit 120 is greater than a predetermined correction degree. For example, the correction degree determination unit 140 determines the correction degree when the level of the R component of the red eye color indicated by the pre-correction color information is higher than a predetermined level compared to the levels of the G component and the B component. You may judge it to be large. The correction degree determination unit 140 compares the pre-correction color information received from the red-eye color information acquisition unit 135 with the post-correction color information. Then, the degree-of-correction determination unit 140 performs the red-eye correction process of the red-eye correction unit 120 when the amount of change from the color indicated by the color information before correction is within a predetermined range. It is determined that the correction level is smaller than the predetermined correction level. For example, the correction degree determination unit 140 compares the level of the R component of the color indicated by the color information before correction with the level of the R component indicated by the color information after correction. That is, the correction degree determination unit 140 calculates the amount of change from the level of the R component of the color indicated by the color information before correction to the level of the R component of the color indicated by the color information after correction. Then, the correction degree determination unit 140 may determine that the correction degree is smaller than the predetermined correction degree when the calculated change amount is included in the predetermined range. On the other hand, the correction degree determination unit 140 may determine that the correction degree is greater than the predetermined correction degree when the calculated change amount exceeds a predetermined value.

更に、修正度合判断部140は、赤目色情報取得部135において取得された修正前色情報が示す色バランスが予め定められたバランスの場合に、修正度合が予め定められた所定の修正度合よりも小さいと判断してよい。例えば、修正度合判断部140は、修正前色情報が示す色バランスにおいて、R成分のレベル、G成分のレベル、およびB成分のレベルをそれぞれ比較して、色バランスが予め定められた色バランス(例えば、R成分のレベルとG成分およびB成分のレベルとの比率が、所定の比率である場合)の場合に、修正度合が予め定められた所定の修正度合よりも小さいと判断する。   Furthermore, when the color balance indicated by the pre-correction color information acquired by the red-eye color information acquisition unit 135 is a predetermined balance, the correction degree determination unit 140 has a correction degree that is higher than a predetermined correction degree. You may judge it to be small. For example, the correction degree determination unit 140 compares the R component level, the G component level, and the B component level with respect to the color balance indicated by the pre-correction color information, respectively, and the color balance with a predetermined color balance ( For example, when the ratio between the R component level and the G component and B component levels is a predetermined ratio), it is determined that the correction degree is smaller than a predetermined correction degree.

また、修正度合判断部140は、赤目検出部110が検出した赤目と同一の位置に黒目検出部115が検出した黒目が存在すると判断した場合に、赤目修正部120の赤目修正処理による修正度合が所定の修正度合より小さいと判断してよい。具体的には、修正度合判断部140は、黒目検出部115から受け取った情報が示す黒目の顔の中において占める位置と、赤目検出部110から受け取った情報が示す赤目の顔の中において占める位置とを比較して、赤目検出部110が検出した赤目と同一の位置に黒目検出部115が検出した黒目が存在するか否かを判断する。そして、修正度合判断部140は、黒目の位置と赤目の位置とが一致した場合に、赤目修正部120の修正度合が所定の修正度合よりも小さいと判断してよい。   When the correction degree determination unit 140 determines that the black eye detected by the black eye detection unit 115 exists at the same position as the red eye detected by the red eye detection unit 110, the correction degree by the red eye correction process of the red eye correction unit 120 is determined. You may judge that it is smaller than the predetermined correction degree. Specifically, the correction degree determination unit 140 occupies the position occupied by the information received from the black eye detection unit 115 in the face of the black eye and the position occupied by the information received from the red eye detection unit 110 in the face of the red eye. To determine whether or not the black eye detected by the black eye detection unit 115 exists at the same position as the red eye detected by the red eye detection unit 110. Then, the correction degree determination unit 140 may determine that the correction degree of the red-eye correction unit 120 is smaller than a predetermined correction degree when the position of the black eye matches the position of the red eye.

ここで、赤目検出部110が検出する赤目候補の色と黒目検出部115が検出する黒目候補の色とは、その一部が重複する場合がある。例えば、黒目にR成分が含まれている場合でも、黒目検出部115は、明度、彩度、および輝度等の値に基づいて予め定められた黒目の検出閾値を用いて画像から黒目候補を検出する。したがって、黒目検出部115が検出した黒目候補の中に、赤目検出部110で赤目候補と判断される目も含まれる場合がある。係る場合においては、修正度合判断部140は、赤目修正部120による赤目修正の度合が小さいと判断してよい。これは、赤目修正部120が黒目の色の成分が混入している赤目に赤目修正処理を施す場合には、黒目の色の成分が混入していない赤目に赤目修正処理を施す場合に比べて、黒目の色に修正する修正量、例えば、R成分、G成分、およびB成分のレベルを変化させる変化量が小さいからである。   Here, the red eye candidate color detected by the red eye detection unit 110 and the black eye candidate color detected by the black eye detection unit 115 may partially overlap. For example, even when an R component is included in the black eye, the black eye detection unit 115 detects a black eye candidate from the image using a predetermined black eye detection threshold based on values such as brightness, saturation, and luminance. To do. Therefore, the black eye candidates detected by the black eye detection unit 115 may include eyes that are determined as red eye candidates by the red eye detection unit 110. In such a case, the correction degree determination unit 140 may determine that the degree of red-eye correction by the red-eye correction unit 120 is small. This is because the red-eye correction unit 120 performs red-eye correction processing for red eyes in which black-eye color components are mixed, compared to red-eye correction processing in which red-eye correction components 120 are mixed with black-eye color components. This is because the amount of correction for correcting the color of the black eye, for example, the amount of change for changing the levels of the R component, the G component, and the B component is small.

また、修正度合判断部140は、赤目検出部110から受け取ったマッチング度合を参照する。そして、修正度合判断部140は、予め定められた第1のマッチング度より大きく、予め定められた第2のマッチング度より小さい赤目に赤目修正部120が赤目修正処理を施した場合に、赤目修正部120による赤目修正処理の修正度合が所定の修正度合よりも小さいと判断する。これにより、目の信頼度が予め定められた基準値以下である赤目に対して赤目修正を施した場合でも、赤目修正を施した当該赤目については、修正度合が所定の修正度合よりも小さいと判断できる。また、修正度合判断部140は、撮像条件判断部145の判断結果に基づいて、赤目修正部120による赤目修正処理の修正度合が所定の修正度合よりも大きいか否かを判断してよい。例えば、修正度合判断部140は、撮像条件判断部145によってストロボが発光されていないときに撮像されたと判断された画像についての修正度合を、所定の修正度合よりも小さいと判断する。これは、ストロボが発光されていない場合には、赤目現象、または金目現象が発生することが少ないからである。   The correction degree determination unit 140 refers to the matching degree received from the red-eye detection unit 110. The correction degree determination unit 140 corrects the red-eye when the red-eye correction unit 120 performs red-eye correction processing that is larger than the predetermined first matching degree and smaller than the predetermined second matching degree. It is determined that the correction degree of the red-eye correction process by the unit 120 is smaller than the predetermined correction degree. Thereby, even when the red eye correction is performed on the red eye whose eye reliability is equal to or less than a predetermined reference value, the correction degree is smaller than the predetermined correction degree for the red eye subjected to the red eye correction. I can judge. Further, the correction degree determination unit 140 may determine whether the correction degree of the red-eye correction process by the red-eye correction unit 120 is greater than a predetermined correction degree based on the determination result of the imaging condition determination unit 145. For example, the correction degree determination unit 140 determines that the correction degree of the image determined to be captured when the strobe light is not emitted by the imaging condition determination unit 145 is smaller than a predetermined correction degree. This is because the red-eye phenomenon or the gold-eye phenomenon rarely occurs when the strobe is not emitting light.

また、修正度合判断部140は、撮像条件判断部145によって被写体の輝度が予め定められた値以上であると判断された画像についての修正度合を、所定の修正度合よりも小さいと判断してよい。これは、被写体の輝度が予め定められた値以上である場合には、当該被写体が撮像されたのが日中である可能性が高く、日中に被写体を撮像した場合には赤目現象が発生する確率が低いからである。また、修正度合判断部140は、撮像条件判断部145によって、撮像時の、撮像装置から被写体までの距離が予め定められた範囲内にないと判断された画像についての修正度合を、所定の修正度合よりも小さいと判断してよい。これは、撮像装置から予め定められた距離以上離れた位置に存在する被写体の目の画像に対する大きさは小さいので、仮に赤目現象が発生していた場合でも、赤目部分の判別が困難な場合があるからである。   Further, the correction degree determination unit 140 may determine that the correction degree of the image for which the luminance of the subject is determined to be equal to or higher than a predetermined value by the imaging condition determination unit 145 is smaller than the predetermined correction degree. . This is because if the luminance of the subject is greater than or equal to a predetermined value, it is highly likely that the subject was imaged during the day, and if the subject was imaged during the day, a red-eye phenomenon occurred. It is because the probability of doing is low. In addition, the correction degree determination unit 140 performs a predetermined correction on the correction degree of the image determined by the imaging condition determination unit 145 when the distance from the imaging device to the subject is not within a predetermined range at the time of imaging. You may judge that it is smaller than the degree. This is because the size of the subject's eye image present at a position more than a predetermined distance from the imaging device is small, so even if the red-eye phenomenon occurs, it may be difficult to determine the red-eye part. Because there is.

更に、修正度合判断部140は、撮像条件判断部145によって被写体が室内で撮像されたと光源情報に基づいて判断された画像についての修正度合を、所定の修正度合よりも大きいと判断してもよい。これは、室内で被写体を撮像する場合にはストロボを発光することが多いので、赤目現象が発生する可能性が高いからである。また、修正度合判断部140は、撮像条件判断部145によって被写体がポートレートモード、夜景モード、パーティーモード、夜景ポートレートモード、または、屋内撮影モードのいずれかで撮像されたと判断された画像についての修正度合を、所定の修正度合よりも大きいと判断する。これは、夜景モード、ポートレートモード、パーティーモード、夜景ポートレートモード、または、屋内撮影モードのいずれかの撮像モードで被写体を撮像する場合にはストロボを発光することが多いので、赤目現象が発生する可能性が高いからである。また、修正度合判断部140は、赤目軽減モードで画像が撮像されている場合には、修正度合が所定の修正度合よりも小さいと判断してよい。これは、画像撮像時に、既に、赤目を軽減する手法で被写体が撮像されているからである。   Further, the correction degree determination unit 140 may determine that the correction degree of the image determined based on the light source information that the subject is imaged indoors by the imaging condition determination unit 145 is larger than a predetermined correction degree. . This is because, when a subject is imaged indoors, a strobe is often emitted, so that there is a high possibility that a red-eye phenomenon will occur. In addition, the correction degree determination unit 140 is configured to detect an image for which the subject is determined to have been captured in any one of the portrait mode, the night view mode, the party mode, the night view portrait mode, and the indoor shooting mode by the imaging condition determination unit 145. It is determined that the correction degree is larger than a predetermined correction degree. This is because a red-eye phenomenon occurs because the flash is often emitted when shooting the subject in any of the shooting modes of night view mode, portrait mode, party mode, night view portrait mode, or indoor shooting mode. It is because there is a high possibility of doing. Further, the correction degree determination unit 140 may determine that the correction degree is smaller than a predetermined correction degree when an image is captured in the red-eye reduction mode. This is because the subject has already been imaged by a method of reducing red eyes when the image is captured.

更に、修正度合判断部140は、撮像条件判断部145によって画像に赤目修正処理が施されていると判断された画像についての修正度合を、所定の修正度合よりも小さいと判断する。例えば、撮像条件判断部145が、撮像条件取得部130において取得された情報から、画像を撮像した撮像装置において赤目修正処理が画像に施されていると判断した場合には、赤目修正部120による赤目修正処理の修正度合が予め定められた所定の修正度合より小さいと判断してよい。   Furthermore, the correction degree determination unit 140 determines that the correction degree of the image determined by the imaging condition determination unit 145 to have been subjected to red-eye correction processing is smaller than a predetermined correction degree. For example, when the imaging condition determination unit 145 determines from the information acquired by the imaging condition acquisition unit 130 that red-eye correction processing has been performed on the image in the imaging device that captured the image, the red-eye correction unit 120 It may be determined that the correction degree of the red-eye correction process is smaller than a predetermined correction degree.

また、修正度合判断部140は、赤目検出部110から受け取った情報のうち、赤目の検出に用いた赤目のテンプレート画像の大きさが、予め定められた大きさよりも大きい場合には、修正度合が予め定められた修正度合よりも大きいと判断してよい。一方、修正度合判断部140は、赤目検出部110から受け取った情報のうち、赤目の検出に用いた赤目のテンプレート画像の大きさが、予め定められた大きさよりも小さい場合には、修正度合が予め定められた修正度合よりも小さいと判断してよい。また、修正度合判断部140は、赤目検出部110が検出した赤目の画像において占める位置に基づいて、修正度合が予め定められた修正度合よりも大きいか否かを判断してもよい。具体的には、修正度合判断部140は、赤目検出部110において検出された赤目の画像での位置が、画像の端から予め定められた範囲内に存在する場合には、修正度合が予め定められた修正度合よりも小さいと判断してよい。また、修正度合判断部140は、赤目検出部110において検出された赤目の画像での位置が、画像の中央から予め定められた距離だけ離れた位置に存在する場合には、修正度合が予め定められた修正度合よりも小さいと判断してよい。これは、画像の端に赤目が位置している場合には、当該赤目は主要被写体の赤目ではない確率が高いからである。   The correction degree determination unit 140 determines the correction degree when the size of the red-eye template image used for red-eye detection is larger than a predetermined size in the information received from the red-eye detection unit 110. You may judge that it is larger than the predetermined correction degree. On the other hand, if the size of the red-eye template image used for red-eye detection in the information received from the red-eye detection unit 110 is smaller than a predetermined size, the correction degree determination unit 140 determines the correction degree. It may be determined that the degree of correction is smaller than a predetermined correction degree. Further, the correction degree determination unit 140 may determine whether the correction degree is larger than a predetermined correction degree based on the position occupied in the red-eye image detected by the red-eye detection unit 110. Specifically, the correction degree determination unit 140 determines the correction degree in advance when the position of the red-eye image detected by the red-eye detection unit 110 is within a predetermined range from the edge of the image. It may be determined that the degree of correction is smaller. The correction degree determination unit 140 determines the correction degree in advance when the position of the red-eye image detected by the red-eye detection unit 110 is located at a predetermined distance from the center of the image. It may be determined that the degree of correction is smaller. This is because when the red eye is located at the end of the image, there is a high probability that the red eye is not the red eye of the main subject.

また、修正度合判断部140は、画像入力部100が入力した画像の画像解析情報から取得される情報(例えば、オートセットアップ等)に基づいて、画像が撮像された撮像シーンを判別してもよい。撮像シーンは、例えば、日中シーン、風景シーン、および夜景シーン等であってよい。例えば、修正度合判断部140は、日中シーン、および風景シーンと判別された画像に対しては、赤目修正部120による赤目修正処理の修正度合が所定の修正度合よりも小さいと判断してよい。これは、日中シーン、および風景シーンにおいてはストロボを発光させずに撮像することが多いので、赤目現象が発生する確率が低いからである。   Further, the correction degree determination unit 140 may determine the imaging scene in which the image is captured based on information (for example, auto setup) acquired from the image analysis information of the image input by the image input unit 100. . The imaging scene may be, for example, a daytime scene, a landscape scene, a night scene, or the like. For example, the correction degree determination unit 140 may determine that the correction degree of the red-eye correction processing by the red-eye correction unit 120 is smaller than a predetermined correction degree for images determined as daytime scenes and landscape scenes. . This is because, in daytime scenes and landscape scenes, images are often taken without flashing, so the probability that a red-eye phenomenon will occur is low.

なお、修正度合判断部140は、赤目修正処理の結果および上記説明における複数の判断基準のうち、少なくとも2つを組み合わせて、赤目修正処理の修正度合が所定の修正度合より大きいか否かを判断してもよい。修正度合判断部140は、判断結果を示す情報、修正前の画像に含まれている目に関する情報(例えば、目の種類、目の顔における位置、および目の色等に関する情報)、および修正後の画像に含まれている目に関する情報(例えば、修正を施した目の顔における位置、修正を施した目の色、および修正処理ルーチン等に関する情報)を修正結果出力部160に供給する。   The correction degree determination unit 140 determines whether the correction degree of the red-eye correction process is greater than a predetermined correction degree by combining at least two of the results of the red-eye correction process and the plurality of determination criteria in the above description. May be. The degree-of-correction determination unit 140 includes information indicating the determination result, information about the eyes included in the image before correction (for example, information about the type of eyes, the position of the face of the eyes, the color of the eyes, etc.), and after correction Information relating to the eyes included in the image (for example, information regarding the position of the face in the corrected eye, the color of the corrected eye, and the correction processing routine) is supplied to the correction result output unit 160.

画像出力部150は、赤目検出部110によって赤目が検出されなかった画像については赤目修正処理が施されていない画像を出力する。また、画像出力部150は、赤目検出部110によって赤目が検出された画像については赤目修正処理が施された画像を出力する。画像出力部150は、赤目修正処理が施されていない画像、および赤目修正処理が施された画像を表示部180、または印刷部185に供給する。また、画像出力部150は赤目修正処理が施されていない画像、および赤目修正処理が施された画像を、DVD等の記録媒体に書込むことにより記録してもよい。   The image output unit 150 outputs an image that has not been subjected to red-eye correction processing for an image for which red-eye has not been detected by the red-eye detection unit 110. Further, the image output unit 150 outputs an image on which red-eye correction processing has been performed for an image whose red-eye is detected by the red-eye detection unit 110. The image output unit 150 supplies the image that has not been subjected to the red-eye correction process and the image that has been subjected to the red-eye correction process to the display unit 180 or the printing unit 185. The image output unit 150 may record an image that has not been subjected to the red-eye correction process and an image that has been subjected to the red-eye correction process by writing them on a recording medium such as a DVD.

インデックス格納部170は、修正結果出力部160が出力するインデックススプリントに付加させるマークおよび文字列等を、修正処理の処理ルーチン等を識別する識別情報に対応づけて格納する。例えば、インデックス格納部170は、赤目修正処理を識別する識別情報に対応づけて、赤目修正処理を画像に施した旨を示す赤色の目の形状を有するマーク、およびRedEye等の文字列を格納している。また、インデックス格納部170は、金目修正処理を識別する識別情報に対応づけて、金目修正処理を画像に施した旨を示す金色の目の形状を有するマーク、およびGoldEye等の文字列を格納している。なお、インデックス格納部170が格納しているマークおよび文字列等は上記の例に限られず、所定の修正処理を識別できる所定のマーク等であってよい。インデックス格納部170は、修正結果出力部160の制御に基づいて、所定のマーク、または所定の文字列等を修正結果出力部160に供給する。   The index storage unit 170 stores marks, character strings, and the like to be added to the index sprint output by the correction result output unit 160 in association with identification information for identifying the processing routine of the correction process. For example, the index storage unit 170 stores a mark having a red-eye shape indicating that the red-eye correction processing has been performed on the image, and a character string such as RedEye, in association with identification information for identifying the red-eye correction processing. ing. In addition, the index storage unit 170 stores a mark having a golden eye shape indicating that the gold correction process has been performed on the image and a character string such as GoldEye in association with the identification information for identifying the gold correction process. ing. Note that the marks, character strings, and the like stored in the index storage unit 170 are not limited to the above example, and may be predetermined marks that can identify predetermined correction processing. The index storage unit 170 supplies a predetermined mark or a predetermined character string to the correction result output unit 160 based on the control of the correction result output unit 160.

修正結果出力部160は、画像出力部150が出力する画像のうちで、修正度合判断部140から受け取った判断結果が示す所定の修正度合より大きい赤目修正処理が施された画像に赤目補正処理が施されたことを示す情報を画像に対応づけて出力する。また、修正結果出力部160は、修正度合判断部140から受け取った判断結果が示す所定の修正度合より小さい赤目修正処理が施された画像について、赤目修正処理が施されたことを示す情報を当該画像に対応づけて出力しない。具体的には、修正結果出力部160は、修正度合判断部140が赤目修正部120による赤目修正処理の修正度合が所定の修正度合よりも小さいと判断した画像に対しては、当該画像に赤目修正処理が施されていた場合でも、赤目修正処理が施された旨を示す情報を対応づけて出力しない。更に、修正結果出力部160は、赤目修正処理が施される前の画像に含まれている目の種類を示す情報を画像に対応づけて出力してもよい。一方、修正結果出力部160は、修正度合判断部140が赤目修正部120による赤目修正結果の修正度合が所定の修正度合よりも大きいと判断した画像に対しては、当該画像に赤目修正処理が施された旨を示す情報を対応づけて出力する。   The correction result output unit 160 performs red-eye correction processing on an image that has been subjected to red-eye correction processing greater than a predetermined correction level indicated by the determination result received from the correction level determination unit 140 among the images output from the image output unit 150. Information indicating that it has been applied is output in association with the image. The correction result output unit 160 also includes information indicating that the red-eye correction processing has been performed on an image that has been subjected to red-eye correction processing that is smaller than the predetermined correction degree indicated by the determination result received from the correction degree determination unit 140. Does not output in association with the image. Specifically, the correction result output unit 160 adds red-eye to an image for which the correction degree determination unit 140 determines that the correction degree of the red-eye correction processing by the red-eye correction unit 120 is smaller than a predetermined correction degree. Even when correction processing has been performed, information indicating that red-eye correction processing has been performed is not output in association with each other. Further, the correction result output unit 160 may output information indicating the type of eyes included in the image before the red-eye correction processing is performed in association with the image. On the other hand, the correction result output unit 160 performs red-eye correction processing on an image for which the correction degree determination unit 140 determines that the correction degree of the red-eye correction result by the red-eye correction unit 120 is greater than a predetermined correction degree. Corresponding information indicating that it has been applied is output.

また、修正結果出力部160は、例えば、画像から黒目検出部115が赤目検出部110において検出された赤目と同一の位置に黒目を検出した場合には、当該画像を出力する場合に、赤目修正処理が施された旨を示す情報を対応づけないで出力する。これは、赤目検出部110が検出した赤目であっても、黒目検出部115において黒目と判断され得る赤目の色は、黒目検出部115において黒目と判断されない赤目の色と比べて赤目の色の度合が小さいからである。したがって、このような赤目に赤目修正処理を施しても、ユーザには赤目修正処理を施したか否かを判別できない場合がある。係る場合においては、修正結果出力部160は、たとえ赤目修正処理を施した画像であっても、赤目修正処理を施した旨を示すマーク、または文字列等を画像に対応づけないで出力する。   The correction result output unit 160 also corrects the red eye when outputting the image when the black eye detection unit 115 detects the black eye at the same position as the red eye detected by the red eye detection unit 110 from the image. Information indicating that processing has been performed is output without being associated. This is because even if the red eye is detected by the red eye detection unit 110, the red eye color that can be determined as the black eye by the black eye detection unit 115 is a red eye color that is not determined as the black eye by the black eye detection unit 115. This is because the degree is small. Accordingly, even if such red-eye correction processing is performed, the user may not be able to determine whether or not the red-eye correction processing has been performed. In such a case, the correction result output unit 160 outputs a mark or a character string indicating that the red-eye correction processing has been performed without associating the image with the image even if the image has been subjected to the red-eye correction processing.

修正結果出力部160は、修正度合判断部140が赤目修正部120による赤目修正結果の修正度合が所定の修正度合よりも大きいと判断した画像に対しては、当該画像に施された修正処理を識別する情報に対応づけてインデックス格納部170が格納しているマーク、または文字列を抽出する。そして、修正結果出力部160は、抽出したマーク、または文字列を、所定の修正処理が施された画像に対応づけて出力する。修正結果出力部160は、インデックス格納部170から抽出したマーク、または文字列を対応づけた画像を、表示部180、または印刷部185のうち少なくとも一方に供給する。なお、修正結果出力部160が表示部180、または印刷部185のうち少なくとも一方に供給する画像は、インデックスプリント用の画像であってよい。すなわち、修正結果出力部160は、所定のマークまたは文字列を対応づけた画像、並びに所定のマークおよび文字列を対応づけていない画像を、予め定められたレイアウトに配置して出力してよい。   The correction result output unit 160 performs the correction process performed on the image that the correction degree determination unit 140 determines that the correction degree of the red-eye correction result by the red-eye correction unit 120 is larger than a predetermined correction degree. The mark or character string stored in the index storage unit 170 is extracted in association with the information to be identified. Then, the correction result output unit 160 outputs the extracted mark or character string in association with an image on which a predetermined correction process has been performed. The correction result output unit 160 supplies the image extracted from the index storage unit 170 or the image associated with the character string to at least one of the display unit 180 and the printing unit 185. The image that the correction result output unit 160 supplies to at least one of the display unit 180 and the printing unit 185 may be an index print image. That is, the correction result output unit 160 may output an image in which a predetermined mark or character string is associated and an image in which the predetermined mark and character string are not associated with each other in a predetermined layout.

表示部180は、画像出力部150から受け取った画像をモニタ等の表示装置に表示する。また、表示部180は、修正結果出力部160から受け取った、赤目修正処理が施されたことを示す情報が対応づけられた画像、および赤目修正処理が施されたことを示す情報が対応づけられていない画像を表示する。印刷部185は、画像出力部150から受け取った画像を紙媒体等に印刷する。また、印刷部185は、修正結果出力部160から受け取った、赤目修正処理が施されたことを示す情報が対応づけられた画像、および赤目修正処理が施されたことを示す情報が対応づけられていない画像を印刷する。例えば、印刷部185は、インデックスプリントの形態で画像を印刷する。   The display unit 180 displays the image received from the image output unit 150 on a display device such as a monitor. The display unit 180 is associated with the image received from the correction result output unit 160 and associated with information indicating that the red-eye correction process has been performed, and information indicating that the red-eye correction process has been performed. Display images that are not displayed. The printing unit 185 prints the image received from the image output unit 150 on a paper medium or the like. The printing unit 185 also associates the image received from the correction result output unit 160 with the information indicating that the red-eye correction process has been performed and the information indicating that the red-eye correction process has been performed. Print images that are not. For example, the printing unit 185 prints an image in the form of index printing.

本実施形態に係る赤目補正処理システム10によれば、赤目修正処理を施す前の目に対して施した修正処理を示す情報を画像に対応づけて記録できる。これにより、当該画像のインデックスプリントを出力するときに、当該画像に施した修正処理を示すマーク、または文字列を当該画像と併せて出力できるので、ユーザは、画像に金目補正等の特徴のある修正処理が施されたことをひと目で把握できる。なお、修正処理を示すマーク、または文字列は画像に隣接させて出力してもよく、または、画像に重畳させて出力してもよい。   According to the red-eye correction processing system 10 according to the present embodiment, information indicating the correction process performed on the eye before the red-eye correction process can be recorded in association with the image. As a result, when an index print of the image is output, a mark or a character string indicating the correction processing applied to the image can be output together with the image. You can see at a glance that the correction process has been applied. The mark or character string indicating the correction process may be output adjacent to the image, or may be output superimposed on the image.

また、本実施形態に係る赤目補正処理システム10によれば、赤目修正を施す前の赤目と赤目修正処理を施した後の赤目とを比較して、赤目修正の度合に応じて赤目修正を施した旨を示すマークを画像に対応づけるか否かを決定するので、軽微な修正処理が施された画像に対しては、赤目修正処理を施した旨を示すマーク、または文字列を出力させないことができる。これにより、赤目修正処理を施してはいるが、修正結果が元の画像の目の色からそれほど変化していない場合には、赤目修正処理を施した旨を示すマーク、または文字列を出力させないので、ユーザに不満を感じさせることがなくなる。   In addition, according to the red-eye correction processing system 10 according to the present embodiment, the red-eye before red-eye correction is compared with the red-eye after red-eye correction, and red-eye correction is performed according to the degree of red-eye correction. Since it is determined whether or not a mark indicating that the image has been processed is associated with the image, a mark or character string indicating that the red-eye correction processing has been performed should not be output for an image that has been subjected to the minor correction processing. Can do. As a result, the red-eye correction process is performed, but if the correction result does not change much from the eye color of the original image, a mark or character string indicating that the red-eye correction process has been performed is not output. Therefore, it does not make the user feel dissatisfied.

更に、本実施形態に係る赤目補正処理システム10によれば、画像に施された修正処理の内容を明示的に示すマーク等を画像に対応づけて出力できるので、例えば、画像のプリント等に対して課金処理をする場合において、修正処理を施した画像だけに課金処理をすることが容易にできる。   Furthermore, according to the red-eye correction processing system 10 according to the present embodiment, a mark or the like that explicitly indicates the content of the correction processing applied to the image can be output in association with the image. When charging is performed, it is possible to easily charge only the image that has been subjected to the correction process.

図3は、本実施形態に係るインデックスプリント200の一例を示す。修正結果出力部160は、修正度合判断部140の判断結果に基づいて、画像入力部100が入力した画像、および画像入力部100が入力した画像に対して赤目修正処理が施された画像のインデックスプリントに、所定のマークを付加させて出力することができる。例えば、画像出力部150が、インデックスプリント200に複数の画像210、画像212、画像214、画像216、および画像218等を出力する場合を考える。係る場合において、画像210、画像212、画像214、画像216、および画像218の全部に赤目修正処理が施されているが、画像212、および画像218における赤目修正処理の度合が所定の度合よりも小さい場合には、修正結果出力部160は、画像212および画像218を除く他の画像に赤目修正処理が施された旨を示すマーク300、マーク302、およびマーク304を出力する。   FIG. 3 shows an example of the index print 200 according to the present embodiment. The correction result output unit 160, based on the determination result of the correction degree determination unit 140, indexes an image input by the image input unit 100 and an image obtained by performing red-eye correction processing on the image input by the image input unit 100. A predetermined mark can be added to the print for output. For example, consider a case where the image output unit 150 outputs a plurality of images 210, 212, 214, 216, 218, and the like to the index print 200. In such a case, the red-eye correction processing is performed on all of the image 210, the image 212, the image 214, the image 216, and the image 218, but the degree of the red-eye correction processing in the image 212 and the image 218 is higher than a predetermined degree. If smaller, the correction result output unit 160 outputs a mark 300, a mark 302, and a mark 304 indicating that red-eye correction processing has been performed on other images except the image 212 and the image 218.

例えば、画像210には、画像210に赤目修正処理を施した旨を示すマーク300が付加されている。また、画像212に対して赤目修正処理を施した場合であっても、赤目修正処理の修正度合が予め定められた度合よりも小さい場合には、画像212にはマークを付加しない。また、画像214が室内で撮像されており、画像214に対して赤目修正処理が施されていた場合には、赤目修正処理を施した旨を示すマーク302が付加される。更に、画像218に含まれる人物の目の大きさが、予め定められた大きさよりも小さい場合には、画像218に含まれる人物の目が赤目であるか否かの判別が困難であるので、画像218に赤目修正処理を施すか否かにかかわらず画像218にはマークを付加しない。   For example, a mark 300 indicating that the image 210 has been subjected to red-eye correction processing is added to the image 210. Even if the red-eye correction process is performed on the image 212, no mark is added to the image 212 if the correction degree of the red-eye correction process is smaller than a predetermined degree. Further, when the image 214 is captured indoors and the red eye correction process has been performed on the image 214, a mark 302 indicating that the red eye correction process has been performed is added. Furthermore, when the size of the eyes of the person included in the image 218 is smaller than a predetermined size, it is difficult to determine whether the eyes of the person included in the image 218 are red eyes. Regardless of whether or not the image 218 is subjected to the red-eye correction process, no mark is added to the image 218.

本実施形態に係るインデックスプリント200によれば、ユーザは、複数の画像の中から赤目修正処理が施された画像をひと目で把握できる。また、赤目修正処理の度合が予め定められた度合よりも小さい画像に対しては、赤目修正処理を施した旨を示すマークを出力させないことができる。これにより、画像に適切な赤目修正処理を施しているにもかかわらず、画像に適切な赤目修正処理を施していないのに赤目修正処理を施した旨を示すマークを画像に付けているのではないかという誤解を、ユーザに与えることを防止できる。   According to the index print 200 according to the present embodiment, the user can grasp at a glance an image on which red-eye correction processing has been performed from among a plurality of images. In addition, it is possible to prevent a mark indicating that the red-eye correction process has been performed from being output for an image in which the degree of the red-eye correction process is smaller than a predetermined degree. As a result, a mark indicating that the red-eye correction processing has been performed is added to the image although the image has not been subjected to the appropriate red-eye correction processing even though the image has been subjected to appropriate red-eye correction processing. It is possible to prevent the user from being misunderstood if there is any.

また、修正結果出力部160は、出力されるインデックスプリントに、入力された複数の画像のそれぞれに含まれる目に対応した枠、およびマーク等を付加してよい。例えば、修正結果出力部160は、インデックスプリントに、入力された画像に含まれる目が赤目である場合には赤目マーク、または赤色の枠を付加する。また、修正結果出力部160は、インデックスプリントに、入力された画像に含まれる目が金目である場合には金目マーク、または金色の枠を付加する。更に、修正結果出力部160は、インデックスプリントに、入力された画像に含まれる目が黒目である場合にはマーク、および枠を付加しない。   The correction result output unit 160 may add a frame, a mark, and the like corresponding to the eyes included in each of the plurality of input images to the output index print. For example, the correction result output unit 160 adds a red-eye mark or a red frame to the index print when the eyes included in the input image have red eyes. Further, the correction result output unit 160 adds a gold mark or a gold frame to the index print when the eyes included in the input image are gold. Further, the correction result output unit 160 does not add a mark or a frame to the index print when the eyes included in the input image are black eyes.

また、修正結果出力部160は、画像処理結果を表示部180に表示する場合には、表示される複数の画像のそれぞれに、入力された複数の画像に含まれる目に対応する枠、およびマークを付加して表示する。例えば、修正結果出力部160は、表示部180に表示される画像に、入力された画像に含まれる目が赤目である場合には赤目マーク、または赤色の枠を付加する。また、修正結果出力部160は、表示部180に表示される画像に、入力された画像に含まれる目が金目である場合には金目マーク、または金色の枠を付加する。更に、修正結果出力部160は、表示部180に表示される画像に、入力された画像に含まれる目が黒目である場合にはマーク、および枠を付加しない。   Further, when displaying the image processing result on the display unit 180, the correction result output unit 160 includes a frame corresponding to an eye included in each of the plurality of input images, and a mark. Is displayed. For example, the correction result output unit 160 adds a red-eye mark or a red frame to the image displayed on the display unit 180 when the eyes included in the input image have red eyes. In addition, the correction result output unit 160 adds a gold mark or a gold frame to the image displayed on the display unit 180 when the eyes included in the input image are gold. Furthermore, the correction result output unit 160 does not add a mark or a frame to the image displayed on the display unit 180 when the eyes included in the input image are black eyes.

更に、修正結果出力部160は、紙媒体等に画像をプリントして印刷部185から出力する場合には、出力する画像の裏面に所定の枠、または文字列を付加してもよい。例えば、修正結果出力部160は、画像をプリントした媒体の裏面に、入力された画像に含まれる目が赤目である場合には赤目用の枠、またはRedEye等の文字列を付加する。また、修正結果出力部160は、画像をプリントした媒体の裏面に、入力された画像に含まれる目が金目である場合には金目用の枠、またはGoldEye等の文字列を付加する。更に、修正結果出力部160は、画像をプリントした媒体の裏面に、入力された画像に含まれる目が黒目である場合には枠、および文字列を付加しない。   Further, when the image is printed on a paper medium or the like and output from the printing unit 185, the correction result output unit 160 may add a predetermined frame or character string to the back surface of the output image. For example, the correction result output unit 160 adds a red-eye frame or a character string such as RedEye when the eyes included in the input image have red eyes on the back surface of the medium on which the image is printed. Further, the correction result output unit 160 adds a gold frame or a character string such as GoldEye to the back side of the medium on which the image is printed when the eyes included in the input image are gold. Further, the correction result output unit 160 does not add a frame and a character string when the eyes included in the input image are black eyes on the back surface of the medium on which the image is printed.

これにより、ユーザは、画像に修正処理が施される前の目の種類をひと目で判別できると共に、画像に対してどのような種類の修正処理が施されたのかをも、ひと目で判別することができる。   This allows the user to determine at a glance the type of eye before the image is subjected to correction processing, and also to determine at a glance what type of correction processing has been applied to the image. Can do.

図4は、本実施形態に係る赤目補正処理システム10における処理の流れの一例を示す。まず、赤目検出部110は画像入力部100が入力した画像から赤目を検出する(S1000)。また、黒目検出部115は画像入力部100が入力した画像から黒目を検出する。なお、赤目検出部110は、目を検出する複数の目検出部を有していてよく、例えば、赤目用検出部、および金目用検出部を有していてよい。なお、検出エンジンは、目検出部の一例である。そして、赤目検出部110および黒目検出部115は、目の検出に用いた目検出部の種別を識別する情報を取得する(S1010)。また、赤目検出部110は、検出した赤目、または金目の目の信頼度を示す情報も取得する(S1010)。続いて、赤目修正部120は、赤目検出部110が検出した赤目に対して赤目修正処理を施す(S1020)。   FIG. 4 shows an example of the flow of processing in the red-eye correction processing system 10 according to the present embodiment. First, the red eye detection unit 110 detects red eyes from the image input by the image input unit 100 (S1000). The black eye detection unit 115 detects black eyes from the image input by the image input unit 100. The red eye detection unit 110 may include a plurality of eye detection units that detect eyes, and may include, for example, a red eye detection unit and a gold eye detection unit. The detection engine is an example of an eye detection unit. Then, the red eye detection unit 110 and the black eye detection unit 115 acquire information for identifying the type of the eye detection unit used for eye detection (S1010). The red eye detection unit 110 also acquires information indicating the reliability of the detected red eye or gold eye (S1010). Subsequently, the red-eye correction unit 120 performs a red-eye correction process on the red eye detected by the red-eye detection unit 110 (S1020).

赤目修正部120は、更に、赤目修正情報を取得してよい(S1030)。赤目修正情報は、例えば、赤目検出部110において検出された赤目を金目判定ルーチンで赤目と金目とに分離する場合に、金目と判断されたか否かを示す情報、および赤目検出部110において検出された赤目の信頼度等であってよい。なお、金目判定ルーチンは、赤目検出部110が実行してよい。例えば、金目判定ルーチンは、赤目検出部110が検出した赤目候補が、予め定められた色範囲でそれぞれ規定される赤目または金目のいずれであるかを判断する。具体的には、金目判定ルーチンは、赤目検出部110が用いた検出閾値よりG成分、およびB成分のレベルの少なくとも一方に対するR成分のレベルが高い赤目分離閾値を用いて、赤目検出部110が検出した赤目候補が赤目または金目のいずれであるかを判断する。   The red eye correction unit 120 may further acquire red eye correction information (S1030). The red-eye correction information is detected by the red-eye detection unit 110, for example, when the red-eye detected by the red-eye detection unit 110 is separated into the red-eye and the gold-eye in the gold-eye determination routine, and by the red-eye detection unit 110. It may be the reliability of red eyes. The gold eye determination routine may be executed by the red eye detection unit 110. For example, the gold eye determination routine determines whether the red eye candidate detected by the red eye detection unit 110 is a red eye or a gold eye respectively defined by a predetermined color range. Specifically, in the gold eye determination routine, the red eye detection unit 110 uses the red eye separation threshold having a higher R component level for at least one of the G component and B component levels than the detection threshold used by the red eye detection unit 110. It is determined whether the detected red eye candidate is a red eye or a gold eye.

また、金目判定ルーチンは、赤目検出部110が検出した赤目候補が含む画素のR成分、G成分、およびB成分のレベルの平均値の和に対するG成分のレベルの平均値の割合を示す第1特徴量、赤目検出部110が検出した赤目候補が含む画像のR成分のレベルの分散を示す第2特徴量、または、赤目検出部110が検出した赤目候補が含む画素のR成分のレベルの平均値を示す第3特徴量のうちの少なくとも1つの特徴量に基づいて、赤目検出部110が検出した赤目候補が赤目または金目のいずれであるかを判断してよい。赤目修正部120は、金目判定ルーチンにおける赤目/金目判定結果を取得する(S1030)。   The gold eye determination routine also includes a first ratio indicating the ratio of the average value of the G component level to the sum of the average values of the R component, G component, and B component levels of the pixels included in the red eye candidate detected by the red eye detection unit 110. The second feature amount indicating the feature amount, the variance of the level of the R component of the image included in the red eye candidate detected by the red eye detection unit 110, or the average of the level of the R component of the pixel included in the red eye candidate detected by the red eye detection unit 110 Based on at least one feature amount of the third feature amount indicating the value, it may be determined whether the red eye candidate detected by the red eye detection unit 110 is a red eye or a gold eye. The red-eye correction unit 120 acquires the red-eye / gold-eye determination result in the gold-eye determination routine (S1030).

また、赤目修正部120は、赤目修正信頼度を取得する(S1030)。なお赤目修正部120が赤目修正処理を施す前の赤目が示す色が予め定められた色範囲に含まれており、当該赤目の形状が人物の目の形状と予め定められたマッチング度以上の度合でマッチングする場合に、赤目修正信頼度が高いと判断されてよい。続いて、修正度合判断部140は、元の画像に含まれる目の種別を判定する(S1040)。元の画像に含まれる目が黒目検出部115において検出された目である場合には、修正度合判断部140は、当該目を黒目と判定して、判定結果を修正結果出力部160に供給する。修正結果出力部160は、受け取った判定結果に基づいて、画像を出力するときには当該画像に含まれている目が黒目であることを示す情報を画像に対応づける(S1054)。   Further, the red-eye correction unit 120 acquires the red-eye correction reliability (S1030). Note that the color indicated by the red eye before the red-eye correction unit 120 performs the red-eye correction process is included in a predetermined color range, and the red-eye shape is equal to or higher than a predetermined matching degree with the human eye shape. When matching is performed, it may be determined that the red-eye correction reliability is high. Subsequently, the correction degree determination unit 140 determines the type of eyes included in the original image (S1040). When the eyes included in the original image are eyes detected by the black eye detection unit 115, the correction degree determination unit 140 determines the eyes as black eyes and supplies the determination result to the correction result output unit 160. . Based on the received determination result, the correction result output unit 160 associates information indicating that the eyes included in the image are black eyes with the image when outputting the image (S1054).

また、修正度合判断部140は、目の信頼度に基づいて、当該目が実際の目であるか否かを判断する。例えば、修正度合判断部140は、赤目検出部110から受け取った目の信頼度が、予め定められた閾値を超えている場合に当該目を実際の目であると判断する。また、修正度合判断部140は、赤目修正の信頼度が予め定められた閾値を超えている場合に、赤目修正が適切であると判断する。修正結果出力部160は、修正度合判断部140から目の信頼度、および赤目修正の信頼度を受け取って、受け取った目の信頼度、および赤目修正の信頼度がそれぞれ予め定められた閾値を超えていない場合には、誤って目を検出した、または、誤って赤目修正処理を画像に施したと判断する。そして、修正結果出力部160は、修正度合判断部140の判断に基づいて、画像を出力するときには当該画像に含まれている目の信頼度が小さい旨を示す情報を画像に対応づける(S1056)。あるいは、修正結果出力部160は、当該画像に含まれる目の信頼度が予め定められた閾値よりも小さい場合には、当該画像に目の信頼度を示す情報を対応づけなくてもよい。   Further, the correction degree determination unit 140 determines whether the eye is an actual eye based on the eye reliability. For example, the correction degree determination unit 140 determines that the eye is an actual eye when the reliability of the eye received from the red-eye detection unit 110 exceeds a predetermined threshold. Moreover, the correction degree determination unit 140 determines that red-eye correction is appropriate when the reliability of red-eye correction exceeds a predetermined threshold. The correction result output unit 160 receives the eye reliability and the red eye correction reliability from the correction degree determination unit 140, and the received eye reliability and the red eye correction reliability exceed a predetermined threshold value, respectively. If not, it is determined that the eye has been detected by mistake or that the red-eye correction process has been applied to the image by mistake. Based on the determination by the correction degree determination unit 140, the correction result output unit 160 associates information indicating that the eye reliability included in the image is low with the image when outputting the image (S1056). . Alternatively, the correction result output unit 160 may not associate information indicating the eye reliability with the image when the reliability of the eye included in the image is smaller than a predetermined threshold.

また、修正度合判断部140は、赤目検出部110において金目が検出された場合には、金目が検出された旨を示す情報を修正結果出力部160に供給する。そして、修正結果出力部160は、画像を出力するときには当該画像に含まれている目が金目である旨を示す情報を画像に対応づける(S1056)。更に、修正度合判断部140は、元の画像に含まれている目が金目でない場合、および黒目ではない場合、並びに、赤目検出部110が検出した目の信頼度が大きい場合、および赤目修正部120における赤目修正の信頼度が大きい場合には、画像に含まれる目を赤目と判断する。そして、修正結果出力部160は、修正度合判断部140の判断結果に基づいて、画像を出力するときには当該画像に含まれている目が赤目であることを示す情報を画像に対応づける(S1050)。   Further, when the red eye detection unit 110 detects a gold eye, the correction degree determination unit 140 supplies information indicating that the gold eye is detected to the correction result output unit 160. Then, when outputting the image, the correction result output unit 160 associates information indicating that the eye included in the image is a gold eye with the image (S1056). Further, the correction degree determination unit 140 determines that the eye included in the original image is not a gold eye or a black eye, and the reliability of the eye detected by the red eye detection unit 110 is high, and the red eye correction unit. If the reliability of red-eye correction at 120 is high, it is determined that the eye included in the image is red-eye. Then, based on the determination result of the correction degree determination unit 140, the correction result output unit 160 associates information indicating that the eyes included in the image are red eyes when the image is output (S1050). .

図5は、本実施形態に係る赤目補正処理システム10のハードウェア構成の一例を示す。本実施形態に係る赤目補正処理システム10は、ホスト・コントローラ1582により相互に接続されるCPU1505、RAM1520、グラフィック・コントローラ1575、および表示装置1580を有するCPU周辺部と、入出力コントローラ1584によりホスト・コントローラ1582に接続される通信インターフェイス1530、ハードディスクドライブ1540、およびCD−ROMドライブ1560を有する入出力部と、入出力コントローラ1584に接続されるROM1510、フレキシブルディスク・ドライブ1550、および入出力チップ1570を有するレガシー入出力部とを備える。   FIG. 5 shows an example of a hardware configuration of the red-eye correction processing system 10 according to the present embodiment. The red-eye correction processing system 10 according to this embodiment includes a CPU peripheral unit having a CPU 1505, a RAM 1520, a graphic controller 1575, and a display device 1580 connected to each other by a host controller 1582, and a host controller by an input / output controller 1584. Input / output unit having communication interface 1530, hard disk drive 1540, and CD-ROM drive 1560 connected to 1582; Legacy having ROM 1510, flexible disk drive 1550, and input / output chip 1570 connected to input / output controller 1584 And an input / output unit.

ホスト・コントローラ1582は、RAM1520と、高い転送レートでRAM1520をアクセスするCPU1505およびグラフィック・コントローラ1575とを接続する。CPU1505は、ROM1510およびRAM1520に格納されたプログラムに基づいて動作して、各部を制御する。グラフィック・コントローラ1575は、CPU1505等がRAM1520内に設けたフレーム・バッファ上に生成する画像データを取得して、表示装置1580上に表示させる。これに代えて、グラフィック・コントローラ1575は、CPU1505等が生成する画像データを格納するフレーム・バッファを、内部に含んでもよい。   The host controller 1582 connects the RAM 1520 to the CPU 1505 and the graphic controller 1575 that access the RAM 1520 at a high transfer rate. The CPU 1505 operates based on programs stored in the ROM 1510 and the RAM 1520 to control each unit. The graphic controller 1575 acquires image data generated by the CPU 1505 or the like on a frame buffer provided in the RAM 1520 and displays it on the display device 1580. Alternatively, the graphic controller 1575 may include a frame buffer that stores image data generated by the CPU 1505 or the like.

入出力コントローラ1584は、ホスト・コントローラ1582と、比較的高速な入出力装置である通信インターフェイス1530、ハードディスクドライブ1540、CD−ROMドライブ1560を接続する。通信インターフェイス1530は、ネットワークを介して他の装置と通信する。ハードディスクドライブ1540は、赤目補正処理システム10内のCPU1505が使用するプログラムおよびデータを格納する。CD−ROMドライブ1560は、CD−ROM1595からプログラムまたはデータを読み取り、RAM1520を介してハードディスクドライブ1540に提供する。   The input / output controller 1584 connects the host controller 1582 to the communication interface 1530, the hard disk drive 1540, and the CD-ROM drive 1560, which are relatively high-speed input / output devices. The communication interface 1530 communicates with other devices via a network. The hard disk drive 1540 stores programs and data used by the CPU 1505 in the red-eye correction processing system 10. The CD-ROM drive 1560 reads a program or data from the CD-ROM 1595 and provides it to the hard disk drive 1540 via the RAM 1520.

また、入出力コントローラ1584には、ROM1510と、フレキシブルディスク・ドライブ1550、および入出力チップ1570の比較的低速な入出力装置とが接続される。ROM1510は、赤目補正処理システム10が起動時に実行するブート・プログラム、赤目補正処理システム10のハードウェアに依存するプログラム等を格納する。フレキシブルディスク・ドライブ1550は、フレキシブルディスク1590からプログラムまたはデータを読み取り、RAM1520を介してハードディスクドライブ1540に提供する。入出力チップ1570は、フレキシブルディスク・ドライブ1550、例えばパラレル・ポート、シリアル・ポート、キーボード・ポート、マウス・ポート等を介して各種の入出力装置を接続する。   The input / output controller 1584 is connected to the ROM 1510, the flexible disk drive 1550, and the relatively low-speed input / output device of the input / output chip 1570. The ROM 1510 stores a boot program executed when the red-eye correction processing system 10 is started, a program depending on the hardware of the red-eye correction processing system 10, and the like. The flexible disk drive 1550 reads a program or data from the flexible disk 1590 and provides it to the hard disk drive 1540 via the RAM 1520. The input / output chip 1570 connects various input / output devices via a flexible disk drive 1550, for example, a parallel port, a serial port, a keyboard port, a mouse port, and the like.

RAM1520を介してハードディスクドライブ1540に提供される赤目補正プログラムは、フレキシブルディスク1590、CD−ROM1595、またはICカード等の記録媒体に格納されて利用者によって提供される。赤目補正プログラムは、記録媒体から読み出され、RAM1520を介して赤目補正処理システム10内のハードディスクドライブ1540にインストールされ、CPU1505において実行される。赤目補正処理システム10にインストールされて実行される赤目補正プログラムは、CPU1505等に働きかけて、赤目補正処理システム10を、図1から図4にかけて説明した画像入力部100、赤目検出部110、黒目検出部115、赤目修正部120、撮像条件取得部130、赤目色情報取得部135、修正度合判断部140、撮像条件判断部145、画像出力部150、修正結果出力部160、インデックス格納部170、表示部180、および印刷部185として機能させる。   The red-eye correction program provided to the hard disk drive 1540 via the RAM 1520 is stored in a recording medium such as the flexible disk 1590, the CD-ROM 1595, or an IC card and provided by the user. The red-eye correction program is read from the recording medium, installed in the hard disk drive 1540 in the red-eye correction processing system 10 via the RAM 1520, and executed by the CPU 1505. The red-eye correction program installed and executed in the red-eye correction processing system 10 operates on the CPU 1505 or the like to change the red-eye correction processing system 10 into the image input unit 100, the red-eye detection unit 110, and the black-eye detection described with reference to FIGS. 115, red-eye correction unit 120, imaging condition acquisition unit 130, red-eye color information acquisition unit 135, correction degree determination unit 140, imaging condition determination unit 145, image output unit 150, correction result output unit 160, index storage unit 170, display The unit 180 and the printing unit 185 function.

以上、本発明を実施の形態を用いて説明したが、本発明の技術的範囲は上記実施の形態に記載の範囲には限定されない。上記実施の形態に、多様な変更または改良を加え得ることが当業者に明らかである。その様な変更または改良を加えた形態も本発明の技術的範囲に含まれ得ることが、特許請求の範囲の記載から明らかである。   As mentioned above, although this invention was demonstrated using embodiment, the technical scope of this invention is not limited to the range as described in the said embodiment. It will be apparent to those skilled in the art that various modifications or improvements can be added to the above-described embodiment. It is apparent from the scope of the claims that the embodiments added with such changes or improvements can be included in the technical scope of the present invention.

赤目補正処理システム10の概要を示す図である。1 is a diagram showing an outline of a red-eye correction processing system 10. FIG. 赤目補正処理システム10の機能構成を示すブロック図である。2 is a block diagram showing a functional configuration of a red-eye correction processing system 10. FIG. インデックスプリント200を示す図である。FIG. 3 is a diagram illustrating an index print 200. 赤目補正処理システム10の処理の流れを示すフロー図である。FIG. 4 is a flowchart showing a processing flow of the red-eye correction processing system 10. 赤目補正処理システム10のハードウェア構成を示すブロック図である。2 is a block diagram illustrating a hardware configuration of a red-eye correction processing system 10. FIG.

符号の説明Explanation of symbols

10 赤目補正処理システム
12 受付機
14 画像処理装置
16 プリンタ
18 パーソナルコンピュータ
100 画像入力部
110 赤目検出部
115 黒目検出部
120 赤目修正部
130 撮像条件取得部
135 赤目色情報取得部
140 修正度合判断部
145 撮像条件判断部
150 画像出力部
160 修正結果出力部
170 インデックス格納部
180 表示部
185 印刷部
200 インデックスプリント
210、212、214、216、218 画像
300、302、304 マーク
1505 CPU
1510 ROM
1520 RAM
1530 通信インターフェイス
1540 ハードディスクドライブ
1550 フレキシブルディスク・ドライブ
1560 CD−ROMドライブ
1570 入出力チップ
1575 グラフィック・コントローラ
1580 表示装置
1582 ホスト・コントローラ
1584 入出力コントローラ
1590 フレキシブルディスク
1595 CD−ROM
DESCRIPTION OF SYMBOLS 10 Red eye correction processing system 12 Reception machine 14 Image processing apparatus 16 Printer 18 Personal computer 100 Image input part 110 Red eye detection part 115 Black eye detection part 120 Red eye correction part 130 Imaging condition acquisition part 135 Red eye color information acquisition part 140 Correction degree judgment part 145 Imaging condition determination unit 150 Image output unit 160 Correction result output unit 170 Index storage unit 180 Display unit 185 Printing unit 200 Index print 210, 212, 214, 216, 218 Image 300, 302, 304 Mark 1505 CPU
1510 ROM
1520 RAM
1530 Communication interface 1540 Hard disk drive 1550 Flexible disk drive 1560 CD-ROM drive 1570 Input / output chip 1575 Graphic controller 1580 Display device 1582 Host controller 1584 Input / output controller 1590 Flexible disk 1595 CD-ROM

Claims (16)

複数の画像を入力する画像入力部と、
前記画像入力部が入力した複数の画像のそれぞれに含まれる赤目を検出する赤目検出部と、
前記赤目検出部が検出した赤目に赤目修正処理を施す赤目修正部と、
前記赤目修正部による赤目修正処理の修正度合が予め定められた修正度合より大きいか否かを判断する修正度合判断部と、
前記赤目検出部によって赤目が検出されなかった画像については赤目修正処理が施されていない画像を出力し、前記赤目検出部によって赤目が検出された画像については赤目修正処理が施された画像を出力する画像出力部と、
前記画像出力部が出力する画像のうちで、前記予め定められた修正度合より大きい赤目修正処理が施された画像には赤目補正処理が施されたことを示す情報を画像に対応づけて出力し、前記予め定められた修正度合より小さい赤目修正処理が施された画像には赤目修正処理が施されたことを示す情報を画像に対応づけて出力しない修正結果出力部と
を備える赤目補正処理システム。
An image input unit for inputting a plurality of images;
A red-eye detection unit that detects red-eye included in each of the plurality of images input by the image input unit;
A red-eye correction unit for performing red-eye correction processing on the red eye detected by the red-eye detection unit;
And modifying degree determination section for determining whether greater or not than amendments degree of modification degree predetermined red-eye correction processing by the red eye correcting section,
An image that has not been subjected to red-eye correction processing is output for an image in which no red eye has been detected by the red-eye detection unit, and an image that has been subjected to red-eye correction processing is output for an image in which red eye has been detected by the red-eye detection unit An image output unit to
Among the images output by the image output unit, information indicating that the red-eye correction processing has been performed is output in association with the image for the image subjected to the red-eye correction processing greater than the predetermined correction degree. A red-eye correction processing system comprising: a correction result output unit that does not output information indicating that red-eye correction processing has been performed on an image that has been subjected to red-eye correction processing smaller than the predetermined correction degree; .
前記赤目検出部が検出した赤目修正前の赤目の色を示す情報である修正前色情報を取得する赤目色情報取得部
をさらに備え、
前記修正度合判断部は、前記赤目色情報取得部が取得した修正前色情報に基づいて、前記赤目修正部による赤目修正処理の修正度合が予め定められた修正度合より大きいか否かを判断する
請求項1に記載の赤目補正処理システム。
A red-eye color information acquisition unit that acquires pre-correction color information that is information indicating a red-eye color before red-eye correction detected by the red-eye detection unit;
The correction degree determination unit, the front modified red color information acquiring unit has acquired on the basis of the color information, determines greater or not than amendments degree of modification degree predetermined red-eye correction processing by the red eye correcting section The red-eye correction processing system according to claim 1.
前記赤目色情報取得部は、前記赤目修正部が赤目修正処理を施した後の赤目の色を示す情報である修正後色情報をさらに取得し、
前記修正度合判断部は、前記赤目色情報取得部が取得した修正前色情報と修正後色情報とを比較して、前記修正後色情報が示す色の前記修正前色情報が示す色からの変化量が予め定められた範囲内に含まれる場合に、前記赤目修正部の赤目修正処理による修正度合が前記予め定められた修正度合より小さいと判断する
請求項2に記載の赤目補正処理システム。
The red-eye color information acquisition unit further acquires post-correction color information that is information indicating a red-eye color after the red-eye correction unit has performed red-eye correction processing,
The correction degree determination unit compares the pre-correction color information acquired by the red-eye color information acquisition unit with the post-correction color information, and determines the color indicated by the post-correction color information from the color indicated by the pre-correction color information. The red-eye correction processing system according to claim 2, wherein when the amount of change is included in a predetermined range, it is determined that the correction degree by the red-eye correction process of the red-eye correction unit is smaller than the predetermined correction degree.
前記赤目色情報取得部は、前記赤目検出部が検出した赤目修正前の赤目の領域内の色バランスを示す情報を修正前色情報として取得し、
前記修正度合判断部は、前記修正前色情報が示す色バランスが予め定められたバランスの場合に、前記赤目修正部の赤目修正処理による修正度合が前記予め定められた修正度合より小さいと判断する
請求項2に記載の赤目補正処理システム。
The red-eye color information acquisition unit acquires information indicating the color balance in the red-eye region before red-eye correction detected by the red-eye detection unit as pre-correction color information,
When the color balance indicated by the pre-correction color information is a predetermined balance, the correction degree determination unit determines that the correction degree by the red-eye correction process of the red-eye correction unit is smaller than the predetermined correction degree. The red-eye correction processing system according to claim 2.
前記赤目検出部は、検出した赤目の領域の大きさを示す赤目領域情報をさらに取得し、
前記修正度合判断部は、前記赤目検出部が取得した赤目領域情報に基づいて、前記赤目修正部による赤目修正処理の修正度合が予め定められた修正度合より大きいか否かを判断する
請求項1に記載の赤目補正処理システム。
The red-eye detection unit further acquires red-eye area information indicating the size of the detected red-eye area,
The correction degree determination unit, according to claim wherein said red-eye detection unit based on the acquired eye region information to determine whether greater or not than amendments degree of modification degree predetermined red-eye correction processing by the red eye correcting section The red-eye correction processing system according to 1.
前記赤目検出部は、検出した赤目の画像における位置を示す赤目位置情報をさらに取得し、
前記修正度合判断部は、前記赤目検出部が取得した赤目位置情報に基づいて、前記赤目修正部による赤目修正処理の修正度合が予め定められた修正度合より大きいか否かを判断する
請求項1に記載の赤目補正処理システム。
The red-eye detection unit further acquires red-eye position information indicating a position in the detected red-eye image,
The correction degree determination unit, according to claim wherein said red-eye detection unit based on the acquired eye position information, determines whether larger or not than amendments degree of modification degree predetermined red-eye correction processing by the red eye correcting section The red-eye correction processing system according to 1.
前記画像入力部が入力した複数の画像のそれぞれに含まれる黒目を検出する黒目検出部
をさらに備え、
前記修正度合判断部は、前記赤目検出部が検出した赤目と同一の位置に前記黒目検出部が黒目を検出した場合に、前記赤目修正部の赤目修正処理による修正度合が前記予め定められた修正度合より小さいと判断する
請求項1に記載の赤目補正処理システム。
A black eye detection unit for detecting black eyes included in each of the plurality of images input by the image input unit;
When the black-eye detecting unit detects a black eye at the same position as the red eye detected by the red-eye detecting unit, the correction degree determining unit determines the correction degree determined by the red-eye correcting process of the red-eye correcting unit as the predetermined correction. The red-eye correction processing system according to claim 1, wherein the red-eye correction processing system is determined to be smaller than the degree.
前記赤目検出部は、前記複数の画像のそれぞれに含まれる赤目候補と赤目のテンプレート画像とをマッチングして、予め定められた第1のマッチング度以上の赤目候補を赤目として検出し
前記修正度合判断部は、前記第1のマッチング度より大きい予め定められた第2のマッチング度より小さい赤目に前記赤目修正部が赤目修正処理を施した場合に、前記赤目修正部による赤目修正処理の修正度合が前記予め定められた修正度合よりも小さいと判断する
請求項1に記載の赤目補正処理システム。
The red-eye detection unit matches a red-eye candidate and a red-eye template image included in each of the plurality of images, detects a red-eye candidate having a predetermined first matching degree or more as a red eye, and determines the correction degree When the red-eye correction unit has performed red-eye correction processing on red-eye smaller than a predetermined second matching level that is greater than the first matching level, the correction degree of the red-eye correction processing by the red-eye correction unit is The red-eye correction processing system according to claim 1, wherein it is determined that the correction degree is smaller than the predetermined correction degree.
前記画像入力部が入力した画像が、ストロボが発光されているときに撮像されたか否かを判断する撮像条件判断部
をさらに備え、
前記修正度合判断部は、前記撮像条件判断部によってストロボが発光されていないときに撮像されたと判断された画像についての修正度合を、前記予め定められた修正度合よりも小さいと判断する
請求項1に記載の赤目補正処理システム。
An image capturing condition determining unit that determines whether the image input by the image input unit is captured when the strobe is emitting light;
The correction level determination unit determines that the correction level of an image determined to be captured when no strobe light is emitted by the imaging condition determination unit is smaller than the predetermined correction level. The red-eye correction processing system described in 1.
前記画像入力部が入力した画像に含まれる被写体の輝度が、予め定められた値以上であるか否かを判断する撮像条件判断部
をさらに備え、
前記修正度合判断部は、前記撮像条件判断部によって前記被写体の輝度が予め定められた値以上であると判断された画像についての修正度合を、前記予め定められた修正度合よりも小さいと判断する
請求項に記載の赤目補正処理システム。
An imaging condition determination unit that determines whether or not the luminance of the subject included in the image input by the image input unit is greater than or equal to a predetermined value
Further comprising
The correction degree determination unit determines that the correction degree of the image for which the luminance of the subject is determined to be greater than or equal to a predetermined value by the imaging condition determination unit is smaller than the predetermined correction degree. The red-eye correction processing system according to claim 1 .
前記画像入力部が入力した画像の撮像時の撮像装置から被写体までの距離が予め定められた範囲内にあるか否かを判断する撮像条件判断部
をさらに備え、
前記修正度合判断部は、前記撮像条件判断部によって前記距離が予め定められた範囲内にないと判断された画像についての修正度合を、前記予め定められた修正度合よりも小さいと判断する
請求項に記載の赤目補正処理システム。
An imaging condition determination unit that determines whether or not the distance from the imaging device to the subject at the time of imaging the image input by the image input unit is within a predetermined range
Further comprising
The correction degree determination unit determines that a correction degree for an image for which the distance is determined not to be within a predetermined range by the imaging condition determination unit is smaller than the predetermined correction degree. red-eye correction processing system according to 1.
前記画像入力部が入力した画像の撮像時の光源情報から前記画像が室内で撮像されたか否かを判断する撮像条件判断部
をさらに備え、
前記修正度合判断部は、前記撮像条件判断部によって前記画像が室内で撮像されたと判断した画像についての修正度合を、前記予め定められた修正度合よりも大きいと判断する
請求項に記載の赤目補正処理システム。
An imaging condition determination unit that determines whether or not the image is captured indoors from light source information at the time of imaging of the image input by the image input unit
Further comprising
2. The red-eye according to claim 1 , wherein the correction degree determination unit determines that a correction degree of an image determined by the imaging condition determination unit to be captured indoors is larger than the predetermined correction degree. Correction processing system.
前記画像入力部が入力した画像の撮像時の撮像モードがポートレートモードまたは夜景モードであるか否かを判断する撮像条件判断部
をさらに備え、
前記修正度合判断部は、前記撮像条件判断部によって前記画像がポートレートモードまたは夜景モードで撮像されたと判断された画像についての修正度合を、前記予め定められた修正度合よりも大きいと判断する
請求項に記載の赤目補正処理システム。
An imaging condition determination unit that determines whether an imaging mode at the time of imaging an image input by the image input unit is a portrait mode or a night view mode
Further comprising
The correction degree determination unit determines that a correction degree of an image for which the image is determined to be captured in a portrait mode or a night view mode by the imaging condition determination unit is larger than the predetermined correction degree. Item 2. The red-eye correction processing system according to Item 1 .
前記画像入力部が入力した画像に赤目修正処理が施されているか否かを判断する撮像条件判断部
をさらに備え、
前記修正度合判断部は、前記撮像条件判断部によって前記画像に赤目修正処理が施されていると判断された画像についての修正度合を、前記予め定められた修正度合よりも小さいと判断する
請求項に記載の赤目補正処理システム。
An imaging condition determination unit that determines whether or not red-eye correction processing has been performed on the image input by the image input unit
Further comprising
The correction degree determination unit determines that a correction degree of an image determined by the imaging condition determination unit to be subjected to red-eye correction processing is smaller than the predetermined correction degree. red-eye correction processing system according to 1.
赤目修正処理を画像に施す赤目補正処理方法であって、
複数の画像を入力する画像入力段階と、
前記画像入力段階において入力された複数の画像のそれぞれに含まれる赤目を検出する赤目検出段階と、
前記赤目検出段階において検出された赤目に赤目修正処理を施す赤目修正段階と、
前記赤目修正段階による赤目修正処理の修正度合が予め定められた修正度合より大きいか否かを判断する修正度合判断段階と、
前記赤目検出段階において赤目が検出されなかった画像については赤目修正処理が施されていない画像を出力し、前記赤目検出段階において赤目が検出された画像については赤目修正処理が施された画像を出力する画像出力段階と、
前記画像出力段階において出力される画像のうちで、前記予め定められた修正度合より大きい赤目修正処理が施された画像には赤目補正処理が施されたことを示す情報を画像に対応づけて出力させ、前記予め定められた修正度合より小さい赤目修正処理が施された画像には赤目修正処理が施されたことを示す情報を画像に対応づけて出力させない修正結果出力段階と
を備える赤目補正処理方法。
A red-eye correction processing method for performing red-eye correction processing on an image,
An image input stage for inputting a plurality of images;
A red-eye detection step of detecting red-eye included in each of the plurality of images input in the image input step;
A red-eye correction step of performing red-eye correction processing on the red eye detected in the red-eye detection step;
A modified degree determination step of modifying the degree of red eye correcting process by the red eye correcting step determines greater or not than amendments predetermined degree,
An image that has not been subjected to red-eye correction processing is output for an image in which red-eye is not detected in the red-eye detection step, and an image that has been subjected to red-eye correction processing is output for an image in which red-eye is detected in the red-eye detection step An image output stage,
Among the images output in the image output stage, information indicating that the red-eye correction processing has been performed is output in association with the image for the image subjected to the red-eye correction processing greater than the predetermined correction degree. A correction result output step that does not output information indicating that the red-eye correction processing has been performed on the image that has been subjected to the red-eye correction processing smaller than the predetermined correction degree in association with the image. Method.
赤目修正処理を画像に施す赤目補正処理システム用の赤目補正処理プログラムであって、前記赤目補正処理システムを、
複数の画像を入力する画像入力部、
前記画像入力部が入力した複数の画像のそれぞれに含まれる赤目を検出する赤目検出部、
前記赤目検出部が検出した赤目に赤目修正処理を施す赤目修正部、
前記赤目修正部による赤目修正処理の修正度合が予め定められた修正度合より大きいか否かを判断する修正度合判断部、
前記赤目検出部によって赤目が検出されなかった画像については赤目修正処理が施されていない画像を出力し、前記赤目検出部によって赤目が検出された画像については赤目修正処理が施された画像を出力する画像出力部、
前記画像出力部が出力する画像のうちで、前記予め定められた修正度合より大きい赤目修正処理が施された画像には赤目補正処理が施されたことを示す情報を画像に対応づけて出力し、前記予め定められた修正度合より小さい赤目修正処理が施された画像には赤目修正処理が施されたことを示す情報を画像に対応づけて出力しない修正結果出力部
として機能させる赤目補正処理プログラム。
A red-eye correction processing program for a red-eye correction processing system that performs red-eye correction processing on an image, the red-eye correction processing system comprising:
An image input unit for inputting a plurality of images,
A red-eye detection unit that detects red-eye included in each of the plurality of images input by the image input unit;
A red-eye correction unit for performing red-eye correction processing on the red eye detected by the red-eye detection unit;
Fixed degree determining section for determining whether greater or not than amendments degree of modification degree predetermined red-eye correction processing by the red eye correcting section,
An image that has not been subjected to red-eye correction processing is output for an image in which red-eye is not detected by the red-eye detection unit, and an image that has been subjected to red-eye correction processing is output for an image in which red-eye is detected by the red-eye detection unit Image output unit,
Among the images output by the image output unit, information indicating that the red-eye correction processing has been performed is output in association with the image for the image subjected to the red-eye correction processing greater than the predetermined correction degree. A red-eye correction processing program that functions as a correction result output unit that does not output information indicating that red-eye correction processing has been applied to an image that has been subjected to red-eye correction processing smaller than the predetermined correction degree. .
JP2006104874A 2006-04-06 2006-04-06 Red-eye correction processing system, red-eye correction processing method, and red-eye correction processing program Active JP4708250B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006104874A JP4708250B2 (en) 2006-04-06 2006-04-06 Red-eye correction processing system, red-eye correction processing method, and red-eye correction processing program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006104874A JP4708250B2 (en) 2006-04-06 2006-04-06 Red-eye correction processing system, red-eye correction processing method, and red-eye correction processing program

Publications (2)

Publication Number Publication Date
JP2007281847A JP2007281847A (en) 2007-10-25
JP4708250B2 true JP4708250B2 (en) 2011-06-22

Family

ID=38682850

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006104874A Active JP4708250B2 (en) 2006-04-06 2006-04-06 Red-eye correction processing system, red-eye correction processing method, and red-eye correction processing program

Country Status (1)

Country Link
JP (1) JP4708250B2 (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010282340A (en) * 2009-06-03 2010-12-16 Seiko Epson Corp Image processor, image processing method, image processing program and printer for determining state of eye included in image
JP5580623B2 (en) * 2010-03-01 2014-08-27 キヤノン株式会社 Image processing apparatus, image processing apparatus control method, program, and storage medium
DE112011105439B4 (en) 2011-07-11 2021-06-17 Toyota Jidosha Kabushiki Kaisha Red-eye detection device
JP6904788B2 (en) * 2017-05-25 2021-07-21 キヤノン株式会社 Image processing equipment, image processing methods, and programs

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004145287A (en) * 2002-08-30 2004-05-20 Fuji Photo Film Co Ltd Red-eye effect compensating method, picture processing method, printing method and printer
JP2004206689A (en) * 2002-12-11 2004-07-22 Fuji Photo Film Co Ltd Image retouch device and image retouch program
JP2005039544A (en) * 2003-07-15 2005-02-10 Canon Inc Controller, photographing device, and program for controlling the same
JP2005094571A (en) * 2003-09-19 2005-04-07 Fuji Photo Film Co Ltd Camera with red-eye correcting function
JP2005191687A (en) * 2003-12-24 2005-07-14 Canon Inc Image processing apparatus and method thereof, and image pickup apparatus
JP2005286830A (en) * 2004-03-30 2005-10-13 Fuji Photo Film Co Ltd Image processing method, image processing apparatus, and program
JP2005286837A (en) * 2004-03-30 2005-10-13 Fuji Photo Film Co Ltd Device and program for supporting red-eye correction work

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3968837B2 (en) * 1997-10-20 2007-08-29 株式会社ニコン Camera system with red-eye correction function, image processing device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2004145287A (en) * 2002-08-30 2004-05-20 Fuji Photo Film Co Ltd Red-eye effect compensating method, picture processing method, printing method and printer
JP2004206689A (en) * 2002-12-11 2004-07-22 Fuji Photo Film Co Ltd Image retouch device and image retouch program
JP2005039544A (en) * 2003-07-15 2005-02-10 Canon Inc Controller, photographing device, and program for controlling the same
JP2005094571A (en) * 2003-09-19 2005-04-07 Fuji Photo Film Co Ltd Camera with red-eye correcting function
JP2005191687A (en) * 2003-12-24 2005-07-14 Canon Inc Image processing apparatus and method thereof, and image pickup apparatus
JP2005286830A (en) * 2004-03-30 2005-10-13 Fuji Photo Film Co Ltd Image processing method, image processing apparatus, and program
JP2005286837A (en) * 2004-03-30 2005-10-13 Fuji Photo Film Co Ltd Device and program for supporting red-eye correction work

Also Published As

Publication number Publication date
JP2007281847A (en) 2007-10-25

Similar Documents

Publication Publication Date Title
JP4431949B2 (en) Red-eye correction method and apparatus for carrying out this method
JP4344925B2 (en) Image processing apparatus, image processing method, and printing system
US20040258304A1 (en) Apparatus and program for selecting photographic images
JP2005310068A (en) Method for correcting white of eye, and device for executing the method
US20100172577A1 (en) Red eye detecting apparatus, red eye detecting method and red eye detecting program
US20080292181A1 (en) Information Processing Method, Information Processing Apparatus, and Storage Medium Storing a Program
JP2008282267A (en) Scene discrimination device and scene discrimination method
JP6222900B2 (en) Image processing apparatus, image processing method, and program
JP5040624B2 (en) Information processing method, information processing apparatus, and program
US20090092312A1 (en) Identifying Method and Storage Medium Having Program Stored Thereon
US8345970B2 (en) Image processing apparatus, image processing method, and image processing program stored on a computer readable medium
JP2010010946A (en) Image processing apparatus and method, program, and computer readable storage medium
JP4708250B2 (en) Red-eye correction processing system, red-eye correction processing method, and red-eye correction processing program
US20090087089A1 (en) Chin position calculating apparatus, image processing apparatus that employs the chin position calculating apparatus, chin position calculating method and recording medium having a chin position calculating program recorded therein
US8363935B2 (en) Image processing apparatus, image processing method, and computer readable medium storing image processing program
JP4946750B2 (en) Setting method, identification method and program
JP4739087B2 (en) Red-eye correction device, red-eye correction method, and red-eye correction program
JP4158153B2 (en) Face image detection method
JP2008284868A (en) Printing method, printer, and program
US8243328B2 (en) Printing method, printing apparatus, and storage medium storing a program
US20080199079A1 (en) Information Processing Method, Information Processing Apparatus, and Storage Medium Having Program Stored Thereon
JP2008228087A (en) Information processing method, information processor, and program
JP2008228086A (en) Information processing method, information processor, and program
JP2008234626A (en) Information processing method, information processor, and program
JP4581968B2 (en) Image processing technology

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090203

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100830

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100907

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100921

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20110316

R150 Certificate of patent or registration of utility model

Ref document number: 4708250

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250