CN105812672A - Method and device for photographing processing - Google Patents

Method and device for photographing processing Download PDF

Info

Publication number
CN105812672A
CN105812672A CN201610373833.1A CN201610373833A CN105812672A CN 105812672 A CN105812672 A CN 105812672A CN 201610373833 A CN201610373833 A CN 201610373833A CN 105812672 A CN105812672 A CN 105812672A
Authority
CN
China
Prior art keywords
face
image
collected
original image
taking pictures
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
Application number
CN201610373833.1A
Other languages
Chinese (zh)
Other versions
CN105812672B (en
Inventor
吴晓雅
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610373833.1A priority Critical patent/CN105812672B/en
Publication of CN105812672A publication Critical patent/CN105812672A/en
Application granted granted Critical
Publication of CN105812672B publication Critical patent/CN105812672B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/61Control of cameras or camera modules based on recognised objects
    • H04N23/611Control of cameras or camera modules based on recognised objects where the recognised objects include parts of the human body
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/67Focus control based on electronic image sensor signals

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)
  • Image Analysis (AREA)

Abstract

The invention provides a method and device for photographing processing. The method for photographing processing comprises the steps: when a photographing instruction is detected, collecting an image of a photographed object, and obtaining an original image; obtaining collecting time of the original image and the number of human faces in the original image; when the number of the human faces is larger than a preset number, judging whether the collecting time is smaller than a preset threshold; if the collecting time is smaller than the preset threshold, collecting each image of the human face, and obtaining a replaced human face image; using the replaced human face image to replace an image of the corresponding human face in the original image, and obtaining a photo. According to the method and device for photographing processing, since focusing photographing is performed on each human face once again and the focused human face image is used to replace the human face in the original image, the definition is improved.

Description

Processing method of taking pictures and device
Technical field
The present invention relates to field of terminal technology, particularly relate to one and take pictures processing method and device.
Background technology
Along with the development of shooting technology, increasing user uses terminal to take pictures, and also makes user that the requirement of terminal camera function is more and more higher.
Existing terminal is when taking pictures, and acquiescence uses the photographic head of fixed aperture value to take pictures, and this fixed aperture value is such as 2.0.This situation, takes pictures for fewer in number, will not definition be impacted.But often there is the situation that many people take pictures in reality, when taking pictures due to many people, after the position at people station has before having, it is easy to make the comparison that outrunner's face is clapped clear, and the comparison that face below is clapped obscures.Owing to the depth of field of the camera lens of fixed aperture value is smaller, it is easy to cause standing in face below not in field depth, namely somebody's face has exceeded field depth, so that photo is fuzzyyer.
As can be seen here, when in photograph subject, number is more, owing to the position distance between face location from photographic head is different, it is easy to make the photo photographed fuzzyyer.
Summary of the invention
The embodiment of the present invention provides one to take pictures processing method and device, to solve existing processing method of taking pictures, the technical problem obscured easily occurs when the number of taking pictures is more.
For solving the problems referred to above, technical scheme provided by the invention is as follows:
The embodiment of the present invention provides one to take pictures processing method, comprising:
When photographing instruction being detected, gather the image of photograph subject, obtain original image;
Obtain the number of face in the acquisition time of described original image and described original image;
When the number of described face is more than predetermined number, it is judged that whether described acquisition time is less than predetermined threshold value;
If described acquisition time is less than described predetermined threshold value, then gather the image of each described face, obtain replacing facial image;
Use described replacement facial image to replace the image of corresponding face in described original image, obtain photo.
The embodiment of the present invention also provides for one and takes pictures process device, comprising:
First acquisition module, for when photographing instruction being detected, gathering the image of photograph subject, obtain original image;
Acquisition module, is used for obtaining the number of face in the acquisition time of described original image and described original image;
Judge module, for when the number of described face is more than predetermined number, it is judged that whether described acquisition time is less than predetermined threshold value;
Second acquisition module, for when described acquisition time is less than described predetermined threshold value, then gathering the image of each described face, obtains replacing facial image;
Replacement module, for using described replacement facial image to replace the image of corresponding face in described original image, obtains photo.
Compared to prior art, take pictures processing method and the device of the present embodiment, when photographing instruction being detected, gather the image of photograph subject, obtain original image;Obtain the number of face in the acquisition time of this original image and this original image;When the number of this face is more than predetermined number, it is judged that whether this acquisition time is less than predetermined threshold value;If this acquisition time is less than this predetermined threshold value, then gather the image of this face each, obtain replacing facial image;Use this replacement facial image to replace the image of corresponding face in this original image, obtain photo.Take pictures owing to again each face being carried out focusing, re-use and defocused facial image is replaced the face in original image, therefore improve definition.
Accompanying drawing explanation
The flow chart of the processing method of taking pictures that Fig. 1 provides for the embodiment of the present invention one;
The flow chart of the processing method of taking pictures that Fig. 2 provides for the embodiment of the present invention two;
The flow chart of the processing method of taking pictures that Fig. 3 provides for the embodiment of the present invention three;
The structural representation of the process device of taking pictures that Fig. 4 provides for the embodiment of the present invention four;
The preferred structure schematic diagram of the process device of taking pictures that Fig. 5 provides for the embodiment of the present invention four.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those skilled in the art obtain under not making creative work premise, broadly fall into the scope of protection of the invention.
Refer to the flow chart of the processing method of taking pictures that Fig. 1, Fig. 1 provide for the embodiment of the present invention one.
The processing method of taking pictures of this preferred embodiment, including:
Step S101, when photographing instruction being detected, gathers the image of photograph subject, obtains original image.
Such as, when user presses and takes pictures key, photograph subject is taken pictures by terminal, obtains original image, and this original image is for as base map;This terminal can be the equipment such as mobile phone, panel computer.
Step S102, obtains the number of face in the acquisition time of this original image and this original image.
Such as, terminal obtains the aperture time currently taken pictures namely the acquisition time of original image, and adopts face recognition technology that the face in original image is identified, and obtains the number of face in this original image;And judge that whether this face number is more than predetermined number, take pictures for many people determining whether.If this face number is less than or equal to predetermined number, then judging it is not that many people take pictures, therefore terminal can not deal with, if this face number is more than predetermined number, then judges it is that many people take pictures, and performs step S103 subsequently.
Step S103, when the number of this face is more than predetermined number, it is judged that whether this acquisition time is less than predetermined threshold value.
Such as, when terminal is judged to that many people take pictures, whether the aperture time that terminal judges is currently taken pictures is less than predetermined threshold value, and relatively good to determine current ambient light, this predetermined threshold value can set based on experience value.If terminal judges that the aperture time currently taken pictures is more than or equal to predetermined threshold value, it is determined that current ambient light is poor, then terminal can not deal with;If terminal judges that the aperture time currently taken pictures is less than predetermined threshold value, it is determined that current ambient light is relatively good, then perform step S104.
Step S104, when this acquisition time is less than predetermined threshold value, gathers the image of this face each, obtains replacing facial image.
Such as, when terminal judges that the aperture time currently taken pictures is less than predetermined threshold value, namely when current environment light is relatively good, terminal gathers the image of each face again, obtains replacing facial image.
Step S105, uses this replacement facial image to replace the image of corresponding face in this original image, obtains photo.
Such as, the take pictures image of each face obtained of terminal second time replaces the image of corresponding face in base map, obtains final photo.
The processing method of taking pictures of this preferred embodiment, owing to when photographing instruction being detected, gathering the image of photograph subject, obtaining original image;Obtain the number of face in the acquisition time of this original image and this original image;When the number of this face is more than predetermined number, it is judged that whether this acquisition time is less than predetermined threshold value;If this acquisition time is less than this predetermined threshold value, then gather the image of this face each, obtain replacing facial image;Use this replacement facial image to replace the image of corresponding face in this original image, obtain photo;Take pictures owing to again each face being carried out focusing, re-use and defocused facial image is replaced the face in original image, therefore improve definition.
Refer to the flow chart of the processing method of taking pictures that Fig. 2, Fig. 2 provide for the embodiment of the present invention two.
The processing method of taking pictures of this preferred embodiment, including:
Step S201, when photographing instruction being detected, gathers the image of photograph subject, obtains original image.
Such as, when user presses and takes pictures key, photograph subject is taken pictures by terminal, obtains original image, and this original image is for as base map;This terminal can be the equipment such as mobile phone, panel computer.
Step S202, obtains the number of face in the acquisition time of this original image and this original image.
Such as, terminal obtains the aperture time currently taken pictures namely the acquisition time of original image, and adopts face recognition technology that the face in original image is identified, and obtains the number of face in this original image;And judge that whether this face number is more than predetermined number, take pictures for many people determining whether.If this face number is less than or equal to predetermined number, then judging it is not that many people take pictures, therefore terminal can not deal with, if this face number is more than predetermined number, then judges it is that many people take pictures, and performs step S203 subsequently.
Step S203, when the number of this face is more than predetermined number, it is judged that whether this acquisition time is less than predetermined threshold value.
Such as, when terminal is judged to that many people take pictures, whether the aperture time that terminal judges is currently taken pictures is less than predetermined threshold value, and relatively good to determine current ambient light, this predetermined threshold value can set based on experience value.If terminal judges that the aperture time currently taken pictures is more than or equal to predetermined threshold value, it is determined that current ambient light is poor, then terminal can not deal with;If terminal judges that the aperture time currently taken pictures is less than predetermined threshold value, it is determined that current ambient light is relatively good, then perform step S204.
Step S204, if this acquisition time is less than this predetermined threshold value, obtains the area value of this face each;
Such as, when terminal judges that the aperture time currently taken pictures is less than predetermined threshold value, namely when current environment light is relatively good, terminal obtains the area of each human face region in original image.Due to ambient light relatively good time, just can ensure that and obtain image clearly, therefore by judging the quality of ambient light, it is possible to avoid the facial image again obtained unintelligible, reduce the power consumption of terminal.
According to the area value of this face each, step S205, determines whether this face is face to be collected;
Such as, each face is screened by terminal according to the area of human face region, carries out Resurvey determining the need for the image to this face, and this face to be collected is such as needing the face again taken pictures.
In order to improve the treatment effeciency of terminal, the area of each human face region and preset area value can be compared by terminal, to the big face of human face region Area comparison just Resurvey image, namely according to the area value of this face each, this determines that whether this face is that the step of face to be collected includes:
(1) judge that whether the area value of this face is more than preset area value;
(2) if the area value of this face is more than this preset area value, it is determined that this face is face to be collected.
Such as, whether the area of each human face region of terminal judges is relatively larger, this preset area value can set based on experience value, the face that area is relatively larger is focused to obtain its image by terminal again, due to the face that Area comparison is little, even if focusing is taken pictures again, without improving definition, therefore the face that area is less is no longer carried out again focusing taking pictures by terminal, and the face that area is bigger is re-started focusing and takes pictures.
Step S206, however, it is determined that this face is this face to be collected, gathers the image of this face to be collected, obtains replacing facial image.
Such as, when the Area comparison of human face region is big, this face is carried out focusing and takes pictures by terminal again, to obtain the image of this face, obtains replacing facial image.
Certainly, in order to improve treatment effeciency and the motility of terminal, terminal may determine that taking pictures total time of face to be collected, screens the face quantity finally taken pictures according to this total time, namely the image of this face to be collected of this collection, the step obtaining replacing facial image includes
A, obtain the total duration of image gathering these faces to be collected all, obtain first total duration;
Such as, terminal obtains the number of this face to be collected, and calculates total duration according to face number to be collected and acquisition time, namely obtains first total duration.
B, adjust the quantity of this face to be collected according to this first total duration, obtain target collecting quantity;
Such as, whether this first total duration of terminal judges meets pre-conditioned, if this first total duration meets pre-conditioned, then the quantity of face to be collected is not adjusted by terminal, if this first total duration is unsatisfactory for pre-conditioned, then the quantity of face to be collected is adjusted by terminal.
Certainly, in order to improve the treatment effeciency of terminal further, it is possible to turn the quantity of face to be collected down, namely target collecting quantity is less than the quantity of face to be collected, namely this adjusts the quantity of this face to be collected according to this first total duration, the step obtaining target collecting quantity includes:
B1, judge that whether this first total duration is more than preset time value;
If this first total duration of b2 is less than or equal to this preset time value, then this target collecting quantity is equal to the quantity of this face to be collected;
If this first total duration of b3 is more than this preset time value, then reduce the quantity of this face to be collected, and trigger acquisition first total duration, until this first total duration is less than or equal to this preset time value, using the quantity of the face to be collected after minimizing as target collecting quantity.
Such as, whether total duration of taking pictures of terminal judges this faces to be collected all is less than preset time value, and this preset time value can set based on experience value, and such as this preset time value is the longest photo opporunity that user can bear.If this first total duration is less than this preset time value, then the quantity of face to be collected is not adjusted by terminal, namely finally gathers the quantity quantity equal to face to be collected of face.If this first total duration exceedes this preset time value, then terminal reduces the quantity of face to be collected, and return execution step A, namely terminal reacquires total duration of taking pictures of the face gathering face quantity after reducing, judge that whether total duration of taking pictures of face of the quantity of the face to be collected after reducing is less than predetermined threshold value, if it is, using the collection face quantity after reduction as the final face quantity gathered, namely target collecting quantity.If it is not, then continue to reduce this face quantity, until total duration of taking pictures of the face of the quantity of the face to be collected after reducing is less than predetermined threshold value, using face quantity now as the final face quantity gathered.
C, each face gathered in the face of this target collecting quantity image, obtain replacing image.
Such as, each face in the quantity of the face to be collected after adjusting is carried out image acquisition by terminal, obtains replacing image.
In order to improve collecting efficiency, each face can be taken pictures by terminal according to putting in order of the face of target collecting quantity, the image of each face in the face of this target collecting quantity of this collection, and the step obtaining replacing image includes:
L, according to preset order, the image of each face in the face of this target collecting quantity is acquired.
Such as, the face of target collecting quantity is taken pictures by terminal according to order from front to back or from back to front, for the face in same row according to from left to right or dextrosinistral order, the carrying out of each face in the face of target collecting quantity is taken pictures.
In order to improve collecting efficiency, each face can be taken pictures by terminal according to the size of the face of target collecting quantity, the image of each face in the face of this second number to be collected of this collection, and the step obtaining replacing image includes:
N, face area value size according to this target collecting quantity, be acquired the image of each face in the face of this target collecting quantity.
Such as, the carrying out of each face in the face of target collecting quantity, according to the descending or ascending order of the area value of the face of target collecting quantity, is taken pictures by terminal successively.
Step S207, uses this replacement facial image to replace the image of corresponding face in this original image, obtains photo.
Such as, the take pictures image of each face obtained of terminal second time replaces the image of corresponding face in base map, obtains final photo.
The processing method of taking pictures of this preferred embodiment, on the basis of first embodiment, owing to the face in all photograph subject is screened by the area according to face, only again takes pictures more than the face of preset value to face area, therefore improves treatment effeciency.
Refer to the flow chart of the processing method of taking pictures that Fig. 3, Fig. 3 provide for the embodiment of the present invention three.
The present embodiment is described in detail for terminal for mobile phone, the processing method of taking pictures of this preferred embodiment, including:
Step S301, when photographing instruction being detected, mobile phone gathers the image of photograph subject, obtains original image.
Such as, when user presses and takes pictures key, photograph subject is taken pictures by mobile phone, obtains original image, and this original image is for as base map.
Step S302, mobile phone obtains the number of face in the acquisition time of this original image and this original image.
Such as, mobile phone obtains the aperture time t0 currently taken pictures namely the generation time of original image, and adopts face recognition technology that the face in original image is identified, and obtains the number of face in this original image;And judge that whether this face number is more than 2, take pictures for many people determining whether, if this face number is less than or equal to 2, then judging it is not that many people take pictures, therefore mobile phone can not deal with, if this face number is more than 2, then judge it is that many people take pictures, perform step S303 subsequently.
Step S303, when the number of this face is more than predetermined number, mobile phone judges that whether this acquisition time is less than predetermined threshold value.
Such as, when mobile phone is judged to that many people take pictures, mobile phone judges that whether the aperture time currently taken pictures is less than 2 minutes, and relatively good to determine current ambient light, this predetermined threshold value can set based on experience value.If mobile phone judges that the aperture time currently taken pictures was more than or equal to 2 minutes, it is determined that current ambient light is poor, then mobile phone can not deal with;If mobile phone judges that the aperture time currently taken pictures was less than 2 minutes, it is determined that current ambient light is relatively good, then perform step S304.
Step S304, if this acquisition time is less than this predetermined threshold value, mobile phone obtains the area value of this face each.
Such as, when mobile phone judges that the aperture time currently taken pictures was less than 2 minutes, namely when current environment light is relatively good, then mobile phone obtains the area of each human face region in original image.Due to ambient light relatively good time, just can ensure that and obtain image clearly, therefore by judging the quality of ambient light, it is possible to avoid the facial image again obtained unintelligible, reduce the power consumption of mobile phone.
Step S305, all faces are screened by mobile phone according to the area value of this face, and obtain taking pictures total time of the face after screening.
Such as, mobile phone judges that whether the area value of this face is more than predetermined threshold value;When the area value of this face is more than predetermined threshold value, this face is taken pictures by mobile phone again, and obtains taking pictures total time t1 of all area values face more than predetermined threshold value.And when area value is less than or equal to the face of predetermined threshold value, this face is not taken pictures by mobile phone again.
Step S306, mobile phone judges that whether this total time of taking pictures is less than preset time value, obtains judged result.
Such as, mobile phone judges that whether t1 is less than preset time value T, and it is n more than the total quantity of the face of predetermined threshold value that such as mobile phone obtains all area values, namely add up to n, the t1 of the face after screening are specifically as follows shown in formula 1:
T1=n*t0 formula 1
Step S307, mobile phone generates face according to this judged result and gathers queue;
Such as, when mobile phone judges t1 less than T, n face is gathered queue as face by mobile phone;If mobile phone t1 is more than or equal to T, then the quantity n of the face after screening is reduced by mobile phone, until the total time of taking pictures of the face after reducing less than preset time value, n face after reducing being gathered queue as face.
Specifically, n is subtracted 1, then calculate the total time t2 that n-1 face is taken pictures, judging that whether t2 is less than T, if t2 is less than T, then face gathers queue is n-1 face, otherwise n-1 is subtracted 1 again, again obtain taking pictures total time t3 of n-2 face, and judge that whether t3 is less than T, if, then face gathers queue is n-2 face, otherwise, continue to subtract 1 by n-2, until the total time of taking pictures of the face after reducing is less than preset time value T.Such as n-x, the total time of always taking pictures of face, then face gathers queue was n-x face less than preset time value T.Wherein n-x is more than 0, and x is natural number more than 0 and less than n, n.
Step S308, each face that this face is gathered queue by mobile phone carries out image acquisition, obtains replacing image;
Such as, face gathers in queue 6 faces, then each face in 6 faces is carried out focusing and takes pictures by mobile phone, obtains the replacement image of each face.Such as these 6 faces above have 4 faces, after have two faces.Specifically, 4 faces above can first be taken pictures by mobile phone according to order from left to right, according still further to order from left to right, 2 faces below is taken pictures.Or these 6 faces are carried out image acquisition according to the size of these 6 faces by mobile phone respectively, these 6 faces are taken pictures by the order such as successively decreased according to area value.
Step S309, mobile phone uses this replacement facial image to replace the image of corresponding face in this original image, obtains photo.
Such as, the take pictures image of 6 faces obtained of mobile phone second time replaces the image of corresponding face in base map, obtains final photo.
The processing method of taking pictures of this preferred embodiment, owing to the face in all photograph subject is screened by mobile phone according to the area of face, face is carried out screening again by the duration of taking pictures further according to all photos after screening afterwards, face after programmed screening is taken pictures, obtain replacing facial image, and use this replacement facial image to replace the image of corresponding face in this original image, therefore improve motility.
Refer to the structural representation of the process device of taking pictures that Fig. 4, Fig. 4 provide for the embodiment of the present invention four.The process device 40 of taking pictures of this preferred embodiment includes: the first acquisition module 41, acquisition module 42, judge module the 43, second acquisition module 44, replacement module 45;
First acquisition module 41, for when photographing instruction being detected, gathering the image of photograph subject, obtain original image;
Acquisition module 42, is used for obtaining the number of face in the acquisition time of this original image and this original image;
Judge module 43, for when the number of this face is more than predetermined number, it is judged that whether this acquisition time is less than predetermined threshold value;
Second acquisition module 44, for when this acquisition time is less than this predetermined threshold value, then gathering the image of this face each, obtains replacing facial image;
Replacement module 45, for using this replacement facial image to replace the image of corresponding face in this original image, obtains photo.
As it is shown in figure 5, this second acquisition module 44 includes: obtain submodule 441, determine submodule 442 and gather submodule 443;
Obtain submodule 441, for obtaining the area value of this face each;
Determine submodule 442, determine whether this face is face to be collected for the area value according to this face each;
Gather submodule 443, for when determining this face for this face to be collected, gathering the image of this face to be collected, obtain replacing facial image.
This determines submodule 442, specifically for:
Judge that whether the area value of this face is more than preset area value;
If the area value of this face is more than this preset area value, it is determined that this face is face to be collected.
This collection submodule 443, specifically includes: acquiring unit 51, adjustment unit 52 and collecting unit 53;
Acquiring unit 51, for obtaining total duration of the image gathering these faces to be collected all, obtains first total duration;
Adjustment unit 52, for adjusting the quantity of this face to be collected according to this first total duration, obtains target collecting quantity;
Collecting unit 53, is used for gathering the image of each face in the face of this target collecting quantity, obtains replacing image.
This adjustment unit 52, specifically for:
Judge that whether this first total duration is more than preset time value;
If this first total duration is less than or equal to this preset time value, then this target collecting quantity is equal to the quantity of this face to be collected;
If this first total duration is more than this preset time value, then reduce the quantity of this face to be collected, and trigger this total duration of acquisition first, until this first total duration is less than or equal to this preset time value, using the quantity of the face to be collected after minimizing as target collecting quantity.
This collecting unit 53, specifically for:
According to preset order, each face in the face of this target collecting quantity is carried out image acquisition.
This collecting unit 53, is additionally operable to:
According to the area value size of the face of this target collecting quantity, each face in the face of this target collecting quantity is carried out image acquisition.
When being embodied as, above modules can realize as independent entity, it is also possible to carries out combination in any, realizes as same or several entities, and being embodied as of above modules referring to embodiment of the method above, can not repeat them here.
The process device of taking pictures of this preferred embodiment, owing to when photographing instruction being detected, gathering the image of photograph subject, obtaining original image;Obtain the number of face in the acquisition time of this original image and this original image;When the number of this face is more than predetermined number, it is judged that whether this acquisition time is less than predetermined threshold value;If this acquisition time is less than this predetermined threshold value, then gather the image of this face each, obtain replacing facial image;Use this replacement facial image to replace the image of corresponding face in this original image, obtain photo;Take pictures owing to again each face being carried out focusing, re-use and defocused facial image is replaced the face in original image, therefore improve definition.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment can be by the hardware that program carrys out instruction relevant and completes, this program can be stored in a computer-readable recording medium, storage medium may include that read only memory (ROM, ReadOnlyMemory), random access memory (RAM, RandomAccessMemory), disk or CD etc..
The one above embodiment of the present invention provided takes pictures processing method and device is described in detail, principles of the invention and embodiment are set forth by specific case used herein, and the explanation of above example is only intended to help to understand method and the core concept thereof of the present invention;Simultaneously for those skilled in the art, according to the thought of the present invention, all will change in specific embodiments and applications, in sum, this specification content should not be construed as limitation of the present invention.

Claims (10)

1. a processing method of taking pictures, it is characterised in that including:
When photographing instruction being detected, gather the image of photograph subject, obtain original image;
Obtain the number of face in the acquisition time of described original image and described original image;
When the number of described face is more than predetermined number, it is judged that whether described acquisition time is less than predetermined threshold value;
If described acquisition time is less than described predetermined threshold value, then gather the image of each described face, obtain replacing facial image;
Use described replacement facial image to replace the image of corresponding face in described original image, obtain photo.
2. processing method of taking pictures according to claim 1, it is characterised in that described when described acquisition time is less than described predetermined threshold value, gathers the image of each described face, and the step obtaining replacing facial image includes:
Obtain the area value of each described face;
Area value according to each described face determines whether described face is face to be collected;
If it is determined that described face is described face to be collected, then gather the image of described face to be collected, obtain replacing facial image.
3. processing method of taking pictures according to claim 2, it is characterised in that the described area value according to each described face determines that whether described face is that the step of face to be collected includes:
Judge that whether the area value of described face is more than preset area value;
If the area value of described face is more than described preset area value, it is determined that described face is face to be collected.
4. processing method of taking pictures according to claim 2, it is characterised in that
The image of the described face to be collected of described collection, the step obtaining replacing facial image includes:
Obtain total duration of the image gathering all described faces to be collected, obtain first total duration;
Adjust the quantity of described face to be collected according to described first total duration, obtain target collecting quantity;
Gather the image of each face in the face of described target collecting quantity, obtain replacing image.
5. processing method of taking pictures according to claim 4, it is characterised in that
The described quantity adjusting described face to be collected according to described first total duration, the step obtaining target collecting quantity includes:
Judge that whether described first total duration is more than preset time value;
If described first total duration is less than or equal to described preset time value, then described target collecting quantity is equal to the quantity of described face to be collected;
If described first total duration is more than described preset time value, then reduce the quantity of described face to be collected, and trigger acquisition first total duration, until described first total duration is less than or equal to described preset time value, using the quantity of the face to be collected after minimizing as target collecting quantity.
6. processing method of taking pictures according to claim 4, it is characterised in that the image of each face in the face of described collection described target collecting quantity, the step obtaining replacing image includes:
According to preset order, each face in the face of described target collecting quantity is carried out image acquisition.
7. processing method of taking pictures according to claim 4, it is characterised in that the image of each face in the face of described second number to be collected of described collection, the step obtaining replacing image includes:
According to the area value size of the face of described target collecting quantity, each face in the face of described target collecting quantity is carried out image acquisition.
8. a process device of taking pictures, it is characterised in that including:
First acquisition module, for when photographing instruction being detected, gathering the image of photograph subject, obtain original image;
Acquisition module, is used for obtaining the number of face in the acquisition time of described original image and described original image;
Judge module, for when the number of described face is more than predetermined number, it is judged that whether described acquisition time is less than predetermined threshold value;
Second acquisition module, for when described acquisition time is less than described predetermined threshold value, then gathering the image of each described face, obtains replacing facial image;
Replacement module, for using described replacement facial image to replace the image of corresponding face in described original image, obtains photo.
9. process device of taking pictures according to claim 8, it is characterised in that described second acquisition module, including:
Obtain submodule, for obtaining the area value of each described face;
Determine submodule, determine whether described face is face to be collected for the area value according to each described face;
Gather submodule, for when determining that described face is described face to be collected, gathering the image of described face to be collected, obtain replacing facial image.
10. process device of taking pictures according to claim 9, it is characterised in that described determine submodule, specifically for:
Judge that whether the area value of described face is more than preset area value;
If the area value of described face is more than described preset area value, it is determined that described face is face to be collected.
CN201610373833.1A 2016-05-27 2016-05-27 It takes pictures processing method and processing device Expired - Fee Related CN105812672B (en)

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 true CN105812672A (en) 2016-07-27
CN105812672B 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)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174081A (en) * 2017-11-29 2018-06-15 维沃移动通信有限公司 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
CN109101947A (en) * 2018-08-27 2018-12-28 Oppo广东移动通信有限公司 Portrait identification method, Identification of Images device and terminal device
CN111432154A (en) * 2020-03-30 2020-07-17 维沃移动通信有限公司 Video playing method, video processing method and electronic equipment
CN112818784A (en) * 2021-01-22 2021-05-18 浙江大华技术股份有限公司 Control method and device of access control equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
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
US20110013038A1 (en) * 2009-07-15 2011-01-20 Samsung Electronics Co., Ltd. Apparatus and method for generating image including multiple people
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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
US20110013038A1 (en) * 2009-07-15 2011-01-20 Samsung Electronics Co., Ltd. Apparatus and method for generating image including multiple people
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
郐朝怡: "《佳能EOS60D数码单反摄影实拍技巧大全》", 31 March 2013, 清华大学出版社 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108174081A (en) * 2017-11-29 2018-06-15 维沃移动通信有限公司 A kind of image pickup method and mobile terminal
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
CN109101947A (en) * 2018-08-27 2018-12-28 Oppo广东移动通信有限公司 Portrait identification method, Identification of Images device and terminal device
CN111432154A (en) * 2020-03-30 2020-07-17 维沃移动通信有限公司 Video playing method, video processing method and electronic equipment
CN111432154B (en) * 2020-03-30 2022-01-25 维沃移动通信有限公司 Video playing method, video processing method and electronic equipment
CN112818784A (en) * 2021-01-22 2021-05-18 浙江大华技术股份有限公司 Control method and device of access control equipment and storage medium
CN112818784B (en) * 2021-01-22 2024-02-06 浙江大华技术股份有限公司 Control method and device of access control equipment and storage medium

Also Published As

Publication number Publication date
CN105812672B (en) 2019-06-14

Similar Documents

Publication Publication Date Title
CN109348089B (en) Night scene image processing method and device, electronic equipment and storage medium
CN105812672A (en) Method and device for photographing processing
CN103024165B (en) Method and device for automatically setting shooting mode
CN103888683B (en) Mobile terminal and shooting method thereof
US10516877B2 (en) Light field collection control methods and apparatuses, light field collection devices
CN107950018B (en) Image generation method and system, and computer readable medium
CN113766125B (en) Focusing method and device, electronic equipment and computer readable storage medium
CN103312973B (en) Electronic installation and method of adjustment thereof
CN103795934B (en) A kind of image processing method and electronic equipment
EP3125525A1 (en) Method and system for enabling camera of mobile terminal to automatically adapt to scene
CN104349066A (en) Method and device for generating images with high dynamic ranges
CN103297696A (en) Photographing method, photographing device and photographing terminal
US20150086127A1 (en) Method and image capturing device for generating artificially defocused blurred image
CN111028190A (en) Image processing method, image processing device, storage medium and electronic equipment
CN104503749A (en) Photo processing method and electronic equipment
CN105635565A (en) Shooting method and equipment
CN104601876B (en) Method and device for detecting passerby
CN105247567B (en) A kind of image focusing device, method, system and non-transient program storage device again
CN105872363A (en) Adjustingmethod and adjusting device of human face focusing definition
CN103595917A (en) Mobile terminal and focusing method thereof
CN104052933A (en) Method for determining dynamic range mode, and image obtaining apparatus
JP2014057303A (en) System and method for utilizing enhanced scene detection in depth estimation procedure
CN105282455B (en) A kind of photographic method, device and mobile terminal
CN105812670A (en) Picture taking method and terminal
CN102547130A (en) Image shooting device and image shooting method thereof

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
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