Redeye is the appearance of an unnatural reddish coloration of the pupils of a person appearing in an image captured by a camera with flash illumination. Redeye is caused by light from the flash reflecting off blood vessels in the person's retina and returning to the camera.
A large number of image processing techniques have been proposed to detect and correct redeye in color images. In general, these techniques typically are semi-automatic or automatic. Semi-automatic redeye detection techniques rely on human input. For example, in some semi-automatic redeye reduction systems, a user manually identifies to the system the areas of an image containing redeye before the defects are corrected.
Many automatic redeye reduction systems rely on a preliminary face detection step before redeye areas are detected. A common automatic approach involves detecting faces in an image and, subsequently, detecting eyes within each detected face. After the eyes are located, redeye is identified based on shape, coloration, and brightness of image areas corresponding to the detected eye locations. In general, face-detection-based automatic redeye reduction techniques have high computation and memory resource requirements. In addition, most of the face detection algorithms are only able to detect faces that are oriented in an upright frontal view; these approaches cannot detect faces that are rotated in-plane or out-of-plane with respect to the image plane.
U.S. Pat. No. 6,407,777 to DeLuca discloses in-camera detection and correction of redeye pixels in an acquired digital image. U.S. Pat. No. 6,873,743 to Steinberg discloses automated real-time detection and correction of redeye defects optimized for handheld devices. US published patent applications 2005/0047655 and 2005/0047656 to Luo et al. disclose detecting and correcting redeye in a digital image and in embedded systems, respectively.
Automatic red eye detection algorithms can sometimes wrongly identify an image region as red eye artefact. Those regions are called False Positives (FP). Although somewhat rare, applying red eye correction to them can result in a visually displeasing image. It is desired to have a technique that reduces the number of false positives by using face location and/or orientation information.
A method of detecting and correcting a red-eye defect within a digital image is provided. An image is acquired having one or more non red eye defect regions which are red in color. A first stage initial segmentation of candidate redeye regions is performed to determine a first set of one or more confirmed redeye regions designated for correction. A location and orientation of any faces within the image are determined. The first set of confirmed redeye regions is analyzed based on the determined location and orientation of faces to determine a probability that each confirmed redeye region appears at a position of an eye. Any confirmed redeye regions having at least a certain threshold probability of being a false positive are removed from the first set, and a second set is generated. The second set of confirmed red eye regions is corrected and a red eye corrected image is generated which has the second set of confirmed red eye regions corrected therein. The redeye corrected image is electronically stored, transmitted, further processed or edited, or displayed, or combinations thereof.
The performing of the first stage initial segmentation of red eye regions may include pixel analyzing. The performing of the first stage initial segmentation of red eye regions may include falsing and verification filtering. The analyzing and removing may be performed prior to any correcting of the image. The first set of confirmed redeye regions may be initially corrected, and an initial corrected image may be generated prior to the analyzing and removing and the generating of the red eye corrected image. One or more detected faces may include at least one red eye defect such that the second set comprises a non-empty set, or the second set may be empty such that no actual redeye regions are corrected in the image.
An embedded image acquisition and processing system includes an image acquisition subsystem. A red eye filter performs in a first stage an initial segmentation of candidate redeye regions detected within an acquired image to determine a first set of one or more confirmed redeye regions designated for correction. A face location and orientation detector and an analysis filter determine a probability that each confirmed redeye region appears at a position of an eye based on determining face location and orientation information. A processor corrects any red eye defects of the confirmed red eye regions of the first set minus any having at least a certain threshold probability of being a false positive and generates a red eye corrected image. The red eye corrected image is electronically stored, transmitted, further processed or edited, or displayed, or combinations thereof. No redeye defects are corrected when no faces are detected within the image.
One or more storage devices having processor-readable code embodied therein are also provided for programming one or more processors to perform any of the methods described herein alone or in combination with techniques described in references incorporated herein.
The patent or application file contains at least one drawing that is executed in color, including color photographs. Copies of this patent or patent application publication with color drawing(s) will be provided by the Office upon request and payment of the necessary fee.
A redeye filter process is illustrated in
In embodiments herein, a face detection algorithm is applied either as a component of an advantageous falsing and verification filter 106, or after the set of confirmed red eye regions is initially determined at 108. This face detection algorithm determines location and/or orientation of the face. This provides information as to where specifically that any eyes probably exist and/or where specifically that eyes probably do not exist within the image.
Referring to
In the image provided at
In the example of
The red side of the box that indicates the “top” of the woman's head or face, or the “up” side of her face may be obtained by applying the face detection algorithm on the image as indicated, and also by using face tracking which uses multiple preview images or other reference images such as postview images or images captured simultaneously with the main image of
In the described example, the position of every detected red eye region is analyzed in respect to the face location. Two correct red eyes are found to be positioned inside the face region and in agreement with the orientation and are therefore considered red eye candidates. The left earring region is found to be inside the face box but, because of orientation mismatch, is classified as a false positive and filtered out. The right earring region is found to be outside the face box, but very close to the face regions. In this case it is considered that the likelihood of another face being present is minimal and therefore the region is classified as a false positive and removed. If a second face is detected within the image, then the red eye process can proceed with respect to that face, and any red eye artefact can be removed in that second process. Other possible red eye regions that are located far enough from the face are unaffected and therefore remain red eye candidates.
While an exemplary drawings and specific embodiments of the present invention have been described and illustrated, it is to be understood that that the scope of the present invention is not to be limited to the particular embodiments discussed. Thus, the embodiments shall be regarded as illustrative rather than restrictive, and it should be understood that variations may be made in those embodiments by workers skilled in the arts without departing from the scope of the present invention as set forth in the appended claims, and structural and functional equivalents thereof.
In addition, in methods that may be performed according to preferred embodiments herein and that may have been described above, the operations have been described in selected typographical sequences. However, the sequences have been selected and so ordered for typographical convenience and are not intended to imply any particular order for performing the operations, except for those where a particular order may be expressly set forth or where those of ordinary skill in the art may deem a particular order to be necessary.
In addition, all references cited herein as well as the background, invention summary, abstract and brief description of the drawings, as well as U.S. Pat. Nos. 6,407,777, 7,315,631 and 7,336,821, and US published patent applications nos. 2005/0041121, 2005/0031224, 2005/0140801, 2006/0204110, 2006/0093212, 2006/0120599, 2007/0110305 and 2006/0140455, and PCT/EP2006/008358, and U.S. patent application Nos. 60/773,714, 60/804,546, 60/865,375, 60/865,622, 60/829,127, 60/829,127, 60/821,165, 60/892,882, 60/945,558, 60/915,669 10/772,767, 11/554,539, 11/464,083, 11/462,035, 11/282,954, 11/027,001, 10/842,244, 11/024,046, 11/233,513, 11/753,098, 11/753,397, 11/766,674, 11/769,206, 11/772,427 and 11/460,218, are all incorporated by reference into the detailed description of the preferred embodiments as disclosing alternative embodiments.
This application is a Continuation of U.S. patent application Ser. No. 12/043,025, filed Mar. 5, 2008; which claims the benefit of priority to U.S. provisional patent application No. 60/892,882, filed Mar. 5, 2007, which is incorporated by reference.
Number | Date | Country | |
---|---|---|---|
60892882 | Mar 2007 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 12043025 | Mar 2008 | US |
Child | 13113913 | US |