Movatterモバイル変換


[0]ホーム

URL:


CN105812672B - Photographic processing method and device - Google Patents

Photographic processing method and device
Download PDF

Info

Publication number
CN105812672B
CN105812672BCN201610373833.1ACN201610373833ACN105812672BCN 105812672 BCN105812672 BCN 105812672BCN 201610373833 ACN201610373833 ACN 201610373833ACN 105812672 BCN105812672 BCN 105812672B
Authority
CN
China
Prior art keywords
face
image
faces
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
Application number
CN201610373833.1A
Other languages
Chinese (zh)
Other versions
CN105812672A (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 LtdfiledCriticalGuangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201610373833.1ApriorityCriticalpatent/CN105812672B/en
Publication of CN105812672ApublicationCriticalpatent/CN105812672A/en
Application grantedgrantedCritical
Publication of CN105812672BpublicationCriticalpatent/CN105812672B/en
Expired - Fee Relatedlegal-statusCriticalCurrent
Anticipated expirationlegal-statusCritical

Links

Classifications

Landscapes

Abstract

Translated fromChinese

本发明提供一种拍照处理方法及装置,该拍照处理方法包括:当检测到拍照指令时,采集拍照对象的图像,得到原始图像;获取该原始图像的采集时间以及该原始图像中人脸的个数;当该人脸的个数大于预设数量时,判断该采集时间是否小于预设阈值;若该采集时间小于该预设阈值,则采集每个该人脸的图像,得到替换人脸图像;使用该替换人脸图像替换该原始图像中对应人脸的图像,得到照片。本发明的拍照处理方法及装置,由于再次对每个人脸进行对焦拍照,再使用对焦后的人脸图像替换原有图像中的人脸,因此提高了清晰度。

The invention provides a photographing processing method and device. The photographing processing method includes: when a photographing instruction is detected, collecting an image of a photographing object to obtain an original image; When the number of the faces is greater than the preset number, it is judged whether the collection time is less than the preset threshold; if the collection time is less than the preset threshold, the image of each face is collected to obtain a replacement face image ; Use the replacement face image to replace the image corresponding to the face in the original image to obtain a photo. In the photographing processing method and device of the present invention, each face is focused and photographed again, and the focused face image is used to replace the face in the original image, thereby improving the clarity.

Description

It takes pictures processing method and processing device
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 endHold 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 defaultFor example 2.0.Such case takes pictures for fewer in number, will not impact to clarity.But often exist in reality moreThe 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 clearChu, 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 laterFace 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 cameraTogether, 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 batFuzzy 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 faceImage;
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 quantityPreset threshold;
Second acquisition module, for when the acquisition time is less than the preset threshold, then acquiring each faceImage, 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 imageTo 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 clappedAccording 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 thanThe preset threshold then acquires the image of each face, obtains replacement facial image;The original is replaced using the replacement facial imageThe 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 againFacial 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, completeSite 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 onEmbodiment in the present invention, those skilled in the art's every other implementation obtained without creative effortsExample, 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 graphAs 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 faceTechnology identifies the face in original image, and obtains the number of face in the original image;And judge the face numberWhether 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, sentenceFixed 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 clapAccording 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 picturesValue, relatively good with the ambient light that determination is current, which can set based on experience value.If terminal determines current clapAccording 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 locateReason;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 holdsRow step S104.
Step S104 acquires the image of each face when the acquisition time is less than preset threshold, obtains replacement faceImage.
For example, when terminal determines that the aperture time currently taken pictures is less than preset threshold namely current environment light is relatively goodWhen, 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, obtainTo 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 faceWhen 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 imageThe image of face, obtains photo;It takes pictures, is reused to defocused facial image replacement due to carrying out focusing to each face againFace 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 graphAs 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 faceTechnology identifies the face in original image, and obtains the number of face in the original image;And judge the face numberWhether 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, sentenceFixed 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 clapAccording 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 picturesValue, relatively good with the ambient light that determination is current, which can set based on experience value.If terminal determines current clapAccording 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 locateReason;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 holdsRow 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 goodWhen, 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 clearImage can be unintelligible to avoid the facial image obtained again therefore by judging the quality of ambient light, reduce terminalPower 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 faceImage 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 valueCompared with the area value for just resurveying image namely each face of the basis to the biggish face of human face region area ratio determinesThe 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 valueSetting, the terminal face bigger to area is focused again to obtain its image, due to the lesser face of area ratio, even ifAgain focusing is taken pictures, and will not improve clarity, therefore terminal no longer focuses to the lesser face of area again and takes pictures, andFocusing 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 peopleFace 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 peopleThe 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 collectedBetween, according to the image of face quantity namely the acquisition face to be collected finally to be taken pictures of total time screening, replacedThe 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 timeDuration, 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 itemPart, then terminal to the quantity of face to be collected without adjustment, if first total duration is unsatisfactory for preset condition, terminal pairThe 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 adoptedCollect 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, obtainsThe 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 thisThe 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 acquisitionFirst 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 reductionAs 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 defaultBetween value can set based on experience value, for example the preset time value is the longest photo opporunity that can bear of user.If thisOne 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 faceQuantity be equal to face to be collected quantity.If first total duration is more than the preset time value, terminal reduces to be collectedThe quantity of face, and return to step A namely terminal and reacquire the face of acquisition face quantity after reducing and take pictures alwaysDuration, 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 continuingReduce 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 thresholdFace 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, replacedImage.
In order to improve collecting efficiency, terminal can according to the face of target collecting quantity put in order to each face intoRow 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 quantityFace take pictures.
In order to improve collecting efficiency, terminal can according to the face of target collecting quantity size to each face intoRow 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 quantityThe 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 toSecondary 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, obtainTo 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 faceFace 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 mentionedHigh 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 graphAs 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 faceOther technology identifies the face in original image, and obtains the number of face in the original image;And judge the faceWhether 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 clapAccording 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 stepS303。
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 thanThreshold 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 picturesAperture 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 asFruit 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 stepsS304。
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 clearImage can be unintelligible to avoid the facial image obtained again therefore by judging the quality of ambient light, reduce mobile phonePower consumption.
Step S305, mobile phone screen all faces according to the area value of the face, and obtain the face after screeningTake 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 thanWhen 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 thresholdBetween 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 thresholdThe 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 thanOr 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 smallIn 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 thanT, 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, andJudge whether t3 is less than T, if so, face acquisition queue is otherwise n-2 face continues to subtract 1 for n-2, after reducingThe 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 valueT, 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, handMachine 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 below2 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 shonePiece.
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, obtainFinal 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 subjectsFace is screened, later further according to the screening of duration again to face progress of taking pictures of all photos after screening, to secondFace after screening is taken pictures, and replacement facial image is obtained, and replaced using the replacement facial image it is right in the original imageThe 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 realApply 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 subjectPicture;
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 quantityIf threshold value;
Second acquisition module 44, for when the acquisition time is less than the preset threshold, then acquiring the figure of each facePicture 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 imagePhoto.
As shown in figure 5, second acquisition module 44 includes: acquisition submodule 441, determines submodule 442 and acquisitionModule 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 collectedPicture 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 durationAmount;
Acquisition unit 53, the image of each of face for acquiring target collecting quantity face, obtains replacement figurePicture.
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 collectedQuantity;
If first total duration is greater than the preset time value, the quantity of the face to be collected is reduced, and trigger the acquisitionFirst 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 reductionAs 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 quantityFace 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 madeIt 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 notIt 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 faceWhen 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 imageThe image of face, obtains photo;It takes pictures, is reused to defocused facial image replacement due to carrying out focusing to each face againFace 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 canIt is completed with instructing relevant hardware by program, which can be stored in a computer readable storage medium, storageMedium may include: read-only memory (ROM, Read Only Memory), random access memory (RAM, RandomAccess 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, hereinApply that a specific example illustrates the principle and implementation of the invention, the explanation of above example is only intended to helpUnderstand method and its core concept of the invention;Meanwhile for those skilled in the art, according to the thought of the present invention, havingThere 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 inventionLimitation.

Claims (5)

Translated fromChinese
1.一种拍照处理方法,其特征在于,包括:1. a photographic processing method, is characterized in that, comprises:当检测到拍照指令时,采集拍照对象的图像,得到原始图像;When the photographing instruction is detected, the image of the photographed object is collected to obtain the original image;获取所述原始图像的采集时间以及所述原始图像中人脸的个数;Obtain the acquisition time of the original image and the number of faces in the original image;当所述人脸的个数大于预设数量时,判断所述采集时间是否小于预设阈值;When the number of the faces is greater than a preset number, determine whether the collection time is less than a preset threshold;若所述采集时间大于或者等于所述预设阈值,则终端不作处理;If the collection time is greater than or equal to the preset threshold, the terminal does not process;若所述采集时间小于所述预设阈值,则获取每个所述人脸的面积值;If the collection time is less than the preset threshold, obtain the area value of each of the faces;将每个所述人脸的面积值与预设面积值进行比较,确定大于所述预设面积值的所述人脸为待采集人脸;comparing the area value of each of the human faces with a preset area value, and determining that the human face larger than the preset area value is the human face to be collected;获取采集所述待采集人脸的图像的总时长,得到第一总时长;acquiring the total duration of collecting the image of the face to be collected, to obtain a first total duration;若所述第一总时长小于或等于预设时间值,则将所述待采集人脸的数量作为目标采集数量;If the first total duration is less than or equal to the preset time value, the number of faces to be collected is taken as the target collection number;若所述第一总时长大于所述预设时间值,则减少所述待采集人脸的数量,以使采集减少数量后的所述待采集人脸的图像的总时长小于或等于所述预设时间值,并将减少数量后的所述待采集人脸的数量作为目标采集数量;If the first total duration is greater than the preset time value, the number of the faces to be collected is reduced, so that the total duration of collecting the images of the faces to be collected after the reduced number is less than or equal to the preset duration Set the time value, and use the reduced number of faces to be collected as the target collection quantity;采集所述目标采集数量的人脸中的每个人脸的图像,得到替换人脸图像;Collect the image of each face in the face of the target collection quantity to obtain the replacement face image;使用所述替换人脸图像替换所述原始图像中对应人脸的图像,得到照片。Using the replacement face image to replace the image corresponding to the face in the original image to obtain a photo.2.根据权利要求1所述的拍照处理方法,其特征在于,所述采集所述目标采集数量的人脸中的每个人脸的图像,得到替换人脸图像的步骤包括:2. The photographing processing method according to claim 1, wherein the image of each face in the face of the collection of the target collection quantity is described, and the step of obtaining the replacement face image comprises:按照预设顺序,对所述目标采集数量的人脸中的每个人脸进行图像采集。According to a preset sequence, image acquisition is performed on each of the faces of the target acquisition quantity.3.根据权利要求1所述的拍照处理方法,其特征在于,所述采集所述目标采集数量的人脸中每个人脸的图像,得到替换人脸图像的步骤包括:3. The photographing processing method according to claim 1, wherein the image of each face in the face of the collection of the target collection quantity is described, and the step of obtaining the replacement face image comprises:按照所述目标采集数量的人脸的面积值大小,对所述目标采集数量的人脸中的每个人脸进行图像采集。According to the size of the area value of the faces of the target collection quantity, image collection is performed on each face in the target collection quantity of the faces.4.一种拍照处理装置,其特征在于,包括:4. A photographing processing device, characterized in that, comprising:第一采集模块,用于当检测到拍照指令时,采集拍照对象的图像,得到原始图像;a first acquisition module, configured to acquire an image of a photographed object to obtain an original image when a photographing instruction is detected;获取模块,用于获取所述原始图像的采集时间以及所述原始图像中人脸的个数;an acquisition module for acquiring the acquisition time of the original image and the number of faces in the original image;判断模块,用于当所述人脸的个数大于预设数量时,判断所述采集时间是否小于预设阈值;a judgment module, configured to judge whether the collection time is less than a preset threshold when the number of the faces is greater than a preset number;第二采集模块,用于若所述采集时间大于或者等于所述预设阈值,则终端不作处理;当所述采集时间小于所述预设阈值时,则获取每个所述人脸的面积值;将每个所述人脸的面积值与预设面积值进行比较,确定大于所述预设面积值的所述人脸为待采集人脸;获取采集所述待采集人脸的图像的总时长,得到第一总时长;若所述第一总时长小于或等于预设时间值,则将所述待采集人脸的数量作为目标采集数量;若所述第一总时长大于所述预设时间值,则减少所述待采集人脸的数量,以使采集减少数量后的所述待采集人脸的图像的总时长小于或等于所述预设时间值,并将减少数量后的所述待采集人脸的数量作为目标采集数量;采集所述目标采集数量的人脸中的每个人脸的图像,得到替换人脸图像;The second collection module is configured to, if the collection time is greater than or equal to the preset threshold, the terminal does not perform processing; when the collection time is less than the preset threshold, obtain the area value of each of the faces ; Compare the area value of each described face with a preset area value, and determine that the face larger than the preset area value is the face to be collected; obtain the total value of the images of the face to be collected. time length, the first total time length is obtained; if the first total time length is less than or equal to the preset time value, the number of faces to be collected is taken as the target collection number; if the first total time length is greater than the preset time value time value, then reduce the number of the faces to be collected, so that the total duration of collecting the images of the faces to be collected after the reduced number is less than or equal to the preset time value, and the reduced number of the faces The number of faces to be collected is taken as the target collection quantity; the image of each face in the faces of the target collection quantity is collected to obtain a replacement face image;替换模块,用于使用所述替换人脸图像替换所述原始图像中对应人脸的图像,得到照片。A replacement module, configured to use the replacement face image to replace the image corresponding to the face in the original image to obtain a photo.5.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,该程序被处理器执行时实现权利要求1至3任一项所述的方法。5. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the method according to any one of claims 1 to 3 is implemented.
CN201610373833.1A2016-05-272016-05-27 Photographic processing method and deviceExpired - Fee RelatedCN105812672B (en)

Priority Applications (1)

Application NumberPriority DateFiling DateTitle
CN201610373833.1ACN105812672B (en)2016-05-272016-05-27 Photographic processing method and device

Applications Claiming Priority (1)

Application NumberPriority DateFiling DateTitle
CN201610373833.1ACN105812672B (en)2016-05-272016-05-27 Photographic processing method and device

Publications (2)

Publication NumberPublication Date
CN105812672A CN105812672A (en)2016-07-27
CN105812672Btrue CN105812672B (en)2019-06-14

Family

ID=56427845

Family Applications (1)

Application NumberTitlePriority DateFiling Date
CN201610373833.1AExpired - Fee RelatedCN105812672B (en)2016-05-272016-05-27 Photographic processing method and device

Country Status (1)

CountryLink
CN (1)CN105812672B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
CN108174081B (en)*2017-11-292019-07-26维沃移动通信有限公司 A shooting method and mobile terminal
CN108520493A (en)*2018-03-302018-09-11广东欧珀移动通信有限公司 Image replacement processing method, device, storage medium and electronic equipment
CN109101947B (en)*2018-08-272021-03-26Oppo广东移动通信有限公司Portrait identification method, portrait identification device and terminal equipment
CN111432154B (en)*2020-03-302022-01-25维沃移动通信有限公司Video playing method, video processing method and electronic equipment
CN112818784B (en)*2021-01-222024-02-06浙江大华技术股份有限公司Control method and device of access control equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2007336411A (en)*2006-06-192007-12-27Casio Comput Co Ltd Imaging apparatus, auto bracketing imaging method, and program
CN103491299A (en)*2013-09-172014-01-01宇龙计算机通信科技(深圳)有限公司Photographic processing method and device
CN105303161A (en)*2015-09-212016-02-03广东欧珀移动通信有限公司 Method and device for taking pictures of multiple people

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
KR101665130B1 (en)*2009-07-152016-10-25삼성전자주식회사Apparatus and method for generating image including a plurality of persons

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication numberPriority datePublication dateAssigneeTitle
JP2007336411A (en)*2006-06-192007-12-27Casio Comput Co Ltd Imaging apparatus, auto bracketing imaging method, and program
CN103491299A (en)*2013-09-172014-01-01宇龙计算机通信科技(深圳)有限公司Photographic processing method and device
CN105303161A (en)*2015-09-212016-02-03广东欧珀移动通信有限公司 Method and device for taking pictures of multiple people

Also Published As

Publication numberPublication date
CN105812672A (en)2016-07-27

Similar Documents

PublicationPublication DateTitle
CN105812672B (en) Photographic processing method and device
CN103152521B (en)A kind of mobile terminal realizes method and the mobile terminal of Deep Canvas
WO2022028184A1 (en)Photography control method and apparatus, electronic device, and storage medium
CN103297696A (en)Photographing method, photographing device and photographing terminal
CN104618640A (en)Photographing method and device
US9888176B2 (en)Video apparatus and photography method thereof
WO2021169686A1 (en)Photo capture control method and apparatus and computer readable storage medium
CN108668086A (en)Automatic focusing method and device, storage medium and terminal
CN112738388B (en)Photographing processing method and system, electronic device and storage medium
CN104486542A (en) A method and device for triggering photographing
CN111835982A (en) Image acquisition method, image acquisition device, electronic device and storage medium
CN109040524A (en)Artifact eliminating method, device, storage medium and terminal
CN105812670B (en)A kind of method and terminal taken pictures
CN110677592A (en)Subject focusing method and device, computer equipment and storage medium
CN112822412A (en) Exposure method and electronic device
JP2016032181A (en)Image processing apparatus, image pickup device and image processing method
CN111741214A (en)Image processing method and device and electronic equipment
CN105704395B (en)Photographic method and camera arrangement
CN105100624A (en) A shooting method and terminal
CN106161970B (en)A kind of image pickup method, device and mobile terminal
KR20150032764A (en)Method and image capturing device for generating artificially defocused blurred image
KR20170011876A (en)Image processing apparatus and method for operating thereof
CN105898147B (en)photometric processing method and device applied to mobile terminal
CN108174088A (en) Brightness adjustment method, device, terminal and computer-readable storage medium
CN105120153B (en)A kind of image capturing method and device

Legal Events

DateCodeTitleDescription
C06Publication
PB01Publication
C10Entry into substantive examination
SE01Entry into force of request for substantive examination
CB02Change 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.

CB02Change of applicant information
GR01Patent grant
GR01Patent grant
CF01Termination of patent right due to non-payment of annual fee

Granted publication date:20190614

CF01Termination of patent right due to non-payment of annual fee

[8]ページ先頭

©2009-2025 Movatter.jp