Eye detecting method, eye detecting device, and non-transitory computer-readable recording medium recording eye detecting program
AssigneesSwallow Incubate Co., Ltd., Panasonic Holdings Corporation
InventorToshikazu Ohno
Life of this patent
Estimating the term…
Abstract
An eye detecting device is configured to: acquire a color image including a face of a person taken by an image taking device; generate a grayscale image by multiplying each of a red component value, a green component value, and a blue component value of each pixel of the color image by a predetermined ratio according to characteristics of a lens of glasses that the person wears; detect an eye of the person from the grayscale image; and output eye information on the eye of the person.
Claims9
An eye detecting method comprising:
- acquiring, by a processor, a color image including a face of a person taken by an image taking device;
- generating, by the processor, a grayscale image by multiplying each of a red component value, a green component value, and a blue component value of each pixel of the color image by a predetermined ratio according to characteristics of a lens of glasses that the person wears;
- detecting, by the processor, an eye of the person from the grayscale image;
- generating, by the processor, a binary image from the color image;
- extracting, by the processor, from the binary image an estimated glasses region where the glasses are estimated to be present;
- determining, by the processor, whether the person is wearing the glasses, based on a length in a horizontal direction of a white region where a plurality of white pixels continue in the estimated glasses region;
- detecting, by the processor, the eye of the person from the color image upon determining that the person is not wearing the glasses;
- and
- outputting, by the processor, eye information on the eye of the person,
- wherein the grayscale image is generated by the processor upon determining that the person is wearing the glasses.
An eye detecting device comprising:
- a processor;
- and
- a non-transitory computer-readable medium having stored thereon executable instructions that, when executed by the processor, cause the eye detecting device to function as:
- an acquiring part for acquiring a color image including a face of a person taken by an image taking device;
- a generating part for generating a grayscale image by multiplying each of a red component value, a green component value, and a blue component value of each pixel of the color image by a predetermined ratio according to characteristics of a lens of glasses that the person wears;
- a detecting part for detecting an eye of the person from the grayscale image;
- wherein the generating part is also for generating a binary image from the color image;
- a determining part for extracting from the binary image an estimated glasses region where the glasses are estimated to be present;
- wherein the determining part is also for determining whether the person is wearing the glasses, based on a length in a horizontal direction of a white region where a plurality of white pixels continue in the estimated glasses region;
- wherein the detecting part is also for detecting the eye of the person from the color image upon determining that the person is not wearing the glasses;
- and
- an outputting part for outputting eye information on the eye of the person,
- wherein the eye detecting device is configured to generate the grayscale image upon determining that the person is wearing the glasses.
A non-transitory computer-readable medium having stored thereon executable instructions that, when executed by a processor of an eye detecting device, cause the eye detecting device to:
- acquire a color image including a face of a person taken by an image taking device;
- generate a grayscale image by multiplying each of a red component value, a green component value, and a blue component value of each pixel of the color image by a predetermined ratio according to characteristics of a lens of glasses that the person wears;
- detect an eye of the person from the grayscale image;
- generate a binary image from the color image;
- extract from the binary image an estimated glasses region where the glasses are estimated to be present;
- determine whether the person is wearing the glasses, based on a length in a horizontal direction of a white region where a plurality of white pixels continue in the estimated glasses region;
- detect the eye of the person from the color image upon determining that the person is not wearing the glasses;
- and
- output eye information on the eye of the person,
- wherein the grayscale image is generated by the eye detecting device upon determining that the person is wearing the glasses.
Dependencies are inferred from the claim text.