Patent ID: 8908044

Claim:
An electronic device for detecting ultraviolent radiation, comprising: a camera comprising: a lens; and an ultraviolent radiation detector mounted on the lens and comprising a positive electrode, a negative electrode, and a transparent medium distributed between the positive electrode and the negative electrode; a control switch connected between the ultraviolent radiation detector and a power source, wherein both the positive electrode and the negative electrode are connected to the power source via the control switch, when the control switch is switched on and power is supplied to the positive electrode and the negative electrode, a voltage drop is generated between the positive electrode and the negative electrode and the transparent medium becomes dark due to the voltage drop; and a processor comprising: a mode control module to control the electronic device to enter an ultraviolent radiation detecting mode; a capturing control module to control the camera to capture a first image in the front of the electronic device and store the first image when the electronic device enters the ultraviolent radiation detecting mode, and capture a second image in the front of the electronic device and store the second image after power has been supplied to the positive electrode and the negative electrode for a first preset time interval; a switch control module to control the control switch to supply power after the camera captures the first image; and an ultraviolent radiation intensity determination module to acquire the brightness of the first image and the second image, determine any difference between the brightness of the first image and the second image, and determine the intensity of ultraviolent radiation received according to the difference between the brightness of the first image and the second image.