CN107241559A - Portrait photographic method, device and picture pick-up device - Google Patents
Portrait photographic method, device and picture pick-up device Download PDFInfo
- Publication number
- CN107241559A CN107241559A CN201710461638.9A CN201710461638A CN107241559A CN 107241559 A CN107241559 A CN 107241559A CN 201710461638 A CN201710461638 A CN 201710461638A CN 107241559 A CN107241559 A CN 107241559A
- Authority
- CN
- China
- Prior art keywords
- portrait
- image
- present filming
- exposure
- filming scene
- 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/76—Circuitry for compensating brightness variation in the scene by influencing the image signals
-
- 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/71—Circuitry for evaluating the brightness variation
Abstract
The invention discloses a kind of portrait photographic method, device and picture pick-up device.Wherein method includes:When detecting present filming scene for backlight scene, the depth of view information based on present filming scene extracts the portrait part in present filming scene;The first exposure compensating of portrait part is obtained, and present filming scene is shot to obtain the first image according to the first exposure compensating;Extract the background parts in present filming scene;The second exposure compensating of background parts is obtained, and present filming scene is shot to obtain the second image according to the second exposure compensating;Fusion treatment is carried out to the first image and the second image, with the target image after being merged.The embodiment of the present invention realizes the purpose for the backlight portrait automatic exposure merged based on multiframe, and portrait and background parts in the shooting image finally given can be caused to realize rational exposure, it is achieved thereby that more preferable visual effect, improves Consumer's Experience.
Description
Technical field
The present invention relates to technical field of image processing, more particularly to a kind of portrait photographic method, device and picture pick-up device.
Background technology
With the popularization of digital camera, the various mobile terminals with shoot function, life of the digital image in people is shot
Quotidian thing is had become in work.When shooting, the situation of the necessary backlight of photographic subjects object can be usually run into.
In correlation technique, when being taken pictures under backlighting condition, generally using traditional global automatic light measuring method to working as
Preceding photographed scene is shot.But, using the photo after this traditional global automatic light measuring method exposure, portrait part is past
Toward under-exposure can be run into, hence it is evident that the problem of partially dark, while the brightness of background parts is again often too high, exists and over-exposed incline
To.For example, as shown in figure 1, being imitated in the vision that portrait is owed to expose with the influence of background overexposure, cause photo to be difficult to meet
Really, Consumer's Experience is deteriorated.
The content of the invention
The purpose of the present invention is intended at least solve one of above-mentioned technical problem to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of portrait photographic method.It the method achieve based on multiframe
The purpose of the backlight portrait automatic exposure of fusion, and the portrait and background parts in the shooting image that finally gives can be caused
Rational exposure can be realized, it is achieved thereby that preferably visual effect, improves Consumer's Experience.
Second object of the present invention is to propose a kind of portrait camera arrangement.
Third object of the present invention is to propose a kind of picture pick-up device.
Fourth object of the present invention is to propose a kind of non-transitorycomputer readable storage medium.
To reach above-mentioned purpose, the portrait photographic method that first aspect present invention embodiment is proposed, including:Work as detecting
When preceding photographed scene is backlight scene, the depth of view information based on the present filming scene is extracted in the present filming scene
Portrait part;The first exposure compensating of the portrait part is obtained, and according to first exposure compensating to the current shooting
Scene is shot to obtain the first image;Extract the background parts in the present filming scene;Obtain the background parts
The second exposure compensating, and the present filming scene is shot to obtain the second figure according to second exposure compensating
Picture;Fusion treatment is carried out to described first image and second image, with the target image after being merged.
Portrait photographic method according to embodiments of the present invention, when detecting present filming scene for backlight scene, is based on
The depth of view information of present filming scene extracts the portrait part in present filming scene, and obtains the first exposure benefit of portrait part
Repay, and present filming scene is shot according to the first exposure compensating to obtain the first image, afterwards, extract current shooting
Background parts in scape, and the second exposure compensating of background parts is obtained, and according to the second exposure compensating to present filming scene
Shot to obtain the second image, finally, fusion treatment is carried out to the first image and the second image, with the mesh after being merged
Logo image, realizes the purpose for the backlight portrait automatic exposure merged based on multiframe, also, mend by shooting two different exposures
The image repaid, and two images are subjected to fusion treatment so that the image finally given, exposed relative to global automatic light measuring method
Result after light, portrait and background parts can realize rational exposure, it is achieved thereby that preferably visual effect, improves use
Experience at family.
To reach above-mentioned purpose, the portrait camera arrangement that second aspect of the present invention embodiment is proposed, including:First obtains mould
Block, the depth of view information for obtaining present filming scene;First extraction module, for detecting present filming scene for backlight
During scene, the portrait part in the present filming scene is extracted based on the depth of view information;Taking module, it is described for obtaining
First exposure compensating of portrait part, and the present filming scene is shot according to first exposure compensating to obtain
First image;Second extraction module, for extracting the background parts in the present filming scene;Wherein, the taking module
It is additionally operable to obtain the second exposure compensating of the background parts, and according to second exposure compensating to the present filming scene
Shot to obtain the second image;Fusion Module, for carrying out fusion treatment to described first image and second image,
With the target image after being merged.
Portrait camera arrangement according to embodiments of the present invention, can detect present filming scene by the first extraction module
During for backlight scene, the depth of view information based on present filming scene extracts the portrait part in present filming scene, taking module
The first exposure compensating of portrait part is obtained, and present filming scene is shot to obtain first according to the first exposure compensating
Image, the second extraction module extracts the background parts in present filming scene, and taking module obtains the second exposure of background parts
Compensation, and present filming scene is shot according to the second exposure compensating to obtain the second image, Fusion Module is to the first figure
Picture and the second image carry out fusion treatment, with the target image after being merged, realize the backlight portrait merged based on multiframe
The purpose of automatic exposure, also, fusion treatment is carried out by shooting the image of two different exposure compensatings, and by two images,
So that the image finally given, the result after being exposed relative to global automatic light measuring method, portrait and background parts can be realized
Rational exposure, it is achieved thereby that preferably visual effect, improves Consumer's Experience.
To reach above-mentioned purpose, the picture pick-up device that third aspect present invention embodiment is proposed, including memory, processor and
The computer program that can be run on a memory and on a processor is stored, during the computing device described program, this is realized
Portrait photographic method described in invention first aspect embodiment.
To reach above-mentioned purpose, the non-transitorycomputer readable storage medium that fourth aspect present invention embodiment is proposed,
Computer program is stored thereon with, the program realizes that the portrait described in first aspect present invention embodiment is clapped when being executed by processor
According to method.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description
Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments
Substantially and be readily appreciated that, wherein:
Fig. 1 is when being taken pictures under backlighting condition, using the exemplary plot of the photo after traditional global automatic light measuring method exposure;
Fig. 2 is the flow chart of portrait photographic method according to an embodiment of the invention;
Fig. 3 is the structural representation of portrait camera arrangement according to an embodiment of the invention;
Fig. 4 is the structural representation of the portrait camera arrangement according to a specific embodiment of the invention;
Fig. 5 is the structural representation of picture pick-up device according to an embodiment of the invention.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end
Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached
The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and be not considered as limiting the invention.
Below with reference to the accompanying drawings portrait photographic method, device and the picture pick-up device of the embodiment of the present invention described.
Fig. 2 is the flow chart of portrait photographic method according to an embodiment of the invention.It should be noted that the present invention is real
The portrait photographic method for applying example can be applied to the portrait camera arrangement of the embodiment of the present invention, and the portrait camera arrangement can be configured in
Picture pick-up device.Wherein, the picture pick-up device can be the equipment with shoot function, for example, mobile terminal (such as mobile phone, flat board electricity
Brain etc. has the hardware device of various operating systems), digital camera etc..
As shown in Fig. 2 the portrait photographic method can include:
S210, when detecting present filming scene for backlight scene, the depth of view information based on present filming scene is extracted
Portrait part in present filming scene.Wherein, the portrait part can be regarded as the portrait in present filming scene, the people
As including face part and body part.
Before the portrait part during the depth of view information based on present filming scene extracts present filming scene, can first it obtain
The depth of view information of present filming scene.Wherein, the depth of field refers to obtain clearly in camera lens or other imager forward positions
The subject longitudinal separation scope that the imaging of clear image is determined., can in the scope before and after focus after the completion of focusing
Formed clearly as this distance range one in front and one in back is just called the depth of field.(focusing point forward and backward) has one section in front of camera lens
The space of certain length, when subject is located in this section of space, its imaging on egative film be just located at before and after focus this two
Between individual blur circle.The length in this section of space where subject, is just the depth of field.In other words, the subject in this section of space,
It is presented on the image blur degree in egative film face, all in the range of the restriction for allowing blur circle, and the length in this section of space is exactly the depth of field.
Preferably, in one embodiment of the invention, can by dual camera or depth RGBD (RGB+depth, comprising
Color information and the color depth image apart from depth information) camera, obtain the depth of view information of present filming scene.For example,
By taking dual camera as an example, the process that implements that the depth of view information of present filming scene is obtained by dual camera can be as follows:Can
The first angle θ 1 of subject and left camera is calculated by algorithm, and calculates the of subject and right camera
Two angle, θs 2, so, pass through centre-to-centre spacing between left camera and right camera (wherein the centre-to-centre spacing is a fixed value), the
One angle, θ 1 and second angle θ 2, utilize Triangle Principle, you can calculate distance between subject and camera lens, the distance
The as depth of view information of present filming scene.
And for example, by taking depth RGBD cameras as an example, the depth of field for obtaining present filming scene by depth RGBD cameras is believed
The process that implements of breath can be as follows:Using the depth finding instrument (for example, infrared inductor etc.) in depth RGBD cameras,
Detect the distance between subject and camera, the depth of view information of the distance as present filming scene.
When detecting present filming scene for backlight scene, present filming scene first can be recognized according to human face detection tech
In human face region, and by depth RGBD cameras obtain present filming scene depth of view information, afterwards, can be examined by face
Survey technology, the distance between face and camera lens are calculated according to the depth of view information of the present filming scene, and true according to the distance
Determine the portrait part in present filming scene.More specifically, can be navigated to by human face detection tech where the face in portrait
Region, and by below equation (1), the distance between face and camera lens are calculated according to the depth of view information of present filming scene,
Afterwards, whole portrait part can be found according to the distance.Wherein, the formula (1) can be expressed as follows:
Wherein, Δ L is the depth of view information of present filming scene, and f is lens focus, f-number when F is lens shooting, σ
For disperse circular diameter, L is the distance between face and camera lens.
S220, obtains the first exposure compensating of portrait part, and present filming scene is carried out according to the first exposure compensating
Shoot to obtain the first image.
Specifically, after the portrait part in obtaining present filming scene, the portrait part can be directed to, is individually calculated
The photometry result of the portrait part, and corresponding first exposure compensating in the portrait part is obtained according to the photometry result.More
Specifically, the brightness value of portrait part can be first obtained, afterwards, can be according to the difference between the brightness value of object brightness and portrait part
Different, on the basis of the default time for exposure, the brightness of calculating portrait part reaches the exposure time needed for the object brightness.It
Afterwards, first photo can be shot according to first exposure compensating, first photo is above-mentioned first image.Wherein, the mesh
Mark brightness can be regarded as the brightness value of the target portrait image under backlighting condition, and the object brightness can cause target portrait image
Also can be clear under backlighting condition, there is good visual effect.
For example, the default time for exposure (such as 1/100s) can be set first, the image of portrait part is obtained, afterwards, can be by
The image of the portrait area is divided into M*N fritter, wherein, M and N are positive integer, for example, can be divided into 64*48 fritter, so
Afterwards, incandescent and very dark piece (namely brightness value too big and too small fritter) can be deleted from the M*N fritter, to obtain effectively
Block, afterwards, can calculate luminance weighted average value (wherein, the weight height of the center in active block, surrounding power of the active block
Weight), the luminance weighted average value finally given is the brightness value of the image, the photometry result of as described portrait part.It
Afterwards, can be according to the difference between the brightness value of object brightness and portrait part, on the basis of 1/100s, calculating reaches object brightness
Required exposure time, the required exposure time is the first exposure compensating of portrait part.
S230, extracts the background parts in present filming scene.
Specifically, after first photo is shot according to first exposure compensating, people can will be removed in present filming scene
As the part outside part, the background parts are uniformly identified as.In this step, according to distance difference isolation technics and it can be somebody's turn to do
Portrait part, extracts the background parts from the present filming scene.
S240, obtains the second exposure compensating of background parts, and present filming scene is carried out according to the second exposure compensating
Shoot to obtain the second image.
Specifically, after the background parts in obtaining present filming scene, the survey of the background parts can individually be calculated
Light result, and corresponding second exposure compensating of the background parts is obtained according to the photometry result.More specifically, portrait portion can be obtained
Point brightness value, and according to the difference between the brightness value of object brightness and portrait part, on the basis of the default time for exposure,
The brightness of calculating portrait part reaches the exposure time needed for object brightness.Afterwards, the can be shot according to second exposure compensating
Two photos, second photo is above-mentioned second image.
For example, the default time for exposure (such as 1/100s) can be set first, the image of background parts is obtained, afterwards, can be by
The image of the background parts is divided into M*N fritter, wherein, M and N are positive integer, for example, can be divided into 64*48 fritter, so
Afterwards, incandescent and very dark piece (namely brightness value too big and too small fritter) can be deleted from the M*N fritter, to obtain effectively
Block, afterwards, can calculate luminance weighted average value (wherein, the weight height of the center in active block, surrounding power of the active block
Weight), the luminance weighted average value finally given is the brightness value of the image, the photometry result of as described background parts.It
Afterwards, it can calculate according to the difference between object brightness and the brightness value of background parts, on the basis of 1/100s and reach object brightness
Required exposure time, the required exposure time is the second exposure compensating of background parts.
S250, carries out fusion treatment, with the target image after being merged to the first image and the second image.
Specifically, in an embodiment of the present invention, can be by the back of the body in the portrait part and the second image in the first image
Scape part carries out splicing, while using smoothing filter to eliminate the boundary of seam crossing with the target image after being merged.
For example, can by the portrait partial replacement in the first image into second image corresponding portrait area, to obtain the target
Image.Thus, in the target image after final fusion, portrait and background parts can realize rational exposure, it is to avoid tradition side
The problem of legal person is as owing to expose with background overexposure.
Portrait photographic method according to embodiments of the present invention, when detecting present filming scene for backlight scene, is based on
The depth of view information of present filming scene extracts the portrait part in present filming scene, and obtains the first exposure benefit of portrait part
Repay, and present filming scene is shot according to the first exposure compensating to obtain the first image, afterwards, extract current shooting
Background parts in scape, and the second exposure compensating of background parts is obtained, and according to the second exposure compensating to present filming scene
Shot to obtain the second image, finally, fusion treatment is carried out to the first image and the second image, with the mesh after being merged
Logo image, realizes the purpose for the backlight portrait automatic exposure merged based on multiframe, also, mend by shooting two different exposures
The image repaid, and two images are subjected to fusion treatment so that the image finally given, exposed relative to global automatic light measuring method
Result after light, portrait and background parts can realize rational exposure, it is achieved thereby that preferably visual effect, improves use
Experience at family.
Corresponding with the portrait photographic method that above-mentioned several embodiments are provided, a kind of embodiment of the invention also provides one kind
Portrait camera arrangement, because the portrait that portrait camera arrangement provided in an embodiment of the present invention is provided with above-mentioned several embodiments is taken pictures
Method is corresponding, therefore is also applied for the portrait of the present embodiment offer in the embodiment of foregoing portrait photographic method and takes pictures dress
Put, be not described in detail in the present embodiment.Fig. 3 is the structural representation of portrait camera arrangement according to an embodiment of the invention
Figure.As shown in figure 3, the portrait camera arrangement can include:First acquisition module 310, the first extraction module 320, taking module
330th, the second extraction module 340 and Fusion Module 350.
Specifically, the first acquisition module 310 is used for the depth of view information for obtaining present filming scene.Specifically, in this hair
In bright one embodiment, the first acquisition module 310 can obtain current shooting by dual camera or depth RGBD cameras
The depth of view information of scape.
First extraction module 320 is used to, when detecting present filming scene for backlight scene, extract based on depth of view information
Portrait part in present filming scene.As a kind of example, as shown in figure 4, first extraction module 320 can include:Meter
Calculate unit 321 and determining unit 322.Wherein, computing unit 321 is used for by human face detection tech, according to present filming scene
Depth of view information calculate the distance between face and camera lens.Determining unit 322 is used to be determined in present filming scene according to distance
Portrait part.
Taking module 330 is used for the first exposure compensating for obtaining portrait part, and according to the first exposure compensating to current bat
Scene is taken the photograph to be shot to obtain the first image.
As a kind of example, the process that implements that taking module 330 obtains the first exposure compensating of portrait part can be such as
Under:Obtain the brightness value of portrait part, and according to the difference between the brightness value of object brightness and portrait part, exposed with default
On the basis of between light time, the brightness of calculating portrait part reaches the exposure time needed for the object brightness.
Second extraction module 340 is used to extract the background parts in present filming scene.
Wherein, taking module 330 is additionally operable to obtain the second exposure compensating of background parts, and according to the second exposure compensating pair
Present filming scene is shot to obtain the second image.As a kind of example, taking module 330 obtains the second of background parts
The process that implements of exposure compensating can be as follows:Obtain the brightness value of portrait part, and according to object brightness and portrait part
Difference between brightness value, on the basis of the default time for exposure, calculate portrait part brightness reach object brightness needed for
Exposure time.
Fusion Module 350 is used to carry out fusion treatment to the first image and the second image, with the target figure after being merged
Picture.Specifically, in one embodiment of the invention, Fusion Module 350 can be by the portrait part and second in the first image
Background parts in image carry out splicing, while using after smoothing filter eliminates the boundary of seam crossing to be merged
Target image.
Portrait camera arrangement according to embodiments of the present invention, can detect present filming scene by the first extraction module
During for backlight scene, the depth of view information based on present filming scene extracts the portrait part in present filming scene, taking module
The first exposure compensating of portrait part is obtained, and present filming scene is shot to obtain first according to the first exposure compensating
Image, the second extraction module extracts the background parts in present filming scene, and taking module obtains the second exposure of background parts
Compensation, and present filming scene is shot according to the second exposure compensating to obtain the second image, Fusion Module is to the first figure
Picture and the second image carry out fusion treatment, with the target image after being merged, realize the backlight portrait merged based on multiframe
The purpose of automatic exposure, also, fusion treatment is carried out by shooting the image of two different exposure compensatings, and by two images,
So that the image finally given, the result after being exposed relative to global automatic light measuring method, portrait and background parts can be realized
Rational exposure, it is achieved thereby that preferably visual effect, improves Consumer's Experience.
In order to realize above-described embodiment, the invention also provides a kind of picture pick-up device.
Fig. 5 is the structural representation of picture pick-up device according to an embodiment of the invention.It should be noted that the shooting is set
Standby can be the equipment with shoot function, for example, mobile terminal is (as mobile phone, tablet personal computer etc. have various operating systems
Hardware device), digital camera etc..
As shown in figure 5, the picture pick-up device 50 can include:Memory 51, processor 52 and it is stored on memory 51 simultaneously
The computer program 53 that can be run on the processor 52, when processor 52 performs the computer program 53, realizes that the present invention is above-mentioned
Portrait photographic method described in any one embodiment.
In order to realize above-described embodiment, the invention also provides a kind of non-transitorycomputer readable storage medium, thereon
Be stored with computer program, realizes that the portrait described in any of the above-described embodiment of the invention is taken pictures when the program is executed by processor
Method.
In order to realize above-described embodiment, the invention also provides a kind of computer program product, when computer program production
Instruction in product by computing device when, perform a kind of portrait photographic method, the described method comprises the following steps:
S110 ', when detecting present filming scene for backlight scene, the depth of view information based on present filming scene is extracted
Portrait part in present filming scene.
S120 ', obtains the first exposure compensating of portrait part, and present filming scene is carried out according to the first exposure compensating
Shoot to obtain the first image.
S130 ', extracts the background parts in present filming scene.
S140 ', obtains the second exposure compensating of background parts, and present filming scene is carried out according to the second exposure compensating
Shoot to obtain the second image.
S150 ', carries out fusion treatment, with the target image after being merged to the first image and the second image.
In the description of the invention, it is to be understood that term " first ", " second " are only used for describing purpose, and can not
It is interpreted as indicating or implies relative importance or the implicit quantity for indicating indicated technical characteristic.Thus, define " the
One ", at least one this feature can be expressed or be implicitly included to the feature of " second ".In the description of the invention, " multiple "
It is meant that at least two, such as two, three etc., unless otherwise specifically defined.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show
The description of example " or " some examples " etc. means to combine specific features, structure, material or the spy that the embodiment or example are described
Point is contained at least one embodiment of the present invention or example.In this manual, to the schematic representation of above-mentioned term not
Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office
Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area
Art personnel can be tied the not be the same as Example or the feature of example and non-be the same as Example or example described in this specification
Close and combine.
Any process described otherwise above or method description are construed as in flow chart or herein, represent to include
Module, fragment or the portion of the code of one or more executable instructions for the step of realizing specific logical function or process
Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not be by shown or discussion suitable
Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention
Embodiment person of ordinary skill in the field understood.
Represent in flow charts or logic and/or step described otherwise above herein, for example, being considered use
In the order list for the executable instruction for realizing logic function, it may be embodied in any computer-readable medium, for
Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction
The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set
It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass
Defeated program is for instruction execution system, device or equipment or the dress for combining these instruction execution systems, device or equipment and using
Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wirings
Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage
(ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits
Reservoir (CDROM).In addition, can even is that can be in the paper of printing described program thereon or other are suitable for computer-readable medium
Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media
His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned
In embodiment, the software that multiple steps or method can in memory and by suitable instruction execution system be performed with storage
Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware
Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal
Discrete logic, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene
Programmable gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method is carried
Rapid to can be by program to instruct the hardware of correlation to complete, described program can be stored in a kind of computer-readable storage medium
In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing module, can also
That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould
Block can both be realized in the form of hardware, it would however also be possible to employ the form of software function module is realized.The integrated module is such as
Fruit is realized using in the form of software function module and as independent production marketing or in use, can also be stored in a computer
In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although having been shown and retouching above
Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention
System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention
Type.
Claims (13)
1. a kind of portrait photographic method, it is characterised in that comprise the following steps:
When detecting present filming scene for backlight scene, the depth of view information based on the present filming scene extracts described work as
Portrait part in preceding photographed scene;
The first exposure compensating of the portrait part is obtained, and the present filming scene is entered according to first exposure compensating
Row shoots to obtain the first image;
Extract the background parts in the present filming scene;
The second exposure compensating of the background parts is obtained, and the present filming scene is entered according to second exposure compensating
Row shoots to obtain the second image;
Fusion treatment is carried out to described first image and second image, with the target image after being merged.
2. portrait photographic method as claimed in claim 1, it is characterised in that obtain the current shooting in the following manner
The depth of view information of scape:
By dual camera or depth RGBD cameras, the depth of view information of the present filming scene is obtained.
3. portrait photographic method as claimed in claim 1, it is characterised in that the depth of view information based on the present filming scene
The portrait part in the present filming scene is extracted, including:
By human face detection tech, the distance between face and camera lens are calculated according to the depth of view information of the present filming scene;
The portrait part in the present filming scene is determined according to the distance.
4. portrait photographic method as claimed in claim 1, it is characterised in that
First exposure compensating for obtaining the portrait part, including:
Obtain the brightness value of the portrait part;
According to the difference between the brightness value of object brightness and the portrait part, on the basis of the default time for exposure, calculate
The brightness of the portrait part reaches the exposure time needed for the object brightness;
Second exposure compensating for obtaining the background parts, including:
Obtain the brightness value of the background parts;
According to the difference between the brightness value of object brightness and the background parts, on the basis of the default time for exposure, calculate
The brightness of the background parts reaches the exposure time needed for the object brightness.
5. portrait photographic method as claimed in claim 1, it is characterised in that described to described first image and second figure
As carrying out fusion treatment, with the target image after being merged, including:
Background parts in portrait part in described first image and second image are subjected to splicing, while using
Smoothing filter eliminates the boundary of seam crossing to obtain the target image after the fusion.
6. a kind of portrait camera arrangement, it is characterised in that including:
First acquisition module, the depth of view information for obtaining present filming scene;
First extraction module, for when detecting present filming scene for backlight scene, institute to be extracted based on the depth of view information
State the portrait part in present filming scene;
Taking module, the first exposure compensating for obtaining the portrait part, and according to first exposure compensating to described
Present filming scene is shot to obtain the first image;
Second extraction module, for extracting the background parts in the present filming scene;
Wherein, the taking module is additionally operable to obtain the second exposure compensating of the background parts, and according to the described second exposure
Compensation is shot to obtain the second image to the present filming scene;
Fusion Module, for carrying out fusion treatment to described first image and second image, with the target after being merged
Image.
7. portrait camera arrangement as claimed in claim 6, it is characterised in that first acquisition module by dual camera or
Depth RGBD cameras, obtain the depth of view information of the present filming scene.
8. portrait camera arrangement as claimed in claim 6, it is characterised in that first extraction module includes:
Computing unit, for by human face detection tech, face and mirror to be calculated according to the depth of view information of the present filming scene
The distance between head;
Determining unit, for determining the portrait part in the present filming scene according to the distance.
9. portrait camera arrangement as claimed in claim 6, it is characterised in that the taking module specifically for:
Obtain the brightness value of the portrait part;
According to the difference between the brightness value of object brightness and the portrait part, on the basis of the default time for exposure, calculate
The brightness of the portrait part reaches the exposure time needed for the object brightness.
10. portrait camera arrangement as claimed in claim 6, it is characterised in that the taking module specifically for:
Obtain the brightness value of the background parts;
According to the difference between the brightness value of object brightness and the background parts, on the basis of the default time for exposure, calculate
The brightness of the background parts reaches the exposure time needed for the object brightness.
11. portrait camera arrangement as claimed in claim 6, it is characterised in that the Fusion Module specifically for:
Background parts in portrait part in described first image and second image are subjected to splicing, while using
Smoothing filter eliminates the boundary of seam crossing to obtain the target image after the fusion.
12. a kind of picture pick-up device, it is characterised in that including memory, processor and store on a memory and can be in processor
The computer program of upper operation, it is characterised in that during the computing device described program, is realized as appointed in claim 1 to 5
Portrait photographic method described in one.
13. a kind of non-transitorycomputer readable storage medium, is stored thereon with computer program, it is characterised in that the program
The portrait photographic method as described in any in claim 1 to 5 is realized when being executed by processor.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710461638.9A CN107241559B (en) | 2017-06-16 | 2017-06-16 | Portrait photographing method and device and camera equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710461638.9A CN107241559B (en) | 2017-06-16 | 2017-06-16 | Portrait photographing method and device and camera equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107241559A true CN107241559A (en) | 2017-10-10 |
CN107241559B CN107241559B (en) | 2020-01-10 |
Family
ID=59987571
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710461638.9A Active CN107241559B (en) | 2017-06-16 | 2017-06-16 | Portrait photographing method and device and camera equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107241559B (en) |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107592473A (en) * | 2017-10-31 | 2018-01-16 | 广东欧珀移动通信有限公司 | Exposure parameter method of adjustment, device, electronic equipment and readable storage medium storing program for executing |
CN108156369A (en) * | 2017-12-06 | 2018-06-12 | 广东欧珀移动通信有限公司 | Image processing method and device |
CN108289170A (en) * | 2018-01-12 | 2018-07-17 | 深圳奥比中光科技有限公司 | The camera arrangement and method of metering region can be detected |
CN108322646A (en) * | 2018-01-31 | 2018-07-24 | 广东欧珀移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
CN108616689A (en) * | 2018-04-12 | 2018-10-02 | Oppo广东移动通信有限公司 | High-dynamic-range image acquisition method, device based on portrait and equipment |
CN108616687A (en) * | 2018-03-23 | 2018-10-02 | 维沃移动通信有限公司 | A kind of photographic method, device and mobile terminal |
CN108650466A (en) * | 2018-05-24 | 2018-10-12 | 努比亚技术有限公司 | The method and electronic equipment of photo tolerance are promoted when a kind of strong light or reversible-light shooting portrait |
CN108683859A (en) * | 2018-08-16 | 2018-10-19 | Oppo广东移动通信有限公司 | It takes pictures optimization method, device, storage medium and terminal device |
CN108718388A (en) * | 2018-08-29 | 2018-10-30 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
CN109525783A (en) * | 2018-12-25 | 2019-03-26 | 努比亚技术有限公司 | A kind of exposure image pickup method, terminal and computer readable storage medium |
CN109618102A (en) * | 2019-01-28 | 2019-04-12 | Oppo广东移动通信有限公司 | Focusing process method, apparatus, electronic equipment and storage medium |
CN109670386A (en) * | 2017-10-16 | 2019-04-23 | 深圳泰首智能技术有限公司 | Face identification method and terminal |
CN109729275A (en) * | 2019-03-14 | 2019-05-07 | Oppo广东移动通信有限公司 | Imaging method, device, terminal and storage medium |
CN109819173A (en) * | 2017-11-22 | 2019-05-28 | 浙江舜宇智能光学技术有限公司 | Depth integration method and TOF camera based on TOF imaging system |
CN111182199A (en) * | 2018-11-13 | 2020-05-19 | 深圳富泰宏精密工业有限公司 | Electronic device and photographing method |
CN111314603A (en) * | 2018-03-27 | 2020-06-19 | 华为技术有限公司 | Photographing method, photographing device and mobile terminal |
CN111464748A (en) * | 2020-05-07 | 2020-07-28 | Oppo广东移动通信有限公司 | Image processing method, mobile terminal and computer readable storage medium |
CN111489323A (en) * | 2020-04-09 | 2020-08-04 | 中国科学技术大学先进技术研究院 | Double-light-field image fusion method, device and equipment and readable storage medium |
CN111586308A (en) * | 2020-04-10 | 2020-08-25 | 北京迈格威科技有限公司 | Image processing method and device and electronic equipment |
CN112085686A (en) * | 2020-08-21 | 2020-12-15 | 北京迈格威科技有限公司 | Image processing method, image processing device, electronic equipment and computer readable storage medium |
CN115334234A (en) * | 2022-07-01 | 2022-11-11 | 北京讯通安添通讯科技有限公司 | Method and device for supplementing image information by taking pictures in dark environment |
WO2023137956A1 (en) * | 2022-01-18 | 2023-07-27 | 上海闻泰信息技术有限公司 | Image processing method and apparatus, electronic device, and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2639926Y (en) * | 2003-07-31 | 2004-09-08 | 上海海鸥数码影像股份有限公司 | Digital camera autoamtic exposure circuit |
CN1829290A (en) * | 2005-03-04 | 2006-09-06 | Lg电子株式会社 | Mobile communications terminal for compensating automatic exposure of camera and method thereof |
CN101049012A (en) * | 2004-08-31 | 2007-10-03 | 卡西欧计算机株式会社 | Image pickup apparatus, exposure control method, and computer program installed in the image pickup apparatus |
CN106331510A (en) * | 2016-10-31 | 2017-01-11 | 维沃移动通信有限公司 | Backlight photographing method and mobile terminal |
-
2017
- 2017-06-16 CN CN201710461638.9A patent/CN107241559B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN2639926Y (en) * | 2003-07-31 | 2004-09-08 | 上海海鸥数码影像股份有限公司 | Digital camera autoamtic exposure circuit |
CN101049012A (en) * | 2004-08-31 | 2007-10-03 | 卡西欧计算机株式会社 | Image pickup apparatus, exposure control method, and computer program installed in the image pickup apparatus |
CN1829290A (en) * | 2005-03-04 | 2006-09-06 | Lg电子株式会社 | Mobile communications terminal for compensating automatic exposure of camera and method thereof |
CN106331510A (en) * | 2016-10-31 | 2017-01-11 | 维沃移动通信有限公司 | Backlight photographing method and mobile terminal |
Cited By (35)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109670386A (en) * | 2017-10-16 | 2019-04-23 | 深圳泰首智能技术有限公司 | Face identification method and terminal |
CN107592473A (en) * | 2017-10-31 | 2018-01-16 | 广东欧珀移动通信有限公司 | Exposure parameter method of adjustment, device, electronic equipment and readable storage medium storing program for executing |
CN109819173B (en) * | 2017-11-22 | 2021-12-03 | 浙江舜宇智能光学技术有限公司 | Depth fusion method based on TOF imaging system and TOF camera |
CN109819173A (en) * | 2017-11-22 | 2019-05-28 | 浙江舜宇智能光学技术有限公司 | Depth integration method and TOF camera based on TOF imaging system |
CN108156369A (en) * | 2017-12-06 | 2018-06-12 | 广东欧珀移动通信有限公司 | Image processing method and device |
CN108156369B (en) * | 2017-12-06 | 2020-03-13 | Oppo广东移动通信有限公司 | Image processing method and device |
CN108289170B (en) * | 2018-01-12 | 2020-02-14 | 深圳奥比中光科技有限公司 | Photographing apparatus, method and computer readable medium capable of detecting measurement area |
CN108289170A (en) * | 2018-01-12 | 2018-07-17 | 深圳奥比中光科技有限公司 | The camera arrangement and method of metering region can be detected |
CN108322646A (en) * | 2018-01-31 | 2018-07-24 | 广东欧珀移动通信有限公司 | Image processing method, device, storage medium and electronic equipment |
CN108322646B (en) * | 2018-01-31 | 2020-04-10 | Oppo广东移动通信有限公司 | Image processing method, image processing device, storage medium and electronic equipment |
CN108616687A (en) * | 2018-03-23 | 2018-10-02 | 维沃移动通信有限公司 | A kind of photographic method, device and mobile terminal |
US11838650B2 (en) | 2018-03-27 | 2023-12-05 | Huawei Technologies Co., Ltd. | Photographing using night shot mode processing and user interface |
US11330194B2 (en) | 2018-03-27 | 2022-05-10 | Huawei Technologies Co., Ltd. | Photographing using night shot mode processing and user interface |
CN111314603A (en) * | 2018-03-27 | 2020-06-19 | 华为技术有限公司 | Photographing method, photographing device and mobile terminal |
CN108616689A (en) * | 2018-04-12 | 2018-10-02 | Oppo广东移动通信有限公司 | High-dynamic-range image acquisition method, device based on portrait and equipment |
CN108650466A (en) * | 2018-05-24 | 2018-10-12 | 努比亚技术有限公司 | The method and electronic equipment of photo tolerance are promoted when a kind of strong light or reversible-light shooting portrait |
CN108683859A (en) * | 2018-08-16 | 2018-10-19 | Oppo广东移动通信有限公司 | It takes pictures optimization method, device, storage medium and terminal device |
CN108718388A (en) * | 2018-08-29 | 2018-10-30 | 维沃移动通信有限公司 | A kind of photographic method and mobile terminal |
CN108718388B (en) * | 2018-08-29 | 2020-02-11 | 维沃移动通信有限公司 | Photographing method and mobile terminal |
CN111182199B (en) * | 2018-11-13 | 2022-02-11 | 深圳富泰宏精密工业有限公司 | Electronic device and photographing method |
CN111182199A (en) * | 2018-11-13 | 2020-05-19 | 深圳富泰宏精密工业有限公司 | Electronic device and photographing method |
CN109525783A (en) * | 2018-12-25 | 2019-03-26 | 努比亚技术有限公司 | A kind of exposure image pickup method, terminal and computer readable storage medium |
CN109618102A (en) * | 2019-01-28 | 2019-04-12 | Oppo广东移动通信有限公司 | Focusing process method, apparatus, electronic equipment and storage medium |
CN109618102B (en) * | 2019-01-28 | 2021-08-31 | Oppo广东移动通信有限公司 | Focusing processing method and device, electronic equipment and storage medium |
CN109729275A (en) * | 2019-03-14 | 2019-05-07 | Oppo广东移动通信有限公司 | Imaging method, device, terminal and storage medium |
CN111489323A (en) * | 2020-04-09 | 2020-08-04 | 中国科学技术大学先进技术研究院 | Double-light-field image fusion method, device and equipment and readable storage medium |
CN111489323B (en) * | 2020-04-09 | 2023-09-19 | 中国科学技术大学先进技术研究院 | Double-light-field image fusion method, device, equipment and readable storage medium |
CN111586308A (en) * | 2020-04-10 | 2020-08-25 | 北京迈格威科技有限公司 | Image processing method and device and electronic equipment |
CN111586308B (en) * | 2020-04-10 | 2022-03-29 | 北京迈格威科技有限公司 | Image processing method and device and electronic equipment |
CN111464748B (en) * | 2020-05-07 | 2021-04-23 | Oppo广东移动通信有限公司 | Image processing method, mobile terminal and computer readable storage medium |
CN111464748A (en) * | 2020-05-07 | 2020-07-28 | Oppo广东移动通信有限公司 | Image processing method, mobile terminal and computer readable storage medium |
CN112085686A (en) * | 2020-08-21 | 2020-12-15 | 北京迈格威科技有限公司 | Image processing method, image processing device, electronic equipment and computer readable storage medium |
WO2023137956A1 (en) * | 2022-01-18 | 2023-07-27 | 上海闻泰信息技术有限公司 | Image processing method and apparatus, electronic device, and storage medium |
CN115334234A (en) * | 2022-07-01 | 2022-11-11 | 北京讯通安添通讯科技有限公司 | Method and device for supplementing image information by taking pictures in dark environment |
CN115334234B (en) * | 2022-07-01 | 2024-03-29 | 北京讯通安添通讯科技有限公司 | Method and device for taking photo supplementary image information in dim light environment |
Also Published As
Publication number | Publication date |
---|---|
CN107241559B (en) | 2020-01-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107241559A (en) | Portrait photographic method, device and picture pick-up device | |
CN107241557A (en) | Image exposure method, device, picture pick-up device and storage medium | |
CN107977940B (en) | Background blurring processing method, device and equipment | |
CN107277356B (en) | Method and device for processing human face area of backlight scene | |
CN107948519A (en) | Image processing method, device and equipment | |
CN107835372A (en) | Imaging method, device, mobile terminal and storage medium based on dual camera | |
Zhuo et al. | Enhancing low light images using near infrared flash images | |
CN107172353B (en) | Automatic explosion method, device and computer equipment | |
CN107635098B (en) | High dynamic range images noise remove method, device and equipment | |
CN107358593B (en) | Image forming method and apparatus | |
CN107809582A (en) | Image processing method, electronic installation and computer-readable recording medium | |
US20030052991A1 (en) | System and method for simulating fill flash in photography | |
CN107948500A (en) | Image processing method and device | |
CN107959778A (en) | Imaging method and device based on dual camera | |
KR20200031689A (en) | Image processing methods, devices and devices | |
CN108024056B (en) | Imaging method and device based on dual camera | |
CN107948520A (en) | Image processing method and device | |
JPH05500744A (en) | A camera with a function to highlight the subject and a function to detect movement. | |
CN108024058B (en) | Image blurs processing method, device, mobile terminal and storage medium | |
CN107846556A (en) | imaging method, device, mobile terminal and storage medium | |
CN108024054A (en) | Image processing method, device and equipment | |
CN107948538A (en) | Imaging method, device, mobile terminal and storage medium | |
CN107481186A (en) | Image processing method, device, computer-readable recording medium and computer equipment | |
JP6096298B2 (en) | Backlight correction method, apparatus and terminal | |
CN108024057A (en) | Background blurring processing method, device and equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant after: OPPO Guangdong Mobile Communications Co., Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Applicant before: Guangdong Opel Mobile Communications Co., Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |