CN104883496B - A kind of baby's photographic method and mobile terminal - Google Patents

A kind of baby's photographic method and mobile terminal Download PDF

Info

Publication number
CN104883496B
CN104883496B CN201510221914.5A CN201510221914A CN104883496B CN 104883496 B CN104883496 B CN 104883496B CN 201510221914 A CN201510221914 A CN 201510221914A CN 104883496 B CN104883496 B CN 104883496B
Authority
CN
China
Prior art keywords
angle
rotatable
mobile terminal
controlling
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201510221914.5A
Other languages
Chinese (zh)
Other versions
CN104883496A (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 CN201510221914.5A priority Critical patent/CN104883496B/en
Publication of CN104883496A publication Critical patent/CN104883496A/en
Application granted granted Critical
Publication of CN104883496B publication Critical patent/CN104883496B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Studio Devices (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses a kind of baby's photographic method and mobile terminal, this method to include:The rotatable camera of control mobile terminal is rotated to first angle;If judging, current environment brightness meets that flash lamp opens trigger condition, and whether detect in target to be captured includes baby's facial image;Obtain the distance of the upper palpebra inferior in baby's facial image;If judging, the distance of upper palpebra inferior is more than or equal to pre-determined distance, and adjusting rotatable flash lamp according to first angle and the direct projection angle of coverage of rotatable flash lamp rotates to second angle;Rotatable flash lamp is controlled to be glistened with second angle according to the photographing instruction of user, control rotatable camera shooting target to be captured.Implement the embodiment of the present invention, by detecting baby's facial image in target to be captured, the flash angle of rotatable flash lamp is adjusted, to promote the direct projection coverage of rotatable flash lamp to improve the intelligent and security that mobile terminal shoots baby away from baby's facial image.

Description

Infant photographing method and mobile terminal
Technical Field
The invention relates to the technical field of electronics, in particular to a baby photographing method and a mobile terminal.
Background
With the rapid upgrade of the hardware and system performance of the mobile terminal, more and more users need to take pictures through the mobile terminal conveniently, for example, the users can take pictures by using a flash lamp to supplement light under the condition of insufficient light.
The retina of baby's eyes is fragile, is not suitable for the highlight to shine, but present mobile terminal's camera and flash light are the equidirectional setting, and mobile terminal opens the flash light in needs and shoots under the condition, and the flash light is direct alignment and treats the shooting target, and mobile terminal can open the flash light according to ambient brightness is automatic, and this makes people use mobile terminal to shoot the baby when, and mobile terminal's flash light very easily causes the injury to baby's eyes.
Disclosure of Invention
The embodiment of the invention provides an infant photographing method and a mobile terminal, wherein the flash angle of a flash lamp is adjusted by detecting an infant face image in a target to be photographed, so that the direct projection coverage range of the rotatable flash lamp is far away from the infant face image, and the intelligence and the safety of the mobile terminal for photographing an infant are improved.
The first aspect of the embodiment of the invention discloses a method for taking a picture of an infant, which comprises the following steps:
controlling a rotatable camera of the mobile terminal to rotate to a first angle, wherein the first angle corresponds to a target to be shot;
if the current ambient brightness meets the trigger condition of starting the flash lamp, detecting whether the target to be shot comprises the facial image of the infant;
if the target to be shot is detected to comprise the infant face image, acquiring the distance between an upper eyelid and a lower eyelid in the infant face image;
if the distance between the upper eyelid and the lower eyelid in the infant face image is judged to be greater than or equal to the preset distance, adjusting the rotatable flash lamp to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flash lamp;
and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
A second aspect of the embodiments of the present invention discloses a mobile terminal, including:
the first control unit is used for controlling a rotatable camera of the mobile terminal to rotate to a first angle, and the first angle corresponds to a target to be shot;
the judging unit is used for judging whether the current ambient brightness meets the starting triggering condition of the flash lamp;
the detection unit is used for detecting whether the target to be shot comprises a baby face image or not when the judgment unit judges that the current environment brightness meets the trigger condition of starting the flash lamp;
the distance acquisition unit is used for acquiring the distance between the upper eyelid and the lower eyelid in the infant face image when the detection unit detects that the target to be shot comprises the infant face image;
the adjusting unit is used for adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flashlight when the distance between the upper eyelid and the lower eyelid in the infant face image is judged to be larger than or equal to a preset distance;
and the first photographing unit is used for controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user and controlling the rotatable camera to photograph the target to be photographed at the first angle.
In the embodiment of the invention, firstly, the mobile terminal controls the rotatable camera of the mobile terminal to rotate to a first angle, secondly, when the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected, when detecting that the target to be shot comprises the infant face image, acquiring the distance between the upper eyelid and the lower eyelid in the infant face image, and then, in case that the distance between the upper eyelid and the lower eyelid in the facial image of the infant is determined to be greater than or equal to the preset distance, adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct illumination coverage angle of the rotatable flashlight, and finally, and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle. By implementing the embodiment of the invention, the mobile terminal detects the infant face image in the target to be shot, and when the distance between the upper eyelid and the lower eyelid in the infant face image is detected to be greater than or equal to the preset distance, the rotatable flash lamp is adjusted to rotate to the second angle according to the first angle and the direct lighting coverage angle of the rotatable flash lamp, so that the direct lighting coverage range of the rotatable flash lamp is far away from the infant face image, and the intelligence and the safety of shooting an infant by the mobile terminal are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a photographing method for infants according to a first embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a photographing method for infants according to a second embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a method for taking a picture of an infant according to a third embodiment of the present invention;
FIG. 3-a is a diagram illustrating an exemplary relationship between a first angle and a direct coverage angle according to a third embodiment of the present invention;
3-b are exemplary diagrams of alternative first and second angles disclosed in a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of a mobile terminal disclosed in a fourth embodiment of the present invention;
fig. 5 is a schematic structural diagram of a mobile terminal according to a fifth embodiment of the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The embodiment of the invention provides a baby photographing method and a mobile terminal, wherein the flash angle of a rotatable flash lamp is adjusted by detecting a baby face image in a target to be photographed, so that the direct projection coverage range of the rotatable flash lamp is far away from the baby face image, and the intelligence and the safety of photographing a baby by the mobile terminal are improved.
The following are detailed below.
The terms "first," "second," and "third," etc. in the description and claims of the present invention and the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the invention. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
The embodiment of the invention discloses a baby photographing method and a mobile terminal, firstly, the mobile terminal controls a rotatable camera of the mobile terminal to rotate to a first angle, secondly, when the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected, when detecting that the target to be shot comprises the infant face image, acquiring the distance between the upper eyelid and the lower eyelid in the infant face image, and then, in case that the distance between the upper eyelid and the lower eyelid in the facial image of the infant is determined to be greater than or equal to the preset distance, adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct illumination coverage angle of the rotatable flashlight, and finally, and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle. By implementing the embodiment of the invention, the mobile terminal adjusts the flash angle of the rotatable flash lamp by detecting the baby face image in the target to be shot so as to enable the direct projection coverage range of the rotatable flash lamp to be far away from the baby face image, thereby improving the intelligence and the safety of shooting a baby by the mobile terminal.
The technical solutions of the embodiments of the present invention are described in detail below with reference to the accompanying drawings and the detailed description.
Referring to fig. 1, fig. 1 is a schematic flow chart illustrating a photographing method for infants according to a first embodiment of the present invention. As shown in fig. 1, the infant photographing method of the present embodiment may include the following steps:
step S101, a rotatable camera of the mobile terminal is controlled to rotate to a first angle, and the first angle corresponds to a target to be shot.
Step S102, if the current environment brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected.
Step S103, if it is detected that the target to be photographed includes an infant face image, acquiring a distance between upper and lower eyelids in the infant face image.
And step S104, if the distance between the upper eyelid and the lower eyelid in the infant face image is judged to be greater than or equal to the preset distance, adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flashlight.
And 105, controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
In the embodiment of the present invention, the mobile terminal may be any or all of, for example, a smart phone, a wearable device (personal hub), a personal or mobile multimedia player, a Personal Digital Assistant (PDA), a laptop computer, a tablet computer, a smart book, a palmtop computer, a cellular phone with multimedia internet function, and similar personal electronic devices, and may include a network interface, a processor, a memory, an audio processing circuit, a microphone, a rotatable camera, a rotatable flashlight, and may include an audio amplifier that may be internal or external, and a speaker unit connected to the audio amplifier.
In an embodiment of the present invention, a specific implementation manner of controlling the rotatable camera of the mobile terminal to rotate to the first angle in step S101 may include: the mobile terminal can control the rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated when a user presses a volume key of the mobile terminal, the first angle corresponds to a target to be shot, and the target to be shot can be captured when the rotatable camera rotates to the first angle.
For example, assuming that the effective rotation range of the rotatable camera is 206 degrees, a volume key of the mobile terminal in the photographing mode may be preset to control the rotatable camera to rotate, specifically, a volume "+" or a volume "-" may be set to cause the rotatable camera to rotate clockwise or counterclockwise by 3 degrees each time the volume key is clicked, a long press of the volume key "+" causes the rotatable camera to rotate clockwise continuously, and a long press of the volume key "-" causes the rotatable camera to rotate counterclockwise continuously.
Or the mobile terminal can also control the rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by a camera rotation function button displayed on a touch display screen of the mobile terminal touched by a user; in the specific implementation, a function button for controlling the rotation of the rotatable camera can be visually displayed on a touch display screen of the mobile terminal, so that a user can touch the function button to conveniently control the rotation of the rotatable camera to a first angle.
Or, the mobile terminal may also control the rotatable camera of the mobile terminal to rotate to the first angle according to a voice instruction of the user received by a microphone of the mobile terminal.
In specific implementation, the mobile terminal can enter a voice control mode according to a setting instruction of a user, and receives a voice instruction of the user through a microphone to control a rotatable camera of the mobile terminal to rotate to a first angle.
In an embodiment of the present invention, if it is determined in step S102 that the current ambient brightness satisfies the trigger condition for turning on the flash lamp, a specific implementation manner of detecting whether the target to be photographed includes the infant face image may include: the mobile terminal can acquire the current ambient brightness of the mobile terminal through the ambient light sensor, judge that the current ambient brightness meets a flash lamp starting triggering condition under the condition that the current ambient brightness of the mobile terminal is detected to be smaller than a preset brightness threshold value, and detect whether the target to be shot comprises the facial image of the infant or not after judging that the current ambient brightness meets the flash lamp starting triggering condition.
For example, if the preset brightness threshold is 100 nits, and the mobile terminal detects that the current environment brightness is 80 nits, the mobile terminal determines that the current environment brightness meets a flash lamp starting trigger condition, and detects whether the target to be shot includes a baby face image.
In an embodiment of the present invention, if it is detected that the target to be photographed includes an infant face image, the specific implementation of the step S103 of obtaining the distance between the upper eyelid and the lower eyelid in the infant face image may include: the method comprises the steps that under the condition that a target to be shot comprises an infant face image is identified by a mobile terminal based on an image identification algorithm (such as a feature point matching method), the target to be shot is determined to comprise the infant face image, and after the target to be shot is determined to comprise the infant face image, the distance between an upper eyelid and a lower eyelid in the infant face image is further obtained by the mobile terminal.
In the specific implementation, the mobile terminal can acquire a face image through the rotatable camera, extract features in the face image by using an image recognition algorithm, match the features with feature data in the face image feature database, and determine that the target to be shot comprises a baby face image if the face image acquired through the rotatable camera matches with the baby face feature data in the face image feature database, and further calculate the distance between the upper eyelid and the lower eyelid in the baby face image.
In an embodiment of the present invention, if it is determined in the step S104 that the distance between the upper eyelid and the lower eyelid in the infant face image is greater than or equal to the preset distance, a specific implementation manner of adjusting the rotatable flash lamp to rotate to the second angle according to the first angle and the direct projection coverage angle of the rotatable flash lamp may include: if the mobile terminal judges that the distance between the upper eyelid and the lower eyelid in the infant face image is greater than or equal to the preset distance, determining a second angle for setting the direct lighting coverage range of the rotatable flash lamp to be far away from the infant face image according to the first angle and the direct lighting coverage angle of the rotatable flash lamp; controlling the rotatable flashlight to rotate to the second angle.
For example, assuming that the preset distance is 5mm, the first angle is 30 degrees, the direct lighting coverage angle of the rotatable flash is 35 degrees, and the mobile terminal calculates that the distance between the upper eyelid and the lower eyelid in the infant face image is 6mm, the mobile terminal determines that the second angle for setting the direct lighting coverage range of the rotatable flash away from the infant face image is 65 degrees according to the first angle of 30 degrees and the direct lighting coverage angle of the rotatable flash of 35 degrees, and controls the rotatable flash to rotate to 65 degrees.
In an embodiment of the present invention, the step S105 of controlling the rotatable flash to flash at the second angle according to a photographing instruction of a user, and a specific implementation of controlling the rotatable camera to photograph the target to be photographed at the first angle may include: the mobile terminal rotates the rotatable flash lamp to a second angle at which the direct-lighting coverage range is far away from the face image of the infant, then the photographing instruction of the user is obtained, the rotatable flash lamp flashes at the second angle, and direct-lighting of the flash lamp to the eyes of the infant can be avoided.
It can be seen that, in the embodiment of the present invention, first, the mobile terminal controls the rotatable camera of the mobile terminal to rotate to a first angle, secondly, when the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected, when detecting that the target to be shot comprises the infant face image, acquiring the distance between the upper eyelid and the lower eyelid in the infant face image, and then, in case that the distance between the upper eyelid and the lower eyelid in the facial image of the infant is determined to be greater than or equal to the preset distance, adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct illumination coverage angle of the rotatable flashlight, and finally, and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle. By implementing the embodiment of the invention, the mobile terminal detects the face image of the infant in the target to be shot, and when the distance between the upper eyelid and the lower eyelid in the face image of the infant is detected to be greater than or equal to the preset distance, the rotatable flash lamp is adjusted to rotate to the second angle according to the first angle and the direct lighting coverage angle of the rotatable flash lamp, so that the direct lighting coverage range of the rotatable flash lamp is enabled to be far away from the face image of the infant, and the intelligence and the safety of shooting the infant by the mobile terminal are improved.
Optionally, in some possible embodiments of the present invention, if the mobile terminal determines that the current ambient brightness does not satisfy the trigger condition for turning on the flash lamp, the rotatable camera is controlled to shoot the target to be shot at the first angle according to a shooting instruction of a user; the camera is directly used for photographing under the condition that a flash lamp is not required to be started.
Optionally, in some possible embodiments of the present invention, if it is detected that the target to be photographed does not include the baby face image, the rotatable flash lamp is controlled to rotate to the first angle; and controlling the rotatable flash lamp to flash at the first angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
Optionally, in some possible embodiments of the present invention, after the mobile terminal adjusts the rotatable flash lamp to rotate to the second angle according to the first angle and the direct projection coverage angle of the rotatable flash lamp, before the mobile terminal controls the flash lamp to flash at the second angle according to the photographing instruction of the user, the mobile terminal may further control a speaker of the mobile terminal to play a preset audio file. The baby is sensitive to sound and light, when a user wants to capture facial expressions of the baby during photographing, theme music or animation songs (namely preset audio files) liked by the baby can be played through a loudspeaker of the mobile terminal, the preset audio files are played at the time T1 to attract the attention of the baby, the baby is prompted to face the rotatable camera of the mobile terminal at the time T2 (the time interval between the T1 and the T2 is small, such as 500 milliseconds, 600 milliseconds and 1 second), the rotatable flash lamp is controlled to flash at the time T2, and the rotatable camera is controlled to photograph at the time T2, so that the probability of capturing facial images of the baby is improved, and the photographing quality is improved.
Optionally, in some possible embodiments of the present invention, after the mobile terminal adjusts the rotatable flash to rotate to the second angle according to the first angle and the direct-illumination coverage angle of the rotatable flash, the mobile terminal may further control the rotatable flash of the mobile terminal to pre-flash before controlling the flash to flash at the second angle according to a photographing instruction of a user. The baby is sensitive to sound and light, when a user wants to capture facial expressions of the baby during photographing, the rotatable flash lamp of the mobile terminal can be used for pre-flashing at the time T1, the baby is prompted to face the rotatable camera of the mobile terminal at the time T2 (the time interval between T1 and T2 is small, such as 500 milliseconds, 600 milliseconds and 1 second), the rotatable flash lamp is controlled to flash at the time T2, and the rotatable camera is controlled to photograph at the time T2, so that the probability of capturing facial images of the baby is improved, and the photographing quality is improved.
Referring to fig. 2, fig. 2 is a flowchart illustrating a baby photographing method according to a second embodiment of the present invention. As shown in fig. 2, the infant photographing method of the present embodiment may include the following steps:
step S201, a rotatable camera of the mobile terminal is controlled to rotate to a first angle, the first angle corresponds to a target to be shot, and the initial orientation of the rotatable camera is the same as that of a rotatable flash lamp of the mobile terminal.
Step S202, judging whether the current ambient brightness meets the trigger condition of starting the flash lamp.
If yes, go to step S203.
If not, go to step S208.
In step S203, it is detected whether the target includes a facial image of an infant.
If yes, go to step S204.
If not, step S209 and step S210 are executed.
In step S204, the distance between the upper and lower eyelids in the infant face image is acquired.
In step S205, it is determined whether the distance between the upper eyelid and the lower eyelid in the facial image of the infant is greater than or equal to a preset distance.
If yes, go to step S206.
If not, step 209 and step S210 are executed.
In step S206, the rotatable flashlight is adjusted to rotate to a second angle according to the first angle and the direct lighting coverage angle of the rotatable flashlight.
And step S207, controlling the rotatable flash lamp to flash at a second angle according to the photographing instruction of the user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
Step S208, controlling the rotatable camera to shoot the object to be shot at the first angle according to the shooting instruction of the user
Step S209, controlling the rotatable flash lamp to rotate to a first angle;
step S210, controlling the rotatable flash lamp to flash at a first angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
In the embodiment of the present invention, the mobile terminal may be any or all of, for example, a smart phone, a wearable device (personal hub), a personal or mobile multimedia player, a Personal Digital Assistant (PDA), a laptop computer, a tablet computer, a smart book, a palmtop computer, a cellular phone with multimedia internet function, and similar personal electronic devices, and may include a network interface, a processor, a memory, an audio processing circuit, a microphone, a rotatable camera, a rotatable flashlight, and may include an audio amplifier that may be internal or external, and a speaker unit connected to the audio amplifier.
In an embodiment of the present invention, a specific implementation manner of controlling the rotatable camera of the mobile terminal to rotate to the first angle in step S201 may include: the mobile terminal can control the rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by pressing a volume key of the mobile terminal by a user.
For example, assuming that the effective rotation range of the rotatable camera is 206 degrees, a volume key of the mobile terminal in the photographing mode may be preset to control the rotatable camera to rotate, specifically, a volume "+" or a volume "-" may be set to cause the rotatable camera to rotate clockwise or counterclockwise by 3 degrees each time the volume key is clicked, a long press of the volume key "+" causes the rotatable camera to rotate clockwise continuously, and a long press of the volume key "-" causes the rotatable camera to rotate counterclockwise continuously. Or the mobile terminal can also control the rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by a camera rotation function button displayed on a touch display screen of the mobile terminal touched by a user; in the specific implementation, a function button for controlling the rotation of the rotatable camera can be visually displayed on a touch display screen of the mobile terminal, so that a user can touch the function button to conveniently control the rotation of the rotatable camera to a first angle. Or, the mobile terminal may also control the rotatable camera of the mobile terminal to rotate to the first angle according to a voice instruction of the user received by a microphone of the mobile terminal.
In specific implementation, the mobile terminal can enter a voice control mode according to a setting instruction of a user, and receives a voice instruction of the user through a microphone to control a rotatable camera of the mobile terminal to rotate to a first angle.
In an embodiment of the present invention, the specific implementation manner of determining whether the current ambient brightness satisfies the flash lamp starting triggering condition in step S202 may include: the mobile terminal can acquire the current ambient brightness of the mobile terminal through an ambient light sensor, and under the condition that the current ambient brightness of the mobile terminal is detected to be smaller than a preset brightness threshold value, the current ambient brightness is judged to meet a flash lamp starting triggering condition; and under the condition that the current environment brightness of the mobile terminal is detected to be greater than or equal to a preset brightness threshold value, judging that the current environment brightness does not meet a flash lamp starting triggering condition. For example, if the preset brightness threshold is 100 nits, and the mobile terminal detects that the current environment brightness is 80 nits, the mobile terminal determines that the current environment brightness meets a flash lamp starting trigger condition, and detects whether the target to be shot includes a baby face image.
In an embodiment of the present invention, the specific implementation of detecting whether the target to be photographed includes the baby face image in step S203 may include: under the condition that the mobile terminal identifies that the target to be shot comprises the infant face image, the target to be shot is determined to be detected to comprise the infant face image. In the specific implementation, the mobile terminal can acquire a face image through the rotatable camera, extract features in the face image by using an image processing algorithm, match and identify the features with feature data in the face image feature database, and if the face image acquired through the rotatable camera is matched with infant face feature data in the face image feature database, the mobile terminal determines that the target to be shot comprises an infant face image.
In an embodiment of the present invention, the step S206 of adjusting the rotatable flashlight to rotate to the second angle according to the first angle and the direct illumination coverage angle of the rotatable flashlight may include: the mobile terminal determines a second angle for setting the direct lighting coverage range of the rotatable flashlight to be far away from the facial image of the infant according to the first angle and the direct lighting coverage angle of the rotatable flashlight; and controlling the rotatable flashlight to rotate to the second angle, wherein the direct projection coverage range of the rotatable flashlight is far away from the eyes of the baby.
It can be seen that, in the embodiment of the present invention, first, the mobile terminal controls the rotatable camera of the mobile terminal to rotate to a first angle, secondly, when the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected, when detecting that the target to be shot comprises the infant face image, acquiring the distance between the upper eyelid and the lower eyelid in the infant face image, and then, in case that the distance between the upper eyelid and the lower eyelid in the facial image of the infant is determined to be greater than or equal to the preset distance, adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct illumination coverage angle of the rotatable flashlight, and finally, and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle. By implementing the embodiment of the invention, the mobile terminal detects the infant face image in the target to be shot, and when the distance between the upper eyelid and the lower eyelid in the infant face image is detected to be greater than or equal to the preset distance, the rotatable flash lamp is adjusted to rotate to the second angle according to the first angle and the direct lighting coverage angle of the rotatable flash lamp, so that the direct lighting coverage range of the rotatable flash lamp is far away from the infant face image, and the intelligence and the safety of shooting an infant by the mobile terminal are improved.
To facilitate a better understanding and an implementation of the above-described aspects of the embodiments of the present invention, the following description is provided in connection with some specific application scenarios.
Referring to fig. 3, fig. 3 is a flowchart illustrating a baby photographing method according to a third embodiment of the present invention. As shown in fig. 3, the infant photographing method of the present embodiment may include the following steps:
step S301, a rotatable camera of the mobile terminal is controlled to rotate to a first angle, and the first angle corresponds to a target to be shot.
Step S302, if the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected.
Step S303, if it is detected that the target to be photographed includes an infant face image, acquiring a distance between upper and lower eyelids in the infant face image.
Step S304, if the distance between the upper eyelid and the lower eyelid in the infant face image is judged to be greater than or equal to the preset distance, determining a second angle for setting the direct lighting coverage range of the rotatable flash lamp to be far away from the infant face image according to the first angle and the direct lighting coverage angle of the rotatable flash lamp.
Step S305, controlling the rotatable flash to rotate to the second angle.
Step S306, controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
In the embodiment of the present invention, the mobile terminal may be any or all of, for example, a smart phone, a wearable device (personal hub), a personal or mobile multimedia player, a Personal Digital Assistant (PDA), a laptop computer, a tablet computer, a smart book, a palmtop computer, a cellular phone with multimedia internet function, and similar personal electronic devices, and may include a network interface, a processor, a memory, an audio processing circuit, a microphone, a rotatable camera, a rotatable flashlight, and may include an audio amplifier that may be internal or external, and a speaker unit connected to the audio amplifier.
In an embodiment of the present invention, the specific implementation manner of determining the second angle for setting the direct coverage range of the rotatable flash away from the facial image of the infant according to the first angle and the direct coverage angle of the rotatable flash in the step S304 may include: referring to fig. 3-a and 3-b, the rotatable camera and the rotatable flash of the mobile terminal are initially oriented in the same direction, the mobile terminal controls the rotatable camera to rotate to a first angle a, which corresponds to an object to be photographed, specifically, an infant face image, and the position of the eyes in the infant face image is on the same horizontal line as the center point of the camera, and it can be known from the knowledge of the known space geometry that if the rotatable flash is rotated to the first angle a, the eyes in the infant face image should also be located at the center position of the direct coverage of the rotatable flash (as can be known from the knowledge of the flash illumination range and the normal photographing distance known in the art, the upper edge and the lower edge of the direct coverage of the rotatable flash do not coincide with the positions of the eyes in the infant face image), that is, in this case, the eyes in the infant face image are located within the direct coverage of the rotatable flash, the preset direct lighting coverage angle of the rotatable flash lamp is c degrees, in order to enable the direct lighting coverage range of the rotatable flash lamp to be far away from the infant face image, the rotation angle b of the rotatable flash lamp is determined to be a + c, and after the rotatable flash lamp rotates to the angle b, the lower edge of the direct lighting coverage range of the rotatable flash lamp is far away from the eye position in the infant face image, so that the upper edge and the lower edge of the direct lighting coverage range of the rotatable flash lamp can be guaranteed to be far away from the eye position in the infant face image. And after determining the second angle, the mobile terminal controls the rotatable flashlight to rotate to the second angle.
It can be seen that, in the embodiment of the present invention, the mobile terminal first controls the rotatable camera of the mobile terminal to rotate to a first angle, secondly, when the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected, when detecting that the target to be shot comprises the infant face image, acquiring the distance between the upper eyelid and the lower eyelid in the infant face image, and then, in case that the distance between the upper eyelid and the lower eyelid in the facial image of the infant is determined to be greater than or equal to the preset distance, adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct illumination coverage angle of the rotatable flashlight, and finally, and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle. By implementing the embodiment of the invention, the mobile terminal detects the infant face image in the target to be shot, and when the distance between the upper eyelid and the lower eyelid in the infant face image is detected to be greater than or equal to the preset distance, the rotatable flash lamp is adjusted to rotate to the second angle according to the first angle and the direct lighting coverage angle of the rotatable flash lamp, so that the direct lighting coverage range of the rotatable flash lamp is far away from the infant face image, and the intelligence and the safety of shooting an infant by the mobile terminal are improved.
Referring to fig. 4, fig. 4 is a mobile terminal 400 according to a fourth embodiment of the present invention, configured to execute a baby photographing method according to the fourth embodiment of the present invention. As shown in fig. 4, the mobile terminal 400 may specifically include:
a first control unit 401, configured to control a rotatable camera of the mobile terminal to rotate to a first angle, where the first angle corresponds to a target to be photographed;
a judging unit 402, configured to judge whether the current ambient brightness meets a flash lamp starting trigger condition;
a detecting unit 403, configured to detect whether the target to be photographed includes a facial image of an infant when the determining unit 402 determines that the current ambient brightness satisfies the flash lamp activation triggering condition;
a distance acquiring unit 404, configured to acquire a distance between an upper eyelid and a lower eyelid in the infant face image when the detecting unit 403 detects that the target to be photographed includes the infant face image;
an adjusting unit 405, configured to adjust the rotatable flash to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flash when it is determined that the distance between the upper eyelid and the lower eyelid in the infant face image is greater than or equal to a preset distance;
and the first photographing unit 406 is configured to control the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and control the rotatable camera to photograph the target to be photographed at the first angle.
In the embodiment of the present invention, the mobile terminal may be any or all of, for example, a smart phone, a wearable device (personal hub), a personal or mobile multimedia player, a Personal Digital Assistant (PDA), a laptop computer, a tablet computer, a smart book, a palmtop computer, a cellular phone with multimedia internet function, and similar personal electronic devices, and may include a network interface, a processor, a memory, an audio processing circuit, a microphone, a rotatable camera, a rotatable flashlight, and may include an audio amplifier that may be internal or external, and a speaker unit connected to the audio amplifier.
Optionally, in some possible embodiments of the present invention, the adjusting unit 405 includes:
an angle determination unit for determining a second angle for setting a direct projection coverage of the rotatable flash away from the infant face image, based on the first angle and a coverage angle of the rotatable flash;
a second control unit for controlling the rotatable flash to rotate to the second angle determined by the angle determination unit.
Optionally, in some possible embodiments of the present invention, the mobile terminal further includes:
the second photographing unit is used for controlling the rotatable camera to photograph the target to be photographed at the first angle according to a photographing instruction of a user when the current ambient brightness is judged not to meet the trigger condition for starting the flash lamp;
or,
a third control unit, configured to control the rotatable flash to rotate to the first angle when it is detected that the target to be photographed does not include the infant face image;
and the third shooting unit is used for controlling the rotatable flash lamp to flash at the first angle according to a shooting instruction of a user and controlling the rotatable camera to shoot the target to be shot at the first angle.
Optionally, in some possible embodiments of the present invention, the first control unit 401 is specifically configured to:
controlling a rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by pressing a volume key of the mobile terminal by a user; for example, assuming that the effective rotation range of the rotatable camera is 206 degrees, a volume key of the mobile terminal in the photographing mode may be preset to control the rotatable camera to rotate, specifically, a volume "+" or a volume "-" may be set to cause the rotatable camera to rotate clockwise or counterclockwise by 3 degrees each time the user clicks on the volume key "+" or the volume "-" for example, a long press on the volume key "+" causes the first control unit 401 to control the rotatable camera to rotate clockwise continuously, and a long press on the volume key "-" causes the first control unit 401 to control the rotatable camera to rotate counterclockwise continuously.
Or controlling the rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by a camera rotating function button displayed on a touch display screen of the mobile terminal touched by a user; in specific implementation, a function button for controlling the rotation of the rotatable camera can be visually displayed on a touch display screen of the mobile terminal, so that a user can touch the function button to enable the first control unit 401 to conveniently control the rotatable camera to rotate to a first angle.
Or controlling the rotatable camera of the mobile terminal to rotate to a first angle according to a voice instruction of a user received by a microphone of the mobile terminal. In a specific implementation, the mobile terminal may enter a voice control mode according to a setting instruction of a user, and the first control unit 401 receives the voice instruction of the user through a microphone, and controls the rotatable camera of the mobile terminal to rotate to a first angle.
Optionally, in some possible embodiments of the present invention, the detecting unit 403 is specifically configured to:
under the condition that the target to be shot is identified to comprise the baby face image, the target to be shot is determined to be detected to comprise the baby face image. In a specific implementation, the detection unit 403 may acquire a face image through the rotatable camera, extract features in the face image by using an image recognition algorithm, and match the features with feature data in the face image feature database, and if the face image acquired through the rotatable camera matches with infant face feature data in the face image feature database, the detection unit 403 determines that the target to be photographed includes an infant face image, and further calculates a distance between an upper eyelid and a lower eyelid in the infant face image.
Optionally, in some possible embodiments of the present invention, the mobile terminal further includes:
and the audio playing unit is used for controlling a loudspeaker of the mobile terminal to play a preset audio file.
Optionally, in some possible embodiments of the present invention, the mobile terminal further includes:
and the pre-flashing unit is used for controlling the rotatable flash lamp of the mobile terminal to pre-flash.
Optionally, in some possible embodiments of the present invention, the determining unit 402 is specifically configured to:
and under the condition that the current environment brightness of the mobile terminal is detected to be smaller than a preset brightness threshold value, judging that the current environment brightness meets a flash lamp starting triggering condition.
It can be understood that the functions of the functional modules of the mobile terminal 400 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
It can be seen that, in the embodiment of the present invention, the mobile terminal first controls the rotatable camera of the mobile terminal to rotate to a first angle, secondly, when the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected, when detecting that the target to be shot comprises the infant face image, acquiring the distance between the upper eyelid and the lower eyelid in the infant face image, and then, in case that the distance between the upper eyelid and the lower eyelid in the facial image of the infant is determined to be greater than or equal to the preset distance, adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct illumination coverage angle of the rotatable flashlight, and finally, and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle. By implementing the embodiment of the invention, the mobile terminal detects the face image of the infant in the target to be shot, and when the distance between the upper eyelid and the lower eyelid in the face image of the infant is detected to be greater than or equal to the preset distance, the rotatable flash lamp is adjusted to rotate to the second angle according to the first angle and the direct lighting coverage angle of the rotatable flash lamp, so that the direct lighting coverage range of the rotatable flash lamp is enabled to be far away from the face image of the infant, and the intelligence and the safety of shooting the infant by the mobile terminal are improved.
Fig. 5 is a schematic structural diagram of a mobile terminal 500 disclosed in a fifth embodiment of the present invention, and as shown in fig. 5, the mobile terminal 500 of the present embodiment includes at least one bus 501, at least one processor 502 connected to the bus 501, at least one memory 503 connected to the bus 501, a rotatable camera 504 and a rotatable flash 505.
The processor 502 calls codes stored in the memory 503 through the bus 501 to control the rotatable camera of the mobile terminal to rotate to a first angle, wherein the first angle corresponds to a target to be shot; when the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, detecting whether the target to be shot comprises the face image of the infant; when the target to be shot is detected to comprise the infant face image, the distance between an upper eyelid and a lower eyelid in the infant face image is acquired; when the distance between the upper eyelid and the lower eyelid in the facial image of the infant is judged to be greater than or equal to a preset distance, the rotatable flash lamp is adjusted to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flash lamp; and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
Alternatively, in some possible embodiments of the invention,
the processor 502 is further configured to determine a second angle for setting the direct coverage of the rotatable flash away from the infant face image based on the first angle and the direct coverage angle of the rotatable flash; controlling the rotatable flashlight to rotate to the second angle.
Alternatively, in some possible embodiments of the invention,
the processor 502 is further configured to, if it is determined that the current ambient brightness does not satisfy the flash lamp start trigger condition, control the rotatable camera to shoot the target to be shot at the first angle according to a shooting instruction of a user; or if the target to be shot does not comprise the facial image of the infant, controlling the rotatable flashlight to rotate to the first angle; and controlling the rotatable flash lamp to flash at the first angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
Alternatively, in some possible embodiments of the invention,
the processor 502 controlling the rotatable camera of the mobile terminal to rotate to the first angle includes:
controlling a rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by pressing a volume key of the mobile terminal by a user;
or,
controlling a rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by a camera rotating function button displayed on a touch display screen of the mobile terminal touched by a user;
or,
the method comprises the steps of controlling a rotatable camera of the mobile terminal to rotate to a first angle according to a voice instruction of a user received by a microphone of the mobile terminal.
Alternatively, in some possible embodiments of the invention,
the processor 502 detecting that the image of the baby face in the target to be shot comprises:
and under the condition that the mobile terminal identifies that the target to be shot comprises the infant face image, determining that the target to be shot comprises the infant face image.
Alternatively, in some possible embodiments of the invention,
the processor 502 is further configured to, after adjusting the rotatable flash to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flash, control the flash to flash at the second angle according to a photographing instruction of a user, before: and controlling a loudspeaker of the mobile terminal to play a preset audio file.
Alternatively, in some possible embodiments of the invention,
the processor 502 is further configured to, after adjusting the rotatable flash to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flash, control the flash to flash at the second angle according to a photographing instruction of a user, before: controlling the rotatable flash of the mobile terminal to pre-flash.
Alternatively, in some possible embodiments of the invention,
the processor 502 determining that the current ambient brightness satisfies the flash lamp starting triggering condition includes:
and under the condition that the current environment brightness of the mobile terminal is detected to be smaller than a preset brightness threshold value, judging that the current environment brightness meets a flash lamp starting triggering condition.
It can be understood that the functions of the functional modules of the mobile terminal 500 in this embodiment may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
It can be seen that in the solution of this embodiment, the mobile terminal first controls the rotatable camera of the mobile terminal to rotate to a first angle, secondly, when the current ambient brightness is judged to meet the trigger condition of starting the flash lamp, whether the target to be shot comprises the face image of the baby is detected, when detecting that the target to be shot comprises the infant face image, acquiring the distance between the upper eyelid and the lower eyelid in the infant face image, and then, in case that the distance between the upper eyelid and the lower eyelid in the facial image of the infant is determined to be greater than or equal to the preset distance, adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct illumination coverage angle of the rotatable flashlight, and finally, and controlling the rotatable flash lamp to flash at the second angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle. By implementing the embodiment of the invention, the mobile terminal detects the face image of the infant in the target to be shot, and when the distance between the upper eyelid and the lower eyelid in the face image of the infant is detected to be greater than or equal to the preset distance, the rotatable flash lamp is adjusted to rotate to the second angle according to the first angle and the direct lighting coverage angle of the rotatable flash lamp, so that the direct lighting coverage range of the rotatable flash lamp is enabled to be far away from the face image of the infant, and the intelligence and the safety of shooting the infant by the mobile terminal are improved.
An embodiment of the present invention further provides a computer storage medium, where the computer storage medium may store a program, and the program includes some or all of the steps of any one of the infant photographing methods described in the above method embodiments when executed.
It should be noted that, for simplicity of description, the above-mentioned method embodiments are described as a series of acts or combination of acts, but those skilled in the art will recognize that the present invention is not limited by the order of acts, as some steps may occur in other orders or concurrently in accordance with the invention. Further, those skilled in the art should also appreciate that the embodiments described in the specification are preferred embodiments and that the acts and modules referred to are not necessarily required by the invention.
In the foregoing embodiments, the descriptions of the respective embodiments have respective emphasis, and for parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
In the embodiments provided in the present application, it should be understood that the disclosed apparatus may be implemented in other manners. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the units is only one type of division of logical functions, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection of some interfaces, devices or units, and may be an electric or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a removable hard disk, a magnetic or optical disk, and other various media capable of storing program codes.
The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (12)

1. A method of taking photographs of an infant, comprising:
controlling a rotatable camera of the mobile terminal to rotate to a first angle, wherein the first angle corresponds to a target to be shot;
if the current ambient brightness meets the trigger condition of starting the flash lamp, detecting whether the target to be shot comprises the facial image of the infant;
if the target to be shot is detected to comprise the infant face image, acquiring the distance between an upper eyelid and a lower eyelid in the infant face image;
if the distance between the upper eyelid and the lower eyelid in the facial image of the infant is judged to be greater than or equal to the preset distance, adjusting the rotatable flash lamp to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flash lamp;
controlling a loudspeaker of the mobile terminal to play a preset audio file or controlling the rotatable flash lamp of the mobile terminal to pre-flash at a first moment;
and controlling the rotatable flash lamp to flash at a second angle at a second moment according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed, wherein the second moment lags behind the first moment.
2. The method of claim 1, wherein the adjusting the rotatable flash to rotate to a second angle according to the first angle and a direct coverage angle of the rotatable flash comprises:
determining a second angle for setting the direct exposure coverage of the rotatable flash lamp away from the facial image of the infant according to the first angle and the direct exposure coverage angle of the rotatable flash lamp;
controlling the rotatable flashlight to rotate to the second angle.
3. The method of any of claims 1 or 2, further comprising:
if the current environment brightness is judged not to meet the trigger condition of starting the flash lamp, controlling the rotatable camera to shoot the target to be shot at the first angle according to a shooting instruction of a user;
or,
if the target to be shot does not comprise the facial image of the infant, controlling the rotatable flashlight to rotate to the first angle;
and controlling the rotatable flash lamp to flash at the first angle according to a photographing instruction of a user, and controlling the rotatable camera to photograph the target to be photographed at the first angle.
4. The method of claim 1, wherein the controlling the rotatable camera of the mobile terminal to rotate to the first angle comprises:
controlling a rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by pressing a volume key of the mobile terminal by a user;
or,
controlling a rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by a camera rotating function button displayed on a touch display screen of the mobile terminal touched by a user;
or,
the method comprises the steps of controlling a rotatable camera of the mobile terminal to rotate to a first angle according to a voice instruction of a user received by a microphone of the mobile terminal.
5. The method of claim 1, wherein the detecting that the image of the infant's face is included in the target to be photographed comprises:
and under the condition that the mobile terminal identifies that the target to be shot comprises the infant face image, determining that the target to be shot comprises the infant face image.
6. The method of claim 1, wherein the determining that the current ambient brightness satisfies a flash-on trigger condition comprises:
and under the condition that the current environment brightness of the mobile terminal is detected to be smaller than a preset brightness threshold value, judging that the current environment brightness meets a flash lamp starting triggering condition.
7. A mobile terminal, comprising:
the first control unit is used for controlling a rotatable camera of the mobile terminal to rotate to a first angle, and the first angle corresponds to a target to be shot;
the judging unit is used for judging whether the current ambient brightness meets the starting triggering condition of the flash lamp;
the detection unit is used for detecting whether the target to be shot comprises a baby face image or not when the judgment unit judges that the current environment brightness meets the trigger condition of starting the flash lamp;
the distance acquisition unit is used for acquiring the distance between the upper eyelid and the lower eyelid in the infant face image when the detection unit detects that the target to be shot comprises the infant face image;
the adjusting unit is used for adjusting the rotatable flashlight to rotate to a second angle according to the first angle and the direct projection coverage angle of the rotatable flashlight when the distance between the upper eyelid and the lower eyelid in the face image of the infant is judged to be larger than or equal to a preset distance;
the audio playing unit is used for controlling a loudspeaker of the mobile terminal to play a preset audio file at a first moment, or the pre-flashing unit is used for controlling the rotatable flash lamp of the mobile terminal to pre-flash at the first moment;
and the first photographing unit is used for controlling the rotatable flash lamp to flash at a second angle at a second moment according to a photographing instruction of a user and controlling the rotatable camera to photograph the target to be photographed, wherein the second moment lags behind the first moment.
8. The mobile terminal of claim 7, wherein the adjusting unit comprises:
an angle determination unit for determining a second angle for setting a direct projection coverage of the rotatable flash away from the infant face image, based on the first angle and a coverage angle of the rotatable flash;
a second control unit for controlling the rotatable flash to rotate to the second angle determined by the angle determination unit.
9. The mobile terminal of any of claims 7 or 8, wherein the mobile terminal further comprises:
the second photographing unit is used for controlling the rotatable camera to photograph the target to be photographed at the first angle according to a photographing instruction of a user when the current ambient brightness is judged not to meet the trigger condition for starting the flash lamp;
or,
a third control unit, configured to control the rotatable flash to rotate to the first angle when it is detected that the target to be photographed does not include the infant face image;
and the third shooting unit is used for controlling the rotatable flash lamp to flash at the first angle according to a shooting instruction of a user and controlling the rotatable camera to shoot the target to be shot at the first angle.
10. The mobile terminal of claim 7, wherein the first control unit is specifically configured to:
controlling a rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by pressing a volume key of the mobile terminal by a user;
or,
controlling a rotatable camera of the mobile terminal to rotate to a first angle according to an operation instruction generated by a camera rotating function button displayed on a touch display screen of the mobile terminal touched by a user;
or,
the method comprises the steps of controlling a rotatable camera of the mobile terminal to rotate to a first angle according to a voice instruction of a user received by a microphone of the mobile terminal.
11. The mobile terminal of claim 7, wherein the detection unit is specifically configured to:
under the condition that the target to be shot is identified to comprise the baby face image, the target to be shot is determined to be detected to comprise the baby face image.
12. The mobile terminal of claim 7, wherein the determining unit is specifically configured to:
and under the condition that the current environment brightness of the mobile terminal is detected to be smaller than a preset brightness threshold value, judging that the current environment brightness meets a flash lamp starting triggering condition.
CN201510221914.5A 2015-04-30 2015-04-30 A kind of baby's photographic method and mobile terminal Expired - Fee Related CN104883496B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510221914.5A CN104883496B (en) 2015-04-30 2015-04-30 A kind of baby's photographic method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510221914.5A CN104883496B (en) 2015-04-30 2015-04-30 A kind of baby's photographic method and mobile terminal

Publications (2)

Publication Number Publication Date
CN104883496A CN104883496A (en) 2015-09-02
CN104883496B true CN104883496B (en) 2018-01-23

Family

ID=53950820

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510221914.5A Expired - Fee Related CN104883496B (en) 2015-04-30 2015-04-30 A kind of baby's photographic method and mobile terminal

Country Status (1)

Country Link
CN (1) CN104883496B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027899A (en) * 2016-06-24 2016-10-12 惠州Tcl移动通信有限公司 Camera self-photographing processing method and system based on mobile terminal
CN106161936A (en) * 2016-07-19 2016-11-23 珠海市魅族科技有限公司 A kind of image acquiring method and device
CN106131424A (en) * 2016-07-26 2016-11-16 维沃移动通信有限公司 A kind of method and apparatus of shooting
CN106878619B (en) * 2017-03-15 2019-10-29 联想(北京)有限公司 Parameter adjusting method, device and electronic equipment
CN107147842B (en) * 2017-04-26 2020-03-17 广东艾檬电子科技有限公司 Method and device for photographing children
CN107331319B (en) * 2017-07-27 2023-05-05 Oppo广东移动通信有限公司 Lamp box cloth assembly and lamp box
WO2019047115A1 (en) * 2017-09-07 2019-03-14 深圳传音通讯有限公司 Control method and control system for flashlight of smart terminal
CN108259657A (en) * 2017-12-08 2018-07-06 努比亚技术有限公司 Control method, terminal and the computer readable storage medium of terminal
CN110177217A (en) * 2019-06-28 2019-08-27 Oppo广东移动通信有限公司 Image capturing method, device, electronic equipment and storage medium
CN113395373A (en) * 2021-04-06 2021-09-14 上海福赛梦扬科技有限公司 Camera control method and device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816066A (en) * 2005-02-01 2006-08-09 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal with rotating flash-light
JP2008015351A (en) * 2006-07-07 2008-01-24 Fujifilm Corp Imaging apparatus
CN101373308A (en) * 2007-08-23 2009-02-25 鸿富锦精密工业(深圳)有限公司 Image viewfinding device and flash lamp control method thereof
CN104052928A (en) * 2014-06-16 2014-09-17 广东欧珀移动通信有限公司 Method and electronic equipment for controlling camera to rotate automatically
CN104135619A (en) * 2014-08-12 2014-11-05 广东欧珀移动通信有限公司 Method and device of controlling camera

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1816066A (en) * 2005-02-01 2006-08-09 乐金电子(中国)研究开发中心有限公司 Mobile communication terminal with rotating flash-light
JP2008015351A (en) * 2006-07-07 2008-01-24 Fujifilm Corp Imaging apparatus
CN101373308A (en) * 2007-08-23 2009-02-25 鸿富锦精密工业(深圳)有限公司 Image viewfinding device and flash lamp control method thereof
CN104052928A (en) * 2014-06-16 2014-09-17 广东欧珀移动通信有限公司 Method and electronic equipment for controlling camera to rotate automatically
CN104135619A (en) * 2014-08-12 2014-11-05 广东欧珀移动通信有限公司 Method and device of controlling camera

Also Published As

Publication number Publication date
CN104883496A (en) 2015-09-02

Similar Documents

Publication Publication Date Title
CN104883496B (en) A kind of baby's photographic method and mobile terminal
WO2021017561A1 (en) Face recognition method and apparatus, electronic device, and storage medium
US10375296B2 (en) Methods apparatuses, and storage mediums for adjusting camera shooting angle
CN104125396B (en) Image capturing method and device
WO2017088470A1 (en) Image classification method and device
WO2017020498A1 (en) Image shooting method and device
WO2017071085A1 (en) Alarm method and device
WO2017088266A1 (en) Image processing method and apparatus
WO2019149099A1 (en) Electronic device, human face recognition method, and relevant product
CN105554389B (en) Shooting method and device
JP2017531973A (en) Movie recording method and apparatus, program, and storage medium
WO2019223292A1 (en) Photographing angle determining method and apparatus, terminal, and readable storage medium
CN104935698B (en) A kind of image pickup method of intelligent terminal, filming apparatus and smart phone
WO2017000491A1 (en) Iris image acquisition method and apparatus, and iris recognition device
TWI752105B (en) Feature image acquisition method, acquisition device, and user authentication method
TWI571860B (en) Font size adjustment system and method
WO2017036018A1 (en) Fingerprint identification method and apparatus, and mobile terminal
CN111144365A (en) Living body detection method, living body detection device, computer equipment and storage medium
WO2015150889A1 (en) Image processing method and apparatus, and electronic device
KR20170102923A (en) Image recognition method and apparatus for game
WO2016188065A1 (en) Cloud business card recommendation method and apparatus
WO2019011106A1 (en) State control method and related product
TW201516890A (en) Method, apparatus and computer program product for passerby detection
CN105072335B (en) A kind of photographic method and user terminal
CN104573642B (en) Face identification method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

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

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

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

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180123