CN104853172B - A kind of information processing method and a kind of electronic equipment - Google Patents

A kind of information processing method and a kind of electronic equipment Download PDF

Info

Publication number
CN104853172B
CN104853172B CN201410056886.1A CN201410056886A CN104853172B CN 104853172 B CN104853172 B CN 104853172B CN 201410056886 A CN201410056886 A CN 201410056886A CN 104853172 B CN104853172 B CN 104853172B
Authority
CN
China
Prior art keywords
component value
white balance
component
balance parameter
preview image
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
CN201410056886.1A
Other languages
Chinese (zh)
Other versions
CN104853172A (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 CN201410056886.1A priority Critical patent/CN104853172B/en
Publication of CN104853172A publication Critical patent/CN104853172A/en
Application granted granted Critical
Publication of CN104853172B publication Critical patent/CN104853172B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

This application discloses a kind of information processing method and a kind of electronic equipment, methods described is applied to electronic equipment, and the electronic equipment includes image acquisition units, and methods described includes:Image acquisition units obtain the preview image and the corresponding depth information of the preview image in current acquisition range;Detection first is operated, and the first the first parameter for operating correspondence position according to the described first corresponding with preview image Depth Information Acquistion of operation;First area and the second area of the preview image are determined according to first parameter, and obtains corresponding first white balance parameter in the first area, and corresponding second white balance parameter of second area;Based on first white balance parameter and second white balance parameter, the 3rd white balance parameter is obtained;The preview image is adjusted using the 3rd white balance parameter.

Description

A kind of information processing method and a kind of electronic equipment
Technical field
The present invention relates to electronic technology field, more particularly to a kind of information processing method and a kind of electronic equipment.
Background technology
At present, with the development of electronic technology, increasing electronic equipment enters the life of people, is the life of people Work brings great convenience.And current electronic product has a variety of, such as mobile phone, tablet personal computer, camera etc., these electronics Equipment all has camera function.
By taking camera as an example, camera typically can first carry out white balance correction before photograph taking.
And the present inventor has found when realizing the solution of the present invention, existing white balance correction is typically all according to shooting The ratio of R/G, B/G on scene reflectivity to camera sensor three primary colors pixel is corrected, and the mode of regulation is more single, this The correcting mode of sample is possible to the picture distortion that can cause to shoot, and then influences the quality of photo.
Therefore, the technical problem of prior art presence is:Existing white balance adjusting mode is more single, and then influences to clap Take the photograph the quality of image.
The content of the invention
The present invention provides a kind of information processing method and a kind of electronic equipment, white present in prior art to solve Balance adjustment mode is more single, and then influences the technical problem of the quality of shooting image.
On the one hand, there is provided following technical scheme for one embodiment of the invention by the application:
A kind of information processing method, methods described is applied to electronic equipment, and the electronic equipment includes image acquisition units, Methods described includes:Image acquisition units obtain preview image and the corresponding depth of the preview image in current acquisition range Spend information;Detection first is operated, and the according to the described first corresponding with preview image Depth Information Acquistion of operation First parameter of one operation correspondence position;The first area and the secondth area of the preview image are determined according to first parameter Domain, and obtain corresponding first white balance parameter in the first area, and corresponding second white balance parameter of second area;It is based on First white balance parameter and second white balance parameter, obtain the 3rd white balance parameter;Use the 3rd white balance Preview image described in parameter regulation.
It is preferred that, it is described that the operation correspondence position is obtained according to the first operation when the described first operation is focus operation The first parameter put, be specially:According to the focus operation and the corresponding Depth Information Acquistion focusing area of the preview image Depth information.
It is preferred that, it is described that the operation correspondence position is obtained according to the first operation when the described first operation is selection operation The first parameter put, be specially:Chosen according to the selection operation and the corresponding Depth Information Acquistion of the preview image Operate the depth information of corresponding selection region.
It is preferred that, first area is the depth continuum according to the first parameter extraction.
It is preferred that, first white balance parameter includes:The obtained based on the first red component and the first green component One component value, and the second component value obtained based on the first blue component and first green component;Second white balance Parameter includes:The three-component value obtained based on the second red component and the second green component, and based on the second blue component and The 4th component value that second green component is obtained.
It is preferred that, the 3rd white balance parameter includes the 5th component value and the 6th component value;It is described to be based on described first White balance parameter and second white balance parameter, obtain the 3rd white balance parameter, specifically include:Based on first component value With the three-component value, the 5th component value is obtained;Based on the second component value and the 4th component value, institute is obtained State the 6th component value.
It is preferred that, it is described to be based on first component value and the three-component value, the 5th component value is obtained, specifically For:The 5th component is obtained using formula Rg=(Rg1 × 3+Rg2)/4;Wherein, Rg represents the 5th component value, and Rg1 represents One component value, Rg2 represents three-component value.
It is preferred that, it is described to be based on the second component value and the 4th component value, the 6th component value is obtained, specifically For:The 6th component value is obtained using formula Bg=(Bg1 × 3+Bg2)/4;Wherein, Bg represents the 6th component value, and Bg1 is represented Second component value, Bg2 represents the 4th component value.
It is preferred that, it is described to adjust the preview image using the 3rd white balance parameter, specifically include:Based on described Five component values and the 6th component value regulation described image.
On the other hand, the present invention is provided by another embodiment of the application:
A kind of electronic equipment, the electronic equipment includes image acquisition units, and the electronic equipment includes:Described image is adopted Collect unit, for obtaining preview image and the corresponding depth information of the preview image in current acquisition range;First obtains Unit is taken, for detecting that first operates, and according to the described first operation Depth Information Acquistion institute corresponding with the preview image State the first parameter of the first operation correspondence position;Second acquisition unit, for determining the preview graph according to first parameter The first area of picture and second area, and corresponding first white balance parameter in the first area is obtained, it is corresponding with second area The second white balance parameter;Obtaining unit, for based on first white balance parameter and second white balance parameter, obtaining 3rd white balance parameter;Adjustment unit, for adjusting the preview image using the 3rd white balance parameter.
It is preferred that, when the described first operation is focus operation, the first acquisition unit, specifically for according to described right The depth information of Jiao's operation Depth Information Acquistion focusing area corresponding with the preview image.
It is preferred that, when the described first operation is selection operation, the first acquisition unit, specifically for according to the choosing The depth information of the corresponding selection region of selection operation described in extract operation and the corresponding Depth Information Acquistion of the preview image.
It is preferred that, first white balance parameter includes:The obtained based on the first red component and the first green component One component value, and the second component value obtained based on the first blue component and first green component;Second white balance Parameter includes:The three-component value obtained based on the second red component and the second green component, and based on the second blue component and The 4th component value that second green component is obtained.
It is preferred that, the 3rd white balance parameter includes the 5th component value and the 6th component value;It is described to be based on described first White balance parameter and second white balance parameter, obtain the 3rd white balance parameter, specifically include:Based on first component value With the three-component value, the 5th component value is obtained;Based on the second component value and the 4th component value, institute is obtained State the 6th component value.
It is preferred that, it is described to be based on first component value and the three-component value, the 5th component value is obtained, specifically For:The 5th component is obtained using formula Rg=(Rg1 × 3+Rg2)/4;Wherein, Rg represents the 5th component value, and Rg1 represents One component value, Rg2 represents three-component value.
It is preferred that, it is described to be based on the second component value and the 4th component value, the 6th component value is obtained, specifically For:The 6th component value is obtained using formula Bg=(Bg1 × 3+Bg2)/4;Wherein, Bg represents the 6th component value, and Bg1 is represented Second component value, Bg2 represents the 4th component value.
One or more of above-mentioned technical proposal technical scheme, has the following technical effect that or advantage:
In the inventive solutions, when carrying out image taking, depth information is considered wherein, according to depth information The white balance parameter for shooting main body is determined, and combines the white balance parameter of background area, white balance school is carried out to whole image Just.Depth information and white balance parameter are considered when carrying out white balance correction to image, therefore, it is possible to improve image Shooting quality, it is ensured that electronic equipment being capable of high-quality shooting image.
Brief description of the drawings
Fig. 1 is the procedure chart of information processing method in the embodiment of the present application;
Fig. 2 is first area and the second area schematic diagram of preview image in the embodiment of the present application;
Fig. 3 is the schematic diagram of electronic equipment in the embodiment of the present application.
Embodiment
It is more single in order to solve white balance adjusting mode present in prior art, and then influence the quality of shooting image Technical problem, the embodiment of the present invention proposes a kind of information processing method and a kind of electronic equipment, and its solution is overall Thinking is as follows:
When carrying out the white balance correction of image, depth information and white balance parameter have been considered.First believed according to depth Breath determines the white balance parameter for shooting main body, and combines the white balance parameter of background area, and white balance is carried out to whole image Correction, to ensure that electronic equipment shoots high-quality image.
Technical solution of the present invention is described in detail below by accompanying drawing and specific embodiment, it should be understood that the present invention Specific features in embodiment and embodiment are the detailed description to technical solution of the present invention, rather than to the technology of the present invention side The restriction of case, in the case where not conflicting, the technical characteristic in the embodiment of the present invention and embodiment can be mutually combined.
In one embodiment of the present invention, a kind of information processing method is described.
In specific implementation process, this method is applied to electronic equipment.Electronic equipment in the embodiment of the present invention can be with It is the portability electronic equipment such as notebook computer, tablet personal computer etc. computer equipment or mobile phone, camera.Enter one Step, the above-mentioned electronic equipment enumerated all needs to include image acquisition units.The image acquisition units of the present invention include but is not limited to It is camera.
The specific implementation process that refer to information processing method in Fig. 1, the embodiment of the present invention below is as follows:
S101, image acquisition units obtain the corresponding depth letter of preview image and preview image in current acquisition range Breath.
In specific implementation process, if being illustrated using camera, when the camera of camera is directed at somewhere scenery, camera Current acquisition range is the scope for the scenery that camera can be collected.The camera of camera can obtain the preview of current acquisition range Image, and the preview image can be presented on the screen of camera, and user can include from preview image is observed on screen Scenery.In addition, in addition to preview image, camera can also obtain the corresponding depth information of preview image.Specifically, deep Each object and the distance relation of camera spent in information representation preview image, and the respective distance relation of each object.
S102, detection first is operated, and is operated according to the first operation Depth Information Acquistion first corresponding with preview image First parameter of correspondence position.
In specific implementation process, the first operation can be focus operation or selection operation.And according to the first operation Operation purpose difference can determine whether out different correspondence positions.And the first parameter includes but is not limited to be depth information.Lower mask body It is explained.
When the first operation is focus operation, according to the first operation Depth Information Acquistion operation pair corresponding with described image The first parameter of position is answered, is specially:According to the depth of focus operation and the corresponding Depth Information Acquistion focusing area of preview image Spend information.In specific implementation process, if by taking camera as an example, when the camera of camera gets preview image and preview image After corresponding depth information, user can focus to camera, determine the shooting main body of camera.And come for camera Say, after user produces focus operation, then can be determined according to focus operation and the corresponding depth information of preview image pair The depth information in burnt region, focusing area is to shoot the corresponding region of main body, is named as body region.
When the first operation is selection operation, according to the first operation Depth Information Acquistion operation pair corresponding with preview image The first parameter of position is answered, is specially:It is corresponding according to the corresponding Depth Information Acquistion selection operation of selection operation and preview image Selection region depth information.In specific implementation process, selection operation includes but is not limited to choose deep in preview image Spend continuous region, the region with special body or the continuous region of color etc..If by taking camera as an example, when taking the photograph for camera After getting preview image and the corresponding depth information of preview image as head, user can select body region on camera. And for camera, after user selects body region, camera can then be based further on the corresponding depth of preview image The depth information in the region of information acquisition user selection.
S103, first area and the second area of preview image are determined according to the first parameter, and obtain first area correspondence The first white balance parameter, and corresponding second white balance parameter of second area.
In specific implementation process, first area is the depth continuum according to the first parameter extraction.It refer to figure 2, Fig. 2 illustrate the first area of preview image and second area.Wherein, can according to depth information it is determined that during first area To determine that the depth information value in depth continuum, depth continuum is more or less the same each other, therefore, depth continuum The occupied area for shooting main body can be symbolized.It regard depth information region as first area.So first area is exactly to shoot The corresponding region of main body, i.e. body region;Second area is the background area in addition to body region.The two regions all have Respective white balance parameter.First area has the first white balance parameter, and second area has the second white balance parameter.When it is determined that Go out after first area and second area, it is possible to obtain each self-corresponding white balance parameter, and perform following step.
S104, based on the first white balance parameter and the second white balance parameter, obtains the 3rd white balance parameter.
S105, preview image is adjusted using the 3rd white balance parameter.
In specific implementation process, what the 3rd white balance parameter was represented is the blank level adjustment value of preview image, and phase Machine is when being directed at scenery, and the scenery that camera is obtained has a white balance parameter originally, pre- to adjust using the 3rd white balance parameter Look at image, be the white balance parameter of comprehensive 3rd white balance parameter and scenery script, white balance school is carried out to the scenery of shooting Just.
The information processing method of above example description, is to consider depth information wherein, to be determined according to depth information The white balance parameter of main body is shot, and combines the white balance parameter of background area, white balance correction is carried out to whole image.Right Image carries out having considered depth information and white balance parameter during white balance correction, therefore, it is possible to improve the shooting matter of image Amount, it is ensured that electronic equipment being capable of high-quality shooting image.
In a second embodiment of the present invention, the letter in a kind of information processing method, the embodiment of the present invention is also illustrated The implementation process for ceasing processing method is similar with the implementation process of one embodiment, specifically refer to the information processing of Fig. 1 descriptions The implementation process figure of method, will not be repeated here.The difference of the embodiment of the present invention is:Obtaining the first white balance parameter and the During two white balance parameters, the first white balance parameter in the embodiment of the present invention includes:Based on the first red component and the first green The first component value that component is obtained, and the second component value obtained based on the first blue component and the first green component.Wherein, What one component value was characterized is the accounting of the whole red component in body region;During what second component value was characterized is body region The accounting of whole blue component, both are obtained based on the green component in body region.Assuming that the first component value For Rg1, the first red component is R1, and the first green component is G1, then, Rg1=R1/G1.It should be noted that obtaining first herein Component value Rg1 mode is merely to illustrate and explain the present invention, and is not intended to limit the present invention, and the present invention is except using this side Outside formula, other modes can also be used to obtain Rg1, for example, obtained using G1/R1 mode.Assuming that second component value is Bg1, the first blue component is B1, then Bg1=B1/G1.It should be noted that the mode for obtaining second component value Bg1 herein is only used for The description and interpretation present invention, is not intended to limit the present invention, and the present invention can also use others in addition to making in this way Mode obtains Bg1, for example, obtained using G1/B1 mode.And the first component value and the acquisition pattern of second component value should It is corresponding, i.e. if the first component value Rg1 is obtained using R1/G1 mode, then second component value Bg1 is using B1/G1's Mode is obtained, otherwise same.
Further, the second white balance parameter in the embodiment of the present invention includes:It is green based on the second red component and second The three-component value that colouring component is obtained, and the 4th component value obtained based on the second blue component and the second green component.Wherein, What three-component value was characterized is the accounting of the whole red component in background area;During what the 4th component value was characterized is background area Whole blue component accounting, both are obtained based on the green component in background area.Assuming that three-component It is worth for Rg2, the second red component is R2, the second green component is G2, then, Rg2=R2/G2.It should be noted that obtaining herein Two component value Rg2 mode is merely to illustrate and explain the present invention, and is not intended to limit the present invention, and the present invention is except using this Outside mode, other modes can also be used to obtain Rg2, for example, obtained using G2/R2 mode.Assuming that the 4th component value is Bg2, the second blue component is B2, then Bg2=B2/G2.It should be noted that the mode for obtaining the 4th component value Bg2 herein is only used for The description and interpretation present invention, is not intended to limit the present invention, and the present invention can also use others in addition to making in this way Mode obtains Bg2, for example, obtained using G2/B2 mode.And the acquisition pattern of three-component value and the 4th component value should It is corresponding, i.e. if three-component value Rg2 is obtained using R2/G2 mode, then the 4th component value Bg2 is using B2/G2's Mode is obtained, otherwise same.
With reference to second embodiment of the present invention, in the 3rd embodiment of the present invention, the 3rd white balance ginseng is described Several acquisition process.In specific implementation process, the 3rd white balance parameter includes the 5th component value and the 6th component value.Assuming that 5th component value is Rg, and the 6th component value is Bg.The first white balance parameter and the second white balance parameter are so based on, the 3rd is obtained White balance parameter, is specifically included:
1. walk:Based on the first component value and three-component value, the 5th component value is obtained.
In specific implementation process, the 5th component value is specifically to be obtained using formula Rg=(Rg1 × 3+Rg2)/4.Its In, Rg represents the 5th component value, and Rg1 represents the first component value, and Rg2 represents three-component value.Further, the 5th component value table What is levied is preview image red component adjusted value.
2. walk:Based on second component value and the 4th component value, the 6th component value is obtained.
In specific implementation process, the 6th component value is specifically to obtain the 6th using formula Bg=(Bg1 × 3+Bg2)/4 Component value.Wherein, Bg represents the 6th component value, and Bg1 represents second component value, and Bg2 represents the 4th component value.Further, What six component values were characterized is preview image blue component adjusted value.
The present invention is can be seen that when carrying out the calculating of white balance parameter from two formula above, and emphasis considers master The white balance parameter of body region, has aggravated the weight of body region white balance parameter, and combines the white balance ginseng of background area Number, and then obtain the white balance parameter for being used for adjusting whole image.It should be noted that in a practical situation, the present invention, which is not limited, to be made White balance parameter is calculated with other modes.
Further, when adjusting preview image using the 3rd white balance parameter, specifically based on the 5th component value and the Six component values adjust image.Further, following mode can be used to be adjusted:
When adjusting the red color component value of preview image, formula Rn=Ro/Rg can be used to be adjusted.Wherein, Rn is red The revised value of colouring component, is defined by Rn when taking pictures and is taken pictures, the red color component value that the image that user finally obtains shows It is exactly Rn.Ro be red component amendment before value, i.e., camera be aligned scenery when, camera obtain scenery script red component Value.What Rg was represented is the red component adjusted value of preview image.This formula is meant that the red presented originally in preview image On the basis of component value Ro, the red component adjusted value Rg obtained is weighted using body region and is adjusted, after being adjusted Red color component value Rn.
When adjusting the blue color component value of preview image, formula Bn=Bo/Bg can be used to be adjusted.Wherein, Bn is indigo plant The revised value of colouring component, it is defined and is taken pictures by Bn when taking pictures, the blue color component value that the image that user finally obtains shows It is exactly Bn.Bo be blue component amendment before value, i.e., camera be aligned scenery when, camera obtain scenery script blue component Value.What Bg was represented is the blue component adjusted value of preview image.This formula is meant that the blueness presented originally in preview image On the basis of component value Bo, the blue component adjusted value Bg obtained is weighted using body region and is adjusted, after being adjusted Blue color component value Bn.
In the 4th embodiment of the present invention, a kind of electronic equipment is described.
Electronic equipment in the embodiment of the present invention can be such as notebook computer, tablet personal computer etc. computer equipment, It can be the portability electronic equipment such as mobile phone, camera.Further, the above-mentioned electronic equipment enumerated all needs to include IMAQ list Member.The image acquisition units of the present invention include but is not limited to be camera.
Fig. 3 is refer to below, and electronic equipment includes:
Image acquisition units 301, for obtaining the corresponding depth of preview image and preview image in current acquisition range Spend information;
First acquisition unit 302, believes for detecting that first operates, and according to the first operation depth corresponding with preview image Breath obtains the first the first parameter for operating correspondence position;
Second acquisition unit 303, for determining first area and the second area of preview image according to the first parameter, and is obtained Take corresponding first white balance parameter in first area, and corresponding second white balance parameter of second area;
Obtaining unit 304, for based on the first white balance parameter and the second white balance parameter, obtaining the 3rd white balance ginseng Number;
Adjustment unit 305, for adjusting preview image using the 3rd white balance parameter.
In another embodiment of the present invention, when the first operation is focus operation, first acquisition unit 302, specifically For the depth information according to focus operation and the corresponding Depth Information Acquistion focusing area of preview image.
In another embodiment of the present invention, when the first operation is selection operation, first acquisition unit 302, specifically For the depth information according to selection operation and the corresponding selection region of the corresponding Depth Information Acquistion selection operation of preview image.
In another embodiment of the present invention, first area is the depth continuum according to the first parameter extraction.
In another embodiment of the present invention, the first white balance parameter includes:It is green based on the first red component and first The first component value that colouring component is obtained, and the second component value obtained based on the first blue component and the first green component;Second White balance parameter includes:The three-component value obtained based on the second red component and the second green component, and based on the second blueness The 4th component value that component and the second green component are obtained.
In another embodiment of the present invention, the 3rd white balance parameter includes the 5th component value and the 6th component value;Base In the first white balance parameter and the second white balance parameter, the 3rd white balance parameter is obtained, is specifically included:Based on the first component value and Three-component value, obtains the 5th component value;Based on second component value and the 4th component value, the 6th component value is obtained.
In another embodiment of the present invention, based on the first component value and three-component value, the 5th component value, tool are obtained Body is:The 5th component is obtained using formula Rg=(Rg1 × 3+Rg2)/4;Wherein, Rg represents the 5th component value, and Rg1 represents first Component value, Rg2 represents three-component value.
In another embodiment of the present invention, based on second component value and the 4th component value, the 6th component value, tool are obtained Body is:The 6th component value is obtained using formula Bg=(Bg1 × 3+Bg2)/4;Wherein, Bg represents the 6th component value, and Bg1 represents Two component values, Bg2 represents the 4th component value.
In another embodiment of the present invention, preview image is adjusted using the 3rd white balance parameter, specifically included:It is based on 5th component value and the 6th component value regulation image.
Pass through one or more embodiments of the invention, it is possible to achieve following technique effect:
In the inventive solutions, when carrying out image taking, depth information is considered wherein, according to depth information The white balance parameter for shooting main body is determined, and combines the white balance parameter of background area, white balance school is carried out to whole image Just.Depth information and white balance parameter are considered when carrying out white balance correction to image, therefore, it is possible to improve image Shooting quality, it is ensured that electronic equipment being capable of high-quality shooting image.
The present invention is with reference to method according to embodiments of the present invention, equipment(System)And the flow of computer program product Figure and/or block diagram are described.It should be understood that can be by every first-class in computer program instructions implementation process figure and/or block diagram Journey and/or the flow in square frame and flow chart and/or block diagram and/or the combination of square frame.These computer programs can be provided The processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing devices is instructed to produce A raw machine so that produced by the instruction of computer or the computing device of other programmable data processing devices for real The device for the function of being specified in present one flow of flow chart or one square frame of multiple flows and/or block diagram or multiple square frames.
These computer program instructions, which may be alternatively stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that the instruction being stored in the computer-readable memory, which is produced, to be included referring to Make the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one square frame of block diagram or The function of being specified in multiple square frames.
These computer program instructions can be also loaded into computer or other programmable data processing devices so that in meter Series of operation steps is performed on calculation machine or other programmable devices to produce computer implemented processing, thus in computer or The instruction performed 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 individual square frame or multiple square frames.
Specifically, the corresponding computer program instructions of information processing method in the embodiment of the present application can be stored in On CD, hard disk, the storage medium such as USB flash disk, when computer program instructions quilt corresponding with information processing method in storage medium When one electronic equipment reads or is performed, comprise the following steps:A kind of information processing method, methods described is set applied to electronics Standby, the electronic equipment includes image acquisition units, and methods described includes:Image acquisition units are obtained in current acquisition range Preview image and the corresponding depth information of the preview image;Detection first is operated, and is operated and described according to described first First parameter of the first operation correspondence position described in the corresponding Depth Information Acquistion of preview image;Determined according to first parameter The first area of the preview image and second area, and obtain corresponding first white balance parameter in the first area, and Corresponding second white balance parameter in two regions;Based on first white balance parameter and second white balance parameter, the is obtained Three white balance parameters;The preview image is adjusted using the 3rd white balance parameter.
Further, it is described according to the described first operation and the preview graph when the described first operation is focus operation The first parameter of correspondence position is operated as described in corresponding Depth Information Acquistion, is specially:According to the focus operation and described The depth information of the corresponding Depth Information Acquistion focusing area of preview image.
Further, it is described according to the described first operation and the preview graph when the described first operation is selection operation The first parameter of correspondence position is operated as described in corresponding Depth Information Acquistion, is specially:According to the selection operation and described The depth information of the corresponding selection region of selection operation described in the corresponding Depth Information Acquistion of preview image.
Further, first area is the depth continuum according to the first parameter extraction.
Further, first white balance parameter includes:Obtained based on the first red component and the first green component First component value, and the second component value obtained based on the first blue component and first green component;Described second is white flat Weighing apparatus parameter includes:The three-component value obtained based on the second red component and the second green component, and based on the second blue component The 4th component value obtained with second green component.
Further, the 3rd white balance parameter includes the 5th component value and the 6th component value;It is described based on described the One white balance parameter and second white balance parameter, obtain the 3rd white balance parameter, specifically include:Based on first component Value and the three-component value, obtain the 5th component value;Based on the second component value and the 4th component value, obtain 6th component value.
Further, it is described to be based on first component value and the three-component value, obtain the 5th component value, tool Body is:The 5th component is obtained using formula Rg=(Rg1 × 3+Rg2)/4;Wherein, Rg represents the 5th component value, and Rg1 is represented First component value, Rg2 represents three-component value.
Further, it is described to be based on the second component value and the 4th component value, obtain the 6th component value, tool Body is:The 6th component value is obtained using formula Bg=(Bg1 × 3+Bg2)/4;Wherein, Bg represents the 6th component value, Bg1 tables Show second component value, Bg2 represents the 4th component value.
Further, it is described to adjust the preview image using the 3rd white balance parameter, specifically include:Based on described 5th component value and the 6th component value regulation described image.
It should be understood by those skilled in the art that, embodiments of the invention can be provided as method, system or computer program Product.Therefore, the present invention can be using the reality in terms of complete hardware embodiment, complete software embodiment or combination software and hardware Apply the form of example.Moreover, the present invention can be used in one or more computers for wherein including computer usable program code Usable storage medium(Including but not limited to magnetic disk storage, CD-ROM, optical memory etc.)The computer program production of upper implementation The form of product.

Claims (16)

1. a kind of information processing method, methods described is applied to electronic equipment, the electronic equipment includes image acquisition units, institute The method of stating includes:
Image acquisition units obtain the preview image and the corresponding depth information of the preview image in current acquisition range;
Detection first is operated, and the first behaviour according to the described first operation Depth Information Acquistion corresponding with the preview image Make the first parameter of correspondence position;
First area and the second area of the preview image are determined according to first parameter, and obtains the first area pair The first white balance parameter answered, and corresponding second white balance parameter of second area;
Based on first white balance parameter and second white balance parameter, the 3rd white balance parameter is obtained;
The preview image is adjusted using the 3rd white balance parameter.
2. the method as described in claim 1, it is characterised in that when the described first operation is focus operation, according to described the The first parameter of correspondence position is operated described in one operation Depth Information Acquistion corresponding with the preview image, is specially:
According to the focus operation and the depth information of the corresponding Depth Information Acquistion focusing area of the preview image.
3. the method as described in claim 1, it is characterised in that when the described first operation is selection operation, according to described the The first parameter of correspondence position is operated described in one operation Depth Information Acquistion corresponding with the preview image, is specially:
The corresponding selection area of selection operation according to the selection operation and the preview image corresponding Depth Information Acquistion The depth information in domain.
4. the method as described in claim 1, it is characterised in that first area is the depth continuum according to the first parameter extraction Domain.
5. the method as described in claim 1, it is characterised in that
First white balance parameter includes:The first component value obtained based on the first red component and the first green component, and The second component value obtained based on the first blue component and first green component;
Second white balance parameter includes:The three-component value obtained based on the second red component and the second green component, and The 4th component value obtained based on the second blue component and second green component.
6. method as claimed in claim 5, it is characterised in that the 3rd white balance parameter includes the 5th component value and the 6th Component value;It is described to be based on first white balance parameter and second white balance parameter, the 3rd white balance parameter is obtained, specifically Including:
Based on first component value and the three-component value, the 5th component value is obtained;
Based on the second component value and the 4th component value, the 6th component value is obtained.
7. method as claimed in claim 6, it is characterised in that described to be based on first component value and the three-component Value, obtains the 5th component value, is specially:
The 5th component is obtained using formula Rg=(Rg1 × 3+Rg2)/4;
Wherein, Rg represents the 5th component value, and Rg1 represents the first component value, and Rg2 represents three-component value.
8. method as claimed in claim 6, it is characterised in that described to be based on the second component value and the 4th component Value, obtains the 6th component value, is specially:
The 6th component value is obtained using formula Bg=(Bg1 × 3+Bg2)/4;
Wherein, Bg represents the 6th component value, and Bg1 represents second component value, and Bg2 represents the 4th component value.
9. method as claimed in claim 6, it is characterised in that described to adjust the preview using the 3rd white balance parameter Image, is specifically included:
Based on the 5th component value and the 6th component value regulation described image.
10. a kind of electronic equipment, the electronic equipment includes image acquisition units, the electronic equipment includes:
Described image collecting unit, for obtaining preview image and the corresponding depth of the preview image in current acquisition range Spend information;
First acquisition unit, for detecting that first operates, and according to the described first operation depth corresponding with the preview image First parameter of the first operation correspondence position described in acquisition of information;
Second acquisition unit, first area and second area for determining the preview image according to first parameter, and Obtain corresponding first white balance parameter in the first area, and corresponding second white balance parameter of second area;
Obtaining unit, for based on first white balance parameter and second white balance parameter, obtaining the 3rd white balance ginseng Number;
Adjustment unit, for adjusting the preview image using the 3rd white balance parameter.
11. electronic equipment as claimed in claim 10, it is characterised in that described when the described first operation is focus operation First acquisition unit, specifically for according to the focus operation and the corresponding Depth Information Acquistion focusing area of the preview image Depth information.
12. electronic equipment as claimed in claim 10, it is characterised in that described when the described first operation is selection operation First acquisition unit, specifically for being chosen according to the selection operation and the corresponding Depth Information Acquistion of the preview image Operate the depth information of corresponding selection region.
13. electronic equipment as claimed in claim 10, it is characterised in that
First white balance parameter includes:The first component value obtained based on the first red component and the first green component, and The second component value obtained based on the first blue component and first green component;
Second white balance parameter includes:The three-component value obtained based on the second red component and the second green component, and The 4th component value obtained based on the second blue component and second green component.
14. electronic equipment as claimed in claim 13, it is characterised in that the 3rd white balance parameter includes the 5th component value With the 6th component value;It is described to be based on first white balance parameter and second white balance parameter, obtain the 3rd white balance ginseng Number, is specifically included:
Based on first component value and the three-component value, the 5th component value is obtained;
Based on the second component value and the 4th component value, the 6th component value is obtained.
15. electronic equipment as claimed in claim 14, it is characterised in that described to be based on first component value and the described 3rd Component value, obtains the 5th component value, is specially:
The 5th component is obtained using formula Rg=(Rg1 × 3+Rg2)/4;
Wherein, Rg represents the 5th component value, and Rg1 represents the first component value, and Rg2 represents three-component value.
16. electronic equipment as claimed in claim 14, it is characterised in that described to be based on the second component value and the described 4th Component value, obtains the 6th component value, is specially:
The 6th component value is obtained using formula Bg=(Bg1 × 3+Bg2)/4;
Wherein, Bg represents the 6th component value, and Bg1 represents second component value, and Bg2 represents the 4th component value.
CN201410056886.1A 2014-02-19 2014-02-19 A kind of information processing method and a kind of electronic equipment Active CN104853172B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410056886.1A CN104853172B (en) 2014-02-19 2014-02-19 A kind of information processing method and a kind of electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410056886.1A CN104853172B (en) 2014-02-19 2014-02-19 A kind of information processing method and a kind of electronic equipment

Publications (2)

Publication Number Publication Date
CN104853172A CN104853172A (en) 2015-08-19
CN104853172B true CN104853172B (en) 2017-11-07

Family

ID=53852493

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410056886.1A Active CN104853172B (en) 2014-02-19 2014-02-19 A kind of information processing method and a kind of electronic equipment

Country Status (1)

Country Link
CN (1) CN104853172B (en)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106572343A (en) * 2015-10-13 2017-04-19 中兴通讯股份有限公司 Color cast preventing method and terminal
CN107295324A (en) * 2017-06-16 2017-10-24 广东欧珀移动通信有限公司 White balancing treatment method, device and terminal device
CN107277481A (en) * 2017-07-14 2017-10-20 维沃移动通信有限公司 A kind of image processing method and mobile terminal
CN107371007A (en) * 2017-07-25 2017-11-21 广东欧珀移动通信有限公司 White balancing treatment method, device and terminal
CN107644439A (en) * 2017-09-11 2018-01-30 广东欧珀移动通信有限公司 Image processing method and device, electronic installation and computer-readable recording medium
WO2019047985A1 (en) 2017-09-11 2019-03-14 Oppo广东移动通信有限公司 Image processing method and device, electronic device, and computer-readable storage medium
WO2021016845A1 (en) * 2019-07-30 2021-02-04 深圳市大疆创新科技有限公司 White balance calibration method and device, and photographing device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885952A (en) * 2005-06-20 2006-12-27 佳能株式会社 Image sensing apparatus and image processing method
CN102640189A (en) * 2009-12-16 2012-08-15 索尼电子有限公司 Algorithms for estimating precise and relative object distances in a scene

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1885952A (en) * 2005-06-20 2006-12-27 佳能株式会社 Image sensing apparatus and image processing method
CN102640189A (en) * 2009-12-16 2012-08-15 索尼电子有限公司 Algorithms for estimating precise and relative object distances in a scene

Also Published As

Publication number Publication date
CN104853172A (en) 2015-08-19

Similar Documents

Publication Publication Date Title
CN104853172B (en) A kind of information processing method and a kind of electronic equipment
US9591237B2 (en) Automated generation of panning shots
JP6395810B2 (en) Reference image selection for motion ghost filtering
CN104486552B (en) A kind of method and electronic equipment obtaining image
CN104813648B (en) Image processing apparatus, photographic device and image processing method
CN106412458A (en) Image processing method and apparatus
CN104702928B (en) Method of correcting image overlap area, recording medium, and execution apparatus
CN108537155A (en) Image processing method, device, electronic equipment and computer readable storage medium
US9092659B2 (en) Subject determination apparatus that determines whether or not subject is specific subject
CN105574813B (en) A kind of image processing method and device
JP2007043274A (en) Projection image position adjustment method
US20100166331A1 (en) Method for beautifying human face in digital image
EP2525561A1 (en) Data-generating device, data-generating method, data-generating program, and recording medium
CN108419028A (en) Image processing method, device, computer readable storage medium and electronic equipment
US9305400B2 (en) Method and system for augmented reality
CN102170527A (en) Image processing apparatus
JP5538573B2 (en) Composition-based exposure measurement method and apparatus for automatic image correction
US20230033956A1 (en) Estimating depth based on iris size
CN110089103B (en) Demosaicing method and device
CN105893578A (en) Method and device for selecting photos
CN109618092B (en) Splicing photographing method and system and storage medium
JP2011221455A (en) Image processing device, image projecting system, and image processing method
JP4831344B2 (en) Eye position detection method
JP5448799B2 (en) Display control apparatus and display control method
CN107517367A (en) Baeyer area image interpolation method, device, picture processing chip and storage device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant