Summary of the invention
Purpose of this disclosure is to provide a kind of white balance method of Image Acquisition, device, storage medium and electronic equipments, use
In solving the white balance parameter existing in the prior art manually adjusted, cause the image of acquisition that cannot really reflect reference object
The problem of.
To achieve the goals above, according to the first aspect of the embodiments of the present disclosure, a kind of white balance of Image Acquisition is provided
Method is applied to terminal, which comprises
Obtain the adjusting parameter of user's input;
It determines when the user inputs the adjusting parameter, the scene color of current scene locating for the terminal;
According to the scene color first in the first color coordinates and the color space in preset color space
The preset colour curve of quantity, determines the corresponding color coordinates range of the current scene;
According to the adjusting parameter and the color coordinates range, the corresponding target white balance ginseng of the current scene is determined
Number;
It controls the terminal and acquires image according to the target white balance parameter.
Optionally, the determination is when the user inputs the adjusting parameter, the field of current scene locating for the terminal
Scape color, comprising:
When the user inputs the adjusting parameter, the preview image of the current scene is obtained;
The preview image is handled according to preset automatic white balance algorithm, with the determination scene color.
Optionally, before the adjusting parameter of the acquisition user input, the method also includes:
In the second quantity light source under the irradiation of each light source, it includes gray card that it is corresponding, which to acquire each light source,
Measurement image, the colour temperature of each light source is all different;
Determine the corresponding measurement image of each light source, the second color coordinates in the color space;
According to corresponding second color coordinates of each light source, the first quantity colour curve is determined.
Optionally, first color coordinates and the color according to the scene color in preset color space
The preset colour curve of the first quantity, determines the corresponding color coordinates range of the current scene in color space, comprising:
Obtain first color coordinates to the first quantity colour curve the first quantity vertical line;
Selection meets the target vertical line of preset condition in the first quantity vertical line;
Using the target vertical line as the color coordinates range.
Optionally, the first reference axis in the color space indicates the red ratio with green, in the color space
The second reference axis indicate the ratio of blue with green, the adjusting parameter includes: the red adjustment ratio with blue;Alternatively,
The first reference axis in the color space indicates coloration U, and the second reference axis in the color space indicates color
V is spent, the adjusting parameter includes: the adjustment ratio of coloration U Yu coloration V.
Optionally, described according to the adjusting parameter and the color coordinates range, determine that the current scene is corresponding
Target white balance parameter, comprising:
Within the scope of the color coordinates, the third color coordinates for meeting the adjustment ratio is determined;
The third color coordinates is converted to the ratio of corresponding three Color Channels of three primary colors;
Using the ratio of three Color Channels as the target white balance parameter.
Optionally, the target vertical line is in the first quantity vertical line, and intersection point is bent in the first quantity color
On line, and the shortest vertical line of the distance between first color coordinates and the intersection point.
According to the second aspect of an embodiment of the present disclosure, a kind of white balancing apparatus of Image Acquisition is provided, terminal, institute are applied to
Stating device includes:
Module is obtained, for obtaining the adjusting parameter of user's input;
Scene determining module, for determining when the user inputs the adjusting parameter, the terminal is locating to work as front court
The scene color of scape;
Range determination module, for the first color coordinates according to the scene color in preset color space, and
The preset colour curve of the first quantity, determines the corresponding color coordinates range of the current scene in the color space;
Parameter determination module, for determining the current scene according to the adjusting parameter and the color coordinates range
Corresponding target white balance parameter;
Control module acquires image according to the target white balance parameter for controlling the terminal.
Optionally, the scene determining module includes:
Image acquisition submodule, for obtaining the pre- of the current scene when the user inputs the adjusting parameter
Look at image;
Scene determines submodule, for handling according to preset automatic white balance algorithm the preview image, with
Determine the scene color.
Optionally, described device further include:
Acquisition module, for it is described acquisition user input adjusting parameter before, in the second quantity light source each
Under the irradiation of the light source, the corresponding measurement image comprising gray card of each light source, the colour temperature of each light source are acquired
It is all different;
Coordinate determining module, for determining the corresponding measurement image of each light source, in the color space
The second color coordinates;
Curve determining module, for determining the first quantity according to corresponding second color coordinates of each light source
A colour curve.
Optionally, the range determination module includes:
Vertical line acquisition submodule, for obtaining first color coordinates to the first of the first quantity colour curve
Quantity vertical line;
Submodule is selected, for selecting the target vertical line for meeting preset condition in the first quantity vertical line;
Range determination submodule, for using the target vertical line as the color coordinates range.
Optionally, the first reference axis in the color space indicates the red ratio with green, in the color space
The second reference axis indicate the ratio of blue with green, the adjusting parameter includes: the red adjustment ratio with blue;Alternatively,
The first reference axis in the color space indicates coloration U, and the second reference axis in the color space indicates color
V is spent, the adjusting parameter includes: the adjustment ratio of coloration U Yu coloration V.
Optionally, the parameter determination module includes:
Coordinate determines submodule, within the scope of the color coordinates, determining the third face for meeting the adjustment ratio
Chromaticity coordinates;
Transform subblock, for the third color coordinates to be converted to the ratio of corresponding three Color Channels of three primary colors
Value;
Parameter determination submodule, for using the ratio of three Color Channels as the target white balance parameter.
Optionally, the target vertical line is in the first quantity vertical line, and intersection point is bent in the first quantity color
On line, and the shortest vertical line of the distance between first color coordinates and the intersection point.
According to the third aspect of an embodiment of the present disclosure, a kind of computer readable storage medium is provided, calculating is stored thereon with
The step of machine program, the white balance method for the Image Acquisition that realization first aspect provides when which is executed by processor.
According to a fourth aspect of embodiments of the present disclosure, a kind of electronic equipment is provided, comprising:
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize the image of first aspect offer
The step of white balance method of acquisition.
Through the above technical solutions, obtaining the adjusting parameter of user's input in the disclosure first, determine user defeated later
When entering adjusting parameter, the corresponding scene color of current scene locating for the terminal, according to scene color in preset color space
In the first color coordinates and color space in the first quantity preset colour curve, to determine the corresponding face of current scene
Chromaticity coordinates range further determines that the corresponding target white balance of current scene is joined according to adjusting parameter and color coordinates range
Number finally controls the terminal according to target white balance parameter and acquires image.The adjusting parameter and work as that disclosure combination user inputs
The scene color of preceding scene, to realize the blank level adjustment on thermoisopleth, solves use to determine target white balance parameter
Family manually adjusts the problem of image fault caused by white balance parameter so that terminal acquisition image be more in line with it is seen by person
Image.
Other feature and advantage of the disclosure will the following detailed description will be given in the detailed implementation section.
Specific embodiment
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to
When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment
Described in embodiment do not represent all implementations consistent with this disclosure.On the contrary, they be only with it is such as appended
The example of the consistent device and method of some aspects be described in detail in claims, the disclosure.
It is first before the white balance method of Image Acquisition of disclosure offer, device, storage medium and electronic equipment are provided
First application scenarios involved by each embodiment of the disclosure are introduced.The application scenarios are any with image collecting function
Terminal, such as be provided with smart phone, tablet computer, smart television, smartwatch, the PDA (Personal of camera
Digital Assistant, personal digital assistant), the mobile terminals such as portable computer, can also be camera, video camera etc..
Further, terminal also has the function of interacting with user, such as: terminal may include operation interface, and user is operating
Specified operation (slide, click, double-clicking, pulling, long-pressing or amplifying gesture etc.) is carried out on interface to issue control instruction.Or
Multiple keys of corresponding different instruction can be set in terminal, user issues corresponding control by pressing different key and refers to
It enables.It is also provided in terminal voice acquisition device (microphone etc.), user is referred to by issuing voice to issue control to terminal
It enables.
Fig. 1 is a kind of flow chart of the white balance method of Image Acquisition shown according to an exemplary embodiment, such as Fig. 1 institute
Show, this method is applied to terminal, comprising the following steps:
Step 101, the adjusting parameter of user's input is obtained.
For example, a slider bar can be shown in the control interface of terminal, the sliding scale of slider bar can be by
For green to magenta, adjusting parameter (i.e. tone Tint or colour temperature) is arranged by pulling slider bar in user.Alternatively, user can
Directly to input adjusting parameter in the control interface of terminal.Wherein, adjusting parameter can be three primary colors (red, green, indigo plant
Color) in some color gain, or the ratio of two colors, with RGB (English: Red Green Blue) color space
For, adjusting parameter can be the red adjustment ratio with blue.Wherein, before user inputs adjusting parameter, terminal can be with
It is always automatic white balance mode, until user pulls slider bar, terminal exits automatic white balance mode, into manual white balance
Mode.
Step 102, it determines when user inputs adjusting parameter, the scene color of current scene locating for terminal.
Step 103, first in the first color coordinates and color space according to scene color in preset color space
The preset colour curve of quantity, determines the corresponding color coordinates range of current scene.
Exemplary, when user inputs adjusting parameter, the display interface of terminal (can be the same boundary with control interface
Face is also possible to independent interface) on preview can be carried out to current scene locating for terminal and show, with for reference, use
Family judges the colour temperature of current scene according to personal experience, so that it is determined that adjusting parameter.When display interface carries out preview display, press
The scene color of current scene is determined according to preset algorithm.Later, according to corresponding the in preset color space of scene color
The positional relationship of one color coordinates and preset first quantity colour curve determines the color coordinates for being suitable for current scene
Range (i.e. tone range, Tint Range).For example, the first color coordinates and the first quantity colour curve can be acquired respectively
Distance, then the shortest colour curve of selected distance does vertical line to the colour curve by the first color coordinates, by the vertical line
Corresponding vertical line equation is as the color coordinates range for being suitable for current scene.It is to be understood that will be determined according to preset algorithm
Initial value of the scene color as this blank level adjustment of user, color coordinates range is determined by initial value.
Step 104, according to adjusting parameter and color coordinates range, the corresponding target white balance parameter of current scene is determined.
Step 105, controlling terminal acquires image according to target white balance parameter.
For example, after determining color coordinates range, selection and adjusting parameter are matched white flat in color coordinates range
The parameter that weighs is as the target white balance parameter for being suitable for current scene.When adjusting parameter is the ratio of two colors, then
In the vertical line equation for indicating color coordinates range, the color coordinates for meeting the ratio of two colors is found, finally sits the color
Mark is converted to the ratio of corresponding three Color Channels of three primary colors, joins the ratio of three Color Channels as target white balance
Number, last controlling terminal acquire image according to target white balance parameter.
It should be noted that in the prior art, when user manually adjusts white balance parameter, be by the personal experience of user Lai
It adjusting, the adjustable extent of white balance parameter is arbitrary, is unrestricted, and according to the observation of human eye, in fact it could happen that " equality of temperature
The phenomenon that difference spectrum ", therefore the image for being easy to cause terminal to acquire has a long way to go with image seen by person.And in the disclosure,
The adjusting parameter inputted by the scene color combination user of current scene, to limit the adjustable extent of white balance parameter.So that
Under Same Scene (when i.e. scene color is identical), user inputs different adjusting parameters, can be in the same adjustable extent
Variation, can carry out blank level adjustment on thermoisopleth, and the image that terminal is acquired more is truly reflected shooting
The color of object is more in line with image seen by person.
In conclusion obtaining the adjusting parameter of user's input in the disclosure first, determine user in input adjustment ginseng later
When number, the corresponding scene color of current scene locating for the terminal, according to scene color in preset color space first
The preset colour curve of first quantity in color coordinates and color space, to determine the corresponding color coordinates model of current scene
It encloses, further, the corresponding target white balance parameter of current scene is determined according to adjusting parameter and color coordinates range, is finally controlled
It makes the terminal and acquires image according to target white balance parameter.The adjusting parameter of disclosure combination user input and the field of current scene
Scape color, to realize the blank level adjustment on thermoisopleth, solves user and manually adjusts to determine target white balance parameter
Caused by white balance parameter the problem of image fault, so that the image of terminal acquisition is more in line with image seen by person.
Fig. 2 is the flow chart of the white balance method of another Image Acquisition shown according to an exemplary embodiment, such as Fig. 2
Shown, step 102 can be realized by following steps:
Step 1021, when user inputs adjusting parameter, the preview image of current scene is obtained.
Step 1022, preview image is handled according to preset automatic white balance algorithm, to determine scene color.
Specifically, available user, when inputting adjusting parameter, the preview image of current scene utilizes terminal later
Automatic white balance algorithm (English: Auto White Balance, abbreviation: AWB) in automatic white balance mode is to preview image
It is handled, to obtain the scene color for the current scene that terminal is judged.Scene color can be understood as automatic white balance
The corresponding color of white balance parameter determined in mode, using scene color as user, this carries out the first of blank level adjustment manually
Initial value, to limit the adjustable extent of white balance parameter.Wherein, preview image is served only for terminal and determines scene color, or for
Family preview, therefore preview image can be (such as can be placed in the memory of terminal) that terminal acquires in real time, without
It is stored in the storage equipment of terminal.
Fig. 3 a is the flow chart of the white balance method of another Image Acquisition shown according to an exemplary embodiment, is such as schemed
Shown in 3a, before step 101, this method may also comprise the following steps::
Step 106, in the second quantity light source under the irradiation of each light source, it is corresponding comprising gray card to acquire each light source
Measurement image, the colour temperature of each light source is all different.
Step 107, the corresponding measurement image of each light source, the second color coordinates in color space are determined.
Step 108, according to corresponding second color coordinates of each light source, the first quantity colour curve is determined.
For example, colour curve used in step 103 can be during the research and development of terminal, test, according to warp
Data are tested to determine.Different terminals, due to hardware configuration, the difference of parameter, the figure shot under the light source of identical colour temperature
Picture may also be different.Therefore, the measurement figure comprising gray card (English: Grey Chip) can be acquired under the irradiation of different light sources
Picture, to obtain terminal collected different colours value under the irradiation of different light sources.For example, with International Commission on Illumination (French:
Commission Internationale de l ' Eclairage, abbreviation: CIE) standard, choose 7 (i.e. the second quantity)
Light source: D75, D65, D50, CW (English: Cool White), TL84, A, H (English: Horizon), terminal is respectively in this 7 light
Under the irradiation in source, gray card is shot, 7 measurement images are obtained.7 second of 7 measurement images on color space are determined respectively
Color coordinates, and by 7 the second color coordinates, the second adjacent color coordinates is attached two-by-two, 6 connecting lines are obtained,
Using this 6 (i.e. the first quantity) connecting lines as colour curve.It, can also be by CW in order to make colour curve closer to actual conditions
It is then incited somebody to action again as Fluo point at midpoint with TL84 line: six corresponding (the i.e. second number of D75, D65, D50, Fluo, A, H
Amount) in the second color coordinates, the second adjacent color coordinates is attached two-by-two, 5 connecting lines is obtained, by this 5 (i.e. first
Quantity) connecting line is as colour curve.
Using color space as rgb color space, the first reference axis therein indicates the red ratio (R/G) with green, color
The second reference axis in color space indicate blue with for the ratio (B/G) of green, then according to D75, D65, D50, Fluo, A,
5 colour curves that corresponding six the second color coordinates of H determine are as shown in Figure 3b.With color space for LUV color space,
In the first reference axis indicate coloration U, for the second reference axis in color space indicates coloration V, then according to D75, D65,
5 colour curves that corresponding six the second color coordinates of D50, Fluo, A, H determine are as shown in Figure 3c.
Fig. 4 is the flow chart of the white balance method of another Image Acquisition shown according to an exemplary embodiment, such as Fig. 4
Shown, step 103 includes:
Step 1031, the first quantity vertical line of the first color coordinates to the first quantity colour curve is obtained.
Step 1032, the target vertical line for meeting preset condition is selected in the first quantity vertical line.
Step 1033, using target vertical line as color coordinates range.
It is exemplary, after determining scene color, scene color is converted into the first color coordinates in color space, Zhi Houtong
It crosses the first color coordinates and does vertical line to the first quantity colour curve, obtain the first quantity vertical line, choose meet in advance wherein
If the target vertical line of condition, and using the corresponding vertical line equation of target vertical line as color coordinates range, color coordinates range can be with
It is interpreted as the adjusting range of this blank level adjustment of user.
Wherein, target vertical line is in the first quantity vertical line, and intersection point is on the first quantity colour curve, and the first color
The shortest vertical line of the distance between coordinate and intersection point, i.e. preset condition are as follows: intersection point (i.e. intersection point on the first quantity colour curve
Cannot be on the extended line of colour curve), and the distance between the first color coordinates and intersection point are most short.It further, can be with
The range (sliding scale that can be understood as slider bar in control interface) of the adjusting parameter inputted according to terminal for user, really
The corresponding maximum color coordinate and minimum color coordinates on target vertical line of fixed maximum adjusting parameter, the smallest adjusting parameter,
To which adjusting parameter is limited on target vertical line maximum color coordinate between minimum color coordinates.
Specifically, adjusting parameter includes: the red adjustment ratio with blue for the color space shown in Fig. 3 b.Such as
Shown in Fig. 5 a, a point is the first color coordinates, and dotted line indicates that target vertical line (passes through a point to the colour curve between D65 and D50
The vertical line done), b point is the corresponding minimum color coordinates in target vertical line of the smallest adjusting parameter, c point in the range of adjusting parameter
The maximum color coordinate in target vertical line is corresponded to for adjusting parameter maximum in the range of adjusting parameter, then color coordinates range
As on target vertical line between point b to point c.
Alternatively, adjusting parameter includes: the adjustment ratio of coloration U Yu coloration V for the color space shown in Fig. 3 c.Such as
Shown in Fig. 5 b, a point is the first color coordinates, and dotted line indicates that target vertical line (passes through a point to the colour curve between D65 and D50
The vertical line done), b point is the corresponding maximum color coordinate in target vertical line of maximum adjusting parameter, c point in the range of adjusting parameter
The minimum color coordinates in target vertical line is corresponded to for adjusting parameter the smallest in the range of adjusting parameter, then color coordinates range
As on target vertical line between point b to point c.
Fig. 6 is the flow chart of the white balance method of another Image Acquisition shown according to an exemplary embodiment, such as Fig. 6
Shown, step 104 includes:
Step 1041, within the scope of color coordinates, the third color coordinates for meeting adjustment ratio is determined.
Step 1042, third color coordinates is converted to the ratio of corresponding three Color Channels of three primary colors.
Step 1043, using the ratio of three Color Channels as target white balance parameter.
For example, after determining color coordinates range, within the scope of color coordinates, find satisfaction adjustment ratio (it is red with
Blue adjustment ratio or coloration U and coloration V adjustment ratio) third color coordinates, third color coordinates is converted to
The ratio of red channel, blue channel and green channel carrys out controlling terminal acquisition figure using the ratio as target white balance parameter
Picture.It wherein, can be according to two in third color coordinates if the third color coordinates determined in the color space shown in Fig. 3 b
A coordinate value (i.e. R/G value and B/G value), enables G=1, it can obtain the ratio of red channel, blue channel and green channel.
If the third color coordinates determined in the color space shown in Fig. 3 c, can be first according to two coordinates in third color coordinates
It is worth (i.e. coloration U value and coloration V value), is converted to R/G value and B/G value by coordinate, then enable G=1, it can obtains red logical
The ratio in road, blue channel and green channel.
In conclusion obtaining the adjusting parameter of user's input in the disclosure first, determine user in input adjustment ginseng later
When number, the corresponding scene color of current scene locating for the terminal, according to scene color in preset color space first
The preset colour curve of first quantity in color coordinates and color space, to determine the corresponding color coordinates model of current scene
It encloses, further, the corresponding target white balance parameter of current scene is determined according to adjusting parameter and color coordinates range, is finally controlled
It makes the terminal and acquires image according to target white balance parameter.The adjusting parameter of disclosure combination user input and the field of current scene
Scape color, to realize the blank level adjustment on thermoisopleth, solves user and manually adjusts to determine target white balance parameter
Caused by white balance parameter the problem of image fault, so that the image of terminal acquisition is more in line with image seen by person.
Fig. 7 is a kind of block diagram of the white balancing apparatus of Image Acquisition shown according to an exemplary embodiment, such as Fig. 7 institute
Show, which includes:
Module 201 is obtained, for obtaining the adjusting parameter of user's input.
Scene determining module 202, for determining when user inputs adjusting parameter, the scene face of current scene locating for terminal
Color.
Range determination module 203, for the first color coordinates and color according to scene color in preset color space
The preset colour curve of the first quantity, determines the corresponding color coordinates range of current scene in color space.
Parameter determination module 204, for determining the corresponding target of current scene according to adjusting parameter and color coordinates range
White balance parameter.
Control module 205 acquires image according to target white balance parameter for controlling terminal.
Fig. 8 is the block diagram of the white balancing apparatus of another Image Acquisition shown according to an exemplary embodiment, such as Fig. 8 institute
Show, scene determining module 202 includes:
Image acquisition submodule 2021, for obtaining the preview image of current scene when user inputs adjusting parameter.
Scene determines submodule 2022, for handling according to preset automatic white balance algorithm preview image, with
Determine scene color.
Fig. 9 is the block diagram of the white balancing apparatus of another Image Acquisition shown according to an exemplary embodiment, such as Fig. 9 institute
Show, the device 200 further include:
Acquisition module 206, for obtain user input adjusting parameter before, each light in the second quantity light source
Under the irradiation in source, the corresponding measurement image comprising gray card of each light source is acquired, the colour temperature of each light source is all different.
Coordinate determining module 207, the second color for determining the corresponding measurement image of each light source, in color space
Coordinate.
Curve determining module 208, for determining the first quantity color according to corresponding second color coordinates of each light source
Curve.
Figure 10 is the block diagram of the white balancing apparatus of another Image Acquisition shown according to an exemplary embodiment, such as Figure 10
Shown, range determination module 203 includes:
Vertical line acquisition submodule 2031, the first quantity for obtaining the first color coordinates to the first quantity colour curve
A vertical line.
Submodule 2032 is selected, the target vertical line for selecting to meet preset condition in the first quantity vertical line.
Range determination submodule 2033, for using target vertical line as color coordinates range.
Wherein, target vertical line is in the first quantity vertical line, and intersection point is on the first quantity colour curve, and the first color
The shortest vertical line of the distance between coordinate and intersection point.
Optionally, the first reference axis in color space indicates the red ratio with green, and second in color space sits
Parameter indicates the ratio of blue with green, and adjusting parameter includes: the red adjustment ratio with blue.Alternatively,
The first reference axis in color space indicates coloration U, and the second reference axis in color space indicates coloration V, adjustment
Parameter includes: the adjustment ratio of coloration U Yu coloration V.
Figure 11 is the block diagram of the white balancing apparatus of another Image Acquisition shown according to an exemplary embodiment, such as Figure 11
Shown, parameter determination module 204 includes:
Coordinate determines submodule 2041, within the scope of color coordinates, determining that the third color for meeting adjustment ratio is sat
Mark.
Transform subblock 2042, for third color coordinates to be converted to the ratio of corresponding three Color Channels of three primary colors
Value.
Parameter determination submodule 2043, for using the ratio of three Color Channels as target white balance parameter.
About the device in above-described embodiment, wherein modules execute the concrete mode of operation in related this method
Embodiment in be described in detail, no detailed explanation will be given here.
In conclusion obtaining the adjusting parameter of user's input in the disclosure first, determine user in input adjustment ginseng later
When number, the corresponding scene color of current scene locating for the terminal, according to scene color in preset color space first
The preset colour curve of first quantity in color coordinates and color space, to determine the corresponding color coordinates model of current scene
It encloses, further, the corresponding target white balance parameter of current scene is determined according to adjusting parameter and color coordinates range, is finally controlled
It makes the terminal and acquires image according to target white balance parameter.The adjusting parameter of disclosure combination user input and the field of current scene
Scape color, to realize the blank level adjustment on thermoisopleth, solves user and manually adjusts to determine target white balance parameter
Caused by white balance parameter the problem of image fault, so that the image of terminal acquisition is more in line with image seen by person.
Figure 12 is the block diagram of a kind of electronic equipment 300 shown according to an exemplary embodiment.As shown in figure 12, the electronics
Equipment 300 may include: processor 301, memory 302.The electronic equipment 300 can also include multimedia component 303, defeated
Enter/export one or more of (I/O) interface 304 and communication component 305.
Wherein, processor 301 is used to control the integrated operation of the electronic equipment 300, to complete above-mentioned Image Acquisition
All or part of the steps in white balance method.Memory 302 is for storing various types of data to support to set in the electronics
Standby 300 operation, these data for example may include any application or method for operating on the electronic equipment 300
Instruction and the relevant data of application program, such as contact data, the message of transmitting-receiving, picture, audio, video etc..It should
Memory 302 can be realized by any kind of volatibility or non-volatile memory device or their combination, such as static state
Random access memory (Static Random Access Memory, abbreviation SRAM), electrically erasable programmable read-only memory
(Electrically Erasable Programmable Read-Only Memory, abbreviation EEPROM), erasable programmable
Read-only memory (Erasable Programmable Read-Only Memory, abbreviation EPROM), programmable read only memory
(Programmable Read-Only Memory, abbreviation PROM), and read-only memory (Read-Only Memory, referred to as
ROM), magnetic memory, flash memory, disk or CD.Multimedia component 303 may include screen and audio component.Wherein
Screen for example can be touch screen, and audio component is used for output and/or input audio signal.For example, audio component may include
One microphone, microphone is for receiving external audio signal.The received audio signal can be further stored in storage
Device 302 is sent by communication component 305.Audio component further includes at least one loudspeaker, is used for output audio signal.I/O
Interface 304 provides interface between processor 301 and other interface modules, other above-mentioned interface modules can be keyboard, mouse,
Button etc..These buttons can be virtual push button or entity button.Communication component 305 is for the electronic equipment 300 and other
Wired or wireless communication is carried out between equipment.Wireless communication, such as Wi-Fi, bluetooth, near-field communication (Near Field
Communication, abbreviation NFC), 2G, 3G or 4G or they one or more of combination, therefore corresponding communication
Component 305 may include: Wi-Fi module, bluetooth module, NFC module.
In one exemplary embodiment, electronic equipment 300 can be by one or more application specific integrated circuit
(Application Specific Integrated Circuit, abbreviation ASIC), digital signal processor (Digital
Signal Processor, abbreviation DSP), digital signal processing appts (Digital Signal Processing Device,
Abbreviation DSPD), programmable logic device (Programmable Logic Device, abbreviation PLD), field programmable gate array
(Field Programmable Gate Array, abbreviation FPGA), controller, microcontroller, microprocessor or other electronics member
Part is realized, for executing the white balance method of above-mentioned Image Acquisition.
In a further exemplary embodiment, a kind of computer readable storage medium including program instruction is additionally provided, it should
The step of white balance method of above-mentioned Image Acquisition is realized when program instruction is executed by processor.For example, this is computer-readable
Storage medium can be the above-mentioned memory 302 including program instruction, and above procedure instruction can be by the processor of electronic equipment 300
301 execute to complete the white balance method of above-mentioned Image Acquisition.
In a further exemplary embodiment, a kind of computer program product is also provided, which includes energy
Enough computer programs executed by programmable device, which has uses when being executed by the programmable device
In the code section for the white balance method for executing above-mentioned Image Acquisition.
In conclusion obtaining the adjusting parameter of user's input in the disclosure first, determine user in input adjustment ginseng later
When number, the corresponding scene color of current scene locating for the terminal, according to scene color in preset color space first
The preset colour curve of first quantity in color coordinates and color space, to determine the corresponding color coordinates model of current scene
It encloses, further, the corresponding target white balance parameter of current scene is determined according to adjusting parameter and color coordinates range, is finally controlled
It makes the terminal and acquires image according to target white balance parameter.The adjusting parameter of disclosure combination user input and the field of current scene
Scape color, to realize the blank level adjustment on thermoisopleth, solves user and manually adjusts to determine target white balance parameter
Caused by white balance parameter the problem of image fault, so that the image of terminal acquisition is more in line with image seen by person.
The preferred embodiment of the disclosure is described in detail in conjunction with attached drawing above, still, the disclosure is not limited to above-mentioned reality
The detail in mode is applied, in the range of the technology design of the disclosure, a variety of letters can be carried out to the technical solution of the disclosure
Monotropic type, these simple variants belong to the protection scope of the disclosure.
It is further to note that specific technical features described in the above specific embodiments, in not lance
In the case where shield, can be combined in any appropriate way, in order to avoid unnecessary repetition, the disclosure to it is various can
No further explanation will be given for the combination of energy.
In addition, any combination can also be carried out between a variety of different embodiments of the disclosure, as long as it is without prejudice to originally
Disclosed thought equally should be considered as disclosure disclosure of that.