1. Technical Field
The present disclosure relates to electronic devices capable of detecting environment brightness and, particularly, to an electronic device capable of adjusting brightness of a backlight module of the electronic device according to the detected environment brightness and a method thereof.
2. Description of Related Art
A regular method for automatically adjusting brightness of a backlight module of an electronic device is that the electronic device employs a photosensitive sensor mounted on itself to sense environment brightness, and adjusts the brightness of the backlight module according to the sensed environment brightness. Employing the regular method, a photosensitive sensor should be mounted on the electronic device, which may increase cost of the electronic device.
The components of the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of an electronic device capable of detecting environment brightness and a method thereof. Moreover, in the drawings, like reference numerals designate corresponding parts throughout several views.
Referring to
In this embodiment, the processor 20 periodically turns on a preset number of the photosensitive elements 122 to direct the camera 10 to capture an image. The preset number of the photosensitive elements 122 may be less than that of all of the photosensitive elements 122 or equal to that of all of the photosensitive elements 122. The processor 20 further determines R value, G value, and B value of each pixel of the captured image using known image processing technology, and determines environment brightness according to the determined R value, G value, and B value of each pixel. In this embodiment, the electronic device 100 employs the camera 10 to periodically capture an image, and determines environment brightness according to the captured image. Therefore, an additional photosensitive sensor is not needed, and cost of the electronic device 100 correspondingly decreases.
The electronic device 100 further includes a backlight module 30. The processor 20 adjusts brightness of the backlight module 30 according to the determined environment brightness. In one embodiment, the processor 20 adjusts brightness of the backlight module 30 according to comparison between the determined environment brightness and predetermined environment brightness. For example, if the processor 20 determines that the determined environment brightness is greater than the predetermined environment brightness, the processor 20 determines that environment is bright and thus decreases brightness of the backlight module 30.
In step S201, the processor 20 periodically turns on the preset number of the photosensitive elements 122 to direct the camera 10 to capture an image. The preset number of the photosensitive elements 122 may be less than that of all of the photosensitive elements 122 or equal to that of all of the photosensitive elements 122.
In step S202, the processor 20 determines R value, G value, and B value of each pixel of the captured images using known image processing technology, and determines environment brightness according to the determined R value, G value, and B value of each pixel.
In step S203, the processor 20 adjusts brightness of the backlight module 30 according to the determined environment brightness. In one embodiment, the processor 20 adjusts brightness of the backlight module 30 according to the comparison between the determined environment brightness and the predetermined environment brightness.
Although the present disclosure has been specifically described on the basis of the exemplary embodiment thereof, the disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the embodiment without departing from the scope and spirit of the disclosure.
Number | Date | Country | Kind |
---|---|---|---|
201010612788.3 | Dec 2010 | CN | national |