1. Technical Field
Embodiments of the present disclosure relate to brightness adjustment technology, and more particularly to a system and method for adjusting the brightness of a display screen of an electronic device.
2. Description of Related Art
Brightness of a display screen of an electronic device may be manually adjusted according to habits of a user or an environment of the electronic device. However, manual adjustments of the brightness of the display screen are inconvenient and inefficient. Therefore, some electronic devices use light sensing elements (e.g. light sensors) to sense the brightness of ambient light of the electronic device, and adjust the brightness of the display screen automatically according to the ambient light. However, the automatic adjustments of the brightness of the display screen need to add at least one light sensing element in the electronic device, which may increase cost of the display screen.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings, in which like reference numerals indicate similar elements. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references can mean “at least one.”
In general, the word “module” as used herein refers to logic embodied in hardware or firmware, or to a collection of software instructions, written in a programming language, such as, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as in an erasable-programmable read-only memory (EPROM). The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of non-transitory computer-readable medium or other storage device. Some non-limiting examples of non-transitory computer-readable media include compact discs (CDs), digital versatile discs (DVDs), Blu-ray disks, flash memory, and hard disk drives.
The storage system 12 stores data of the electronic device 1. The storage system 12 may be a memory of the electronic device 1, or an external storage card, such as a smart media card, or a secure digital card. The at least one processor 13 executes one or more computerized codes and other applications of the electronic device 1, to provide functions of the brightness adjustment system 10. In one embodiment, the electronic device 1 may be a mobile phone, a notebook computer, a personal digital assistant (PDA), a mobile Internet device (MID), or any other electronic devices with the display screens and the camera devices.
In the embodiment, the brightness adjustment system 10 may include a setting module 101, a control module 102, a calculation module 103, and an adjustment module 104. The modules 101-104 comprise computerized codes in the form of one or more programs that are stored in the storage system 12. The computerized codes include instructions that are executed by the at least one processor 13 to provide functions for the modules. Details of each of the modules 101-104 will be given.
The setting module 101 sets a plurality of brightness levels of the display screen 11, and sets a plurality of brightness intervals of brightness values of images captured by the camera device 14. Each brightness level corresponds to a range of the brightness values.
The control module 102 controls the camera device 14 to capture an image of an ambient scene of the electronic device 1 at each predetermined time interval. The predetermined time interval may be 5 seconds, or 5 minutes, and the predetermined time interval can be set according to user preference.
The calculation module 103 calculates a brightness value of the captured image, and determines a brightness interval of the calculated brightness value. In one embodiment, the brightness value of the each pixel of the captured image is calculated according to a luminance component “Y” in a YUV color model of the captured image. The luminance component “Y” in the color space of “YUV” represents the brightness of the captured image, two chrominance components “UV” represent colors of the captured image. The luminance component “Y” is calculated according to a formula of “Y=0.299R+0.587G+0.114B” according to RGB values of the captured image. In one embodiment, the calculation module 103 calculates the brightness value of each pixel of the captured image, and obtains the brightness value of the captured image by calculating an average brightness value according to the brightness value of each pixel of the captured image.
The adjustment module 104 adjusts the brightness of the display screen 11 to a brightness level corresponding to the determined brightness interval of the calculated brightness value. For example, if the calculated brightness value of the captured image is 55, the brightness interval of the calculated brightness value is determined to [32-65], and the brightness interval of [32-65] corresponds to the brightness level 2. The adjustment module 104 adjusts the brightness of the display screen 11 to brightness level 2.
In step S01, the setting module 101 sets a plurality of brightness levels of the display screen 11, and sets a plurality of brightness intervals of brightness values of images captured by the camera device 14. Each brightness level corresponds to a range of brightness values. The range of the brightness values of the images is from 0 to 255.
In step S02, the control module 102 controls the camera device 14 to capture an image of an ambient scene of the electronic device 1 at each predetermined time interval. The predetermined time intervals may be 5 seconds, or 5 minutes, and can be set according to user preference.
In step S03, the calculation module 103 calculates a brightness value of the captured image, and determines a brightness interval of the calculated brightness value. In one embodiment, the brightness value of the captured image is calculated according to a luminance component “Y” in a color space of “YUV.” The luminance component “Y” can be calculated according to a formula of “Y=0.299R+0.587G+0.114B” according to the RGB color model. The calculation module 103 calculates the brightness value of each pixel of the captured image, and obtains the brightness value of the captured image by calculating an average brightness value according to the brightness value of each pixel of the captured image.
In step SO4, the adjustment module 104 adjusts the brightness of the display screen 11 to a brightness level corresponding to the determined brightness interval of the calculated brightness value.
All of the processes described above may be embodied in, and be fully automated via functional code modules executed by one or more general-purpose processors. The code modules may be stored in any type of non-transitory readable medium or other storage device. Some or all of the methods may alternatively be embodied in specialized hardware. Depending on the embodiment, the non-transitory readable medium may be a hard disk drive, a compact disc, a digital video disc, a tape drive or other suitable storage medium.
The described embodiments are merely possible examples of implementations, and have been set forth for a clear understanding of the principles of the present disclosure. Many variations and modifications may be made without departing substantially from the spirit and principles of the present disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and the described inventive embodiments, and the present disclosure is protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201110411569.3 | Dec 2011 | CN | national |