CN107371007A - White balancing treatment method, device and terminal - Google Patents
White balancing treatment method, device and terminal Download PDFInfo
- Publication number
- CN107371007A CN107371007A CN201710612896.2A CN201710612896A CN107371007A CN 107371007 A CN107371007 A CN 107371007A CN 201710612896 A CN201710612896 A CN 201710612896A CN 107371007 A CN107371007 A CN 107371007A
- Authority
- CN
- China
- Prior art keywords
- camera
- current
- image
- white balance
- weight
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
Abstract
The invention discloses a kind of white balancing treatment method, device and terminal, wherein, this method is applied in the terminal comprising at least two different type cameras, and this method includes:In shooting process, it is determined that the current weight of each camera corresponding with current shooting environmental parameter;According to the current weight of each camera, white balance processing is carried out to the image currently obtained.Thus, by according to shooting environmental Parameters variation, adjusting the weight of each camera, so as to both ensure that the image that can obtain suitable current environment parameter, turn avoid because camera switches, the AWB hopping phenomenons brought, improve Consumer's Experience.
Description
Technical field
The present invention relates to camera technology field, more particularly to a kind of white balancing treatment method, device and terminal.
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, in the terminal including two cameras when, can according to shooting environmental parameter, carry out two cameras
Switching.For example when zoom magnification does zoom operation from 1 times to 2 times, telephoto lens can be switched to from wide-angle lens.
But have difference because the AWB (Auto White Balance, abbreviation AWB) of different cameras is set
Different, which results in the moment that another camera is switched to from a camera, it may occur that AWB saltus step, 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 white balancing treatment method, by according to shooting environmental Parameters variation, adjusting each shooting
The weight of head, so as to both ensure that the image that can obtain suitable current environment parameter, it turn avoid because camera switches, band
The AWB hopping phenomenons come, improve Consumer's Experience.
The application also proposes a kind of white balance processing equipment.
The application also proposes a kind of terminal.
The application also proposes a kind of computer-readable recording medium.
The application first aspect proposes a kind of white balancing treatment method, applied to including at least two different type cameras
Terminal in, methods described includes:
In shooting process, it is determined that the current weight of each camera corresponding with current shooting environmental parameter;
According to the current weight of each camera, white balance processing is carried out to the image currently obtained.
The embodiment of the present application provide white balancing treatment method, first in shooting process, it is determined that with current shooting ring
The current weight of each camera corresponding to the parameter of border, then according to the current weight of each camera, the image currently obtained is entered
The processing of row white balance.Thus, can so as to both ensure that by according to shooting environmental Parameters variation, adjusting the weight of each camera
To obtain the image for being adapted to current environment parameter, it turn avoid because camera switches, the AWB hopping phenomenons brought, improve
Consumer's Experience.
The application second aspect proposes a kind of white balance processing equipment, wherein, the white balance processing equipment, applied to bag
In the terminal for including at least two different type cameras, described device includes:
First determining module, due in shooting process, it is determined that each camera corresponding with current shooting environmental parameter
Current weight;
Processing module, due to according to the current weight of each camera, being carried out to the image currently obtained at white balance
Reason.
The embodiment of the present application provide white balance processing equipment, first in shooting process, it is determined that with current shooting ring
The current weight of each camera corresponding to the parameter of border, then according to the current weight of each camera, the image currently obtained is entered
The processing of row white balance.Thus, can so as to both ensure that by according to shooting environmental Parameters variation, adjusting the weight of each camera
To obtain the image for being adapted to current environment parameter, it turn avoid because camera switches, the AWB hopping phenomenons brought, improve
Consumer's Experience.
The application third aspect proposes a kind of terminal, including:Housing, processor, memory, board power circuit and extremely
Few two distinct types of camera, wherein, the circuit board is placed in the interior volume that the housing surrounds, the processor
It is arranged on the memory on the circuit board;The power circuit, for each circuit or the device confession for the terminal
Electricity;The memory is used to store executable program code;What the processor was stored by reading in the memory holds
Line program code, to run program corresponding with the executable program code, for performing as described in relation to the first aspect white
Balance Treatment method.
The terminal that the embodiment of the present application provides, first in shooting process, it is determined that corresponding with current shooting environmental parameter
The current weight of each camera, then according to the current weight of each camera, the image currently obtained is carried out at white balance
Reason.Thus, by according to shooting environmental Parameters variation, adjusting the weight of each camera, so as to both ensure that can obtain it is suitable
The image of current environment parameter, it turn avoid because camera switches, the AWB hopping phenomenons brought, improve Consumer's Experience.
The application fourth aspect proposes a kind of computer-readable recording medium, is stored thereon with computer program, the program
White balancing treatment method as described in relation to the first aspect is realized when being executed by processor.
The computer-readable recording medium that the embodiment of the present application provides, can be arranged on arbitrarily includes at least two inhomogeneities
During type camera is, it is necessary to carry out the terminal of white balance processing, when carrying out white balance processing, by perform store thereon it is white flat
Weigh processing method, it is possible to achieve according to shooting environmental Parameters variation, the weight of each camera is adjusted, so as to both ensure that and can obtain
The image of current environment parameter must be adapted to, turn avoid because camera switches, the AWB hopping phenomenons brought, improve 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 white balancing treatment method of the application one embodiment;
Fig. 2 is the flow chart of the white balancing treatment method of the application another embodiment;
Fig. 3 is the structure chart of the white balance processing equipment of the application one embodiment;
Fig. 4 is the structure chart of the white balance processing equipment of the application another embodiment;
Fig. 5 is the structure chart of the terminal 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 the white balancing treatment method, device and terminal of the embodiment of the present invention are described.
Various embodiments of the present invention are directed in the prior art, when terminal includes two cameras, due to different cameras
AWB is set can be variant, and which results in the moment that another camera is switched to from a camera, it may occur that AWB jump
Become, the problem of poor user experience, propose a kind of white balancing treatment method.
The white balancing treatment method that the embodiment of the present invention proposes, in shooting process, it may be determined that with current shooting ring
The current weight of each camera corresponding to the parameter of border, so as to according to the current weight of each camera, enter to the image currently obtained
The processing of row white balance.Thus, can so as to both ensure that by according to shooting environmental Parameters variation, adjusting the weight of each camera
To obtain the image for being adapted to current environment parameter, it turn avoid because camera switches, the AWB hopping phenomenons brought, improve
Consumer's Experience.
The white balancing treatment method of the embodiment of the present application is illustrated with reference to Fig. 1.
Fig. 1 is the flow chart of the white balancing treatment method of the application one embodiment.
As shown in figure 1, this method includes:
Step 101, in shooting process, it is determined that the current power of each camera corresponding with current shooting environmental parameter
Weight.
Specifically, white balancing treatment method provided in an embodiment of the present invention, can be by provided in an embodiment of the present invention white flat
The processing unit that weighs performs.Specifically, the white balance processing equipment, can be configured in arbitrarily there are at least two different types to take the photograph
As head terminal in.Wherein, the type of terminal is a lot, can be selected according to using needs, such as:Mobile phone, computer, camera
Deng.
Wherein, shooting environmental parameter, can include any one or more in zoom magnification, object distance, light conditions etc..
The current weight sum of each camera is 1.
Accordingly, step 101 can be accomplished by the following way:
According to current zoom magnification, object distance and/or light conditions, the current weight of each camera is determined.
Wherein, light conditions, power, angle, color of light etc. are referred to.
During specific implementation, the suitable zoom magnification of each camera, object distance can be determined previously according to the type of each camera
And/or the shooting environmental parameter such as light conditions, and then the shooting environmental parameter being adapted to according to each camera, current shooting is set
The mapping relations of ambient parameter and the weight of each camera.So that in shooting process, it is determined that after current shooting environmental parameter,
Can be according to default mapping relations, it is determined that the weight that each camera corresponding with current shooting environmental parameter is current.
As an example it is assumed that terminal includes camera A and camera B, it is determined that the suitable shooting environmental ginsengs of camera A
Number is:1-6 times of zoom magnification, shooting environmental parameter suitable camera B are:More than 6 times of zoom magnification.Then can basis
When above-mentioned shooting environmental parameter, current zoom magnification being set between 1-6 times, and differing more with 6 times of zoom magnification, than
When such as below 4.5 times, camera A weight is 1, and camera B weight is 0, and sets current zoom magnification in 4.5-6
Between times, when changing from low to high, camera B weight gradually increases, and camera A weight is gradually reduced, until camera A
Weight be 0, camera B weight is 1.
For example when zoom magnification is 1-4.5 times, weight corresponding to camera A and camera B is respectively 1,0;In zoom
When multiple is 4.5-5 times, weight corresponding to camera A and camera B is respectively 0.8,0.2;It it is 5-5.5 times in zoom magnification
When, weight corresponding to camera A and camera B is respectively 0.5,0.5;When zoom magnification is 5.5-6 times, camera A and take the photograph
The weight as corresponding to head B is respectively 0.2,0.8;When zoom magnification is more than 6 times, weight corresponding to camera A and camera B
Respectively 0,1.So as to which if current shooting environmental parameter is:5.8 times of zoom magnification, then it can determine and current shooting ring
Weight current camera A corresponding to the parameter of border and camera B is respectively 0.2,0.8.
Similar, the shooting environmental parameter that can be adapted to respectively according to camera A and B, current zoom magnification is set 6
More than times, and when differ more with 6 times of zoom magnification, such as when more than 8 times, camera B weight is 1, camera A's
Weight is 0, and sets current zoom magnification between 6-8 times, and when changing from high to low, camera A weight gradually increases,
Camera B weight is gradually reduced, until camera A weight is 1, camera B weight is 0.
Join it should be noted that camera A and camera B weight gradually increased or decrease shooting environmental corresponding to process
Several scopes, it can be arranged as required to.For example zoom magnification is could be arranged between 4.5-6 times, it can also be provided that becoming
Burnt multiple may be arranged as zoom magnification between 4.5-8 times between 6-8 times.I.e., it is possible to be only adapted in camera A
In shooting environmental parameter area, it can also can also imaged simultaneously only in the shooting environmental parameter area that camera B is adapted to
In shooting environmental parameter area suitable head A and camera B.
In addition, with the process that the change of current shooting environmental parameter, the current weight of each camera increased or decrease,
Can be it is linearly changing or it is stepped change or other rules change, be not restricted herein.
And each camera current weight increaseds or decreases process, slope during linear change, or stepped change
Step-length during change, it can be arranged as required to.For example zoom magnification can be set often to increase by 0.5 times, weighed corresponding to camera A
Reduce 0.1 again, weight increase by 0.1 corresponding to camera B;Or zoom magnification often increases by 0.5 times, weight corresponding to camera A
Reduce 0.2, weight increase by 0.2, etc. corresponding to camera B.
It is understood that according to current zoom magnification, object distance and/or light conditions, determine that each camera is current
Weight before, it is also necessary to it is determined that current zoom magnification, object distance and/or light conditions.I.e., before step 101, can be with
Including:
Instructed according to the zoom instructions of acquisition or image adjustment, it is determined that current zoom magnification;
And/or according to the depth information included in the output valve of range sensor or the image currently obtained, it is determined that working as
Preceding object distance;
And/or according to the aperture size of each camera, aperture time and sensitivity, it is determined that current light conditions.
Wherein, zoom instructions and image adjustment instruction can be terminals according to shooting needs, refer to caused by automatic triggering
Order;It can also be that user is as needed, instruct caused by triggering, be not restricted herein manually.
Specifically, in shooting process, user is as needed, the multiplication factor for such as adjusting subject in image is performed
Operation, so as to trigger produce image adjustment instruction when, camera can instruct according to image adjustment, to current zoom magnification
It is adjusted;Or when getting zoom instructions, camera can be carried out according to zoom instructions to current zoom magnification
Adjustment.So as in embodiments of the present invention, be instructed according to zoom instructions or image adjustment, it is determined that current zoom magnification.
If in shooting process, object distance is different, accordingly, wrapped in the output valve of range sensor or the image currently obtained
The depth information contained also can be different.So, in embodiments of the present invention, can be according to the output valve or current of range sensor
The depth information included in the image of acquisition, it is determined that current object distance.
If in shooting process, light conditions are different, for example, when current light is dark or brighter, accordingly, each camera
Aperture size, aperture time and sensitivity also can be different.So, in embodiments of the present invention, can be according to each camera
Aperture size, aperture time and sensitivity, it is determined that current light conditions.
Specifically, after current zoom magnification, object distance and/or light conditions are determined, you can according to current zoom times
Number, object distance and/or light conditions, determine the current weight of each camera.
Step 102, according to the current weight of each camera, white balance processing is carried out to the image currently obtained.
It is understood that in embodiments of the present invention, it can set in shooting process, each camera is in opening
State, so as to which each camera can obtain image.After each camera obtains present image, each image can be carried out
White balance adjusting, and according to the current weight of each camera, the image after each processing is carried out to be synthetically generated current shooting figure
Picture.
Or the waste in order to avoid resource, in a kind of preferably way of realization, the shooting that weight is 0 can be set
Head is closed mode, and weight is not starting state for 0 camera.So as to only currently not obtained for 0 camera to weight
Image carries out white balance adjusting, and is not the current weight of 0 each camera according to weight, and the image after each processing is closed
The shooting image current into generation.
Specifically, after each camera obtains present image, you can each color temperature value according to corresponding to each image, determine each shooting
Each target white balance gains value corresponding to head, so that according to each target white balance gains value, white balance processing is carried out to each image,
Finally according to the current weight of each camera, each image after processing is synthesized, you can generate current shooting image.
It is understood that using white balancing treatment method provided in an embodiment of the present invention, by being joined according to shooting environmental
Number change, the weight of each camera is adjusted, so as to both ensure that the image that can obtain suitable current environment parameter, turn avoid
Because camera switches, the AWB hopping phenomenons brought, Consumer's Experience is improved.
White balancing treatment method provided in an embodiment of the present invention, first in shooting process, it is determined that with current shooting ring
The current weight of each camera corresponding to the parameter of border, then according to the current weight of each camera, the image currently obtained is entered
The processing of row white balance.Thus, can so as to both ensure that by according to shooting environmental Parameters variation, adjusting the weight of each camera
To obtain the image for being adapted to current environment parameter, it turn avoid because camera switches, the AWB hopping phenomenons brought, improve
Consumer's Experience.
By above-mentioned analysis, in shooting process, it may be determined that respectively imaged corresponding to current shooting environmental parameter
Current weight, so as to which according to the current weight of each camera, white balance processing is carried out to the image currently obtained.Tie below
Fig. 2 is closed, to according to the current weight of each camera, the process of white balance processing being carried out to the image currently obtained, is carried out specific
Explanation.
Fig. 2 is the flow chart of the white balancing treatment method of another embodiment of the present invention.
As shown in Fig. 2 the white balancing treatment method, applied in the terminal including at least two different type cameras,
This method includes:
Step 201, in shooting process, it is determined that the current power of each camera corresponding with current shooting environmental parameter
Weight.
Wherein, the specific implementation process and principle of above-mentioned steps 201, it is referred to the detailed of step 101 in above-described embodiment
Thin description, here is omitted.
Step 202, each color temperature value corresponding to each image that each camera currently obtains is determined.
Specifically, each color temperature value corresponding to each image that each camera currently obtains can be determined by a variety of methods.
Such as can be according in the image that each camera currently obtains, color temperature value corresponding to each white blocks, it is determined that currently obtaining
Color temperature value corresponding to the image taken;Or can be according in the image that each camera currently obtains, where target reference object
Color temperature value corresponding to region, it is determined that color temperature value, etc. corresponding to the image currently gathered.
Step 203, according to each color temperature value, each target white balance gains value corresponding to each camera is determined.
Wherein, target white balance gains value, for can be true by the color in the Image Adjusting currently gathered to image
Reappear.Specifically, target white balance gains value, the mesh of tri- passages of R, G, B in the image that imaging sensor obtains can be included
Mark white balance gains value.
Specifically, after obtaining each color temperature value corresponding to the image that each camera currently obtains, you can judge each image
Colour cast direction, so as to calculate each target white balance gains value.
During specific implementation, using calculating, tabling look-up or the methods of iteration, it can be calculated each according to obtained each color temperature value
Each target white balance gains value corresponding to camera.
As a kind of possible implementation, when color has enough color changes in image, the face of all pixels point
R in color vector, G, the averages of tri- components of B tend to balance (1:1:1) accurate mesh, can obtain using weighted intensity algorithm
Mark white balance gains value.
Specifically, the image that each camera currently obtains can be divided into several sub-blocks, institute in each sub-block is obtained
There is the color vector of pixel, each pixel is represented by (R, G, a B) color vector, then calculates R, G, B in each sub-block
The average value and standard deviation of three passages, then the standard deviation to each sub-block be weighted (give up the small sub-block of correlation,
The big sub-block of retention relationship), to reduce the influence of bulk solid color so that color of image is rich and varied.And then calculate logical
The R of standard deviation weighting is crossed, the average value of tri- passages of G, B, R is finally calculated, the gain coefficient of tri- passages of G, B, produces
To target white balance gains value corresponding to the camera.
Step 204, white balance processing, each image after acquisition processing are carried out to each image using each target white balance value.
Specifically, after determining target white balance gains value corresponding to each camera, you can according to each target being calculated
White balance gains value, the R values and B Value Datas of each pixel after the Image Adjusting that each camera currently obtains are calculated, so as to realize pair
The color correct of each image.
It should be noted that because human eye is for belonging to light (480nm-600nm) susceptibility of green wavelength most in frequency spectrum
Height, and the green pixel gathered in Bayer (Bayer) array is counted out at most, so current camera is generally all used green
The yield value of component is fixed, and is then adjusted the yield value of red component and blue component respectively, is realized to red component and blueness
The adjustment of component.
Step 205, according to the current weight of each camera, each image after processing is carried out being synthetically generated current shooting
Image.
Specifically, step 205 can pass through accomplished in many ways.
For example gray moment can be used, each image after processing is synthesized to generate current shooting
Image.
Specifically, assume the image N to M size after processing for I*J1、N2、…NMSynthesized, the image after synthesis
For F, then image synthesis can be carried out by below equation.
F (i, j)=w1(i,j)N1(i,j)+w2(i,j)N2(i,j)+…+wM(i,j)NM(i,j)
Wherein, i is that the line position of pixel in each image is put, i=1,2,3 ..., I;
J be each image in pixel column position, j=1,2,3 ..., J;
wx(i, j), x=1,2,3 ... M are the current weight of camera corresponding to each image, and
Nx(i, j), x=1,2,3 ... M are the grey scale pixel value of xth width image (i, j) point.
Or for coloured image, can according to three primary colours model, by each image regard as three width monochrome images (it is red,
It is green, blue) superposition, respectively according to the current weights of each camera, each color image is synthesized, finally give synthesis after three
Width red, green, blue monochrome image, then be superimposed by three width monochrome images, to generate current shooting image.
Specifically, assume the image N to M size after processing for I*J1、N2、…NMSynthesized, the image after synthesis
For F, then image synthesis can be carried out by below equation.
FR(i, j)=w1(i,j)N1R(i,j)+w2(i,j)N2R(i,j)+…+wM(i,j)NMR(i,j);
FG(i, j)=w1(i,j)N1G(i,j)+w2(i,j)N2G(i,j)+…+wM(i,j)NMG(i,j);
FB(i, j)=w1(i,j)N1B(i,j)+w2(i,j)N2B(i,j)+…+wM(i,j)NMB(i,j)。
Wherein, R, G, B represent three primary colours red, green, blue respectively;
I is that the line position of pixel in each image is put, i=1,2,3 ..., I;
J be each image in pixel column position, j=1,2,3 ..., J;
FR(i,j)、FG(i,j)、FB(i, j) is respectively the R, G of (i, j) point of the image after synthesizing, the value of channel B;
wx(i, j), x=1,2,3 ... M are the current weight of camera corresponding to each image, and
NxR(i, j), x=1,2,3 ... M are the value of the R passages of xth width image (i, j) point;
NxG(i, j), x=1,2,3 ... M are the value of the G passages of xth width image (i, j) point;
NxB(i, j), x=1,2,3 ... M are the value of the channel B of xth width image (i, j) point.
White balancing treatment method provided in an embodiment of the present invention, in shooting process, it is first determined with current shooting ring
The current weight of each camera corresponding to the parameter of border, it is then determined that each colour temperature corresponding to each image that each camera currently obtains
Value, further according to each color temperature value, determines each target white balance gains value corresponding to each camera, recycles each target white balance value pair
Each image carries out white balance processing, each image after acquisition processing, finally according to the current weight of each camera, after processing
Each image carries out being synthetically generated current shooting image.Thus, by according to shooting environmental Parameters variation, adjusting each camera
Weight, so as to both ensure that the image that can obtain suitable current environment parameter, it turn avoid because camera switches, bring
AWB hopping phenomenons, improve Consumer's Experience.
Fig. 3 is the structure chart of the white balance processing equipment of the application one embodiment.
As shown in figure 3, the white balance processing equipment, applied in the terminal including at least two different type cameras,
The device includes:
First determining module 31, due in shooting process, it is determined that corresponding with current shooting environmental parameter respectively image
Current weight;
Processing module 32, due to according to the current weight of each camera, white balance is carried out to the image currently obtained
Processing.
Wherein, the white balance processing equipment that the present embodiment provides, can be performed at white balance provided in an embodiment of the present invention
Reason method.Specifically, the white balance processing equipment, can be configured in any end with least two different type cameras
In end.Wherein, the type of terminal 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 first determining module 31, it is specifically used for:
According to current zoom magnification, object distance and/or light conditions, the current weight of each camera is determined.
In the alternatively possible way of realization of the present embodiment, above-mentioned processing module 32, it is specifically used for:
Determine each color temperature value corresponding to each image that each camera currently obtains;
According to each color temperature value, each target white balance gains value corresponding to each camera is determined;
White balance processing, each image after acquisition processing are carried out to each image using each target white balance value;
According to the current weight of each camera, each image after the processing is carried out being synthetically generated current shooting
Image.
It should be noted that the explanation of dialogue Balance Treatment embodiment of the method is also applied for the reality in previous embodiment
The white balance processing equipment of example is applied, here is omitted.
The embodiment of the present application provide white balance processing equipment, first in shooting process, it is determined that with current shooting ring
The current weight of each camera corresponding to the parameter of border, then according to the current weight of each camera, the image currently obtained is entered
The processing of row white balance.Thus, can so as to both ensure that by according to shooting environmental Parameters variation, adjusting the weight of each camera
To obtain the image for being adapted to current environment parameter, it turn avoid because camera switches, the AWB hopping phenomenons brought, improve
Consumer's Experience.
Fig. 4 is the structure chart of the white balance processing equipment of the application another embodiment.
As shown in figure 4, on the basis of shown in Fig. 3, the white balance processing equipment, in addition to:
Second determining module 41, instructed for the zoom instructions according to acquisition or image adjustment, determine the current change
Burnt multiple;
And/or the depth information for being included in the output valve according to range sensor or the image currently obtained, really
Object distance before settled;
And/or for the aperture size according to each camera, aperture time and sensitivity, it is determined that current light conditions.
It should be noted that the explanation of dialogue Balance Treatment embodiment of the method is also applied for the reality in previous embodiment
The white balance processing equipment of example is applied, here is omitted.
The embodiment of the present application provide white balance processing equipment, first in shooting process, it is determined that with current shooting ring
The current weight of each camera corresponding to the parameter of border, then according to the current weight of each camera, the image currently obtained is entered
The processing of row white balance.Thus, can so as to both ensure that by according to shooting environmental Parameters variation, adjusting the weight of each camera
To obtain the image for being adapted to current environment parameter, it turn avoid because camera switches, the AWB hopping phenomenons brought, improve
Consumer's Experience.
Further aspect of the present invention embodiment also proposes a kind of terminal.
Fig. 5 is the structure chart for the terminal that the application one embodiment provides.
Wherein, the type of terminal is a lot, can be selected according to using needs, such as:Mobile phone, computer, camera etc..Figure
5 are illustrated by mobile phone of terminal.
As shown in figure 5, the terminal includes:Housing 501, processor 502, memory 503, circuit board 504, power circuit
505 and at least two different types of cameras, to be illustrated including two cameras 506 and 507 in figure.
Wherein, circuit board 504 is placed in the interior volume that housing 501 surrounds, and processor 502 and memory 503 are arranged on
On circuit board 504;Power circuit 505, for each circuit or the device power supply for terminal;Memory 503 is used to store and can hold
Line program code;Processor 502 is by reading the executable program code stored in memory 503, to run and executable journey
Program corresponding to sequence code, for performing such as the white balancing treatment method in previous embodiment.
It should be noted that the explanation of foregoing dialogue Balance Treatment embodiment of the method is also applied for the end of the embodiment
End, its realization principle is similar, and here is omitted.
The terminal that the embodiment of the present application provides, first in shooting process, it is determined that corresponding with current shooting environmental parameter
The current weight of each camera, then according to the current weight of each camera, the image currently obtained is carried out at white balance
Reason.Thus, by according to shooting environmental Parameters variation, adjusting the weight of each camera, so as to both ensure that can obtain it is suitable
The image of current environment parameter, it turn avoid because camera switches, the AWB hopping phenomenons brought, 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 white balancing treatment method in previous embodiment.
The computer-readable recording medium that the embodiment of the present application provides, can be arranged on arbitrarily includes at least two inhomogeneities
During type camera is, it is necessary to carry out the terminal of white balance adjusting, when carrying out white balance adjusting, by perform store thereon it is white flat
Weigh processing method, it is possible to achieve according to shooting environmental Parameters variation, the weight of each camera is adjusted, so as to both ensure that and can obtain
The image of current environment parameter must be adapted to, turn avoid because camera switches, the AWB hopping phenomenons brought, improve 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 in product is by computing device, perform such as the white balancing treatment method in previous embodiment.
The computer program product that the embodiment of the present application provides, can be arranged on and arbitrarily be taken the photograph including at least two different types
As head, it is necessary in carrying out the terminal of white balance adjusting, when carrying out white balance adjusting, pass through and perform corresponding white balancing treatment method
Program, it is possible to achieve according to shooting environmental Parameters variation, adjust the weight of each camera, so as to both ensure that can obtain it is suitable
The image of current environment parameter is closed, turn avoid because camera switches, the AWB hopping phenomenons brought, improve 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)
- A kind of 1. white balancing treatment method, applied in the terminal comprising at least two different type cameras, it is characterised in that Including:In shooting process, it is determined that the current weight of each camera corresponding with current shooting environmental parameter;According to the current weight of each camera, white balance processing is carried out to the image currently obtained.
- 2. the method as described in claim 1, it is characterised in that the determination is corresponding with current shooting environmental parameter respectively to take the photograph As the current weight of head, including:According to current zoom magnification, object distance and/or light conditions, the current weight of each camera is determined.
- 3. the method as described in claim 1, it is characterised in that the determination is corresponding with current shooting environmental parameter respectively to take the photograph Before the current white balance adjusting weight of head, in addition to:Instructed according to the zoom instructions of acquisition or image adjustment, determine the current zoom magnification;And/or according to the depth information included in the output valve of range sensor or the image currently obtained, it is determined that current Object distance;And/or according to the aperture size of each camera, aperture time and sensitivity, it is determined that current light conditions.
- 4. the method as described in claim 1-3 is any, it is characterised in that the weight current according to each camera, White balance processing is carried out to the image currently obtained, including:Determine each color temperature value corresponding to each image that each camera currently obtains;According to each color temperature value, each target white balance gains value corresponding to each camera is determined;White balance processing, each image after acquisition processing are carried out to each image using each target white balance value;According to the current weight of each camera, each image after the processing is carried out being synthetically generated current shooting figure Picture.
- A kind of 5. white balance processing equipment, applied in the terminal comprising at least two different type cameras, it is characterised in that Including:First determining module, due in shooting process, it is determined that each camera corresponding with current shooting environmental parameter is current Weight;Processing module, due to according to the current weight of each camera, white balance processing is carried out to the image currently obtained.
- 6. device as claimed in claim 5, it is characterised in that first determining module, be specifically used for:According to current zoom magnification, object distance and/or light conditions, the current weight of each camera is determined.
- 7. device as claimed in claim 5, it is characterised in that also include:Second determining module, instructed for the zoom instructions according to acquisition or image adjustment, determine the current zoom magnification;And/or the depth information for being included in the output valve according to range sensor or the image currently obtained, it is determined that working as Preceding object distance;And/or for the aperture size according to each camera, aperture time and sensitivity, it is determined that current light conditions.
- 8. the device as described in claim 5-7 is any, it is characterised in that the processing module, be specifically used for:Determine each color temperature value corresponding to each image that each camera currently obtains;According to each color temperature value, each target white balance gains value corresponding to each camera is determined;White balance processing, each image after acquisition processing are carried out to each image using each target white balance value;According to the current weight of each camera, each image after the processing is carried out being synthetically generated current shooting figure Picture.
- A kind of 9. terminal, it is characterised in that including:Housing, processor, memory, circuit board, power circuit and at least two are not The camera of same type, wherein, the circuit board is placed in the interior volume that the housing surrounds, and the processor and described deposits Reservoir is arranged on the circuit board;The power circuit, for each circuit or the device power supply for the terminal;It is described to deposit Reservoir is used to store executable program code;The executable program generation that the processor is stored by reading in the memory Code is white as described in any in claim 1-4 for performing to run program corresponding with the executable program code Balance Treatment method.
- 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 white balancing treatment method as described in any in claim 1-4 is realized during execution.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710612896.2A CN107371007A (en) | 2017-07-25 | 2017-07-25 | White balancing treatment method, device and terminal |
PCT/CN2018/094971 WO2019019904A1 (en) | 2017-07-25 | 2018-07-09 | White balance processing method and apparatus, and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710612896.2A CN107371007A (en) | 2017-07-25 | 2017-07-25 | White balancing treatment method, device and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107371007A true CN107371007A (en) | 2017-11-21 |
Family
ID=60307865
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710612896.2A Pending CN107371007A (en) | 2017-07-25 | 2017-07-25 | White balancing treatment method, device and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN107371007A (en) |
WO (1) | WO2019019904A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108182667A (en) * | 2017-12-29 | 2018-06-19 | 努比亚技术有限公司 | A kind of image optimization method, terminal and computer readable storage medium |
CN108242178A (en) * | 2018-02-26 | 2018-07-03 | 北京车和家信息技术有限公司 | A kind of method for detecting parking stalls, device and electronic equipment |
CN108965835A (en) * | 2018-08-23 | 2018-12-07 | Oppo广东移动通信有限公司 | A kind of image processing method, image processing apparatus and terminal device |
WO2019019904A1 (en) * | 2017-07-25 | 2019-01-31 | Oppo广东移动通信有限公司 | White balance processing method and apparatus, and terminal |
CN111713096A (en) * | 2019-06-20 | 2020-09-25 | 深圳市大疆创新科技有限公司 | Gain coefficient acquisition method and device |
CN115484384A (en) * | 2021-09-13 | 2022-12-16 | 华为技术有限公司 | Method and device for controlling exposure and electronic equipment |
CN116761082A (en) * | 2023-08-22 | 2023-09-15 | 荣耀终端有限公司 | Image processing method and device |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060171605A1 (en) * | 2005-01-28 | 2006-08-03 | Fuji Photo Film Co., Ltd. | Apparatus and method for image processing |
US20060284991A1 (en) * | 2005-06-20 | 2006-12-21 | Eiichiro Ikeda | Image sensing apparatus and image processing method |
CN102572206A (en) * | 2010-12-31 | 2012-07-11 | 比亚迪股份有限公司 | Color correction method |
CN103402102A (en) * | 2013-07-17 | 2013-11-20 | 广东欧珀移动通信有限公司 | Double-camera picture pick-up system and white balance adjustment method and device thereof |
CN104853172A (en) * | 2014-02-19 | 2015-08-19 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105208364A (en) * | 2014-06-27 | 2015-12-30 | 联想(北京)有限公司 | Image white balance control method, device and electronic apparatus |
CN105657392A (en) * | 2015-04-30 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Image processing method and electronic equipment |
CN105898260A (en) * | 2016-04-07 | 2016-08-24 | 广东欧珀移动通信有限公司 | Method and device of adjusting camera white balance |
CN106385541A (en) * | 2016-09-30 | 2017-02-08 | 虹软(杭州)科技有限公司 | Method for realizing zooming through wide-angle photographing component and long-focus photographing component |
CN106713887A (en) * | 2017-01-03 | 2017-05-24 | 捷开通讯(深圳)有限公司 | Mobile terminal, and white balance adjustment method |
CN106791732A (en) * | 2016-11-30 | 2017-05-31 | 努比亚技术有限公司 | A kind of image processing method and device |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP5761946B2 (en) * | 2010-09-02 | 2015-08-12 | キヤノン株式会社 | Image processing apparatus, image processing method, and storage medium |
TWI558206B (en) * | 2014-09-30 | 2016-11-11 | 宏碁股份有限公司 | Method for selecting metering mode and image capturing device thereof |
CN105208360B (en) * | 2015-09-23 | 2017-07-25 | 青岛海信移动通信技术股份有限公司 | Image preview method, device and the terminal of a kind of intelligent terminal |
CN107371007A (en) * | 2017-07-25 | 2017-11-21 | 广东欧珀移动通信有限公司 | White balancing treatment method, device and terminal |
-
2017
- 2017-07-25 CN CN201710612896.2A patent/CN107371007A/en active Pending
-
2018
- 2018-07-09 WO PCT/CN2018/094971 patent/WO2019019904A1/en active Application Filing
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20060171605A1 (en) * | 2005-01-28 | 2006-08-03 | Fuji Photo Film Co., Ltd. | Apparatus and method for image processing |
US20060284991A1 (en) * | 2005-06-20 | 2006-12-21 | Eiichiro Ikeda | Image sensing apparatus and image processing method |
CN102572206A (en) * | 2010-12-31 | 2012-07-11 | 比亚迪股份有限公司 | Color correction method |
CN103402102A (en) * | 2013-07-17 | 2013-11-20 | 广东欧珀移动通信有限公司 | Double-camera picture pick-up system and white balance adjustment method and device thereof |
CN104853172A (en) * | 2014-02-19 | 2015-08-19 | 联想(北京)有限公司 | Information processing method and electronic device |
CN105208364A (en) * | 2014-06-27 | 2015-12-30 | 联想(北京)有限公司 | Image white balance control method, device and electronic apparatus |
CN105657392A (en) * | 2015-04-30 | 2016-06-08 | 宇龙计算机通信科技(深圳)有限公司 | Image processing method and electronic equipment |
CN105898260A (en) * | 2016-04-07 | 2016-08-24 | 广东欧珀移动通信有限公司 | Method and device of adjusting camera white balance |
CN106385541A (en) * | 2016-09-30 | 2017-02-08 | 虹软(杭州)科技有限公司 | Method for realizing zooming through wide-angle photographing component and long-focus photographing component |
CN106791732A (en) * | 2016-11-30 | 2017-05-31 | 努比亚技术有限公司 | A kind of image processing method and device |
CN106713887A (en) * | 2017-01-03 | 2017-05-24 | 捷开通讯(深圳)有限公司 | Mobile terminal, and white balance adjustment method |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2019019904A1 (en) * | 2017-07-25 | 2019-01-31 | Oppo广东移动通信有限公司 | White balance processing method and apparatus, and terminal |
CN108182667A (en) * | 2017-12-29 | 2018-06-19 | 努比亚技术有限公司 | A kind of image optimization method, terminal and computer readable storage medium |
CN108182667B (en) * | 2017-12-29 | 2020-07-17 | 珠海大横琴科技发展有限公司 | Image optimization method, terminal and computer readable storage medium |
CN108242178A (en) * | 2018-02-26 | 2018-07-03 | 北京车和家信息技术有限公司 | A kind of method for detecting parking stalls, device and electronic equipment |
CN108965835A (en) * | 2018-08-23 | 2018-12-07 | Oppo广东移动通信有限公司 | A kind of image processing method, image processing apparatus and terminal device |
CN108965835B (en) * | 2018-08-23 | 2019-12-27 | Oppo广东移动通信有限公司 | Image processing method, image processing device and terminal equipment |
CN111713096A (en) * | 2019-06-20 | 2020-09-25 | 深圳市大疆创新科技有限公司 | Gain coefficient acquisition method and device |
CN115484384A (en) * | 2021-09-13 | 2022-12-16 | 华为技术有限公司 | Method and device for controlling exposure and electronic equipment |
CN115484384B (en) * | 2021-09-13 | 2023-12-01 | 华为技术有限公司 | Method and device for controlling exposure and electronic equipment |
CN116761082A (en) * | 2023-08-22 | 2023-09-15 | 荣耀终端有限公司 | Image processing method and device |
CN116761082B (en) * | 2023-08-22 | 2023-11-14 | 荣耀终端有限公司 | Image processing method and device |
Also Published As
Publication number | Publication date |
---|---|
WO2019019904A1 (en) | 2019-01-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107371007A (en) | White balancing treatment method, device and terminal | |
CN107343190A (en) | White balance adjusting method, apparatus and terminal device | |
CN105933617B (en) | A kind of high dynamic range images fusion method for overcoming dynamic problem to influence | |
US9077942B2 (en) | Spectral synthesis for image capture device processing | |
CN102204258B (en) | Image inputting apparatus | |
CN107948519A (en) | Image processing method, device and equipment | |
CN105359024B (en) | Camera device and image capture method | |
US7668368B2 (en) | Image processing apparatus, camera apparatus, image output apparatus, image processing method, color correction processing program and computer readable recording medium | |
CN101204083A (en) | Method of controlling an action, such as a sharpness modification, using a colour digital image | |
CN113676628B (en) | Image forming apparatus and image processing method | |
CN104184958A (en) | Automatic exposure control method and device based on FPGA and suitable for space exploration imaging | |
CN107277480A (en) | White balance synchronous method, device and terminal device | |
CN101272506A (en) | Imaging device and method of processing imaging result in imaging device | |
CN109983508A (en) | Fast Flourier color constancy | |
CN112116539B (en) | Optical aberration blurring removal method based on deep learning | |
CN105430257A (en) | Control apparatus and control method | |
CN103647958B (en) | Image processing method, image processing apparatus and electronic equipment | |
CN108024056A (en) | Imaging method and device based on dual camera | |
CN107509044A (en) | Image combining method, device, computer-readable recording medium and computer equipment | |
CN105915807A (en) | Image Pickup Apparatus That Calculates Light Amount Change Characteristic, Electronic Apparatus, And Method Of Calculating Light Amount Change Characteristic | |
CN102023456A (en) | Light metering weight regulating method and device thereof | |
CN107872631A (en) | Image capturing method, device and mobile terminal based on dual camera | |
JP2008011289A (en) | Digital camera | |
CN109922325A (en) | Image processing equipment and its control method | |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20171121 |