1. Technical Field
Embodiments of the present disclosure generally relate to an electronic device, and more particularly to a white balance adjustment method for the electronic device.
2. Description of Related Art
In general, color temperature measurements are used for white balance adjustments. However, camera units using color temperature measurements may not accurately adjust white balance and produce reddish or bluish images.
What is needed, therefore, is a white balance adjustment method for an electronic device which can use a light sensor to sense light source types, so as to more accurately adjust the white balance of a camera unit of the electronic device.
The disclosure is illustrated by way of example and not by way of limitation in the figures of the accompanying drawings in which like references 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 mean at least one.
In general, the data “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, for example, Java, C, or assembly. One or more software instructions in the modules may be embedded in firmware, such as an EPROM. It will be appreciated that modules may comprised connected logic units, such as gates and flip-flops, and may comprise programmable units, such as programmable gate arrays or processors. The modules described herein may be implemented as either software and/or hardware modules and may be stored in any type of computer-readable medium or other computer storage device.
The light sensor 10 connects to the DSP 11, and is operable to sense light that strikes the electronic device 100, to determine a source of the light. In the embodiment, the light source may be an incandescent lamp, a fluorescent lamp, or sunlight, for example. The light sensor 10 further acquires illumination parameters of the light source. In the embodiment, the illumination parameter may include a light intensity and RGB values of the light source.
The DSP 11 is operable to adjust white balance settings of the camera unit 1 according to the illumination parameters. As shown in
The receiving module 110 receives the illumination parameters of the light source acquired by the light sensor 10. The adjusting module 112 adjusts brightness and contrast of the camera unit 1 according to the illumination parameters, and adjusts RGB settings (includes a “R” value, a “G” value, and a “B” value) of the camera unit 1 to comply with the RGB values of the light source. For example, the adjusting module 112 can multiply or divide each of the “R” value, the “G” value and the “B” value of the RGB setting with, for example, an amplifier or divider circuit.
When the CCD 12 is controlled to capture an image of an object, the ISP 13 is operable to convert the image into a digital image, and transmit the digital image to the DSP 11. The image conversion module 114 converts the digital image into a user recognizable image.
In the embodiment, the user recognizable image can be displayed on the display device 2 of the electronic device 100.
In block S300, a shooting mode of the electronic device 100 is entered when a user clicks an item related to the shooting mode. For example, if the user wants to shoot an object, a shooting item may be clicked to enter the shooting mode.
In block S302, the user selects a white balance adjusting mode for adjusting white balance settings of a camera unit 1 of the electronic device 100.
In block S304, the light sensor 10 senses light that strikes the electronic device 100, to determine a source of the light, and acquires illumination parameters of the light source. In the embodiment, the illumination parameters include a light intensity and RGB values of the light source. For example, the RGB values of the light source may be: R=88, G=76 and B=62. In one embodiment, the camera unit 1 has a default setting RGB values, such as R=50, G=50 and B=50. The light source may be an incandescent lamp, a fluorescent lamp, or sunlight, for example.
In block S306, the receiving module 110 receives the illumination parameters, the adjusting module 112 adjusts white balance settings of the camera unit 1 according to the illumination parameters. In the embodiment, the white balance adjustment includes adjusting brightness and contrast of the camera unit 1, and adjusting RGB settings of the camera unit 1 to comply with the RGB values of the light source. For example, the adjusting module 112 adjusts the RGB settings of the camera unit 1 to: R=88, G=76 and B=62.
In block S308, the user may press a button to control the CCD 12 to obtain a user recognizable image of the object. In details, the CCD 12 is controlled to capture an image of the object. The ISP 13 converts the image into a digital image, and then transmits the digital image to the DSP 11. The image conversion module 114 converts the digital image into the user recognizable image.
In block S310, the display device 2 displays the user recognizable image.
Although certain inventive embodiments of the present disclosure have been specifically described, the present disclosure is not to be construed as being limited thereto. Various changes or modifications may be made to the present disclosure without departing from the scope and spirit of the present disclosure.
Number | Date | Country | Kind |
---|---|---|---|
200810306567.6 | Dec 2008 | CN | national |