CN105812672B - It takes pictures processing method and processing device - Google Patents
It takes pictures processing method and processing device Download PDFInfo
- Publication number
- CN105812672B CN105812672B CN201610373833.1A CN201610373833A CN105812672B CN 105812672 B CN105812672 B CN 105812672B CN 201610373833 A CN201610373833 A CN 201610373833A CN 105812672 B CN105812672 B CN 105812672B
- Authority
- CN
- China
- Prior art keywords
- face
- image
- acquisition
- preset
- collected
- 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.)
- Expired - Fee Related
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/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/60—Control of cameras or camera modules
- H04N23/67—Focus control based on electronic image sensor signals
Abstract
The present invention provides one kind and takes pictures processing method and processing device, which includes: to acquire the image of photograph subject when detecting photographing instruction, obtain original image;Obtain the number of face in the acquisition time and the original image of the original image;When the number of the face is greater than preset quantity, judge whether the acquisition time is less than preset threshold;If the acquisition time is less than the preset threshold, the image of each face is acquired, obtains replacement facial image;The image for corresponding to face in the original image is replaced using the replacement facial image, obtains photo.Processing method and processing device of taking pictures of the invention takes pictures due to carrying out focusing to each face again, reuses the face replaced in original image to defocused facial image, therefore improve clarity.
Description
Technical field
The present invention relates to field of terminal technology, take pictures processing method and processing device more particularly to one kind.
Background technique
With the continuous development of shooting technology, more and more users' using terminal is taken pictures, but also user is to end
Hold the requirement of camera function higher and higher.
Existing terminal when taking pictures, taken pictures using the camera of fixed aperture value, the fixed aperture value ratio by default
For example 2.0.Such case takes pictures for fewer in number, will not impact to clarity.But often exist in reality more
The case where people takes pictures when being taken pictures due to more people, after the position at people station has before having, is easy so that the comparison of outrunner's face bat is clear
Chu, and the comparison that subsequent face is clapped is fuzzy.Since the depth of field of the camera lens of fixed aperture value is smaller, it is easy to cause station later
Face is not in field depth namely somebody's face has been more than field depth so that photo is relatively fuzzy.
It can be seen that when number is more in photograph subject, not due to the position distance between face location and camera
Together, it is easy so that the photo photographed is relatively fuzzyyer.
Summary of the invention
The embodiment of the present invention provides one kind processing method and processing device of taking pictures and to solve existing processing method of taking pictures works as bat
Fuzzy technical problem is easy to appear when more according to number.
To solve the above problems, technical solution provided by the invention is as follows:
The embodiment of the present invention provides one kind and takes pictures processing method comprising:
When detecting photographing instruction, the image of photograph subject is acquired, original image is obtained;
Obtain the number of face in the acquisition time and the original image of the original image;
When the number of the face is greater than preset quantity, judge whether the acquisition time is less than preset threshold;
If the acquisition time is less than the preset threshold, the image of each face is acquired, obtains replacement face
Image;
The image for corresponding to face in the original image is replaced using the replacement facial image, obtains photo.
The embodiment of the present invention also provides one kind and takes pictures processing unit comprising:
First acquisition module obtains original image for when detecting photographing instruction, acquiring the image of photograph subject;
Module is obtained, the number of face in the acquisition time and the original image for obtaining the original image;
Judgment module, for judging whether the acquisition time is less than when the number of the face is greater than preset quantity
Preset threshold;
Second acquisition module, for when the acquisition time is less than the preset threshold, then acquiring each face
Image, obtain replacement facial image;
Replacement module is obtained for being replaced the image for corresponding to face in the original image using the replacement facial image
To photo.
Compared to the prior art, the processing method and processing device of taking pictures of the present embodiment, when detecting photographing instruction, acquisition is clapped
According to the image of object, original image is obtained;Obtain the number of face in the acquisition time and the original image of the original image;
When the number of the face is greater than preset quantity, judge whether the acquisition time is less than preset threshold;If the acquisition time is less than
The preset threshold then acquires the image of each face, obtains replacement facial image;The original is replaced using the replacement facial image
The image that face is corresponded in beginning image, obtains photo.It takes pictures, is reused to defocused due to carrying out focusing to each face again
Facial image replaces the face in original image, therefore improves clarity.
Detailed description of the invention
Fig. 1 is the flow chart for the processing method of taking pictures that the embodiment of the present invention one provides;
Fig. 2 is the flow chart of processing method provided by Embodiment 2 of the present invention of taking pictures;
Fig. 3 is the flow chart for the processing method of taking pictures that the embodiment of the present invention three provides;
Fig. 4 is the structural schematic diagram for the processing unit of taking pictures that the embodiment of the present invention four provides;
Fig. 5 is the preferred structure schematic diagram for the processing unit of taking pictures that the embodiment of the present invention four provides.
Specific embodiment
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 description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those skilled in the art's every other implementation obtained without creative efforts
Example, shall fall within the protection scope of the present invention.
Fig. 1 is please referred to, Fig. 1 is the flow chart for the processing method of taking pictures that the embodiment of the present invention one provides.
The processing method of taking pictures of this preferred embodiment, comprising:
Step S101 acquires the image of photograph subject, obtains original image when detecting photographing instruction.
For example, terminal takes pictures to photograph subject when user presses camera button, original image is obtained, the original graph
As for being used as base map;The terminal can be the equipment such as mobile phone, tablet computer.
Step S102 obtains the number of face in the acquisition time and the original image of the original image.
For example, terminal obtains the acquisition time of the aperture time namely original image currently taken pictures, and use recognition of face
Technology identifies the face in original image, and obtains the number of face in the original image;And judge the face number
Whether preset quantity is greater than, to determine whether to take pictures for more people.If the face number is less than or equal to preset quantity, sentence
Fixed is not that more people take pictures, therefore terminal can not be dealt with, if the face number is greater than preset quantity, judgement is that more people clap
According to subsequent to execute step S103.
Step S103 judges whether the acquisition time is less than preset threshold when the number of the face is greater than preset quantity.
For example, whether the aperture time that terminal judgement is currently taken pictures is less than default threshold when terminal is determined as that more people take pictures
Value, relatively good with the ambient light that determination is current, which can set based on experience value.If terminal determines current clap
According to aperture time be more than or equal to preset threshold, it is determined that current ambient light is poor, then terminal can not be made to locate
Reason;If terminal determines that the aperture time currently taken pictures is less than preset threshold, it is determined that current ambient light is relatively good, then holds
Row step S104.
Step S104 acquires the image of each face when the acquisition time is less than preset threshold, obtains replacement face
Image.
For example, when terminal determines that the aperture time currently taken pictures is less than preset threshold namely current environment light is relatively good
When, terminal acquires the image of each face again, obtains replacement facial image.
Step S105 is replaced the image for corresponding to face in the original image using the replacement facial image, obtains photo.
For example, corresponding to the image of face in the image replacement base map of each face of terminal acquisition of taking pictures for the second time, obtain
To final photo.
The processing method of taking pictures of this preferred embodiment, due to when detecting photographing instruction, acquiring the image of photograph subject,
Obtain original image;Obtain the number of face in the acquisition time and the original image of the original image;As of the face
When number is greater than preset quantity, judge whether the acquisition time is less than preset threshold;If the acquisition time is less than the preset threshold,
The image for acquiring each face obtains replacement facial image;It is replaced using the replacement facial image corresponding in the original image
The image of face, obtains photo;It takes pictures, is reused to defocused facial image replacement due to carrying out focusing to each face again
Face in original image, therefore improve clarity.
Referring to figure 2., Fig. 2 is the flow chart of processing method provided by Embodiment 2 of the present invention of taking pictures.
The processing method of taking pictures of this preferred embodiment, comprising:
Step S201 acquires the image of photograph subject, obtains original image when detecting photographing instruction.
For example, terminal takes pictures to photograph subject when user presses camera button, original image is obtained, the original graph
As for being used as base map;The terminal can be the equipment such as mobile phone, tablet computer.
Step S202 obtains the number of face in the acquisition time and the original image of the original image.
For example, terminal obtains the acquisition time of the aperture time namely original image currently taken pictures, and use recognition of face
Technology identifies the face in original image, and obtains the number of face in the original image;And judge the face number
Whether preset quantity is greater than, to determine whether to take pictures for more people.If the face number is less than or equal to preset quantity, sentence
Fixed is not that more people take pictures, therefore terminal can not be dealt with, if the face number is greater than preset quantity, judgement is that more people clap
According to subsequent to execute step S203.
Step S203 judges whether the acquisition time is less than preset threshold when the number of the face is greater than preset quantity.
For example, whether the aperture time that terminal judgement is currently taken pictures is less than default threshold when terminal is determined as that more people take pictures
Value, relatively good with the ambient light that determination is current, which can set based on experience value.If terminal determines current clap
According to aperture time be more than or equal to preset threshold, it is determined that current ambient light is poor, then terminal can not be made to locate
Reason;If terminal determines that the aperture time currently taken pictures is less than preset threshold, it is determined that current ambient light is relatively good, then holds
Row step S204.
Step S204 obtains the area value of each face if the acquisition time is less than the preset threshold;
For example, when terminal determines that the aperture time currently taken pictures is less than preset threshold namely current environment light is relatively good
When, terminal obtains the area of each human face region in original image.When relatively good due to ambient light, it just can ensure that acquisition is clear
Image can be unintelligible to avoid the facial image obtained again therefore by judging the quality of ambient light, reduce terminal
Power consumption.
Step S205 determines whether the face is face to be collected according to the area value of each face;
For example, terminal screens each face according to the area of human face region, to determine the need for the face
Image resurveyed, which is such as to need the face taken pictures again.
In order to improve the treatment effeciency of terminal, terminal can compare the area of each human face region and preset area value
Compared with the area value for just resurveying image namely each face of the basis to the biggish face of human face region area ratio determines
The step of whether face is face to be collected include:
(1) judge whether the area value of the face is greater than preset area value;
(2) if the area value of the face is greater than the preset area value, it is determined that the face is face to be collected.
For example, terminal judges whether the area of each human face region is bigger, which can be based on experience value
Setting, the terminal face bigger to area is focused again to obtain its image, due to the lesser face of area ratio, even if
Again focusing is taken pictures, and will not improve clarity, therefore terminal no longer focuses to the lesser face of area again and takes pictures, and
Focusing is re-started to the biggish face of area to take pictures.
Step S206, however, it is determined that the face is the face to be collected, acquires the image of the face to be collected, obtains replacement people
Face image.
For example, terminal carries out focusing to the face again and takes pictures, when the area of human face region is bigger to obtain the people
The image of face obtains replacement facial image.
Certainly, in order to improve treatment effeciency and the flexibility of terminal, terminal may determine that when taking pictures total of face to be collected
Between, according to the image of face quantity namely the acquisition face to be collected finally to be taken pictures of total time screening, replaced
The step of facial image includes
A, the total duration for acquiring the image of all faces to be collected is obtained, the first total duration is obtained;
For example, terminal obtains the number of the face to be collected, and calculated always according to face number to be collected and acquisition time
Duration, namely obtain the first total duration.
B, the quantity that the face to be collected is adjusted according to first total duration, obtains target collecting quantity;
For example, terminal judges whether first total duration meets preset condition, if first total duration meets default item
Part, then terminal to the quantity of face to be collected without adjustment, if first total duration is unsatisfactory for preset condition, terminal pair
The quantity of face to be collected is adjusted.
Certainly, in order to further increase the treatment effeciency of terminal, the quantity namely target that can turn face to be collected down are adopted
Collect quantity of the quantity less than face to be collected namely this adjusts the quantity of the face to be collected according to first total duration, obtains
The step of target collecting quantity includes:
B1, judge whether first total duration is greater than preset time value;
If b2, first total duration are less than or equal to the preset time value, it is to be collected which is equal to this
The quantity of face;
If b3, first total duration are greater than the preset time value, the quantity of the face to be collected is reduced, and trigger acquisition
First total duration, until first total duration is less than or equal to the preset time value, by the quantity of the face to be collected after reduction
As target collecting quantity.
For example, terminal judges whether the total duration of taking pictures of all faces to be collected is less than preset time value, when this is default
Between value can set based on experience value, for example the preset time value is the longest photo opporunity that can bear of user.If this
One total duration is no more than the preset time value, then terminal is not adjusted the quantity of face to be collected, i.e., finally acquires face
Quantity be equal to face to be collected quantity.If first total duration is more than the preset time value, terminal reduces to be collected
The quantity of face, and return to step A namely terminal and reacquire the face of acquisition face quantity after reducing and take pictures always
Duration, judges whether the total duration of taking pictures of the face of the quantity of the face to be collected after reducing is less than preset threshold, if it is,
Using the acquisition face quantity after reduction as the face quantity namely target collecting quantity finally acquired.If it is not, then continuing
Reduce the face quantity, the total duration of taking pictures of the face of the quantity of the face to be collected after reducing, will less than preset threshold
Face quantity at this time is as the face quantity finally acquired.
C, the image for acquiring each of the face of target collecting quantity face obtains replacement image.
For example, terminal carries out Image Acquisition to each of the quantity of face to be collected adjusted face, replaced
Image.
In order to improve collecting efficiency, terminal can according to the face of target collecting quantity put in order to each face into
Row take pictures, the image of each of face of acquisition target collecting quantity face, obtain replacement image the step of include:
L, according to preset order, the image of each of the face of target collecting quantity face is acquired.
For example, terminal is taken pictures according to face of the sequence from front to back or from back to front to target collecting quantity,
For the face in same row according to sequence from left to right or from right to left, to each of the face of target collecting quantity
Face take pictures.
In order to improve collecting efficiency, terminal can according to the face of target collecting quantity size to each face into
Row take pictures, the image of each face in the face of the acquisition second number to be collected, obtain replacement image the step of include:
N, according to the face area value size of the target collecting quantity, to each of the face of the target collecting quantity
The image of face is acquired.
For example, the sequence that terminal is descending or ascending according to the area value of the face of target collecting quantity, according to
Secondary taking pictures to each of the face of target collecting quantity face.
Step S207 is replaced the image for corresponding to face in the original image using the replacement facial image, obtains photo.
For example, corresponding to the image of face in the image replacement base map of each face of terminal acquisition of taking pictures for the second time, obtain
To final photo.
The processing method of taking pictures of this preferred embodiment, on the basis of first embodiment, due to the area pair according to face
Face in all photograph subjects is screened, and the face for being only greater than preset value to face area is taken pictures again, therefore is mentioned
High treatment effeciency.
Referring to figure 3., Fig. 3 is the flow chart for the processing method of taking pictures that the embodiment of the present invention three provides.
The present embodiment is described in detail taking the terminal as an example, the processing method of taking pictures of this preferred embodiment, comprising:
Step S301, when detecting photographing instruction, mobile phone acquires the image of photograph subject, obtains original image.
For example, mobile phone takes pictures to photograph subject when user presses camera button, original image is obtained, the original graph
As for being used as base map.
Step S302, mobile phone obtain the number of face in the acquisition time and the original image of the original image.
For example, mobile phone obtains the generation time of the aperture time t0 namely original image that currently take pictures, and known using face
Other technology identifies the face in original image, and obtains the number of face in the original image;And judge the face
Whether number is greater than 2, to determine whether to take pictures for more people, if the face number is less than or equal to 2, determines it is not that more people clap
According to, therefore mobile phone can not be dealt with, if the face number is greater than 2, judgement is that more people take pictures, and then executes step
S303。
Step S303, when the number of the face is greater than preset quantity, it is default that mobile phone judges whether the acquisition time is less than
Threshold value.
For example, when mobile phone is determined as that more people take pictures, the aperture time that mobile phone judgement is currently taken pictures whether less than 2 minutes,
Relatively good with the ambient light that determination is current, which can set based on experience value.If mobile phone judgement is currently taken pictures
Aperture time be more than or equal to 2 minutes, it is determined that current ambient light is poor, then mobile phone can not be dealt with;Such as
Fruit mobile phone determines the aperture time currently taken pictures less than 2 minutes, it is determined that current ambient light is relatively good, thens follow the steps
S304。
Step S304, if the acquisition time is less than the preset threshold, mobile phone obtains the area value of each face.
For example, when mobile phone determines the aperture time currently taken pictures less than 2 minutes namely when relatively good current environment light,
Then mobile phone obtains the area of each human face region in original image.When relatively good due to ambient light, it just can ensure that acquisition is clear
Image can be unintelligible to avoid the facial image obtained again therefore by judging the quality of ambient light, reduce mobile phone
Power consumption.
Step S305, mobile phone screen all faces according to the area value of the face, and obtain the face after screening
Take pictures total time.
For example, mobile phone judges whether the area value of the face is greater than preset threshold;It is preset when the area value of the face is greater than
When threshold value, mobile phone takes pictures again to the face, and obtains when the taking pictures total of face that all area values are greater than preset threshold
Between t1.And when area value is less than or equal to the face of preset threshold, mobile phone does not take pictures again to the face.
Step S306, mobile phone judge whether the total time of taking pictures is less than preset time value, obtain judging result.
For example, mobile phone judges whether t1 is less than preset time value T, for example mobile phone obtains all area values and is greater than preset threshold
The total quantity of face be the sum of face after n, namely screening be n, t1 is specifically as follows shown in formula 1:
T1=n*t0 formula 1
Step S307, mobile phone generate face acquisition queue according to the judgment result;
For example, n face is acquired queue by mobile phone when mobile phone determines that t1 is less than T;If mobile phone t1 is greater than
Or being equal to T, then mobile phone reduces the quantity n of the face after screening, and the total time of taking pictures of the face after reducing is small
In preset time value, queue is acquired using n face after reduction as face.
Specifically, n is subtracted 1, then calculates the total time t2 that n-1 face is taken pictures, judge whether t2 is less than T, if t2 is less than
T, then face acquisition queue is n-1 face, otherwise subtracts 1 again for n-1, obtains the total time t3 that takes pictures of n-2 face again, and
Judge whether t3 is less than T, if so, face acquisition queue is otherwise n-2 face continues to subtract 1 for n-2, after reducing
The total time of taking pictures of face is less than preset time value T.Such as n-x, the total time of always taking pictures of face is less than preset time value
T, then face acquisition queue is n-x face.Wherein n-x is greater than 0, and x is greater than 0 and is less than n, and n is natural number.
Step S308, mobile phone carry out Image Acquisition to each face of face acquisition queue, obtain replacement image;
For example, having 6 faces in face acquisition queue, then mobile phone focus to each of 6 faces face and take pictures,
Obtain the replacement image of each face.Such as there are 4 faces in front in this 6 faces, behind there are two face.Specifically, hand
Machine can first take pictures according to 4 faces of the sequence from left to right to front, according still further to sequence from left to right to below
2 faces take pictures.Or mobile phone carries out Image Acquisition to this 6 faces respectively according to the size of this 6 faces,
For example the sequence successively decreased according to area value takes pictures to this 6 faces.
Step S309, mobile phone are replaced the image for corresponding to face in the original image using the replacement facial image, are shone
Piece.
For example, corresponding to the image of face in the image replacement base map of 6 faces of mobile phone acquisition of taking pictures for the second time, obtain
Final photo.
The processing method of taking pictures of this preferred embodiment, due to mobile phone according to the area of face to the people in all photograph subjects
Face is screened, later further according to the screening of duration again to face progress of taking pictures of all photos after screening, to second
Face after screening is taken pictures, and replacement facial image is obtained, and replaced using the replacement facial image it is right in the original image
The image of face is answered, therefore improves flexibility.
Referring to figure 4., Fig. 4 is the structural schematic diagram for the processing unit of taking pictures that the embodiment of the present invention four provides.This is preferred real
Apply example processing unit 40 of taking pictures include: the first acquisition module 41, obtain module 42, judgment module 43, the second acquisition module 44,
Replacement module 45;
First acquisition module 41 obtains original graph for when detecting photographing instruction, acquiring the image of photograph subject
Picture;
Module 42 is obtained, the number of face in the acquisition time and the original image for obtaining the original image;
Judgment module 43, for it is pre- to judge whether the acquisition time is less than when the number of the face is greater than preset quantity
If threshold value;
Second acquisition module 44, for when the acquisition time is less than the preset threshold, then acquiring the figure of each face
Picture obtains replacement facial image;
Replacement module 45 is obtained for being replaced the image for corresponding to face in the original image using the replacement facial image
Photo.
As shown in figure 5, second acquisition module 44 includes: acquisition submodule 441, determines submodule 442 and acquisition
Module 443;
Acquisition submodule 441, for obtaining the area value of each face;
Submodule 442 is determined, for determining whether the face is face to be collected according to the area value of each face;
Submodule 443 is acquired, for acquiring the figure of the face to be collected when determining the face is the face to be collected
Picture obtains replacement facial image.
The determination submodule 442, is specifically used for:
Judge whether the area value of the face is greater than preset area value;
If the area value of the face is greater than the preset area value, it is determined that the face is face to be collected.
The acquisition submodule 443, specifically includes: acquiring unit 51, adjustment unit 52 and acquisition unit 53;
Acquiring unit 51 obtains the first total duration for obtaining the total duration for acquiring the image of all faces to be collected;
Adjustment unit 52 obtains target acquisition number for adjusting the quantity of the face to be collected according to first total duration
Amount;
Acquisition unit 53, the image of each of face for acquiring target collecting quantity face, obtains replacement figure
Picture.
The adjustment unit 52, is specifically used for:
Judge whether first total duration is greater than preset time value;
If first total duration is less than or equal to the preset time value, which is equal to the face to be collected
Quantity;
If first total duration is greater than the preset time value, the quantity of the face to be collected is reduced, and trigger the acquisition
First total duration, until first total duration is less than or equal to the preset time value, by the quantity of the face to be collected after reduction
As target collecting quantity.
The acquisition unit 53, is specifically used for:
According to preset order, Image Acquisition is carried out to each of the face of target collecting quantity face.
The acquisition unit 53, is also used to:
According to the area value size of the face of the target collecting quantity, to each of the face of the target collecting quantity
Face carries out Image Acquisition.
When it is implemented, the above modules can be used as independent entity to realize, any combination can also be carried out, is made
It is realized for same or several entities, the specific implementation of the above modules can be found in the embodiment of the method for front, herein not
It repeats again.
The processing unit of taking pictures of this preferred embodiment, due to when detecting photographing instruction, acquiring the image of photograph subject,
Obtain original image;Obtain the number of face in the acquisition time and the original image of the original image;As of the face
When number is greater than preset quantity, judge whether the acquisition time is less than preset threshold;If the acquisition time is less than the preset threshold,
The image for acquiring each face obtains replacement facial image;It is replaced using the replacement facial image corresponding in the original image
The image of face, obtains photo;It takes pictures, is reused to defocused facial image replacement due to carrying out focusing to each face again
Face in original image, therefore improve clarity.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can
It is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storage
Medium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random
Access Memory), disk or CD etc..
It is provided for the embodiments of the invention one kind treating method and apparatus of taking pictures above to be described in detail, herein
Apply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to help
Understand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, having
There will be changes in body embodiment and application range, in conclusion the content of the present specification should not be construed as to the present invention
Limitation.
Claims (5)
- The processing method 1. one kind is taken pictures characterized by comprisingWhen detecting photographing instruction, the image of photograph subject is acquired, original image is obtained;Obtain the number of face in the acquisition time and the original image of the original image;When the number of the face is greater than preset quantity, judge whether the acquisition time is less than preset threshold;If the acquisition time is more than or equal to the preset threshold, terminal is not dealt with;If the acquisition time is less than the preset threshold, the area value of each face is obtained;The area value of each face is compared with preset area value, determines the people for being greater than the preset area value Face is face to be collected;The total duration for acquiring the image of the face to be collected is obtained, the first total duration is obtained;If first total duration is less than or equal to preset time value, acquired the quantity of the face to be collected as target Quantity;If first total duration is greater than the preset time value, the quantity of the face to be collected is reduced, so that acquisition subtracts The total duration of the image of the face to be collected after small number is less than or equal to the preset time value, and will be after reduction quantity The face to be collected quantity as target collecting quantity;The image for acquiring each of the face of target collecting quantity face obtains replacement facial image;The image for corresponding to face in the original image is replaced using the replacement facial image, obtains photo.
- 2. processing method according to claim 1 of taking pictures, which is characterized in that the people of the acquisition target collecting quantity The image of each of face face, obtain replacement facial image the step of include:According to preset order, Image Acquisition is carried out to each of the face of target collecting quantity face.
- 3. processing method according to claim 1 of taking pictures, which is characterized in that the people of the acquisition target collecting quantity The image of each face in face, obtain replacement facial image the step of include:According to the area value size of the face of the target collecting quantity, to each of the face of the target collecting quantity Face carries out Image Acquisition.
- The processing unit 4. one kind is taken pictures characterized by comprisingFirst acquisition module obtains original image for when detecting photographing instruction, acquiring the image of photograph subject;Module is obtained, the number of face in the acquisition time and the original image for obtaining the original image;Judgment module, for it is default to judge whether the acquisition time is less than when the number of the face is greater than preset quantity Threshold value;Second acquisition module, if being more than or equal to the preset threshold for the acquisition time, terminal is not dealt with;When When the acquisition time is less than the preset threshold, then the area value of each face is obtained;By the face of each face Product value is compared with preset area value, determines that the face for being greater than the preset area value is face to be collected;Acquisition is adopted The total duration for collecting the image of the face to be collected, obtains the first total duration;If first total duration is less than or equal to default Time value, then using the quantity of the face to be collected as target collecting quantity;If first total duration is greater than described default Time value then reduces the quantity of the face to be collected, so that acquisition reduces the image of the face to be collected after quantity Total duration is less than or equal to the preset time value, and the quantity of the face to be collected after reduction quantity is adopted as target Collect quantity;The image for acquiring each of the face of target collecting quantity face obtains replacement facial image;Replacement module is shone for being replaced the image for corresponding to face in the original image using the replacement facial image Piece.
- 5. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the program is held by processor Claims 1 to 3 described in any item methods are realized when row.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610373833.1A CN105812672B (en) | 2016-05-27 | 2016-05-27 | It takes pictures processing method and processing device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610373833.1A CN105812672B (en) | 2016-05-27 | 2016-05-27 | It takes pictures processing method and processing device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105812672A CN105812672A (en) | 2016-07-27 |
CN105812672B true CN105812672B (en) | 2019-06-14 |
Family
ID=56427845
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201610373833.1A Expired - Fee Related CN105812672B (en) | 2016-05-27 | 2016-05-27 | It takes pictures processing method and processing device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105812672B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108174081B (en) * | 2017-11-29 | 2019-07-26 | 维沃移动通信有限公司 | A kind of image pickup method and mobile terminal |
CN108520493A (en) * | 2018-03-30 | 2018-09-11 | 广东欧珀移动通信有限公司 | Processing method, device, storage medium and the electronic equipment that image is replaced |
CN109101947B (en) * | 2018-08-27 | 2021-03-26 | Oppo广东移动通信有限公司 | Portrait identification method, portrait identification device and terminal equipment |
CN111432154B (en) * | 2020-03-30 | 2022-01-25 | 维沃移动通信有限公司 | Video playing method, video processing method and electronic equipment |
CN112818784B (en) * | 2021-01-22 | 2024-02-06 | 浙江大华技术股份有限公司 | Control method and device of access control equipment and storage medium |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007336411A (en) * | 2006-06-19 | 2007-12-27 | Casio Comput Co Ltd | Imaging apparatus, auto-bracketing photographing method, and program |
CN103491299A (en) * | 2013-09-17 | 2014-01-01 | 宇龙计算机通信科技(深圳)有限公司 | Photographic processing method and device |
CN105303161A (en) * | 2015-09-21 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and device for shooting multiple people |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101665130B1 (en) * | 2009-07-15 | 2016-10-25 | 삼성전자주식회사 | Apparatus and method for generating image including a plurality of persons |
-
2016
- 2016-05-27 CN CN201610373833.1A patent/CN105812672B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007336411A (en) * | 2006-06-19 | 2007-12-27 | Casio Comput Co Ltd | Imaging apparatus, auto-bracketing photographing method, and program |
CN103491299A (en) * | 2013-09-17 | 2014-01-01 | 宇龙计算机通信科技(深圳)有限公司 | Photographic processing method and device |
CN105303161A (en) * | 2015-09-21 | 2016-02-03 | 广东欧珀移动通信有限公司 | Method and device for shooting multiple people |
Also Published As
Publication number | Publication date |
---|---|
CN105812672A (en) | 2016-07-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105812672B (en) | It takes pictures processing method and processing device | |
CN104767933B (en) | A method of having the portable digital equipment and screening photo of camera function | |
JP7152598B2 (en) | Image processing method and apparatus, electronic equipment and storage medium | |
US9888176B2 (en) | Video apparatus and photography method thereof | |
CN103888683A (en) | Mobile terminal and shooting method thereof | |
CN108632536B (en) | Camera control method and device, terminal and storage medium | |
CN103297696A (en) | Photographing method, photographing device and photographing terminal | |
CN106851112A (en) | The photographic method and system of a kind of mobile terminal | |
CN103905725B (en) | Image processing equipment and image processing method | |
CN108174082B (en) | Image shooting method and mobile terminal | |
CN112822412B (en) | Exposure method, exposure device, electronic equipment and storage medium | |
CN105872363A (en) | Adjustingmethod and adjusting device of human face focusing definition | |
CN110798627B (en) | Shooting method, shooting device, storage medium and terminal | |
CN105635568A (en) | Image processing method in mobile terminal and mobile terminal | |
CN111741214A (en) | Image processing method and device and electronic equipment | |
CN112085686A (en) | Image processing method, image processing device, electronic equipment and computer readable storage medium | |
CN112422798A (en) | Photographing method and device, electronic equipment and storage medium | |
CN104754224A (en) | Information processing method and electronic equipment | |
CN106161970B (en) | A kind of image pickup method, device and mobile terminal | |
CN104104870B (en) | Filming control method, imaging control device and capture apparatus | |
CN107155000B (en) | Photographing behavior analysis method and device and mobile terminal | |
KR20170011876A (en) | Image processing apparatus and method for operating thereof | |
CN105812835B (en) | A kind of information processing method and electronic equipment | |
CN117278839A (en) | Shooting method, electronic equipment and storage medium | |
CN111586283B (en) | Zooming method and device |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20190614 |