Patent ID: 11961328
Assignee: SWALLOW INCUBATE CO., LTD.
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 8:
9. 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.