Dual-phase red eye correction
AssigneeMicrosoft Corporation
InventorsLu Yuan, Fang Wen, Jian Sun
Life of this patent
Estimating the term…
Abstract
A dual-phase approach to red eye correction may prevent overly aggressive or overly conservative red eye reduction. The dual-phase approach may include detecting an eye portion in a digital image. Once the eye portion is detected, the dual-phase approach may include the performance of a strong red eye correction for the eye portion when the eye portion includes a strong red eye. Otherwise, the dual-phase approach may include the performance of a weak red eye correction for the eye portion when the eye portion includes a weak red eye. The weak red eye may be distinguished from the strong red eye based a redness threshold that shows the weak red eye as having less redness hue than the strong red eye.
Claims19
A computer-readable storage medium storing computer-executable instructions that, when executed, cause one or more processors to perform acts comprising:
- detecting an eye portion in a digital image;
- performing a strong red eye correction for the eye portion when the eye portion includes a strong red eye, the eye portion is determined to include the strong red eye when a redness hue of the eye portion is above a redness threshold, each of one or more shape values of a region inside a red eye area of the eye portion is greater than a corresponding roundness threshold, and the region inside the red eve area has a centrality value that is greater than a corresponding centrality threshold;
- and
- performing a weak red eye correction for the eye portion when the eye portion includes a weak red eye, the eye portion is determined to include the weak red eye portion at least when the redness hue of the eye portion is equal to or below the redness threshold.
A computer-implemented method, comprising:
- detecting an eye portion in a digital image;
- performing a strong red eye correction on a red eye in the eye portion at least when a redness hue of the eye portion is above a redness threshold;
- and
- performing a weak red eye correction on the red eye when the redness hue of the eye portion is equal to or below the redness threshold, and a redness mean of a region inside the eye portion is closer in distance to a redness mean of a cluster of known weak red eye regions than a redness mean of a cluster of non-red eye regions.
A computing device, comprising:
- one or more processors;
- and
- a memory that includes a plurality of computer-executable components, the plurality of computer-executable components comprising:
- an eye locator module that detects an eye portion in a digital image based at least on an estimation of interpupillary distance obtained from a manual input of eye locations in the digital image;
- a strong red eye correction component that performs a strong red eye correction for the eye portion when the eye portion includes a strong red eye;
- and
- a weak red eye correction component that performs a weak red eye correction for the eye portion when the eye portion includes a weak red eye that is at least distinguished from the strong red eye based on a redness threshold as having less redness hue than the strong red eye, and a redness mean of a region inside the eye portion is closer in distance to a redness mean of a cluster of known weak red eye regions than a redness mean of a cluster of non-red eye regions.
Dependencies are inferred from the claim text.