JP2006344166A - Image processing device and method - Google Patents

Image processing device and method Download PDF

Info

Publication number
JP2006344166A
JP2006344166A JP2005171529A JP2005171529A JP2006344166A JP 2006344166 A JP2006344166 A JP 2006344166A JP 2005171529 A JP2005171529 A JP 2005171529A JP 2005171529 A JP2005171529 A JP 2005171529A JP 2006344166 A JP2006344166 A JP 2006344166A
Authority
JP
Japan
Prior art keywords
failure
image
eye
candidate image
eyes
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
JP2005171529A
Other languages
Japanese (ja)
Inventor
Shinjiro Hori
信二郎 堀
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2005171529A priority Critical patent/JP2006344166A/en
Publication of JP2006344166A publication Critical patent/JP2006344166A/en
Pending legal-status Critical Current

Links

Images

Abstract

<P>PROBLEM TO BE SOLVED: To optimally correct a failure eye image. <P>SOLUTION: A face and an eye are detected from an image. Based on the detection result, whether an eye image is the failure eye image such as an image of a closed eye, a half closed eye, a red eye, an eye not directed to a camera or not is determined by plate pattern matching. When the failure eye image is determined, a correction candidate image for an area determined as the failure eye image is retrieved from a previously created image database, and the size, angle, gradation, brightness, and hue of the retrieved candidate image are corrected for composing a corrected candidate image. <P>COPYRIGHT: (C)2007,JPO&INPIT

Description

本発明は、デジタル写真画像を修正する画像処理装置及び方法に関する。   The present invention relates to an image processing apparatus and method for correcting a digital photographic image.

近年、デジタルカメラの普及によって、写真画像のデジタル化が容易になっている。加えて印刷装置、特にインクジェット方式の高画質化が進み、ユーザが撮影したデジタル画像から写真調の印刷結果を得ることができるようになった。更に、パーソナルコンピュータ上で各種アプリケーションソフトウェアを使用して、撮影された画像データを編集、加工処理することも容易になっている。   In recent years, with the spread of digital cameras, digitization of photographic images has become easier. In addition, the quality of printing apparatuses, particularly inkjet systems, has been improved, and photographic print results can be obtained from digital images taken by users. Furthermore, it is also easy to edit and process captured image data using various application software on a personal computer.

このような背景から、更に簡単に撮影した画像をきれいに印刷できる環境の開発が進められている。   From such a background, development of an environment that can print a photographed image more easily is proceeding.

特に人物を撮影する場合に被写体である人物の目が閉じていたり半目の状態や、撮影された人物の目が赤目になることがよくある。これは、シャッタを切った瞬間に、被写体がこちらに注目していなかったり、フラッシュのプレ発光のため、逆に目を閉じてしまったり、フラッシュ光が、開いた瞳孔で反射されて目が赤く撮影されることによって起こる。   In particular, when a person is photographed, the eye of the person who is the subject is often closed or half-eye, or the photographed person's eyes often have red eyes. This is because the subject is not paying attention to the moment when the shutter is released, or the eyes are closed due to the flash pre-flash, or the flash light is reflected by the open pupil and the eyes are red. It happens by being photographed.

また、集合写真を撮影する場合には、撮影される人物全員の瞬きのタイミングを合わせることなどできないため、複数枚撮影して、極力全員の目が開いている状態の画像を得るようにしている。   In addition, when taking a group photo, it is not possible to synchronize the timing of the blinks of all the people to be photographed, so a plurality of images are taken to obtain an image with all eyes open as much as possible. .

目が閉じているか、または半目の状態になってしまった写真は、人物の印象が悪くとられることが多く、一般に失敗写真と判断される。   A photograph with closed eyes or half-eye is often taken as a bad impression of a person and is generally judged as a failed photograph.

このような目が閉じている失敗写真を補正する方法としては、特許文献1及び2などに開示されている方法が知られている。   As a method for correcting such a failed photograph with closed eyes, methods disclosed in Patent Documents 1 and 2 are known.

特開2001−197296号公報JP 2001-197296 A 特開2002−199202号公報JP 2002-199202 A 特開2002−183731号公報JP 2002-183731 A 特開2003−30667号公報JP 2003-30667 A 特開平8−63597号公報JP-A-8-63597 特開2000−105829号公報JP 2000-105829 A 特開平8−77334号公報JP-A-8-77334 特開2001−216515号公報JP 2001-216515 A 特開平5−197793号公報JP-A-5-197793 特開平11−53525号公報JP-A-11-53525 特開2000−132688号公報JP 2000-132688 A 特開2000−235648号公報JP 2000-235648 A 特開平11−250267号公報JP-A-11-250267 特登録2541688号公報Japanese Patent Registration No. 2541688

一般的な画像処理ソフトを使用して、ユーザが手作業で、閉じている目や半目状態の目、赤目の領域に他の目を合成するという方法はあるが、簡単に満足のいく結果を得ることは困難であった。   Although there is a method of combining other eyes with closed eyes, half-eye, or red-eye areas by using manual image processing software, the user can easily obtain satisfactory results. It was difficult to get.

特許文献1の発明では、目を閉じている画像の修正方法は開示されているが、半目や赤目などの目の画像が完全でない場合の画像に対する補正は記載されていない。   The invention of Patent Document 1 discloses a method for correcting an image with closed eyes, but does not describe correction for an image when an eye image such as a half-eye or a red eye is not perfect.

さらに、特許文献2に記載の発明によれば、連続した2枚の画像が必要となるため、撮影条件に制約があり、使いやすいものではないという問題がある。   Further, according to the invention described in Patent Document 2, since two continuous images are required, there is a problem that there are restrictions on photographing conditions and it is not easy to use.

そこで、本発明は、このような問題点を解決し、失敗目の撮影画像に最適な失敗目補正を実施することができる画像処理装置及び方法を提供することを第1の目的とする。   Accordingly, a first object of the present invention is to provide an image processing apparatus and method capable of solving such problems and performing the failure correction optimum for the failed photographed image.

また、本発明は、このような問題点を解決し、失敗目領域のサイズ、印刷条件に応じて検索条件、補正の品位を変更することができる画像処理装置及び方法を提供することを第2の目的とする。   The second aspect of the present invention provides an image processing apparatus and method capable of solving such problems and changing the search condition and the quality of correction according to the size of the failure area and the printing condition. The purpose.

請求項1の発明は、画像から顔と目を検出する顔器官検出手段と、該顔器官検出手段による目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定手段と、該失敗目判定手段により失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索手段と、該補正候補画像検索手段によって検索された候補画像を修正する候補画像修正手段と、該候補画像修正手段によって修正された候補画像を合成する合成手段とを具備することを特徴とする。   The invention of claim 1 is a face organ detection means for detecting a face and eyes from an image, a failure eye determination means for determining whether or not the eye is a failure based on a result of eye detection by the face organ detection means, A correction candidate image search unit that searches for a correction candidate image for an area determined to be a failure by the failure determination unit; a candidate image correction unit that corrects the candidate image searched by the correction candidate image search unit; And combining means for combining the candidate images corrected by the candidate image correcting means.

請求項1の発明において、失敗目判定手段は、目の領域のパターンが予め定めた開いた目のパターンとマッチングするか否かに基づき失敗目であるか否かを判定することができる。   In the first aspect of the invention, the failure eye determination means can determine whether or not it is a failure based on whether or not the eye area pattern matches a predetermined open eye pattern.

請求項1の発明において、失敗目判定手段は、目が閉じていることを判定することができる。   In the invention of claim 1, the failure eye determination means can determine that the eyes are closed.

請求項1の発明において、失敗目判定手段は、目が半分閉じていることを判定することができる。   In the first aspect of the invention, the failure eye determination means can determine that the eyes are half closed.

請求項1の発明において、失敗目判定手段は、目が赤目であることを判定することができる。   In the first aspect of the invention, the failure eye determination means can determine that the eyes are red eyes.

請求項6の発明は、画像から顔と目を検出する顔器官検出手段と、該顔検出手段による目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定手段と、該失敗目判定手段により失敗目であると判定された失敗目領域に必要とされる品位が所定の基準以上か否かを評価する評価手段と、該評価手段により前記所定の基準以上でないと評価された場合に、前記失敗目判定手段により失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索手段と、該補正候補画像検索手段によって検索された候補画像を修正する候補画像修正手段と、該候補画像修正手段によって修正された候補画像を合成する合成手段とを具備することを特徴とする。   According to a sixth aspect of the present invention, there is provided a facial organ detection means for detecting a face and eyes from an image, a failure eye determination means for determining whether or not a failure has occurred based on a result of eye detection by the face detection means, Evaluation means for evaluating whether or not the quality required for the failure area determined to be a failure by the failure determination means is greater than or equal to a predetermined standard, and the evaluation means evaluates that the quality is not greater than or equal to the predetermined standard. A correction candidate image search unit that searches for a correction candidate image for an area determined to be a failure by the failure determination unit, and a candidate image that corrects the candidate image searched by the correction candidate image search unit The image processing apparatus includes a correcting unit and a combining unit that combines the candidate images corrected by the candidate image correcting unit.

請求項6の発明において、失敗目判定手段は、目の領域のパターンが予め定めた開いた目のパターンとマッチングするか否かに基づき失敗目であるか否かを判定することができる。   In the invention of claim 6, the failure eye determination means can determine whether or not the eye is a failure based on whether or not the eye area pattern matches a predetermined open eye pattern.

請求項6の発明において、評価手段は、失敗目であると判定された領域と画像の大きさの比を評価することができる。   In the invention of claim 6, the evaluation means can evaluate the ratio between the area determined to be a failure and the size of the image.

請求項6の発明において、評価手段は、印刷条件によって評価することができる。   In the invention of claim 6, the evaluation means can perform evaluation based on printing conditions.

請求項9の発明において、印刷条件は、印刷メディアとすることができる。   In the invention of claim 9, the printing condition may be a printing medium.

請求項9の発明において、印刷条件は、印刷品位とすることができる。   In the invention of claim 9, the printing condition can be a print quality.

請求項9の発明において、印刷条件は、印刷レイアウトから評価することができる。   In the invention of claim 9, the printing condition can be evaluated from the printing layout.

請求項13の発明は、画像から顔と目を検出する顔器官検出ステップと、該顔検出ステップによる目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定ステップと、該失敗目判定ステップにより失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索ステップと、該補正候補画像検索ステップによって検索された候補画像を修正する候補画像修正ステップと、該候補画像修正ステップによって修正された候補画像を合成する合成ステップとを具備することを特徴とする。   The invention of claim 13 includes a face organ detection step for detecting a face and eyes from an image, a failure eye determination step for determining whether or not the eye is a failure based on a detection result of eyes by the face detection step, A correction candidate image search step for searching for a correction candidate image for the area determined to be a failure by the failure determination step, a candidate image correction step for correcting the candidate image searched by the correction candidate image search step, A combining step of combining the candidate images corrected by the candidate image correcting step.

請求項13の発明において、失敗目判定ステップは、目の領域のパターンが予め定めた開いた目のパターンとマッチングするか否かに基づき失敗目であるか否かを判定することができる。   In the invention of claim 13, the failure eye determination step can determine whether or not the eye is a failure based on whether or not the eye area pattern matches a predetermined open eye pattern.

請求項13の発明において、失敗目判定ステップは、目が閉じていることを判定することができる。   In the invention of claim 13, the failure eye determination step can determine that the eyes are closed.

請求項13の発明において、失敗目判定ステップは、目が半分閉じていることを判定することができる。   In the invention of claim 13, the failure eye determination step can determine that the eyes are half closed.

請求項13の発明において、失敗目判定ステップは、目が赤目であることを判定することができる。   In the invention of claim 13, the failure eye determination step can determine that the eyes are red eyes.

請求項18の発明は、画像から顔と目を検出する顔器官検出ステップと、該顔検出ステップによる目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定ステップと、該失敗目判定ステップにより失敗目であると判定された失敗目領域に必要とされる品位が所定の基準以上か否かを評価する評価ステップと、該評価ステップにより前記所定の基準以上でないと評価された場合に、前記失敗目判定ステップにより失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索ステップと、該補正候補画像検索ステップによって検索された候補画像を修正する候補画像修正ステップと、該候補画像修正ステップによって修正された候補画像を合成する合成ステップとを具備することを特徴とする。   The invention of claim 18 includes a face organ detection step for detecting a face and eyes from an image, a failure eye determination step for determining whether or not the eye is a failure based on an eye detection result by the face detection step, An evaluation step for evaluating whether or not the quality required for the failure area determined to be a failure by the failure determination step is greater than or equal to a predetermined criterion, and the evaluation step evaluates that the quality is not greater than or equal to the predetermined criterion. A correction candidate image search step for searching for a correction candidate image for the region determined to be a failure by the failure determination step, and a candidate image for correcting the candidate image searched by the correction candidate image search step It comprises a correction step and a synthesis step for synthesizing the candidate images corrected by the candidate image correction step.

請求項18の発明において、失敗目判定ステップは、目の領域のパターンが予め定めた開いた目のパターンとマッチングするか否かに基づき失敗目であるか否かを判定することができる。   In the invention of claim 18, the failure eye determination step can determine whether or not it is a failure based on whether or not the eye area pattern matches a predetermined open eye pattern.

請求項18の発明において、評価ステップは、失敗目であると判定された領域と前記画像の大きさの比を評価することができる。   In the invention of claim 18, the evaluation step can evaluate a ratio of the size of the area determined to be a failure and the size of the image.

請求項18の発明において、評価手段は、印刷条件によって評価することができる。   In the invention of claim 18, the evaluation means can perform evaluation based on printing conditions.

請求項21の発明において、印刷条件は、印刷メディアとすることができる。   In the twenty-first aspect, the printing condition may be a print medium.

請求項21の発明において、印刷条件は、印刷品位とすることができる。   In the invention of claim 21, the printing condition can be a print quality.

請求項21の発明において、前記印刷条件は、印刷レイアウトから評価することができる。   In the invention of claim 21, the printing conditions can be evaluated from a printing layout.

請求項25のプログラムは、コンピュータを、画像から顔と目を検出する顔器官検出手段と、該顔器官検出手段による目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定手段と、該失敗目判定手段により失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索手段と、該補正候補画像検索手段によって検索された候補画像を修正する候補画像修正手段と、該候補画像修正手段によって修正された候補画像を合成する合成手段として機能させる。   26. The program according to claim 25, wherein the computer detects a facial organ detection unit that detects a face and an eye from an image, and determines whether or not a failure has occurred based on a detection result of the eye by the facial organ detection unit. Means, a correction candidate image search means for searching for a correction candidate image for the area determined to be a failure by the failure determination means, and a candidate image correction for correcting the candidate image searched by the correction candidate image search means And a combining means for combining the candidate images corrected by the candidate image correcting means.

請求項26のプログラムは、コンピュータを、画像から顔と目を検出する顔器官検出手段と、該顔検出手段による目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定手段と、該失敗目判定手段により失敗目であると判定された失敗目領域に必要とされる品位が所定の基準以上か否かを評価する評価手段と、該評価手段により前記所定の基準以上でないと評価された場合に、前記失敗目判定手段により失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索手段と、該補正候補画像検索手段によって検索された候補画像を修正する候補画像修正手段と、該候補画像修正手段によって修正された候補画像を合成する合成手段として機能させる。   27. The program according to claim 26, wherein the computer detects facial organ detection means for detecting a face and eyes from an image, and failure eye determination means for determining whether or not a failure has occurred based on a result of eye detection by the face detection means. And an evaluation means for evaluating whether or not the quality required for the failure area determined to be a failure by the failure determination means is not less than a predetermined standard, and the evaluation means does not exceed the predetermined standard. The correction candidate image search means for searching for a correction candidate image for the area determined to be a failure by the failure determination means, and the candidate image searched by the correction candidate image search means is corrected. And a candidate image correcting means for combining the candidate image corrected by the candidate image correcting means.

本発明によれば、上記のように構成したので、失敗した目の撮影画像に最適な失敗目補正を実施することができる。   According to the present invention, because it is configured as described above, it is possible to perform failure eye correction that is optimal for a captured image of a failed eye.

また、本発明によれば、上記のように構成したので、失敗目領域のサイズ、印刷条件に応じて、検索条件、補正の品位を変更することができる。   Further, according to the present invention, since it is configured as described above, the search condition and the quality of correction can be changed according to the size of the failure area and the printing condition.

以下、本発明の実施の形態を図面を参照して詳細に説明する。なお、本実施の形態は、本発明をプリンティングシステムに適用した例について説明するが、本発明はこの例に限定されるものではない。   Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. Although the present embodiment describes an example in which the present invention is applied to a printing system, the present invention is not limited to this example.

<第1の実施の形態>
図1は本発明の第1の実施の形態を示す。これは画像処理装置の例である。
<First Embodiment>
FIG. 1 shows a first embodiment of the present invention. This is an example of an image processing apparatus.

(画像処理装置)
図1において、画像処理装置101は、CPU(central processing unit)102、ROM(read only memory)103、RAM(random access memory)104、2次記憶装置105、表示装置106、入力装置107、I/F(interface)制御部108で構成されている。
(Image processing device)
In FIG. 1, an image processing apparatus 101 includes a central processing unit (CPU) 102, a read only memory (ROM) 103, a random access memory (RAM) 104, a secondary storage device 105, a display device 106, an input device 107, an I / I An F (interface) control unit 108 is included.

CPU102は、ROM103、RAM104、2次記憶装置105に格納されているプログラムを適時動作させて周辺機器を制御する。   The CPU 102 controls peripheral devices by operating the programs stored in the ROM 103, RAM 104, and secondary storage device 105 in a timely manner.

ROM103にはBIOS(basic input/output system)と呼ばれる周辺機器の入出力を制御するプログラムが格納されていて、電源投入時に実行され、RAM104やその他の入出力装置の初期化を行う。RAM104は作業用のメモリ空間を提供している。2次記憶装置105はHDD(hard disk drive)やCD−ROM(compact disk-ROM)に代表される大容量磁気記憶装置などで構成されており、OS(operating system)、アプリケーションや各種データが格納されている。   The ROM 103 stores a program called BIOS (basic input / output system) for controlling input / output of a peripheral device, which is executed when the power is turned on, and initializes the RAM 104 and other input / output devices. The RAM 104 provides a working memory space. The secondary storage device 105 includes a large-capacity magnetic storage device represented by an HDD (hard disk drive) or a CD-ROM (compact disk-ROM), and stores an OS (operating system), applications, and various data. Has been.

表示装置106はCRT(cathode ray tube)ディスプレイや液晶ディスプレイなどの表示装置である。表示装置106にはアプリケーションの処理結果や、メッセージなどが表示される。入力装置107はキーボード、マウスなどのユーザの指示を入力する機器であって、ユーザの指示を画像処理装置101に入力する機能を提供している。   The display device 106 is a display device such as a CRT (cathode ray tube) display or a liquid crystal display. The display device 106 displays application processing results, messages, and the like. The input device 107 is a device for inputting user instructions such as a keyboard and a mouse, and provides a function for inputting user instructions to the image processing apparatus 101.

I/F制御部108は外部周辺機器とのインタフェースを提供している。インタフェースとしては、パラレルポートとも呼ばれるIEEE1284やSCSI(small computer system interface)、更にはUSB(universal serial bus)、IEEE1394といったシリアルバスなどが使用できる。どのインタフェースを使用するかは画像処理装置101の構成、外部周辺機器の対応によって決まる。   The I / F control unit 108 provides an interface with an external peripheral device. As the interface, IEEE1284, which is also called a parallel port, SCSI (small computer system interface), USB (universal serial bus), IEEE1394, or a serial bus can be used. Which interface is used depends on the configuration of the image processing apparatus 101 and the correspondence of external peripheral devices.

外部周辺機器としてはデジタルスチルカメラ109、メモリカードリーダ/ライタ110、プリンタ111がある。   External peripheral devices include a digital still camera 109, a memory card reader / writer 110, and a printer 111.

デジタルスチルカメラ109は、撮影装置であり、ユーザが撮影した撮影画像データが格納されている。撮影画像データはデジタルスチルカメラ109をI/F制御部108を介して画像処理装置101に接続するか、あるいは、デジタルスチルカメラに内蔵される記録メディアを取り出して、メモリカードリーダ/ライタ110に挿入して、撮影画像データを、2次記憶装置105に転送して格納することができる。更に、格納された撮影画像データはプリンタ111で印刷することが可能である。   The digital still camera 109 is a photographing device and stores photographed image data photographed by a user. For captured image data, the digital still camera 109 is connected to the image processing apparatus 101 via the I / F control unit 108, or a recording medium built in the digital still camera is taken out and inserted into the memory card reader / writer 110. Thus, the captured image data can be transferred to the secondary storage device 105 and stored. Further, the stored photographed image data can be printed by the printer 111.

(画像処理アプリケーション)
図2はユーザインタフェース(以下「UI」という。)の一例を示す。202〜205は、それぞれ、画像選択タブ、補正選択タブ、用紙選択タブ、レイアウト/印刷タブである。
(Image processing application)
FIG. 2 shows an example of a user interface (hereinafter referred to as “UI”). Reference numerals 202 to 205 denote an image selection tab, a correction selection tab, a paper selection tab, and a layout / printing tab, respectively.

画像選択タブ202を選択すると、図示はしていないが、これから補正や印刷を行うための画像を選択することができる。画像の選択には入力装置107(図1)を使用する。用紙選択タブ204を選択すると、図示はしていないが、これから印刷するときに使用する紙の種類や大きさ、印刷品位を選択することできる。レイアウト/印刷205を選択すると、図示しないが、印刷のレイアウト、例えば用紙全面に一枚の画像を印刷するか、または複数の画像が選択されている場合に用紙全面に4枚の画像を配置して印刷するなどのレイアウトが選択できる。   When the image selection tab 202 is selected, although not shown, an image for correction or printing can be selected. An input device 107 (FIG. 1) is used to select an image. When the paper selection tab 204 is selected, although not shown, it is possible to select the type and size of paper to be used for printing and the print quality. When layout / print 205 is selected, although not shown, a print layout, for example, one image is printed on the entire sheet, or four images are arranged on the entire sheet when a plurality of images are selected. You can select a layout such as printing.

補正選択タブ203を選択すると、図2に示すようなUIが表示装置106に表示され、失敗目補正処理を選択するボタン206や、他の補正を選択するボタンがUI上に選択できるようになっている。さらには補正対象となる画像207が表示されている。ユーザは画像207を見ながら補正強度の修正や補正パターンの変更が可能になっている。   When the correction selection tab 203 is selected, a UI as shown in FIG. 2 is displayed on the display device 106, and a button 206 for selecting failure correction processing and a button for selecting another correction can be selected on the UI. ing. Further, an image 207 to be corrected is displayed. The user can correct the correction intensity and change the correction pattern while viewing the image 207.

(画像解析)
図3は画像処理手順の一例を示すフローチャートである。ここに、ユーザが、画像処理アプリケーションを実行して、図2のUIにおいて、補正対象画像207を選択して、補正対象画像207に失敗目補正処理206を選択して実行ボタン210を押して、補正開始の指示を行った、との仮定の下に、画像処理を説明する。
(Image analysis)
FIG. 3 is a flowchart illustrating an example of an image processing procedure. Here, the user executes the image processing application, selects the correction target image 207 in the UI of FIG. 2, selects the failure correction processing 206 for the correction target image 207, and presses the execution button 210 to perform correction. Image processing will be described under the assumption that a start instruction has been issued.

初めに、ユーザが失敗目補正処理を自動で実行するか、または手動で実行するかを、自動タブ208、手動タブ209を選択する。手動タブ209が選択された場合は、補正対象画像207中にある失敗目の領域を、入力装置107によって指定する。自動タブ208が選択され、かつ実行ボタン210が押されると、S301で、補正対象画像207に対して顔検出を行う。   First, the user selects the automatic tab 208 or the manual tab 209 as to whether to execute the failure correction process automatically or manually. When the manual tab 209 is selected, a failure area in the correction target image 207 is designated by the input device 107. When the automatic tab 208 is selected and the execution button 210 is pressed, face detection is performed on the correction target image 207 in S301.

この顔検出手法としては、すでに様々な手法が提案されている。特許文献3に記載の手法によれば、入力画像から目領域を検出し、目領域周辺を顔候補領域とする。この顔候補領域に対して、画素毎の輝度勾配、及び輝度勾配の重みを算出し、これらの値が、あらかじめ設定されている理想的な顔基準画像の勾配、及び勾配の重みと比較したときに、各勾配間の平均角度が所定の閾値以下であった場合、入力画像は顔領域を有すると判定される。   As this face detection method, various methods have already been proposed. According to the technique described in Patent Literature 3, an eye area is detected from an input image, and the periphery of the eye area is set as a face candidate area. When the brightness gradient for each pixel and the brightness gradient weight are calculated for this face candidate area, and these values are compared with the preset ideal face reference image gradient and the gradient weight. In addition, when the average angle between the gradients is equal to or smaller than a predetermined threshold, it is determined that the input image has a face area.

また、特許文献4に記載の手法によれば、まず画像中から肌色領域を検出し、同領域内において、人間の虹彩色画素を検出することにより、目の位置が検出される。   Further, according to the technique described in Patent Document 4, first, a skin color area is detected from an image, and an eye position is detected by detecting a human iris color pixel in the area.

さらに、特許文献5に記載の手法によれば、複数の顔の形状をしたテンプレートと画像とのマッチング度を計算し、マッチング度が最も高いテンプレートを選択し、最も高かったマッチング度があらかじめ定められた閾値以上であれば、選択されたテンプレート内の領域を顔候補領域とし、このテンプレートを用いることにより、目の位置が検出される。   Further, according to the method described in Patent Document 5, the degree of matching between a template having a plurality of face shapes and an image is calculated, the template with the highest matching degree is selected, and the highest degree of matching is determined in advance. If it is equal to or greater than the threshold value, the region in the selected template is set as a face candidate region, and the eye position is detected by using this template.

さらに、特許文献6に記載の手法によれば、まず、鼻画像パターンをテンプレートとし、画像全体、あるいは画像中の指定された領域を走査し最もマッチする位置が鼻の位置として出力される。ついで、画像の鼻の位置よりも上の領域を目が存在する領域と考え、目画像パターンをテンプレートとして目存在領域を走査してマッチングをとり、ある閾値よりもマッチ度が大きい画素の集合である目存在候補位置集合が求められる。さらに、目存在候補位置集合に含まれる連続した領域をクラスタとして分割し、各クラスタと鼻位置との距離が算出される。その距離が最も短くなるクラスタを、目が存在するクラスタと決定することにより、器官位置が検出される。   Furthermore, according to the method described in Patent Document 6, first, the nose image pattern is used as a template, and the entire image or a specified region in the image is scanned, and the best matching position is output as the nose position. Next, the region above the nose position of the image is considered as the region where the eyes exist, and the eye presence region is scanned using the eye image pattern as a template for matching, and a set of pixels having a degree of matching greater than a certain threshold value. A certain eye presence candidate position set is obtained. Further, continuous regions included in the eye presence candidate position set are divided as clusters, and the distance between each cluster and the nose position is calculated. By determining the cluster having the shortest distance as the cluster in which the eye exists, the organ position is detected.

その他、顔及び器官位置を検出する方法としては、特許文献7乃至14など、数多くの手法が提案されている。本実施の形態では特に手法を限定しない。   In addition, as a method for detecting the face and organ positions, many methods such as Patent Documents 7 to 14 have been proposed. In this embodiment, the method is not particularly limited.

ここに、顔検出の結果、例えば図4に示すような画像401において、次のように仮定する。すなわち、顔領域402とは、LT(左上)及びRB(右下)の2点で定義される矩形領域であるものとする。また、右目領域403は、REyeT(右目目頭)及びREyeB(右目目尻)で定義される2点で検出され、左目領域404は、LEyeT(左目目頭)及びLEyeB(左目目尻)で定義される2点で検出されるものとする。   Here, as a result of the face detection, for example, an image 401 as shown in FIG. 4 is assumed as follows. That is, the face area 402 is a rectangular area defined by two points, LT (upper left) and RB (lower right). The right eye region 403 is detected at two points defined by REyeT (right eye head) and REyeB (right eye corner), and the left eye region 404 is detected by two points defined by LEyeT (left eye head) and LEyeB (left eye corner). Shall be detected.

S301で、顔と目が検出されると、S302で検出された目領域が失敗目であるか否かの判定を行う。ここで、失敗目とは例えば、人物の目が半開き(半目)や閉じた状態になっている目、目線がカメラを向いていない目、フラッシュの光により赤目になっている目、目の色が変色している目のことである。この失敗目であるか否かの判定には、目領域を、目領域の白目、虹彩、瞳孔部分に分割して、虹彩部分が円形に近い形をしているかの評価を行う。さらには、目のテンプレート(目が開いている画像)とのパターンマッチングを行い、所定の確度で、目が開いている、閉じている、変目の状態である、との評価を行う。また、瞳孔部分が赤いかの判定を行えば、赤目でないかの評価も実行できる。しかし、失敗目の評価項目はこれに限定されず、様々な評価量を定義することにより、失敗目の判定を行うことができる。   If a face and eyes are detected in S301, it is determined whether or not the eye area detected in S302 is a failure. Here, for example, the eyes of a person are half-opened (half-eye) or closed, eyes whose eyes are not facing the camera, red eyes due to flash light, eye color Is a discolored eye. To determine whether or not this is a failure, the eye area is divided into white eyes, irises, and pupil portions of the eye regions, and an evaluation is made as to whether the iris portion has a nearly circular shape. Furthermore, pattern matching with an eye template (image with open eyes) is performed, and evaluation is made with a predetermined accuracy that the eyes are open, closed, or in a state of change. In addition, if it is determined whether the pupil portion is red, it is possible to evaluate whether the pupil is red. However, the evaluation item for the failure is not limited to this, and it is possible to determine the failure by defining various evaluation amounts.

S303では、S302で算出した複数の評価量に基づいて、検出されたすべての目領域に対して失敗目の判定を行う。   In S303, determination of failure is performed for all detected eye regions based on the plurality of evaluation amounts calculated in S302.

S303で、失敗目が検出されなかった場合には、S304へ進み、ユーザに対して失敗目が検出されなかったことを通知して、次の指示を待つ。自動の失敗目検出の検出率を100%にすることは不可能である。そのため、画像401の中に失敗目が撮影されていたとしても、検出できないことがある。検出できない場合には、S305で、ユーザは失敗目と思う目領域を指定して失敗目補正の実行を指示できる。もしユーザからの領域指定がなく、キャンセルボタン211が押されると、S306へ進み、ユーザに失敗目補正を継続するか、終了するかを問うメッセージを表示する。S306でユーザが失敗目補正の継続を望んだ場合には、再度S304へ進む。他方、失敗目補正の終了を望んだ場合は、処理を終了する。   If no failure is detected in S303, the process proceeds to S304 to notify the user that no failure has been detected and wait for the next instruction. It is impossible to set the detection rate of automatic failure detection to 100%. For this reason, even if a failure is photographed in the image 401, it may not be detected. If it cannot be detected, in S305, the user can designate the eye area that is considered to be a failure and instruct the execution of the failure correction. If there is no area designation from the user and the cancel button 211 is pressed, the process proceeds to S306 to display a message asking the user whether to continue or end the failure correction. If the user wishes to continue failure correction in S306, the process proceeds to S304 again. On the other hand, if it is desired to end the failure correction, the process ends.

S303で失敗目が検出された場合か、またはS306でユーザが失敗目領域を指定した場合には、S307へ進む。S307では、補正候補画像の検索を行う。修正候補画像データベース310は、あらかじめ作成された画像データベースである。この画像データベースには、縦横比、明るさ、虹彩の色、人種、年齢、などの目画像の特徴を分類する情報が付加された目画像が格納されている。なお、自動タブ208にあるチェックボックスを指定して検索条件を与えるようにしてもよい。さらには、ユーザ自身や家族の写真から成功した目の画像を修正候補画像DBに追加できるようにしても良い。   If a failure is detected in S303, or if the user designates a failure region in S306, the process proceeds to S307. In S307, a correction candidate image is searched. The correction candidate image database 310 is an image database created in advance. The image database stores eye images to which information for classifying eye image features such as aspect ratio, brightness, iris color, race, age, and the like is added. Note that a search condition may be given by designating a check box on the automatic tab 208. Furthermore, you may enable it to add to the correction candidate image DB the image of the eyes which succeeded from the user's own or family's photograph.

S307では、検出された顔領域402の特徴量を判定して、修正候補画像DBの中から最適な修正候補画像を選択する。検索結果は、ユーザに候補画像をして見せるようにしても良い。ユーザが、選ばれた候補画像を気に入らなかった場合、次の候補画像を見せることで補正結果の満足度をあげるようにしても良い。   In S307, the feature amount of the detected face area 402 is determined, and an optimal correction candidate image is selected from the correction candidate image DB. The search result may be shown as a candidate image to the user. If the user does not like the selected candidate image, the satisfaction of the correction result may be increased by showing the next candidate image.

S307で検出された複数の失敗目領域に対する補正候補画像を選択して、S308へ進む。S308では検出された目の領域の座標REyeTとREyeBか、またはLEyeTとLEyeBの値にマッチングするように、修正候補画像を変換する。この変換により、目画像のサイズ調整、角度調整、周辺領域をぼかす調整、元画像の目領域付近の色の明るさ、色相などを加味して修正候補画像の色調整を行う。   The correction candidate images for the plurality of failed areas detected in S307 are selected, and the process proceeds to S308. In S308, the correction candidate image is converted so as to match the coordinates REyeT and REyeB of the detected eye region or the values of LEyeT and LEyeB. By this conversion, the color adjustment of the correction candidate image is performed in consideration of the size adjustment, the angle adjustment, the blurring of the peripheral area, the brightness of the color near the eye area of the original image, the hue, and the like.

S309で、S308で作成した修正候補画像を元画像に合成して、失敗目補正画像を得ることができる。   In step S309, the correction candidate image created in step S308 can be combined with the original image to obtain a failure correction image.

<第2の実施の形態>
第1の実施の形態では、画像全体に対する失敗目の大きさや、実際に印刷された場合の失敗目の大きさなどは、何も考慮されていなかった。しかし、撮影された画像において失敗目の大きさが小さい場合には、厳密な補正候補画像の検索や、補正候補画像の修正が必要でない場合もある。また、失敗目補正画像の使用方法において、プリンタで印刷する場合などは、その印刷サイズ、印刷品位によっては、補正を厳密に行う必要もないことがある。
<Second Embodiment>
In the first embodiment, no consideration is given to the size of the failure for the entire image, the size of the failure for actual printing, and the like. However, if the size of the failure in the captured image is small, it may not be necessary to search for a correct correction candidate image or to correct the correction candidate image. Further, in the method of using the failure correction image, when printing is performed with a printer, it may not be necessary to strictly perform correction depending on the print size and print quality.

そこで、第2の実施の形態では、失敗目の大きさや、印刷などの使用時の失敗目の大きさを考慮した。以下、これらの点を考慮した失敗目補正を説明する。図5に画像処理のフロー図を示す。図5において、S301からS310までのステップは、図3と同一ステップを示す。   Therefore, in the second embodiment, the size of the failure and the size of the failure during use such as printing are considered. Hereinafter, the failure correction considering these points will be described. FIG. 5 shows a flowchart of image processing. In FIG. 5, the steps from S301 to S310 are the same as those in FIG.

S303で失敗目が検出されると、S511へ進み、S511において、失敗目の大きさと、どのように印刷されるかを調査する。   If a failure is detected in step S303, the process proceeds to step S511. In step S511, the size of the failure and how it is printed are checked.

S512では、S511で得られた結果から、失敗目画像領域が必要とする品位を判定する。   In S512, the quality required for the failed image area is determined from the result obtained in S511.

図6は失敗目が撮影された画像の例を示す。図6において、601は画像全体であり、その縦、横は画素数で表すことができる。例えば200万画素のデジタルカメラで撮影した画像は、縦×横が1600画素×1200画素程度である。目サイズ602は失敗目の大きさを示す。この目サイズ602はXEyeTとXEyeB(XはRまたはL)の距離で求めることができる。   FIG. 6 shows an example of an image in which a failure is taken. In FIG. 6, reference numeral 601 denotes the entire image, and the vertical and horizontal directions can be represented by the number of pixels. For example, an image taken with a digital camera having 2 million pixels is about 1600 pixels × 1200 pixels in the vertical and horizontal directions. The eye size 602 indicates the size of the failed eye. The eye size 602 can be obtained by a distance between XEyeT and XEyeB (X is R or L).

画像601と失敗目の大きさとの比率は、画像601の縦と横のうちの小さい方の画素数と、目サイズ602との比で定義する。そして、この比率が所定の値以下である場合には、失敗目画像の品位は低いと評価する。例えば、画像に対して失敗目の大きさの比が10%以下であれば品位が低いと判定する。   The ratio between the image 601 and the size of the failed eye is defined by the ratio between the smaller number of pixels of the image 601 in the vertical and horizontal directions and the eye size 602. When this ratio is equal to or less than a predetermined value, it is evaluated that the quality of the failed image is low. For example, if the ratio of the size of failure to the image is 10% or less, it is determined that the quality is low.

ついで、印刷条件から失敗目の品位を判定する。例えば画像601を、A4サイズの用紙に印刷する場合と、図6(b)に605で示すように、A4サイズの用紙に4枚の画像を同時に印刷する場合では、失敗目のサイズは1/2になる。したがって、A4サイズを基準として、失敗目が印刷されるメディアでどの程度の大きさになるのかを算出して失敗眼領域の品位の評価に使用できる。   Next, the quality of the failure is determined from the printing conditions. For example, when the image 601 is printed on A4 size paper, and when four images are simultaneously printed on A4 size paper as indicated by 605 in FIG. 2 Therefore, it is possible to calculate the size of the failed eye on the medium to be printed on the basis of the A4 size and use it for evaluating the quality of the failed eye area.

また、印刷時には印刷品位が指定できる。印刷品位のパラメータとしては、メディアの種類、印刷画像の品位の指定を使うことができる。一般的に、光沢紙、写真用紙などの高品位メディアは品位が高く、普通紙などは品位が低いと判断できる。そこで、印刷メディアに普通紙が選択されている場合は、失敗目領域の品位の評価量を所定の割合で減じる。例えば普通紙では失敗目領域の品位を1/2にする。また、印刷画像の品位は、ドラフト印刷、標準印刷、高画質印刷などの印刷の画質によってそのレベルが規定されていることが多い。そこで、印刷画質の品位が低くても問題ないドラフト印刷では、失敗目領域の品位の評価量を、例えば1/2といった所定の割合で減じる。   Also, the print quality can be specified during printing. As the print quality parameters, media type and print image quality designation can be used. In general, it can be determined that high quality media such as glossy paper and photographic paper have high quality, and plain paper and the like have low quality. Therefore, when plain paper is selected as the print medium, the evaluation amount of the quality of the failed area is reduced by a predetermined ratio. For example, for plain paper, the quality of the failed area is halved. Further, the quality of the print image is often defined by the image quality of printing such as draft printing, standard printing, and high-quality printing. Therefore, in the draft printing which does not cause any problem even if the quality of the print image quality is low, the evaluation amount of the quality of the failed area is reduced by a predetermined ratio such as 1/2.

印刷メディアの条件は、アプリケーション201の用紙選択タブ204、レイアウト/印刷タブ205で同じような設定になっているかを調べると良い。   It is preferable to check whether the print media conditions are the same in the paper selection tab 204 and the layout / print tab 205 of the application 201.

S512で品位を評価した結果、失敗目領域の品位が所定の値よりも大きい場合には、第1の実施の形態と同様に、S307からS309までの処理を行う。他方、品位が所定の値よりも小さい場合には、S513へ進み、S513において、同一画像内に失敗目と判定されなかった画像があるか否かを調べ、S514で候補領域として使用できるかの判定を行う。S514の判定では、失敗目と失敗目でない領域とのサイズの所定の割合が、例えば0.5以上1.5以下である場合には、候補領域として採用できるものとする。また、複数の失敗目でない領域がある場合には、目領域のサイズ、色の一致度などの複数の評価量から一番似ているものを採用して、S308へ進む。   As a result of evaluating the quality in S512, if the quality of the failure area is larger than a predetermined value, the processing from S307 to S309 is performed as in the first embodiment. On the other hand, if the quality is smaller than the predetermined value, the process proceeds to S513, where it is checked whether there is an image that has not been determined to be a failure in the same image, and whether it can be used as a candidate area in S514. Make a decision. In the determination of S514, when the predetermined ratio of the size of the failure and the non-failure area is, for example, not less than 0.5 and not more than 1.5, it can be adopted as a candidate area. If there are a plurality of non-failed areas, the most similar one is selected from a plurality of evaluation amounts such as the size of the eye area and the color matching degree, and the process proceeds to S308.

他方、S514で候補となる目領域がなかった場合には、標準候補画像データベース(S516)にあらかじめ格納されている標準目画像から候補画像を選択して、S308へ進む。S308以降は、第1の実施の形態と同じである。   On the other hand, if there is no candidate eye region in S514, a candidate image is selected from the standard eye images stored in advance in the standard candidate image database (S516), and the process proceeds to S308. The steps after S308 are the same as those in the first embodiment.

(その他)
本発明は、複数の機器(例えばホストコンピュータ、インタフェース機器、リーダ、プリンタ等)から構成されるシステムに適用しても、1つの機器からなる装置(例えば、複写機、ファクシミリ装置等)に適用しても良い。
(Other)
Even if the present invention is applied to a system constituted by a plurality of devices (for example, a host computer, an interface device, a reader, a printer, etc.), it is applied to an apparatus (for example, a copying machine, a facsimile machine, etc.) comprising a single device. May be.

また、本発明の目的は、前述した実施形態の機能を実現するソフトウェアのプログラムコードを記録した記憶媒体(または記録媒体)を、システムあるいは装置に供給し、そのシステムあるいは装置のコンピュータ(またはCPUやMPU)が、記憶媒体に格納されたプログラムコードを読み出し実行することによっても、達成されることは言うまでもない。この場合、記憶媒体から読み出されたプログラムコード自体が前述した実施形態の機能を実現することになり、そのプログラムコードを記憶した記憶媒体は、本発明を構成することになる。また、コンピュータが読み出したプログラムコードを実行することにより、前述した実施形態の機能が実現されるだけでなく、そのプログラムコードの指示に基づき、コンピュータ上で稼働しているOSなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Also, an object of the present invention is to supply a storage medium (or recording medium) that records a program code of software that realizes the functions of the above-described embodiments to a system or apparatus, and to perform computer (or CPU or CPU) of the system or apparatus. Needless to say, this can also be achieved by the MPU) reading and executing the program code stored in the storage medium. In this case, the program code itself read from the storage medium realizes the functions of the above-described embodiments, and the storage medium storing the program code constitutes the present invention. Further, by executing the program code read by the computer, not only the functions of the above-described embodiments are realized, but also an OS running on the computer performs actual processing based on an instruction of the program code. Needless to say, a case where the function of the above-described embodiment is realized by performing part or all of the processing is also included.

さらに、記憶媒体から読み出されたプログラムコードが、コンピュータに挿入された機能拡張カードやコンピュータに接続された機能拡張ユニットに備わるメモリに書き込まれた後、そのプログラムコードの指示に基づき、その機能拡張カードや機能拡張ユニットに備わるCPUなどが実際の処理の一部または全部を行い、その処理によって前述した実施形態の機能が実現される場合も含まれることは言うまでもない。   Further, after the program code read from the storage medium is written in a memory provided in a function expansion card inserted into the computer or a function expansion unit connected to the computer, the function expansion is performed based on the instruction of the program code. It goes without saying that the CPU or the like provided in the card or the function expansion unit performs part or all of the actual processing, and the functions of the above-described embodiments are realized by the processing.

本発明の第1の実施の形態を示すブロック図である。It is a block diagram which shows the 1st Embodiment of this invention. ユーザインタフェースの一例を示す図である。It is a figure which shows an example of a user interface. 第1の実施の形態における画像処理手順の一例を示すフロー図である。It is a flowchart which shows an example of the image processing procedure in 1st Embodiment. 顔、目の検出例を説明するための説明図である。It is explanatory drawing for demonstrating the example of a face and eyes detection. 第2の実施の形態にやける画像処理手順の一例を示すフロー図である。It is a flowchart which shows an example of the image processing procedure which can be applied to 2nd Embodiment. 失敗目画像の例と印刷例を示す図である。It is a figure which shows the example of a failure image, and the example of printing.

符号の説明Explanation of symbols

101 画像処理装置
102 CPU
103 ROM
104 RAM
105 2次記憶装置
106 表示装置
107 入力装置
108 I/F制御部
101 Image processing apparatus 102 CPU
103 ROM
104 RAM
105 Secondary Storage Device 106 Display Device 107 Input Device 108 I / F Control Unit

Claims (26)

画像から顔と目を検出する顔器官検出手段と、
該顔器官検出手段による目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定手段と、
該失敗目判定手段により失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索手段と、
該補正候補画像検索手段によって検索された候補画像を修正する候補画像修正手段と、
該候補画像修正手段によって修正された候補画像を合成する合成手段と
を具備することを特徴とする画像処理装置。
Facial organ detection means for detecting a face and eyes from an image;
A failure eye determination means for determining whether or not the eye is a failure based on the detection result of the eyes by the facial organ detection means;
Correction candidate image search means for searching for a correction candidate image for an area determined to be a failure by the failure eye determination means;
Candidate image correcting means for correcting the candidate image searched by the correction candidate image searching means;
An image processing apparatus comprising: a combining unit that combines the candidate images corrected by the candidate image correcting unit.
請求項1において、前記失敗目判定手段は、目の領域のパターンが予め定めた開いた目のパターンとマッチングするか否かに基づき失敗目であるか否かを判定することを特徴とする画像処理装置。   The image according to claim 1, wherein the failure eye determination unit determines whether or not the eye is a failure based on whether or not the eye area pattern matches a predetermined open eye pattern. Processing equipment. 請求項1において、前記失敗目判定手段は、目が閉じていることを判定することを特徴とする画像処理装置。   The image processing apparatus according to claim 1, wherein the failure eye determination unit determines that the eyes are closed. 請求項1において、前記失敗目判定手段は、目が半分閉じていることを判定することを特徴とする画像処理装置。   The image processing apparatus according to claim 1, wherein the failure eye determination unit determines that the eyes are half closed. 請求項1において、前記失敗目判定手段は、目が赤目であることを判定する画像処理装置。   The image processing apparatus according to claim 1, wherein the failure eye determination unit determines that the eyes are red eyes. 画像から顔と目を検出する顔器官検出手段と、
該顔検出手段による目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定手段と、
該失敗目判定手段により失敗目であると判定された失敗目領域に必要とされる品位が所定の基準以上か否かを評価する評価手段と、
該評価手段により前記所定の基準以上でないと評価された場合に、前記失敗目判定手段により失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索手段と、
該補正候補画像検索手段によって検索された候補画像を修正する候補画像修正手段と、
該候補画像修正手段によって修正された候補画像を合成する合成手段と
を具備することを特徴とする画像処理装置。
Facial organ detection means for detecting a face and eyes from an image;
Failure eye determination means for determining whether or not the eye is a failure based on the detection result of the eyes by the face detection means;
Evaluation means for evaluating whether or not the quality required for the failure area determined to be a failure by the failure determination means is greater than or equal to a predetermined reference;
A correction candidate image search means for searching for a correction candidate image for an area determined to be a failure by the failure eye determination means when the evaluation means evaluates not to be above the predetermined reference;
Candidate image correcting means for correcting the candidate image searched by the correction candidate image searching means;
An image processing apparatus comprising: a combining unit that combines the candidate images corrected by the candidate image correcting unit.
請求項6において、前記失敗目判定手段は、目の領域のパターンが予め定めた開いた目のパターンとマッチングするか否かに基づき失敗目であるか否かを判定することを特徴とする画像処理装置。   7. The image according to claim 6, wherein the failure eye determination unit determines whether or not the eye is a failure based on whether or not the eye area pattern matches a predetermined open eye pattern. Processing equipment. 請求項6において、前記評価手段は、失敗目であると判定された領域と前記画像の大きさの比を評価することを特徴とする画像処理装置。   The image processing apparatus according to claim 6, wherein the evaluation unit evaluates a ratio between the area determined to be a failure and the size of the image. 請求項6において、前記評価手段は、印刷条件によって評価することを特徴とする画像処理装置。   7. The image processing apparatus according to claim 6, wherein the evaluation unit performs evaluation based on printing conditions. 請求項9において、前記印刷条件は、印刷メディアであることを特徴とする画像処理装置。   The image processing apparatus according to claim 9, wherein the print condition is a print medium. 請求項9において、前記印刷条件は、印刷品位であることを特徴とする画像処理装置。   The image processing apparatus according to claim 9, wherein the printing condition is print quality. 請求項9において、前記印刷条件は、印刷レイアウトから評価することを特徴とする画像処理装置。   The image processing apparatus according to claim 9, wherein the print condition is evaluated from a print layout. 画像から顔と目を検出する顔器官検出ステップと、
該顔検出ステップによる目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定ステップと、
該失敗目判定ステップにより失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索ステップと、
該補正候補画像検索ステップによって検索された候補画像を修正する候補画像修正ステップと、
該候補画像修正ステップによって修正された候補画像を合成する合成ステップと
を具備することを特徴とする画像処理方法。
A facial organ detection step for detecting a face and eyes from an image;
A failure eye determination step for determining whether or not the eye is a failure based on the detection result of the eyes in the face detection step;
A correction candidate image search step for searching for a correction candidate image for the region determined to be a failure by the failure determination step;
A candidate image correcting step of correcting the candidate image searched by the correction candidate image searching step;
An image processing method comprising: a combining step of combining the candidate images corrected by the candidate image correcting step.
請求項13において、前記失敗目判定ステップは、目の領域のパターンが予め定めた開いた目のパターンとマッチングするか否かに基づき失敗目であるか否かを判定することを特徴とする画像処理方法。   14. The image according to claim 13, wherein the failure eye determination step determines whether or not the eye is a failure based on whether or not the eye area pattern matches a predetermined open eye pattern. Processing method. 請求項13において、前記失敗目判定ステップは、目が閉じていることを判定することを特徴とする画像処理方法。   14. The image processing method according to claim 13, wherein the failure eye determination step determines that the eyes are closed. 請求項13において、前記失敗目判定ステップは、目が半分閉じていることを判定することを特徴とする画像処理方法。   14. The image processing method according to claim 13, wherein the failure eye determination step determines that the eyes are half closed. 請求項13において、前記失敗目判定ステップは、目が赤目であることを判定することを特徴とする画像処理方法。   14. The image processing method according to claim 13, wherein the failure eye determination step determines that the eyes are red eyes. 画像から顔と目を検出する顔器官検出ステップと、
該顔検出ステップによる目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定ステップと、
該失敗目判定ステップにより失敗目であると判定された失敗目領域に必要とされる品位が所定の基準以上か否かを評価する評価ステップと、
該評価ステップにより前記所定の基準以上でないと評価された場合に、前記失敗目判定ステップにより失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索ステップと、
該補正候補画像検索ステップによって検索された候補画像を修正する候補画像修正ステップと、
該候補画像修正ステップによって修正された候補画像を合成する合成ステップと
を具備することを特徴とする画像処理方法。
A facial organ detection step for detecting a face and eyes from an image;
A failure eye determination step for determining whether or not the eye is a failure based on the detection result of the eyes in the face detection step;
An evaluation step for evaluating whether or not the quality required for the failure area determined to be a failure by the failure determination step is equal to or higher than a predetermined reference;
A correction candidate image search step for searching for a correction candidate image for a region determined to be a failure by the failure eye determination step when it is evaluated that the evaluation step is not equal to or greater than the predetermined reference;
A candidate image correcting step of correcting the candidate image searched by the correction candidate image searching step;
An image processing method comprising: a combining step of combining the candidate images corrected by the candidate image correcting step.
請求項18において、前記失敗目判定ステップは、目の領域のパターンが予め定めた開いた目のパターンとマッチングするか否かに基づき失敗目であるか否かを判定することを特徴とする画像処理方法。   19. The image according to claim 18, wherein the failure eye determination step determines whether or not the eye is a failure based on whether or not the eye area pattern matches a predetermined open eye pattern. Processing method. 請求項18において、前記評価ステップは、失敗目であると判定された領域と前記画像の大きさの比を評価することを特徴とする画像処理方法。   19. The image processing method according to claim 18, wherein the evaluation step evaluates a ratio between the size of the area determined to be a failure and the size of the image. 請求項18において、前記評価手段は、印刷条件によって評価することを特徴とする画像処理方法。   The image processing method according to claim 18, wherein the evaluation unit performs evaluation based on printing conditions. 請求項21において、前記印刷条件は、印刷メディアであることを特徴とする画像処理方法。   The image processing method according to claim 21, wherein the printing condition is a printing medium. 請求項21において、前記印刷条件は、印刷品位であることを特徴とする画像処理方法。   The image processing method according to claim 21, wherein the print condition is print quality. 請求項21において、前記印刷条件は、印刷レイアウトから評価することを特徴とする画像処理方法。   The image processing method according to claim 21, wherein the printing condition is evaluated from a print layout. コンピュータを、
画像から顔と目を検出する顔器官検出手段と、
該顔器官検出手段による目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定手段と、
該失敗目判定手段により失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索手段と、
該補正候補画像検索手段によって検索された候補画像を修正する候補画像修正手段と、
該候補画像修正手段によって修正された候補画像を合成する合成手段と
として機能させるためのプログラム。
Computer
Facial organ detection means for detecting a face and eyes from an image;
A failure eye determination means for determining whether or not the eye is a failure based on the detection result of the eyes by the facial organ detection means;
Correction candidate image search means for searching for a correction candidate image for an area determined to be a failure by the failure eye determination means;
Candidate image correcting means for correcting the candidate image searched by the correction candidate image searching means;
A program for causing a candidate image corrected by the candidate image correcting unit to function as a combining unit that combines the candidate images.
コンピュータを、
画像から顔と目を検出する顔器官検出手段と、
該顔検出手段による目の検出結果に基づいて失敗目であるか否かを判定する失敗目判定手段と、
該失敗目判定手段により失敗目であると判定された失敗目領域に必要とされる品位が所定の基準以上か否かを評価する評価手段と、
該評価手段により前記所定の基準以上でないと評価された場合に、前記失敗目判定手段により失敗目であると判定された領域に対する補正候補画像を検索する補正候補画像検索手段と、
該補正候補画像検索手段によって検索された候補画像を修正する候補画像修正手段と、
該候補画像修正手段によって修正された候補画像を合成する合成手段と
として機能させるためのプログラム。
Computer
Facial organ detection means for detecting a face and eyes from an image;
Failure eye determination means for determining whether or not the eye is a failure based on the detection result of the eyes by the face detection means;
Evaluation means for evaluating whether or not the quality required for the failure area determined to be a failure by the failure determination means is greater than or equal to a predetermined reference;
A correction candidate image search means for searching for a correction candidate image for an area determined to be a failure by the failure eye determination means when the evaluation means evaluates not to be above the predetermined reference;
Candidate image correcting means for correcting the candidate image searched by the correction candidate image searching means;
A program for causing a candidate image corrected by the candidate image correcting unit to function as a combining unit that combines the candidate images.
JP2005171529A 2005-06-10 2005-06-10 Image processing device and method Pending JP2006344166A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2005171529A JP2006344166A (en) 2005-06-10 2005-06-10 Image processing device and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2005171529A JP2006344166A (en) 2005-06-10 2005-06-10 Image processing device and method

Publications (1)

Publication Number Publication Date
JP2006344166A true JP2006344166A (en) 2006-12-21

Family

ID=37641063

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2005171529A Pending JP2006344166A (en) 2005-06-10 2005-06-10 Image processing device and method

Country Status (1)

Country Link
JP (1) JP2006344166A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009267791A (en) * 2008-04-25 2009-11-12 Nikon Corp Photographing device
JP2015188136A (en) * 2014-03-26 2015-10-29 京セラ株式会社 Apparatus with image-capturing function, image-capturing control method, and program
JP2016053830A (en) * 2014-09-03 2016-04-14 オムロン株式会社 Image processor and image processing method
CN108259771A (en) * 2018-03-30 2018-07-06 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2009267791A (en) * 2008-04-25 2009-11-12 Nikon Corp Photographing device
JP2015188136A (en) * 2014-03-26 2015-10-29 京セラ株式会社 Apparatus with image-capturing function, image-capturing control method, and program
JP2016053830A (en) * 2014-09-03 2016-04-14 オムロン株式会社 Image processor and image processing method
CN108259771A (en) * 2018-03-30 2018-07-06 广东欧珀移动通信有限公司 Image processing method, device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
JP4373828B2 (en) Specific area detection method, specific area detection apparatus, and program
JP4320272B2 (en) Specific area detection method, specific area detection apparatus, and program
JP2007066199A (en) Image processor and image processing method
US20120020568A1 (en) Image processor and image processing method
JP2002152492A (en) Image processing device, its method, and recording medium
JP2010108232A (en) Image processor and program
JP2005092759A (en) Image processing device and method, red-eye detection method, and program
JP2007172502A (en) Print data generation device, print data generation method and program
JP4769847B2 (en) Image processing apparatus, image processing method, program, and computer-readable storage medium
US20090231628A1 (en) Image Processing Apparatus, Image Processing Method, Computer Program for Image Processing
JP2010074405A (en) Image processing apparatus and method
JP2009237977A (en) Image output control device, image output control method, image output control program, and printer
JP2005322220A (en) Particular region detecting method, particular region detecting apparatus, and program therefor
JP2007094840A (en) Image processing device and image processing method
JP2007065940A (en) Image selection device and image selection means
JP2006344166A (en) Image processing device and method
JP2005309971A (en) Red-eye compensation method, program and device for executing the same method
JP2009223524A (en) Image processor, image processing method, and computer program for image processing
JP2009237976A (en) Unit, method and program for controlling face image output, and print unit
JP2007065784A (en) Image processor, image processing method, program, and computer-readable storage medium
US20050094894A1 (en) Image processing device, image processing method, and program therefor
JP2005242576A (en) Image generation for editing and generating image by processing image data constituting image
JP2006059092A (en) Catchlight synthesis method
JP2003187257A (en) Image creation system
JP4290080B2 (en) Image processing apparatus, image processing method, and computer program