CN110765969A - Photographing method and system - Google Patents

Photographing method and system Download PDF

Info

Publication number
CN110765969A
CN110765969A CN201911047962.1A CN201911047962A CN110765969A CN 110765969 A CN110765969 A CN 110765969A CN 201911047962 A CN201911047962 A CN 201911047962A CN 110765969 A CN110765969 A CN 110765969A
Authority
CN
China
Prior art keywords
user
face image
photographed
photographed user
acquired
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.)
Pending
Application number
CN201911047962.1A
Other languages
Chinese (zh)
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.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
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 Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201911047962.1A priority Critical patent/CN110765969A/en
Publication of CN110765969A publication Critical patent/CN110765969A/en
Pending legal-status Critical Current

Links

Images

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/174Facial expression recognition

Abstract

The embodiment of the invention provides a photographing method and system, wherein at least one part on the face of an acquired face image of a photographed user is specifically adjusted, so that an output face image can amplify the expression effect presented by the acquired face image of the photographed user. The method comprises the following steps: acquiring a face image of a photographed user; judging whether the photographed user is a preset user or not; if the photographed user is a preset user, identifying the facial expression presented by the acquired face image of the photographed user, determining at least one part corresponding to the facial expression on the acquired face in the face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, adjusting, and outputting the adjusted face image; and if the photographed user is not the preset user, outputting the acquired face image of the photographed user according to the acquired face image of the photographed user.

Description

Photographing method and system
Technical Field
The invention relates to the technical field of computer data processing, in particular to a photographing method and system.
Background
Nowadays, people record the living intravenous drip by taking a picture. With the continuous development of intelligent terminals, more and more intelligent terminals such as intelligent mobile phones, digital cameras, tablet computers and the like can be used for photographing. In order to enable users to obtain better experience when using the intelligent terminals to take pictures, more and more intelligent terminal manufacturers have built-in beauty functions.
In the prior art, for a beauty function or a beauty application program built in an intelligent terminal, on one hand, a user can adjust a photographed image by setting or adjusting parameters of a beauty effect; on the other hand, the user can select different strength beauty adjustment parameter sets, such as natural effect, white effect, and the like, so as to adjust the photographed image.
However, as the demand for personalization increases, the uniform beauty function is less preferred by the user.
Disclosure of Invention
The embodiment of the invention provides a photographing method and system, wherein at least one part on the face of an acquired face image of a photographed user is specifically adjusted, so that an output face image can amplify the expression effect presented by the acquired face image of the photographed user.
In a first aspect, the present invention provides a photographing method, comprising:
acquiring a face image of a photographed user;
judging whether the photographed user is a preset user or not;
if the photographed user is a preset user, identifying the facial expression presented by the acquired face image of the photographed user, determining at least one part corresponding to the facial expression on the acquired face in the face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, adjusting, and outputting the adjusted face image;
and if the photographed user is not the preset user, outputting the acquired face image of the photographed user.
According to the method, when a user takes a picture by using the picture taking function in the terminal equipment, firstly, a camera in the terminal equipment acquires a face image of the user to be taken, and whether the user to be taken is a preset user is judged; and then, if the photographed user is the preset user, recognizing the facial expression presented by the acquired facial image of the photographed user through a facial expression recognition algorithm built in the photographing program, and performing targeted adjustment on at least one part related to the facial expression, so that the output facial image can amplify the expression effect presented by the acquired facial image of the photographed user. And if the photographed user is not the preset user, outputting the acquired face image of the photographed user, thereby realizing the photographing of the personalized photo.
In an optional implementation manner, the determining whether the photographed user is a preset user includes:
acquiring corresponding identity information from the identity information bound with the face image according to the acquired face image of the photographed user and a face information matching algorithm;
if the obtaining is successful, the photographed user is judged to be a preset user, otherwise, the photographed user is judged not to be the preset user.
In an alternative implementation manner, recognizing a facial expression presented by the acquired facial image of the photographed user specifically includes:
and according to the acquired face image of the photographed user, recognizing the facial expression presented by the acquired face image of the photographed user according to a preset facial expression recognition algorithm.
In an optional implementation manner, determining at least one part corresponding to a facial expression from a face in the acquired facial image of the photographed user according to the facial expression presented by the acquired facial image of the photographed user for adjustment includes:
determining at least one part corresponding to the facial expression from the face in the acquired facial image of the photographed user according to the facial expression presented by the acquired facial image of the photographed user;
and acquiring a preset part adjusting parameter corresponding to the determined at least one part, and adjusting the determined at least one part in the acquired face image of the photographed user according to the preset part adjusting parameter.
In a second aspect, the present invention further provides a photographing system, including:
the face image acquisition unit is used for acquiring a face image of a photographed user;
the identity information judging unit is used for judging whether the photographed user is a preset user or not;
the information processing unit is used for identifying facial expressions presented by the acquired facial images of the photographed users according to the facial images of the photographed users acquired by the facial image acquisition unit and a preset facial expression identification algorithm;
the photographing unit is used for outputting a face image according to the result obtained by the identity information judging unit;
the photographing unit is specifically configured to:
if the identity information judging unit obtains that the photographed user is a preset user, determining at least one part corresponding to the facial expression from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, and outputting the adjusted face image;
and if the identity information judging unit judges that the photographed user is not the preset user, outputting the acquired face image of the photographed user.
Through the system, when a user takes a picture by using the picture taking function in the terminal equipment, firstly, the face image acquisition unit acquires the face image of the photographed user, and the identity information judgment unit judges whether the photographed user is a preset user; then, if the identity information judging unit obtains that the photographed user is the preset user, the information processing unit identifies the facial situation presented by the acquired facial image of the photographed user through a facial expression recognition algorithm built in the photographing program, and the photographing unit performs targeted adjustment on at least one part related to the facial expression, so that the output facial image can amplify the expression effect presented by the acquired facial image of the photographed user. And if the identity information judging unit judges that the photographed user is not the preset user, the photographing unit outputs the acquired face image of the photographed user, so that the personalized photo is photographed.
In an optional implementation manner, the photographing system further includes:
the input unit is used for inputting identity information and a face image corresponding to the identity information by a user;
the identity information binding unit is used for binding the identity information input by the user with the face image corresponding to the identity information;
and the data storage unit is used for storing the identity information and the identity information bound with the face image.
In an optional implementation manner, the identity information determining unit is specifically configured to:
acquiring corresponding identity information from the identity information bound with the face image in the data storage unit according to the acquired face image of the photographed user and a face information matching algorithm;
if the obtaining is successful, the photographed user is judged to be a preset user, otherwise, the photographed user is judged not to be the preset user.
In an alternative implementation, the data storage unit is further configured to:
storing preset part adjusting parameters;
the photographing unit is used for:
determining at least one part corresponding to the facial expression presented by the acquired face image of the photographed user from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user;
and acquiring a preset part adjusting parameter corresponding to the determined at least one part from the data storage unit, adjusting the determined at least one part in the acquired face image of the photographed user according to the preset part adjusting parameter, and outputting the adjusted face image.
In a third aspect, the invention also includes a computer apparatus comprising:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the steps included in the method in any optional implementation manner of the first aspect according to the obtained program instructions.
In a fourth aspect, the present invention further includes a storage medium storing computer-executable instructions for causing a computer to perform the steps included in the method in any one of the optional implementations of the first aspect.
The invention can be further combined to provide more implementations on the basis of the implementations provided by the above aspects.
One or more technical solutions provided in the present application have at least the following technical effects or advantages:
when a user takes a picture by using a picture taking function in the terminal equipment, at least one part related to the facial expression is adjusted in a targeted manner according to the facial expression presented by the obtained face image of the photographed user, so that the output face image can amplify the expression effect presented by the obtained face image of the photographed user.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be 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 that other drawings can be obtained according to these drawings without inventive exercise.
FIG. 1 is a schematic flow chart illustrating a photographing method according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart illustrating a photographing method according to an embodiment of the present invention;
FIG. 3 is a schematic flow chart illustrating a photographing method according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a photographing system in an embodiment of the invention.
Detailed Description
The technical solutions of the embodiments of the present invention are described in detail with reference to the drawings and the specific embodiments, and it should be understood that the specific features of the embodiments and the embodiments of the present invention are detailed descriptions of the technical solutions of the embodiments of the present invention, and are not limited to the technical solutions of the embodiments of the present invention, and the technical features of the embodiments and the embodiments of the present invention may be combined with each other without conflict.
In the first aspect, the expression effect presented by the acquired face image of the photographed user can be amplified in order to enable the output image. The present invention includes a photographing method, as shown in fig. 1, the method including:
step 101: and acquiring a face image of the photographed user.
Specifically, the face image of the photographed user can be obtained by opening a camera in an intelligent terminal in the existing market, and the face image of the photographed user can be obtained through the camera, or the face image of the photographed user can be obtained by calling the camera on the intelligent terminal by a facial beautification application installed on the intelligent terminal. Wherein, its intelligent terminal includes but not limited to: intelligent cell-phone, digital camera, intelligent wrist-watch, panel computer.
Step 102: judging whether the photographed user is a preset user or not;
step 103: if the photographed user is a preset user, recognizing the facial expression presented by the acquired face image of the photographed user, determining at least one part corresponding to the facial expression from the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, adjusting, and outputting the adjusted face image.
It should be noted that, recognizing the facial expression presented by the acquired facial image of the photographed user may be implemented by an alternative manner, which specifically includes: and according to the acquired face image of the photographed user, recognizing the facial expression presented by the acquired face image of the photographed user according to a preset facial expression recognition algorithm.
For example, after the photographing application software acquires the face image, the facial expression presented by the acquired face image of the photographed user is recognized through a facial expression recognition algorithm preset by the photographing application software, through a facial expression recognition algorithm preset by the photographing application software built-in the intelligent terminal device.
It should be further noted that the facial expressions may include laughing, crying, surprise, frowning, fear, and the like, and it is to be supplemented that the preset facial expression recognition algorithm program may be an existing facial expression recognition algorithm program on the market, and by introducing the existing facial expression recognition algorithm program on the market into the photographing application software, when the photographing application software needs to recognize the facial expression presented by the acquired facial image of the photographed user, the facial expression recognition algorithm introduced into the photographing application software is called to recognize the facial image, so as to recognize the facial expression presented by the facial image.
Step 104: and if the photographed user is not the preset user, outputting the acquired face image of the photographed user.
According to the method, when a user takes a picture by using the picture taking function in the terminal equipment, firstly, a camera in the terminal equipment acquires a face image of the user to be taken, and whether the user to be taken is a preset user is judged; and then, if the photographed user is the preset user, recognizing the facial expression presented by the acquired facial image of the photographed user through a facial expression recognition algorithm built in the photographing program, and performing targeted adjustment on at least one part related to the facial expression, so that the output facial image can amplify the expression effect presented by the acquired facial image of the photographed user. And if the photographed user is not the preset user, outputting the acquired face image of the photographed user, thereby realizing the photographing of the personalized photo.
Specifically, step 103: and determining at least one part corresponding to the facial expression from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, and adjusting. Wherein the parts of the face include eyebrows, eyes, nose, and mouth. Of course, the parts of the face also include the cheeks and the chin.
The shape of the mouth, the shape of the chin, and the position of the cheek in the acquired face image of the photographed user may be adjusted, for example, when the facial expression presented by the acquired face image of the photographed user is recognized as smiling. For example, the rising radian of the two ends of the mouth corner, the width of the chin and the positions of the cheeks are adjusted, so that the output face image can enlarge the smiling expression effect presented by the acquired face image of the photographed user, and only one part, such as the mouth, can be adjusted.
In an alternative implementation, step 102: judging whether the photographed user is a preset user, as shown in fig. 2, includes:
step 201: acquiring corresponding identity information from preset identity information bound with the face image according to the acquired face image of the photographed user and a face information matching algorithm;
step 202: if the user is successfully obtained, the photographed user is a preset user;
step 203: otherwise, the photographed user is not the preset user.
Specifically, the user can use a photographing application program of the terminal device to enter the identity information and the face image corresponding to the identity information before photographing, and the photographing application program binds the entered identity information and the face image corresponding to the identity information. The identity information comprises fingerprint information, voiceprint information and photographed user name information.
Therefore, when the terminal equipment is used for taking a picture after the user is shot, the terminal equipment acquires the face image. And acquiring corresponding identity information from preset identity information bound with the face image according to the acquired face image of the photographed user and a face information matching algorithm. If the obtaining is successful, the identity information corresponding to the obtained face image of the photographed user is contained in the identity information bound with the face image, so that the user of the obtained face image of the photographed user is a preset user, and the photographed user is a preset user; if the face image is not successfully acquired, the fact that the acquired identity information corresponding to the face image of the photographed user does not exist in the identity information bound with the face image is represented, and therefore the fact that the user of the acquired face image of the photographed user is not a preset user is represented, and the fact that the photographed user is not a preset user is represented.
It should be added that sometimes, the holder of the terminal device may also take a picture of other users besides taking a picture of itself, so that it is not necessary to adjust the acquired face image of the user to be photographed when taking a picture of other users, and it is only necessary to directly output the acquired face image of the user to be photographed.
By the method, whether the photographed user is the preset user can be obtained only by acquiring the corresponding identity information from the preset identity information bound with the face image according to the acquired face image of the photographed user and the face information matching algorithm.
In an alternative implementation, step 103: according to the facial expression presented by the acquired facial image of the photographed user, determining at least one part corresponding to the facial expression from the face in the acquired facial image of the photographed user for adjustment, as shown in fig. 3, the method includes:
step 301: determining at least one part corresponding to the facial expression from the face in the acquired face image of the photographed user according to the facial expression of the acquired face image of the photographed user;
step 302: and acquiring a preset part adjusting parameter corresponding to the determined at least one part, and adjusting the determined at least one part in the acquired face image of the photographed user according to the preset part adjusting parameter.
It should be noted that the user may preset the adjustment parameters of each part on the face in the photographing application software, or the adjustment parameters of each part on the face may be already built in the photographing application software. Wherein, what needs to be supplemented is that the preset part adjustment parameters include: an eye shape adjustment parameter, an eyebrow shape adjustment parameter, a nose shape adjustment parameter, a mouth shape adjustment parameter, a cheek position adjustment parameter, and a chin shape adjustment parameter. The preset part adjusting parameters can be stored in a storage unit of the photographing software, and also can be stored in a data storage unit of the intelligent terminal device, and are not specifically limited herein, so long as it is ensured that the preset part adjusting parameters can be acquired when the preset part adjusting parameters need to be called.
By the method, when a user takes a picture by using a picture taking function in the terminal equipment, if the facial expression presented by the obtained face image of the photographed user is identified as crying, the eye adjustment parameters corresponding to the eyes are obtained by determining that the eyes correspond to the facial expression from the obtained face image of the photographed user, so that the shapes of the eyes in the obtained face image of the photographed user are adjusted according to the eye adjustment parameters, and the crying expression effect can be presented by amplifying the obtained face image of the photographed user through the output face image.
In an alternative implementation, step 301: according to the facial expression of the obtained face image of the photographed user, determining at least one part corresponding to the facial expression from the face in the obtained face image of the photographed user, which specifically comprises:
if the facial expression presented by the acquired face image of the photographed user is smiling, the part corresponding to the facial expression is the mouth and eyes in the acquired face image of the photographed user;
if the facial expression presented by the acquired face image of the photographed user is surprised, the parts corresponding to the facial expression are the mouth, eyes, forehead and eyebrows in the acquired face image of the photographed user;
if the facial expression presented by the acquired face image of the photographed user is frown, the part corresponding to the facial expression is the eyebrow in the acquired face image of the photographed user.
In an alternative implementation, step 302: acquiring a preset part adjusting parameter corresponding to the determined at least one part, and adjusting the determined at least one part in the acquired face image of the photographed user according to the preset part adjusting parameter, wherein the method specifically comprises the following steps:
if the parts corresponding to the facial expressions are the mouth and eyes in the acquired face image of the photographed user, acquiring mouth shape adjustment parameters and eye shape adjustment parameters, respectively adjusting the shapes of the mouth and the eyes in the acquired face image of the photographed user by adopting the mouth shape adjustment parameters and the eye shape adjustment parameters, and outputting the adjusted face image;
if the parts corresponding to the facial expressions are the mouth, the eyes, the forehead and the eyebrows in the obtained face image of the photographed user, obtaining mouth shape adjustment parameters, eye shape adjustment parameters, forehead adjustment parameters and eyebrow shape adjustment parameters, respectively adjusting the shapes of the mouth, the eyes, the forehead and the eyebrows in the obtained face image of the photographed user by adopting the mouth shape adjustment parameters, the eye shape adjustment parameters, the forehead adjustment parameters and the eyebrow shape adjustment parameters, and outputting the adjusted face image;
and if the part corresponding to the facial expression is the eyebrow in the acquired face image of the photographed user, acquiring the eyebrow shape adjustment parameter, adjusting the shape of the eyebrow in the acquired face image of the photographed user by adopting the eyebrow shape adjustment parameter, and outputting the adjusted face image.
According to the method in any optional implementation manner, when a user takes a picture by using a picture taking function in the terminal device, at least one part corresponding to the facial expression is determined from the face in the obtained face image of the photographed user according to the facial expression presented by the obtained face image of the photographed user, a corresponding preset part adjusting parameter is obtained according to the determined at least one part, and the shape of the corresponding part in the obtained face image of the photographed user is specifically adjusted according to the preset part adjusting parameter, so that the expression of the face image of the photographed user, which is obtained by amplifying the obtained face image of the photographed user, of the output adjusted face image is obtained.
In the second aspect, the facial image output after adjustment can be made to enlarge the expression presented by the acquired facial image of the photographed user. The present invention also includes a photographing system, as shown in fig. 4, comprising: the system comprises a face image acquisition unit, an identity information judgment unit, an information processing unit and a photographing unit. Specifically, the face image acquisition unit is used for acquiring a face image of a photographed user; the identity information judging unit is used for judging whether the photographed user is a preset user or not; the information processing unit is used for identifying facial expressions presented by the acquired facial images of the photographed users according to the facial images of the photographed users acquired by the facial image acquisition unit and a preset facial expression identification algorithm; and the photographing unit is used for outputting the face image according to the result obtained by the identity information judging unit.
Specifically, the photographing unit is specifically configured to:
if the identity information judging unit obtains that the photographed user is a preset user, determining at least one part corresponding to the facial expression from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user to adjust, and outputting the adjusted face image;
and if the identity information judging unit judges that the photographed user is not the preset user, outputting the acquired face image of the photographed user.
More specifically, the photographing system may be photographing application software installed in the intelligent terminal, and when the user needs to take a picture, the photographing system opens a camera in the intelligent terminal, and the face recognition unit obtains a face image of the photographed user through the camera, where the intelligent terminal includes but is not limited to: intelligent cell-phone, digital camera, intelligent wrist-watch, panel computer.
It should be added that the preset facial expression recognition algorithm may be a preset facial expression recognition algorithm program in the photographing system, and after the facial image acquisition unit acquires the facial image, the information processing unit recognizes a facial expression presented by the acquired facial image of the photographed user through the preset facial expression recognition algorithm. The preset facial expression recognition algorithm program can be an existing facial expression recognition algorithm program on the market, and the facial expression recognition algorithm program on the market is imported into the photographing application software, so that when the photographing application software needs to recognize facial expressions, the facial expression recognition algorithm imported into the photographing application software is called to recognize the facial images, and the facial expressions presented by the facial images are obtained. It should also be noted that facial expressions include laughing, crying, surprise, frowning, fear.
Through the system, when a user takes a picture by using the picture taking function in the terminal equipment, firstly, the face image acquisition unit acquires the face image of the photographed user, and the identity information judgment unit judges whether the photographed user is a preset user; then, if the identity information judging unit obtains that the photographed user is the preset user, the information processing unit identifies the facial situation presented by the acquired facial image of the photographed user through a facial expression recognition algorithm built in the photographing program, and the photographing unit performs targeted adjustment on at least one part related to the facial expression, so that the output facial image can amplify the expression effect presented by the acquired facial image of the photographed user. And if the identity information judging unit judges that the photographed user is not the preset user, the photographing unit outputs the acquired face image of the photographed user, so that the personalized photo is photographed.
The shape of the mouth, the shape of the chin, and the position of the cheek in the acquired face image of the photographed user may be adjusted in a targeted manner, such as when the facial expression presented by the acquired face image of the photographed user is recognized as smiling. For example, the rising radian of the two ends of the mouth corner, the width of the chin and the positions of the cheeks are adjusted, so that the output face image can enlarge the smiling expression effect presented by the acquired face image of the photographed user, and only one part, such as the mouth, can be adjusted.
In an optional implementation manner, the photographing system further includes:
the input unit is used for inputting identity information and a face image corresponding to the identity information by a user;
the identity information binding unit is used for binding the identity information with the face image corresponding to the identity information;
and the data storage unit is used for storing the identity information and the identity information bound with the face image.
Specifically, if a user frequently uses a certain terminal device to take a picture, the user can input identity information and a face image corresponding to the identity information in advance through the input unit, wherein the identity information comprises fingerprint information, voiceprint information and user name information. The identity information binding unit binds the identity information and the face image corresponding to the identity information. When the user uses the terminal equipment to take a picture later, the face image of the photographed user is obtained, and the identity information judging unit can conveniently judge whether the photographed user is the user pre-input by the user.
In an optional implementation manner, the identity information determining unit is specifically configured to:
acquiring corresponding identity information from the identity information bound with the face image in the data storage unit according to the acquired face image of the photographed user and a face information matching algorithm;
and if the acquisition is successful, the photographed user is judged to be the preset user, otherwise, the photographed user is judged not to be the preset user.
Through the system, if the identity information judging unit successfully obtains the face image of the photographed user, the identity information corresponding to the obtained face image of the photographed user is stored in the data storage unit, so that the user of the obtained face image of the photographed user is a preset user, and the photographed user is a preset user; if the identity information judging unit does not successfully acquire the face image of the photographed user, the identity information corresponding to the acquired face image of the photographed user is not stored in the data storage unit, so that the user who acquires the face image of the photographed user is not the preset user, and the photographed user is not the preset user. It should be added that sometimes, the holder of the terminal device may also take a picture of other users besides taking a picture of itself, so that it is not necessary to adjust the acquired face image of the user to be photographed when taking a picture of other users, and it is only necessary to directly output the acquired face image of the user to be photographed.
In an alternative implementation manner, in order to adjust the parts on the face in the acquired facial image of the photographed user in a targeted manner according to the facial expressions presented by the acquired facial image of the photographed user, the facial expression is displayed on the face of the photographed user. The data memory cell is still used for storing and predetermines position adjustment parameter, and the unit of shooing is used for:
determining at least one part corresponding to the facial expression from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user;
and acquiring a preset part adjusting parameter corresponding to the determined at least one part from the data storage unit, adjusting the determined at least one part in the acquired face image of the photographed user according to the preset part adjusting parameter, and outputting the adjusted face image.
It should be noted that the part adjustment parameters include: an eye shape adjustment parameter, an eyebrow shape adjustment parameter, a nose shape adjustment parameter, a mouth shape adjustment parameter, a cheek position adjustment parameter, and a chin shape adjustment parameter.
Through the system, when the photographed user photographs by using the photographing function in the terminal equipment, at least one part corresponding to the facial expression is determined from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, corresponding preset part adjusting parameters are acquired according to the at least one part, and the shape of the corresponding part in the acquired face image of the photographed user is adjusted according to the preset part adjusting parameters, so that the output image can amplify the expression effect presented by the face of the photographed user.
In an optional implementation manner, the photographing unit is specifically configured to:
if the facial expression of the obtained face image of the photographed user is smile, and the part corresponding to the facial expression is the mouth and eyes in the obtained face image of the photographed user, obtaining a mouth shape adjustment parameter and an eye shape adjustment parameter, respectively adjusting the shapes of the mouth and the eyes in the obtained face image of the photographed user by adopting the mouth shape adjustment parameter and the eye shape adjustment parameter, and outputting the adjusted face image;
if the facial expression presented by the acquired face image of the photographed user is surprised, and the parts corresponding to the facial expression are the mouth, eyes, forehead and eyebrows in the acquired face image of the photographed user, acquiring a mouth shape adjustment parameter, an eye shape adjustment parameter, a forehead adjustment parameter and an eyebrow shape adjustment parameter, respectively adjusting the shapes of the mouth, eyes, forehead and eyebrows in the acquired face image of the photographed user by adopting the mouth shape adjustment parameter, the eye shape adjustment parameter, the forehead adjustment parameter and the eyebrow shape adjustment parameter, and outputting the adjusted face image;
and if the facial expression presented by the acquired face image of the photographed user is frown, and the part corresponding to the facial expression is eyebrow in the acquired face image of the photographed user, acquiring an eyebrow shape adjusting parameter, adjusting the shape of the eyebrow in the acquired face image of the photographed user by adopting the eyebrow shape adjusting parameter, and outputting the adjusted face image.
With the system in any optional implementation manner, when a user to be photographed photographs with a photographing system in the terminal device, firstly, the face image obtaining unit obtains a face image through a camera in the terminal device; then, the identity information judging unit judges whether the photographed user is a preset user, and if the photographed user is the preset user, the identity information judging unit judges whether the photographed user is the preset user; finally, the information processing unit identifies the facial expression presented by the acquired face image of the photographed user through a preset facial expression identification algorithm in the photographing system; finally, the photographing unit performs targeted adjustment on at least one part related to the facial expression according to the facial expression presented by the acquired face image of the photographed user, so that the output image can amplify the expression effect presented by the face of the photographed user. And if the identity information judging unit judges whether the photographed user is a preset user, and if the photographed user is not the preset user, the photographing unit outputs the acquired face image of the photographed user.
In a third aspect, the invention also includes a computer apparatus comprising:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the steps included in the method in any optional implementation manner of the first aspect according to the obtained program instructions.
In a fourth aspect, the present invention further includes a storage medium storing computer-executable instructions for causing a computer to perform the steps included in the method in any one of the optional implementations of the first aspect.
The invention can be further combined to provide more implementations on the basis of the implementations provided by the above aspects.
One or more technical solutions provided in the present application have at least the following technical effects or advantages:
when a user takes a picture by using a picture taking function in the terminal equipment, at least one part related to the facial expression is adjusted in a targeted manner according to the facial expression presented by the obtained face image of the photographed user, so that the output face image can amplify the expression effect presented by the obtained face image of the photographed user.
It will be apparent to those skilled in the art that embodiments of the present application may be provided as methods, systems. The present application may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present application may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present application is described with reference to flowchart illustrations and/or block diagrams of methods, systems according to the present application. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. Such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a system for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present application without departing from the spirit and scope of the application. Thus, if such modifications and variations of the present application fall within the scope of the claims of the present application and their equivalents, the present application is intended to include such modifications and variations as well.

Claims (10)

1. A method of taking a picture, comprising:
acquiring a face image of a photographed user;
judging whether the photographed user is a preset user or not;
if the photographed user is a preset user, identifying the facial expression presented by the acquired face image of the photographed user, determining at least one part corresponding to the facial expression on the acquired face in the face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, adjusting, and outputting the adjusted face image;
and if the photographed user is not the preset user, outputting the acquired face image of the photographed user.
2. The method of claim 1, wherein determining whether the photographed user is a preset user comprises:
acquiring corresponding identity information from the identity information bound with the face image according to the acquired face image of the photographed user and a face information matching algorithm;
if the obtaining is successful, the photographed user is judged to be a preset user, otherwise, the photographed user is judged not to be the preset user.
3. The method of claim 1 or 2, wherein identifying the facial expression presented by the captured facial image of the photographed user comprises:
and according to the acquired face image of the photographed user, recognizing the facial expression presented by the acquired face image of the photographed user according to a preset facial expression recognition algorithm.
4. The method of claim 3,
determining at least one part corresponding to the facial expression from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, and adjusting the part, including:
determining at least one part corresponding to the facial expression from the face in the acquired facial image of the photographed user according to the facial expression presented by the acquired facial image of the photographed user;
and acquiring a preset part adjusting parameter corresponding to the determined at least one part, and adjusting the determined at least one part in the acquired face image of the photographed user according to the preset part adjusting parameter.
5. A photographing system, comprising:
the face image acquisition unit is used for acquiring a face image of a photographed user;
the identity information judging unit is used for judging whether the photographed user is a preset user or not;
the information processing unit is used for identifying facial expressions presented by the acquired facial images of the photographed users according to the facial images of the photographed users acquired by the facial image acquisition unit and a preset facial expression identification algorithm;
the photographing unit is used for outputting a face image according to the result obtained by the identity information judging unit;
the photographing unit is specifically configured to:
if the identity information judging unit obtains that the photographed user is a preset user, determining at least one part corresponding to the facial expression from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user, and outputting the adjusted face image;
and if the identity information judging unit judges that the photographed user is not the preset user, outputting the acquired face image of the photographed user.
6. The system of claim 5, wherein the photographing system further comprises:
the input unit is used for inputting identity information and a face image corresponding to the identity information by a user;
the identity information binding unit is used for binding the identity information input by the user with the face image corresponding to the identity information;
and the data storage unit is used for storing the identity information and the identity information bound with the face image.
7. The system of claim 6, wherein the identity information determining unit is specifically configured to:
acquiring corresponding identity information from the identity information bound with the face image in the data storage unit according to the acquired face image of the photographed user and a face information matching algorithm;
if the obtaining is successful, the photographed user is judged to be a preset user, otherwise, the photographed user is judged not to be the preset user.
8. The system of claim 7,
the data storage unit is also used for storing preset part adjusting parameters;
the photographing unit is used for:
determining at least one part corresponding to the facial expression presented by the acquired face image of the photographed user from the face in the acquired face image of the photographed user according to the facial expression presented by the acquired face image of the photographed user;
and acquiring a preset part adjusting parameter corresponding to the determined at least one part from the data storage unit, adjusting the determined at least one part in the acquired face image of the photographed user according to the preset part adjusting parameter, and outputting the adjusted face image.
9. A computer device, characterized in that the computer device comprises:
a memory for storing program instructions;
a processor for calling program instructions stored in said memory and for executing the steps comprised in the method of any one of claims 1 to 4 in accordance with the obtained program instructions.
10. A storage medium storing computer-executable instructions for causing a computer to perform the steps comprising the method of any one of claims 1-4.
CN201911047962.1A 2019-10-30 2019-10-30 Photographing method and system Pending CN110765969A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911047962.1A CN110765969A (en) 2019-10-30 2019-10-30 Photographing method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911047962.1A CN110765969A (en) 2019-10-30 2019-10-30 Photographing method and system

Publications (1)

Publication Number Publication Date
CN110765969A true CN110765969A (en) 2020-02-07

Family

ID=69334583

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911047962.1A Pending CN110765969A (en) 2019-10-30 2019-10-30 Photographing method and system

Country Status (1)

Country Link
CN (1) CN110765969A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672053A (en) * 2020-12-23 2021-04-16 深圳创维-Rgb电子有限公司 Photographing method, photographing device, terminal equipment and computer-readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521619A (en) * 2011-11-22 2012-06-27 汉王科技股份有限公司 Information presentation method and device based on face recognition and face recognition printing system
CN104715236A (en) * 2015-03-06 2015-06-17 广东欧珀移动通信有限公司 Face beautifying photographing method and device
CN105302315A (en) * 2015-11-20 2016-02-03 小米科技有限责任公司 Image processing method and device
CN106056533A (en) * 2016-05-26 2016-10-26 维沃移动通信有限公司 Photographing method and terminal
CN106791394A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 Image processing method and device
CN109831618A (en) * 2018-12-10 2019-05-31 平安科技(深圳)有限公司 Photographic method, computer readable storage medium and terminal device based on expression
CN112672053A (en) * 2020-12-23 2021-04-16 深圳创维-Rgb电子有限公司 Photographing method, photographing device, terminal equipment and computer-readable storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102521619A (en) * 2011-11-22 2012-06-27 汉王科技股份有限公司 Information presentation method and device based on face recognition and face recognition printing system
CN104715236A (en) * 2015-03-06 2015-06-17 广东欧珀移动通信有限公司 Face beautifying photographing method and device
CN105302315A (en) * 2015-11-20 2016-02-03 小米科技有限责任公司 Image processing method and device
CN106056533A (en) * 2016-05-26 2016-10-26 维沃移动通信有限公司 Photographing method and terminal
CN106791394A (en) * 2016-12-20 2017-05-31 北京小米移动软件有限公司 Image processing method and device
CN109831618A (en) * 2018-12-10 2019-05-31 平安科技(深圳)有限公司 Photographic method, computer readable storage medium and terminal device based on expression
CN112672053A (en) * 2020-12-23 2021-04-16 深圳创维-Rgb电子有限公司 Photographing method, photographing device, terminal equipment and computer-readable storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112672053A (en) * 2020-12-23 2021-04-16 深圳创维-Rgb电子有限公司 Photographing method, photographing device, terminal equipment and computer-readable storage medium

Similar Documents

Publication Publication Date Title
JP6878572B2 (en) Authentication based on face recognition
JP4845755B2 (en) Image processing apparatus, image processing method, program, and storage medium
CN107730444B (en) Image processing method, image processing device, readable storage medium and computer equipment
US8957943B2 (en) Gaze direction adjustment for video calls and meetings
WO2016180224A1 (en) Method and device for processing image of person
CN108171032A (en) A kind of identity identifying method, electronic device and computer readable storage medium
WO2021027537A1 (en) Method and apparatus for taking identification photo, device and storage medium
JP5949331B2 (en) Image generating apparatus, image generating method, and program
US11132544B2 (en) Visual fatigue recognition method, visual fatigue recognition device, virtual reality apparatus and storage medium
CN104537389A (en) Human face recognition method and terminal equipment
JP5949030B2 (en) Image generating apparatus, image generating method, and program
KR100886489B1 (en) Method and system for inserting special effects during conversation by visual telephone
JP2018538608A (en) Face verification method and electronic device
US20160189413A1 (en) Image creation method, computer-readable storage medium, and image creation apparatus
WO2021120626A1 (en) Image processing method, terminal, and computer storage medium
JP2014157557A (en) Image generation device, image generation method and program
CN110765969A (en) Photographing method and system
KR20130142315A (en) Character service system and character service providing method thereof
CN113763517A (en) Facial expression editing method and electronic equipment
CN106851100B (en) Photo processing method and system
CN110913121B (en) Shooting method, electronic equipment and computer storage medium
JP2014174855A (en) Image processor, image processing method and program
KR102334622B1 (en) A method of controlling multimedia device and a multimedia device
KR20180114605A (en) Facial recognition method
EP3628382A1 (en) Avatar establishing method and avatar establishing device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200207

RJ01 Rejection of invention patent application after publication