CN105138950A - Photographing method and user terminal - Google Patents

Photographing method and user terminal Download PDF

Info

Publication number
CN105138950A
CN105138950A CN201510394385.9A CN201510394385A CN105138950A CN 105138950 A CN105138950 A CN 105138950A CN 201510394385 A CN201510394385 A CN 201510394385A CN 105138950 A CN105138950 A CN 105138950A
Authority
CN
China
Prior art keywords
relative distance
distance value
image
user terminal
personage
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510394385.9A
Other languages
Chinese (zh)
Other versions
CN105138950B (en
Inventor
成蛟
林煜桂
陈佳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510394385.9A priority Critical patent/CN105138950B/en
Publication of CN105138950A publication Critical patent/CN105138950A/en
Application granted granted Critical
Publication of CN105138950B publication Critical patent/CN105138950B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/165Detection; Localisation; Normalisation using facial parts and geometric relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • G06V40/19Sensors therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Multimedia (AREA)
  • Theoretical Computer Science (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Ophthalmology & Optometry (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)

Abstract

The embodiment of the invention discloses a photographing method and a user terminal. The photographing method comprises the steps that the user terminal firstly acquires a relative distance value between an upper eyelid and a lower eyelid of each eye of a figure in an acquired image; then whether a relative distance value, which is less than a preset distance threshold, exists in the acquired relative distance values or not is detected; and if a relative distance value, which is less than the preset threshold, is detected to exist in the acquired relative distance values, the user terminal is controlled to photograph the figure, and a photographed image is acquired. According to the invention, the final imaging effect of the user terminal can be improved by implementing the embodiment of the invention.

Description

A kind of photographic method and user terminal
Technical field
The present invention relates to field of terminal technology, particularly relate to a kind of photographic method and user terminal.
Background technology
Along with the fast development of internet and the universal rapidly of terminal, the function of terminal is become stronger day by day; User can utilize terminal access external network data resource, contacts with good friend and take pictures etc.But in actual applications, when user uses terminal to take pictures, usually because some extraneous factors or oneself factor cause when terminal imaging, the eyes of user are in the state that closed, and cause final imaging effect not good.
Summary of the invention
Embodiments provide a kind of photographic method and user terminal, the final imaging effect of user terminal can be improved.
First aspect, the embodiment of the invention discloses a kind of photographic method, comprising:
Obtain the upper eyelid of each eyes in the image collected in personage and the relative distance value of palpebra inferior, described relative distance comprises the air line distance between the predeterminable area in described upper eyelid and the default difference of described palpebra inferior, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received;
Detect the relative distance value whether existing in the relative distance value of described acquisition and be less than the distance threshold preset;
If detect the relative distance value existing in the relative distance value of described acquisition and be less than the described distance threshold preset, then control described user terminal and described personage is taken, and obtain the image taken and obtain.
In conjunction with the implementation of first aspect, in the first possible implementation of first aspect, the relative distance value in upper eyelid and palpebra inferior that described step obtains each eyes in the image collected in personage specifically comprises:
Obtain the face characteristic information of personage in the image collected;
When judging that the quantity of personage in described image at least comprises two according to described face characteristic information, then obtain the upper eyelid of each eye in described image and the relative distance value of palpebra inferior.
In conjunction with the first possible implementation of first aspect, in the implementation that the second of first aspect is possible, whether described step detects in the relative distance value of described acquisition exists the relative distance value being less than the distance threshold preset and specifically comprises:
Detect the quantity of the relative distance value being less than the distance threshold preset in the relative distance value of described acquisition;
Whether the quantity being less than the relative distance value of the distance threshold preset described in judgement is greater than the amount threshold preset, and wherein, described amount threshold is the amount threshold corresponding with the number of person in described image.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, if described step detects the relative distance value existing in the relative distance value of described acquisition and be less than the described distance threshold preset, then control described user terminal to take described personage, and the image that acquisition shooting obtains specifically comprises:
If when the quantity being less than the relative distance value of the distance threshold preset described in judging is greater than the described amount threshold preset, then controls described user terminal and take described personage, and obtain the image taken and obtain.
In conjunction with the implementation of first aspect, in the 4th kind of possible implementation of first aspect, the relative distance value in upper eyelid and palpebra inferior that described step obtains each eyes in the image collected in personage specifically comprises:
Obtain the upper eyelid central point of each eyes in the image collected in personage and the relative distance value of palpebra inferior central point, described relative distance comprises the predeterminable area central point in described upper eyelid and palpebra inferior presets the air line distance distinguished between central point, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received.
Second aspect, the embodiment of the invention discloses a kind of user terminal, comprising:
Acquiring unit, for obtaining the upper eyelid of each eyes in the image that collects in personage and the relative distance value of palpebra inferior, described relative distance comprises the air line distance between the predeterminable area in described upper eyelid and the default difference of described palpebra inferior, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received;
Detecting unit, for detect described acquiring unit obtain relative distance value in whether there is the relative distance value being less than the distance threshold preset;
Control module, if detect the relative distance value existing in the relative distance value of described acquisition and be less than the described distance threshold preset for described detecting unit, then controls described user terminal and takes described personage, and obtains the image taken and obtain.
In conjunction with the user terminal of second aspect, in the first possible user terminal of second aspect, described acquiring unit comprises:
First acquisition module, for obtaining the face characteristic information of personage in the image that collects;
Second acquisition module, during for judging that the quantity of personage in described image at least comprises two when the face characteristic information obtained according to described first acquisition module, then obtains the upper eyelid of each eye in described image and the relative distance value of palpebra inferior.
In conjunction with the first possible user terminal of second aspect, in the user terminal that the second of second aspect is possible, described detecting unit comprises:
Detection module, is less than the quantity of the relative distance value of the distance threshold preset for detecting in relative distance value that described second acquisition module obtains;
Judge module, for judging whether the quantity being less than the relative distance value of the distance threshold preset that described detection module detects is greater than the amount threshold preset, wherein, described amount threshold is the amount threshold corresponding with the number of person in described image.
In conjunction with the user terminal that the second of second aspect is possible, in the third possible user terminal of second aspect, if when the quantity being less than the relative distance value of the distance threshold preset described in described control module judges specifically for described judge module is greater than the amount threshold preset, then control described user terminal to take described personage, and obtain the image taken and obtain.
In conjunction with the user terminal of second aspect, in the 4th kind of possible user terminal of second aspect, described acquiring unit is specifically for obtaining the upper eyelid central point of each eyes in the image that collects in personage and the relative distance value of palpebra inferior central point, described relative distance comprises the predeterminable area central point in described upper eyelid and palpebra inferior presets the air line distance distinguished between central point, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received.
In the embodiment of the present invention, first user terminal obtains the upper eyelid of each eyes in the image collected in personage and the relative distance value of palpebra inferior, described relative distance comprises the predeterminable area in described upper eyelid and palpebra inferior and presets air line distance between difference, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received; Detect the relative distance value whether existing in the relative distance value of described acquisition and be less than the distance threshold preset; If detect the relative distance value existing in the relative distance value of described acquisition and be less than the distance threshold preset, then control described user terminal and described personage is taken, and obtain the image taken and obtain.In embodiments of the present invention, when in the relative distance value detecting described acquisition, existence is less than the relative distance value of the distance threshold preset, then user terminal judges that the current eyes of user are in the state that closed, and now can control described user terminal and take described personage.Visible, implement the embodiment of the present invention and can improve the final imaging effect of user terminal.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, be briefly described to the accompanying drawing used required in embodiment below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the schematic flow sheet of a kind of photographic method disclosed in the embodiment of the present invention;
Fig. 2 is the schematic flow sheet of another kind of photographic method disclosed in the embodiment of the present invention;
Fig. 3 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of the embodiment of the present invention another user terminal disclosed.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of photographic method and user terminal, in embodiments of the present invention, when in the relative distance value detecting described acquisition, existence is less than the relative distance value of the distance threshold preset, then user terminal judges that the current eyes of user are in the state that closed, and now can control described user terminal and take described personage.Visible, implement the embodiment of the present invention and can improve the final imaging effect of user terminal.
Refer to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of photographic method disclosed in the embodiment of the present invention.Wherein, method shown in Fig. 1 can be applied to smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palm PC and mobile internet device (MobileInternetDevices, MID), PAD etc. and be provided with in the terminal of camera application.As shown in Figure 1, this photographic method can comprise the following steps:
The upper eyelid of each eyes in the image that S101, acquisition collect in personage and the relative distance value of palpebra inferior.
In the embodiment of the present invention, relative distance comprises the air line distance between the predeterminable area in upper eyelid and the default difference of palpebra inferior.Wherein, the predeterminable area in upper eyelid and the predeterminable area of palpebra inferior preset, but and the predeterminable area in upper eyelid is identical with the predeterminable area size of palpebra inferior and shape is identical.And for eyes, after the predeterminable area in upper eyelid is determined, the predeterminable area of palpebra inferior is also determined, and is unique.For example, with the corresponding relation of eyes for example bright upper eyelid predeterminable area and palpebra inferior predeterminable area.When using the nasion as reference point, when the central point of upper eyelid predeterminable area is the distance nasion 2 centimetres, then the central point of the central area of palpebra inferior should make according to the central point of upper eyelid predeterminable area the straight line that is parallel to the bridge of the nose, the point crossing with palpebra inferior is also the central point of palpebra inferior predeterminable area.
In the embodiment of the present invention, the image collected comprises the image that user terminal is taken when responding the shooting instruction received.Wherein, user can carry out input shooting instruction by touch-control user terminal target button, and also can be by input voice information, subsequent user terminal be by the voice messaging of user terminal speech identifying function identification user input.
The relative distance value being less than the distance threshold preset whether is there is in the relative distance value that S102, detection obtain.
In the embodiment of the present invention, a distance threshold can be preset in the user terminal.Wherein, the setting of this distance threshold can be that user sets as required, also can be that user terminal sets according to user's history setting recording, also can be that user terminal is when networking, automatic search people is when eyes are in the state that closed in normal state, the distance value in the region that certain region, upper eyelid is corresponding with palpebra inferior, and the distance threshold of this user terminal is set as the distance value that searches.
In the embodiment of the present invention, due under normal condition, each user has two eyes.Therefore, as the optional embodiment of one, user terminal can detect the relative distance value whether existing in the relative distance value of acquisition and be less than the distance threshold preset.When existence is less than the relative distance value of the distance threshold preset in the relative distance value detecting acquisition, then says in the personage that user terminal judges in the current image collected, have at least the eyes of a user to be in the state of closed.
If S103 detects the relative distance value existing in the relative distance value obtained and be less than the distance threshold preset, then control user terminal and personage is taken, and obtain the image taken and obtain.
In the embodiment of the present invention, be less than the relative distance value of the distance threshold preset if detect in the relative distance value obtained to exist, then user terminal judges the state that personage corresponding in the current image collected has eyes to be in closed.Therefore, user terminal can be taken personage at the time interval controls user terminal preset, and obtains the image taken and obtain.
In the embodiment of the present invention, the time interval preset can be user's oneself setting as required, also can be that user terminal sets according to the history setting recording of user, also can be that user terminal is searched for according to keyword " under normal condition; the time interval that people blinks ", and set according to the optimum searched.
In the embodiment of the present invention, when user terminal carries out setting this time threshold according to the history setting recording of user, can comprise the following steps:
11) the history setting recording for time interval setting set in shooting process in user terminal is obtained;
12) determine according to described history setting recording the mean value that the time interval sets;
13) according to the setting rule prestored, the time interval of described user terminal is set to and the time interval that described mean value matches.
In the embodiment of the present invention, the above-mentioned time interval all refers to the time interval set in shooting process.
In FIG, first user terminal obtains the upper eyelid of each eyes in the image collected in personage and the relative distance value of palpebra inferior, relative distance comprises the predeterminable area in upper eyelid and palpebra inferior and presets air line distance between difference, and the image collected comprises the image that user terminal is taken when responding the shooting instruction received; Detect in the relative distance value obtained and whether there is the relative distance value being less than the distance threshold preset; If detect the relative distance value existing in the relative distance value obtained and be less than the distance threshold preset, then control user terminal and described personage is taken, and obtain the image taken and obtain.In embodiments of the present invention, when in the relative distance value detecting acquisition, existence is less than the relative distance value of the distance threshold preset, then user terminal judges that the current eyes of user are in the state that closed, and now can control user terminal and take personage.Visible, implement the embodiment of the present invention and can improve the final imaging effect of user terminal.
Refer to Fig. 2, Fig. 2 is the schematic flow sheet of another kind of photographic method disclosed in the embodiment of the present invention.As shown in Figure 2, this photographic method comprises the following steps:
The face characteristic information of personage in the image that S201, acquisition collect.
In the embodiment of the present invention, before execution step S201, can also comprise the following steps:
21) detect user terminal and whether open retake pattern;
22) when detection user terminal opens retake pattern, then the step of the face characteristic information of personage in the image obtaining and collect is performed;
23) when detection user terminal does not open retake pattern, then export for pointing out the information of opening retake pattern.
In the embodiment of the present invention, the way of output of information can comprise combination of at least two kinds of modes in the word way of output, voice output mode, the vibration way of output and first three kind mode etc.
In the embodiment of the present invention, the image collected comprises the image that user terminal is taken when responding the shooting instruction received.Wherein, face characteristic information can comprise the quantity of eyes, the quantity of nose and the quantity of face etc.Concrete, above-mentioned face characteristic information is mainly applicable to the quantity detecting the number comprised in the current image collected.
S202, when judging that according to face characteristic information the quantity of personage in image at least comprises two, then obtain the upper eyelid of each eye and the relative distance value of palpebra inferior in image.
In the embodiment of the present invention, due to when according to face characteristic information, user terminal judges that the quantity of personage in image at least comprises two, then the state of the human eye of corresponding personage also can get more and more.Therefore, the upper eyelid of each eye of personage in the image got and the relative distance value of palpebra inferior be detected.
As the optional embodiment of one, when obtaining personage in the image collected, the upper eyelid central point of each eyes in each personage and the relative distance value of palpebra inferior central point can be obtained, relative distance comprises the predeterminable area central point in upper eyelid and palpebra inferior presets the air line distance distinguished between central point, and the image collected comprises the image that user terminal is taken when responding the shooting instruction received.
The quantity of the relative distance value of the distance threshold preset is less than in the relative distance value that S203, detection obtain.
In the embodiment of the present invention, when detecting the eyes existing in the relative distance value obtained and be less than the distance threshold preset, then detect the quantity of the relative distance value being less than the distance threshold preset in the relative distance value of acquisition.
S204, judge whether the quantity being less than the relative distance value of the distance threshold preset is greater than the amount threshold preset.
In the embodiment of the present invention, amount threshold is the amount threshold corresponding with the number of person in image.
In the embodiment of the present invention, an amount threshold can be preset in the user terminal.The setting of this amount threshold can be user's oneself setting as required; Also can be that user terminal sets according to the history setting recording of user; Also can be preset a proportion threshold value in the user terminal, user terminal determines the quantity of the relative distance value being less than the distance threshold preset according to this proportion threshold value.Wherein, this proportion threshold value is for representing that relative distance value is less than the ratio of eyes quantity total in the personage that the quantity of eyes corresponding to the distance threshold that presets and user terminal collect.
The process whether being greater than according to the quantity presetting a proportion threshold value and judge to be less than the relative distance value of the distance threshold preset the amount threshold preset when user terminal can comprise the following steps:
31) when determining current number of person according to the face characteristic information that collects, according to the quantity presetting a proportion threshold value in user terminal and determine to allow to be less than the eyes of the distance threshold preset in the relative distance value of upper eyelid and palpebra inferior;
32) obtain actual acquisition to upper eyelid and palpebra inferior relative distance value in be less than the quantity of the eyes of the distance threshold preset;
33) be less than in the relative distance value of more above-mentioned permission upper eyelid and palpebra inferior the quantity of the eyes of the distance threshold preset and above-mentioned actual acquisition to upper eyelid and palpebra inferior relative distance value in be less than the magnitude relationship of the quantity of the eyes of the distance threshold preset.
For example, when the face characteristic information collected by detection judges that current people's quantity is 10, the quantity of then corresponding eyes is 20, if the proportion threshold value of setting is 20%, then in 20 eyes collected, the upper eyelid of 4 eyes and the relative distance value of palpebra inferior is allowed to be less than the distance threshold preset.When the quantity that the upper eyelid of eyes and the relative distance value of palpebra inferior in the current image collected be less than the distance threshold preset if detect is 5, then performs step and control user terminal personage is taken, and obtain the image taken and obtain.If when the quantity that before detecting, in the image that collects, the upper eyelid of eyes and the relative distance value of palpebra inferior are less than the distance threshold preset is 3, then point out user this shooting end.
If when S205 judges that the quantity being less than the relative distance value of the distance threshold preset is greater than the amount threshold preset, then control user terminal and personage is taken, and obtain the image taken and obtain.
In fig. 2, describe in detail when user terminal to judge that according to face characteristic information the quantity of personage in the image collected at least comprises two, user terminal first detects the quantity of the relative distance value being less than the distance threshold preset in the relative distance value of acquisition; Judge whether the quantity being less than the relative distance value of the distance threshold preset is greater than the amount threshold preset again; Finally, if when the quantity being less than the relative distance value of the distance threshold preset described in judging is greater than the amount threshold preset, controls user terminal and personage is taken, and obtain the image taken and obtain.Visible, implement the embodiment of the present invention, still can improve the final imaging effect of user terminal.
Refer to Fig. 3, Fig. 3 is the structural representation of a kind of user terminal disclosed in the embodiment of the present invention, for performing above-mentioned photographic method.Wherein, the user terminal related in Fig. 3 can include but not limited to that smart mobile phone (as Android phone, iOS mobile phone etc.), panel computer, palm PC and mobile internet device (MobileInternetDevices, MID), PAD etc. are provided with the terminal of camera application.As shown in Figure 3, this user terminal can comprise: acquiring unit 301, detecting unit 302 and control module 303, wherein,
Acquiring unit 301, for obtaining the upper eyelid of each eyes in the image that collects in personage and the relative distance value of palpebra inferior.
In the embodiment of the present invention, relative distance comprises the air line distance between the predeterminable area in upper eyelid and the default difference of palpebra inferior.Wherein, the predeterminable area in upper eyelid and the predeterminable area of palpebra inferior preset, and the predeterminable area in upper eyelid and the predeterminable area of palpebra inferior can be that size is identical and shape is identical.And for eyes, after the predeterminable area in upper eyelid is determined, the predeterminable area of palpebra inferior is also determined, and is unique.For example, with the corresponding relation of eyes for example bright upper eyelid predeterminable area and palpebra inferior predeterminable area.When using the nasion as reference point, when the central point of upper eyelid predeterminable area is the distance nasion 2 centimetres, then the central point of the central area of palpebra inferior should make according to the central point of upper eyelid predeterminable area the straight line that is parallel to the bridge of the nose, the point crossing with palpebra inferior is also the central point of palpebra inferior predeterminable area.
In the embodiment of the present invention, the image collected comprises the image that user terminal is taken when responding the shooting instruction received.Wherein, user can carry out input shooting instruction by touch-control user terminal target button, and also can be by input voice information, subsequent user terminal be by the voice messaging of user terminal speech identifying function identification user input.
Whether detecting unit 302, exist in the relative distance value that measurement acquisition unit 301 obtains the relative distance value being less than the distance threshold preset.
In the embodiment of the present invention, a distance threshold can be preset in the user terminal.Wherein, the setting of this distance threshold can be that user sets as required, also can be that user terminal sets according to user's history setting recording, also can be that user terminal is when networking, automatic search people is when eyes are in the state that closed in normal state, the distance value in the region that certain region, upper eyelid is corresponding with palpebra inferior, and the distance threshold of this user terminal is set as the distance value that searches.
In the embodiment of the present invention, due under normal condition, each user has two eyes.Therefore, as the optional embodiment of one, detecting unit 302 can detect the relative distance value whether existing in the relative distance value of acquisition and be less than the distance threshold preset.When existence is less than the relative distance value of the distance threshold preset in the relative distance value that detecting unit 302 detection obtains, then says in the personage that user terminal judges in the current image collected, have at least the eyes of a user to be in the state of closed.
, there is if detect for detecting unit 302 in the relative distance value obtained the relative distance value being less than the distance threshold preset in control module 303, then controls user terminal and take personage, and obtain the image taken and obtain.
In the embodiment of the present invention, if detecting unit 302 detects in the relative distance value obtained to exist be less than the relative distance value of the distance threshold preset, then control module 303 judges the state that personage corresponding in the current image collected has eyes to be in closed.Therefore, control module 303 can be taken personage at the time interval controls user terminal preset, and obtains the image taken and obtain.
In the embodiment of the present invention, the time interval preset can be user's oneself setting as required, also can be that user terminal sets according to the history setting recording of user, also can be that user terminal is searched for according to keyword " under normal condition; the time interval that people blinks ", and set according to the optimum searched.
In the embodiment of the present invention, when user terminal carries out setting this time threshold according to the history setting recording of user, can comprise the following steps:
11) the history setting recording for time interval setting set in shooting process in user terminal is obtained;
12) determine according to described history setting recording the mean value that the time interval sets;
13) according to the setting rule prestored, the time interval of described user terminal is set to and the time interval that described mean value matches.
In the embodiment of the present invention, the above-mentioned time interval all refers to the time interval set in shooting process.
In figure 3, first acquiring unit 301 obtains the upper eyelid of each eyes in the image collected in personage and the relative distance value of palpebra inferior, relative distance comprises the predeterminable area in upper eyelid and palpebra inferior and presets air line distance between difference, and the image collected comprises the image that user terminal is taken when responding the shooting instruction received; Detecting unit 302 detects in the relative distance value obtained whether there is the relative distance value being less than the distance threshold preset; If detecting unit 302 detects in the relative distance value obtained to exist be less than the relative distance value of the distance threshold preset, then control module 303 controls user terminal and takes described personage, and obtains the image taken and obtain.In embodiments of the present invention, when in the relative distance value that detecting unit 302 detection obtains, existence is less than the relative distance value of the distance threshold preset, then control module 303 judges that the current eyes of user are in the state that closed, and now can control user terminal and take personage.Visible, implement the embodiment of the present invention and can improve the final imaging effect of user terminal.
Refer to Fig. 4, Fig. 4 is the structural representation of another kind of user terminal disclosed in the embodiment of the present invention, for performing above-mentioned photographic method.Wherein, Fig. 4 obtains at the enterprising one-step optimization in the basis of Fig. 3, except comprising all unit shown in Fig. 3, can also refinement obtain with lower module further: the first acquisition module 3010, second acquisition module 3011, detection module 3020 and judge module 3021, wherein.
First acquisition module 3010, for obtaining the face characteristic information of personage in the image that collects.
Second acquisition module 3011, during for judging that the quantity of personage in image at least comprises two when the face characteristic information obtained according to the first acquisition module 3010, then obtains the upper eyelid of each eye and the relative distance value of palpebra inferior in image.
In the embodiment of the present invention, the image collected comprises the image that user terminal is taken when responding the shooting instruction received.Wherein, face characteristic information can comprise the quantity of eyes, the quantity of nose and the quantity of face etc.Concrete, above-mentioned face characteristic information is mainly applicable to the quantity detecting the number comprised in the current image collected.
In the embodiment of the present invention, due to when according to face characteristic information, the second acquisition module 3011 judges that the quantity of personage in image at least comprises two, then the state of the human eye of corresponding personage also can get more and more.Therefore, the upper eyelid of each eye of personage in the image got and the relative distance value of palpebra inferior be detected.
As the optional embodiment of one, when the first acquisition module 3010 obtains personage in the image collected, second acquisition module 3011 can obtain the upper eyelid central point of each eyes in each personage and the relative distance value of palpebra inferior central point, relative distance comprises the predeterminable area central point in upper eyelid and palpebra inferior presets the air line distance distinguished between central point, and the image collected comprises the image that user terminal is taken when responding the shooting instruction received.
Detection module 3020, is less than the quantity of the relative distance value of the distance threshold preset for detecting in relative distance value that the second acquisition module 3011 obtains.
Judge module 3021, for judging whether the quantity being less than the relative distance value of the distance threshold preset that detection module detects is greater than the amount threshold preset, wherein, amount threshold is the amount threshold corresponding with the number of person in image.
In the embodiment of the present invention, amount threshold is the amount threshold corresponding with the number of person in image.
In the embodiment of the present invention, an amount threshold can be preset in the user terminal.The setting of this amount threshold can be user's oneself setting as required; Also can be that user terminal sets according to the history setting recording of user; Also can be preset a proportion threshold value in the user terminal, user terminal determines the quantity of the relative distance value being less than the distance threshold preset according to this proportion threshold value.Wherein, this proportion threshold value is for representing that relative distance value is less than the ratio of eyes quantity total in the personage that the quantity of eyes corresponding to the distance threshold that presets and user terminal collect.
The process whether being greater than according to the quantity presetting a proportion threshold value and judge to be less than the relative distance value of the distance threshold preset the amount threshold preset when user terminal can comprise the following steps:
31) when determining current number of person according to the face characteristic information that collects, according to the quantity presetting a proportion threshold value in user terminal and determine to allow to be less than the eyes of the distance threshold preset in the relative distance value of upper eyelid and palpebra inferior;
32) obtain actual acquisition to upper eyelid and palpebra inferior relative distance value in be less than the quantity of the eyes of the distance threshold preset;
33) be less than in the relative distance value of more above-mentioned permission upper eyelid and palpebra inferior the quantity of the eyes of the distance threshold preset and above-mentioned actual acquisition to upper eyelid and palpebra inferior relative distance value in be less than the magnitude relationship of the quantity of the eyes of the distance threshold preset.
For example, when being detected the face characteristic information collected by the second acquisition module 3011 and judging that current people's quantity is 10, the quantity of then corresponding eyes is 20, if the proportion threshold value of setting is 20%, then in 20 eyes collected, the upper eyelid of 4 eyes and the relative distance value of palpebra inferior is allowed to be less than the distance threshold preset.If detection module 3020 detects quantity that the upper eyelid of eyes and the relative distance value of palpebra inferior in the current image collected be less than the distance threshold preset when being 5, then perform step control user terminal to take personage, and obtain the image taken and obtain.If when the quantity that before detection module 3020 detects, in the image that collects, the upper eyelid of eyes and the relative distance value of palpebra inferior are less than the distance threshold preset is 3, then point out user this shooting end.
Refer to Fig. 5, Fig. 5 is the structural representation of the embodiment of the present invention another user terminal disclosed, for performing above-mentioned photographic method.As shown in Figure 5, this terminal 500 can comprise: at least one processor 501, at least one input media 502, at least one output unit 503, assembly such as storer 505 grade.Wherein, these assemblies are communicated to connect by one or more bus 504.It will be appreciated by those skilled in the art that, the structure of the terminal shown in Fig. 5 does not form the restriction to the embodiment of the present invention, it both can be busbar network, also can be hub-and-spoke configuration, the parts more more or less than diagram can also be comprised, or combine some parts, or different parts are arranged.Wherein:
Processor 501 is the control center of terminal, utilize the various piece of various interface and the whole terminal of connection, by running or perform the program in storer 505 of being stored in and/or module, and call the data be stored in storer 505, to perform various function and the process data of terminal.Processor 501 by integrated circuit (IntegratedCircuit is called for short IC) composition, such as, can be made up of the IC of single encapsulation, also can be made up of the encapsulation IC connecting many identical functions or difference in functionality.For example, processor 501 can only comprise central processing unit (CentralProcessingUnit, be called for short CPU), also can be CPU, digital signal processor (digitalsignalprocessor, be called for short DSP), the combination of graphic process unit (GraphicProcessingUnit, be called for short GPU) and various control chip.In embodiments of the present invention, CPU can be single arithmetic core, also can comprise multioperation core.
Input media 502 can comprise the touch-screen, keyboard etc. of standard, also can include line interface, wave point etc.
Output unit 503 can comprise display screen, loudspeaker etc., also can include line interface, wave point etc.
Storer 505 can be used for storing software program and module, processor 501, input media 502 and output unit 503 are stored in software program in storer 505 and module by calling, thus perform the various functions application of terminal and realize data processing.Storer 505 mainly comprises program storage area and data storage area, and wherein, program storage area can store operating system, application program etc. needed at least one function; Data storage area can store the data etc. created according to the use of terminal.In embodiments of the present invention, operating system can be android system, iOS system or Windows operating system etc.
Concrete, processor 501 calls the application program be stored in storer 505, for performing following operation:
Processor 501 control inputs device 502 obtains the upper eyelid of each eyes in the image collected in personage and the relative distance value of palpebra inferior, relative distance comprises the air line distance between the predeterminable area in upper eyelid and the default difference of palpebra inferior, and the image collected comprises the image that user terminal is taken when responding the shooting instruction received;
Detect in the relative distance value obtained and whether there is the relative distance value being less than the distance threshold preset;
If detect the relative distance value existing in the relative distance value obtained and be less than the distance threshold preset, then control user terminal and personage is taken, and obtain the image taken and obtain.
In the embodiment of the present invention, processor 501 calls the application program be stored in storer 505, performs step and obtains the upper eyelid of each eyes in the image collected in personage and the relative distance value of palpebra inferior, specifically comprise the following steps:
Processor 501 control inputs device 502 obtains the face characteristic information of personage in the image collected;
When judging that according to face characteristic information the quantity of personage in image at least comprises two, then processor 501 control inputs device 502 obtains the upper eyelid of each eye in image and the relative distance value of palpebra inferior.
In the embodiment of the present invention, processor 501 calls the application program be stored in storer 505, performs step and detects in the relative distance value obtained whether there is the relative distance value being less than the distance threshold preset, specifically comprise the following steps:
Detect the quantity being less than the relative distance value of the distance threshold preset in the relative distance value obtained;
Judge whether the quantity being less than the relative distance value of the distance threshold preset is greater than the amount threshold preset, and wherein, amount threshold is the amount threshold corresponding with the number of person in image.
In the embodiment of the present invention, processor 501 calls the application program be stored in storer 505, if perform step to detect the relative distance value existing in the relative distance value obtained and be less than the distance threshold preset, then control user terminal to take personage, and obtain the image taken and obtain, specifically comprise:
If when judging that the quantity being less than the relative distance value of the distance threshold preset is greater than the amount threshold preset, then control user terminal and personage is taken, and obtain the image taken and obtain.
In the embodiment of the present invention, processor 501 calls the application program be stored in storer 505, performs step and obtains the upper eyelid of each eyes in the image collected in personage and the relative distance value of palpebra inferior, specifically comprise the following steps:
Obtain the upper eyelid central point of each eyes in the image collected in personage and the relative distance value of palpebra inferior central point, relative distance comprises the predeterminable area central point in upper eyelid and palpebra inferior presets the air line distance distinguished between central point, and the image collected comprises the image that user terminal is taken when responding the shooting instruction received.
Concrete, the part or all of flow process in the photographic method embodiment that the terminal introduced in the embodiment of the present invention can implement composition graphs 1 of the present invention, Fig. 2 introduces.
Module in all embodiments of the present invention or submodule, universal integrated circuit can be passed through, such as CPU (CentralProcessingUnit, central processing unit), or realized by ASIC (ApplicationSpecificIntegratedCircuit, special IC).
Step in embodiment of the present invention method can be carried out order according to actual needs and be adjusted, merges and delete.
Unit in embodiment of the present invention terminal can carry out merging, divide and deleting according to actual needs.
One of ordinary skill in the art will appreciate that all or part of flow process realized in above-described embodiment method, that the hardware that can carry out instruction relevant by computer program has come, described program can be stored in a computer read/write memory medium, this program, when performing, can comprise the flow process of the embodiment as above-mentioned each side method.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-OnlyMemory, ROM) or random access memory (RandomAccessMemory is called for short RAM) etc.
Above disclosedly be only present pre-ferred embodiments, certainly can not limit the interest field of the present invention with this, therefore according to the equivalent variations that the claims in the present invention are done, still belong to the scope that the present invention is contained.

Claims (10)

1. a photographic method, is characterized in that, comprising:
Obtain the upper eyelid of each eyes in the image collected in personage and the relative distance value of palpebra inferior, described relative distance comprises the air line distance between the predeterminable area in described upper eyelid and the default difference of described palpebra inferior, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received;
Detect the relative distance value whether existing in the relative distance value of described acquisition and be less than the distance threshold preset;
If detect the relative distance value existing in the relative distance value of described acquisition and be less than the described distance threshold preset, then control described user terminal and described personage is taken, and obtain the image taken and obtain.
2. method according to claim 1, is characterized in that, the upper eyelid of each eyes in the image that described acquisition collects in personage and the relative distance value of palpebra inferior, comprising:
Obtain the face characteristic information of personage in the image collected;
When judging that the quantity of personage in described image at least comprises two according to described face characteristic information, then obtain the upper eyelid of each eye in described image and the relative distance value of palpebra inferior.
3. method according to claim 2, is characterized in that, whether there is the relative distance value being less than the distance threshold preset, comprising in the relative distance value of the described acquisition of described detection:
Detect the quantity of the relative distance value being less than the distance threshold preset in the relative distance value of described acquisition;
Whether the quantity being less than the relative distance value of the distance threshold preset described in judgement is greater than the amount threshold preset, and wherein, described amount threshold is the amount threshold corresponding with the number of person in described image.
4. method according to claim 3, it is characterized in that, detect the relative distance value existing in the relative distance value of described acquisition and be less than the described distance threshold preset if described, then control described user terminal and described personage is taken, and obtain the image taken and obtain, comprising:
If when the quantity being less than the relative distance value of the distance threshold preset described in judging is greater than the described amount threshold preset, then controls described user terminal and take described personage, and obtain the image taken and obtain.
5. method according to claim 1, is characterized in that, the upper eyelid of each eyes in the image that described acquisition collects in personage and the relative distance value of palpebra inferior, comprising:
Obtain the upper eyelid central point of each eyes in the image collected in personage and the relative distance value of palpebra inferior central point, described relative distance comprises the predeterminable area central point in described upper eyelid and palpebra inferior presets the air line distance distinguished between central point, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received.
6. a user terminal, is characterized in that, comprising:
Acquiring unit, for obtaining the upper eyelid of each eyes in the image that collects in personage and the relative distance value of palpebra inferior, described relative distance comprises the air line distance between the predeterminable area in described upper eyelid and the default difference of described palpebra inferior, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received;
Detecting unit, for detect described acquiring unit obtain relative distance value in whether there is the relative distance value being less than the distance threshold preset;
Control module, if detect the relative distance value existing in the relative distance value of described acquisition and be less than the described distance threshold preset for described detecting unit, then controls described user terminal and takes described personage, and obtains the image taken and obtain.
7. user terminal according to claim 6, is characterized in that, described acquiring unit comprises:
First acquisition module, for obtaining the face characteristic information of personage in the image that collects;
Second acquisition module, during for judging that the quantity of personage in described image at least comprises two when the face characteristic information obtained according to described first acquisition module, then obtains the upper eyelid of each eye in described image and the relative distance value of palpebra inferior.
8. user terminal according to claim 7, is characterized in that, described detecting unit comprises:
Detection module, is less than the quantity of the relative distance value of the distance threshold preset for detecting in relative distance value that described second acquisition module obtains;
Judge module, for judging whether the quantity being less than the relative distance value of the distance threshold preset that described detection module detects is greater than the amount threshold preset, wherein, described amount threshold is the amount threshold corresponding with the number of person in described image.
9. user terminal according to claim 8, it is characterized in that, if when the quantity being less than the relative distance value of the described distance threshold preset described in described control module judges specifically for described judge module is greater than the described amount threshold preset, then control described user terminal to take described personage, and obtain the image taken and obtain.
10. user terminal according to claim 6, it is characterized in that, described acquiring unit is specifically for obtaining the upper eyelid central point of each eyes in the image that collects in personage and the relative distance value of palpebra inferior central point, described relative distance comprises the predeterminable area central point in described upper eyelid and palpebra inferior presets the air line distance distinguished between central point, described in the image that collects comprise the image that user terminal takes when responding the shooting instruction received.
CN201510394385.9A 2015-07-03 2015-07-03 A kind of photographic method and user terminal Expired - Fee Related CN105138950B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510394385.9A CN105138950B (en) 2015-07-03 2015-07-03 A kind of photographic method and user terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510394385.9A CN105138950B (en) 2015-07-03 2015-07-03 A kind of photographic method and user terminal

Publications (2)

Publication Number Publication Date
CN105138950A true CN105138950A (en) 2015-12-09
CN105138950B CN105138950B (en) 2019-04-23

Family

ID=54724294

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510394385.9A Expired - Fee Related CN105138950B (en) 2015-07-03 2015-07-03 A kind of photographic method and user terminal

Country Status (1)

Country Link
CN (1) CN105138950B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554385A (en) * 2015-12-18 2016-05-04 天津中科智能识别产业技术研究院有限公司 Remote multimode biometric recognition method and system thereof
CN106095079A (en) * 2016-06-02 2016-11-09 深圳铂睿智恒科技有限公司 A kind of mobile terminal display control method, system and mobile terminal
CN110168610A (en) * 2017-01-17 2019-08-23 三菱电机株式会社 Eyelid detection apparatus, sleepy decision maker and eyelid detection method

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008056229A2 (en) * 2006-11-06 2008-05-15 Toyota Jidosha Kabushiki Kaisha Eye opening detection system and method of detecting eye opening
CN103679126A (en) * 2012-09-24 2014-03-26 由田新技股份有限公司 Eye searching method and eye state detection device and eye searching device
CN103685948A (en) * 2013-12-04 2014-03-26 乐视致新电子科技(天津)有限公司 Shooting method and device
CN103716539A (en) * 2013-12-16 2014-04-09 乐视致新电子科技(天津)有限公司 Photographing method and apparatus
CN103914130A (en) * 2013-01-05 2014-07-09 鸿富锦精密工业(武汉)有限公司 Display device and method for adjusting observation distance of display device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008056229A2 (en) * 2006-11-06 2008-05-15 Toyota Jidosha Kabushiki Kaisha Eye opening detection system and method of detecting eye opening
CN103679126A (en) * 2012-09-24 2014-03-26 由田新技股份有限公司 Eye searching method and eye state detection device and eye searching device
CN103914130A (en) * 2013-01-05 2014-07-09 鸿富锦精密工业(武汉)有限公司 Display device and method for adjusting observation distance of display device
CN103685948A (en) * 2013-12-04 2014-03-26 乐视致新电子科技(天津)有限公司 Shooting method and device
CN103716539A (en) * 2013-12-16 2014-04-09 乐视致新电子科技(天津)有限公司 Photographing method and apparatus

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554385A (en) * 2015-12-18 2016-05-04 天津中科智能识别产业技术研究院有限公司 Remote multimode biometric recognition method and system thereof
CN105554385B (en) * 2015-12-18 2018-07-10 天津中科智能识别产业技术研究院有限公司 A kind of remote multi-modal biological characteristic recognition methods and its system
CN106095079A (en) * 2016-06-02 2016-11-09 深圳铂睿智恒科技有限公司 A kind of mobile terminal display control method, system and mobile terminal
CN106095079B (en) * 2016-06-02 2018-10-16 深圳铂睿智恒科技有限公司 A kind of mobile terminal display control method, system and mobile terminal
CN110168610A (en) * 2017-01-17 2019-08-23 三菱电机株式会社 Eyelid detection apparatus, sleepy decision maker and eyelid detection method
CN110168610B (en) * 2017-01-17 2023-07-21 三菱电机株式会社 Eyelid detection device, drowsiness determination device, and eyelid detection method

Also Published As

Publication number Publication date
CN105138950B (en) 2019-04-23

Similar Documents

Publication Publication Date Title
CN106604362B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN106201663A (en) The child mode changing method of mobile terminal and device
CN109190539A (en) Face identification method and device
CN108376031B (en) Method, apparatus, storage medium and the terminal device of reading page page turning
CN109040419B (en) Screen recording method and device, mobile terminal and storage medium
CN104967758B (en) A kind of method and user terminal for controlling data transfer
CN105791560A (en) Data network access control method and user terminal
CN110059686B (en) Character recognition method, device, equipment and readable storage medium
CN105245346A (en) Identity authentication method and user terminal
CN104679240A (en) Terminal control method
CN106681612A (en) Adjusting method applied to mobile terminal and mobile terminal
CN104536559A (en) Terminal control method
CN106412422A (en) Focusing method, focusing device and terminal
EP4095744A1 (en) Automatic iris capturing method and apparatus, computer-readable storage medium, and computer device
CN105049710B (en) A kind of big visual angle camera control method and user terminal
CN105138950A (en) Photographing method and user terminal
CN107193527A (en) A kind of audio control method, terminal and computer-readable recording medium
CN108536380A (en) Screen control method, device and mobile terminal
CN104580892A (en) Method for terminal to take images
CN105227855A (en) A kind of image processing method and terminal
CN105049732A (en) Camera adjusting method and user terminal
CN108989638A (en) Imaging device and its control method, electronic device and computer readable storage medium
CN105809117A (en) Information prompt method and user terminal
CN105072335A (en) Shooting method and user terminal
CN103685349A (en) Method for information processing 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
CB02 Change of applicant information

Address after: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 523860 No. 18, Wu Sha Beach Road, Changan Town, Dongguan, Guangdong

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20190423