CN110351537A - White balance method, device, storage medium and the electronic equipment of Image Acquisition - Google Patents

White balance method, device, storage medium and the electronic equipment of Image Acquisition Download PDF

Info

Publication number
CN110351537A
CN110351537A CN201910703419.6A CN201910703419A CN110351537A CN 110351537 A CN110351537 A CN 110351537A CN 201910703419 A CN201910703419 A CN 201910703419A CN 110351537 A CN110351537 A CN 110351537A
Authority
CN
China
Prior art keywords
color
white balance
scene
color coordinates
parameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201910703419.6A
Other languages
Chinese (zh)
Other versions
CN110351537B (en
Inventor
雷志燊
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Dazhi robot (Beijing) Co.,Ltd.
Original Assignee
Cloudminds Inc
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Cloudminds Inc filed Critical Cloudminds Inc
Priority to CN201910703419.6A priority Critical patent/CN110351537B/en
Publication of CN110351537A publication Critical patent/CN110351537A/en
Application granted granted Critical
Publication of CN110351537B publication Critical patent/CN110351537B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Processing Of Color Television Signals (AREA)
  • Color Television Image Signal Generators (AREA)

Abstract

This disclosure relates to a kind of white balance method of Image Acquisition, device, storage medium and electronic equipment, it is related to technical field of image processing, this method is applied to and terminal, it include: the adjusting parameter for obtaining user's input, it determines when user inputs adjusting parameter, the scene color of current scene locating for terminal, according to first color coordinates of the scene color in preset color space, with the preset colour curve of the first quantity in color space, determine the corresponding color coordinates range of current scene, according to adjusting parameter and color coordinates range, determine the corresponding target white balance parameter of current scene, controlling terminal acquires image according to target white balance parameter.The adjusting parameter of disclosure combination user input and the scene color of current scene, to determine target white balance parameter, so that the blank level adjustment on thermoisopleth is realized, so that the image of terminal acquisition is more in line with image seen by person.

Description

White balance method, device, storage medium and the electronic equipment of Image Acquisition
Technical field
This disclosure relates to technical field of image processing, and in particular, to a kind of white balance method of Image Acquisition, device, Storage medium and electronic equipment.
Background technique
With the continuous development of terminal technology and image processing techniques, requirement of the people to shooting photographic quality is also increasingly It is high.Terminal can be pre-adjusted a variety of acquisition parameters when shooting photo, for example, adjustment white balance (English: White Balance, abridge WB) parameter (ratio that can be understood as three Color Channels), so that the photo shot can be more true The color for reflecting reference object on the spot, i.e., closer to image seen by person.In order to meet the different demands of user, lead in terminal It is standing to be equipped with automatic white balance mode and manual white balance mode.When user selects manual white balance mode, allow user's root White balance parameter is manually adjusted according to personal experience.However, may be seen in two opposite identical scenes of colour temperature in human eye The phenomenon that color difference, i.e. " equality of temperature difference spectrum " arrived, therefore user manually adjusts white put down according to the scene being visually observed Weighing apparatus parameter is difficult to take the photo close with image seen by person.
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.
Detailed description of the invention
Attached drawing is and to constitute part of specification for providing further understanding of the disclosure, with following tool Body embodiment is used to explain the disclosure together, but does not constitute the limitation to the disclosure.In the accompanying drawings:
Fig. 1 is a kind of flow chart of the white balance method of Image Acquisition shown according to an exemplary embodiment;
Fig. 2 is the flow chart of the white balance method of another Image Acquisition shown according to an exemplary embodiment;
Fig. 3 a is the flow chart of the white balance method of another Image Acquisition shown according to an exemplary embodiment;
Fig. 3 b is a kind of schematic diagram of color space shown in Fig. 3 a illustrated embodiment;
Fig. 3 c is the schematic diagram of another color space shown in Fig. 3 a illustrated embodiment;
Fig. 4 is the flow chart of the white balance method of another Image Acquisition shown according to an exemplary embodiment;
Fig. 5 a is a kind of schematic diagram of color coordinates range shown in embodiment illustrated in fig. 4;
Fig. 5 b is the schematic diagram of another color coordinates range shown in embodiment illustrated in fig. 4;
Fig. 6 is the flow chart of the white balance method of another Image Acquisition shown according to an exemplary embodiment;
Fig. 7 is a kind of block diagram of the white balancing apparatus of Image Acquisition shown according to an exemplary embodiment;
Fig. 8 is the block diagram of the white balancing apparatus of another Image Acquisition shown according to an exemplary embodiment;
Fig. 9 is the block diagram of the white balancing apparatus of another Image Acquisition shown according to an exemplary embodiment;
Figure 10 is the block diagram of the white balancing apparatus of another Image Acquisition shown according to an exemplary embodiment;
Figure 11 is the block diagram of the white balancing apparatus of another Image Acquisition shown according to an exemplary embodiment;
Figure 12 is the block diagram of a kind of electronic equipment shown according to an exemplary embodiment.
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.

Claims (10)

1. a kind of white balance method of Image Acquisition, which is characterized in that be 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 quantity in the first color coordinates and the color space in preset color space A preset colour curve 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 parameter of the current scene is determined;
It controls the terminal and acquires image according to the target white balance parameter.
2. the method according to claim 1, wherein the determination inputs the adjusting parameter in the user When, the scene color of current scene locating for the terminal, 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.
3. the method according to claim 1, wherein it is described acquisition user input adjusting parameter before, institute State method further include:
In the second quantity light source under the irradiation of each light source, the corresponding survey comprising gray card of each light source is acquired The colour temperature of spirogram picture, 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.
4. method according to any one of claim 1-3, which is characterized in that described to be preset according to the scene color Color space in the first color coordinates and the color space in the first quantity preset colour curve, determine described in The corresponding color coordinates range of current scene, 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.
5. according to the method described in claim 4, it is characterized in that, the first reference axis in the color space indicate it is red with The ratio of green, the second reference axis in the color space indicate the ratio of blue with green, and the adjusting parameter includes: red The adjustment ratio of color and blue;Alternatively,
The first reference axis in the color space indicates coloration U, and the second reference axis in the color space indicates coloration V, The adjusting parameter includes: the adjustment ratio of coloration U Yu coloration V.
6. according to the method described in claim 5, it is characterized in that, described according to the adjusting parameter and the color coordinates model It encloses, determines the corresponding target white balance parameter of the current scene, 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.
7. according to the method described in claim 4, it is characterized in that, the target vertical line is in the first quantity vertical line, Intersection point is on the first quantity colour curve, and the distance between first color coordinates and the intersection point are shortest vertical Line.
8. a kind of white balancing apparatus of Image Acquisition, which is characterized in that be applied to terminal, described 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, current scene locating for the terminal Scene color;
Range determination module, for according to first color coordinates of the scene color in preset color space and described The preset colour curve of the first quantity, determines the corresponding color coordinates range of the current scene in color space;
Parameter determination module, for determining that the current scene is corresponding according to the adjusting parameter and the color coordinates range Target white balance parameter;
Control module acquires image according to the target white balance parameter for controlling the terminal.
9. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor The step of any one of claim 1-7 the method is realized when row.
10. a kind of electronic equipment characterized by comprising
Memory is stored thereon with computer program;
Processor, for executing the computer program in the memory, to realize described in any one of claim 1-7 The step of method.
CN201910703419.6A 2019-07-31 2019-07-31 White balance method and device for image acquisition, storage medium and electronic equipment Active CN110351537B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910703419.6A CN110351537B (en) 2019-07-31 2019-07-31 White balance method and device for image acquisition, storage medium and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910703419.6A CN110351537B (en) 2019-07-31 2019-07-31 White balance method and device for image acquisition, storage medium and electronic equipment

Publications (2)

Publication Number Publication Date
CN110351537A true CN110351537A (en) 2019-10-18
CN110351537B CN110351537B (en) 2021-09-24

Family

ID=68183562

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910703419.6A Active CN110351537B (en) 2019-07-31 2019-07-31 White balance method and device for image acquisition, storage medium and electronic equipment

Country Status (1)

Country Link
CN (1) CN110351537B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182217A (en) * 2020-01-07 2020-05-19 徐梦影 Image white balance processing method and device
CN112468795A (en) * 2020-12-09 2021-03-09 山东志盈医学科技有限公司 Method and device for adjusting white balance of camera
CN112995634A (en) * 2021-04-21 2021-06-18 贝壳找房(北京)科技有限公司 Image white balance processing method and device, electronic equipment and storage medium
CN113259647A (en) * 2020-02-12 2021-08-13 北京小米移动软件有限公司 Eye protection mode processing method and device and storage medium
CN114449243A (en) * 2022-01-28 2022-05-06 青岛海信移动通信技术股份有限公司 White balance method and terminal equipment
CN114697515A (en) * 2020-12-28 2022-07-01 北京小米移动软件有限公司 Method and device for collecting image and readable storage medium
CN117119316A (en) * 2023-10-25 2023-11-24 荣耀终端有限公司 Image processing method, electronic device, and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079954A (en) * 2007-06-26 2007-11-28 北京中星微电子有限公司 Method and device for realizing white balance correction
CN101420626A (en) * 2007-10-22 2009-04-29 索尼株式会社 Color signal processing circuit, image capture device and method for processing color singal
CN101483717A (en) * 2008-01-08 2009-07-15 三星Techwin株式会社 Digital photographing apparatus and method for controlling the same
CN107066223A (en) * 2017-03-17 2017-08-18 广东欧珀移动通信有限公司 Control method and control device
CN107197225A (en) * 2017-06-13 2017-09-22 浙江大学 Color digital camera white balance correcting based on chromatic adaptation model
CN107343190A (en) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 White balance adjusting method, apparatus and terminal device
CN108184106A (en) * 2017-12-29 2018-06-19 努比亚技术有限公司 Image processing method, mobile terminal and computer readable storage medium
CN108234978A (en) * 2017-12-12 2018-06-29 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108337433A (en) * 2018-03-19 2018-07-27 广东欧珀移动通信有限公司 A kind of photographic method, mobile terminal and computer readable storage medium
CN108712639A (en) * 2018-05-29 2018-10-26 凌云光技术集团有限责任公司 Image color correction method, apparatus and system

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101079954A (en) * 2007-06-26 2007-11-28 北京中星微电子有限公司 Method and device for realizing white balance correction
CN101420626A (en) * 2007-10-22 2009-04-29 索尼株式会社 Color signal processing circuit, image capture device and method for processing color singal
CN101483717A (en) * 2008-01-08 2009-07-15 三星Techwin株式会社 Digital photographing apparatus and method for controlling the same
CN107066223A (en) * 2017-03-17 2017-08-18 广东欧珀移动通信有限公司 Control method and control device
CN107197225A (en) * 2017-06-13 2017-09-22 浙江大学 Color digital camera white balance correcting based on chromatic adaptation model
CN107343190A (en) * 2017-07-25 2017-11-10 广东欧珀移动通信有限公司 White balance adjusting method, apparatus and terminal device
CN108234978A (en) * 2017-12-12 2018-06-29 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN108184106A (en) * 2017-12-29 2018-06-19 努比亚技术有限公司 Image processing method, mobile terminal and computer readable storage medium
CN108337433A (en) * 2018-03-19 2018-07-27 广东欧珀移动通信有限公司 A kind of photographic method, mobile terminal and computer readable storage medium
CN108712639A (en) * 2018-05-29 2018-10-26 凌云光技术集团有限责任公司 Image color correction method, apparatus and system

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111182217A (en) * 2020-01-07 2020-05-19 徐梦影 Image white balance processing method and device
CN111182217B (en) * 2020-01-07 2021-08-10 上海海鸥数码照相机有限公司 Image white balance processing method and device
CN113259647A (en) * 2020-02-12 2021-08-13 北京小米移动软件有限公司 Eye protection mode processing method and device and storage medium
CN113259647B (en) * 2020-02-12 2023-02-17 北京小米移动软件有限公司 Eye protection mode processing method and device and storage medium
CN112468795A (en) * 2020-12-09 2021-03-09 山东志盈医学科技有限公司 Method and device for adjusting white balance of camera
CN114697515A (en) * 2020-12-28 2022-07-01 北京小米移动软件有限公司 Method and device for collecting image and readable storage medium
CN112995634A (en) * 2021-04-21 2021-06-18 贝壳找房(北京)科技有限公司 Image white balance processing method and device, electronic equipment and storage medium
CN112995634B (en) * 2021-04-21 2021-07-20 贝壳找房(北京)科技有限公司 Image white balance processing method and device, electronic equipment and storage medium
CN114449243A (en) * 2022-01-28 2022-05-06 青岛海信移动通信技术股份有限公司 White balance method and terminal equipment
CN114449243B (en) * 2022-01-28 2023-12-12 青岛海信移动通信技术有限公司 White balance method and terminal equipment
CN117119316A (en) * 2023-10-25 2023-11-24 荣耀终端有限公司 Image processing method, electronic device, and readable storage medium
CN117119316B (en) * 2023-10-25 2024-05-31 荣耀终端有限公司 Image processing method, electronic device, and readable storage medium

Also Published As

Publication number Publication date
CN110351537B (en) 2021-09-24

Similar Documents

Publication Publication Date Title
CN110351537A (en) White balance method, device, storage medium and the electronic equipment of Image Acquisition
EP3699903B1 (en) Screen color conversion method and apparatus, and storage medium
CN105744174B (en) A kind of self-timer method, device and mobile terminal
JP5512928B2 (en) Method and apparatus for aesthetically enhanced image conversion
CN106716243A (en) Multi-LED camera flash for color temperature matching
CN112801916A (en) Image processing method and device, electronic equipment and storage medium
CN109345485A (en) A kind of image enchancing method, device, electronic equipment and storage medium
CN106134189B (en) Image processing apparatus, photographic device, image processing method and program
US7636108B2 (en) Image pickup device, white balance processing method, program, and storage medium
CN104735362A (en) Picture taking method and device
CN109729281A (en) Image processing method, device, storage medium and terminal
CN111294576B (en) Automatic white balance processing method and device and electronic equipment
CN113676715B (en) Image processing method and device
KR101680446B1 (en) Creation device for color table, correction and control device for camera image and method thereof
US11114051B1 (en) Method, storage medium and display device for adjusting a displayed image
CN111918047A (en) Photographing control method and device, storage medium and electronic equipment
CN104427322A (en) Information processing device, imaging device, information processing method, and program
Ryu et al. Colorimetric background estimation for color blending reduction of OST-HMD
US20170126961A1 (en) Image adjusting apparatus
CN109076199A (en) White balance adjustment device and its working method and working procedure
CN115918069A (en) Electronic device for adjusting image quality of display device and operation method thereof
CN108886608A (en) White balance adjustment device and its working method and working procedure
US10341531B2 (en) Applying a perceptually uniform color space for image processing
JP2004194303A (en) Imaging apparatus, imaging method, computer readable recording medium, and program
Abdelhamed et al. MarkWhite: An Improved Interactive White-Balance Method for Smartphone Cameras.

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address

Address after: 518000 a1302, building 10, Shenzhen Bay science and technology ecological park, No. 10, Gaoxin South ninth Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee after: Shenzhen Da Yun Duan Intelligent Technology Co.,Ltd.

Address before: 518000 Room 201, building A, No. 1, Qian Wan Road, Qianhai Shenzhen Hong Kong cooperation zone, Shenzhen, Guangdong (Shenzhen Qianhai business secretary Co., Ltd.)

Patentee before: CLOUDMINDS (SHENZHEN) ROBOTICS SYSTEMS Co.,Ltd.

CP03 Change of name, title or address
TR01 Transfer of patent right

Effective date of registration: 20220228

Address after: 102402 Room 102, 1f, building 3, yard 85, Hong'an Road, Fangshan District, Beijing

Patentee after: Dazhi robot (Beijing) Co.,Ltd.

Address before: 518000 a1302, building 10, Shenzhen Bay science and technology ecological park, No. 10, Gaoxin South ninth Road, high tech Zone community, Yuehai street, Nanshan District, Shenzhen, Guangdong

Patentee before: Shenzhen Da Yun Duan Intelligent Technology Co.,Ltd.

TR01 Transfer of patent right