CN105338333B - A kind of control image white balance method and electronic equipment - Google Patents

A kind of control image white balance method and electronic equipment Download PDF

Info

Publication number
CN105338333B
CN105338333B CN201410404258.8A CN201410404258A CN105338333B CN 105338333 B CN105338333 B CN 105338333B CN 201410404258 A CN201410404258 A CN 201410404258A CN 105338333 B CN105338333 B CN 105338333B
Authority
CN
China
Prior art keywords
image
shooting
temperature value
electronic equipment
color temperature
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.)
Active
Application number
CN201410404258.8A
Other languages
Chinese (zh)
Other versions
CN105338333A (en
Inventor
李凡智
庞建军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201410404258.8A priority Critical patent/CN105338333B/en
Publication of CN105338333A publication Critical patent/CN105338333A/en
Application granted granted Critical
Publication of CN105338333B publication Critical patent/CN105338333B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

The invention discloses a kind of methods of control image white balance, are applied in electronic equipment, the method includes:Obtain the first image;Obtain the environmental parameter of environment of the described first image when being taken;Based on the environmental parameter, blank level adjustment is carried out to described first image, obtains the second image corresponding with described first image.The above method provided by the invention, for solve can to efficiently solve in the prior art exist in the prior art image blank level adjustment accuracy is poor, technical problem that process is complicated, and then realize the technique effect that white balance correction is easily and accurately carried out to image.

Description

A kind of control image white balance method and electronic equipment
Technical field
The present invention relates to image processing field, more particularly to a kind of the method and electronic equipment of control image white balance.
Background technology
Human eye can adjust the color for being observed object, and electricity consumption when observing jobbie according to current light source property Sub- equipment shooting object can encounter such case often, the greening for example, image shot in the room of fluorescent lamp can seem, The scenery come is shot under indoor tungsten light will be partially yellow, and then partially blue in the photo that daylight shaded side takes, and reason exists The difference of colour temperature under different light source colour temperature value and normal illumination.
It it is the cloudy day when user is using the automatic white balance pattern in photographic equipment, or in environment, but use in photographic process When fine day white balance mode, it may result in the photo shot and and the technical problem of white balance inaccuracy occur.
To overcome above-mentioned technical problem, in the prior art, various image processing softwares are provided, at image Software is managed, the white balance of image can be adjusted, so that the image after adjustment obtains correct white balance.
Generally, in image processing software in the prior art, the process for adjusting white balance is as follows:
The first step:Preliminary corrections are carried out to image.The method of preliminary corrections has very much, for example, in image processing software A specific color temperature value is inputted in white balance module, and the white balance of image is directly adjusted by color temperature value.Furthermore it is possible to pass through Colour temperature filter adjusts white balance, and user selects different mirror systems as needed under the conditions of grasping the concentration value for commonly using filter, to Adjust the white balance of image;In addition, also curve adjustment etc. accomplished in many ways white balance preliminary corrections.
Second step:Image is finely adjusted.By after adjustment image and original image compare, be repeated the first step behaviour Make, until obtaining satisfied white balance effect.
Present inventor during technical solution, has found the above-mentioned prior art at least in invention the embodiment of the present application It has the following technical problems:
By above description it is found that due to during carrying out manual white balance adjustment to photo in the later stage, it is desirable that operation Person has the professional knowledge of image processing software, and needs to input specific adjusting parameter, is realized by constantly adjusting White balance.It can be seen that the technical problem that the accuracy of prior art presence adjustment white balance is poor, process is complicated.
Invention content
The embodiment of the present invention provides a kind of method and electronic equipment of control image white balance, is deposited for solving the prior art In the technical problem that the accuracy of adjustment white balance is poor, process is complicated, and then realizes and easily and accurately image is put down in vain Weigh the technique effect corrected.
According to the first aspect of the invention, a kind of method of control image white balance is provided, is applied in electronic equipment, institute The method of stating includes:Obtain the first image;Obtain the environmental parameter of environment of the described first image when being taken;At least it is based on institute Environmental parameter is stated, blank level adjustment is carried out to described first image, obtains the second image corresponding with described first image.
Optionally, the first image of the acquisition, specifically includes:It is read from the memory in the electronic equipment and obtains the One image;Or obtain the first image from the other electronic equipments being connect with the electronic equipment;Or one photographing operation of response, it obtains Obtain the first image obtained by the image acquisition units acquisition in the electronic equipment.
Optionally, the environmental parameter of environment of the acquisition described first image when being taken, specifically includes:Obtain institute State the first shooting time and the first shooting geographical location of the first image;Based on first shooting time and first shooting Geographical location obtains at least one weather parameters of the weather for characterizing the environment.
Optionally, described to be at least based on the environmental parameter, blank level adjustment, acquisition and institute are carried out to described first image Corresponding second image of the first image is stated, is specifically included:Based at least one weather parameters, the geographical position of the first shooting is obtained Set the first color temperature value in first shooting time;White balance tune is carried out to described first image according to first color temperature value It is whole, obtain the second image corresponding with described first image.
Optionally, described to be based at least one weather parameters, first shooting geographical location is obtained in the first count The first color temperature value for taking the photograph the time, specifically includes:First shooting time and first shooting ground are sent to cloud server Manage position;The cloud server is received to obtain and return based on first shooting time and the first shooting geographical location First color temperature value returned.
Optionally, it is described according to first color temperature value to described first image carry out blank level adjustment, obtain with it is described Corresponding second image of first image, specifically includes:First color temperature value is corrected, the first correction color temperature value is obtained; Blank level adjustment is carried out to described first image based on the first correction color temperature value, obtains corresponding with described first image the Two images.
Optionally, it is described at least be based on the environmental parameter, to described first image carry out blank level adjustment, obtain with After corresponding second image of described first image, the method further includes:Detection obtain user carry out to second figure N number of adjustment operation as carrying out white balance correction, N is the integer more than 1;N number of adjustment operation is responded, with to described second Image carries out blank level adjustment, obtains third image corresponding with second image.
According to another aspect of the present invention, a kind of electronic equipment is also provided, the electronic equipment includes:First obtains list Member, for obtaining the first image;Second acquisition unit, the environment for obtaining environment of the described first image when being taken are joined Number;The first adjustment unit, at least be based on the environmental parameter, to described first image carry out blank level adjustment, obtain with Corresponding second image of described first image.
Optionally, the first acquisition unit is specially:First reading subunit, for from depositing in the electronic equipment It is read in reservoir and obtains the first image;Or first obtain subelement, for being set from the other electronics being connect with the electronic equipment The first image of standby middle acquisition;Or first acquisition subelement obtained by the electronic equipment for responding a photographing operation The first image that image acquisition units acquisition obtains.
Optionally, the second acquisition unit specifically includes:Second obtains subelement, for obtaining described first image First shooting time and the first shooting geographical location;Third obtains subelement, for based on first shooting time and described First shooting geographical location, obtains at least one weather parameters of the weather for characterizing the environment.
Optionally, the first adjustment unit specifically includes:First acquisition module, for being joined based at least one weather Number, first color temperature value of the acquisition first shooting geographical location in first shooting time;The first adjustment module is used for root Blank level adjustment is carried out to described first image according to first color temperature value, obtains the second figure corresponding with described first image Picture.
Optionally, first acquisition module specifically includes:First sending submodule, for sending institute to cloud server State the first shooting time and first shooting geographical location;First receiving submodule, for receiving the cloud server base In first color temperature value that first shooting time and the first shooting geographical location are obtained and returned.
Optionally, the first adjustment module specifically includes:First correction submodule, for first color temperature value into Row correction obtains the first correction color temperature value;The first adjustment submodule, for correcting color temperature value to described first based on described first Image carries out blank level adjustment, obtains the second image corresponding with described first image.
Optionally, the electronic equipment further includes:First detection unit, for being at least based on environment ginseng described Number carries out blank level adjustment to described first image, and after obtaining the second image corresponding with described first image, detection obtains N number of adjustment that white balance correction is carried out to second image that user carries out operates, and N is the integer more than 1;First response is single Member is obtained and second image for responding N number of adjustment operation with carrying out blank level adjustment to second image Corresponding third image.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Since the electronic equipment in the technical solution in the embodiment of the present application can be by obtaining described first image Environmental parameter when shooting, and white balance correction is carried out by the first image of the environmental parameter pair, it obtains and described the Corresponding second image of one image because when the environmental parameter can most reflect shooting environment white balance situation, be based on Environmental parameter adjusts white balance, and white balance is that very accurately, and it is simple to adjust process, length when needing after adjustment.And show Have in technology, inputs the adjustment that specific white balance parameter carries out image white balance whether through the user of electronic equipment, still Blank level adjustment is carried out by selecting the white balance mode in professional image software, will not be all taken based on image When environmental parameter be adjusted, due to not accounting for environmental parameter, so the white balance after adjustment would not be very accurate, and During adjustment, user may need repeated multiple times.Image white balance tune exists in the prior art thus it is possible to efficiently solve The technical problem that whole accuracy is poor, process is complicated, and then realize the skill that white balance correction is easily and accurately carried out to image Art effect.
Description of the drawings
Fig. 1 is a kind of flow chart of the method for control image white balance in the embodiment of the present application;
Fig. 2 is the flow chart of step S102 in a kind of method of control image white balance of the embodiment of the present application;
Fig. 3 is the flow chart of step S103 in a kind of method of control image white balance of the embodiment of the present application;
Fig. 4 is the flow chart of step S301 in a kind of method of control image white balance of the embodiment of the present application;
Fig. 5 is the flow chart of step S302 in a kind of method of control image white balance of the embodiment of the present application;
Fig. 6 is the method flow after executing step S103 in a kind of method of control image white balance of the embodiment of the present application Figure;
Fig. 7 is the structure chart of a kind of electronic equipment in the embodiment of the present application.
Specific implementation mode
The embodiment of the present application provides a kind of method and electronic equipment of control image white balance, is deposited for solving the prior art In the technical problem that the accuracy of adjustment white balance is poor, process is complicated, and then realizes and easily and accurately image is put down in vain Weigh the technique effect corrected.
In order to solve the above technical problems, general thought is as follows for technical solution in the embodiment of the present application:
A method of control image white balance is applied in electronic equipment, the method includes:Obtain the first image; Obtain the environmental parameter of environment of the described first image when being taken;It is at least based on the environmental parameter, to first figure As carrying out blank level adjustment, the second image corresponding with described first image is obtained.
Since the electronic equipment in the technical solution in the embodiment of the present application can be by obtaining described first image Environmental parameter when shooting, and white balance correction is carried out by the first image of the environmental parameter pair, it obtains and described the Corresponding second image of one image because when the environmental parameter can most reflect shooting environment white balance situation, be based on Environmental parameter adjusts white balance, and after adjustment white balance is very accuracy, and it is simple to adjust process, length when needing.And In the prior art, the adjustment that specific white balance parameter carries out image white balance is inputted whether through the user of electronic equipment, also It is to carry out blank level adjustment by selecting the white balance mode in professional image software, will not be all being clapped based on image Environmental parameter is adjusted when taking the photograph, due to not accounting for environmental parameter, so the white balance after adjustment would not be very accurate, and During the adjustment, user may need repeated multiple times.Image white balance exists in the prior art thus it is possible to efficiently solve The technical problem that the accuracy of adjustment is poor, process is complicated, and then realize and white balance correction easily and accurately is carried out to image Technique effect.In order to better understand the above technical scheme, right in conjunction with appended figures and specific embodiments Above-mentioned technical proposal is described in detail.
By one embodiment of the application, a kind of method and electronic equipment of control image white balance are provided, here Electronic equipment can be digital camera, mobile phone, tablet computer etc., can also be other electronic equipments, here, the citing that just differs .It below will be by taking electronic equipment be mobile phone as an example, to the specific of the method for controlling image white balance in embodiments herein Realization process is described in detail.
Referring to FIG. 1, the embodiment of the present application provides a kind of method of control image white balance, it is applied in electronic equipment, Specifically, the method for the control image white balance in the embodiment of the present application includes:
S101:Obtain the first image;
S102:Obtain the environmental parameter of environment of first image when being taken;
S103:It is at least based on environmental parameter, blank level adjustment is carried out to the first image, obtains corresponding with the first image the Two images.
Wherein, step S101:The first image is obtained, is specifically included:It is read from the memory in electronic equipment and obtains the One image;Or obtain the first image from the other electronic equipments being connect with electronic equipment;Or one photographing operation of response, led to The first image that the image acquisition units acquisition crossed in electronic equipment obtains.
Step S101's the specific implementation process is as follows:Obtain the first image.The first image in the embodiment of the present application can be with It is landscape shines, personage is shone etc., can also be any electronic image comprising other content, row is shone into a landscape here Explanation.Mobile phone user needs the landscape of " Lotus Peak " entitled to one to be adjusted according to white balance, and the mobile phone of user needs first This landscape photograph is obtained, the process of specific implementation includes at least three kinds of modes:
The first, mobile phone reads a landscape in mobile phone memory card and shines, and reading manner here includes that directly opening is deposited Card storage responds search operation, can also be shone by opening the application programs such as photograph album in mobile phone to obtain " Lotus Peak " landscape.
Second, mobile phone obtains " Lotus Peak " landscape photograph, electronic equipment here from coupled electronic equipment It can be digital camera, mobile phone, tablet computer etc., can also be other electronic equipments, in a particular embodiment with tablet computer For, for example mobile phone user wants to shine into row blank level adjustment to " Lotus Peak " landscape stored in a tablet computer, it is first First, mobile phone can be connected by data transmission set such as data line, bluetooth, WIFI etc. with tablet computer, secondly carry out data Transmission is shone to obtain " Lotus Peak " landscape in tablet computer.
The third, for mobile phone during shooting landscape photograph, mobile phone responds the shooting operation of user, and the image in mobile phone is adopted Collection unit such as CCD, CMOS etc. are acquired current landscape, by collected landscape according to the storage unit for being saved in mobile phone. I.e. mobile phone user shoots in Lotus Peak, by responding the photographing operation of mobile phone user, to which mobile phone is recorded " Lotus Peak " Photo.
In the embodiment of the present application, after obtaining the first image by step S101, further, referring to FIG. 2, executing Step S102:The environmental parameter for obtaining environment of the described first image when being taken, specifically includes:
S201:Obtain the first shooting time and the first shooting geographical location of the first image;
S202:Based on the first shooting time and first shooting geographical location, the weather for characterizing environment is obtained At least one weather parameters.
Step S201 specific implementation process is as follows:Photo opporunity and place are obtained, as shown in Table 1.Wherein obtain first count The mode for taking the photograph time and the first shooting geographical location can obtain the first shooting by mobile phone time program during taking pictures Time, and the particular geographic location information shot is obtained by the locating module in mobile phone, such as GPS functions are taken pictures The location information in place is obtained by the positioning of the base station of mobile operation network, or using other positioning methods such as WIFI positioning The particular geographic location information taken pictures.Can also be that upon taking a picture, mobile phone responds the input operation of user, when input first is shot Between and first shooting geographical location, that is, input " the noon 12 on the 8th of August in 2013:00 ", " 118 ° of 9' of east longitude, 30 ° of 8' " of north latitude. This application is not specifically limited.
Table one
In the following step, it illustrates, is holding by taking the information in the table one obtained during above-mentioned S201 as an example After row completes step S201, the method in the embodiment of the present application executes step S202, the specific implementation process is as follows:
For example user is at the noon 12 on the 8th of August in 2014:00 is shot on the Lotus Peak of Mt. Huangshan Scenic Area, same taking pictures When, mobile phone records the first shooting time " noon 12 on the 8th of August in 2013:00 " and first shoots geographical location " 118 ° of east longitude 9', 30 ° of 8' " of north latitude.
At least one day of the weather for characterizing environment is obtained based on the first shooting time and the first shooting geographical location Gas parameter, weather parameters here can be illumination, temperature, humidity etc., can also be other weather parameters, here, just not It enumerates.Specifically, that is, it is based on the first shooting time " noon 12 on the 8th of August in 2013:00 " and first shoots geographical position Set " 118 ° of 9' of east longitude, weather parameters that 30 ° of 8' " of north latitude are obtained hypothesis be " 4015Lx, 30 DEG C, 40% ".
In the embodiment of the present application, after obtaining at least one weather parameters, further, referring to FIG. 3, executing step S103:Based at least one weather parameters, first color of the acquisition first shooting geographical location in first shooting time Temperature value specifically includes:
S301:Based at least one weather parameters, first shooting geographical location is obtained in first shooting time The first color temperature value;
S302:Blank level adjustment is carried out to described first image according to first color temperature value, is obtained and first figure As corresponding second image.
Referring to FIG. 4, the S301 in step S103 includes the following steps during specific implementation:
S401:First shooting time and first shooting geographical location are sent to cloud server;
S402:The cloud server is received to obtain based on first shooting time and the first shooting geographical location First color temperature value for obtaining and returning.
It continues with the example continued to use above to be described, specifically, as:Mobile phone is by the first shooting time of acquisition " the noon 12 on the 8th of August in 2013:00 " and first shooting " 118 ° of 9' of east longitude, 30 ° of 8' " of north latitude are sent to by network in geographical location Cloud server then, above cloud server was searched at the noon 12 on the 8th of August in 2013:00 first shooting geographical location 118 ° of 9' of east longitude, the color temperature value of 30 ° of 8' of north latitude obtain cloud server feedback at the first shooting time noon on the 8th of August in 2013 12:The first color temperature value of 00 first shooting 118 ° of 9' of geographical location east longitude, 30 ° of 8' of north latitude is 5400K.
After obtaining the first color temperature value, referring to FIG. 5, the specific implementation process of the S302 in step S103 includes:
S501:First color temperature value is corrected, the first correction color temperature value is obtained;
S502:Blank level adjustment is carried out to described first image based on the first correction color temperature value, is obtained and described the Corresponding second image of one image.
During specific implementation, after obtaining the first color temperature value, according to environment concrete condition at that time suitably to Temperature value of the same colour is corrected, for example user supports friend's first of parasols in Lotus Peak photographs, and mobile phone obtains first count at this time It is the noon 12 on the 8th of August in 2013 to take the photograph the time:00, first shoots 118 ° of 9' of geographical location east longitude, and 30 ° of 8' of north latitude take by high in the clouds Business device find at that time the first color temperature value of Lotus Peak be 5400K, during carrying out photo adjustment the first color temperature value of mobile phone pair into Row correction, it is 5000K to obtain the first correction color temperature value.It, can be according to obtaining during specific implementation in image adaptation procedures The correction color temperature value 5000K obtained carries out blank level adjustment to image " Lotus Peak ", obtains " Lotus Peak " by blank level adjustment Photo certainly, in the embodiment of the present application, can also be to correcting color temperature value in order to obtain more accurate white balance photo 5000K is adjusted again, and specific descriptions are seen below.
In the present embodiment, after executing step S103, referring to FIG. 6, including in specific implementation process:
S601:Detection obtains the N number of adjustment for carrying out white balance correction to second image that user carries out and operates, and N is Integer more than 1;
S602:The N number of adjustment operation is responded, to carry out blank level adjustment to second image, is obtained and described the The corresponding third image of two images.
In specific implementation process, user is after being based on mobile phone color temperature value and carrying out realizing auto kine bias function, mobile phone user Want further the white balance of photo is adjusted, first, mobile phone detection obtain user carry out to second image into One or several adjustment of row white balance correction operate, next, after the adjustment operation for detecting user, it will be to the second image Blank level adjustment is carried out, after blank level adjustment, obtains third image.Specifically, mobile phone user wants to August 8 in 2013 Noon 12 day:00 friend's first of Lotus Peak photographs photo carry out blank level adjustment, based on correction color temperature value be 5000K After carrying out blank level adjustment, it can select to continue to carry out other multiple blank level adjustments to photo, such as can continue to color Temperature value is finely adjusted, and is such as adjusted to 4900K, or be adjusted to 5100K, make to see effect closer to real scene;Also may be used Scene is adjusted to acronical scene, at this time, it may be necessary to which color temperature value is adjusted to 5600K, certain those skilled in the art Member can also as needed, and adjustment correction color temperature value is 5000K.The application just differs herein one to be schematically illustrated.
Embodiment two
Based on same inventive concept, the embodiment of the present application two provides a kind of electronic equipment, referring to FIG. 7, the electronics is set It is standby to include:
First acquisition unit 70, for obtaining the first image;
Second acquisition unit 71, the environmental parameter for obtaining environment of the described first image when being taken;
The first adjustment unit 72 carries out blank level adjustment for being at least based on the environmental parameter to described first image, Obtain the second image corresponding with described first image.
Optionally, the first acquisition unit 70 specifically includes:
First reading subunit obtains the first image for being read from the memory in the electronic equipment;Or first Subelement is obtained, for obtaining the first image from the other electronic equipments being connect with the electronic equipment;Or first acquisition son Unit obtains the first figure obtained by the image acquisition units acquisition in the electronic equipment for responding a photographing operation Picture.
Optionally, the second acquisition unit 71 specifically includes:
Second obtains subelement, the first shooting time for obtaining described first image and the first shooting geographical location;
Third obtains subelement, for based on first shooting time and first shooting geographical location, being used In at least one weather parameters for the weather for characterizing the environment.
Optionally, the first adjustment unit 72 specifically includes:
First acquisition module obtains first shooting geographical location described for being based at least one weather parameters First color temperature value of the first shooting time;
The first adjustment module is obtained for carrying out blank level adjustment to described first image according to first color temperature value The second image corresponding with described first image.
First sending submodule, for sending first shooting time and the first shooting geography to cloud server Position;
First receiving submodule is based on first shooting time and the first count for receiving the cloud server First color temperature value for taking the photograph geographical location and obtaining and returning.
First correction submodule obtains the first correction color temperature value for being corrected to first color temperature value;
The first adjustment submodule carries out white balance tune for correcting color temperature value based on described first to described first image It is whole, obtain the second image corresponding with described first image.
Optionally, the electronic equipment further includes:
First detection unit carries out white balance for being at least based on the environmental parameter described to described first image Adjustment, after obtaining corresponding with described first image the second image, detection obtain user's progress to second image into N number of adjustment of row white balance correction operates, and N is the integer more than 1;
First response unit, for responding N number of adjustment operation, to carry out blank level adjustment to second image, Obtain third image corresponding with second image.
One or more technical solutions provided in the embodiments of the present application have at least the following technical effects or advantages:
Since the electronic equipment in the technical solution in the embodiment of the present application can be by obtaining described first image Environmental parameter when shooting, and white balance correction is carried out by the first image of the environmental parameter pair, it obtains and described the Corresponding second image of one image because when the environmental parameter can most reflect shooting environment white balance situation, be based on Environmental parameter adjusts white balance, and white balance is that very accurately, and it is simple to adjust process, length when needing after adjustment.And show Have in technology, inputs the adjustment that specific white balance parameter carries out image white balance whether through the user of electronic equipment, still Blank level adjustment is carried out by selecting the white balance mode in professional image software, will not be all taken based on image When environmental parameter be adjusted, due to not accounting for environmental parameter, so the white balance after adjustment would not be very accurate, and During adjustment, user may need repeated multiple times.Image white balance tune exists in the prior art thus it is possible to efficiently solve The technical problem that whole accuracy is poor, process is complicated, and then realize the skill that white balance correction is easily and accurately carried out to image Art effect.
It should be understood by those skilled in the art that, the embodiment of the present invention can be provided as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, the present invention can be used in one or more wherein include computer usable program code computer The computer program production implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) The form of product.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Specifically, the corresponding computer program instructions of control white balance method in the embodiment of the present application can be stored In CD, hard disk, on the storage mediums such as USB flash disk, when computer program corresponding with control white balance method refers in storage medium It enables and is read or be performed by an electronic equipment, include the following steps:
Obtain the first image;Obtain the environmental parameter of environment of the described first image when being taken;It is at least based on described Environmental parameter carries out blank level adjustment to described first image, obtains the second image corresponding with described first image.
Optionally, stored in the storage medium and step:The first image of the acquisition, corresponding computer instruction exist During being specifically performed, specifically comprise the following steps:
It is read from the memory in the electronic equipment and obtains the first image;Or from connect with the electronic equipment its The first image is obtained in its electronic equipment;Or one photographing operation of response, acquisition pass through the Image Acquisition list in the electronic equipment The first image that member acquisition obtains.
Optionally, stored in the storage medium and step:The ring that described first image is obtained when being taken The environmental parameter in border, corresponding computer instruction specifically comprise the following steps during specific be performed:
Obtain the first shooting time and the first shooting geographical location of described first image;Based on first shooting time With first shooting geographical location, at least one weather parameters of the weather for characterizing the environment is obtained.
Optionally, the storage in the storage medium and step:It is described to be at least based on the environmental parameter, to described the One image carries out blank level adjustment, obtains the second image corresponding with described first image, corresponding computer instruction is specific During being performed, specifically comprise the following steps:
Based at least one weather parameters, first shooting geographical location is obtained the first of first shooting time Color temperature value;Blank level adjustment is carried out to described first image according to first color temperature value, is obtained corresponding with described first image The second image.
Optionally, the storage in the storage medium and step:It is described to be based at least one weather parameters, described in acquisition In the first color temperature value of first shooting time, corresponding computer instruction was performed specifically in the first shooting geographical location Cheng Zhong specifically comprises the following steps:
First shooting time and first shooting geographical location are sent to cloud server;Receive the high in the clouds clothes First color temperature value that business device is obtained and returned based on first shooting time and the first shooting geographical location.
Optionally, the storage in the storage medium and step:It is described according to first color temperature value to described first Image carries out blank level adjustment, obtains the second image corresponding with described first image, corresponding computer instruction is in specifically quilt In implementation procedure, specifically comprise the following steps:
First color temperature value is corrected, the first correction color temperature value is obtained;Based on the first correction color temperature value pair Described first image carries out blank level adjustment, obtains the second image corresponding with described first image.
Optionally, the storage in the storage medium and step:It is at least based on the environmental parameter described, to described First image carries out blank level adjustment, after obtaining the second image corresponding with described first image, corresponding computer instruction Further include specifically following steps during specific be performed:
Detection obtains the N number of adjustment for carrying out white balance correction to second image that user carries out and operates, and N is more than 1 Integer;N number of adjustment operation is responded to obtain and second image to carry out blank level adjustment to second image Corresponding third image.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of method of control image white balance, is applied in electronic equipment, the method includes:
Obtain the first image;
Obtain the environmental parameter of environment of the described first image when being taken;
It is at least based on the environmental parameter, blank level adjustment is carried out to described first image, is obtained corresponding with described first image The second image;
The environmental parameter of environment of the wherein described acquisition described first image when being taken, specifically includes:
Obtain the first shooting time and the first shooting geographical location of described first image;
Based on first shooting time and first shooting geographical location, obtain for characterizing the weather of the environment extremely A few weather parameters;
Wherein, the first image of the acquisition, specifically includes:
It is read from the memory in the electronic equipment and obtains the first image;Or
The first image is obtained from the other electronic equipments being connect with the electronic equipment.
2. the method as described in claim 1, which is characterized in that it is described to be at least based on the environmental parameter, to first figure As carrying out blank level adjustment, the second image corresponding with described first image is obtained, is specifically included:
Based at least one weather parameters, first colour temperature of the acquisition first shooting geographical location in first shooting time Value;
Blank level adjustment is carried out to described first image according to first color temperature value, obtains corresponding with described first image the Two images.
3. method as claimed in claim 2, which is characterized in that it is described to be based at least one weather parameters, obtain described first Geographical location is shot in the first color temperature value of first shooting time, is specifically included:
First shooting time and first shooting geographical location are sent to cloud server;
The cloud server is received to obtain and return based on first shooting time and the first shooting geographical location First color temperature value.
4. method as claimed in claim 2, which is characterized in that it is described according to first color temperature value to described first image into Row blank level adjustment obtains the second image corresponding with described first image, specifically includes:
First color temperature value is corrected, the first correction color temperature value is obtained;
Blank level adjustment is carried out to described first image based on the first correction color temperature value, is obtained corresponding with described first image The second image.
5. the method as described in any claim in claim 1-4, which is characterized in that be at least based on environment ginseng described Number carries out blank level adjustment to described first image, after obtaining the second image corresponding with described first image, the method Further include:
Detection obtains the N number of adjustment for carrying out white balance correction to second image that user carries out and operates, and N is whole more than 1 Number;
N number of adjustment operation is responded to obtain corresponding with second image to carry out blank level adjustment to second image Third image.
6. a kind of electronic equipment, the electronic equipment include:
First acquisition unit, for obtaining the first image;
Second acquisition unit, the environmental parameter for obtaining environment of the described first image when being taken;
The first adjustment unit, at least be based on the environmental parameter, to described first image carry out blank level adjustment, obtain with Corresponding second image of described first image;
The wherein described second acquisition unit specifically includes:
Second obtains subelement, the first shooting time for obtaining described first image and the first shooting geographical location;
Third obtains subelement, for based on first shooting time and first shooting geographical location, obtaining and being used for table Levy at least one weather parameters of the weather of the environment;
The wherein described first acquisition unit is specially:
First reading subunit obtains the first image for being read from the memory in the electronic equipment;Or
First obtains subelement, for obtaining the first image from the other electronic equipments being connect with the electronic equipment.
7. electronic equipment as claimed in claim 6, which is characterized in that the first adjustment unit specifically includes:
First acquisition module obtains first shooting geographical location described first for being based at least one weather parameters First color temperature value of shooting time;
The first adjustment module, for carrying out blank level adjustment, acquisition and institute to described first image according to first color temperature value State corresponding second image of the first image.
8. electronic equipment as claimed in claim 7, which is characterized in that first acquisition module specifically includes:
First sending submodule, for sending first shooting time and the geographical position of the first shooting to cloud server It sets;
First receiving submodule is based on first shooting time and first shooting ground for receiving the cloud server First color temperature value for managing position and obtaining and returning.
9. electronic equipment as claimed in claim 7, which is characterized in that the first adjustment module specifically includes:
First correction submodule obtains the first correction color temperature value for being corrected to first color temperature value;
The first adjustment submodule carries out blank level adjustment to described first image for correcting color temperature value based on described first, obtains Obtain the second image corresponding with described first image.
10. the electronic equipment as described in any claim in claim 6-9, which is characterized in that the electronic equipment further includes:
First detection unit, for carrying out blank level adjustment to described first image at least based on the environmental parameter described, After obtaining the second image corresponding with described first image, detection obtains being put down in vain to second image for user's progress N number of adjustment operation of weighing apparatus correction, N are the integer more than 1;
First response unit is obtained for responding N number of adjustment operation with carrying out blank level adjustment to second image Third image corresponding with second image.
CN201410404258.8A 2014-08-15 2014-08-15 A kind of control image white balance method and electronic equipment Active CN105338333B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410404258.8A CN105338333B (en) 2014-08-15 2014-08-15 A kind of control image white balance method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410404258.8A CN105338333B (en) 2014-08-15 2014-08-15 A kind of control image white balance method and electronic equipment

Publications (2)

Publication Number Publication Date
CN105338333A CN105338333A (en) 2016-02-17
CN105338333B true CN105338333B (en) 2018-08-31

Family

ID=55288578

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410404258.8A Active CN105338333B (en) 2014-08-15 2014-08-15 A kind of control image white balance method and electronic equipment

Country Status (1)

Country Link
CN (1) CN105338333B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672209A (en) * 2020-12-14 2021-04-16 北京达佳互联信息技术有限公司 Video editing method and video editing device

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105681679A (en) * 2016-03-10 2016-06-15 青岛海信移动通信技术股份有限公司 White balance adjusting method and mobile terminal
CN105721847A (en) * 2016-04-29 2016-06-29 乐视控股(北京)有限公司 Camera white balance adjustment method and device
CN105898261A (en) * 2016-04-29 2016-08-24 上海斐讯数据通信技术有限公司 Photographing system and method
CN106027787B (en) * 2016-06-15 2019-10-18 维沃移动通信有限公司 A kind of white balance method and mobile terminal of mobile terminal
CN105915876A (en) * 2016-06-15 2016-08-31 乐视控股(北京)有限公司 Automatic white balancing method and device
CN109151426B (en) * 2017-06-28 2020-05-22 杭州海康威视数字技术股份有限公司 White balance adjusting method and device, camera and medium
CN107682684A (en) * 2017-10-24 2018-02-09 北京小米移动软件有限公司 White balance adjusting method and apparatus
CN109698913B (en) * 2018-12-29 2020-12-04 深圳市道通智能航空技术有限公司 Image display method and device and electronic equipment
TWI723551B (en) * 2019-09-20 2021-04-01 宏碁股份有限公司 Method, image processing device, and system for white balance adjustment
CN111294513B (en) * 2020-02-10 2021-06-18 北京梧桐车联科技有限责任公司 Photographing method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4500229B2 (en) * 2005-08-01 2010-07-14 富士フイルム株式会社 Imaging device
CN103369228A (en) * 2012-03-26 2013-10-23 百度在线网络技术(北京)有限公司 Camera setting method and device, and camera
CN103051804B (en) * 2012-12-28 2014-12-10 广东欧珀移动通信有限公司 Intelligent photo taking method and system of mobile terminal
CN103841324A (en) * 2014-02-20 2014-06-04 小米科技有限责任公司 Shooting processing method and device and terminal device
CN105208364A (en) * 2014-06-27 2015-12-30 联想(北京)有限公司 Image white balance control method, device and electronic apparatus

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672209A (en) * 2020-12-14 2021-04-16 北京达佳互联信息技术有限公司 Video editing method and video editing device

Also Published As

Publication number Publication date
CN105338333A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN105338333B (en) A kind of control image white balance method and electronic equipment
CN107925720B (en) System and method for controlling capture of images
US8659667B2 (en) Recipe based real-time assistance for digital image capture and other consumer electronics devices
KR101247054B1 (en) Pre-configured settings for portable devices
US10536628B2 (en) Providing camera settings from at least one image/video hosting service
WO2016008357A1 (en) Photographing method, apparatus, and storage medium
CN105208266A (en) Shooting method and mobile terminal
US8774614B2 (en) System and method for capturing time-lapse photographs
US20130188061A1 (en) Photographer's Guidance Systems
US10623620B2 (en) Utilizing metadata for automated photographic setup
JP2005173610A (en) Digital camera and its processing method
CN105940673B (en) Image processing apparatus and image processing method
CN102647450A (en) Intelligent shooting method and system based on cloud service
CN104113691A (en) Shooting method and shooting device
CN101075083A (en) Method for taking a panoramic photo and mobile communication terminal
CN102685207A (en) Intelligent photographic method based on cloud service and cloud service equipment
US9621759B2 (en) Systems and methods for providing timestamping management for electronic photographs
CN107211086A (en) It is a kind of by detecting that mobile device is in the indoor or outdoor method to improve mobile device camera image quality
CN102523376A (en) Shooting equipment and method
WO2013177851A1 (en) Wallpaper processing method and device
KR20150134960A (en) Method and apparatus for recommending photo composition
CN104580928A (en) Camera shooting light fill-in method and device
CN104394329A (en) Photographing method and device and mobile terminal
US20120075482A1 (en) Image blending based on image reference information
US10386701B1 (en) Mobile device enabling collaboration with flashes of other devices and method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant