This application claims priority to Chinese Patent Application No. 201410473022.X filed on Sep. 16, 2014, the contents of which are incorporated by reference herein.
The subject matter herein generally relates to electronic device managing technology, and particularly to an electronic device and a method for controlling a display device of the electronic device.
Generally, brightness of a display device of an electronic device can be automatically adjusted, according to ambient light of the electronic device that is detected by a light sensor configured in the electronic device. However, the configuration of the light sensor creates a complicated circuit design, and leads to extra cost for a manufacturer to produce the electronic device.
Many aspects of the disclosure can be better understood with reference to the following drawings. The components in the drawings are not necessarily drawn to scale, the emphasis instead being placed upon clearly illustrating the principles of the disclosure. Moreover, in the drawings, like reference numerals designate corresponding parts throughout the several views.
It will be appreciated that for simplicity and clarity of illustration, where appropriate, reference numerals have been repeated among the different figures to indicate corresponding or analogous elements. In addition, numerous specific details are set forth in order to provide a thorough understanding of the embodiments described herein. However, it will be understood by those of ordinary skill in the art that the embodiments described herein can be practiced without these specific details. In other instances, methods, procedures and components have not been described in detail so as not to obscure the related relevant feature being described. Also, the description is not to be considered as limiting the scope of the embodiments described herein. The drawings are not necessarily to scale and the proportions of certain parts may be exaggerated to better illustrate details and features of the present disclosure.
The present disclosure, including the accompanying drawings, is illustrated by way of examples and not by way of limitation. It should be noted that references to “an” or “one” embodiment in this disclosure are not necessarily to the same embodiment, and such references mean “at least one.”
Furthermore, the term “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 can be embedded in firmware, such as in an EPROM. The modules described herein can be implemented as either software and/or hardware modules and can 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 CDs, DVDs, BLU-RAY, flash memory, and hard disk drives.
The camera lens 11 can be used to capture images. The camera lens 11 can be a digital zoom lens or other suitable lens such as an optical zoom lens. In one embodiment, the camera lens 11 can be internally configured in the electronic device 1. In another embodiment, the camera lens 11 can be externally configured in the electronic device 1. In one embodiment, the camera lens 11 is installed in the front side of the electronic device 1. In another embodiment, the camera lens is installed in a back side of the electronic device 1.
The display device 12 can display information such as images. The display device 12 can display the information of the electronic device 1 in a landscape mode or in a portrait mode. In one embodiment, the display device 12 can be a super twisted nematic (STN) screen, a thin film transistor (TFT) screen, a thin film diode (TFD) screen, an ultra fine & bright (UFB) screen, an organic light emitting display (OLED) screen, or a advanced super view (ASV) screen.
In one embodiment, the storage device 13 can be an internal storage device, such as a flash memory, a random access memory (RAM) for temporary storage of information, and/or a read-only memory (ROM) for permanent storage of information. The storage device 13 can also be an external storage device, such as an external hard disk, a storage card, or a data storage medium.
The control system 10 can control operations of the display device 12 according to the images captured by the camera lens 11. In one embodiment, the operations include, but are not limited to, adjusting brightness of the display device 12, switching images displayed on the display device 12, switching web pages displayed on the display device 12.
In a first example of controlling the display device 12, the activating module 101 can unlock the electronic device 1 when an unlocking signal is received. The unlocking signal can be generated by a sliding touch on the display device 12. For example, the activating module 101 can unlock the electronic device 1 when the sliding touch matches a predetermined sliding path.
The activating module 101 can activate the camera lens 11 when the electronic device 1 is unlocked.
The obtaining module 102 can control the camera lens 11 to capture an image of an ambience surrounding the electronic device 1 at predetermined time intervals. For example, the obtaining module 102 can control the camera lens 11 to capture the image of the ambience surrounding the electronic device 1 once every two seconds.
The obtaining module 102 can further identify a brightness value of the image of the ambience surrounding the electronic device 1.
In one embodiment, the obtaining module 102 converts a RGB (Red, Green, Blue) color mode of the image of the ambience surrounding the electronic device 1 to be a HSL (Hue, Saturation, Lightness) color mode, and then obtains the brightness value of the image of the ambience surrounding the electronic device 1 by extracting the Lightness value from the HSL color mode.
For example, the brightness value of an image may be an average of the brightness values of all or a part of the pixels of the image.
The determining module 103 can compare the brightness values of two continuously captured images.
When the brightness value of a current captured image is greater than the brightness value of a previously captured image, the control module 104 can turn up the brightness of the display device 12. When the brightness value of the current captured image is less than the brightness value of the previously captured image, the control module 104 can turn down the brightness of the display device 12.
In a second example of controlling the display device 12, the activating module 101 can activate the camera lens 11 when a predetermined application is running in the electronic device 1. The predetermined application may be an image viewer, a web browser, for example.
The obtaining module 102 can control the camera lens 11 to capture an image of a hand of a user at predetermined time intervals. For example, the obtaining module 102 can control the camera lens 11 to capture the image of the hand of the user every 2 seconds. The obtaining module 102 can further store the image of the hand of the user in the storage device 13.
The determining module 103 can identify a position difference of the hand of the user in two continuously captured images. The control module 104 can control the display device 12 to adjust content displayed on the display device 12 according to the position difference. The content may be an image, a webpage, for example.
In one embodiment, when a position of the hand of the user in a current captured image is higher than a position of the hand of the user in a previously captured image, the control module 104 can control the display device 12 to enlarge the content currently displayed on the display device 12 by a predetermined ratio, such as 10 percent. When the position of the hand of the user in the current captured image is lower than the position of the hand of the user in the previously captured image, the control module 104 can control the display device 12 to reduce the content currently displayed on the display device 12 by a predetermined ratio, such as 15 percent.
When the position of the hand of the user in the current captured image is on the left of the position of the hand of the user in the previously captured image, the control module 104 can control the display device 12 to switch to a previous content. When the position of the hand of the user in the current captured image is on the right of the position of the hand of the user in the previously captured image, the control module 104 can control the display device 12 to display next content.
In general, the control system 10 can predefine a plurality of position differences of the hand of the user in two continuously captured images. The control system 10 can further predefine a plurality of adjustments on the content displayed on the display device 12. Each predefined position difference of the hand of the user in two continuously captured images is corresponding to a predefined adjustment on the content displayed on the display device 12. The determining module 103 can compare the position difference of the hand of the user between the current captured image and the previously captured image with the predefined position differences. When the determining module 103 determines that the position difference of the hand of the user matches one of the predefined position differences, the control module 104 can perform the corresponding predefined adjustment on the content displayed on the display device 12.
In a third example of controlling the display device 12, the obtaining module 102 can obtain a brightness value of the display device 12 when the display device 12 is activated. For example, the obtaining module 102 obtains the brightness value of the display device 12 when the electronic device is communicating with a remote electronic device. The obtaining module 102 can further store the brightness value of the display device 12 in the storage device 13.
The activating module 101 can activate the camera lens 11 when the electronic device is communicating with the remote electronic device.
The obtaining module 102 can control the camera lens 11 to capture an image of an ambience surrounding the electronic device 1 at predetermined time intervals. For example, the obtaining module 102 can control the camera lens 11 to capture the image of the ambience surrounding the electronic device 1 every 2 seconds.
The obtaining module 102 can further identify a brightness value of the image of the ambience surrounding the electronic device 1. In one embodiment, the obtaining module 102 first converts a RGB (Red, Green, Blue) color mode of the image of the ambience surrounding the electronic device 1 to be a HSL (Hue, Saturation, Lightness) color mode, and then obtains the brightness value of the image of the ambience surrounding the electronic device 1 by extracting the Lightness value from the HSL color mode.
The determining module 103 can identify whether the brightness value of a current captured image is less than the brightness value of the display device 12 stored in the storage device 13.
When the brightness value of the current captured image is less than the brightness value of the display device 12 stored in the storage device 13, the control module 104 can turn down the brightness of the display device 12 to save power. For example, the control module 104 can turn off the display device 12.
When the brightness value of the current captured image is not less than the brightness value of the display device 12 stored in the storage device 13, the control module 104 can keep the brightness of the display device 12.
At block 1001, an activating module can unlock an electronic device when an unlocking signal is received. The unlocking signal can be generated by a sliding touch on a display device of an electronic device. For example, the activating module can unlock the electronic device when the sliding touch matches a predetermined sliding path.
At block 1002, the activating module can activate a camera lens of the electronic device when the electronic device is unlocked.
At block 1003, an obtaining module can control the camera lens to capture an image of an ambience surrounding the electronic device at predetermined time intervals. For example, the obtaining module can control the camera lens to capture the image of the ambience surrounding the electronic device every 2 seconds.
The obtaining module can further identify a brightness value of the image of the ambience surrounding the electronic device.
In one embodiment, the obtaining module converts a RGB (Red, Green, Blue) color mode of the image of the ambience surrounding the electronic device to be a HSL (Hue, Saturation, Lightness) color mode, and then obtains the brightness value of the image of the ambience surrounding the electronic device by extracting the Lightness value from the HSL color mode.
For example, the brightness value of an image may be an average of the brightness values of all or a part of the pixels of the image.
At block 1004, a determining module can compare the brightness values of two continuously captured images.
When the brightness value of a current captured image is greater than the brightness value of a previously captured image, the process goes to block 1005. When the brightness value of the current captured image is less than the brightness value of the previously captured image, the process goes to block 1006. When the brightness value of the current captured image is equal to the brightness value of the previously captured image, the process ends.
At block 1005, a control module can turn up the brightness of a display device of the electronic device.
At block 1006, the control module can turn down the brightness of the display device.
At block 201, an activating module can unlock an electronic device and activate a predetermined application running in the electronic device. The predetermined application may be an image viewer, a web browser, for example.
At block 202, the activating module can activate a camera lens of the electronic device when the predetermined application is running in the electronic device. For example, the activating module can activate the camera lens when the image viewer displays an image on a display device of the electronic device.
At block 203, an obtaining module can control the camera lens to capture an image of a hand of a user at predetermined time intervals. For example, the obtaining module can control the camera lens to capture the image of the hand of the user every 2 seconds. The obtaining module can further store the image of the hand of the user in a storage device of the electronic device.
At block 204, an determining module can identify a position difference of the hand of the user in two continuously captured images.
At block 205, a control module can control the display device to adjust content displayed on the display device according to the position difference. The content may be an image, a webpage, for example.
In one embodiment, when a position of the hand of the user in a current captured image is higher than a position of the hand of the user in a previously captured image, the control module can control the display device to enlarge the content currently displayed on the display device by a predetermined ratio, such as 10 percent. When the position of the hand of the user in the current captured image is lower than the position of the hand of the user in the previously captured image, the control module can control the display device to reduce the content currently displayed on the display device by a predetermined ratio, such as 15 percent.
When the position of the hand of the user in the current captured image is on the left of the position of the hand of the user in the previously captured image, the control module can control the display device to switch to a previous content. When the position of the hand of the user in the current captured image is on the right of the position of the hand of the user in the previously captured image, the control module can control the display device to display a next content.
In general, the control module can predefine a plurality of position differences of the hand of the user in two continuously captured images. The control module can further predefine a plurality of adjustments on the content displayed on the display device. Each predefined position difference of the hand of the user in two continuously captured images is corresponding to a predefined adjustment on the content displayed on the display device. The determining module can compare the position difference of the hand of the user between the current captured image and the previously captured image with the predefined position differences. When the determining module determines that the position difference of the hand of the user matches one of the predefined position differences, the control module can perform the corresponding predefined adjustment on the content displayed on the display device.
At block 301, an obtaining module can obtain a brightness value of a display device of an electronic device when the display device is activated. For example, the obtaining module obtains the brightness value of the display device when the electronic device is communicating with a remote electronic device. The obtaining module can further store the brightness value of the display device in a storage device of the electronic device.
At block 302, the activating module can activate a camera lens of the electronic device. In one embodiment, the activating module can activate the camera lens when the electronic device is communicating with the remote electronic device.
At block 303, an obtaining module can control the camera lens to capture an image of an ambience surrounding the electronic device at predetermined time intervals. For example, the obtaining module can control the camera lens to capture the image of the ambience surrounding the electronic device every 2 seconds.
The obtaining module can further identify a brightness value of the image of the ambience surrounding the electronic device. In one embodiment, the obtaining module first converts a RGB (Red, Green, Blue) color mode of the image of the ambience surrounding the electronic device to be a HSL (Hue, Saturation, Lightness) color mode, and then obtains the brightness value of the image of the ambience surrounding the electronic device by extracting the Lightness value from the HSL color mode.
At block 304, a determining module can identify whether the brightness value of a current captured image is less than the brightness value of the display device stored in the storage device.
When the brightness value of the current captured image is less than the brightness value of the display device stored in the storage device, the process goes to block 305. When the brightness value of the current captured image is not less than the brightness value of the display device stored in the storage device, the process goes to block 306.
At block 305, the control module can turn down the brightness of the display device to save power. For example, the control module can turn off the display device.
At block 306, the control module can keep the brightness of the display device.
It should be emphasized that the above-described embodiments of the present disclosure, including any particular embodiments, are merely possible examples of implementations, set forth for a clear understanding of the principles of the disclosure. Many variations and modifications can be made to the above-described embodiment(s) of the disclosure without departing substantially from the spirit and principles of the disclosure. All such modifications and variations are intended to be included herein within the scope of this disclosure and protected by the following claims.
Number | Date | Country | Kind |
---|---|---|---|
201410473022.X | Sep 2014 | CN | national |