CN108718388A - A kind of photographic method and mobile terminal - Google Patents
A kind of photographic method and mobile terminal Download PDFInfo
- Publication number
- CN108718388A CN108718388A CN201810997107.6A CN201810997107A CN108718388A CN 108718388 A CN108718388 A CN 108718388A CN 201810997107 A CN201810997107 A CN 201810997107A CN 108718388 A CN108718388 A CN 108718388A
- Authority
- CN
- China
- Prior art keywords
- portrait area
- exposure
- photographed scene
- normal exposure
- target photographed
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/70—Circuitry for compensating brightness variation in the scene
- H04N23/73—Circuitry for compensating brightness variation in the scene by influencing the exposure time
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/60—Control of cameras or camera modules
- H04N23/61—Control of cameras or camera modules based on recognised objects
- H04N23/611—Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
Abstract
An embodiment of the present invention provides a kind of photographic method and mobile terminals.This method includes:Using a variety of exposure parameters, multiple images for target photographed scene are obtained respectively;Multiple described images include normal exposure figure, under-exposure figure and overexposure figure;According to the normal exposure figure, the depth bounds of portrait area and non-portrait area are determined;According to the depth bounds of the portrait area and the non-portrait area, fusion treatment is carried out to multiple described images, obtains the final shooting image for the target photographed scene.The present invention by image portrait area and non-portrait area carry out respectively tone debugging, so that the picture level for finally synthesizing obtained high dynamic domain figure is become apparent from.
Description
Technical field
The present invention relates to field of communication technology more particularly to a kind of photographic methods and mobile terminal.
Background technology
As the mobile terminals such as smart mobile phone are more and more universal, more and more users can be whole using movement in different scenes
End is taken pictures, wherein including just backlight scene.Moreover, people are higher and higher to the reversible-light shooting quality requirement of mobile terminal.
Due to dynamic domain (Dynamic Range, the DR) limitation that receives imaging device itself of the image of mobile terminal shooting, in order to
Extend the dynamic domain of photo, a kind of common practice is using surrounding exposure shooting multiframe difference exposure value (Exposure
Value, EV) consecutive image, a high dynamic domain (High- compared with high dynamic domain is generated by seamless synthetic technology
Dynamic Range, HDR) figure.
Existing HDR synthetic technologys, for the photographed scene in the Larger Dynamic domain of such as larger than 12EV, by surrounding exposure synthesis
The method of HDR figures can encounter larger challenge.In order to be compatible with the scene in this Larger Dynamic domain, it usually needs shooting it is more deficient exposure and
The deficient exposure figure of more frame numbers, so that the dynamic domain bigger of composite diagram, and the problem of dynamic domain tomography will not occur.For above-mentioned feelings
Condition, it will usually which it can be difficult to take into account the requirement in Larger Dynamic domain to encounter the tone that a bigger problem is composite diagram, cause to synthesize
The picture level unobvious of figure.
Invention content
A kind of photographic method of offer of the embodiment of the present invention and mobile terminal, it is dynamic with the height for solving existing photographic method synthesis
The unconspicuous problem of state domain picture face level.
In order to solve the above-mentioned technical problem, the invention is realized in this way:
In a first aspect, an embodiment of the present invention provides a kind of photographic method, it is applied to mobile terminal, the method includes:
Using a variety of exposure parameters, multiple images for target photographed scene are obtained respectively;Multiple described images include
Normal exposure figure, under-exposure figure and overexposure figure;
According to the normal exposure figure, the depth bounds of portrait area and non-portrait area are determined;
According to the depth bounds of the portrait area and the non-portrait area, multiple described images are carried out at fusion
Reason obtains the final shooting image for the target photographed scene.
Second aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, and the mobile terminal includes:
Image collection module obtains multiple images for target photographed scene respectively for using a variety of exposure parameters;
Multiple described images include normal exposure figure, under-exposure figure and overexposure figure;
Portrait area confirmation module, for according to the normal exposure figure, determining the depth of portrait area and non-portrait area
Spend range;
Fusion treatment module, for the depth bounds according to the portrait area and the non-portrait area, to described more
It opens image and carries out fusion treatment, obtain the final shooting image for the target photographed scene.
The third aspect, the embodiment of the present invention additionally provide a kind of mobile terminal, including:It memory, processor and is stored in
On the memory and the computer program that can run on the processor, the computer program are executed by the processor
The step of photographic method described in Shi Shixian.
Fourth aspect, the embodiment of the present invention additionally provide a kind of computer readable storage medium, described computer-readable to deposit
It is stored with computer program on storage media, the step of the photographic method is realized when the computer program is executed by processor
Suddenly.
In embodiments of the present invention, using a variety of exposure parameters, multiple images for target photographed scene are obtained respectively;
Multiple described images include normal exposure figure, under-exposure figure and overexposure figure;According to the normal exposure figure, portrait area is determined
With the depth bounds of non-portrait area;According to the depth bounds of the portrait area and the non-portrait area, to it is described multiple
Image carries out fusion treatment, obtains the final shooting image for the target photographed scene.Target shooting can be acquired
The stratose high dynamic domain figure of scenic picture, and then improve the visual effect of shooting image.
Description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, below by institute in the description to the embodiment of the present invention
Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the present invention
Example, for those of ordinary skill in the art, without having to pay creative labor, can also be according to these attached drawings
Obtain other attached drawings.
Fig. 1 is a kind of one of the flow chart of photographic method in the embodiment of the present invention;
Fig. 2 is the two of the flow chart of a kind of photographic method in the embodiment of the present invention;
Fig. 3 is one of the block diagram of mobile terminal in the embodiment of the present invention;
Fig. 4 is the two of the block diagram of the mobile terminal in the embodiment of the present invention;
Fig. 5 is the hardware architecture diagram of the mobile terminal of one embodiment of the invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are some of the embodiments of the present invention, instead of all the embodiments.Based on this hair
Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Embodiment one
Referring to Fig.1, it shows the flow chart of the photographic method of one embodiment of the invention, is applied to mobile terminal, it is described
Method can specifically include following steps:
Step 110, using a variety of exposure parameters, multiple images for target photographed scene are obtained respectively;It is described multiple
Image includes normal exposure figure, under-exposure figure and overexposure figure.
It has been observed that since the dynamic domain of the image of the mobile terminals such as mobile phone shooting receives the limitation of imaging device itself,
In order to extend the dynamic domain of photo, obtain scheming for the HDR of target photographed scene with shooting.A kind of common practice is using packet
The consecutive image for enclosing exposure shooting multiframe difference exposure value generates a HDR figure by seamless synthetic technology.Therefore in this hair
In bright embodiment, a variety of exposure parameters can be used, obtain multiple images for target photographed scene respectively, it specifically can be with
Camera based on mobile terminal adjusts exposure parameter, to which acquisition is for multiple images of target photographed scene, and in order to
Effect preferable HDR figure is obtained, can shoot to obtain an at least normal exposure figure, an at least under-exposure figure and at least one
Overexposure figure.In practical applications, can be come according to AE (Automatic Exposure, automatic exposure) algorithm of mobile terminal
Calculate target photographed scene normal optimum exposure value EV0 (including:Aperture time and Gain (gain) value etc., and it is based on EV0 needles
Target photographed scene is shot, and then obtains the normal exposure figure of target photographed scene.And then EV0 can be based on and adjust exposure
Light value shoots to obtain under-exposure figure and overexposure figure for target photographed scene respectively.Wherein, under-exposure figure and overexposure figure phase
The exposure offset of EV0 can be pre-set according to demand, this embodiment of the present invention is not limited.
In practical applications, mobile terminal may have there are one camera, then the camera can be utilized to use at this time
A variety of exposure parameters obtain multiple images for target photographed scene respectively.And if mobile terminal includes two and two
The camera of the above number, then can set wherein shooting the higher camera of performance as main camera, it is other then
It, certainly in embodiments of the present invention, can also root for secondary camera, such as using the highest camera of pixel as main camera etc.
According to the self-defined main camera of demand, this embodiment of the present invention is not limited.After setting main camera, in order to ensure
The visual effect of obtained final shooting image can then obtain the normal exposure for target photographed scene based on main camera
Figure, under-exposure figure and overexposure figure, while if the dual camera based on mobile terminal obtains the depth map of target photographed scene,
The secondary camera for being so also based on mobile terminal obtains the normal exposure figure for being directed to target photographed scene.Certainly, in this hair
In bright embodiment, normal exposure figure, under-exposure figure and the overexposure for target photographed scene can also be obtained based on auxiliary camera
Light figure, and be additionally based on main camera and obtain the normal exposure figure, etc. for being directed to target photographed scene.The comparison present invention is implemented
Example is not limited.
In embodiments of the present invention, in order to synthesize to obtain HDR figures, the different exposure feelings to same target photographed scene are needed
Multiple image under condition carries out fusion treatment, and other parameters will not become as far as possible in addition to exposure value in multiple image
Change.But if it is the normal exposure figure acquired using main camera, then being also required at this time through same main camera shooting
Head obtains the under-exposure figure and overexposure figure of same target photographed scene.Certainly, in embodiments of the present invention, if it is desired,
The under-exposure figure and overexposure figure of target photographed scene can be obtained by the secondary camera of mobile terminal, and then to normal exposure
Figure, under-exposure figure and overexposure figure carry out fusion treatment, and then obtain composograph, are not limited this embodiment of the present invention
It is fixed.
Wherein, the exposure deviant between under-exposure figure, overexposure figure and normal exposure figure can according to demand and be worked as
The parameters such as the brightness values of preceding photographed scene are pre-set, and are not limited to this embodiment of the present invention.
Step 120, according to the normal exposure figure, the depth bounds of portrait area and non-portrait area are determined.
It has been observed that the HDR image synthetic method of the prior art, the tone of composite result figure is difficult to take into account wanting for Larger Dynamic domain
It asks.Therefore, in embodiments of the present invention, shooting can be obtained for target photographed scene during fusion treatment
Image in portrait area and non-portrait area separately carry out tone debugging so that portrait area and non-portrait area
Tone reach best.
So, it is necessary first to confirm the depth bounds of portrait area and non-portrait area.In practical application, normal exposure figure
Visual effect it is preferable, therefore can be based on normal exposure figure, determine the depth bounds of portrait area and non-portrait area.Specifically
The depth of portrait area and non-portrait area can be determined by any methods availalbe or equipment according to the normal exposure figure
Range is not limited this embodiment of the present invention.For example, if mobile terminal has dual camera, can utilize double
Camera obtains the normal exposure figure for target photographed scene respectively, and then is clapped for target based on what two cameras obtained
The normal exposure figure for taking the photograph scene obtains the depth map of target photographed scene by binocular stereo vision method.
The process of binocular stereo vision method is as follows:
1, it is demarcated firstly the need of two cameras to mobile terminal, obtains inside and outside parameter, the list of two cameras
Answer matrix.
2, it is corrected according to the normal exposure figure of two cameras of calibration result pair, two after correction image is located at same
One plane and parallel to each other.
3, pixel matching is carried out to two images after correction.
4, the depth that each pixel is calculated according to matching result, to obtain depth map.
After the depth map for acquiring target photographed scene, then can accordingly it know for the more of target photographed scene
Each pixel distance is to the distance for the mobile terminal taken pictures in image, if can determine in normal exposure figure
Portrait area, then can then determine the depth bounds of portrait area and non-portrait area.Wherein it is possible to using any available
Method determines portrait area, is not limited to this embodiment of the present invention.For example, recognition of face can be carried out to any image,
Obtain human face region, and then portrait area will be determined as with the region of the depth difference of human face region within a preset range, and by its
His region is determined as non-portrait area, etc..Preset range therein can be pre-set according to demand, to this present invention
Embodiment is not limited.
It is consistent moreover, because being directed to content included in multiple images of same target photographed scene, then respectively
Portrait area and non-portrait area in a image are also consistent, and the same target distance in each image is mobile eventually
The distance at end is also consistent.It therefore in embodiments of the present invention, can be only for multiple images of same target photographed scene
The depth bounds of portrait area and non-portrait area in one of image are obtained, and then can obtain each scheming in multiple images
The depth bounds of the portrait area of picture and non-portrait area.
The portrait for including in target photographed scene is usually comprising including face pattern, and for same target person
For, the distance of face and body to mobile terminal where camera is usually identical or difference is smaller.Therefore
In embodiments of the present invention, the depth bounds of portrait area and non-portrait area can be determined according to the normal exposure figure.?
In the embodiment of the present invention, the human face region in any methods availalbe acquisition normal exposure figure may be used, this present invention is implemented
Example is not limited.
Optionally, in embodiments of the present invention, if the mobile terminal includes depth camera, the step 210, into
One step may include:
Sub-step 211 obtains the depth map for the target photographed scene by the depth camera.
It has been observed that in order to determine the depth bounds of portrait area and non-portrait area, then it can obtain and be shot for target
The depth map of scene.What each pixel value represented in depth map is distance of the corresponding object of respective pixel point to camera plane,
Therefore the depth map of target photographed scene is obtained, then reference object all in target photographed scene can be known to camera institute
In the distance of mobile terminal.
In embodiments of the present invention, it if mobile terminal has depth camera, can also directly be taken the photograph using depth
As the depth map of head acquisition target photographed scene, this embodiment of the present invention is not limited.Depth camera therein can be with
In including but not limited to TOF (Time Of Flight) camera, structure light (Structured Light) camera at least
It is a kind of.The operation principle of structure light video camera head therein is, after the specific optical information to body surface of project structured light, by imaging
Head acquisition.The information such as position and the depth for calculating object according to the variation of optical signal caused by object, and then restore entire three
Dimension space;TOF cameras are a kind of optical detection and ranging systems, can emit light pulse from emitter to object, receiver can then pass through meter
Calculate light pulse from transmitter to object, then with pixel format determined back to the run time of receiver measured object away from
From.
And if mobile terminal contains depth camera, it can be obtained by depth camera and shoot field for target
The depth map of scape.It can specifically be obtained using corresponding any available method based on the type of depth camera and be clapped for target
Take the photograph the depth map of scene.
Moreover, if the case where mobile terminal while comprising main camera, is also met comprising two cameras, then
Two cameras can also be utilized to obtain the depth map for target photographed scene, or obtained using one of camera
For the depth map of target photographed scene.This embodiment of the present invention is also not limited.
Sub-step 212 carries out Face datection to the normal exposure figure, obtains human face region.
In embodiments of the present invention, in order to obtain human face region, Face datection can be carried out to normal exposure figure, obtains it
In human face region.Any available method for detecting human face specifically may be used or equipment carries out Face datection, to this present invention
Embodiment is not limited.Certainly, in embodiments of the present invention, face inspection can also be carried out to under-exposure figure or overexposure figure
It surveys, and then obtains human face region, this embodiment of the present invention is not limited.However, it will be apparent that carrying out face to normal exposure figure
Detection, the human face region acquired are more accurate.
Sub-step 213 determines portrait area according to the human face region in the depth map and the normal exposure figure
With the depth bounds of non-portrait area.
It is arrived according to the material object in the corresponding target photographed scene of depth namely respective pixel point of each pixel in depth map
The distance of mobile terminal.And the pixel that depth map is included takes the photograph the pixel usually one-to-one correspondence that figure is included with main
's.Therefore it according to the depth of each pixel in depth map, can obtain corresponding each in each image for target photographed scene
The depth of pixel.It is same in the image that shooting obtains and it has been observed that for the who object in target photographed scene
The depth of the face of one who object pixel corresponding with body is usually identical or depth difference is smaller.Therefore, exist
In the embodiment of the present invention, portrait area can be determined according to the human face region in the depth map and the normal exposure figure
With the depth bounds of non-portrait area.It specifically can be according to the face area in the depth map and the normal exposure figure
Domain determines the depth bounds of human face region, and then can determine that the depth bounds of portrait area corresponding with human face region are phase
The depth bounds of human face region are answered, or include the depth bounds of corresponding human face region, and the depth with the human face region
The summation of the depth bounds of degree difference within a preset range.Preset range therein can be pre-set according to demand, to this
The embodiment of the present invention is not limited.
Moreover, in practical applications, multiple human face regions can be obtained through Face datection, then can then respectively obtain each
The depth bounds of the corresponding each portrait area of a human face region, and the depth bounds in addition to portrait area.Or also may be used
To be carried out according to the size of human face region, the larger top n people of human face region is selected from the multiple human face regions detected
Face region, and then according to normal exposure figure, determine the depth bounds for the corresponding portrait area of N number of human face region selected, with
And the depth bounds of the non-portrait area in addition to N number of human face region.Wherein the value of N can be set in advance according to demand
It sets, this embodiment of the present invention is not limited.
Step 130, according to the depth bounds of the portrait area and the non-portrait area, multiple described images are carried out
Fusion treatment obtains the final shooting image for the target photographed scene.
It has been observed that the HDR for being directed to target photographed scene in order to obtain schemes, it can be to the normal exposure for target photographed scene
Light figure, under-exposure figure and overexposure figure carry out fusion treatment, specifically can be according to the portrait area and the non-portrait area
The depth bounds in domain carry out fusion treatment to multiple described images, obtain the final shooting figure for the target photographed scene
Picture.Moreover, if mobile terminal includes multiple cameras, and contain in multiple images and shot with two cameras
Image, there may be nuances to influence fusion treatment effect for the image shot in order to avoid different cameras, then to more
When a image carries out fusion treatment, can fusion only be carried out to the image by same camera for the shooting of target photographed scene
Reason.Whole multiple images can certainly be directed to and carry out fusion treatment, this embodiment of the present invention is not limited.Specifically may be used
To use any available method for amalgamation processing, this embodiment of the present invention is not limited.For example, the nothing of picture may be used
Stitch the picture fusion treatment, etc. that integration technology carries out multiframe figure.
Moreover, in embodiments of the present invention, can according to the depth bounds of the portrait area and the non-portrait area,
Tone debugging is carried out to the portrait area and the non-portrait area respectively during fusion treatment, and then can be obtained
The final shooting image of one dynamic domain and tone more preferably composograph as target photographed scene.Wherein, portrait area with
And the tone debugging strategy of non-portrait area can be pre-set according to demand, not limited this embodiment of the present invention
It is fixed.
In embodiments of the present invention, using a variety of exposure parameters, multiple images for target photographed scene are obtained respectively;
Multiple described images include normal exposure figure, under-exposure figure and overexposure figure;According to the normal exposure figure, portrait area is determined
With the depth bounds of non-portrait area;According to the depth bounds of the portrait area and the non-portrait area, to it is described multiple
Image carries out fusion treatment, obtains the final shooting image for the target photographed scene.It being capable of taking the photograph based on mobile terminal
As head acquires the stratose high dynamic domain figure of picture, and then the visual effect of raising shooting image.
Embodiment two
With reference to Fig. 2, shows the flow chart of the photographic method of another embodiment of the present invention, can specifically include following step
Suddenly:
Step 210, it is based on normal exposure parameter, obtains the normal exposure figure of the target photographed scene.
The case where including multiple cameras for mobile terminal, can then be based on binocular stereo vision method and obtain target shooting
The depth map of scene.So-called binocular stereo vision method refers to shooting object using dual camera, then calculate by Triangle Principle
Object distance.Binocular stereo vision method rely on environment in available light acquire image, and if lighting angle variation, illumination it is strong
The influence of the environmental factors such as degree variation, causes two pictures difference in brightness of shooting bigger, can be carried to binocular stereo vision method
Go out prodigious challenge.In addition, illumination relatively strong (will appear overexposure) and it is dark in the case of to also result in algorithm effect anxious
Play declines.It can be seen from the above, exposure situation also can influence depth figure accuracy.Therefore, in embodiments of the present invention, in order to carry
The accuracy of high depth figure, the main camera that can preferably control mobile terminal obtain the normal exposure of the target photographed scene
Light figure, while the normal exposure pair for obtaining by the secondary camera of the mobile terminal target photographed scene takes the photograph figure.As before
It states, the main camera of mobile terminal can be voluntarily set, then the secondary camera of mobile terminal can also be correspondingly determined, to this
The embodiment of the present invention is not limited.
It has been observed that in embodiments of the present invention, target can be obtained based on the automatic exposure algorithm of mobile terminal camera and clapped
The normal exposure parameter EV0 of scene is taken the photograph, then can then obtain the normal exposure of the target photographed scene under the conditions of EV0
Figure.Certainly, in embodiments of the present invention, other any methods availalbes or equipment can also be utilized to determine target photographed scene just
Normal exposure parameter is not limited this embodiment of the present invention.If specific mobile terminal includes multiple cameras, then
It can be based on normal exposure parameter by one of those main camera and a secondary camera, obtain the target respectively
The normal exposure figure of photographed scene.Can certainly only the target photographed scene be obtained using wherein any one camera
Normal exposure figure, or the normal exposure figure of the target photographed scene is obtained using the camera of more numbers, to this this hair
Bright embodiment is not limited.
Step 220, the light ratio of the normal exposure figure is obtained.
Step 230, according to preset exposure parameter and light ratio correspondence, confirm the exposure of the target photographed scene
Parameter;The exposure parameter includes under-exposure parameter and overexposure optical parameter.
In embodiments of the present invention, in order to determine under-exposure parameter and overexposure optical parameter, normal exposure can first be obtained
The light ratio of figure.Wherein, the light ratio of normal exposure figure may include the brightness maxima and brightness minimum in normal exposure figure
The ratio of the brightness of ratio namely the brightest pixel point of value and the brightness of most dark pixel point.Moreover, in embodiments of the present invention,
Can also pre-set the correspondence of exposure parameter and light ratio, so the light ratio for acquiring normal exposure figure it
Afterwards, and then according to preset exposure parameter and light ratio correspondence, confirm the exposure parameter of the target photographed scene.
Wherein, exposure parameter can be pre-set according to demand with light ratio correspondence, be implemented to this present invention
Example is not limited.For example, it is 2 that overexposure deviant, which can be arranged, under-exposure deviant is also 2, then shooting overexposure at this time
The overexposure optical parameter of light figure is EV0+2, and the under-exposure parameter for shooting under-exposure figure is EV0-2.Work as light ratio in addition it can be arranged
When value is bigger, under-exposure deviant is also bigger namely under-exposure parameter is smaller, and when light ratio is smaller, overexposure deviant
It is all corresponding smaller namely under-exposure parameter is bigger with under-exposure deviant, and overexposure optical parameter is smaller, etc..
Step 240, according to the exposure parameter, under-exposure figure and the overexposure of the target photographed scene are obtained respectively
Figure.
After exposure parameter is determined, then owing for the target photographed scene can be obtained respectively according to exposure parameter
Exposure is main to take the photograph figure and overexposure is main takes the photograph figure.It shooting can specifically be obtained under conditions of light exposure is EV0+ overexposure deviants
Overexposure is main to take the photograph figure, under conditions of light exposure is EV0- under-exposure deviants shooting obtain under-exposure master and take the photograph figure.Moreover, at this
In inventive embodiments, in order to improve the final effect for shooting image of target photographed scene, it can be taken the photograph by the master of mobile terminal
As head obtains the under-exposure figure and overexposure figure of the target photographed scene respectively according to the exposure parameter.It can certainly
Based on other cameras, according to the exposure parameter, the under-exposure figure and overexposure figure of the target photographed scene are obtained respectively,
This embodiment of the present invention is not limited.
Step 250, according to the normal exposure figure, the depth map of the target photographed scene is obtained.
In embodiments of the present invention, it if mobile terminal has multiple cameras, and is obtained based at least two cameras
Take the normal exposure figure of target photographed scene.It so at this time then can be based on the target photographed scene that two cameras obtain just
Normal exposure diagram obtains the depth map of target photographed scene.Such as target can be obtained by binocular stereo vision method above-mentioned and clapped
Take the photograph the depth map of scene.Certainly, in embodiments of the present invention, if being only capable of getting mesh by a camera of mobile terminal
The normal exposure figure for marking photographed scene, then can also be based on the normal exposure figure of a camera, using any methods availalbe
The depth map for obtaining target photographed scene, is not limited this embodiment of the present invention.
Step 260, Face datection is carried out to the normal exposure figure, obtains human face region.
Step 270, according to the human face region in the depth map and the normal exposure figure, determine portrait area and
The depth bounds of non-portrait area.
Step 280, according to the depth bounds of the portrait area and the non-portrait area, multiple described figures are obtained respectively
The statistical information of portrait area and non-portrait area as in;The statistical information includes histogram, overexposure region and the areas Qian Bao
Domain.
In embodiments of the present invention, in order to during fusion treatment respectively to portrait area in multiple images and non-
Portrait area carries out tone debugging, needs the tone debugging strategy for first confirming portrait area and non-portrait area.And in order to true
The tone debugging strategy for recognizing portrait area and non-portrait area then needs to obtain in multiple images portrait area and non-respectively
The statistical information of portrait area.And after the depth bounds that portrait area and the non-portrait area is determined, then it can phase
Determine portrait area and the non-portrait area in multiple images with answering, so obtain respectively in multiple described images portrait area with
And the statistical information of non-portrait area.Statistical information therein can include but is not limited to the histogram of corresponding region, overexposure area
Domain and deficient exposure region.
Wherein, the abscissa of subregional histogram is usually to indicate brightness point in the middle part of the histogram of image, including image
Cloth, the left side is dark, and the right is bright, and ordinate typicallys represent pixel distribution.Histogram can show the distribution situation of tone in image, take off
The quantity that pixel occurs under each gray scale in diagram picture can be preliminary according to the image aspects that these numerical value are drawn
Judge that the exposure status of image, histogram are the best feedbacks of image exposure situation.No matter image is that have abundant bloom performance
Or it is over-exposed, still there are full thin portion shadow or details to differentiate at all unclear, histogram can be very intuitive
Display.Overexposure region may include the region that brightness is excessively high in corresponding portrait area either non-portrait area, and owe to expose region
It may include the region that brightness is too low in corresponding portrait area either non-portrait area.In embodiments of the present invention, it can adopt
Statistical information is obtained with any methods availalbe, this embodiment of the present invention is not limited.
Step 290, it is based on the correspondence that the statistical information and preset statistical information adjust strategy with tone,
Confirmed respectively to the tone of portrait area and non-portrait area debugging strategy in multiple described images.
In embodiments of the present invention, the corresponding pass that statistical information adjusts strategy with tone can be pre-set according to demand
System, then being taken the photograph in figure after the statistical information of portrait area and non-portrait area acquiring each master, then can be based on institute
The correspondence that statistical information and preset statistical information adjust strategy with tone is stated, is confirmed respectively to multiple described images
The tone of middle portrait area and non-portrait area debugging strategy.
Wherein, tone is also known as the keynote or tune of picture, points at the shade in face, the form and aspect of virtual-real comparison and color
Relationship between light and shade etc..By these relationships, appreciator is made to feel the flowing and variation of light.Lines, shape in photographic picture
The elements such as shape, color are embodied by tone, if lines are the boundary of different tones on picture.
In embodiments of the present invention, tone debugging is carried out to portrait area and non-portrait area, may include specifically
Light and shade and profile to portrait area and non-portrait area etc. are debugged, and the debugging in terms of light and shade again can be with
Including but not limited to white (color range), bloom, exposure, shade, black (color range), contrast etc., the debugging in terms of profile is again
It may include clarity etc..
Step 2110, fusion treatment is carried out to multiple described images, and according to multiple described figures during fusion treatment
The tone of the portrait area and non-portrait area debugging strategy as in, respectively to the portrait area and the non-portrait area
Tone debugging is carried out, the final shooting image for the target photographed scene is obtained.
After tone debugging strategy is determined, then figure can be taken the photograph to each master and carries out fusion treatment, and in fusion treatment mistake
According to the tone of portrait area and non-portrait area debugging strategy in multiple described images in journey, respectively to the portrait area
And the non-portrait area carries out tone debugging, obtains the final shooting image for the target photographed scene.
By means of the technical solution of the above embodiment of the present invention, in embodiments of the present invention, using a variety of exposure parameters, divide
Multiple images of target photographed scene Huo Qu be directed to;Multiple described images include normal exposure figure, under-exposure figure and overexposure
Figure;According to the normal exposure figure, the depth bounds of portrait area and non-portrait area are determined;According to the portrait area and institute
The depth bounds for stating non-portrait area carry out fusion treatment to multiple described images, obtain for the target photographed scene
Final shooting image.The stratose high dynamic domain figure of picture, Jin Erti can be acquired based on the camera of mobile terminal
The visual effect of height shooting image.
Moreover, in embodiments of the present invention, being also based on normal exposure parameter, the target photographed scene is being obtained just
Normal exposure diagram;Obtain the light ratio of the normal exposure figure;According to preset exposure parameter and light ratio correspondence, institute is confirmed
State the exposure parameter of target photographed scene;The exposure parameter includes under-exposure parameter and overexposure optical parameter;According to the exposure
Optical parameter obtains the under-exposure figure and overexposure figure of the target photographed scene respectively.So as to obtain better master
Figure is taken the photograph, while improving the efficiency for obtaining depth map.
In addition, in embodiments of the present invention, Face datection can also be carried out to the normal exposure figure, obtain face area
Domain;According to the human face region in the depth map and the normal exposure figure, the depth of portrait area and non-portrait area is determined
Spend range.To improve the accuracy of determining portrait area.
It further, in embodiments of the present invention, can also be according to the depth of the portrait area and the non-portrait area
Range is spent, obtains the statistical information of portrait area and non-portrait area in multiple described images respectively;The statistical information packet
It includes histogram, overexposure region and owes to expose region;Based on the statistical information and preset statistical information strategy is adjusted with tone
Correspondence, confirm respectively in multiple described images the tone of portrait area and non-portrait area debugging strategy;To institute
It states main figure of taking the photograph and carries out fusion treatment, and according to portrait area and non-portrait area in multiple described images during fusion treatment
The tone debugging strategy in domain, carries out tone debugging to the portrait area and the non-portrait area respectively, obtains being directed to institute
State the final shooting image of target photographed scene.So as to further increase the visual effect of final shooting image.
Embodiment three
With reference to Fig. 3, the block diagram of the mobile terminal of one embodiment of the invention is shown.The mobile terminal of the embodiment of the present invention
It can realize the details of the photographic method in embodiment one to embodiment two, and reach identical effect.Mobile terminal shown in Fig. 3
300 include:
Image collection module 310 obtains multiple figures for target photographed scene respectively for using a variety of exposure parameters
Picture;Multiple described images include normal exposure figure, under-exposure figure and overexposure figure.
Portrait area confirmation module 320, for according to the normal exposure figure, determining portrait area and non-portrait area
Depth bounds.
Fusion treatment module 330, for the depth bounds according to the portrait area and the non-portrait area, to described
Multiple images carry out fusion treatment, obtain the final shooting image for the target photographed scene.
With reference to Fig. 4, in a preferred embodiment of the invention, on the basis of Fig. 3, described image acquisition module
310, it may include:
Normal exposure figure acquisition submodule 311 is obtaining the target photographed scene just for being based on normal exposure parameter
Normal exposure diagram;
Light ratio acquisition submodule 312, the light ratio for obtaining the normal exposure figure;
Exposure parameter confirms submodule 313, for according to preset exposure parameter and light ratio correspondence, described in confirmation
The exposure parameter of target photographed scene;The exposure parameter includes under-exposure parameter and overexposure optical parameter;
Other exposure diagram acquisition submodules 314, for according to the exposure parameter, obtaining the target photographed scene respectively
Under-exposure figure and overexposure figure.
With reference to Fig. 4, in a preferred embodiment of the invention, on the basis of Fig. 3, the portrait area confirms mould
Block 320, it may include:
First depth map acquisition submodule 321, for according to the normal exposure figure, obtaining the target photographed scene
Depth map.
Human face region acquisition submodule 322 obtains human face region for carrying out Face datection to the normal exposure figure.
Portrait area acquisition submodule 323, for according to the face area in the depth map and the normal exposure figure
Domain determines the depth bounds of portrait area and non-portrait area.
Optionally, in embodiments of the present invention, if the mobile terminal includes depth camera, the portrait area
Confirmation module 320, can further include:
Second depth map acquisition submodule, for being obtained for the target photographed scene by the depth camera
Depth map;
Human face region acquisition submodule obtains human face region for carrying out Face datection to the normal exposure figure;
Portrait area acquisition submodule is used for according to the human face region in the depth map and the normal exposure figure,
Determine the depth bounds of portrait area and non-portrait area.
With reference to Fig. 4, in a preferred embodiment of the invention, on the basis of Fig. 3, optionally, at the fusion
Module 330 is managed, including:
Statistical information acquisition submodule 331 is used for the depth bounds according to the portrait area and the non-portrait area,
The statistical information of portrait area and non-portrait area in multiple described images is obtained respectively;The statistical information includes histogram
Figure, overexposure region and deficient exposure region.
Tone debugging strategy confirms submodule 332, for based on the statistical information and preset statistical information and shadow
The correspondence of tune section strategy confirms debugged to the tone of portrait area and non-portrait area in multiple described images respectively
Strategy.
Fusion treatment submodule 333, for carrying out fusion treatment, and root during fusion treatment to multiple described images
According to the tone of portrait area and non-portrait area debugging strategy in multiple described images, respectively to the portrait area and institute
It states non-portrait area and carries out tone debugging, obtain the final shooting image for the target photographed scene.
Mobile terminal 300 provided in an embodiment of the present invention can realize that mobile terminal is real in the embodiment of the method for Fig. 1 to Fig. 2
Existing each process, to avoid repeating, which is not described herein again.
Mobile terminal 300 is by above-mentioned module, using a variety of exposure parameters, is obtained respectively for the more of target photographed scene
Open image;Multiple described images include normal exposure figure, under-exposure figure and overexposure figure;According to the normal exposure figure, determine
The depth bounds of portrait area and non-portrait area;It is right according to the depth bounds of the portrait area and the non-portrait area
Multiple described images carry out fusion treatment, obtain the final shooting image for the target photographed scene.It can be based on movement
The camera of terminal acquires the stratose high dynamic domain figure of picture, and then improves the visual effect of shooting image.
Moreover, in embodiments of the present invention, being also based on normal exposure parameter, the target photographed scene is being obtained just
Normal exposure diagram;Obtain the light ratio of the normal exposure figure;According to preset exposure parameter and light ratio correspondence, institute is confirmed
State the exposure parameter of target photographed scene;The exposure parameter includes under-exposure parameter and overexposure optical parameter;According to the exposure
Optical parameter obtains the under-exposure figure and overexposure figure of the target photographed scene respectively.So as to obtain better master
Figure is taken the photograph, while improving the efficiency for obtaining depth map.
In addition, in embodiments of the present invention, Face datection can also be carried out to the normal exposure figure, obtain face area
Domain;According to the human face region in the depth map and the normal exposure figure, the depth of portrait area and non-portrait area is determined
Spend range.To improve the accuracy of determining portrait area.
It further, in embodiments of the present invention, can also be according to the depth of the portrait area and the non-portrait area
Range is spent, obtains the statistical information of portrait area and non-portrait area in multiple described images respectively;The statistical information packet
It includes histogram, overexposure region and owes to expose region;Based on the statistical information and preset statistical information strategy is adjusted with tone
Correspondence, confirm respectively in multiple described images the tone of portrait area and non-portrait area debugging strategy;To institute
It states main figure of taking the photograph and carries out fusion treatment, and according to portrait area and non-portrait area in multiple described images during fusion treatment
The tone debugging strategy in domain, carries out tone debugging to the portrait area and the non-portrait area respectively, obtains being directed to institute
State the final shooting image of target photographed scene.So as to further increase the visual effect of final shooting image.
Example IV
A kind of hardware architecture diagram of Fig. 5 mobile terminals of each embodiment to realize the present invention,
The mobile terminal 400 includes but not limited to:It is radio frequency unit 401, network module 402, audio output unit 403, defeated
Enter unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, processor
The components such as 410 and power supply 411.It will be understood by those skilled in the art that mobile terminal structure shown in Fig. 5 is not constituted
Restriction to mobile terminal, mobile terminal may include than illustrating more or fewer components, either combine certain components or
Different component arrangements.In embodiments of the present invention, mobile terminal include but not limited to mobile phone, tablet computer, laptop,
Palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 410 obtain multiple figures for target photographed scene respectively for using a variety of exposure parameters
Picture;Multiple described images include normal exposure figure, under-exposure figure and overexposure figure;According to the normal exposure figure, portrait is determined
The depth bounds in region and non-portrait area;According to the depth bounds of the portrait area and the non-portrait area, to described
Multiple images carry out fusion treatment, obtain the final shooting image for the target photographed scene.
In embodiments of the present invention, using a variety of exposure parameters, multiple images for target photographed scene are obtained respectively;
Multiple described images include normal exposure figure, under-exposure figure and overexposure figure;According to the normal exposure figure, portrait area is determined
With the depth bounds of non-portrait area;According to the depth bounds of the portrait area and the non-portrait area, to it is described multiple
Image carries out fusion treatment, obtains the final shooting image for the target photographed scene.It being capable of taking the photograph based on mobile terminal
As head acquires the stratose high dynamic domain figure of picture, and then the visual effect of raising shooting image.
Moreover, in embodiments of the present invention, being also based on normal exposure parameter, the target photographed scene is being obtained just
Normal exposure diagram;Obtain the light ratio of the normal exposure figure;According to preset exposure parameter and light ratio correspondence, institute is confirmed
State the exposure parameter of target photographed scene;The exposure parameter includes under-exposure parameter and overexposure optical parameter;According to the exposure
Optical parameter obtains the under-exposure figure and overexposure figure of the target photographed scene respectively.So as to obtain better master
Figure is taken the photograph, while improving the efficiency for obtaining depth map.
In addition, in embodiments of the present invention, Face datection can also be carried out to the normal exposure figure, obtain face area
Domain;According to the human face region in the depth map and the normal exposure figure, the depth of portrait area and non-portrait area is determined
Spend range.To improve the accuracy of determining portrait area.
It further, in embodiments of the present invention, can also be according to the depth of the portrait area and the non-portrait area
Range is spent, obtains the statistical information of portrait area and non-portrait area in multiple described images respectively;The statistical information packet
It includes histogram, overexposure region and owes to expose region;Based on the statistical information and preset statistical information strategy is adjusted with tone
Correspondence, confirm respectively in multiple described images the tone of portrait area and non-portrait area debugging strategy;To institute
It states main figure of taking the photograph and carries out fusion treatment, and according to portrait area and non-portrait area in multiple described images during fusion treatment
The tone debugging strategy in domain, carries out tone debugging to the portrait area and the non-portrait area respectively, obtains being directed to institute
State the final shooting image of target photographed scene.So as to further increase the visual effect of final shooting image.
It should be understood that the embodiment of the present invention in, radio frequency unit 401 can be used for receiving and sending messages or communication process in, signal
Send and receive, specifically, by from base station downlink data receive after, to processor 410 handle;In addition, by uplink
Data are sent to base station.In general, radio frequency unit 401 includes but not limited to antenna, at least one amplifier, transceiver, coupling
Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 401 can also by radio communication system and network and other set
Standby communication.
Mobile terminal has provided wireless broadband internet to the user by network module 402 and has accessed, and such as user is helped to receive
Send e-mails, browse webpage and access streaming video etc..
It is that audio output unit 403 can receive radio frequency unit 401 or network module 402 or in memory 409
The audio data of storage is converted into audio signal and exports to be sound.Moreover, audio output unit 403 can also be provided and be moved
The relevant audio output of specific function that dynamic terminal 400 executes is (for example, call signal receives sound, message sink sound etc.
Deng).Audio output unit 403 includes loud speaker, buzzer and receiver etc..
Input unit 404 is for receiving audio or video signal.Input unit 404 may include graphics processor
(Graphics Processing Unit, GPU) 4041 and microphone 4042, graphics processor 4041 is in video acquisition mode
Or the image data of the static images or video obtained by image capture apparatus (such as camera) in image capture mode carries out
Reason.Treated, and picture frame may be displayed on display unit 406.Through graphics processor 4041, treated that picture frame can be deposited
Storage is sent in memory 409 (or other storage mediums) or via radio frequency unit 401 or network module 402.Mike
Wind 4042 can receive sound, and can be audio data by such acoustic processing.Treated audio data can be
The format output of mobile communication base station can be sent to via radio frequency unit 401 by being converted in the case of telephone calling model.
Mobile terminal 400 further includes at least one sensor 405, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 4061, and proximity sensor can close when mobile terminal 400 is moved in one's ear
Display panel 4061 and/or backlight.As a kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify mobile terminal posture (ratio
Such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap);It passes
Sensor 405 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer, wet
Meter, thermometer, infrared sensor etc. are spent, details are not described herein.
Display unit 406 is for showing information input by user or being supplied to the information of user.Display unit 406 can wrap
Display panel 4061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Forms such as (Organic Light-Emitting Diode, OLED) configure display panel 4061.
User input unit 407 can be used for receiving the number or character information of input, and generate the use with mobile terminal
Family is arranged and the related key signals input of function control.Specifically, user input unit 407 include touch panel 4071 and
Other input equipments 4072.Touch panel 4071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects or attachment such as finger, stylus on touch panel 4071 or in touch panel 4071
Neighbouring operation).Touch panel 4071 may include both touch detecting apparatus and touch controller.Wherein, touch detection
Device detects the touch orientation of user, and detects the signal that touch operation is brought, and transmits a signal to touch controller;Touch control
Device processed receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 410, receiving area
It manages the order that device 410 is sent and is executed.Furthermore, it is possible to more using resistance-type, condenser type, infrared ray and surface acoustic wave etc.
Type realizes touch panel 4071.In addition to touch panel 4071, user input unit 407 can also include other input equipments
4072.Specifically, other input equipments 4072 can include but is not limited to physical keyboard, function key (such as volume control button,
Switch key etc.), trace ball, mouse, operating lever, details are not described herein.
Further, touch panel 4071 can be covered on display panel 4061, when touch panel 4071 is detected at it
On or near touch operation after, send processor 410 to determine the type of touch event, be followed by subsequent processing device 410 according to touch
The type for touching event provides corresponding visual output on display panel 4061.Although in Figure 5, touch panel 4071 and display
Panel 4061 is to realize the function that outputs and inputs of mobile terminal as two independent components, but in some embodiments
In, can be integrated by touch panel 4071 and display panel 4061 and realize the function that outputs and inputs of mobile terminal, it is specific this
Place does not limit.
Interface unit 408 is the interface that external device (ED) is connect with mobile terminal 400.For example, external device (ED) may include having
Line or wireless head-band earphone port, external power supply (or battery charger) port, wired or wireless data port, storage card end
Mouth, port, the port audio input/output (I/O), video i/o port, earphone end for connecting the device with identification module
Mouthful etc..Interface unit 408 can be used for receiving the input (for example, data information, electric power etc.) from external device (ED) and
By one or more elements that the input received is transferred in mobile terminal 400 or can be used in 400 He of mobile terminal
Transmission data between external device (ED).
Memory 409 can be used for storing software program and various data.Memory 409 can include mainly storing program area
And storage data field, wherein storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Audio data, phone directory etc.) etc..In addition, memory 409 may include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 410 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part by running or execute the software program and/or module that are stored in memory 409, and calls and is stored in storage
Data in device 409 execute the various functions and processing data of mobile terminal, to carry out integral monitoring to mobile terminal.Place
Reason device 410 may include one or more processing units;Preferably, processor 410 can integrate application processor and modulatedemodulate is mediated
Manage device, wherein the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 410.
Mobile terminal 400 can also include the power supply 411 (such as battery) powered to all parts, it is preferred that power supply 411
Can be logically contiguous by power-supply management system and processor 410, to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
In addition, mobile terminal 400 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 410, and memory 409 is stored in
On memory 409 and the computer program that can be run on the processor 410, the computer program are executed by processor 410
Each process of the above-mentioned photographic method embodiments of Shi Shixian, and identical technique effect can be reached, to avoid repeating, here no longer
It repeats.
The embodiment of the present invention also provides a kind of computer readable storage medium, and meter is stored on computer readable storage medium
Calculation machine program, the computer program realize each process of above-mentioned photographic method embodiment when being executed by processor, and can reach
Identical technique effect, to avoid repeating, which is not described herein again.Wherein, the computer readable storage medium is deposited Ru read-only
Reservoir (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, abbreviation RAM),
Magnetic disc or CD etc..
It should be noted that herein, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that process, method, article or device including a series of elements include not only those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or device institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
There is also other identical elements in the process of element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be expressed in the form of software products, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, service
Device, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The embodiment of the present invention is described with above attached drawing, but the invention is not limited in above-mentioned specific
Embodiment, the above mentioned embodiment is only schematical, rather than restrictive, those skilled in the art
Under the inspiration of the present invention, without breaking away from the scope protected by the purposes and claims of the present invention, it can also make very much
Form belongs within the protection of the present invention.
Claims (10)
1. a kind of photographic method is applied to mobile terminal, which is characterized in that the method includes:
Using a variety of exposure parameters, multiple images for target photographed scene are obtained respectively;Multiple described images include normal
Exposure diagram, under-exposure figure and overexposure figure;
According to the normal exposure figure, the depth bounds of portrait area and non-portrait area are determined;
According to the depth bounds of the portrait area and the non-portrait area, fusion treatment is carried out to multiple described images, is obtained
To the final shooting image for the target photographed scene.
2. according to the method described in claim 1, it is characterized in that, described use a variety of exposure parameters, acquisition respectively is directed to mesh
The step of marking multiple images of photographed scene, including:
Based on normal exposure parameter, the normal exposure figure of the target photographed scene is obtained;
Obtain the light ratio of the normal exposure figure;
According to preset exposure parameter and light ratio correspondence, the exposure parameter of the target photographed scene is confirmed;The exposure
Optical parameter includes under-exposure parameter and overexposure optical parameter;
According to the exposure parameter, the under-exposure figure and overexposure figure of the target photographed scene are obtained respectively.
3. according to the method described in claim 1, it is characterized in that, described according to the normal exposure figure, portrait area is determined
The step of with the depth bounds of non-portrait area, including:
According to the normal exposure figure, the depth map of the target photographed scene is obtained;
Face datection is carried out to the normal exposure figure, obtains human face region;
According to the human face region in the depth map and the normal exposure figure, portrait area and non-portrait area are determined
Depth bounds.
4. according to the method described in claim 1, it is characterized in that, if the mobile terminal includes depth camera, institute
The step of stating the depth bounds that portrait area and non-portrait area are determined according to the normal exposure figure, including:
The depth map for the target photographed scene is obtained by the depth camera;
Face datection is carried out to the normal exposure figure, obtains human face region;
According to the human face region in the depth map and the normal exposure figure, portrait area and non-portrait area are determined
Depth bounds.
5. according to claim 1-4 any one of them methods, which is characterized in that described according to the portrait area and described non-
The depth bounds of portrait area carry out fusion treatment to multiple described images, obtain for the final of the target photographed scene
The step of shooting image, including:
According to the depth bounds of the portrait area and the non-portrait area, portrait area in multiple described images is obtained respectively
And the statistical information of non-portrait area;The statistical information includes histogram, overexposure region and owes to expose region;
The correspondence for being adjusted strategy with tone based on the statistical information and preset statistical information, is confirmed respectively to institute
State the tone of portrait area and non-portrait area debugging strategy in multiple images;
Fusion treatment carried out to multiple described images, and during fusion treatment according in multiple images portrait area with
And the tone debugging strategy of non-portrait area, tone debugging is carried out to the portrait area and the non-portrait area respectively,
Obtain the final shooting image for the target photographed scene.
6. a kind of mobile terminal, which is characterized in that the mobile terminal includes:
Image collection module obtains multiple images for target photographed scene respectively for using a variety of exposure parameters;It is described
Multiple images include normal exposure figure, under-exposure figure and overexposure figure;
Portrait area confirmation module, for according to the normal exposure figure, determining the depth model of portrait area and non-portrait area
It encloses;
Fusion treatment module, for the depth bounds according to the portrait area and the non-portrait area, to multiple described figures
As carrying out fusion treatment, the final shooting image for the target photographed scene is obtained.
7. mobile terminal according to claim 6, which is characterized in that described image acquisition module, including:
Normal exposure figure acquisition submodule obtains the normal exposure of the target photographed scene for being based on normal exposure parameter
Figure;
Light ratio acquisition submodule, the light ratio for obtaining the normal exposure figure;
Exposure parameter confirms submodule, for according to preset exposure parameter and light ratio correspondence, confirming that the target is clapped
Take the photograph the exposure parameter of scene;The exposure parameter includes under-exposure parameter and overexposure optical parameter;
Other exposure diagram acquisition submodules, for according to the exposure parameter, obtaining the deficient exposure of the target photographed scene respectively
Light figure and overexposure figure.
8. mobile terminal according to claim 6, which is characterized in that the portrait area confirmation module, including:
First depth map acquisition submodule, for according to the normal exposure figure, obtaining the depth map of the target photographed scene;
Human face region acquisition submodule obtains human face region for carrying out Face datection to the normal exposure figure;
Portrait area acquisition submodule, for according to the human face region in the depth map and the normal exposure figure, determining
The depth bounds of portrait area and non-portrait area.
9. a kind of mobile terminal, which is characterized in that including:It memory, processor and is stored on the memory and can be in institute
The computer program run on processor is stated, such as claim 1 to 5 is realized when the computer program is executed by the processor
Any one of described in photographic method the step of.
10. a kind of computer readable storage medium, which is characterized in that be stored with computer on the computer readable storage medium
Program is realized when the computer program is executed by processor in the photographic method as described in any one of claim 1 to 5
Step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810997107.6A CN108718388B (en) | 2018-08-29 | 2018-08-29 | Photographing method and mobile terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810997107.6A CN108718388B (en) | 2018-08-29 | 2018-08-29 | Photographing method and mobile terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108718388A true CN108718388A (en) | 2018-10-30 |
CN108718388B CN108718388B (en) | 2020-02-11 |
Family
ID=63914505
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810997107.6A Active CN108718388B (en) | 2018-08-29 | 2018-08-29 | Photographing method and mobile terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108718388B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218626A (en) * | 2018-11-23 | 2019-01-15 | 维沃移动通信有限公司 | A kind of photographic method and terminal |
CN111182230A (en) * | 2019-12-31 | 2020-05-19 | 维沃移动通信有限公司 | Image processing method and device |
CN112648935A (en) * | 2020-12-14 | 2021-04-13 | 杭州思锐迪科技有限公司 | Image processing method and device and three-dimensional scanning system |
CN117014729A (en) * | 2023-09-27 | 2023-11-07 | 合肥辉羲智能科技有限公司 | Method and system for fusing secondary exposure image with high dynamic range image |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150009356A1 (en) * | 2013-07-02 | 2015-01-08 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, image processing program, and imaging apparatus |
US20160286108A1 (en) * | 2015-03-24 | 2016-09-29 | Semiconductor Components Industries, Llc | Imaging systems having image sensor pixel arrays with phase detection capabilities |
CN107197169A (en) * | 2017-06-22 | 2017-09-22 | 维沃移动通信有限公司 | A kind of high dynamic range images image pickup method and mobile terminal |
CN107241559A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | Portrait photographic method, device and picture pick-up device |
CN107483836A (en) * | 2017-09-27 | 2017-12-15 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN107707827A (en) * | 2017-11-14 | 2018-02-16 | 维沃移动通信有限公司 | A kind of high-dynamics image image pickup method and mobile terminal |
CN107948519A (en) * | 2017-11-30 | 2018-04-20 | 广东欧珀移动通信有限公司 | Image processing method, device and equipment |
CN108322646A (en) * | 2018-01-31 | 2018-07-24 | 广东欧珀移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
-
2018
- 2018-08-29 CN CN201810997107.6A patent/CN108718388B/en active Active
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20150009356A1 (en) * | 2013-07-02 | 2015-01-08 | Canon Kabushiki Kaisha | Image processing apparatus, image processing method, image processing program, and imaging apparatus |
US20160286108A1 (en) * | 2015-03-24 | 2016-09-29 | Semiconductor Components Industries, Llc | Imaging systems having image sensor pixel arrays with phase detection capabilities |
CN107241559A (en) * | 2017-06-16 | 2017-10-10 | 广东欧珀移动通信有限公司 | Portrait photographic method, device and picture pick-up device |
CN107197169A (en) * | 2017-06-22 | 2017-09-22 | 维沃移动通信有限公司 | A kind of high dynamic range images image pickup method and mobile terminal |
CN107483836A (en) * | 2017-09-27 | 2017-12-15 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN107707827A (en) * | 2017-11-14 | 2018-02-16 | 维沃移动通信有限公司 | A kind of high-dynamics image image pickup method and mobile terminal |
CN107948519A (en) * | 2017-11-30 | 2018-04-20 | 广东欧珀移动通信有限公司 | Image processing method, device and equipment |
CN108322646A (en) * | 2018-01-31 | 2018-07-24 | 广东欧珀移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109218626A (en) * | 2018-11-23 | 2019-01-15 | 维沃移动通信有限公司 | A kind of photographic method and terminal |
CN109218626B (en) * | 2018-11-23 | 2020-09-25 | 维沃移动通信有限公司 | Photographing method and terminal |
CN111182230A (en) * | 2019-12-31 | 2020-05-19 | 维沃移动通信有限公司 | Image processing method and device |
CN112648935A (en) * | 2020-12-14 | 2021-04-13 | 杭州思锐迪科技有限公司 | Image processing method and device and three-dimensional scanning system |
CN117014729A (en) * | 2023-09-27 | 2023-11-07 | 合肥辉羲智能科技有限公司 | Method and system for fusing secondary exposure image with high dynamic range image |
CN117014729B (en) * | 2023-09-27 | 2023-12-05 | 合肥辉羲智能科技有限公司 | Method and system for fusing secondary exposure image with high dynamic range image |
Also Published As
Publication number | Publication date |
---|---|
CN108718388B (en) | 2020-02-11 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107770438B (en) | A kind of photographic method and mobile terminal | |
CN107846537B (en) | A kind of CCD camera assembly, image acquiring method and mobile terminal | |
CN107707827A (en) | A kind of high-dynamics image image pickup method and mobile terminal | |
CN107483836B (en) | A kind of image pickup method and mobile terminal | |
CN108718388A (en) | A kind of photographic method and mobile terminal | |
CN110266930A (en) | Light compensation method, mobile terminal and the light adjusting method of image taking | |
CN108495029A (en) | A kind of photographic method and mobile terminal | |
CN110365907A (en) | A kind of photographic method, device and electronic equipment | |
CN108307109A (en) | A kind of high dynamic range images method for previewing and terminal device | |
CN109688322A (en) | A kind of method, device and mobile terminal generating high dynamic range images | |
CN107566749A (en) | Image pickup method and mobile terminal | |
CN109474786A (en) | A kind of preview image generation method and terminal | |
CN107864336B (en) | A kind of image processing method, mobile terminal | |
CN109788174A (en) | A kind of light compensation method and terminal | |
CN107948516A (en) | A kind of image processing method, device and mobile terminal | |
CN109068116A (en) | Image processing method, device, mobile terminal and storage medium based on light filling | |
CN109743506A (en) | A kind of image capturing method and terminal device | |
CN110213484A (en) | A kind of photographic method, terminal device and computer readable storage medium | |
CN108347558A (en) | A kind of method, apparatus and mobile terminal of image optimization | |
CN108513067A (en) | A kind of filming control method and mobile terminal | |
CN109544486A (en) | A kind of image processing method and terminal device | |
CN109905603A (en) | A kind of shooting processing method and mobile terminal | |
CN109474787A (en) | A kind of photographic method, terminal device and storage medium | |
CN108683850A (en) | A kind of shooting reminding method and mobile terminal | |
CN109462745A (en) | A kind of white balancing treatment method and mobile terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |