1. A detection method executed by a computer, the detection method comprising: detecting a plurality of pupil candidates from a face image region in an image of a subject based on specific shape information; and identifying at least one pupil candidate as a pupil from among the plurality of pupil candidates based on brightness information related to an image region outside of the face image region and learning information indicating a relationship between the brightness information and a size of the pupil.