CN105453533B - A kind of method and electronic equipment saving shooting image - Google Patents

A kind of method and electronic equipment saving shooting image Download PDF

Info

Publication number
CN105453533B
CN105453533B CN201380078887.XA CN201380078887A CN105453533B CN 105453533 B CN105453533 B CN 105453533B CN 201380078887 A CN201380078887 A CN 201380078887A CN 105453533 B CN105453533 B CN 105453533B
Authority
CN
China
Prior art keywords
image
person
moment
taken
portrait
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.)
Active
Application number
CN201380078887.XA
Other languages
Chinese (zh)
Other versions
CN105453533A (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.)
Huawei Device Co Ltd
Original Assignee
Huawei Device Co 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 Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201910423560.0A priority Critical patent/CN110121030B/en
Publication of CN105453533A publication Critical patent/CN105453533A/en
Application granted granted Critical
Publication of CN105453533B publication Critical patent/CN105453533B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/765Interface circuits between an apparatus for recording and another apparatus
    • H04N5/77Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera
    • H04N5/772Interface circuits between an apparatus for recording and another apparatus between a recording apparatus and a television camera the recording apparatus and the television camera being placed in the same enclosure
    • 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/64Computer-aided capture of images, e.g. transfer from script file into camera, check of taken image quality, advice or proposal for image composition or decision on when to take image

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)

Abstract

The present invention discloses a kind of method and electronic equipment for saving shooting image, which comprises judges whether the portrait of the person of being taken in the image of the first moment acquisition meets preservation condition;After the portrait of the person of being taken described in the image that first moment obtains is unsatisfactory for the preservation condition, the at least image for meeting the preservation condition is chosen in a set period of time after first moment and/or before first moment, and saves at least image for meeting preservation condition.

Description

A kind of method and electronic equipment saving shooting image
Technical field
The present invention relates to technical field of image processing more particularly to a kind of method for saving shooting image and electronics to set It is standby.
Background technique
With the continuous development of science and technology, electronic technology has also obtained development at full speed, and the type of electronic product is also got over Come more, people have also enjoyed the various conveniences of development in science and technology bring.Present people can be set by various types of electronics It is standby, it enjoys as development in science and technology bring is comfortably lived.
For example, all having image collecting function, Yong Huke on the electronic equipments such as smart phone, tablet computer or digital camera To use these electronic equipments to shoot image whenever and wherever possible, to keep the fine moment in life here.These electricity are used in user During sub- equipment is taken pictures, for shooting a portrait, if occurring the eyes for the person of being taken in captured image because dodging Light lamp perhaps blink and the moment closure taken pictures or in moment of taking pictures because electronic equipment shake causes the portrait of the person of being taken It is fuzzy etc. to be unsatisfactory for the case where requiring, so that user needs to re-shoot, more times are taken, in some specific fields Close, for example, to participate in sports tournament sportsman shoot when, be unsatisfactory for requiring if shooting image obtained, even without Method re-starts shooting.
Therefore, the electronic equipments such as smart phone, tablet computer or digital camera exist when shooting image in the prior art Because taken image is unsatisfactory for making user need the technical issues of spending the time to re-start shooting due to requirement.
Summary of the invention
The embodiment of the present invention provides a kind of method and electronic equipment for saving shooting image, to solve in the prior art For the electronic equipments such as smart phone, tablet computer or digital camera when shooting image, the existing image because taken by is discontented Foot requires and user is made to need the technical issues of spending the time to re-start shooting.
The first aspect of the present invention provides a kind of method for saving shooting image, comprising: judges what the first moment obtained Whether the portrait for the person of being taken meets preservation condition in image;The person's of being taken described in the image that first moment obtains A setting time after portrait is unsatisfactory for the preservation condition, after first moment and/or before first moment At least image for meeting the preservation condition is chosen in section, and saves at least image for meeting preservation condition.
With reference to first aspect, in the first possible implementation, quilt in the image that the first moment of the judgement obtains Whether the portrait of photographer meets preservation condition, specifically: judge the eye of the person of being taken in the image of the first moment acquisition Whether eyeball is opened, wherein in the eyes closed of the person of being taken, determines and is taken in the image of the first moment acquisition The portrait of person is unsatisfactory for the preservation condition;And/or judge the people of the person of being taken described in the image of the first moment acquisition It seem no fuzzy, wherein when the portrait of the person of being taken described in the image that first moment obtains is fuzzy, determine described the The portrait for the person of being taken is unsatisfactory for the preservation condition in the image that one moment obtained.
In conjunction with the first possible implementation, in the second possible implementation, in the judgement described first Before whether the eyes for the person of being taken are opened in the image that moment obtains, the method also includes: based at first moment At least image obtained before, determine described in the eyes of the person of being taken be in eyes-open state or closed-eye state, wherein in institute When stating the eyes of the person of being taken and being in the eyes-open state, executes step: judge to be clapped in the image of the first moment acquisition Whether the eyes for the person of taking the photograph are opened.
In conjunction with the first mode in the cards, in the third mode in the cards, it is described judgement described first when Whether the eyes for carving the person of being taken in the image obtained are opened, and specifically include: described in the image obtained to first moment The human face region for the person of being taken is pre-processed;Position at least two characteristic points of the human face region, and obtain from it is described to Feature vector composed by least two features that few two characteristic point regions extract, at least two characteristic point is extremely It less include eye feature point and canthus characteristic point;Based on described eigenvector, institute in the image of the first moment acquisition is judged Whether the eyes for stating the person of being taken are opened.
In conjunction with the first mode in the cards, in the 4th kind of mode in the cards, it is described judgement described first when Whether the portrait for carving the person of being taken described in the image obtained obscures, and specifically includes: in the image obtained to first moment The portrait of the person of being taken carries out edge detection, obtains corresponding multiple first intensity of multiple marginal points of local maximum Value;The image of the first moment acquisition is reduced by preset ratio, and to the portrait of the person of being taken described in the image after diminution Edge detection is carried out, corresponding multiple second intensity values of the multiple marginal point of local maximum are obtained;Judge the multiple Whether the difference of corresponding second intensity value of each marginal point and first intensity value is greater than a thresholding in marginal point Value, wherein when the difference of second intensity value and first intensity value is greater than the threshold value, determine each described side Edge point is fuzzy;Judge whether the quantity of the marginal point obscured in the multiple marginal point is greater than a preset value, wherein described When the quantity of fuzzy marginal point is greater than the preset value, determine the person's of being taken described in the image of the first moment acquisition Portrait is fuzzy.
The second aspect of the present invention, also offer a kind of electronic equipment, comprising: image acquisition units are set to the casing On;Processing unit is connected with described image acquisition unit, the figure obtained for judging described image acquisition unit at the first moment Whether the portrait for the person of being taken meets preservation condition as in, and the person of being taken described in the image obtained at first moment A setting time after portrait is unsatisfactory for the preservation condition, after first moment and/or before first moment At least image for meeting the preservation condition is chosen in section, and saves at least image for meeting preservation condition.
In conjunction with second aspect, in the first possible embodiment, the processing unit is specifically used for judging described the Whether the eyes for the person of being taken are opened in the image that one moment obtained, wherein in the eyes closed of the person of being taken, determine The portrait for the person of being taken is unsatisfactory for the preservation condition in the image that first moment obtains, and/or when judging described first Whether the portrait for carving the person of being taken described in the image obtained obscures, wherein described in the image that first moment obtains When the portrait for the person of being taken is fuzzy, determine that the portrait of the person of being taken in the image of the first moment acquisition is unsatisfactory for the preservation Condition.
In conjunction with the first possible embodiment, in second of possible embodiment, the processing unit is also used to Before whether the eyes for the person of being taken are opened in the image for judging the first moment acquisition, based at described first At least image obtained before is carved, the eyes of the person of being taken described in determination are in eyes-open state or closed-eye state.
In conjunction with the first possible embodiment, in the third possible embodiment, the processing unit is specifically used The human face region of the person of being taken described in the image obtained to first moment pre-processes, and positions the face area At least two characteristic points in domain, and obtain at least two feature institute groups extracted from least two characteristic point region At feature vector, at least two characteristic point includes at least eye feature point and canthus characteristic point, and is based on the feature Vector, judges whether the eyes of the person of being taken described in the image of the first moment acquisition are opened.
In conjunction with the first possible embodiment, in the 4th kind of possible embodiment, the processing unit is specifically used The portrait of the person of being taken described in the image obtained to first moment carries out edge detection, obtains the more of local maximum Corresponding multiple first intensity values of a marginal point, and the image that first moment obtains is reduced by preset ratio, and to diminution The portrait of the person of being taken described in image afterwards carries out edge detection, and the multiple marginal point for obtaining local maximum is corresponding Multiple second intensity values, and judge each marginal point is corresponding in the multiple marginal point second intensity value with it is described Whether the difference of the first intensity value is greater than a threshold value, wherein is greater than in the difference of second intensity value and first intensity value When the threshold value, determine that each described marginal point is fuzzy, and judge the marginal point obscured in the multiple marginal point Whether quantity is greater than a preset value, wherein when the quantity of the fuzzy marginal point is greater than the preset value, determines described the The portrait of the person of being taken described in the image that one moment obtained is fuzzy.
The one or more technical solutions provided in the embodiment of the present invention, have at least the following technical effects or advantages:
Whether the portrait for the person of being taken meets preservation condition in image due to judging the acquisition of the first moment, and at first After the portrait for the person of being taken is unsatisfactory for preservation condition in the image that quarter obtains, after the first moment and/or before the first moment A set period of time in choose and meet at least image of preservation condition, and save at least one figure for meeting preservation condition There are the eyes for the person of being taken in the moment closure or figure taken pictures in the technical solution of picture, the image for avoiding the acquisition of the first moment It is unsatisfactory for the case where requiring as fuzzy etc., so solving the electricity such as smart phone, tablet computer or digital camera in the prior art Sub- equipment is existing because taken image is unsatisfactory for making user need to spend the time again due to requirement when shooting image The technical issues of being shot realizes the technical effect for saving the time it takes when user re-shoots image.
Detailed description of the invention
Fig. 1 is the method flow diagram provided in an embodiment of the present invention for saving shooting image;
Fig. 2 is the work flow diagram of the electronic equipment for the method that application provided in an embodiment of the present invention saves shooting image;
Fig. 3 is the functional block diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
The embodiment of the present invention solves the prior art by providing a kind of method and electronic equipment for saving shooting image For the electronic equipments such as middle smart phone, tablet computer or digital camera when shooting image, the existing image because taken by is not It meets the requirements and user is made to need the technical issues of spending the time to re-start shooting.
Technical solution in the embodiment of the present invention is in order to solve the above technical problems, general thought is as follows:
First, it is determined that whether the portrait for the person of being taken meets preservation condition in the image of the first moment acquisition;
Then, after the portrait for the person of being taken is unsatisfactory for preservation condition in the image that the first moment obtained, from the first moment In a set period of time later and/or before the first moment in such as 2 seconds or 3 seconds etc., selection meets preservation condition An at least image, and save at least image for meeting preservation condition.
It can be seen that by above-mentioned part since whether the portrait of the person of being taken in the image for judging the acquisition of the first moment is full Sufficient preservation condition, and the first moment obtain image in the person of being taken portrait be unsatisfactory for preservation condition after, from the first moment At least image for meeting preservation condition is chosen in a set period of time later and/or before the first moment, and is saved full There are the eyes for the person of being taken in the technical solution of at least one image of sufficient preservation condition, the image for avoiding the acquisition of the first moment The case where requiring is unsatisfactory for the moment closure or image taken pictures are fuzzy etc., thus solve in the prior art smart phone, The electronic equipments such as tablet computer or digital camera are existing because taken image is unsatisfactory for making due to requirement when shooting image It obtains user and needs the technical issues of spending the time to re-start shooting, spent so as to save when user re-shoots image Time.
In order to better understand the above technical scheme, in conjunction with appended figures and specific embodiments to upper Technical solution is stated to be described in detail.
The embodiment of the present invention provides a kind of method for saving shooting image, referring to FIG. 1, Fig. 1 is that the embodiment of the present invention mentions The method flow diagram of the preservation shooting image of confession, as shown in Figure 1, this method comprises:
S1: judge whether the portrait of the person of being taken in the image of the first moment acquisition meets preservation condition;
S2: the first moment obtain image in the person of being taken portrait be unsatisfactory for preservation condition after, from the first moment it At least image for meeting preservation condition is chosen in a set period of time afterwards and/or before the first moment, and saves satisfaction An at least image for preservation condition.
With continued reference to FIG. 2, Fig. 2 is the electronic equipment for the method that application provided in an embodiment of the present invention saves shooting image Work flow diagram will introduce in detail guarantor provided in an embodiment of the present invention in conjunction with Fig. 1 and Fig. 2 in the following section Deposit the method and electronic equipment of shooting image.
As shown in Fig. 2, using smart phone, the tablet computer of the method provided in an embodiment of the present invention for saving shooting image Or the electronic equipments such as digital camera can first call the image acquisition units such as camera of electronic equipment when shooting image, Then image acquisition units institute acquired image is shown on the preview screen of electronic equipment, certainly, needs to save at this time Multiple preview images in set period of time, set period of time for example can be 2 seconds, and 3 seconds etc., multiple preview graphs saved Picture can be full-scale (fullsize) image, and setting time can be arranged in technical staff belonging to this field according to the actual situation The occurrence of section, herein with no restrictions.
According to multiple preview images saved in set period of time, the electricity such as smart phone, tablet computer or digital camera Whether sub- equipment may determine that face in captured image, specifically can be one classifier of first off-line training, this point The meaning of class device is can to calculate the characteristic value of image child window, when the characteristic value in child window meets threshold condition, this son Window can then be judged as including face by electronic equipment, otherwise not include face.
It is continuous according to a certain percentage to reduce by image data when during detection of classifier image, obtain different rulers The zoomed image of degree, then on the image of each scale, the child window of all positions of exhaustion, the size of this child window according to The feature of classifier determines that usually 20*20 (unit can be pixel) uses classifier for each child window Calculate the characteristic value of this child window, when characteristic value meets threshold condition, this window can be judged as by electronic equipment including Face, otherwise not include face, all child windows of all scale images of final search, and merge all child windows of full figure Face as a result, so that it is determined that in captured image whether include face.
Certainly, in practical applications, electronic equipment can be in multiple preview images saved each image all It determines there is face in captured image in the case where including face, is also possible in the preview image including face be more than one Determine there is face in captured image in the case where fixed number amount, herein with no restrictions.
As shown in Fig. 2, after having face in determining captured image, smart phone, tablet computer or digital camera Equal electronic equipments can enter face mode.Certainly, in addition to by electronic equipments such as smart phone, tablet computer or digital cameras According to the judging result to multiple preview images saved automatically into face mode except, pressing can also be passed through by user One operation button triggering electronic equipment enters face mode, or a touching on the touch screen for passing through user's touch electronic equipment It controls key and enters face mode to trigger electronic equipment, herein with no restrictions.
Certainly, if there is no face or user also to enter face mode without controlling electronic devices in captured image, Electronic equipment carries out preservation of taking pictures according to normal mode, and details are not described herein again.
Multiple preview images saved according to set period of time are determined to include face figure in captured image As after, further, the method provided in an embodiment of the present invention for saving shooting image further include: based on being obtained before the first moment At least image obtained determines that the eyes for the person of being taken are in eyes-open state or closed-eye state.
Specifically, in multiple preview images saved, if the quantity for the preview image that the person of being taken closes one's eyes is more than Certain proportion, such as more than 80%, then show that the eyes for the person of being taken are in closed-eye state;If the preview that the person of being taken opens eyes The quantity of image is more than certain proportion, such as more than 60%, then shows that the eyes for the person of being taken are in eyes-open state.
In the specific implementation process, the eyes of the person of being taken in the image of the first moment acquisition are judged for eye opening or are closed one's eyes, Specifically it may is that
The human face region for the person of being taken pre-processes in the image obtained first to the first moment, such as illumination correction, Certain proportion etc. is zoomed to, then at least two characteristic points in locating human face region, and obtained from least two characteristic point institutes Extracted region go out at least two features composed by feature vector, at least two characteristic points include at least eye feature point with Canthus characteristic point finally carries out classification to feature vector and recurrence is handled it is, of course, also possible to include eyebrow, facial muscle etc., And the degree numerical value of blink is calculated, so as to determine the eyes of the person of being taken in the preview image as eye opening or close one's eyes, Such as the upper eyelid of eyes and the closure degree (numerical value blinked) of lower eyelid are more than 60%, it can determine the preview graph The eyes for the person of being taken are to close one's eyes as in, and certainly, introduction through this embodiment, technical staff belonging to this field being capable of basis Blink numerical value is set as suitable numberical range by actual conditions, and to meet the needs of actual conditions, details are not described herein again.
Certainly, judge the eyes of the person of being taken in the preview image for eye opening or the side to close one's eyes described in the present embodiment Method is one and illustrates, introduction through this embodiment, and technical staff belonging to this field can select it according to the actual situation His suitable mode judges the eyes of the person of being taken in the preview image to open eyes or closing one's eyes, and details are not described herein again.
It please also refer to Fig. 1 and Fig. 2, the eyes for the person of being taken are to open eyes in determining image taken by the first moment Afterwards, the method provided in an embodiment of the present invention for saving shooting image enters step S1, it may be assumed that in the image for judging the acquisition of the first moment Whether the portrait for the person of being taken meets preservation condition.
In practical applications, the first moment can be receive preservation instruction at the time of, such as can be user and pass through finger Press the tripper of electronic equipment, or click, the shoot buttons of touch-controlled electronic devices at the time of, be also possible to user's setting Automatic camera at the time of, herein with no restrictions;Preservation condition can be " the first moment obtain image in the person of being taken eye Eyeball is to open ", it is also possible to " portrait for the person of being taken is clear in the image that the first moment obtained ", certainly, preservation condition can also Being set according to the actual situation by user, to meet use demand of the user under different usage scenarios, such as clapped The person of taking the photograph wish image obtained be eye closing image, user can set preservation condition be " the first moment acquisition image in quilt The eyes of photographer are closure ", herein with no restrictions.
In the specific implementation process, judge whether the portrait of the person of being taken in the image of the first moment acquisition meets preservation item Part specifically can be with are as follows: judges whether the eyes of the person of being taken in image that the first moment obtained are opened, wherein is being clapped When the eyes closed for the person of taking the photograph, the image for determining that the first moment obtained is unsatisfactory for preservation condition, and/or judges what the first moment obtained Whether the portrait for the person of being taken obscures in image, wherein when the portrait for the person of being taken is fuzzy in the image that the first moment obtained, The image for determining that the first moment obtained is unsatisfactory for preservation condition.
Judge whether the eyes of the person of being taken in the image of the first moment acquisition are opened, can be introduced according in preceding sections The eyes for judging the person of being taken in preview image whether open similar mode and judged that details are not described herein again.
Judge whether the portrait of the person of being taken in the image of the first moment acquisition obscures, can be to the acquisition of the first moment The portrait for the person of being taken carries out edge detection in image, obtains corresponding multiple first intensity of multiple marginal points of local maximum Value, and by the image that preset ratio the first moment of diminution obtains, and side is carried out to the portrait of the person of being taken in the image after diminution Edge detection, obtains corresponding multiple second intensity values of multiple marginal points of local maximum, then judges every in multiple marginal points Whether the difference of the second corresponding intensity value of one marginal point and the first intensity value is greater than a threshold value, wherein in the second intensity Value with the difference of the first intensity value greater than threshold value when, determine each marginal point be it is fuzzy, finally judge mould in multiple marginal points Whether the quantity of the marginal point of paste is greater than a preset value, wherein when the quantity of fuzzy marginal point is greater than preset value, determines the The portrait for the person of being taken is fuzzy in the image that one moment obtained.
Introduction through this embodiment, technical staff belonging to this field can according to the actual situation, and threshold value, which is arranged, is Suitable numerical value, to meet the needs of actual conditions, details are not described herein again.
Certainly, judge whether the portrait of the person of being taken in the image of the first moment acquisition obscures described in the present embodiment Method be a citing, introduction through this embodiment, technical staff belonging to this field can select according to the actual situation Whether the portrait for the person of being taken obscures in the image that other suitable modes are selected to judge the acquisition of the first moment, just no longer superfluous herein It states.
Above-mentioned introduction judges whether the portrait of the person of being taken in image that the first moment obtained meets preservation condition Two kinds of forms, introduction through this embodiment, technical staff belonging to this field, which can derive, judges that the first moment obtained Image in the portrait of the person of being taken whether meet the other forms of preservation condition, details are not described herein again.
Please continue to refer to Fig. 1 and Fig. 2, after step S1, the person of being taken in the image of the first moment acquisition is determined After portrait is unsatisfactory for preservation condition, the method provided in an embodiment of the present invention for saving shooting image enters step S2, it may be assumed that from first At least image for meeting preservation condition is chosen in a set period of time after moment and/or before the first moment, and is protected It is filled with an at least image for sufficient preservation condition.
Specifically, at the time of due to the first moment to receive preservation instruction, such as it can be user and press shutter Moment, or setting automatic camera at the time of, so the setting time after the first moment and/or before the first moment In section, namely other moment near the first moment choose at least image for meeting preservation condition, belonging to this field The specific value of set period of time, such as 2 seconds or 3 seconds etc. can be arranged, and save selection according to the actual situation in technical staff At least image for meeting preservation condition out, can such as save it in the storage card of electronic equipment.
Judged for the first moment later and/or whether the image in the set period of time before the first moment meets preservation condition Similar with the Method And Principle introduced in preceding sections, in order to illustrate the succinct of book, details are not described herein again.
It can be seen that by above-mentioned part since whether the portrait of the person of being taken in the image for judging the acquisition of the first moment is full Sufficient preservation condition, and the first moment obtain image in the person of being taken portrait be unsatisfactory for preservation condition after, from the first moment At least image for meeting preservation condition is chosen in a set period of time later and/or before the first moment, and is saved full There are the eyes for the person of being taken in the technical solution of at least one image of sufficient preservation condition, the image for avoiding the acquisition of the first moment The case where requiring is unsatisfactory for the moment closure or image taken pictures are fuzzy etc., thus solve in the prior art smart phone, The electronic equipments such as tablet computer or digital camera are existing because taken image is unsatisfactory for making due to requirement when shooting image User needs the technical issues of spending the time to re-start shooting, realize to save user and re-shoot and spent when image The technical effect of time.
Based on the same inventive concept, the embodiment of the present invention also provides a kind of electronic equipment, and in practical applications, which sets It is standby to can be smart phone, tablet computer or digital camera, herein with no restrictions.
Referring to FIG. 3, Fig. 3 is the functional block diagram of electronic equipment provided in an embodiment of the present invention, as shown in figure 3, the electricity Sub- equipment includes: image acquisition units 301,;Processing unit 302 is connected with image acquisition units 301, for judging that image is adopted Whether the collection portrait for the person of being taken in the image that the first moment obtained of unit 301 meets preservation condition, wherein the first moment was Receive preservation instruction at the time of, and the first moment obtain image in the person of being taken portrait be unsatisfactory for preservation condition after, At least one figure for meeting preservation condition is chosen in a set period of time after the first moment and/or before the first moment Picture, and save at least image for meeting preservation condition.
Wherein, image acquisition units 301 can be camera, such as may include camera lens, ccd sensor or CMOS sensing The elements such as device, ISP (Image Signal Processing, image-signal processor);Processing unit 302 can be CPU (Central Processing Unit, central processing unit) can be and be integrated with the processor or X86 frame of the ARM framework of ISP The processor etc. of structure, herein with no restrictions.
In embodiments of the present invention, processing unit 302 is specifically used for the person of being taken in the image for judging the acquisition of the first moment Eyes whether open, wherein in the eyes closed for the person of being taken, determine the person of being taken in image that first moment obtains Portrait is unsatisfactory for preservation condition, and/or judges whether the portrait of the person of being taken obscures in image that the first moment obtained, wherein When the portrait for the person of being taken is fuzzy in the image that the first moment obtained, the person of being taken in the image of the first moment acquisition is determined Portrait is unsatisfactory for preservation condition.
In embodiments of the present invention, processing unit 302 is also used to the person of being taken in the image for judging the acquisition of the first moment Eyes whether open before, based on at least image obtained before the first moment, at the eyes that determine the person of being taken In eyes-open state or closed-eye state.
In embodiments of the present invention, processing unit 302 is specifically used for the person of being taken in the image obtained to the first moment Human face region is pre-processed, and at least two characteristic points in locating human face region, and is obtained where at least two characteristic points Feature vector composed by least two features that extracted region goes out, at least two characteristic points include at least eye feature point and eye Corner characteristics point, and it is based on feature vector, judge whether the eyes of the person of being taken in the image of the first moment acquisition are opened.
In embodiments of the present invention, processing unit 302 is specifically used for the person of being taken in the image obtained to the first moment Portrait carries out edge detection, obtains corresponding multiple first intensity values of multiple marginal points of local maximum, and press preset ratio The image of the first moment acquisition is reduced, and edge detection is carried out to the portrait of the person of being taken in the image after diminution, obtains part Corresponding multiple second intensity values of multiple marginal points of maximum, and judge that each marginal point is corresponding in multiple marginal points Whether the difference of the second intensity value and the first intensity value is greater than a threshold value, wherein in the difference of the second intensity value and the first intensity value When greater than threshold value, determine that each marginal point is fuzzy, and judge in multiple marginal points obscure marginal point quantity whether Greater than a preset value, wherein when the quantity of fuzzy marginal point is greater than preset value, determine quilt in the image of the first moment acquisition The portrait of photographer is fuzzy.
The method of preservation shooting image in electronic equipment and previous embodiment in the present embodiment is based on same invention Two aspects under design, are in front described in detail the implementation process of method, so those skilled in the art It can be apparent from the structure and implementation process of the electronic equipment in the present embodiment, according to foregoing description in order to illustrate the letter of book Clean, details are not described herein again.
Technical solution in the embodiments of the present invention, at least have the following technical effects or advantages:
Whether the portrait for the person of being taken meets preservation condition in image due to judging the acquisition of the first moment, and at first After the portrait for the person of being taken is unsatisfactory for preservation condition in the image that quarter obtains, after the first moment and/or before the first moment A set period of time in choose and meet at least image of preservation condition, and save at least one figure for meeting preservation condition There are the eyes for the person of being taken in the moment closure or figure taken pictures in the technical solution of picture, the image for avoiding the acquisition of the first moment It is unsatisfactory for the case where requiring as fuzzy etc., so solving the electricity such as smart phone, tablet computer or digital camera in the prior art Sub- equipment is existing because taken image is unsatisfactory for making user need to spend the time again due to requirement when shooting image The technical issues of being shot realizes the technical effect for saving the time it takes when user re-shoots image.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program Product.Therefore, complete hardware embodiment, complete software embodiment or reality combining software and hardware aspects can be used in the present invention Apply the form of example.Moreover, it wherein includes the computer of computer usable program code that the present invention, which can be used in one or more, The computer program implemented in usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) produces The form of product.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates, Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one The step of function of being specified in a box or multiple boxes.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (8)

1. a kind of method for saving shooting image characterized by comprising
Judge whether the portrait of the person of being taken in the image of the first moment acquisition meets preservation condition;
After the portrait of the person of being taken described in the image that first moment obtains is unsatisfactory for the preservation condition, from described the At least one for meeting the preservation condition is chosen in a set period of time after one moment and/or before first moment Image, and save at least image for meeting the preservation condition;It wherein, is the person of being taken in the preservation condition It is described before whether the eyes for the person of being taken are opened in the image for judging the first moment acquisition when eyes are opened Method further include:
Based on at least image obtained before first moment, the eyes of the person of being taken described in determination are in eye opening shape State or closed-eye state, wherein when the eyes of the person of being taken are in the eyes-open state, execute step: judging described the Whether the eyes for the person of being taken are opened in the image that one moment obtained.
2. the method as described in claim 1, which is characterized in that the person of being taken in the image that the first moment of the judgement obtains Whether portrait meets preservation condition, specifically:
Judge whether the eyes of the person of being taken in the image of the first moment acquisition are opened, wherein the person's of being taken When eyes closed, determine that the portrait of the person of being taken in the image of the first moment acquisition is unsatisfactory for the preservation condition;And/or
Judge whether the portrait of the person of being taken described in the image of the first moment acquisition obscures, wherein at described first When the portrait of the person of being taken described in the image that quarter obtains is fuzzy, the person of being taken in the image of the first moment acquisition is determined Portrait is unsatisfactory for the preservation condition.
3. method according to claim 2, which is characterized in that be taken in the image that judgement first moment obtains Whether the eyes of person are opened, and specifically include:
The human face region of the person of being taken described in the image obtained to first moment pre-processes;
At least two characteristic points of the human face region are positioned, and obtains and is extracted from least two characteristic point region At least two features composed by feature vector, at least two characteristic point includes at least eye feature point and canthus feature Point;
Based on described eigenvector, judge whether the eyes of the person of being taken described in the image of the first moment acquisition are opened.
4. method according to claim 2, which is characterized in that quilt described in the image that judgement first moment obtains Whether the portrait of photographer obscures, and specifically includes:
The portrait of the person of being taken described in the image obtained to first moment carries out edge detection, obtains local maximum Corresponding multiple first intensity values of multiple marginal points;
The image of the first moment acquisition is reduced by preset ratio, and to the portrait of the person of being taken described in the image after diminution Edge detection is carried out, corresponding multiple second intensity values of the multiple marginal point of local maximum are obtained;
Judge each marginal point is corresponding in the multiple marginal point second intensity value and first intensity value it Whether difference is greater than a threshold value, wherein when the difference of second intensity value and first intensity value is greater than the threshold value, Determine that each described marginal point is fuzzy;
Judge whether the quantity of the marginal point obscured in the multiple marginal point is greater than a preset value, wherein described fuzzy When the quantity of marginal point is greater than the preset value, the portrait mould of the person of being taken described in the image of the first moment acquisition is determined Paste.
5. a kind of electronic equipment characterized by comprising
Image acquisition units;
Processing unit is connected with described image acquisition unit, for judging what described image acquisition unit obtained at the first moment Whether the portrait for the person of being taken meets preservation condition, and the person of being taken described in the image of first moment acquisition in image Portrait be unsatisfactory for the preservation condition after, after first moment and/or before first moment one setting when Between at least image for meeting the preservation condition is chosen in section, and save at least one figure for meeting the preservation condition Picture;Wherein, when the eyes that the preservation condition is the person of being taken are opened, the processing unit is also used to:
Before whether the eyes for judging the person of being taken in image that first moment obtains are opened, based on described the At least image obtained before one moment, determine described in the eyes of the person of being taken be in eyes-open state or closed-eye state.
6. electronic equipment as claimed in claim 5, which is characterized in that when the processing unit is specifically used for judging described first Whether the eyes for carving the person of being taken in the image obtained are opened, wherein in the eyes closed of the person of being taken, described in determination The portrait for the person of being taken is unsatisfactory for the preservation condition in the image that first moment obtained, and/or judges that first moment is obtained Whether the portrait of the person of being taken described in the image obtained obscures, wherein is clapped described in the image that first moment obtains When the portrait for the person of taking the photograph is fuzzy, determine that the portrait of the person of being taken in the image of the first moment acquisition is unsatisfactory for the preservation item Part.
7. electronic equipment as claimed in claim 5, which is characterized in that the processing unit was specifically used for first moment The human face region of the person of being taken described in the image of acquisition is pre-processed, and positions at least two features of the human face region Point, and obtain feature vector composed by least two features extracted from least two characteristic point region, institute At least two characteristic points are stated including at least eye feature point and canthus characteristic point, and are based on described eigenvector, judge described the Whether the eyes of the person of being taken described in the image that one moment obtained are opened.
8. electronic equipment as claimed in claim 5, which is characterized in that the processing unit was specifically used for first moment The portrait of the person of being taken described in the image of acquisition carries out edge detection, and the multiple marginal points for obtaining local maximum are corresponding more A first intensity value, and the image that first moment obtains is reduced by preset ratio, and to quilt described in the image after diminution The portrait of photographer carries out edge detection, obtains corresponding multiple second intensity values of the multiple marginal point of local maximum, And judge the difference of each marginal point is corresponding in the multiple marginal point second intensity value and first intensity value Whether a threshold value is greater than, wherein when the difference of second intensity value and first intensity value is greater than the threshold value, really Each fixed described marginal point is fuzzy, and it is pre- to judge whether the quantity of the marginal point obscured in the multiple marginal point is greater than one If value, wherein when the quantity of the fuzzy marginal point is greater than the preset value, determine the image of the first moment acquisition Described in the person of being taken portrait it is fuzzy.
CN201380078887.XA 2013-11-22 2013-11-22 A kind of method and electronic equipment saving shooting image Active CN105453533B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910423560.0A CN110121030B (en) 2013-11-22 2013-11-22 Method for storing shot image and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/087725 WO2015074261A1 (en) 2013-11-22 2013-11-22 Method for saving photographed image, and electronic device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN201910423560.0A Division CN110121030B (en) 2013-11-22 2013-11-22 Method for storing shot image and electronic equipment

Publications (2)

Publication Number Publication Date
CN105453533A CN105453533A (en) 2016-03-30
CN105453533B true CN105453533B (en) 2019-05-28

Family

ID=53178830

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201380078887.XA Active CN105453533B (en) 2013-11-22 2013-11-22 A kind of method and electronic equipment saving shooting image
CN201910423560.0A Active CN110121030B (en) 2013-11-22 2013-11-22 Method for storing shot image and electronic equipment

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201910423560.0A Active CN110121030B (en) 2013-11-22 2013-11-22 Method for storing shot image and electronic equipment

Country Status (2)

Country Link
CN (2) CN105453533B (en)
WO (1) WO2015074261A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105592263B (en) * 2015-12-17 2019-02-22 小米科技有限责任公司 Image capturing method, device and terminal
CN112843678B (en) * 2020-12-31 2023-05-23 上海米哈游天命科技有限公司 Method and device for shooting image, electronic equipment and storage medium

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101584205B (en) * 2007-01-15 2011-07-13 松下电器产业株式会社 Imaging device
JP5169139B2 (en) * 2007-10-25 2013-03-27 株式会社ニコン Camera and image recording program
JP5055166B2 (en) * 2008-02-29 2012-10-24 キヤノン株式会社 Eye open / closed degree determination device, method and program, and imaging device
CN102622740B (en) * 2011-01-28 2016-07-20 鸿富锦精密工业(深圳)有限公司 Anti-eye closing portrait system and method
CN103369214A (en) * 2012-03-30 2013-10-23 华晶科技股份有限公司 An image acquiring method and an image acquiring apparatus
CN103096124B (en) * 2013-02-20 2015-01-21 浙江宇视科技有限公司 Auxiliary focusing method and auxiliary focusing device

Also Published As

Publication number Publication date
CN105453533A (en) 2016-03-30
CN110121030B (en) 2020-11-24
WO2015074261A1 (en) 2015-05-28
CN110121030A (en) 2019-08-13

Similar Documents

Publication Publication Date Title
Corcoran et al. Real-time eye gaze tracking for gaming design and consumer electronics systems
CN103428428B (en) Image capturing device and image catching method
US11782507B2 (en) Image changes based on facial appearance
CN107423699B (en) Biopsy method and Related product
CN112771612B (en) Method and device for shooting image
CN107231529A (en) Image processing method, mobile terminal and storage medium
TW201038063A (en) Digital camera and image capturing method
CN105528078B (en) The method and device of controlling electronic devices
CN111563435A (en) Sleep state detection method and device for user
WO2020108656A1 (en) Image selecting method and related device
US20200035037A1 (en) Virtual display method, device, electronic apparatus and computer readable storage medium
CN109167893A (en) Shoot processing method, device, storage medium and the mobile terminal of image
CN107835359A (en) Triggering method of taking pictures, mobile terminal and the storage device of a kind of mobile terminal
CN108513074B (en) Self-photographing control method and device and electronic equipment
CN106254807A (en) Extract electronic equipment and the method for rest image
CN109525837A (en) The generation method and mobile terminal of image
CN105453533B (en) A kind of method and electronic equipment saving shooting image
CN106650583B (en) Method for detecting human face, device and terminal device
US10257414B2 (en) Method and system for smart group portrait
CN108259769A (en) Image processing method, device, storage medium and electronic equipment
CN108462831A (en) Image processing method, device, storage medium and electronic equipment
CN106126066A (en) Control method, device and the mobile terminal of a kind of augmented reality function
CN106201712B (en) The method of adjustment of target identification frequency, device and mobile terminal in augmented reality
CN105578025B (en) A kind of photographic method and photo terminal
CN105513009B (en) A kind of information processing method and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20171027

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Applicant after: HUAWEI terminal (Dongguan) Co., Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Applicant before: Huawei Device Co., Ltd.

CB02 Change of applicant information
CB02 Change of applicant information

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant after: Huawei Device Co., Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Applicant before: HUAWEI terminal (Dongguan) Co., Ltd.

GR01 Patent grant
GR01 Patent grant