The present invention relates to a locking technology adapted to a place which requires an electronic locking apparatus such as a safe, an entrance door, a drawer, a cabinet, etc. Further, there are provided a control method for the image pickup apparatus and a computer program product for controlling the image pickup apparatus. The pattern is moved in response to the movement of the eye.