Red eye detection aided by face detection
First Claim
1. A method for identifying a pair of genuine red eye artifacts in a captured image, comprising:
- determining the presence of a face in the captured image;
substantially encompassing the face within a rectangular shape;
determining the presence of three or more candidate red eye artifacts within the rectangular shape;
identifying, as genuine red eye artifacts, two candidate red eye artifacts of the three or more candidate red eye artifacts by;
measuring a color distance between each of the three or more candidate red eye artifacts within the rectangular shape;
measuring, for each of the three or more candidate red eye artifacts, a vertical distance therefrom to a bottom edge of the rectangular shape and determining whether a group of candidate red eye artifacts of the three or more candidate red eye artifacts that are each within a predetermined vertical distance of the bottom edge of the rectangular shape exists;
after and in response to determining that the group exists, measuring a horizontal distance between each pair of candidate red eye artifacts of the group and determining whether a pair of candidate red eye artifacts of the group separated by a predetermined horizontal distance exists; and
in response to determining that the pair of candidate red eye artifacts of the group separated by the predetermined horizontal distance exists, setting the pair of candidate red eye artifacts as the genuine red eye artifacts.
1 Assignment
0 Petitions
Accused Products
Abstract
A method for identifying a pair of genuine red eye artifacts in a captured image includes the steps of determining the presence of a face in the captured image, substantially encompassing the face within a shape, and determining the presence of three or more candidate red eye artifacts within the shape. The method continues with measuring the distance from an edge of the shape to each of the three or more candidate red eye artifacts and identifying, as genuine red eye artifacts, two candidate red eye artifacts of the three or more candidate red eye artifacts that are within a predetermined vertical distance from the edge of the shape.
-
Citations
8 Claims
-
1. A method for identifying a pair of genuine red eye artifacts in a captured image, comprising:
-
determining the presence of a face in the captured image; substantially encompassing the face within a rectangular shape; determining the presence of three or more candidate red eye artifacts within the rectangular shape; identifying, as genuine red eye artifacts, two candidate red eye artifacts of the three or more candidate red eye artifacts by; measuring a color distance between each of the three or more candidate red eye artifacts within the rectangular shape; measuring, for each of the three or more candidate red eye artifacts, a vertical distance therefrom to a bottom edge of the rectangular shape and determining whether a group of candidate red eye artifacts of the three or more candidate red eye artifacts that are each within a predetermined vertical distance of the bottom edge of the rectangular shape exists; after and in response to determining that the group exists, measuring a horizontal distance between each pair of candidate red eye artifacts of the group and determining whether a pair of candidate red eye artifacts of the group separated by a predetermined horizontal distance exists; and in response to determining that the pair of candidate red eye artifacts of the group separated by the predetermined horizontal distance exists, setting the pair of candidate red eye artifacts as the genuine red eye artifacts. - View Dependent Claims (2, 3)
-
-
4. A logic module for identifying a pair of red eye artifacts in a captured image, comprising:
-
hardware, including a processor; logic implemented at least by the hardware for determining that at least one face is present in the captured image; logic implemented at least by the hardware for encompassing each one of the at least one face in a two-dimensional rectangular shape; logic implemented at least by the hardware for determining that three or more candidate red eye artifacts are present in the two-dimensional shape; logic implemented at least by the hardware for determining two genuine red eye artifacts within the rectangular two- dimensional shape by; measuring a color distance between each of the three or more candidate red eye artifacts within the rectangular two-dimensional shape; measuring, for each of the three or more candidate red eye artifacts, a vertical distance therefrom to a bottom edge of the rectangular two-dimensional shape and determining whether a group of candidate red eye artifacts of the three or more candidate red eye artifacts that are each within a predetermined vertical distance of the bottom edge of the rectangular two-dimensional shape exists; after and in response to determining that the group exists, measuring a horizontal distance between each pair of candidate red eye artifacts of the group and determining whether a pair of candidate red eye artifacts of the group separated by a predetermined horizontal distance exists; and in response to determining that the pair of candidate red eye artifacts of the group separated by the predetermined horizontal distance exists, setting the pair of candidate red eye artifacts as the genuine red eye artifacts. - View Dependent Claims (5, 6, 7, 8)
-
Specification