As an example, the programs may be configured to perform instructions for the following control method.
At S32, the camera 20 is controlled to acquire an image of a face.
At S34, the image of the face is processed to obtain position information of the face.
At S36, according to the position information of the face, an infrared light source 12, that has an illumination range into which the face falls, is turned on, and other infrared light sources 12 are turned off or remain turned off.
Referring to 
As an example, the computer program may be executed by the processor 30 to complete the following control method.
At S32, the camera 20 is controlled to acquire an image of a face.
At S34, the image of the face is processed to obtain position information of the face.
At S36, according to the position information of the face, an infrared light source 12, that has an illumination range into which a face falls, is turned on, and other infrared light sources 12 are turned off or remain turned off.
The computer-readable storage medium 800 may be a storage medium built in the electronic device 100 or a storage medium that is pluggably inserted into the electronic device 100.