The present invention provides an
eyelid detection device capable of accurately detecting eyelids even when a red eye phenomenon occurs. The
eyelid detection device (1) has a camera (2) and an image input unit (21) for acquiring facial images, a red-
eye detection unit (25) for sensing the space of the iris portion from the facial images, and a red-
eye detection unit (25) for detecting the red-eye phenomenon. Based on the light and dark boundary, that is, the
edge detection of the candidate
eyelid detection section (23) and the eyelid judgment section (27) of the upper eyelid and the lower eyelid, when the red eye phenomenon is detected by the red
eye detection section (25), the red eye removal
processing section (26) removes the red eye. The upper or lower edge of the
pupil of the phenomenon is excluded from the lower or upper eyelid. A red-eye detection unit (25) detects a portion of a face image that matches a predetermined bright and dark pixel pattern or an edge pattern as a
pupil of the red-eye phenomenon. The predetermined bright and dark pixel pattern is composed of a bright area at the center and dark areas arranged around it.