CN107360410A - Method for controlling white balance, device and terminal device - Google Patents

Method for controlling white balance, device and terminal device Download PDF

Info

Publication number
CN107360410A
CN107360410A CN201710558404.6A CN201710558404A CN107360410A CN 107360410 A CN107360410 A CN 107360410A CN 201710558404 A CN201710558404 A CN 201710558404A CN 107360410 A CN107360410 A CN 107360410A
Authority
CN
China
Prior art keywords
value
color temperature
temperature value
white balance
picture
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.)
Pending
Application number
CN201710558404.6A
Other languages
Chinese (zh)
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.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201710558404.6A priority Critical patent/CN107360410A/en
Publication of CN107360410A publication Critical patent/CN107360410A/en
Pending legal-status Critical Current

Links

Classifications

    • 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
    • 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
    • H04N23/12Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths with one sensor only
    • 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

Landscapes

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

Abstract

The invention discloses a kind of method for controlling white balance, device and terminal device, wherein, this method includes:Determine the first color temperature value corresponding to the picture that camera currently gathers;According to default rule, it is determined that the first yield value corresponding with first color temperature value;Using first yield value as initial value, white balance adjusting is carried out to the picture currently gathered.Thus, the first color temperature value according to corresponding to the picture that camera currently gathers, and default rule are passed through, it is determined that suitable yield value is restrained as initial value, to carry out white balance adjusting, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.

Description

Method for controlling white balance, device and terminal device
Technical field
The present invention relates to camera technology field, more particularly to a kind of method for controlling white balance, device and terminal device.
Background technology
With the development of science and technology, the camera device such as camera, video camera be widely used in daily life, work, In study, role is more and more important in people live.During using camera device shooting image, in order to ensure picture field The real-playback of color in scape, it is necessary to be controlled to white balance.
Prior art, camera device is upon actuation, it is necessary to which yield value when camera device last time is exited is as initial value Start to restrain, to carry out white balance adjusting.However, this white balance adjusting mode, if shooting when camera device last time exits Scene differs larger with current photographed scene, then the time of white balance adjusting process consumption is longer, poor user experience.
The content of the invention
The purpose of the present invention is intended at least solve one of above-mentioned technical problem to a certain extent.
Therefore, the application proposes a kind of method for controlling white balance, by according to corresponding to the picture that camera currently gathers First color temperature value, and default rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance adjusting, The problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
The application also proposes a kind of white balance control device.
The application also proposes a kind of terminal device.
The application also proposes a kind of computer-readable recording medium.
The application first aspect embodiment proposes a kind of method for controlling white balance, and methods described includes:
Determine the first color temperature value corresponding to the picture that camera currently gathers;
According to default rule, it is determined that the first yield value corresponding with first color temperature value;
Using first yield value as initial value, white balance adjusting is carried out to the picture currently gathered.
The method for controlling white balance that the embodiment of the present application provides, it is first determined the corresponding to the picture that camera currently gathers Temperature value of the same colour, then according to default rule, it is determined that the first yield value corresponding with the first color temperature value, finally with the first yield value For initial value, white balance adjusting is carried out to the picture currently gathered.Thus, it is corresponding by the picture currently gathered according to camera The first color temperature value, and default rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance tune Section, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
The application second aspect embodiment proposes a kind of white balance control device, wherein, the white balance control device bag Include:
First determining module, the first color temperature value corresponding to the picture currently gathered for determining camera;
Second determining module, for according to default rule, it is determined that the first yield value corresponding with first color temperature value;
Adjustment module, for using first yield value as initial value, white balance to be carried out to the picture currently gathered Regulation.
The white balance control device that the embodiment of the present application provides, it is first determined the corresponding to the picture that camera currently gathers Temperature value of the same colour, then according to default rule, it is determined that the first yield value corresponding with the first color temperature value, finally with the first yield value For initial value, white balance adjusting is carried out to the picture currently gathered.Thus, it is corresponding by the picture currently gathered according to camera The first color temperature value, and default rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance tune Section, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
The application third aspect embodiment proposes a kind of terminal device, including:Housing, processor, memory, circuit board, Power circuit and camera, wherein, the circuit board is placed in the interior volume that the housing surrounds, the processor and described Memory is arranged on the circuit board;The power circuit, for each circuit or the device power supply for the terminal device; The memory is used to store executable program code;The processor is by reading the executable journey stored in the memory Sequence code, to run program corresponding with the executable program code, for performing white balance as described in relation to the first aspect Control method.
The terminal device that the embodiment of the present application provides, it is first determined the first colour temperature corresponding to the picture that camera currently gathers Value, then according to default rule, it is determined that the first yield value corresponding with the first color temperature value, is finally initial using the first yield value Value, white balance adjusting is carried out to the picture currently gathered.Thus, by first according to corresponding to the picture that camera currently gathers Color temperature value, and default rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance adjusting, avoid The problem of film flicker, the speed of white balance adjusting is improved, improve Consumer's Experience.
The application fourth aspect embodiment proposes a kind of computer-readable recording medium, is stored thereon with computer program, Characterized in that, method for controlling white balance as described in relation to the first aspect is realized when the program is executed by processor.
The embodiment of the present application provide computer-readable recording medium, can be arranged on it is any need carry out white balance control Terminal in, when carrying out white balance control, by performing the method for controlling white balance that stores thereon, it is possible to achieve according to shooting First color temperature value corresponding to the picture that head currently gathers, and default rule, it is determined that suitable yield value is carried out as initial value Convergence, to carry out white balance adjusting, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves user Experience.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the flow chart of the method for controlling white balance of the application one embodiment;
Fig. 2 is the flow chart of the method for controlling white balance of the application another embodiment;
Fig. 3 is the flow chart of the method for controlling white balance of the application another embodiment;
Fig. 4 is the structure chart of the white balance control device of the application one embodiment;
Fig. 5 is the structure chart of the white balance control device of the application another embodiment;
Fig. 6 is the structure chart of the terminal device of the application one embodiment.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings white control method, device and the terminal device of the embodiment of the present invention are described.
Generally, it just can determine that current picture, it is necessary to according to the colour temperature of continuous multiple frames picture in camera device shooting image Color temperature value, and then determine present image carry out white balance adjusting when corresponding white balance gains value.
Aforesaid way, due to determining that the colour temperature of current picture need to take some time, therefore the time of white balance adjusting Also it is longer.Therefore, in the embodiment of the present application, initial value can be pre-set, so that when camera device shoots present image, can So that convergence directly is adjusted to the white balance of present image with initial value, so as to shorten the time of white balance adjusting.
Prior art, camera device is upon actuation, it is necessary to which yield value when camera device last time is exited is as initial value Start to restrain, to carry out white balance adjusting.And this mode, photographed scene when being exited due to camera device last time are clapped with current Taking the photograph scene may be different, may be because not which results in the yield value of photographed scene when being exited using last time as initial value Colour temperature difference with scene is larger, the problem of film flicker occurs.And using last time exit when photographed scene yield value as Initial value, initial value may differ larger with target gain value, wherein, the color that target gain value refers in image scene can be true True weight corresponding yield value now.During due to being restrained since initial value, the adjustment to yield value is gradually carried out, initial value Differ bigger with target gain value, the time of white balance adjusting consumption is longer, then according to existing way, carries out white balance adjusting When, not only easily there is the problem of film flicker, the time of white balance adjusting also can be longer, poor user experience.
Various embodiments of the present invention are in view of the above-mentioned problems, propose a kind of method for controlling white balance.Determine that camera is current first First color temperature value corresponding to the picture of collection, then according to default rule, it is determined that the first gain corresponding with the first color temperature value Value, then using the first yield value as initial value, white balance adjusting is carried out to the picture currently gathered.By currently being adopted according to camera First color temperature value corresponding to the picture of collection, and default rule, it is determined that suitable yield value is restrained as initial value, to enter Row white balance adjusting, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
The method for controlling white balance of the embodiment of the present application is illustrated with reference to Fig. 1.
Fig. 1 is the flow chart of the method for controlling white balance of the application one embodiment.
As shown in figure 1, this method includes:
Step 101, the first color temperature value corresponding to the picture that camera currently gathers is determined.
Wherein, method for controlling white balance provided in an embodiment of the present invention, can be by white balance provided in an embodiment of the present invention Control device performs.Specifically, the white balance control device, can be configured in any terminal with image camera function and set In standby.Wherein, the type of terminal device is a lot, can be selected according to using needs, such as:Mobile phone, computer, camera etc..
It should be noted that method for controlling white balance provided in an embodiment of the present invention, after being applicable not only to camera startup, The scene of white balance adjusting is carried out, after being also applied for camera one two field picture of shooting, when shooting next two field picture again, is carried out white The scene of balance adjustment, is not restricted herein.
Specifically, the first color temperature value corresponding to the picture that camera currently gathers can be determined by a variety of methods.
Method one
According to color temperature value corresponding to each white blocks included in the picture currently gathered, it is determined that the picture currently gathered is corresponding The first color temperature value.
Specifically, can be according to following steps, it is determined that the white blocks that the picture currently gathered includes.
Step 101a, the picture that camera is currently gathered, it is divided into M*N blocks, and counts the number of white pixel in each piece Amount and the R (red) of white pixel, G (green), B (indigo plant) passage component average.
It should be noted that a color gamut can be pre-set, when the color of certain pixel is in default scope When, you can it is white pixel to think the pixel.
Step 101b, a scope is pre-set, when the quantity for the white pixel point that certain block includes accounts for the block pixel When the ratio of total quantity is not in default scope, then the block is abandoned.
It is understood that when the white pixel point that certain block includes is less, it is believed that the block is not white blocks;When When the white pixel point that certain block includes is too many, represent the possible overexposure of the block, then can be less or excessive by white pixel point Block abandon, remaining piece be white blocks.
Specifically, determine white blocks that the picture currently gathered includes and its including white pixel corresponding to R, G, After the average of the component of channel B, you can according to colour temperature curve, colour temperature corresponding to white blocks is determined, so as to by most of white blocks Corresponding color temperature value, it is defined as the first color temperature value corresponding to the picture that camera currently gathers.
Method two
According to color temperature value corresponding to the region where target reference object in the picture currently gathered, it is determined that currently gather First color temperature value corresponding to picture.
Specifically, in the picture currently gathered, multiple objects may be included, in embodiments of the present invention, can be according to institute Region where the target reference object to be shot, it is determined that the first color temperature value corresponding to the picture currently gathered.
Such as in the picture currently gathered, including personage and scenery, and target reference object is personage, and personage is located at Medium position in picture.Then in the embodiment of the present invention, color temperature value corresponding to the central region where personage can be defined as First color temperature value corresponding to the picture currently gathered.
Step 102, according to default rule, it is determined that the first yield value corresponding with the first color temperature value.
Wherein, default rule, can be arranged as required to.Such as instruction that can be according to user or other triggerings Condition is set, and is not construed as limiting herein.
Yield value, the yield value of tri- passages of R, G, B in the image that imaging sensor obtains can be included.
Specifically, the mapping relations of the first color temperature value and the first yield value can be pre-set, then it is determined that camera is worked as After first color temperature value corresponding to the picture of preceding collection, the first yield value can be determined according to default mapping relations.
Or can according to camera gather former frame picture corresponding to the second color temperature value, the difference with the first color temperature value Value, it is determined that the first yield value corresponding with the first color temperature value.
For example a difference threshold can be pre-set, and initial yield value.In the first color temperature value and the second color temperature value When difference is less than default difference threshold, then by yield value corresponding to the former frame picture of camera collection, it is defined as the first increasing Benefit value, when the difference of the first color temperature value and the second color temperature value is more than or equal to default difference threshold, then by initial yield value, really It is set to the first yield value.
Wherein, difference threshold, initial yield value, can be arranged as required to.For example rule of thumb will can initially it increase Beneficial value is arranged to the yield value under D50 colour temperatures, or according to other conditions, difference threshold and initial yield value are configured, this Place is not restricted.
In addition, do not changed in terminal taking current picture and position during former frame picture, or terminal currently gathers Picture and former frame picture when not changing, it is believed that the colour temperature of the current picture and previous frame picture of camera collection Difference is less than default difference range, so as to which the former frame picture of camera collection is corresponded into yield value, is defined as the first gain Value.
If it should be noted that the method for controlling white balance, after starting applied to camera, i.e., camera currently gathers Picture, the first frame picture gathered after starting for camera, then photographed scene when can be exited according to camera last time are corresponding Color temperature value, the difference with the first color temperature value determines the first yield value corresponding to the first colour temperature, its realization principle and above-mentioned introduction Similar, here is omitted.
Step 103, using the first yield value as initial value, white balance adjusting is carried out to the picture currently gathered.
Generally, the R in image in the color vector of all pixels point, the averages of tri- components of G, B tend to balance (1:1:1) When, corresponding yield value is accurate target gain value.
Specifically, after the first yield value is determined, you can start to restrain using the first yield value as initial value, with to current The picture of collection carries out white balance adjusting.
During specific implementation, when carrying out white balance adjusting, because human eye is for belonging to the light of green wavelength in frequency spectrum (480nm-600nm) susceptibility highest, and the green pixel gathered in Bayer (Bayer) array is counted out at most, it is possible to The yield value of green component is fixed, the yield value of red component and blue component is then adjusted, realizes to red component and indigo plant The adjustment of colouring component, so that the R in image in the color vector of all pixels point, the averages of tri- components of G, B tends to balance (1: 1:1), so as to realizing the real-playback of the color in image scene.
It is understood that pass through method for controlling white balance provided in an embodiment of the present invention, the initial value of setting, with target The gap of yield value is small, the problem of so as to avoid the occurrence of film flicker, reduces the time of white balance adjusting.
Method for controlling white balance provided in an embodiment of the present invention, it is first determined corresponding to the picture that camera currently gathers Temperature value of the same colour, then according to default rule, it is determined that the first yield value corresponding with the first color temperature value, finally with the first yield value For initial value, white balance adjusting is carried out to the picture currently gathered.Thus, it is corresponding by the picture currently gathered according to camera The first color temperature value, and default rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance tune Section, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
With reference to Fig. 2, to method for controlling white balance provided in an embodiment of the present invention, it is further described.
Fig. 2 is the flow chart of the method for controlling white balance of another embodiment of the present invention.
As shown in Fig. 2 the method for controlling white balance, including:
Step 201, the color temperature value according to corresponding to each white blocks included in the picture currently gathered, it is determined that currently gather First color temperature value corresponding to picture.
Step 202, according to default colour temperature and the mapping relations of yield value, it is determined that corresponding with the first color temperature value first increases Benefit value.
Specifically, the mapping relations of the first color temperature value and the first yield value can be pre-set, then it is determined that camera is worked as After first color temperature value corresponding to the picture of preceding collection, the first yield value can be determined according to default mapping relations.
As an example it is assumed that it is 0-1000 Kai Er to pre-set the first color temperature value corresponding to the picture that camera currently gathers When literary (K), the first yield value is A;When first color temperature value is 1001K-2000K, the first yield value is B;First color temperature value is During 2001K-3000K, the first yield value is C;Etc..Then if it is determined that the first color temperature value corresponding to the picture that camera currently gathers For 2700K, then it is C that can determine the first yield value.
Step 203, using the first yield value as initial value, white balance adjusting is carried out to the picture currently gathered.
Wherein, the specific implementation process and principle of above-mentioned steps 201 and step 203, it is referred to walk in above-described embodiment Rapid 101 and the associated description of step 103, here is omitted.
Method for controlling white balance provided in an embodiment of the present invention, first according to each white included in the picture currently gathered Color temperature value corresponding to block, it is determined that the first color temperature value corresponding to the picture currently gathered, then according to default colour temperature and yield value Mapping relations, it is determined that the first yield value corresponding with the first color temperature value, finally using the first yield value as initial value, to currently adopting The picture of collection carries out white balance adjusting.Thus, by the first color temperature value according to corresponding to the picture that camera currently gathers, and in advance If rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance adjusting, avoid film flicker Problem, the speed of white balance adjusting is improved, improves Consumer's Experience.
With reference to Fig. 3, to method for controlling white balance provided in an embodiment of the present invention, it is further described.
Fig. 3 is the flow chart of the method for controlling white balance of another embodiment of the present invention.
As shown in figure 3, the method for controlling white balance, including:
Step 301, according to the region where target reference object in the picture currently gathered, it is determined that the picture currently gathered Corresponding first color temperature value.
Step 302, the second color temperature value, the difference with the first color temperature value according to corresponding to the former frame picture that camera gathers Value, it is determined that the first yield value corresponding with the first color temperature value.
Wherein, yield value, the yield value of tri- passages of R, G, B in the image that imaging sensor obtains can be included.
Specifically, step 302 can pass through accomplished in many ways.
Method one
Pre-set a difference threshold, and initial yield value.It is less than in the difference of the first color temperature value and the second color temperature value During default difference threshold, then by yield value corresponding to the former frame picture of camera collection, it is defined as the first yield value, the When temperature value of the same colour and the difference of the second color temperature value are more than or equal to default difference threshold, then by initial yield value, it is defined as first Yield value.
Wherein, difference threshold, initial yield value, can be arranged as required to.For example rule of thumb will can initially it increase Beneficial value is arranged to the yield value under D50 colour temperatures, or according to other conditions, difference threshold and initial yield value are configured, this Place is not restricted.
As an example it is assumed that difference threshold is 2000, initial yield value is the yield value under D50 colour temperatures, and camera gathers Former frame picture corresponding to yield value be A, the first color temperature value corresponding to the picture that camera currently gathers be 4000.If shooting When second color temperature value corresponding to the former frame picture of head collection is 2700, due to the difference of the first color temperature value and the second color temperature value 1300 are less than difference threshold 2000, then A can be defined as to the first yield value;If corresponding to the former frame picture of camera collection When second color temperature value is 1700, because the difference 2300 of the first color temperature value and the second color temperature value is more than difference threshold 2000, then may be used By the yield value under D50 colour temperatures, to be defined as the first yield value.
In addition, do not changed in terminal taking current picture and position during former frame picture, or terminal currently gathers Picture and former frame picture when not changing, it is believed that the colour temperature of the current picture and previous frame picture of camera collection Difference is less than default difference range, so as to which the former frame picture of camera collection is corresponded into yield value, is defined as the first gain Value.
Method two
Second color temperature value corresponding to the former frame picture gathered according to camera, the difference with the first color temperature value, it is determined that increasing Beneficial corrected value;
The second yield value and corrected value according to corresponding to former frame picture, determine the first yield value.
Wherein, gain correcting value, for by the second yield value, being corrected to the first yield value.
Accordingly, it is determined that before the first color temperature value corresponding to the picture currently gathered, can also include:
When shooting former frame picture, the second yield value corresponding with former frame picture is recorded.
During specific implementation, the difference of the first colour temperature and the second colour temperature can be pre-set, it is corresponding with gain correcting value to close System, can be according to the first colour temperature and the difference of the second colour temperature, it is determined that increasing so as to it is determined that after the first color temperature value and the second color temperature value Beneficial corrected value, and by gain correcting value, the first yield value is worth to according to the second gain.
As an example it is assumed that when the difference for pre-setting the first color temperature value and the second color temperature value is 0-2000K, gain calibration It is worth for 0;When the difference of first color temperature value and the second color temperature value is 2001K-2500K, gain correcting value 1;First color temperature value with When the difference of second color temperature value is 2501K-3000K, gain correcting value is 2, etc..If it is determined that the picture that camera currently gathers Corresponding first color temperature value is 2700K, and the second color temperature value corresponding to the former frame picture of camera collection is 4500K, former frame Second yield value corresponding to picture is A, then can be and default according to the first color temperature value and the difference 1800K of the second color temperature value Corresponding relation, it is 0 to determine gain correcting value, i.e. the first yield value is still A.
If it should be noted that above-mentioned method for controlling white balance, after starting applied to camera, i.e., camera currently gathers Picture, the first frame picture for gathering after starting for camera, then the photographed scene pair when can be exited according to camera last time The color temperature value answered, the difference with the first color temperature value, the first yield value corresponding to the first colour temperature is determined, its realization principle is with above giving an account of Continue similar, here is omitted.
In addition, the method for the above-mentioned yield value of determination first, is only schematically illustrated, it is impossible to as to technical scheme Limitation, those skilled in the art on this basis, can be as needed, arbitrarily sets according to the first color temperature value and the second colour temperature The difference of value, the method for determining the first yield value, is not construed as limiting to this herein.
Step 303, using the first yield value as initial value, white balance adjusting is carried out to the picture currently gathered.
Wherein, the specific implementation process and principle of above-mentioned steps 301 and step 303, it is referred to walk in above-described embodiment Rapid 101 and the associated description of step 103, here is omitted.
Method for controlling white balance provided in an embodiment of the present invention, first according to target reference object in the picture currently gathered The region at place, it is determined that the first color temperature value corresponding to the picture currently gathered, the former frame picture then gathered according to camera Corresponding second color temperature value, the difference with the first color temperature value, it is determined that the first yield value corresponding with the first color temperature value, finally with One yield value is initial value, and white balance adjusting is carried out to the picture currently gathered.Thus, by currently being gathered according to camera First color temperature value corresponding to picture, and default rule, it is determined that suitable yield value is restrained as initial value, it is white to carry out Balance adjustment, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
Fig. 4 is the structure chart of the white balance control device of the application one embodiment.
As shown in figure 4, the white balance control device, including:
First determining module 41, the first color temperature value corresponding to the picture currently gathered for determining camera;
Second determining module 42, for according to default rule, it is determined that the first yield value corresponding with the first color temperature value;
Adjustment module 43, for using the first yield value as initial value, white balance adjusting to be carried out to the picture currently gathered.
Wherein, the white balance control device that the present embodiment provides, can perform white balance control provided in an embodiment of the present invention Method processed.Specifically, the white balance control device, can be configured in any terminal device with image camera function. Wherein, the type of terminal device is a lot, can be selected according to using needs, such as:Mobile phone, computer, camera etc..
In a kind of possible way of realization of the present embodiment, above-mentioned second determining module 42, it is specifically used for:
According to default colour temperature and the mapping relations of yield value, it is determined that the first yield value corresponding with the first color temperature value;
Or the second color temperature value according to corresponding to the former frame picture that camera gathers, the difference with the first color temperature value, really Fixed the first yield value corresponding with the first color temperature value.
In the alternatively possible way of realization of the present embodiment, above-mentioned second determining module 42, it is additionally operable to:
According to the difference of the first color temperature value and the second color temperature value, gain correcting value is determined;
The second yield value and corrected value according to corresponding to former frame picture, determine the first yield value.
It should be noted that the explanation in previous embodiment to method for controlling white balance embodiment is also applied for the reality The white balance control device of example is applied, here is omitted.
The white balance control device that the embodiment of the present application provides, it is first determined the corresponding to the picture that camera currently gathers Temperature value of the same colour, then according to default rule, it is determined that the first yield value corresponding with the first color temperature value, finally with the first yield value For initial value, white balance adjusting is carried out to the picture currently gathered.Thus, it is corresponding by the picture currently gathered according to camera The first color temperature value, and default rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance tune Section, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
Fig. 5 is the structure chart of the white balance control device of the application another embodiment.
As shown in figure 5, on the basis of shown in Fig. 4, the white balance control device, in addition to:
Logging modle 51, for when shooting former frame picture, recording the second yield value corresponding with former frame picture.
It should be noted that the explanation in previous embodiment to method for controlling white balance embodiment is also applied for the reality The white balance control device of example is applied, here is omitted.
The white balance control device that the embodiment of the present application provides, it is first determined the corresponding to the picture that camera currently gathers Temperature value of the same colour, then according to default rule, it is determined that the first yield value corresponding with the first color temperature value, finally with the first yield value For initial value, white balance adjusting is carried out to the picture currently gathered.Thus, it is corresponding by the picture currently gathered according to camera The first color temperature value, and default rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance tune Section, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
Further aspect of the present invention embodiment also proposes a kind of terminal device.
Fig. 6 is the structure chart for the terminal device that the application one embodiment provides.
Wherein, the type of terminal device is a lot, can be selected according to using needs, such as:Mobile phone, computer, camera Deng.Fig. 6 is illustrated by mobile phone of terminal device.
As shown in fig. 6, the terminal device includes:Housing 601, processor 602, memory 603, circuit board 604, power supply electricity Road 605 and camera 606, wherein, circuit board 604 is placed in the interior volume that housing 601 surrounds, processor 602 and memory 603 are arranged on circuit board 604;Power circuit 605, for each circuit or the device power supply for terminal device;Memory 603 For storing executable program code;Processor 602 is by reading the executable program code stored in memory 603, to transport Row program corresponding with executable program code, for performing such as the method for controlling white balance in previous embodiment.
It should be noted that the foregoing explanation to method for controlling white balance embodiment is also applied for the end of the embodiment End equipment, its realization principle is similar, and here is omitted.
The terminal device that the embodiment of the present application provides, it is first determined the first colour temperature corresponding to the picture that camera currently gathers Value, then according to default rule, it is determined that the first yield value corresponding with the first color temperature value, is finally initial using the first yield value Value, white balance adjusting is carried out to the picture currently gathered.Thus, by first according to corresponding to the picture that camera currently gathers Color temperature value, and default rule, it is determined that suitable yield value is restrained as initial value, to carry out white balance adjusting, avoid The problem of film flicker, the speed of white balance adjusting is improved, improve Consumer's Experience.
For the above-mentioned purpose, the embodiment of the present application proposes a kind of computer-readable recording medium, is stored thereon with calculating Machine program, realized when the program is executed by processor such as the method for controlling white balance in previous embodiment.
The embodiment of the present application provide computer-readable recording medium, can be arranged on it is any need carry out white balance control Terminal in, when carrying out white balance control, by performing the method for controlling white balance that stores thereon, it is possible to achieve according to shooting First color temperature value corresponding to the picture that head currently gathers, and default rule, it is determined that suitable yield value is carried out as initial value Convergence, to carry out white balance adjusting, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves user Experience.
For the above-mentioned purpose, the embodiment of the present application proposes a kind of computer program product, when the computer program produces When instruction processing unit in product performs, perform such as the method for controlling white balance in previous embodiment.
The computer program product that the embodiment of the present application provides, any end for needing to carry out white balance control can be arranged on In end, when carrying out white balance control, by the program for performing corresponding method for controlling white balance, it is possible to achieve worked as according to camera First color temperature value corresponding to the picture of preceding collection, and default rule, it is determined that suitable yield value is restrained as initial value, To carry out white balance adjusting, the problem of avoiding film flicker, the speed of white balance adjusting is improved, improves Consumer's Experience.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality Body or operation make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that Other identical element also be present in process, method, article or equipment including the key element.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
It should be noted that in the description of this specification, reference term " one embodiment ", " some embodiments ", " show The description of example ", " specific example " or " some examples " etc. mean to combine the specific features of the embodiment or example description, structure, Material or feature are contained at least one embodiment or example of the present invention.In this manual, above-mentioned term is shown The statement of meaning property is necessarily directed to identical embodiment or example.Moreover, specific features, structure, material or the spy of description Point can combine in an appropriate manner in any one or more embodiments or example.In addition, in the case of not conflicting, Those skilled in the art can be by the different embodiments or example described in this specification and different embodiments or example Feature is combined and combined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
Although embodiments of the invention have been shown and described above, it is to be understood that above-described embodiment is example Property, it is impossible to limitation of the present invention is interpreted as, one of ordinary skill in the art within the scope of the invention can be to above-mentioned Embodiment is changed, changed, replacing and modification.

Claims (10)

  1. A kind of 1. method for controlling white balance, it is characterised in that including:
    Determine the first color temperature value corresponding to the picture that camera currently gathers;
    According to default rule, it is determined that the first yield value corresponding with first color temperature value;
    Using first yield value as initial value, white balance adjusting is carried out to the picture currently gathered.
  2. 2. method as claimed in claim 1, it is characterised in that it is described according to default rule, it is determined that with first color temperature value Corresponding first yield value, including:
    According to default colour temperature and the mapping relations of yield value, it is determined that the first yield value corresponding with first color temperature value;
    Or the second color temperature value according to corresponding to the former frame picture that the camera gathers, the difference with first color temperature value Value, it is determined that the first yield value corresponding with first color temperature value.
  3. 3. method as claimed in claim 2, it is characterised in that the former frame picture gathered according to the camera is corresponding The second color temperature value, the difference with first color temperature value, it is determined that the first yield value corresponding with first color temperature value, bag Include:
    According to the difference of first color temperature value and second color temperature value, gain correcting value is determined;
    According to the second yield value and the corrected value corresponding to the former frame picture, first yield value is determined.
  4. 4. the method as described in power wants 3, it is characterised in that the first color corresponding to the picture for determining camera and currently gathering Before temperature value, in addition to:
    When shooting the former frame picture, the second yield value corresponding with the former frame picture is recorded.
  5. A kind of 5. white balance control device, it is characterised in that including:
    First determining module, the first color temperature value corresponding to the picture currently gathered for determining camera;
    Second determining module, for according to default rule, it is determined that the first yield value corresponding with first color temperature value;
    Adjustment module, for using first yield value as initial value, white balance adjusting to be carried out to the picture currently gathered.
  6. 6. device as claimed in claim 5, it is characterised in that second determining module, be specifically used for:
    According to default colour temperature and the mapping relations of yield value, it is determined that the first yield value corresponding with first color temperature value;
    Or the second color temperature value according to corresponding to the former frame picture that the camera gathers, the difference with first color temperature value Value, it is determined that the first yield value corresponding with first color temperature value.
  7. 7. device as claimed in claim 6, it is characterised in that second determining module, be additionally operable to:
    According to the difference of first color temperature value and second color temperature value, gain correcting value is determined;
    According to the second yield value and the corrected value corresponding to the former frame picture, first yield value is determined.
  8. 8. device as claimed in claim 7, it is characterised in that also include:
    Logging modle, for when shooting the former frame picture, recording the second yield value corresponding with the former frame picture.
  9. A kind of 9. terminal device, it is characterised in that including:Housing, processor, memory, circuit board, power circuit and shooting Head, wherein, the circuit board is placed in the interior volume that the housing surrounds, and the processor and the memory are arranged on institute State on circuit board;The power circuit, for each circuit or the device power supply for the terminal device;The memory is used for Store executable program code;The processor is by reading the executable program code stored in the memory, to run Program corresponding with the executable program code, for performing the white balance control as described in any in claim 1-4 Method.
  10. 10. a kind of computer-readable recording medium, is stored thereon with computer program, it is characterised in that the program is by processor The method for controlling white balance as described in any in claim 1-4 is realized during execution.
CN201710558404.6A 2017-07-10 2017-07-10 Method for controlling white balance, device and terminal device Pending CN107360410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710558404.6A CN107360410A (en) 2017-07-10 2017-07-10 Method for controlling white balance, device and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710558404.6A CN107360410A (en) 2017-07-10 2017-07-10 Method for controlling white balance, device and terminal device

Publications (1)

Publication Number Publication Date
CN107360410A true CN107360410A (en) 2017-11-17

Family

ID=60291933

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710558404.6A Pending CN107360410A (en) 2017-07-10 2017-07-10 Method for controlling white balance, device and terminal device

Country Status (1)

Country Link
CN (1) CN107360410A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107959839A (en) * 2017-11-27 2018-04-24 努比亚技术有限公司 A kind of method of blank level adjustment, terminal and computer-readable recording medium
CN108174173A (en) * 2017-12-25 2018-06-15 广东欧珀移动通信有限公司 Image pickup method and device, computer readable storage medium and computer equipment
CN111107270A (en) * 2019-12-31 2020-05-05 维沃移动通信有限公司 Shooting method and electronic equipment
CN111641819A (en) * 2020-05-19 2020-09-08 浙江大华技术股份有限公司 Method, device, system and computer device for white balance gain correction
CN111641820A (en) * 2020-05-21 2020-09-08 Tcl华星光电技术有限公司 White balance adjusting method and device of liquid crystal display panel
CN113545033A (en) * 2020-02-13 2021-10-22 深圳元戎启行科技有限公司 White balance control method, white balance control device, electronic equipment and computer-readable storage medium
CN114071106A (en) * 2020-08-10 2022-02-18 合肥君正科技有限公司 Cold-start rapid white balance method for low-power-consumption equipment
CN115002436A (en) * 2021-03-02 2022-09-02 广州视源电子科技股份有限公司 White balance adjusting method, system, device and storage medium
CN115334295A (en) * 2022-08-10 2022-11-11 杭州联吉技术有限公司 Image white balance processing method and electronic equipment
WO2023240444A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Image processing method, apparatus and storage medium
WO2024092426A1 (en) * 2022-10-31 2024-05-10 北京小米移动软件有限公司 White-balance gain compensation method and apparatus, and electronic device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060176379A1 (en) * 2005-02-09 2006-08-10 Fuji Photo Film Co., Ltd. White balance control method, white balance control apparatus and image-taking apparatus
CN103402103A (en) * 2013-07-25 2013-11-20 上海富瀚微电子有限公司 Self-adaptive white balance starting speed control method and device
CN105554489A (en) * 2015-07-10 2016-05-04 宇龙计算机通信科技(深圳)有限公司 White balance adjusting method and shooting terminal
CN105744247A (en) * 2015-05-26 2016-07-06 维沃移动通信有限公司 Mobile device, method and device for carrying out white balance adjustment in mobile device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060176379A1 (en) * 2005-02-09 2006-08-10 Fuji Photo Film Co., Ltd. White balance control method, white balance control apparatus and image-taking apparatus
CN103402103A (en) * 2013-07-25 2013-11-20 上海富瀚微电子有限公司 Self-adaptive white balance starting speed control method and device
CN105744247A (en) * 2015-05-26 2016-07-06 维沃移动通信有限公司 Mobile device, method and device for carrying out white balance adjustment in mobile device
CN105554489A (en) * 2015-07-10 2016-05-04 宇龙计算机通信科技(深圳)有限公司 White balance adjusting method and shooting terminal

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107959839A (en) * 2017-11-27 2018-04-24 努比亚技术有限公司 A kind of method of blank level adjustment, terminal and computer-readable recording medium
CN107959839B (en) * 2017-11-27 2019-07-30 努比亚技术有限公司 A kind of method of blank level adjustment, terminal and computer readable storage medium
CN108174173A (en) * 2017-12-25 2018-06-15 广东欧珀移动通信有限公司 Image pickup method and device, computer readable storage medium and computer equipment
CN111107270A (en) * 2019-12-31 2020-05-05 维沃移动通信有限公司 Shooting method and electronic equipment
CN113545033A (en) * 2020-02-13 2021-10-22 深圳元戎启行科技有限公司 White balance control method, white balance control device, electronic equipment and computer-readable storage medium
CN111641819A (en) * 2020-05-19 2020-09-08 浙江大华技术股份有限公司 Method, device, system and computer device for white balance gain correction
CN111641820B (en) * 2020-05-21 2021-08-03 Tcl华星光电技术有限公司 White balance adjusting method and device of liquid crystal display panel
CN111641820A (en) * 2020-05-21 2020-09-08 Tcl华星光电技术有限公司 White balance adjusting method and device of liquid crystal display panel
CN114071106A (en) * 2020-08-10 2022-02-18 合肥君正科技有限公司 Cold-start rapid white balance method for low-power-consumption equipment
CN114071106B (en) * 2020-08-10 2023-07-04 合肥君正科技有限公司 Cold start fast white balance method for low-power-consumption equipment
CN115002436A (en) * 2021-03-02 2022-09-02 广州视源电子科技股份有限公司 White balance adjusting method, system, device and storage medium
WO2023240444A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Image processing method, apparatus and storage medium
CN115334295A (en) * 2022-08-10 2022-11-11 杭州联吉技术有限公司 Image white balance processing method and electronic equipment
CN115334295B (en) * 2022-08-10 2024-05-03 杭州联吉技术有限公司 Image white balance processing method and electronic equipment
WO2024092426A1 (en) * 2022-10-31 2024-05-10 北京小米移动软件有限公司 White-balance gain compensation method and apparatus, and electronic device

Similar Documents

Publication Publication Date Title
CN107360410A (en) Method for controlling white balance, device and terminal device
CN107277480A (en) White balance synchronous method, device and terminal device
CN107959778B (en) Imaging method and device based on dual camera
US9973702B2 (en) Terminal, and apparatus and method for previewing an image
CN112752023B (en) Image adjusting method and device, electronic equipment and storage medium
CN101242476B (en) Automatic correction method of image color and digital camera system
US8830348B2 (en) Imaging device and imaging method
CN104184958A (en) Automatic exposure control method and device based on FPGA (field programmable Gate array) and suitable for space detection imaging
CN106412534B (en) A kind of brightness of image adjusting method and device
CN108024056B (en) Imaging method and device based on dual camera
CN101019416A (en) Imaging apparatus
CN101489050B (en) Automatic exposure control method
CN102972020B (en) Camera model and the method driving camera model
US7633532B2 (en) Image processing method, image processing apparatus, and image pickup apparatus having first and second exposure values
CN107172353A (en) Automatic explosion method, device and computer equipment
CN111447372B (en) Control method, device, equipment and medium for brightness parameter adjustment
CN107800971B (en) Auto-exposure control processing method, device and the equipment of pan-shot
CN108063891A (en) Image processing method, device, computer readable storage medium and computer equipment
CN107396079A (en) White balance adjustment method and device
CN105850112A (en) Imaging control device
CN107801011A (en) White balancing treatment method, device and the equipment of pan-shot
CN112991163B (en) Panoramic image acquisition method, device and equipment
CN113596422B (en) Method for adjusting CCM (color correction matrix) and monitoring equipment
CN115761271A (en) Image processing method, image processing apparatus, electronic device, and storage medium
CN117014733B (en) Shooting correction method, device and equipment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20171117

RJ01 Rejection of invention patent application after publication