WO2017118250A1 - Facial beautification method, apparatus, and terminal device - Google Patents

Facial beautification method, apparatus, and terminal device Download PDF

Info

Publication number
WO2017118250A1
WO2017118250A1 PCT/CN2016/108268 CN2016108268W WO2017118250A1 WO 2017118250 A1 WO2017118250 A1 WO 2017118250A1 CN 2016108268 W CN2016108268 W CN 2016108268W WO 2017118250 A1 WO2017118250 A1 WO 2017118250A1
Authority
WO
WIPO (PCT)
Prior art keywords
feature value
beauty
face
facial feature
terminal device
Prior art date
Application number
PCT/CN2016/108268
Other languages
French (fr)
Chinese (zh)
Inventor
李明栋
琚凯
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2017118250A1 publication Critical patent/WO2017118250A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • G06T5/77Retouching; Inpainting; Scratch removal
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • 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/168Feature extraction; Face representation
    • 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/168Feature extraction; Face representation
    • G06V40/169Holistic features and representations, i.e. based on the facial image taken as a whole
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Definitions

  • Embodiments of the present invention relate to the field of image processing and communication technologies, and in particular, to a beauty processing method, apparatus, and terminal device.
  • the smart terminal needs to save the face feature value in advance, and preset the face processing parameter corresponding to the face feature value; specifically, when performing the beauty photo, firstly, Obtaining a face feature value of each face in the current shooting interface, and then matching the currently obtained face feature value with a preset face feature value. If a face can match the preset face feature value, It is considered that the face has been recognized. At this time, the corresponding face of the matched face feature value in the shooting interface can be processed by the smart terminal, and the beauty process is specifically processed according to the preset color preset in the smart terminal.
  • the beauty treatment parameters include, for example, skin tone adjustment, microdermabrasion, large eyes, and face-lifting.
  • the basis for judging which face in the photographing interface to perform the beauty treatment is whether the corresponding facial feature value is stored in the smart terminal, and since the storage space of the smart terminal is limited, usually only A fixed number of face feature values are stored, so it is difficult to satisfy a large number of faces for cosmetic processing at the same time, for example, there are usually dozens or even hundreds of people in a group photo.
  • the beauty photographing method in the related art due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously satisfy the demand for the beauty processing of a large number of human faces, thereby resulting in the beauty of the smart terminal.
  • the problem of poor color processing performance due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously satisfy the demand for the beauty processing of a large number of human faces, thereby resulting in the beauty of the smart terminal.
  • the problem of poor color processing performance due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously satisfy the demand for the beauty processing of a large number of human faces, thereby resulting in the beauty of the smart terminal.
  • the problem of poor color processing performance due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously satisfy the demand for the beauty processing of a large number of human faces, thereby resulting in the beauty of the smart terminal.
  • the problem of poor color processing performance due to the limitation of the storage space in
  • an embodiment of the present invention provides a beauty processing method, apparatus, and terminal device to solve the beauty photographing method in the related art. It satisfies the demand for beauty treatment of a large number of faces, which leads to a problem of poor cosmetic processing performance of the smart terminal.
  • an embodiment of the present invention provides a beauty treatment method, including:
  • the first facial feature value acquired by the terminal device is used to search for a matching second facial feature value and a beauty parameter in the network server, including:
  • the matching result includes the second facial feature value and the facial parameter, and the face corresponding to the second facial feature value is the first facial feature Some or all faces corresponding to the value.
  • the first facial feature value obtained by the terminal device before the searching for the matching second facial feature value and the beauty parameter in the network server, the first facial feature value obtained by the terminal device further includes:
  • the face feature value and the face parameter in the terminal device are stored or deleted.
  • the first facial feature value acquired by the terminal device is in a network Before finding matching second face feature values and beauty parameters in the server, it also includes:
  • the method further includes:
  • the operation instruction is used to instruct the network server to perform a face feature value and a beauty parameter in the stored face feature value library. Make one or more of the add, read, update, and delete operations.
  • an embodiment of the present invention provides a beauty treatment method, including:
  • the network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device;
  • the second facial feature value and the facial parameter are used to indicate the terminal device Performing a facial treatment on the part or all of the faces corresponding to the first facial feature value according to the second facial feature value according to the beauty parameter, and performing the facial treatment on the face as the second The face corresponding to the face feature value.
  • the network server is configured by using a terminal
  • the first face feature value of the device is searched for the matching second face feature value and the beauty parameter, including:
  • the network server matches the first facial feature value by using the stored facial feature value library, and the matched result includes the second facial feature value and the facial parameter, the second person
  • the face corresponding to the face feature value is part or all of the face corresponding to the first face feature value.
  • the method before the network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device, the method further includes:
  • the network server receives a facial feature value and a beauty parameter sent by the terminal device.
  • the method further includes:
  • the network server adds, reads, updates, and deletes one of a face feature value and a beauty parameter in the face feature value database in the network server according to the operation instruction, and
  • the terminal device returns an operation result.
  • the method further includes:
  • the face feature value stored in the terminal device matches the face feature value corresponding to the face to be subjected to the beauty process.
  • an embodiment of the present invention provides a beauty treatment device, including:
  • a search module configured to search for a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value obtained by the terminal device;
  • a beauty module configured to find a second face feature value according to the search module
  • a part or all of the faces corresponding to one face feature value are subjected to a beauty treatment according to the beauty parameter, and the face subjected to the beauty treatment is a face corresponding to the second face feature value.
  • the searching module includes: a sending unit, configured to send the first facial feature value to the network server, where the first facial feature value is used Instructing the network server to match the first facial feature value by using the stored facial feature value library;
  • a receiving unit configured to receive a matching result sent by the network server, where the matching result includes the second facial feature value and the facial parameter, and the face corresponding to the second facial feature value is the Part or all of the face corresponding to the first face feature value.
  • the beauty processing device further includes: a sending module, configured to: in the searching module, find a match in the network server by using the first facial feature value Transmitting the facial feature value and the beauty parameter in the terminal device to the network server before the second facial feature value and the beauty parameter;
  • the processing module is configured to store or delete the facial feature value and the beauty parameter in the terminal device.
  • the searching module is further configured to pass the first person
  • the face feature value is used to find a matching second face feature value and a beauty parameter in the terminal device by using the first face feature value before searching for the matched second face feature value and the beauty parameter in the network server.
  • the searching module is configured to search for the matching second facial feature value and the beauty parameter in the network server by using the first facial feature value, that is, when the searching module is not in the terminal device When the second facial feature value matching the first facial feature value is found, the second facial feature value and the beauty parameter matching the first facial feature value are searched in the web server.
  • the sending module is further configured to send an operation instruction to the network server by using an operation performed by the user on the terminal device, where the operation instruction is used to indicate the
  • the web server performs one or more of adding, reading, updating, and deleting the face feature value and the beauty parameter in the stored face feature value library.
  • an embodiment of the present invention provides a beauty treatment device, including:
  • a searching module configured to search for a matching second facial feature value and a beauty parameter by using a first facial feature value of the terminal device
  • a sending module configured to send the second face feature value and the beauty parameter found by the searching module to the terminal device, where the second face feature value and the beauty parameter are used to indicate
  • the terminal device performs a beauty treatment on the part or all the faces corresponding to the first facial feature value according to the second facial feature value according to the beauty parameter, and the face processed by the beauty treatment is a The face corresponding to the second face feature value is described.
  • the searching module includes: a receiving unit, configured to receive the first facial feature value sent by the terminal device;
  • a matching unit configured to match, by using the stored face feature value library, the first face feature value received by the receiving unit, the matched result includes the second face feature value and the beauty parameter,
  • the face corresponding to the second facial feature value is a part or all of the face corresponding to the first facial feature value.
  • the beauty processing device further includes: a receiving module, configured to search for a matching second human face by using the first facial feature value of the terminal device in the searching module Before the feature value and the beauty parameter, the face feature value and the beauty parameter sent by the terminal device are received.
  • the receiving module is further configured to receive the sending by the terminal device Operation instruction
  • the beauty processing device further includes: a processing module configured to receive according to the receiving module And an operation instruction for one or more of adding, reading, updating and deleting the face feature value and the beauty parameter in the face feature value database in the network server;
  • the sending module is further configured to return an operation result to the terminal device.
  • the sending module is further configured to send the network to the terminal device a face feature value and a beauty parameter stored in the server, wherein the face feature value and the beauty parameter are used to indicate that the terminal device uses the face feature value stored in the terminal device before performing the beauty process
  • the face feature values corresponding to the faces to be subjected to the beauty treatment are matched.
  • an embodiment of the present invention provides a terminal device, including: a camera, a display, and a processor, wherein the processor is provided with the beauty processing device according to any one of the above third aspects;
  • the camera is configured to take a picture or a camera, and convert a face in the captured image into a face feature value
  • the display is configured to display a real-time captured image during photographing or photographing, and display the photographing result after the photographing or photographing is completed.
  • a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the beauty processing method in the above embodiment.
  • the beauty processing method, device and terminal device provided by the embodiment of the present invention find the matching second facial feature value and the beauty parameter in the network server by using the first facial feature value acquired by the terminal device, and according to the found
  • the face of the two faces is subjected to the beauty treatment according to the beauty parameters of the face or the face corresponding to the first face feature value, and the face processed by the face is the face corresponding to the second face feature value, and the present invention passes
  • the face feature value and the beauty parameter stored on the network server side implement the beauty treatment method for the first face feature value acquired by the terminal device, and solve the beauty photographing mode in the related art, which is stored in the smart terminal performing the photographing.
  • Space limitation It is difficult to meet the demand for beauty treatment of a large number of faces at the same time, resulting in poor cosmetic processing performance of the smart terminal.
  • FIG. 1 is a flowchart of a beauty processing method according to an embodiment of the present invention
  • FIG. 2 is a flowchart of another beauty processing method according to an embodiment of the present invention.
  • FIG. 3 is a flowchart of still another beauty processing method according to an embodiment of the present invention.
  • FIG. 5 is a flowchart of still another beauty processing method according to an embodiment of the present invention.
  • FIG. 6 is a flowchart of signaling interaction of a beauty processing method according to an embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of a beauty treatment device according to an embodiment of the present invention.
  • FIG. 8 is a schematic structural diagram of another beauty treatment device according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of still another beauty treatment device according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of still another beauty treatment device according to an embodiment of the present invention.
  • the terminal device in the following embodiments is a smart terminal having a camera, such as a smart phone, a tablet computer, or a personal digital assistant (PDA).
  • the terminal device in the embodiments of the present invention usually has a terminal device. You can display a screen that captures images in real time or displays them.
  • the following specific embodiments of the present invention may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
  • FIG. 1 is a flowchart of a beauty processing method according to an embodiment of the present invention.
  • the method may be performed by a beauty treatment device, which is combined by hardware and software.
  • the device can be integrated in the processor of the terminal device for use by the processor.
  • the method provided in this embodiment may include:
  • the object of the beauty treatment is usually a human face in the captured image.
  • the face in the current captured image can be used as the first facial feature value, similar to the related technology, and the basis of the beauty treatment.
  • the same is the stored face feature value library and the beauty parameter.
  • the face feature value library is the basis for determining whether to perform the face treatment on the face corresponding to the first face feature value, and the beauty parameter is performing the beauty.
  • the basis for processing is not obtained from the local machine, but are stored on a specific network, such as a Baiyun cloud disk, or an Apple mobile phone.
  • the terminal device that performs the beauty processing needs to register the user on the network server, for example, register "Meause User 1" on the network server, and store the "Made in the Beauty User 1"
  • the face feature value library and the beauty parameter so that the terminal device does not need to store a large number of face feature values, and the storage capacity of the network server is generally large, and more face feature values can be stored. Therefore, when the terminal device takes a photo, the second face feature value and the beauty parameter matching the first face feature value can be searched for by the registered user in the web server, so that the face feature value in the web server is obtained.
  • Library and beauty parameters are used as the basis for beauty treatment.
  • the network server generally stores the face feature value database and the beauty parameter in advance, that is, the S110 may include: S100, and send the face feature value and the beauty parameter in the terminal device to the network server; S101, Store or delete face feature values and beauty parameters in the terminal device.
  • the user who needs to set the facial feature value may be photographed by using the common photographing function of the terminal device, or the facial feature value of the specific user may be obtained from the photo of the terminal device, and may be first in the terminal device. Setting the beauty parameter; then, the terminal device sends its own data and parameters related to the beauty photo to the corresponding registered user on the network server, so that the facial feature value and the beauty parameter of the terminal device are synchronized to the network.
  • the face feature value and the beauty parameter in the terminal device can be selectively stored or deleted.
  • the expression of the face feature value in this embodiment may be a face photo taken by the terminal, or the terminal may process the feature parameters extracted from the face photo, such as a piece of text, a two-dimensional code, and the like.
  • the embodiment of the present invention does not limit the correspondence between the face feature value and the beauty parameter.
  • the face feature value and the face parameter may be, for example, a one-to-one correspondence, that is, different face effects for different faces.
  • Such a beauty mode is more targeted, and different beauty parameters can be set according to the characteristics of each person; for example, the face feature value and the beauty parameter can also be a many-to-one relationship, that is, the same beauty is set for multiple faces.
  • Yan parameters such a beauty way is relatively simple, reducing the complexity of beauty treatment, easy to implement.
  • the face feature value library and the beauty parameter pre-stored in the network server of the embodiment may be preset by other means, for example, the user directly uploads to the registered user of the network server through the network.
  • part or all of the face corresponding to the first facial feature value is processed according to the beauty parameter, and the face processed by the facial treatment is corresponding to the second facial feature value. Face.
  • some or all of the faces corresponding to the first face feature value have been found through the face feature value library in the web server, for example, part of the face is found in the network server and the corresponding face feature value is found in the network server. , while other faces don’t find the corresponding face in the web server.
  • the eigenvalue that is, the face corresponding to the second facial feature value is a subset of the face corresponding to the first facial feature value, and may be identical.
  • the beauty processing only the face corresponding to the second face feature value that has been found is subjected to the beauty treatment, and the other faces do not need to perform the beauty treatment; for example, when a user is in the group of other people, the terminal The device stores its own facial feature value. Therefore, among the multiple faces of the photo, only the face of the user has a corresponding face value, that is, the object processed by the beauty is only the user.
  • the terminal device can only store a limited number of facial feature values, and it is difficult to perform cosmetic processing on a large number of faces at the same time; for example, an object that currently needs to be beautiful is not stored in the terminal device, and needs to be photographed or The photo obtains the face feature value, and the parameter can be processed before the beauty process is performed. If the next time the beauty object is changed, the above method needs to be repeated; for example, after the terminal device is replaced, the face feature value and the beauty parameter are required. You can take a photo of your face after resetting it on a new terminal device, which adds extra work.
  • the beauty processing method provided by the embodiment searches for the matching second facial feature value and the beauty parameter in the web server by using the first facial feature value acquired by the terminal device, and according to the found second facial feature value Part or all of the faces corresponding to the first face feature value are subjected to the beauty treatment according to the beauty parameter, and the face subjected to the beauty treatment is the face corresponding to the second face feature value, and the embodiment is stored in the network server.
  • the face feature value and the beauty parameter of the terminal implement the beauty treatment method for the first face feature value acquired by the terminal device, and solve the beauty photographing mode in the related art, due to the limitation of the storage space in the smart terminal performing the photographing, It is difficult to meet the demand for beauty treatment of a large number of faces at the same time, resulting in poor cosmetic processing performance of the smart terminal.
  • the network server usually has a large storage space, and can store a large number of facial feature values. Therefore, the beauty processing method provided in this embodiment can also avoid various problems caused by limited storage space of the terminal device, for example, , when the object of beauty treatment changes, the network If there is a matching face in the face feature value stored in the server, it does not need to be reset, and can be directly searched and used; for example, after the terminal device is replaced, the data stored in the network server is not affected, and Repeating the setting in the terminal device greatly reduces the workload of the beauty treatment and improves the practicality of the beauty photograph.
  • FIG. 2 is a flowchart of another beauty processing method according to an embodiment of the present invention.
  • the present invention provides a specific manner for searching for a face feature value and a beauty parameter from a network server.
  • the S110 may include: S111, sending the first face feature value to the network server.
  • the first facial feature value is used to indicate that the network server matches the first facial feature value by using the stored facial feature value database; S112, receiving a matching result sent by the network server, the matching result including the second human face
  • the feature value and the beauty parameter, the face corresponding to the second face feature value is part or all of the face corresponding to the first face feature value.
  • the terminal device can perform data interaction with the registered user on the network server, for example, “beauty user 1” described above, and the data related to the terminal device is stored in “beauty user 1”, that is,
  • the web server can provide the above-mentioned beauty service for a plurality of terminal devices, and distinguish different terminal devices by different registered users.
  • FIG. 3 is a flowchart of still another beauty processing method according to an embodiment of the present invention.
  • the foregoing embodiment has been described that after the data related to the beauty processing is synchronized to the network server by the terminal device, the data can be saved in the terminal device. Therefore, when the terminal device performs the beauty processing, the terminal device can also query the terminal device first.
  • the stored face feature value is shown in FIG. 3 on the basis of the embodiment shown in FIG. 1 .
  • the method further includes: S102, searching for matching in the terminal device by using the first face feature value.
  • the second face feature value and the beauty parameter; correspondingly, the S110 may be replaced by: when the second face feature value matching the first face feature value is not found in the terminal device, searching and searching in the network server The second face feature value and the beauty parameter matched by one face feature value.
  • the beauty processing method provided in this embodiment considers that the face feature value of the certain data can be stored in the terminal device, and the corresponding face feature value is found from the local machine and the network server is reduced.
  • the steps of interaction are more time-sensitive. You can search for it locally. If it is not found in the machine, you can further search it in the network server.
  • the method provided in this embodiment further includes: S130, sending an operation instruction to the network server by using an operation performed by the user on the terminal device, the operation instruction And one or more of the operations of instructing the network server to add, read, update, and delete the facial feature values and the beauty parameters in the stored facial feature value library.
  • the execution order of the S130 is not limited.
  • the change of the facial feature value and the beauty parameter in the network server may be performed before or after the photographing, and may be performed by the user at any time.
  • S130 is executed after S120 as an example; in addition, the change of data in the network server can be performed not only by the terminal device but also by the user directly to the registered user of the network server through the network.
  • FIG. 4 is a flowchart of still another beauty processing method according to an embodiment of the present invention.
  • the method may be performed by a beauty treatment device, which is combined by hardware and software.
  • the device can be set in a network server.
  • the method provided in this embodiment may include:
  • the network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device.
  • the object of the beauty treatment is also a human face in the captured image.
  • the face in the current captured image may be used as the first facial feature value, and different from the related art, the implementation of the present invention
  • the face feature value library and the beauty parameter are not obtained from the local machine, but are stored in a specific network, such as a Baiyun cloud disk, or an Apple cloud (iCloud) of the Apple mobile phone, in a specific implementation.
  • the user who has the terminal device registration in the network server for example, the "Meause User 1" is registered on the network server, and the "Face User 1" stores the face feature value library and the beauty parameter, so that the terminal device does not need Store a large number of face feature values, and Moreover, the storage capacity of the network server is generally large, and more face feature values can be stored. Therefore, for a terminal device that needs to take a beautiful photo, the web server can provide a related server for performing beauty processing, that is, the web server searches for a second facial feature matching the first facial feature value under the registered user of the terminal device.
  • Value and beauty parameters in this embodiment, the face feature value library and the beauty parameter in the web server are specifically used as the basis for the beauty treatment.
  • the network server generally stores the face feature value library and the beauty parameter in advance, that is, the S210 may include: S200, the network server receives the face feature value and the beauty parameter sent by the terminal device.
  • the user who needs to set the facial feature value may be photographed by using the common photographing function of the terminal device, or the facial feature value of the specific user may be obtained from the photo of the terminal device, and may be first in the terminal device. Setting the beauty parameter; then, the terminal device sends its own data and parameters related to the beauty photo to the corresponding registered user on the network server, so that the facial feature value and the beauty parameter of the terminal device are synchronized to the network.
  • the server the server.
  • the terminal device in this embodiment may selectively store or delete the face feature value and the beauty parameter in the terminal device.
  • the expression of the face feature value in this embodiment may be a face photo taken by the terminal, or the terminal may process the feature parameters extracted from the face photo, such as a piece of text, a two-dimensional code, and the like.
  • the correspondence between the facial feature value and the facial parameter is not limited, and the facial feature value and the facial parameter may be, for example, a one-to-one correspondence, and the facial feature value and the facial parameter may be, for example, more The relationship to one.
  • the face feature value library and the beauty parameter pre-stored in the network server of the embodiment may be preset by other means, for example, the user directly uploads to the registered user of the network server through the network.
  • the network server sends the found second facial feature value and the facial parameter to the terminal device, where the second facial feature value and the facial parameter are used to instruct the terminal device to perform the first facial feature according to the second facial feature value.
  • the first and second faces have been searched through the face feature value database in the web server.
  • Some or all of the faces corresponding to the face feature values for example, some faces find the corresponding face feature values in the web server, and other faces do not find the corresponding face feature values in the web server, that is, It is said that the face corresponding to the second face feature value is a subset of the face corresponding to the first face feature value, and may be identical.
  • the beauty treatment only the face corresponding to the second face feature value that has been found is subjected to the beauty treatment, and the other faces do not need to perform the beauty treatment.
  • the network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device, and firstly searches for the second facial feature value according to the found second facial feature value.
  • Some or all of the faces corresponding to the face feature values are processed according to the beauty parameters, and the face processed by the face is the face corresponding to the second face feature value.
  • the face stored on the network server is used.
  • the feature value and the beauty parameter realize the beauty treatment method of the first face feature value acquired by the terminal device, and solve the beauty photographing mode in the related art. Due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously It satisfies the demand for beauty treatment of a large number of faces, which leads to a problem of poor cosmetic processing performance of the smart terminal.
  • the network server usually has a large storage space, and can store a large number of facial feature values. Therefore, the beauty processing method provided in this embodiment can also avoid various problems caused by limited storage space of the terminal device. It has been specifically described in the examples, so it will not be described here.
  • FIG. 5 is a flowchart of still another beauty processing method according to an embodiment of the present invention.
  • the present invention provides a specific manner for searching for a face feature value and a beauty parameter from a network server.
  • S210 may include: S211, and the network server receives the first face sent by the terminal device.
  • the face corresponding to the second facial feature value is part or all of the face corresponding to the first facial feature value.
  • the registered user on the network server can perform data interaction with the terminal device, for example, “beauty user 1” described above, and the data related to the terminal device is stored in “beauty user 1”, that is,
  • the web server can provide the above-mentioned beauty service for a plurality of terminal devices, and distinguish different terminal devices by different registered users.
  • the data in the registered user of the network server is changeable at any time, that is, the method provided in this embodiment further includes: S230, the network server receives an operation instruction sent by the terminal device; and S240, the network server processes the network server according to the operation instruction.
  • the face feature value and the face parameter in the face feature value library are one or more of adding, reading, updating, and deleting operations, and returning the operation result to the terminal device.
  • the execution order of the S230-S240 is not limited, and the change of the facial feature value and the beauty parameter in the network server may be performed before or after the photographing, and may be performed by the user at any time.
  • the embodiment is shown as an example after S230 to S240 are executed after S220; in addition, the change of data in the network server can be performed not only by the terminal device but also by the user directly to the registered user of the network server through the network. in.
  • the network server in this embodiment can serve a plurality of terminal devices, that is, after the terminal device is replaced, the network server can also provide the server.
  • the method provided in this embodiment further includes: the network server to the terminal The device sends a facial feature value and a beauty parameter stored in the network server, where the facial feature value and the beauty parameter are used to indicate the facial feature value and the to-be-executed beauty stored in the terminal device before the terminal device performs the beauty processing.
  • the face feature values corresponding to the processed face are matched.
  • FIG. 6 is a flowchart of signaling interaction of a beauty processing method according to an embodiment of the present invention.
  • the embodiment shown in Figure 6 includes:
  • the terminal device sends the acquired first facial feature value to the network server, where the terminal device may be sent to a specific registered user on the network server.
  • the network server performs the stored face feature value database and the first face feature value. match.
  • the network server sends a matching result to the terminal device, where the matching result includes a second facial feature value and a beauty parameter, and the face corresponding to the second facial feature value is a part or all faces corresponding to the first facial feature value.
  • the method provided in this embodiment needs to perform a registration process before the terminal device performs the beauty processing through the data in the network server.
  • the method includes:
  • the terminal device sends a registration request to the network server.
  • the network server returns registration information to the terminal device, where the registration information includes information such as a registered account and a password.
  • the facial feature value and the beauty parameter in the terminal device can be synchronized to the network server, that is, before S310, the method further includes:
  • S303 Synchronize the beauty data, specifically, the terminal device sends the facial feature value and the beauty parameter to the network server.
  • the method provided in this embodiment includes: S304, the terminal device stores or deletes its own facial feature value and the beauty parameter.
  • the data in the network server can be changed by the terminal device interacting with the network server.
  • the method provided in this embodiment further includes: S314, sending an operation instruction to the network server by using an operation performed by the user on the terminal device.
  • the network server performs one or more of adding, reading, updating, and deleting operations on the face feature value and the beauty parameter in the stored face feature value library according to the operation instruction.
  • the network server returns an operation result to the terminal device.
  • the manner in which the network server presets data and the manner in which the data in the network server is changed may also be uploaded by the user directly to the registered user of the network server through the network.
  • the method provided in this embodiment further includes: S317, the network server sends the facial feature value and the beauty parameter stored in the network server to the terminal device.
  • the terminal device returns an acknowledgement message to the network server. For example, after the user replaces the terminal device, it is not necessary to reset the data content related to the beauty function, and the network content can be acquired by means of network synchronization.
  • S314 to S316 and S317 to S318 are independent execution steps, and the execution sequences of S314 to S316 and S317 to S318 and S310 to S313 are not limited; and S314 to S316 can be executed after the terminal device registers the user. S317 to S318 are usually performed after the terminal device registers the user, and the web server has the data related to the beauty.
  • FIG. 7 is a schematic structural diagram of a beauty treatment device according to an embodiment of the present invention.
  • the beauty treatment device provided in this embodiment is suitable for performing facial treatment on a face in a captured image of a terminal device
  • the beauty treatment device is implemented by a combination of hardware and software, and the device can be integrated in the terminal device.
  • the processor for the processor to call.
  • the beauty treatment device of this embodiment specifically includes: a search module 11 and a beauty module 12 .
  • the searching module 11 is configured to search for a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value acquired by the terminal device.
  • the object of the beauty treatment is also a human face in the captured image.
  • the face in the current captured image can be used as the first facial feature value, which is different from the related art in various embodiments of the present invention.
  • the comparison between the face feature value library and the beauty parameter is not obtained from the local machine, but stored on a specific network side, and can also be a Baidu cloud disk, or an Apple cloud (iCloud) of an Apple mobile phone, for example,
  • the cosmetically processed terminal device needs to register the user on the web server, for example, also "beauty user 1". Therefore, when the terminal device takes a photo, the corresponding facial feature value and the beauty parameter can be searched for by the registered user in the web server, so that the facial feature value and the beauty parameter in the web server are used as the basis for the beauty treatment. .
  • the correspondence between the facial feature value and the facial parameter is not limited, and the facial feature value and the facial parameter may be, for example, a one-to-one correspondence, the facial feature value and the beauty.
  • the color parameter can also be, for example, a many-to-one relationship.
  • the beauty module 12 is configured to perform facial treatment on the part or all of the faces corresponding to the first facial feature value according to the second facial feature value found by the searching module 11 according to the beauty parameter, and perform the facial treatment on the face The face corresponding to the second face feature value.
  • some or all of the faces corresponding to the first face feature value have been found through the face feature value library in the web server, for example, part of the face is found in the network server and the corresponding face feature value is found in the network server.
  • the other face does not find the corresponding face feature value in the web server, that is, the face corresponding to the second face feature value is a subset of the face corresponding to the first face feature value, Can be identical. That is, when performing the beauty treatment, only part of the face corresponding to the found second face feature value is subjected to the beauty treatment, and other faces do not need to perform the beauty treatment.
  • the facial server feature value and the beauty parameter are generally pre-stored in the network server, that is, the beauty processing device provided in this embodiment may further include: a sending module 13 configured to pass the first person in the searching module 11
  • the face feature value is sent to the network server by the face feature value and the beauty parameter in the terminal device before the matching second face feature value and the beauty parameter are searched in the network server; the processing module 14 is configured to store or delete the terminal device.
  • Face feature values and beauty parameters may be preset by other means, for example, the user directly uploads to the registered user of the network server through the network.
  • the beauty treatment device provided by the embodiment of the present invention is used to perform the beauty treatment method provided by the embodiment shown in FIG. 1 of the present invention, and has a corresponding function module, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
  • FIG. 8 is a schematic structural diagram of another beauty treatment device according to an embodiment of the present invention.
  • the searching module 11 in this embodiment may include: a sending unit 15 configured to send the first facial feature value to the network server, the first facial feature The value is used to indicate that the network server matches the first facial feature value by using the stored facial feature value database; the receiving unit 16 is configured to receive the matching result sent by the network server,
  • the matching result includes a second facial feature value and a facial parameter, and the human face corresponding to the second facial feature value is a part or all of the human face corresponding to the first facial feature value.
  • the beauty processing device provided by the embodiment of the present invention is used to perform the beauty processing method provided by the embodiment shown in FIG. 2 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
  • the foregoing embodiment has been described that after the data related to the beauty processing is synchronized to the network server by the terminal device, the data may be saved in the terminal device. Therefore, when the terminal device performs the beauty processing, the terminal device may also be used first.
  • the search module 11 in this embodiment is further configured to: before finding the matching second face feature value and the beauty parameter in the web server by using the first face feature value, Searching for the matched second facial feature value and the beauty parameter in the terminal device by using the first facial feature value; the searching module 11 is configured to search the network server for the matching second facial feature value by using the first facial feature value And the beauty parameter means that when the search module 11 does not find the second face feature value matching the first face feature value in the terminal device, searching for the first face feature value in the network server Two face eigenvalues and beauty parameters.
  • the data in the registered user of the network server can be changed at any time.
  • the manner of changing the data in the network server can be performed, for example, by the beauty processing device provided in this embodiment.
  • the sending module 13 is further configured to pass The operation performed by the user on the terminal device sends an operation instruction to the network server, where the operation instruction is used to instruct the network server to add, read, update, and update the facial feature value and the beauty parameter in the stored facial feature value database. Delete one or more of the actions.
  • the beauty processing device provided by the embodiment of the present invention is used to perform the beauty processing method provided by the embodiment shown in FIG. 3 of the present invention, and has a corresponding functional module, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
  • the execution order of the data in the network server is not limited, and the face feature value and the beauty parameter in the network server may be changed before or after taking a photo. Therefore, the user performs the data at any time; in addition, the change of the data in the network server can be performed not only by the terminal device, but also by the user directly to the registered user of the network server through the network.
  • FIG. 9 is a schematic structural diagram of still another beauty treatment device according to an embodiment of the present invention.
  • the beauty treatment device provided in this embodiment is suitable for performing beauty treatment on a face in a captured image of a terminal device
  • the beauty treatment device is implemented by a combination of hardware and software, and the device can be set on a network server.
  • the beauty processing device of this embodiment specifically includes a lookup module 21 and a sending module 22.
  • the searching module 21 is configured to search for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device.
  • the object of the beauty treatment is also a human face in the captured image.
  • the face in the current captured image can be used as the first facial feature value, which is different from the related art in various embodiments of the present invention.
  • the matching face value library and beauty parameters are not obtained from the local machine, but stored on a specific network side, which can also be Baidu cloud disk, or Apple cloud (iCloud) of Apple mobile phone.
  • the network server the user who has the terminal device registration, for example, the “Meause User 1” is registered on the network server.
  • the web server can provide a related server for performing beauty processing, that is, the web server searches for a second facial feature matching the first facial feature value under the registered user of the terminal device.
  • Value and beauty parameters in this embodiment, the face feature value library and the beauty parameter in the web server are specifically used as the basis for the beauty treatment.
  • the correspondence between the facial feature value and the facial parameter is not limited, and the facial feature value and the facial parameter may be, for example, a one-to-one correspondence, and the facial feature value and the facial parameter may be, for example, more The relationship to one.
  • the sending module 22 is configured to send the second facial feature value and the beauty parameter found by the searching module 21 to the terminal device, where the second facial feature value and the beauty parameter are used to indicate that the terminal device is configured according to the second facial feature value Part or all of the faces corresponding to the first face feature value are in accordance with the beauty face
  • the face is subjected to the beauty treatment, and the face subjected to the beauty treatment is the face corresponding to the feature value of the second face.
  • some or all of the faces corresponding to the first face feature value have been found through the face feature value library in the web server, for example, part of the face is found in the network server and the corresponding face feature value is found in the network server.
  • the other face does not find the corresponding face feature value in the web server, that is, the face corresponding to the second face feature value is a subset of the face corresponding to the first face feature value, Can be identical. That is, when performing the beauty treatment, only part of the face corresponding to the found second face feature value is subjected to the beauty treatment, and other faces do not need to perform the beauty treatment.
  • the web server typically stores the facial feature value and the facial parameter in advance, that is, the facial processing device provided in this embodiment may further include: a receiving module 23 configured to pass through the terminal device in the searching module 21 Before the first facial feature value finds the matched second facial feature value and the beauty parameter, the facial feature value and the facial parameter transmitted by the terminal device are received.
  • the face feature value and the beauty parameter pre-stored in the network server of the embodiment may be preset by other means, for example, the user directly uploads to the registered user of the network server through the network.
  • the beauty processing device provided by the embodiment of the present invention is used to perform the beauty processing method provided by the embodiment shown in FIG. 4 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
  • FIG. 10 is a schematic structural diagram of still another beauty treatment device according to an embodiment of the present invention.
  • the searching module 21 in this embodiment may include: a receiving unit 24 configured to receive a first facial feature value sent by the terminal device; and a matching unit 25 configured to Matching the stored first face feature value library with the first face feature value received by the receiving unit 24, the matched result includes a second face feature value and a beauty parameter, and the face corresponding to the second face feature value It is part or all of the face corresponding to the first face feature value.
  • the data in the registered user of the network server can be changed at any time.
  • the manner of changing the data in the network server can be performed, for example, by the beauty processing device provided in this embodiment.
  • the receiving module 23 is further configured to receive An operation instruction sent by the terminal device;
  • the beauty processing device of this embodiment further includes: a processing module 26 configured to add, read, and read facial feature values and beauty parameters in the face feature value database in the network server according to the operation instruction received by the receiving module 23 One or more of the update and delete operations; the sending module 22 is further configured to return an operation result to the terminal device.
  • the network server in this embodiment can serve a plurality of terminal devices, that is, after the terminal device is replaced, the network server can also provide the server.
  • the sending module 22 is further configured. And sending the facial feature value and the beauty parameter stored in the network server to the terminal device, where the facial feature value and the beauty parameter are used to indicate that the terminal device stores the facial feature value and the waiting value in the terminal device before performing the beauty processing. Match the facial feature values corresponding to the face processed by the beauty treatment.
  • the beauty treatment device provided by the embodiment of the present invention is used to perform the beauty treatment method provided by the embodiment shown in FIG. 5 of the present invention, and has a corresponding function module, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
  • the execution order of the data in the network server is not limited, and the change of the face feature value and the beauty parameter in the network server may be performed before or after the photographing, and may be performed by the user at any time;
  • the change of data in the network server can be performed not only by the terminal device, but also by the user directly to the registered user of the network server through the network.
  • the embodiment of the present invention further provides a terminal device, including: a camera, a display, and a processor, wherein the processor is provided with a beauty processing device in any of the embodiments shown in FIG. 7 and FIG. 8;
  • the camera is set to take a picture or a camera, and converts the face in the captured image into a face feature value;
  • the display is set to display a real-time captured image during photographing or photographing, and displays the shooting result after the photographing or photographing is completed.
  • the terminal device in this embodiment may be a smart phone, and the beauty photo can be taken after installing the beauty app, and the tablet computer and the micro single camera can also have the function of beauty photographing.
  • the terminal device provided in this embodiment is used to perform any of the embodiments shown in FIG. 1 to FIG. 6 of the present invention.
  • the provided beauty treatment method has the corresponding physical device, and its implementation principle and technical effect are similar, and will not be described here.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • part or all of the face corresponding to the first facial feature value is processed according to the beauty parameter, and the face processed by the facial treatment is corresponding to the second facial feature value. Face.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • the first facial feature value obtained by the terminal device is searched for the matching second facial feature value and the beauty parameter in the network server, and the first person is compared according to the found second facial feature value.
  • Some or all of the faces corresponding to the face feature values are processed according to the beauty parameters, and the face processed by the face is the face corresponding to the feature values of the second face.
  • the present invention stores the face feature values stored on the network server side.
  • the beauty parameter realizes the beauty treatment method of the first facial feature value acquired by the terminal device, and solves the beauty photographing mode in the related technology. Due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously satisfy the a larger number of faces The need for cosmetic processing results in poor cosmetic processing performance of the smart terminal.

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • General Health & Medical Sciences (AREA)
  • Human Computer Interaction (AREA)
  • Multimedia (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)
  • Processing Or Creating Images (AREA)

Abstract

Disclosed are a facial beautification method, apparatus, and terminal device. The facial beautification method comprises: searching for a matching second facial feature value and facial beautification parameter in a network server on the basis of a first facial feature value obtained by a terminal device (S110); and performing facial beautification on part or all of a face corresponding to the first facial feature value on the basis of the found second facial feature value and according to the facial beautification parameter, the face undergoing the facial beautification being a face corresponding to the second facial feature value (S120). The invention resolves a problem of a facial beautification photographing technique of the related art in which a requirement for performing facial beautification on a large number of faces at the same time cannot be met because the smart terminal taking the photo has limited storage space, resulting in poor facial beautification performance of the smart terminal.

Description

一种美颜处理方法、装置和终端设备Beauty treatment method, device and terminal device 技术领域Technical field
本发明实施例涉及图像处理和通信技术领域,尤指一种美颜处理方法、装置和终端设备。Embodiments of the present invention relate to the field of image processing and communication technologies, and in particular, to a beauty processing method, apparatus, and terminal device.
背景技术Background technique
随着计算机技术的发展,智能终端的应用范围得到了广泛的提高,例如可以通过智能终端听音乐、玩游戏、上网聊天和拍照等。特别地,智能美颜技术作为目前智能终端拍照的一种附加功能,该技术的发展和使用受到用户的青睐。With the development of computer technology, the application range of intelligent terminals has been widely improved, for example, listening to music, playing games, chatting on the Internet, and taking photos through smart terminals. In particular, smart beauty technology is an additional function of current smart terminal photography, and the development and use of the technology is favored by users.
目前采用智能终端进行美颜拍照的基本原理是:智能终端中需要预先保存人脸特征值,并且预先设置人脸特征值对应的美颜处理参数;具体地,在进行美颜拍照时,首先需要获取当前拍摄界面中每个人脸的人脸特征值,随后将当前获取的人脸特征值与预设的人脸特征值进行匹配,若某个人脸能与预设的人脸特征值匹配,则认为该人脸已经被识别出,此时可以通过智能终端对已匹配的人脸特征值在拍摄界面中对应的人脸进行美颜处理,美颜处理具体按照智能终端中预置的美颜处理参数执行,该美颜处理参数例如包括肤色调整、磨皮、大眼和瘦脸等美化处理。显然地,上述美颜拍照方式中,判断对拍摄界面中的哪些人脸进行美颜处理的依据是智能终端中是否存储有对应的人脸特征值,由于智能终端的存储空间有限,通常仅能存储固定数量的人脸特征值,因此,很难同时满足较多数量的人脸进行美颜处理的需求,例如在合影时通常会有几十人甚至上百人。At present, the basic principle of using a smart terminal for taking a photo of a face is: the smart terminal needs to save the face feature value in advance, and preset the face processing parameter corresponding to the face feature value; specifically, when performing the beauty photo, firstly, Obtaining a face feature value of each face in the current shooting interface, and then matching the currently obtained face feature value with a preset face feature value. If a face can match the preset face feature value, It is considered that the face has been recognized. At this time, the corresponding face of the matched face feature value in the shooting interface can be processed by the smart terminal, and the beauty process is specifically processed according to the preset color preset in the smart terminal. Parameter execution, the beauty treatment parameters include, for example, skin tone adjustment, microdermabrasion, large eyes, and face-lifting. Obviously, in the above-mentioned beauty photographing method, the basis for judging which face in the photographing interface to perform the beauty treatment is whether the corresponding facial feature value is stored in the smart terminal, and since the storage space of the smart terminal is limited, usually only A fixed number of face feature values are stored, so it is difficult to satisfy a large number of faces for cosmetic processing at the same time, for example, there are usually dozens or even hundreds of people in a group photo.
综上所述,相关技术中的美颜拍照方式,由于执行拍照的智能终端中存储空间的限制,很难同时满足对较多数量的人脸进行美颜处理的需求,从而导致智能终端的美颜处理性能较差的问题。 In summary, the beauty photographing method in the related art, due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously satisfy the demand for the beauty processing of a large number of human faces, thereby resulting in the beauty of the smart terminal. The problem of poor color processing performance.
发明内容Summary of the invention
为了解决上述技术问题,本发明实施例提供了一种美颜处理方法、装置和终端设备,以解决相关技术中的美颜拍照方式,由于执行拍照的智能终端中存储空间的限制,很难同时满足对较多数量的人脸进行美颜处理的需求,从而导致智能终端的美颜处理性能较差的问题。In order to solve the above technical problem, an embodiment of the present invention provides a beauty processing method, apparatus, and terminal device to solve the beauty photographing method in the related art. It satisfies the demand for beauty treatment of a large number of faces, which leads to a problem of poor cosmetic processing performance of the smart terminal.
第一方面,本发明实施例提供一种美颜处理方法,包括:In a first aspect, an embodiment of the present invention provides a beauty treatment method, including:
通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数;Finding a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value obtained by the terminal device;
根据查找到的所述第二人脸特征值对所述第一人脸特征值对应的部分或全部人脸按照所述美颜参数进行美颜处理,进行所述美颜处理的人脸为所述第二人脸特征值对应的人脸。Performing a facial treatment on the part or all of the faces corresponding to the first facial feature value according to the found second facial feature value, and performing the facial treatment on the face The face corresponding to the second face feature value is described.
在第一方面的第一种可能的实现方式中,所述通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数,包括:In a first possible implementation manner of the first aspect, the first facial feature value acquired by the terminal device is used to search for a matching second facial feature value and a beauty parameter in the network server, including:
将所述第一人脸特征值发送给所述网络服务器,所述第一人脸特征值用于指示所述网络服务器通过已存储的人脸特征值库与所述第一人脸特征值进行匹配;Transmitting the first facial feature value to the network server, where the first facial feature value is used to instruct the network server to perform the stored facial feature value database and the first facial feature value match;
接收所述网络服务器发送的匹配结果,所述匹配结果包括所述第二人脸特征值和所述美颜参数,所述第二人脸特征值对应的人脸为所述第一人脸特征值对应的部分或全部人脸。Receiving a matching result sent by the network server, where the matching result includes the second facial feature value and the facial parameter, and the face corresponding to the second facial feature value is the first facial feature Some or all faces corresponding to the value.
在第一方面的第二种可能的实现方式中,所述通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数之前,还包括:In a second possible implementation manner of the first aspect, before the searching for the matching second facial feature value and the beauty parameter in the network server, the first facial feature value obtained by the terminal device further includes:
将所述终端设备中的人脸特征值和美颜参数发送给所述网络服务器;Transmitting the face feature value and the beauty parameter in the terminal device to the network server;
存储或删除所述终端设备中的人脸特征值和美颜参数。 The face feature value and the face parameter in the terminal device are stored or deleted.
根据第一方面、第一方面的第一种和第二种可能的实现方式中任意一种,在第三种可能的实现方式中,所述通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数之前,还包括:According to the first aspect, the first and second possible implementation manners of the first aspect, in a third possible implementation, the first facial feature value acquired by the terminal device is in a network Before finding matching second face feature values and beauty parameters in the server, it also includes:
通过所述第一人脸特征值在所述终端设备中查找匹配的第二人脸特征值和美颜参数;Searching, by the first facial feature value, the matched second facial feature value and the beauty parameter in the terminal device;
所述通过终端设备第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数,包括:And searching, by the first facial feature value of the terminal device, the matching second facial feature value and the beauty parameter in the network server, including:
当在所述终端设备中未查找到与所述第一人脸特征值匹配的第二人脸特征值时,在所述网络服务器中查找与所述第一人脸特征值匹配的第二人脸特征值和美颜参数。When the second facial feature value matching the first facial feature value is not found in the terminal device, searching for a second person matching the first facial feature value in the network server Face eigenvalues and beauty parameters.
根据第一方面、第一方面的第一种和第二种可能的实现方式中任意一种,在第四种可能的实现方式中,还包括:According to the first aspect, the first and the second possible implementation manners of the first aspect, in a fourth possible implementation, the method further includes:
通过用户在所述终端设备上执行的操作,向所述网络服务器发送操作指令,所述操作指令用于指示所述网络服务器对所存储的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项。Sending, by the user, an operation instruction on the terminal device, to the network server, the operation instruction is used to instruct the network server to perform a face feature value and a beauty parameter in the stored face feature value library. Make one or more of the add, read, update, and delete operations.
第二方面,本发明实施例提供一种美颜处理方法,包括:In a second aspect, an embodiment of the present invention provides a beauty treatment method, including:
网络服务器通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数;The network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device;
所述网络服务器将查找到的所述第二人脸特征值和所述美颜参数发送给所述终端设备,所述第二人脸特征值和所述美颜参数用于指示所述终端设备根据所述第二人脸特征值对所述第一人脸特征值对应的部分或全部人脸按照所述美颜参数进行美颜处理,进行所述美颜处理的人脸为所述第二人脸特征值对应的人脸。Sending, by the network server, the second facial feature value and the facial parameter to the terminal device, where the second facial feature value and the facial parameter are used to indicate the terminal device Performing a facial treatment on the part or all of the faces corresponding to the first facial feature value according to the second facial feature value according to the beauty parameter, and performing the facial treatment on the face as the second The face corresponding to the face feature value.
在第二方面的第一种可能的实现方式中,所述网络服务器通过终端设 备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数,包括:In a first possible implementation manner of the second aspect, the network server is configured by using a terminal The first face feature value of the device is searched for the matching second face feature value and the beauty parameter, including:
所述网络服务器接收所述终端设备发送的所述第一人脸特征值;Receiving, by the network server, the first facial feature value sent by the terminal device;
所述网络服务器通过已存储的人脸特征值库与所述第一人脸特征值进行匹配,所匹配的结果包括所述第二人脸特征值和所述美颜参数,所述第二人脸特征值对应的人脸为所述第一人脸特征值对应的部分或全部人脸。The network server matches the first facial feature value by using the stored facial feature value library, and the matched result includes the second facial feature value and the facial parameter, the second person The face corresponding to the face feature value is part or all of the face corresponding to the first face feature value.
在第二方面的第二种可能的实现方式中,所述网络服务器通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数之前,还包括:In a second possible implementation manner of the second aspect, before the network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device, the method further includes:
所述网络服务器接收所述终端设备发送的人脸特征值和美颜参数。The network server receives a facial feature value and a beauty parameter sent by the terminal device.
根据第二方面、第二方面的第一种和第二种可能的实现方式中任意一种,在第三种可能的实现方式中,还包括:According to the second aspect, the first and second possible implementation manners of the second aspect, in a third possible implementation manner, the method further includes:
所述网络服务器接收所述终端设备发送的操作指令;Receiving, by the network server, an operation instruction sent by the terminal device;
所述网络服务器根据所述操作指令对所述网络服务器中的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项,并向所述终端设备返回操作结果。And the network server adds, reads, updates, and deletes one of a face feature value and a beauty parameter in the face feature value database in the network server according to the operation instruction, and The terminal device returns an operation result.
根据第二方面、第二方面的第一种和第二种可能的实现方式中任意一种,在第四种可能的实现方式中,还包括:According to the second aspect, the first and second possible implementation manners of the second aspect, in a fourth possible implementation, the method further includes:
所述网络服务器向终端设备发送所述网络服务器中存储的人脸特征值和美颜参数,所述人脸特征值和所述美颜参数用于指示所述终端设备在进行美颜处理前,通过所述终端设备中存储的人脸特征值与待执行美颜处理的人脸对应的人脸特征值进行匹配。Transmitting, by the network server, a facial feature value and a beauty parameter stored in the network server to the terminal device, where the facial feature value and the facial parameter are used to indicate that the terminal device passes the beauty processing The face feature value stored in the terminal device matches the face feature value corresponding to the face to be subjected to the beauty process.
第三方面,本发明实施例提供一种美颜处理装置,包括:In a third aspect, an embodiment of the present invention provides a beauty treatment device, including:
查找模块,设置为通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数;a search module, configured to search for a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value obtained by the terminal device;
美颜模块,设置为根据所述查找模块查找到的第二人脸特征值对所第 一人脸特征值对应的部分或全部人脸按照所述美颜参数进行美颜处理,进行所述美颜处理的人脸为所述第二人脸特征值对应的人脸。a beauty module, configured to find a second face feature value according to the search module A part or all of the faces corresponding to one face feature value are subjected to a beauty treatment according to the beauty parameter, and the face subjected to the beauty treatment is a face corresponding to the second face feature value.
在第三方面的第一种可能的实现方式中,所述查找模块包括:发送单元,设置为将所述第一人脸特征值发送给所述网络服务器,所述第一人脸特征值用于指示所述网络服务器通过已存储的人脸特征值库与所述第一人脸特征值进行匹配;In a first possible implementation manner of the third aspect, the searching module includes: a sending unit, configured to send the first facial feature value to the network server, where the first facial feature value is used Instructing the network server to match the first facial feature value by using the stored facial feature value library;
接收单元,设置为接收所述网络服务器发送的匹配结果,所述匹配结果包括所述第二人脸特征值和所述美颜参数,所述第二人脸特征值对应的人脸为所述第一人脸特征值对应的部分或全部人脸。a receiving unit, configured to receive a matching result sent by the network server, where the matching result includes the second facial feature value and the facial parameter, and the face corresponding to the second facial feature value is the Part or all of the face corresponding to the first face feature value.
在第三方面的第二种可能的实现方式中,所述美颜处理装置还包括:发送模块,设置为在所述查找模块通过所述第一人脸特征值在所述网络服务器中查找匹配的第二人脸特征值和美颜参数之前,将所述终端设备中的人脸特征值和美颜参数发送给所述网络服务器;In a second possible implementation manner of the third aspect, the beauty processing device further includes: a sending module, configured to: in the searching module, find a match in the network server by using the first facial feature value Transmitting the facial feature value and the beauty parameter in the terminal device to the network server before the second facial feature value and the beauty parameter;
处理模块,设置为存储或删除所述终端设备中的人脸特征值和美颜参数。The processing module is configured to store or delete the facial feature value and the beauty parameter in the terminal device.
根据第三方面、第三方面的第一种和第二种可能的实现方式中任意一种,在第三种可能的实现方式中,所述查找模块,还设置为在通过所述第一人脸特征值在所述网络服务器中查找匹配的第二人脸特征值和美颜参数之前,通过所述第一人脸特征值在所述终端设备中查找匹配的第二人脸特征值和美颜参数;According to the third aspect, any one of the first and second possible implementation manners of the third aspect, in a third possible implementation, the searching module is further configured to pass the first person The face feature value is used to find a matching second face feature value and a beauty parameter in the terminal device by using the first face feature value before searching for the matched second face feature value and the beauty parameter in the network server. ;
则所述查找模块设置为通过所述第一人脸特征值在所述网络服务器中查找匹配的第二人脸特征值和美颜参数,是指:当所述查找模块在所述终端设备中未查找到与所述第一人脸特征值匹配的第二人脸特征值时,在所述网络服务器中查找与所述第一人脸特征值匹配的第二人脸特征值和美颜参数。The searching module is configured to search for the matching second facial feature value and the beauty parameter in the network server by using the first facial feature value, that is, when the searching module is not in the terminal device When the second facial feature value matching the first facial feature value is found, the second facial feature value and the beauty parameter matching the first facial feature value are searched in the web server.
根据第三方面、第三方面的第一种和第二种可能的实现方式中任意一 种,在第四种可能的实现方式中,所述发送模块,还设置为通过用户在所述终端设备上执行的操作,向所述网络服务器发送操作指令,所述操作指令用于指示所述网络服务器对所存储的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项。According to the third aspect, any one of the first and second possible implementations of the third aspect In a fourth possible implementation, the sending module is further configured to send an operation instruction to the network server by using an operation performed by the user on the terminal device, where the operation instruction is used to indicate the The web server performs one or more of adding, reading, updating, and deleting the face feature value and the beauty parameter in the stored face feature value library.
第四方面,本发明实施例提供一种美颜处理装置,包括:In a fourth aspect, an embodiment of the present invention provides a beauty treatment device, including:
查找模块,设置为通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数;a searching module, configured to search for a matching second facial feature value and a beauty parameter by using a first facial feature value of the terminal device;
发送模块,设置为将所述查找模块查找到的第二人脸特征值和所述美颜参数发送给所述终端设备,所述第二人脸特征值和所述美颜参数用于指示所述终端设备根据所述第二人脸特征值对所述第一人脸特征值对应的部分或全部人脸按照所述美颜参数进行美颜处理,进行所述美颜处理的人脸为所述第二人脸特征值对应的人脸。a sending module, configured to send the second face feature value and the beauty parameter found by the searching module to the terminal device, where the second face feature value and the beauty parameter are used to indicate And the terminal device performs a beauty treatment on the part or all the faces corresponding to the first facial feature value according to the second facial feature value according to the beauty parameter, and the face processed by the beauty treatment is a The face corresponding to the second face feature value is described.
在第四方面的第一种可能的实现方式中,所述查找模块包括:接收单元,设置为接收所述终端设备发送的所述第一人脸特征值;In a first possible implementation manner of the fourth aspect, the searching module includes: a receiving unit, configured to receive the first facial feature value sent by the terminal device;
匹配单元,设置为通过已存储的人脸特征值库与所述接收单元接收的第一人脸特征值进行匹配,所匹配的结果包括所述第二人脸特征值和所述美颜参数,所述第二人脸特征值对应的人脸为所述第一人脸特征值对应的部分或全部人脸。a matching unit, configured to match, by using the stored face feature value library, the first face feature value received by the receiving unit, the matched result includes the second face feature value and the beauty parameter, The face corresponding to the second facial feature value is a part or all of the face corresponding to the first facial feature value.
在第四方面的第二种可能的实现方式中,所述美颜处理装置还包括:接收模块,设置为在所述查找模块通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数之前,接收所述终端设备发送的人脸特征值和美颜参数。In a second possible implementation manner of the fourth aspect, the beauty processing device further includes: a receiving module, configured to search for a matching second human face by using the first facial feature value of the terminal device in the searching module Before the feature value and the beauty parameter, the face feature value and the beauty parameter sent by the terminal device are received.
根据第四方面、第四方面的第一种和第二种可能的实现方式中任意一种,在第三种可能的实现方式中,所述接收模块,还设置为接收所述终端设备发送的操作指令;According to the fourth aspect, the first and second possible implementation manners of the fourth aspect, in a third possible implementation, the receiving module is further configured to receive the sending by the terminal device Operation instruction
所述美颜处理装置还包括:处理模块,设置为根据所述接收模块接收 的操作指令对所述网络服务器中的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项;The beauty processing device further includes: a processing module configured to receive according to the receiving module And an operation instruction for one or more of adding, reading, updating and deleting the face feature value and the beauty parameter in the face feature value database in the network server;
所述发送模块,还设置为向所述终端设备返回操作结果。The sending module is further configured to return an operation result to the terminal device.
根据第四方面、第四方面的第一种和第二种可能的实现方式中任意一种,在第四种可能的实现方式中,所述发送模块,还设置为向终端设备发送所述网络服务器中存储的人脸特征值和美颜参数,所述人脸特征值和所述美颜参数用于指示所述终端设备在进行美颜处理前,通过所述终端设备中存储的人脸特征值与待执行美颜处理的人脸对应的人脸特征值进行匹配。According to the fourth aspect, any one of the first and second possible implementation manners of the fourth aspect, in a fourth possible implementation, the sending module is further configured to send the network to the terminal device a face feature value and a beauty parameter stored in the server, wherein the face feature value and the beauty parameter are used to indicate that the terminal device uses the face feature value stored in the terminal device before performing the beauty process The face feature values corresponding to the faces to be subjected to the beauty treatment are matched.
第五方面,本发明实施例提供一种终端设备,包括:摄像头、显示器和处理器,其中,所述处理器中设置有如上述第三方面中任一项所述的美颜处理装置;According to a fifth aspect, an embodiment of the present invention provides a terminal device, including: a camera, a display, and a processor, wherein the processor is provided with the beauty processing device according to any one of the above third aspects;
所述摄像头,设置为拍照或摄像,并将拍摄图像中的人脸转化为人脸特征值;The camera is configured to take a picture or a camera, and convert a face in the captured image into a face feature value;
所述显示器,设置为在拍照或摄像过程中显示实时拍摄图像,并在拍照或摄像完成后显示拍摄结果。The display is configured to display a real-time captured image during photographing or photographing, and display the photographing result after the photographing or photographing is completed.
在本发明实施例中,还提供了一种计算机存储介质,该计算机存储介质可以存储有执行指令,该执行指令用于执行上述实施例中的美颜处理方法。In the embodiment of the present invention, a computer storage medium is further provided, and the computer storage medium may store an execution instruction for executing the beauty processing method in the above embodiment.
本发明实施例提供的美颜处理方法、装置和终端设备,通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数,并根据查找到的第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸,本发明通过存储在网络服务器端的人脸特征值和美颜参数实现对终端设备获取的第一人脸特征值进行美颜处理的方式,解决了相关技术中的美颜拍照方式,由于执行拍照的智能终端中存储空间的限制, 很难同时满足对较多数量的人脸进行美颜处理的需求,从而导致智能终端的美颜处理性能较差的问题。The beauty processing method, device and terminal device provided by the embodiment of the present invention find the matching second facial feature value and the beauty parameter in the network server by using the first facial feature value acquired by the terminal device, and according to the found The face of the two faces is subjected to the beauty treatment according to the beauty parameters of the face or the face corresponding to the first face feature value, and the face processed by the face is the face corresponding to the second face feature value, and the present invention passes The face feature value and the beauty parameter stored on the network server side implement the beauty treatment method for the first face feature value acquired by the terminal device, and solve the beauty photographing mode in the related art, which is stored in the smart terminal performing the photographing. Space limitation, It is difficult to meet the demand for beauty treatment of a large number of faces at the same time, resulting in poor cosmetic processing performance of the smart terminal.
附图说明DRAWINGS
附图用来提供对本发明技术方案的进一步理解,并且构成说明书的一部分,与本申请的实施例一起用于解释本发明的技术方案,并不构成对本发明技术方案的限制。The drawings are used to provide a further understanding of the technical solutions of the present invention, and constitute a part of the specification, which together with the embodiments of the present application are used to explain the technical solutions of the present invention, and do not constitute a limitation of the technical solutions of the present invention.
图1为本发明实施例提供的一种美颜处理方法的流程图;FIG. 1 is a flowchart of a beauty processing method according to an embodiment of the present invention;
图2为本发明实施例提供的另一种美颜处理方法的流程图;2 is a flowchart of another beauty processing method according to an embodiment of the present invention;
图3为本发明实施例提供的又一种美颜处理方法的流程图;FIG. 3 is a flowchart of still another beauty processing method according to an embodiment of the present invention; FIG.
图4为本发明实施例提供的再一种美颜处理方法的流程图;4 is a flowchart of still another beauty processing method according to an embodiment of the present invention;
图5为本发明实施例提供的还一种美颜处理方法的流程图;FIG. 5 is a flowchart of still another beauty processing method according to an embodiment of the present invention;
图6为本发明实施例提供的一种美颜处理方法的信令交互流程图;FIG. 6 is a flowchart of signaling interaction of a beauty processing method according to an embodiment of the present invention;
图7为本发明实施例提供的一种美颜处理装置的结构示意图;FIG. 7 is a schematic structural diagram of a beauty treatment device according to an embodiment of the present invention; FIG.
图8为本发明实施例提供的另一种美颜处理装置的结构示意图;FIG. 8 is a schematic structural diagram of another beauty treatment device according to an embodiment of the present invention; FIG.
图9为本发明实施例提供的又一种美颜处理装置的结构示意图;FIG. 9 is a schematic structural diagram of still another beauty treatment device according to an embodiment of the present invention; FIG.
图10为本发明实施例提供的再一种美颜处理装置的结构示意图。FIG. 10 is a schematic structural diagram of still another beauty treatment device according to an embodiment of the present invention.
具体实施方式detailed description
为使本发明的目的、技术方案和优点更加清楚明白,下文中将结合附图对本发明的实施例进行详细说明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互任意组合。The embodiments of the present invention will be described in detail below with reference to the accompanying drawings. It should be noted that, in the case of no conflict, the features in the embodiments and the embodiments in the present application may be arbitrarily combined with each other.
在附图的流程图示出的步骤可以在诸如一组计算机可执行指令的计算机系统中执行。并且,虽然在流程图中示出了逻辑顺序,但是在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤。The steps illustrated in the flowchart of the figures may be executed in a computer system such as a set of computer executable instructions. Also, although logical sequences are shown in the flowcharts, in some cases the steps shown or described may be performed in a different order than the ones described herein.
下面通过具体的实施例对本发明的技术方案进行详细说明,本发明以 下各实施例中的终端设备为具有摄像头的智能终端,例如智能手机、平板电脑或个人数字助理(Personal Digital Assistant,简称为:PDA)等,本发明各实施例中的终端设备上通常还具有可以显示实时拍摄图像或显示照片的显示屏。本发明提供以下几个具体的实施例可以相互结合,对于相同或相似的概念或过程可能在某些实施例不再赘述。The technical solutions of the present invention are described in detail below through specific embodiments, and the present invention The terminal device in the following embodiments is a smart terminal having a camera, such as a smart phone, a tablet computer, or a personal digital assistant (PDA). The terminal device in the embodiments of the present invention usually has a terminal device. You can display a screen that captures images in real time or displays them. The following specific embodiments of the present invention may be combined with each other, and the same or similar concepts or processes may not be described in some embodiments.
图1为本发明实施例提供的一种美颜处理方法的流程图。本实施例提供的美颜处理方法适用于对终端设备拍摄图像中的人脸进行美颜处理的情况中,该方法可以由美颜处理装置执行,该美颜处理装置通过硬件和软件结合的方式来实现,该装置可以集成在终端设备的处理器中,供处理器调用使用。如图1所示,本实施例提供的方法可以包括:FIG. 1 is a flowchart of a beauty processing method according to an embodiment of the present invention. In the case where the beauty treatment method provided in this embodiment is suitable for performing beauty treatment on a face in a captured image of a terminal device, the method may be performed by a beauty treatment device, which is combined by hardware and software. Implementation, the device can be integrated in the processor of the terminal device for use by the processor. As shown in FIG. 1, the method provided in this embodiment may include:
S110,通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数。S110. Search for a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value acquired by the terminal device.
在本实施例中,美颜处理的对象通常为拍摄图像中的人脸,具体地,当前拍摄图像中的人脸可以作为第一人脸特征值,与相关技术类似的,美颜处理的依据同样为已存储的人脸特征值库和美颜参数,具体地,人脸特征值库为判断是否对第一人脸特征值对应的人脸进行美颜处理的基础,美颜参数为执行美颜处理的依据。与相关技术不同的是,本发明各实施例中用于比对人脸特征值库和美颜参数不是从本机上获取的,而是存储在特定的网络端,例如百度云盘,或者苹果手机的苹果云(iCloud),在具体实现中,执行美颜处理的终端设备需要在网络服务器上注册用户,例如在网络服务器上注册“美颜用户1”,该“美颜用户1”中存储有人脸特征值库和美颜参数,这样,终端设备中就不需要存储大量的人脸特征值,并且网络服务器的存储容量一般较大,可以存储较多的人脸特征值。因此,终端设备在美颜拍照时,可以在网络服务器中已注册的用户下查找与第一人脸特征值匹配的第二人脸特征值和美颜参数,从而将网络服务器中的人脸特征值库和美颜参数作为美颜处理的依据。 In this embodiment, the object of the beauty treatment is usually a human face in the captured image. Specifically, the face in the current captured image can be used as the first facial feature value, similar to the related technology, and the basis of the beauty treatment. The same is the stored face feature value library and the beauty parameter. Specifically, the face feature value library is the basis for determining whether to perform the face treatment on the face corresponding to the first face feature value, and the beauty parameter is performing the beauty. The basis for processing. Different from the related art, in the embodiments of the present invention, the face feature value library and the beauty parameter are not obtained from the local machine, but are stored on a specific network, such as a Baiyun cloud disk, or an Apple mobile phone. Apple Cloud (iCloud), in the specific implementation, the terminal device that performs the beauty processing needs to register the user on the network server, for example, register "Meause User 1" on the network server, and store the "Made in the Beauty User 1" The face feature value library and the beauty parameter, so that the terminal device does not need to store a large number of face feature values, and the storage capacity of the network server is generally large, and more face feature values can be stored. Therefore, when the terminal device takes a photo, the second face feature value and the beauty parameter matching the first face feature value can be searched for by the registered user in the web server, so that the face feature value in the web server is obtained. Library and beauty parameters are used as the basis for beauty treatment.
本实施例在具体实现中,网络服务器中通常预先存储有人脸特征值库和美颜参数,即S110之前可以包括:S100,将终端设备中的人脸特征值和美颜参数发送给网络服务器;S101,存储或删除终端设备中的人脸特征值和美颜参数。在本实施例中,可以先采用终端设备的普通拍照功能对需要设置人脸特征值的用户进行拍照,或者从终端设备的照片中获取特定用户的人脸特征值,并且可以先在终端设备中设置美颜参数;随后,终端设备将其自身具有的与美颜拍照相关的数据和参数发送到网络服务器上对应的注册用户中,这样,即将终端设备的人脸特征值和美颜参数同步到网络服务器中,此时,可以选择性的存储或删除终端设备中的人脸特征值和美颜参数。本实施例中的人脸特征值的表现形式可以是终端拍摄的人脸照片,或者终端通过处理从人脸照片中抽取出来的特征参数,例如一段文字、一个二维码等等。In a specific implementation, the network server generally stores the face feature value database and the beauty parameter in advance, that is, the S110 may include: S100, and send the face feature value and the beauty parameter in the terminal device to the network server; S101, Store or delete face feature values and beauty parameters in the terminal device. In this embodiment, the user who needs to set the facial feature value may be photographed by using the common photographing function of the terminal device, or the facial feature value of the specific user may be obtained from the photo of the terminal device, and may be first in the terminal device. Setting the beauty parameter; then, the terminal device sends its own data and parameters related to the beauty photo to the corresponding registered user on the network server, so that the facial feature value and the beauty parameter of the terminal device are synchronized to the network. In the server, at this time, the face feature value and the beauty parameter in the terminal device can be selectively stored or deleted. The expression of the face feature value in this embodiment may be a face photo taken by the terminal, or the terminal may process the feature parameters extracted from the face photo, such as a piece of text, a two-dimensional code, and the like.
需要说明的是,本发明实施例不限制人脸特征值和美颜参数的对应关系,人脸特征值和美颜参数例如可以是一一对应的关系,即对不同的人脸具有不同的美颜效果,这样的美颜方式比较有针对性,可以根据每个人的特点设置不同的美颜参数;人脸特征值和美颜参数例如还可以是多对一的关系,即对多个人脸设置同样的美颜参数,这样的美颜方式较为简单,降低美颜处理的复杂度,易于执行。另外,本实施例的网络服务器中预存储的人脸特征值库和美颜参数还可以通过其他方式预置,例如用户直接通过网络将上传到网络服务器的注册用户中。It should be noted that the embodiment of the present invention does not limit the correspondence between the face feature value and the beauty parameter. The face feature value and the face parameter may be, for example, a one-to-one correspondence, that is, different face effects for different faces. Such a beauty mode is more targeted, and different beauty parameters can be set according to the characteristics of each person; for example, the face feature value and the beauty parameter can also be a many-to-one relationship, that is, the same beauty is set for multiple faces. Yan parameters, such a beauty way is relatively simple, reducing the complexity of beauty treatment, easy to implement. In addition, the face feature value library and the beauty parameter pre-stored in the network server of the embodiment may be preset by other means, for example, the user directly uploads to the registered user of the network server through the network.
S120,根据查找到的第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸。S120, according to the found second facial feature value, part or all of the face corresponding to the first facial feature value is processed according to the beauty parameter, and the face processed by the facial treatment is corresponding to the second facial feature value. Face.
在本实施例中,已经通过网络服务器中的人脸特征值库查找到与第一人脸特征值对应的部分或全部人脸,例如部分人脸在网络服务器中查找到对应的人脸特征值,而其他人脸在网络服务器中并未查找到对应的人脸特 征值,也就是说,第二人脸特征值对应的人脸是第一人脸特征值对应的人脸的子集,也可以完全相同。在进行美颜处理时,仅对已查找到的第二人脸特征值对应的人脸进行美颜处理,其他人脸则不需要执行美颜处理;例如,某用户在于其他人合影时,终端设备中存储有自己的人脸特征值,因此照片的多张人脸中,只有该用户的人脸具有相应的人脸特值,即美颜处理的对象仅有该用户。In this embodiment, some or all of the faces corresponding to the first face feature value have been found through the face feature value library in the web server, for example, part of the face is found in the network server and the corresponding face feature value is found in the network server. , while other faces don’t find the corresponding face in the web server. The eigenvalue, that is, the face corresponding to the second facial feature value is a subset of the face corresponding to the first facial feature value, and may be identical. In the beauty processing, only the face corresponding to the second face feature value that has been found is subjected to the beauty treatment, and the other faces do not need to perform the beauty treatment; for example, when a user is in the group of other people, the terminal The device stores its own facial feature value. Therefore, among the multiple faces of the photo, only the face of the user has a corresponding face value, that is, the object processed by the beauty is only the user.
本实施例提供的美颜处理方法,由于美颜处理对象的第一人脸特征值在网络服务器中进行比对,可以避免由于终端设备存储空间有限而造成的各种问题。例如终端设备仅能存储有限数量的人脸特征值,很难对同时对较多数量的人脸进行美颜处理;再例如当前需要美颜的对象并没有存储在终端设备中,需要通过拍照或照片获取人脸特征值,并且设置参数后才能进行美颜处理,若下一时刻改变美颜处理的对象,需要重复上述方式;再例如在更换终端设备后,人脸特征值和美颜参数都需要在新的终端设备上重新设置后才能进行美颜拍照,这样会增加额外的工作量。In the beauty processing method provided by the embodiment, since the first facial feature values of the beauty processing object are compared in the network server, various problems caused by the limited storage space of the terminal device can be avoided. For example, the terminal device can only store a limited number of facial feature values, and it is difficult to perform cosmetic processing on a large number of faces at the same time; for example, an object that currently needs to be beautiful is not stored in the terminal device, and needs to be photographed or The photo obtains the face feature value, and the parameter can be processed before the beauty process is performed. If the next time the beauty object is changed, the above method needs to be repeated; for example, after the terminal device is replaced, the face feature value and the beauty parameter are required. You can take a photo of your face after resetting it on a new terminal device, which adds extra work.
本实施例所提供的美颜处理方法,通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数,并根据查找到的第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸,本实施例通过存储在网络服务器端的人脸特征值和美颜参数实现对终端设备获取的第一人脸特征值进行美颜处理的方式,解决了相关技术中的美颜拍照方式,由于执行拍照的智能终端中存储空间的限制,很难同时满足对较多数量的人脸进行美颜处理的需求,从而导致智能终端的美颜处理性能较差的问题。The beauty processing method provided by the embodiment searches for the matching second facial feature value and the beauty parameter in the web server by using the first facial feature value acquired by the terminal device, and according to the found second facial feature value Part or all of the faces corresponding to the first face feature value are subjected to the beauty treatment according to the beauty parameter, and the face subjected to the beauty treatment is the face corresponding to the second face feature value, and the embodiment is stored in the network server. The face feature value and the beauty parameter of the terminal implement the beauty treatment method for the first face feature value acquired by the terminal device, and solve the beauty photographing mode in the related art, due to the limitation of the storage space in the smart terminal performing the photographing, It is difficult to meet the demand for beauty treatment of a large number of faces at the same time, resulting in poor cosmetic processing performance of the smart terminal.
进一步地,网络服务器通常具有较大的存储空间,可以存储大量的人脸特征值,因此,本实施例提供的美颜处理方法还可以避免由于终端设备存储空间有限而造成的各种问题,例如,在美颜处理的对象变化时,网络 服务器中存储的人脸特征值中有匹配对应人脸的,则不需要重新设置,直接查找并使用即可;再例如,更换终端设备后,并不影响网络服务器中存储的数据,则不需要在终端设备中进行重复设置,在很大程度上降低了美颜处理的工作量,提高了美颜拍照的实用性。Further, the network server usually has a large storage space, and can store a large number of facial feature values. Therefore, the beauty processing method provided in this embodiment can also avoid various problems caused by limited storage space of the terminal device, for example, , when the object of beauty treatment changes, the network If there is a matching face in the face feature value stored in the server, it does not need to be reset, and can be directly searched and used; for example, after the terminal device is replaced, the data stored in the network server is not affected, and Repeating the setting in the terminal device greatly reduces the workload of the beauty treatment and improves the practicality of the beauty photograph.
图2为本发明实施例提供的另一种美颜处理方法的流程图。本发明提供一种从网络服务器中查找人脸特征值和美颜参数的具体方式,在上述图1所示实施例的基础上,S110可以包括:S111,将第一人脸特征值发送给网络服务器,该第一人脸特征值用于指示网络服务器通过已存储的人脸特征值库与第一人脸特征值进行匹配;S112,接收网络服务器发送的匹配结果,该匹配结果包括第二人脸特征值和美颜参数,该第二人脸特征值对应的人脸为第一人脸特征值对应的部分或全部人脸。FIG. 2 is a flowchart of another beauty processing method according to an embodiment of the present invention. The present invention provides a specific manner for searching for a face feature value and a beauty parameter from a network server. On the basis of the embodiment shown in FIG. 1 , the S110 may include: S111, sending the first face feature value to the network server. The first facial feature value is used to indicate that the network server matches the first facial feature value by using the stored facial feature value database; S112, receiving a matching result sent by the network server, the matching result including the second human face The feature value and the beauty parameter, the face corresponding to the second face feature value is part or all of the face corresponding to the first face feature value.
在本实施例中,终端设备可以与网络服务器上已注册的用户进行数据交互,例如上述的“美颜用户1”,与该终端设备相关的数据均存储在“美颜用户1”中,即网络服务器可以为多个终端设备提供上述美颜服务,通过不同的注册用户区分不同的终端设备。In this embodiment, the terminal device can perform data interaction with the registered user on the network server, for example, “beauty user 1” described above, and the data related to the terminal device is stored in “beauty user 1”, that is, The web server can provide the above-mentioned beauty service for a plurality of terminal devices, and distinguish different terminal devices by different registered users.
可选地,图3为本发明实施例提供的又一种美颜处理方法的流程图。上述实施例已经说明,在通过终端设备向网络服务器同步与美颜处理相关的数据后,可以将数据保存在终端设备中,因此,终端设备在执行美颜处理时,也可以先行查询终端设备中存储的人脸特征值;图3以在上述图1所示实施例的基础上为例予以示出,在S110之前,还包括:S102,通过第一人脸特征值在终端设备中查找匹配的第二人脸特征值和美颜参数;相应地,S110可以替换为:当在终端设备中未查找到与第一人脸特征值匹配的第二人脸特征值时,在网络服务器中查找与第一人脸特征值匹配的第二人脸特征值和美颜参数。Optionally, FIG. 3 is a flowchart of still another beauty processing method according to an embodiment of the present invention. The foregoing embodiment has been described that after the data related to the beauty processing is synchronized to the network server by the terminal device, the data can be saved in the terminal device. Therefore, when the terminal device performs the beauty processing, the terminal device can also query the terminal device first. The stored face feature value is shown in FIG. 3 on the basis of the embodiment shown in FIG. 1 . Before S110, the method further includes: S102, searching for matching in the terminal device by using the first face feature value. The second face feature value and the beauty parameter; correspondingly, the S110 may be replaced by: when the second face feature value matching the first face feature value is not found in the terminal device, searching and searching in the network server The second face feature value and the beauty parameter matched by one face feature value.
本实施例提供的美颜处理方法,考虑到终端设备中可以存储有一定数据的人脸特征值,并且从本机查找对应的人脸特征值减少了与网络服务器 进行交互的步骤,查找的时效性更高,可以首先在本机进行查找,若本机中没有查找到,可以进一步在网络服务器中进行查找。The beauty processing method provided in this embodiment considers that the face feature value of the certain data can be stored in the terminal device, and the corresponding face feature value is found from the local machine and the network server is reduced. The steps of interaction are more time-sensitive. You can search for it locally. If it is not found in the machine, you can further search it in the network server.
更进一步地,网络服务器的注册用户中的数据是可以随时变更的,即本实施例提供的方法还包括:S130,通过用户在终端设备上执行的操作,向网络服务器发送操作指令,该操作指令用于指示网络服务器对所存储的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项。Further, the data in the registered user of the network server is changeable at any time, that is, the method provided in this embodiment further includes: S130, sending an operation instruction to the network server by using an operation performed by the user on the terminal device, the operation instruction And one or more of the operations of instructing the network server to add, read, update, and delete the facial feature values and the beauty parameters in the stored facial feature value library.
需要说明的是,本实施例不限制S130的执行顺序,变更网络服务器中的人脸特征值和美颜参数可以是在拍照前或拍照后,可以是用户在任意时间执行的,图3所示实施例以S130在S120之后执行为例予以示出;另外,对网络服务器中数据的变更,不仅可以通过终端设备来执行,还可以由用户直接通过网络将上传到网络服务器的注册用户中。It should be noted that, in this embodiment, the execution order of the S130 is not limited. The change of the facial feature value and the beauty parameter in the network server may be performed before or after the photographing, and may be performed by the user at any time. For example, S130 is executed after S120 as an example; in addition, the change of data in the network server can be performed not only by the terminal device but also by the user directly to the registered user of the network server through the network.
图4为本发明实施例提供的再一种美颜处理方法的流程图。本实施例提供的美颜处理方法适用于对终端设备拍摄图像中的人脸进行美颜处理的情况中,该方法可以由美颜处理装置执行,该美颜处理装置通过硬件和软件结合的方式来实现,该装置可以设置于网络服务器中。如图4所示,本实施例提供的方法可以包括:FIG. 4 is a flowchart of still another beauty processing method according to an embodiment of the present invention. In the case where the beauty treatment method provided in this embodiment is suitable for performing beauty treatment on a face in a captured image of a terminal device, the method may be performed by a beauty treatment device, which is combined by hardware and software. Implementation, the device can be set in a network server. As shown in FIG. 4, the method provided in this embodiment may include:
S210,网络服务器通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数。S210. The network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device.
在本实施例中,美颜处理的对象同样为拍摄图像中的人脸,具体地,当前拍摄图像中的人脸可以作为第一人脸特征值,与相关技术不同的是,本发明各实施例中用于比对人脸特征值库和美颜参数不是从本机上获取的,而是存储在特定的网络端,例如百度云盘,或者苹果手机的苹果云(iCloud),在具体实现中,网络服务器中具有终端设备注册的用户,例如网络服务器上注册有“美颜用户1”,该“美颜用户1”中存储有人脸特征值库和美颜参数,这样,终端设备中就不需要存储大量的人脸特征值,并 且网络服务器的存储容量一般较大,可以存储较多的人脸特征值。因此,对于需要进行美颜拍照的终端设备,网络服务器可以提供其进行美颜处理的相关服务器,即网络服务器在终端设备的注册用户下查找与第一人脸特征值匹配的第二人脸特征值和美颜参数,本实施例具体将网络服务器中的人脸特征值库和美颜参数作为美颜处理的依据。In this embodiment, the object of the beauty treatment is also a human face in the captured image. Specifically, the face in the current captured image may be used as the first facial feature value, and different from the related art, the implementation of the present invention In the example, the face feature value library and the beauty parameter are not obtained from the local machine, but are stored in a specific network, such as a Baiyun cloud disk, or an Apple cloud (iCloud) of the Apple mobile phone, in a specific implementation. The user who has the terminal device registration in the network server, for example, the "Meause User 1" is registered on the network server, and the "Face User 1" stores the face feature value library and the beauty parameter, so that the terminal device does not need Store a large number of face feature values, and Moreover, the storage capacity of the network server is generally large, and more face feature values can be stored. Therefore, for a terminal device that needs to take a beautiful photo, the web server can provide a related server for performing beauty processing, that is, the web server searches for a second facial feature matching the first facial feature value under the registered user of the terminal device. Value and beauty parameters, in this embodiment, the face feature value library and the beauty parameter in the web server are specifically used as the basis for the beauty treatment.
本实施例在具体实现中,网络服务器中通常预先存储有人脸特征值库和美颜参数,即S210之前可以包括:S200,网络服务器接收终端设备发送的人脸特征值和美颜参数。在本实施例中,可以先采用终端设备的普通拍照功能对需要设置人脸特征值的用户进行拍照,或者从终端设备的照片中获取特定用户的人脸特征值,并且可以先在终端设备中设置美颜参数;随后,终端设备将其自身具有的与美颜拍照相关的数据和参数发送到网络服务器上对应的注册用户中,这样,即将终端设备的人脸特征值和美颜参数同步到网络服务器中。需要说明的是,本实施例中的终端设备可以选择性的存储或删除终端设备中的人脸特征值和美颜参数。本实施例中的人脸特征值的表现形式可以是终端拍摄的人脸照片,或者终端通过处理从人脸照片中抽取出来的特征参数,例如一段文字、一个二维码等等。In the specific implementation, the network server generally stores the face feature value library and the beauty parameter in advance, that is, the S210 may include: S200, the network server receives the face feature value and the beauty parameter sent by the terminal device. In this embodiment, the user who needs to set the facial feature value may be photographed by using the common photographing function of the terminal device, or the facial feature value of the specific user may be obtained from the photo of the terminal device, and may be first in the terminal device. Setting the beauty parameter; then, the terminal device sends its own data and parameters related to the beauty photo to the corresponding registered user on the network server, so that the facial feature value and the beauty parameter of the terminal device are synchronized to the network. In the server. It should be noted that the terminal device in this embodiment may selectively store or delete the face feature value and the beauty parameter in the terminal device. The expression of the face feature value in this embodiment may be a face photo taken by the terminal, or the terminal may process the feature parameters extracted from the face photo, such as a piece of text, a two-dimensional code, and the like.
需要说明的是,本发明实施例不限制人脸特征值和美颜参数的对应关系,人脸特征值和美颜参数例如可以是一一对应的关系,人脸特征值和美颜参数例如还可以是多对一的关系。另外,本实施例的网络服务器中预存储的人脸特征值库和美颜参数还可以通过其他方式预置,例如用户直接通过网络将上传到网络服务器的注册用户中。It should be noted that, in the embodiment of the present invention, the correspondence between the facial feature value and the facial parameter is not limited, and the facial feature value and the facial parameter may be, for example, a one-to-one correspondence, and the facial feature value and the facial parameter may be, for example, more The relationship to one. In addition, the face feature value library and the beauty parameter pre-stored in the network server of the embodiment may be preset by other means, for example, the user directly uploads to the registered user of the network server through the network.
S220,网络服务器将查找到的第二人脸特征值和美颜参数发送给终端设备,该第二人脸特征值和美颜参数用于指示终端设备根据第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸。S220, the network server sends the found second facial feature value and the facial parameter to the terminal device, where the second facial feature value and the facial parameter are used to instruct the terminal device to perform the first facial feature according to the second facial feature value. Some or all of the faces corresponding to the values are processed according to the beauty parameters, and the faces that are processed by the beauty are the faces corresponding to the feature values of the second faces.
在本实施例中,已经通过网络服务器中的人脸特征值库查找到与第一 人脸特征值对应的部分或全部人脸,例如部分人脸在网络服务器中查找到对应的人脸特征值,而其他人脸在网络服务器中并未查找到对应的人脸特征值,也就是说,第二人脸特征值对应的人脸是第一人脸特征值对应的人脸的子集,也可以完全相同。在进行美颜处理时,仅对已查找到的第二人脸特征值对应的人脸进行美颜处理,其他人脸则不需要执行美颜处理。In this embodiment, the first and second faces have been searched through the face feature value database in the web server. Some or all of the faces corresponding to the face feature values, for example, some faces find the corresponding face feature values in the web server, and other faces do not find the corresponding face feature values in the web server, that is, It is said that the face corresponding to the second face feature value is a subset of the face corresponding to the first face feature value, and may be identical. When performing the beauty treatment, only the face corresponding to the second face feature value that has been found is subjected to the beauty treatment, and the other faces do not need to perform the beauty treatment.
本实施例提供的美颜处理方法,由于通过网络服务器比对需要进行美颜处理的对象,即第一人脸特征值,可以避免由于终端设备存储空间有限而造成的各种问题。由于终端存储空间有限而造成的各种问题在上述实例中已经具体说明,故在此不再赘述。In the beauty processing method provided in this embodiment, since the object that needs to be cosmetically processed, that is, the first face feature value is compared by the network server, various problems caused by the limited storage space of the terminal device can be avoided. Various problems caused by the limited storage space of the terminal have been specifically described in the above examples, and thus will not be described herein.
本实施例所提供的美颜处理方法,网络服务器通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数,并根据查找到的第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸,本实施例通过存储在网络服务器端的人脸特征值和美颜参数实现对终端设备获取的第一人脸特征值进行美颜处理的方式,解决了相关技术中的美颜拍照方式,由于执行拍照的智能终端中存储空间的限制,很难同时满足对较多数量的人脸进行美颜处理的需求,从而导致智能终端的美颜处理性能较差的问题。In the beauty processing method provided by the embodiment, the network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device, and firstly searches for the second facial feature value according to the found second facial feature value. Some or all of the faces corresponding to the face feature values are processed according to the beauty parameters, and the face processed by the face is the face corresponding to the second face feature value. In this embodiment, the face stored on the network server is used. The feature value and the beauty parameter realize the beauty treatment method of the first face feature value acquired by the terminal device, and solve the beauty photographing mode in the related art. Due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously It satisfies the demand for beauty treatment of a large number of faces, which leads to a problem of poor cosmetic processing performance of the smart terminal.
进一步地,网络服务器通常具有较大的存储空间,可以存储大量的人脸特征值,因此,本实施例提供的美颜处理方法还可以避免由于终端设备存储空间有限而造成的各种问题,上述实例中已经具体说明,故在此不再赘述。Further, the network server usually has a large storage space, and can store a large number of facial feature values. Therefore, the beauty processing method provided in this embodiment can also avoid various problems caused by limited storage space of the terminal device. It has been specifically described in the examples, so it will not be described here.
图5为本发明实施例提供的还一种美颜处理方法的流程图。本发明提供一种从网络服务器中查找人脸特征值和美颜参数的具体方式,在上述图4所示实施例的基础上,S210可以包括:S211,网络服务器接收终端设备发送的第一人脸特征值;S212,网络服务器通过已存储的人脸特征值库与第一人脸特征值进行匹配,所匹配的结果包括第二人脸特征值和美颜参数, 该第二人脸特征值对应的人脸为第一人脸特征值对应的部分或全部人脸。FIG. 5 is a flowchart of still another beauty processing method according to an embodiment of the present invention. The present invention provides a specific manner for searching for a face feature value and a beauty parameter from a network server. On the basis of the embodiment shown in FIG. 4, S210 may include: S211, and the network server receives the first face sent by the terminal device. The feature value; S212, the web server matches the first face feature value through the stored face feature value library, and the matched result includes the second face feature value and the beauty parameter, The face corresponding to the second facial feature value is part or all of the face corresponding to the first facial feature value.
在本实施例中,网络服务器上已注册的用户可以与终端设备进行数据交互,例如上述的“美颜用户1”,与该终端设备相关的数据均存储在“美颜用户1”中,即网络服务器可以为多个终端设备提供上述美颜服务,通过不同的注册用户区分不同的终端设备。In this embodiment, the registered user on the network server can perform data interaction with the terminal device, for example, “beauty user 1” described above, and the data related to the terminal device is stored in “beauty user 1”, that is, The web server can provide the above-mentioned beauty service for a plurality of terminal devices, and distinguish different terminal devices by different registered users.
可选地,网络服务器的注册用户中的数据是可以随时变更的,即本实施例提供的方法还包括:S230,网络服务器接收终端设备发送的操作指令;S240,网络服务器根据操作指令对网络服务器中的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项,并向终端设备返回操作结果。Optionally, the data in the registered user of the network server is changeable at any time, that is, the method provided in this embodiment further includes: S230, the network server receives an operation instruction sent by the terminal device; and S240, the network server processes the network server according to the operation instruction. The face feature value and the face parameter in the face feature value library are one or more of adding, reading, updating, and deleting operations, and returning the operation result to the terminal device.
需要说明的是,本实施例不限制S230~S240的执行顺序,变更网络服务器中的人脸特征值和美颜参数可以是在拍照前或拍照后,可以是用户在任意时间执行的,图5所示实施例以S230~S240在S220之后执行为例予以示出;另外,对网络服务器中数据的变更,不仅可以通过终端设备来执行,还可以由用户直接通过网络将上传到网络服务器的注册用户中。It should be noted that, in this embodiment, the execution order of the S230-S240 is not limited, and the change of the facial feature value and the beauty parameter in the network server may be performed before or after the photographing, and may be performed by the user at any time. The embodiment is shown as an example after S230 to S240 are executed after S220; in addition, the change of data in the network server can be performed not only by the terminal device but also by the user directly to the registered user of the network server through the network. in.
更进一步地,上述已经说明本实施例中的网络服务器可以对多个终端设备进行服务,即在更换终端设备后,网络服务器同样可以提供服务器,本实施例提供的方法还包括:网络服务器向终端设备发送网络服务器中存储的人脸特征值和美颜参数,该人脸特征值和美颜参数用于指示终端设备在进行美颜处理前,通过终端设备中存储的人脸特征值与待执行美颜处理的人脸对应的人脸特征值进行匹配。Further, the above description has been made that the network server in this embodiment can serve a plurality of terminal devices, that is, after the terminal device is replaced, the network server can also provide the server. The method provided in this embodiment further includes: the network server to the terminal The device sends a facial feature value and a beauty parameter stored in the network server, where the facial feature value and the beauty parameter are used to indicate the facial feature value and the to-be-executed beauty stored in the terminal device before the terminal device performs the beauty processing. The face feature values corresponding to the processed face are matched.
如图6所示,为本发明实施例提供的一种美颜处理方法的信令交互流程图。图6所示实施例包括:FIG. 6 is a flowchart of signaling interaction of a beauty processing method according to an embodiment of the present invention. The embodiment shown in Figure 6 includes:
S310,终端设备将获取的第一人脸特征值发送给网络服务器,具体可以发送到网络服务器上特定的注册用户中。S310. The terminal device sends the acquired first facial feature value to the network server, where the terminal device may be sent to a specific registered user on the network server.
S311,网络服务器通过已存储的人脸特征值库与第一人脸特征值进行 匹配。S311. The network server performs the stored face feature value database and the first face feature value. match.
S312,网络服务器向终端设备发送匹配结果,该匹配结果包括第二人脸特征值和美颜参数,该第二人脸特征值对应的人脸为第一人脸特征值对应的部分或全部人脸。S312, the network server sends a matching result to the terminal device, where the matching result includes a second facial feature value and a beauty parameter, and the face corresponding to the second facial feature value is a part or all faces corresponding to the first facial feature value. .
S313,根据匹配结果对第二人脸特征值对应的人脸进行美颜处理。S313. Perform a beauty treatment on the face corresponding to the second facial feature value according to the matching result.
本实施例提供的方法,在终端设备通过网络服务器中的数据执行美颜处理前,还需要执行注册流程,例如在S310之前,包括:The method provided in this embodiment needs to perform a registration process before the terminal device performs the beauty processing through the data in the network server. For example, before S310, the method includes:
S301,终端设备向网络服务器发送注册请求。S301. The terminal device sends a registration request to the network server.
S302,网络服务器向终端设备返回注册信息,该注册信息包括注册账户和密码等信息。S302. The network server returns registration information to the terminal device, where the registration information includes information such as a registered account and a password.
在终端设备获取注册账户后,可以将终端设备中的人脸特征值和美颜参数同步到网络服务器中,即在S310之前还包括:After the terminal device obtains the registration account, the facial feature value and the beauty parameter in the terminal device can be synchronized to the network server, that is, before S310, the method further includes:
S303,同步美颜数据,具体为终端设备将人脸特征值和美颜参数发送给网络服务器。S303: Synchronize the beauty data, specifically, the terminal device sends the facial feature value and the beauty parameter to the network server.
可选地,本实施例提供的方法包括:S304,终端设备存储或删除其自身的人脸特征值和美颜参数。Optionally, the method provided in this embodiment includes: S304, the terminal device stores or deletes its own facial feature value and the beauty parameter.
本实施例同样可以通过终端设备与网络服务器交互的方式变更网络服务器中的数据,即本实施例提供的方法还包括:S314,通过用户在终端设备上执行的操作,向网络服务器发送操作指令。In this embodiment, the data in the network server can be changed by the terminal device interacting with the network server. The method provided in this embodiment further includes: S314, sending an operation instruction to the network server by using an operation performed by the user on the terminal device.
S315,网络服务器根据操作指令对所存储的人脸特征值库中的人脸特征值和美颜参数执行增加、读取、更新和删除操作中的一项或多项。S315. The network server performs one or more of adding, reading, updating, and deleting operations on the face feature value and the beauty parameter in the stored face feature value library according to the operation instruction.
S316,网络服务器向终端设备返回操作结果。S316. The network server returns an operation result to the terminal device.
需要说明的是,本实施例中在网络服务器预置数据的方式,以及对网络服务器中数据进行变更的方式,还可以由用户直接通过网络将上传到网络服务器的注册用户中。 It should be noted that, in this embodiment, the manner in which the network server presets data and the manner in which the data in the network server is changed may also be uploaded by the user directly to the registered user of the network server through the network.
进一步地,本实施例提供的方法还包括:S317,网络服务器向终端设备发送该网络服务器中存储的人脸特征值和美颜参数。Further, the method provided in this embodiment further includes: S317, the network server sends the facial feature value and the beauty parameter stored in the network server to the terminal device.
S318,终端设备向网络服务器返回确认消息。例如在用户更换终端设备后,不需要重新设置与美颜功能相关的数据内容,通过网络同步的方式获取即可。S318. The terminal device returns an acknowledgement message to the network server. For example, after the user replaces the terminal device, it is not necessary to reset the data content related to the beauty function, and the network content can be acquired by means of network synchronization.
需要说明的是,上述S314~S316与S317~S318均为独立的执行步骤,不限制S314~S316和S317~S318,与S310~S313的执行顺序;S314~S316可以在终端设备注册用户后执行,S317~S318通常在终端设备注册用户后,并且网络服务器中具有与美颜相关的数据前执行即可。It should be noted that the above S314 to S316 and S317 to S318 are independent execution steps, and the execution sequences of S314 to S316 and S317 to S318 and S310 to S313 are not limited; and S314 to S316 can be executed after the terminal device registers the user. S317 to S318 are usually performed after the terminal device registers the user, and the web server has the data related to the beauty.
图7为本发明实施例提供的一种美颜处理装置的结构示意图。本实施例提供的美颜处理装置适用于对终端设备拍摄图像中的人脸进行美颜处理的情况中,该美颜处理装置通过硬件和软件结合的方式来实现,该装置可以集成在终端设备的处理器中,供处理器调用使用。如图7所示,本实施例的美颜处理装置具体包括:查找模块11和美颜模块12。FIG. 7 is a schematic structural diagram of a beauty treatment device according to an embodiment of the present invention. In the case where the beauty treatment device provided in this embodiment is suitable for performing facial treatment on a face in a captured image of a terminal device, the beauty treatment device is implemented by a combination of hardware and software, and the device can be integrated in the terminal device. In the processor, for the processor to call. As shown in FIG. 7 , the beauty treatment device of this embodiment specifically includes: a search module 11 and a beauty module 12 .
其中,查找模块11,设置为通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数。The searching module 11 is configured to search for a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value acquired by the terminal device.
本实施例中,美颜处理的对象同样为拍摄图像中的人脸,具体地,当前拍摄图像中的人脸可以作为第一人脸特征值,与相关技术不同的是,本发明各实施例中用于比对人脸特征值库和美颜参数不是从本机上获取的,而是存储在特定的网络端,同样可以为百度云盘,或者苹果手机的苹果云(iCloud),例如,执行美颜处理的终端设备需要在网络服务器上注册用户,例如同样为“美颜用户1”。因此,终端设备在美颜拍照时,可以在网络服务器中已注册的用户下查找对应的人脸特征值和美颜参数,从而将网络服务器中的人脸特征值和美颜参数作为美颜处理的依据。In this embodiment, the object of the beauty treatment is also a human face in the captured image. Specifically, the face in the current captured image can be used as the first facial feature value, which is different from the related art in various embodiments of the present invention. The comparison between the face feature value library and the beauty parameter is not obtained from the local machine, but stored on a specific network side, and can also be a Baidu cloud disk, or an Apple cloud (iCloud) of an Apple mobile phone, for example, The cosmetically processed terminal device needs to register the user on the web server, for example, also "beauty user 1". Therefore, when the terminal device takes a photo, the corresponding facial feature value and the beauty parameter can be searched for by the registered user in the web server, so that the facial feature value and the beauty parameter in the web server are used as the basis for the beauty treatment. .
需要说明的是,本发明实施例不限制人脸特征值和美颜参数的对应关系,人脸特征值和美颜参数例如可以是一一对应的关系,人脸特征值和美 颜参数例如还可以是多对一的关系。It should be noted that, in the embodiment of the present invention, the correspondence between the facial feature value and the facial parameter is not limited, and the facial feature value and the facial parameter may be, for example, a one-to-one correspondence, the facial feature value and the beauty. The color parameter can also be, for example, a many-to-one relationship.
美颜模块12,设置为根据查找模块11查找到的第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸。The beauty module 12 is configured to perform facial treatment on the part or all of the faces corresponding to the first facial feature value according to the second facial feature value found by the searching module 11 according to the beauty parameter, and perform the facial treatment on the face The face corresponding to the second face feature value.
在本实施例中,已经通过网络服务器中的人脸特征值库查找到与第一人脸特征值对应的部分或全部人脸,例如部分人脸在网络服务器中查找到对应的人脸特征值,而其他人脸在网络服务器中并未查找到对应的人脸特征值,也就是说,第二人脸特征值对应的人脸是第一人脸特征值对应的人脸的子集,也可以完全相同。即进行美颜处理时,仅对已查找到的第二人脸特征值对应的部分人脸进行美颜处理,其他人脸则不需要执行美颜处理。In this embodiment, some or all of the faces corresponding to the first face feature value have been found through the face feature value library in the web server, for example, part of the face is found in the network server and the corresponding face feature value is found in the network server. The other face does not find the corresponding face feature value in the web server, that is, the face corresponding to the second face feature value is a subset of the face corresponding to the first face feature value, Can be identical. That is, when performing the beauty treatment, only part of the face corresponding to the found second face feature value is subjected to the beauty treatment, and other faces do not need to perform the beauty treatment.
本实施例在具体实现中,网络服务器中通常预先存储有人脸特征值和美颜参数,即本实施例提供的美颜处理装置还可以包括:发送模块13,用于在查找模块11通过第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数之前,将终端设备中的人脸特征值和美颜参数发送给网络服务器;处理模块14,设置为存储或删除终端设备中的人脸特征值和美颜参数。需要说明的是,本实施例的网络服务器中预存储的人脸特征值和美颜参数还可以通过其他方式预置,例如用户直接通过网络将上传到网络服务器的注册用户中。In a specific implementation, the facial server feature value and the beauty parameter are generally pre-stored in the network server, that is, the beauty processing device provided in this embodiment may further include: a sending module 13 configured to pass the first person in the searching module 11 The face feature value is sent to the network server by the face feature value and the beauty parameter in the terminal device before the matching second face feature value and the beauty parameter are searched in the network server; the processing module 14 is configured to store or delete the terminal device. Face feature values and beauty parameters. It should be noted that the face feature value and the beauty parameter pre-stored in the network server of the embodiment may be preset by other means, for example, the user directly uploads to the registered user of the network server through the network.
本发明实施例提供的美颜处理装置用于执行本发明图1所示实施例提供的美颜处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The beauty treatment device provided by the embodiment of the present invention is used to perform the beauty treatment method provided by the embodiment shown in FIG. 1 of the present invention, and has a corresponding function module, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
图8为本发明实施例提供的另一种美颜处理装置的结构示意图。在上述图4所示美颜处理装置的结构基础上,本实施例中的查找模块11可以包括:发送单元15,设置为将第一人脸特征值发送给网络服务器,该第一人脸特征值用于指示网络服务器通过已存储的人脸特征值库与第一人脸特征值进行匹配;接收单元16,设置为接收网络服务器发送的匹配结果, 该匹配结果包括第二人脸特征值和美颜参数,该第二人脸特征值对应的人脸为第一人脸特征值对应的部分或全部人脸。FIG. 8 is a schematic structural diagram of another beauty treatment device according to an embodiment of the present invention. Based on the structure of the beauty processing device shown in FIG. 4, the searching module 11 in this embodiment may include: a sending unit 15 configured to send the first facial feature value to the network server, the first facial feature The value is used to indicate that the network server matches the first facial feature value by using the stored facial feature value database; the receiving unit 16 is configured to receive the matching result sent by the network server, The matching result includes a second facial feature value and a facial parameter, and the human face corresponding to the second facial feature value is a part or all of the human face corresponding to the first facial feature value.
本发明实施例提供的美颜处理装置用于执行本发明图2所示实施例提供的美颜处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The beauty processing device provided by the embodiment of the present invention is used to perform the beauty processing method provided by the embodiment shown in FIG. 2 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
可选地,上述实施例已经说明,在通过终端设备向网络服务器同步与美颜处理相关的数据后,可以将数据保存在终端设备中,因此,终端设备在执行美颜处理时,也可以先行查询终端设备中存储的人脸特征值;即本实施例中的查找模块11,还设置为在通过第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数之前,通过第一人脸特征值在终端设备中查找匹配的第二人脸特征值和美颜参数;则查找模块11设置为通过第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数,是指:当查找模块11在终端设备中未查找到与第一人脸特征值匹配的第二人脸特征值时,在网络服务器中查找与第一人脸特征值匹配的第二人脸特征值和美颜参数。Optionally, the foregoing embodiment has been described that after the data related to the beauty processing is synchronized to the network server by the terminal device, the data may be saved in the terminal device. Therefore, when the terminal device performs the beauty processing, the terminal device may also be used first. Querying the face feature value stored in the terminal device; that is, the search module 11 in this embodiment is further configured to: before finding the matching second face feature value and the beauty parameter in the web server by using the first face feature value, Searching for the matched second facial feature value and the beauty parameter in the terminal device by using the first facial feature value; the searching module 11 is configured to search the network server for the matching second facial feature value by using the first facial feature value And the beauty parameter means that when the search module 11 does not find the second face feature value matching the first face feature value in the terminal device, searching for the first face feature value in the network server Two face eigenvalues and beauty parameters.
更进一步地,网络服务器的注册用户中的数据是可以随时变更的,变更网络服务器中数据的方式例如可以通过本实施例提供的美颜处理装置执行,具体为,发送模块13,还设置为通过用户在终端设备上执行的操作,向网络服务器发送操作指令,该操作指令用于指示网络服务器对所存储的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项。Further, the data in the registered user of the network server can be changed at any time. The manner of changing the data in the network server can be performed, for example, by the beauty processing device provided in this embodiment. Specifically, the sending module 13 is further configured to pass The operation performed by the user on the terminal device sends an operation instruction to the network server, where the operation instruction is used to instruct the network server to add, read, update, and update the facial feature value and the beauty parameter in the stored facial feature value database. Delete one or more of the actions.
本发明实施例提供的美颜处理装置用于执行本发明图3所示实施例提供的美颜处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The beauty processing device provided by the embodiment of the present invention is used to perform the beauty processing method provided by the embodiment shown in FIG. 3 of the present invention, and has a corresponding functional module, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
需要说明的是,本实施例不限制变更网络服务器中数据的执行顺序,变更网络服务器中的人脸特征值和美颜参数可以是在拍照前或拍照后,可 以是用户在任意时间执行的;另外,对网络服务器中数据的变更,不仅可以通过终端设备来执行,还可以由用户直接通过网络将上传到网络服务器的注册用户中。It should be noted that, in this embodiment, the execution order of the data in the network server is not limited, and the face feature value and the beauty parameter in the network server may be changed before or after taking a photo. Therefore, the user performs the data at any time; in addition, the change of the data in the network server can be performed not only by the terminal device, but also by the user directly to the registered user of the network server through the network.
图9为本发明实施例提供的又一种美颜处理装置的结构示意图。本实施例提供的美颜处理装置适用于对终端设备拍摄图像中的人脸进行美颜处理的情况中,该美颜处理装置通过硬件和软件结合的方式来实现,该装置可以设置于网络服务器中。如图9所示,本实施例的美颜处理装置具体包括:查找模块21和发送模块22。FIG. 9 is a schematic structural diagram of still another beauty treatment device according to an embodiment of the present invention. In the case where the beauty treatment device provided in this embodiment is suitable for performing beauty treatment on a face in a captured image of a terminal device, the beauty treatment device is implemented by a combination of hardware and software, and the device can be set on a network server. in. As shown in FIG. 9, the beauty processing device of this embodiment specifically includes a lookup module 21 and a sending module 22.
其中,查找模块21,设置为通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数。The searching module 21 is configured to search for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device.
本实施例中,美颜处理的对象同样为拍摄图像中的人脸,具体地,当前拍摄图像中的人脸可以作为第一人脸特征值,与相关技术不同的是,本发明各实施例中用于比对人脸特征值库和美颜参数不是从本机上获取的,而是存储在特定的网络端,同样可以为百度云盘,或者苹果手机的苹果云(iCloud),在具体实现中,网络服务器中具有终端设备注册的用户,例如网络服务器上注册有“美颜用户1”。因此,对于需要进行美颜拍照的终端设备,网络服务器可以提供其进行美颜处理的相关服务器,即网络服务器在终端设备的注册用户下查找与第一人脸特征值匹配的第二人脸特征值和美颜参数,本实施例具体将网络服务器中的人脸特征值库和美颜参数作为美颜处理的依据。In this embodiment, the object of the beauty treatment is also a human face in the captured image. Specifically, the face in the current captured image can be used as the first facial feature value, which is different from the related art in various embodiments of the present invention. The matching face value library and beauty parameters are not obtained from the local machine, but stored on a specific network side, which can also be Baidu cloud disk, or Apple cloud (iCloud) of Apple mobile phone. In the network server, the user who has the terminal device registration, for example, the “Meause User 1” is registered on the network server. Therefore, for a terminal device that needs to take a beautiful photo, the web server can provide a related server for performing beauty processing, that is, the web server searches for a second facial feature matching the first facial feature value under the registered user of the terminal device. Value and beauty parameters, in this embodiment, the face feature value library and the beauty parameter in the web server are specifically used as the basis for the beauty treatment.
需要说明的是,本发明实施例不限制人脸特征值和美颜参数的对应关系,人脸特征值和美颜参数例如可以是一一对应的关系,人脸特征值和美颜参数例如还可以是多对一的关系。It should be noted that, in the embodiment of the present invention, the correspondence between the facial feature value and the facial parameter is not limited, and the facial feature value and the facial parameter may be, for example, a one-to-one correspondence, and the facial feature value and the facial parameter may be, for example, more The relationship to one.
发送模块22,设置为将查找模块21查找到的第二人脸特征值和美颜参数发送给终端设备,该第二人脸特征值和美颜参数用于指示终端设备根据第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参 数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸。The sending module 22 is configured to send the second facial feature value and the beauty parameter found by the searching module 21 to the terminal device, where the second facial feature value and the beauty parameter are used to indicate that the terminal device is configured according to the second facial feature value Part or all of the faces corresponding to the first face feature value are in accordance with the beauty face The face is subjected to the beauty treatment, and the face subjected to the beauty treatment is the face corresponding to the feature value of the second face.
在本实施例中,已经通过网络服务器中的人脸特征值库查找到与第一人脸特征值对应的部分或全部人脸,例如部分人脸在网络服务器中查找到对应的人脸特征值,而其他人脸在网络服务器中并未查找到对应的人脸特征值,也就是说,第二人脸特征值对应的人脸是第一人脸特征值对应的人脸的子集,也可以完全相同。即进行美颜处理时,仅对已查找到的第二人脸特征值对应的部分人脸进行美颜处理,其他人脸则不需要执行美颜处理。In this embodiment, some or all of the faces corresponding to the first face feature value have been found through the face feature value library in the web server, for example, part of the face is found in the network server and the corresponding face feature value is found in the network server. The other face does not find the corresponding face feature value in the web server, that is, the face corresponding to the second face feature value is a subset of the face corresponding to the first face feature value, Can be identical. That is, when performing the beauty treatment, only part of the face corresponding to the found second face feature value is subjected to the beauty treatment, and other faces do not need to perform the beauty treatment.
本实施例在具体实现中,网络服务器中通常预先存储有人脸特征值和美颜参数,即本实施例提供的美颜处理装置还可以包括:接收模块23,设置为在查找模块21通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数之前,接收终端设备发送的人脸特征值和美颜参数。需要说明的是,本实施例的网络服务器中预存储的人脸特征值和美颜参数还可以通过其他方式预置,例如用户直接通过网络将上传到网络服务器的注册用户中。In a specific implementation, the web server typically stores the facial feature value and the facial parameter in advance, that is, the facial processing device provided in this embodiment may further include: a receiving module 23 configured to pass through the terminal device in the searching module 21 Before the first facial feature value finds the matched second facial feature value and the beauty parameter, the facial feature value and the facial parameter transmitted by the terminal device are received. It should be noted that the face feature value and the beauty parameter pre-stored in the network server of the embodiment may be preset by other means, for example, the user directly uploads to the registered user of the network server through the network.
本发明实施例提供的美颜处理装置用于执行本发明图4所示实施例提供的美颜处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The beauty processing device provided by the embodiment of the present invention is used to perform the beauty processing method provided by the embodiment shown in FIG. 4 of the present invention, and has a corresponding functional module, and the implementation principle and the technical effect thereof are similar, and details are not described herein again.
图10为本发明实施例提供的再一种美颜处理装置的结构示意图。在上述图9所示美颜处理装置的结构基础上,本实施例中的查找模块21可以包括:接收单元24,设置为接收终端设备发送的第一人脸特征值;匹配单元25,设置为通过已存储的人脸特征值库与接收单元24接收的第一人脸特征值进行匹配,所匹配的结果包括第二人脸特征值和美颜参数,该第二人脸特征值对应的人脸为第一人脸特征值对应的部分或全部人脸。FIG. 10 is a schematic structural diagram of still another beauty treatment device according to an embodiment of the present invention. On the basis of the structure of the beauty processing device shown in FIG. 9 above, the searching module 21 in this embodiment may include: a receiving unit 24 configured to receive a first facial feature value sent by the terminal device; and a matching unit 25 configured to Matching the stored first face feature value library with the first face feature value received by the receiving unit 24, the matched result includes a second face feature value and a beauty parameter, and the face corresponding to the second face feature value It is part or all of the face corresponding to the first face feature value.
可选地,网络服务器的注册用户中的数据是可以随时变更的,变更网络服务器中数据的方式例如可以通过本实施例提供的美颜处理装置执行,具体为,接收模块23,还设置为接收终端设备发送的操作指令;相应地, 本实施例的美颜处理装置还包括:处理模块26,设置为根据接收模块23接收的操作指令对网络服务器中的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项;发送模块22,还设置为向终端设备返回操作结果。Optionally, the data in the registered user of the network server can be changed at any time. The manner of changing the data in the network server can be performed, for example, by the beauty processing device provided in this embodiment. Specifically, the receiving module 23 is further configured to receive An operation instruction sent by the terminal device; correspondingly, The beauty processing device of this embodiment further includes: a processing module 26 configured to add, read, and read facial feature values and beauty parameters in the face feature value database in the network server according to the operation instruction received by the receiving module 23 One or more of the update and delete operations; the sending module 22 is further configured to return an operation result to the terminal device.
进一步地,上述已经说明本实施例中的网络服务器可以对多个终端设备进行服务,即在更换终端设备后,网络服务器同样可以提供服务器,本实施例提供的装置中,发送模块22,还设置为向终端设备发送网络服务器中存储的人脸特征值和美颜参数,该人脸特征值和美颜参数用于指示终端设备在进行美颜处理前,通过终端设备中存储的人脸特征值与待执行美颜处理的人脸对应的人脸特征值进行匹配。Further, it has been described above that the network server in this embodiment can serve a plurality of terminal devices, that is, after the terminal device is replaced, the network server can also provide the server. In the apparatus provided in this embodiment, the sending module 22 is further configured. And sending the facial feature value and the beauty parameter stored in the network server to the terminal device, where the facial feature value and the beauty parameter are used to indicate that the terminal device stores the facial feature value and the waiting value in the terminal device before performing the beauty processing. Match the facial feature values corresponding to the face processed by the beauty treatment.
本发明实施例提供的美颜处理装置用于执行本发明图5所示实施例提供的美颜处理方法,具备相应的功能模块,其实现原理和技术效果类似,此处不再赘述。The beauty treatment device provided by the embodiment of the present invention is used to perform the beauty treatment method provided by the embodiment shown in FIG. 5 of the present invention, and has a corresponding function module, and the implementation principle and technical effect thereof are similar, and details are not described herein again.
需要说明的是,本实施例不限制变更网络服务器中数据的执行顺序,变更网络服务器中的人脸特征值和美颜参数可以是在拍照前或拍照后,可以是用户在任意时间执行的;另外,对网络服务器中数据的变更,不仅可以通过终端设备来执行,还可以由用户直接通过网络将上传到网络服务器的注册用户中。It should be noted that, in this embodiment, the execution order of the data in the network server is not limited, and the change of the face feature value and the beauty parameter in the network server may be performed before or after the photographing, and may be performed by the user at any time; The change of data in the network server can be performed not only by the terminal device, but also by the user directly to the registered user of the network server through the network.
本发明实施例还提供一种终端设备,该终端设备包括:摄像头、显示器和处理器,其中,该处理器中设置有如上述图7和图8所示任一实施例中的美颜处理装置;摄像头,设置为拍照或摄像,并将拍摄图像中的人脸转化为人脸特征值;显示器,设置为在拍照或摄像过程中显示实时拍摄图像,并在拍照或摄像完成后显示拍摄结果。本实施例中的终端设备可以为智能手机,安装美颜APP后可以进行美颜拍照,还可以为平板电脑和微单相机,同样具有美颜拍照的功能。The embodiment of the present invention further provides a terminal device, including: a camera, a display, and a processor, wherein the processor is provided with a beauty processing device in any of the embodiments shown in FIG. 7 and FIG. 8; The camera is set to take a picture or a camera, and converts the face in the captured image into a face feature value; the display is set to display a real-time captured image during photographing or photographing, and displays the shooting result after the photographing or photographing is completed. The terminal device in this embodiment may be a smart phone, and the beauty photo can be taken after installing the beauty app, and the tablet computer and the micro single camera can also have the function of beauty photographing.
本实施例提供的终端设备用于执行本发明图1到图6所示任一实施例 提供的美颜处理方法,具备相应的实体装置,其实现原理和技术效果类似,此处不再赘述。The terminal device provided in this embodiment is used to perform any of the embodiments shown in FIG. 1 to FIG. 6 of the present invention. The provided beauty treatment method has the corresponding physical device, and its implementation principle and technical effect are similar, and will not be described here.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数;S1. Search for a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value obtained by the terminal device;
S2,根据查找到的第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸。S2, according to the found second facial feature value, part or all of the face corresponding to the first facial feature value is processed according to the beauty parameter, and the face processed by the facial treatment is corresponding to the second facial feature value. Face.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
虽然本发明所揭露的实施方式如上,但所述的内容仅为便于理解本发明而采用的实施方式,并非用以限定本发明。任何本发明所属领域内的技术人员,在不脱离本发明所揭露的精神和范围的前提下,可以在实施的形式及细节上进行任何的修改与变化,但本发明的专利保护范围,仍须以所附的权利要求书所界定的范围为准。While the embodiments of the present invention have been described above, the described embodiments are merely for the purpose of understanding the invention and are not intended to limit the invention. Any modification and variation in the form and details of the embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention. The scope defined by the appended claims shall prevail.
工业实用性Industrial applicability
在本发明实施例中,通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数,并根据查找到的第二人脸特征值对第一人脸特征值对应的部分或全部人脸按照美颜参数进行美颜处理,进行美颜处理的人脸为第二人脸特征值对应的人脸,本发明通过存储在网络服务器端的人脸特征值和美颜参数实现对终端设备获取的第一人脸特征值进行美颜处理的方式,解决了相关技术中的美颜拍照方式,由于执行拍照的智能终端中存储空间的限制,很难同时满足对较多数量的人脸 进行美颜处理的需求,从而导致智能终端的美颜处理性能较差的问题。 In the embodiment of the present invention, the first facial feature value obtained by the terminal device is searched for the matching second facial feature value and the beauty parameter in the network server, and the first person is compared according to the found second facial feature value. Some or all of the faces corresponding to the face feature values are processed according to the beauty parameters, and the face processed by the face is the face corresponding to the feature values of the second face. The present invention stores the face feature values stored on the network server side. And the beauty parameter realizes the beauty treatment method of the first facial feature value acquired by the terminal device, and solves the beauty photographing mode in the related technology. Due to the limitation of the storage space in the smart terminal performing the photographing, it is difficult to simultaneously satisfy the a larger number of faces The need for cosmetic processing results in poor cosmetic processing performance of the smart terminal.

Claims (21)

  1. 一种美颜处理方法,包括:A beauty treatment method comprising:
    通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数;Finding a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value obtained by the terminal device;
    根据查找到的所述第二人脸特征值对所述第一人脸特征值对应的部分或全部人脸按照所述美颜参数进行美颜处理,进行所述美颜处理的人脸为所述第二人脸特征值对应的人脸。Performing a facial treatment on the part or all of the faces corresponding to the first facial feature value according to the found second facial feature value, and performing the facial treatment on the face The face corresponding to the second face feature value is described.
  2. 根据权利要求1所述的美颜处理方法,其中,所述通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数,包括:The beauty processing method according to claim 1, wherein the searching for the matching second facial feature value and the beauty parameter in the web server by the first facial feature value acquired by the terminal device comprises:
    将所述第一人脸特征值发送给所述网络服务器,所述第一人脸特征值用于指示所述网络服务器通过已存储的人脸特征值库与所述第一人脸特征值进行匹配;Transmitting the first facial feature value to the network server, where the first facial feature value is used to instruct the network server to perform the stored facial feature value database and the first facial feature value match;
    接收所述网络服务器发送的匹配结果,所述匹配结果包括所述第二人脸特征值和所述美颜参数,所述第二人脸特征值对应的人脸为所述第一人脸特征值对应的部分或全部人脸。Receiving a matching result sent by the network server, where the matching result includes the second facial feature value and the facial parameter, and the face corresponding to the second facial feature value is the first facial feature Some or all faces corresponding to the value.
  3. 根据权利要求1所述的美颜处理方法,其中,所述通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数之前,还包括:The beauty processing method according to claim 1, wherein the first facial feature value acquired by the terminal device, before the matching the second facial feature value and the beauty parameter in the network server, further includes:
    将所述终端设备中的人脸特征值和美颜参数发送给所述网络服务器;Transmitting the face feature value and the beauty parameter in the terminal device to the network server;
    存储或删除所述终端设备中的人脸特征值和美颜参数。The face feature value and the face parameter in the terminal device are stored or deleted.
  4. 根据权利要求1~3中任一项所述的美颜处理方法,其中,所述通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数之前,还包括:The beauty processing method according to any one of claims 1 to 3, wherein the first facial feature value acquired by the terminal device is before the matching second facial feature value and the beauty parameter are found in the web server ,Also includes:
    通过所述第一人脸特征值在所述终端设备中查找匹配的第二人脸特征值和美颜参数;Searching, by the first facial feature value, the matched second facial feature value and the beauty parameter in the terminal device;
    所述通过终端设备第一人脸特征值在网络服务器中查找匹配的第二 人脸特征值和美颜参数,包括:Searching for a matching second in the network server by using the first facial feature value of the terminal device Face eigenvalues and beauty parameters, including:
    当在所述终端设备中未查找到与所述第一人脸特征值匹配的第二人脸特征值时,在所述网络服务器中查找与所述第一人脸特征值匹配的第二人脸特征值和美颜参数。When the second facial feature value matching the first facial feature value is not found in the terminal device, searching for a second person matching the first facial feature value in the network server Face eigenvalues and beauty parameters.
  5. 根据权利要求1~3中任一项所述的美颜处理方法,其中,还包括:The beauty treatment method according to any one of claims 1 to 3, further comprising:
    通过用户在所述终端设备上执行的操作,向所述网络服务器发送操作指令,所述操作指令用于指示所述网络服务器对所存储的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项。Sending, by the user, an operation instruction on the terminal device, to the network server, the operation instruction is used to instruct the network server to perform a face feature value and a beauty parameter in the stored face feature value library. Make one or more of the add, read, update, and delete operations.
  6. 一种美颜处理方法,包括:A beauty treatment method comprising:
    网络服务器通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数;The network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device;
    所述网络服务器将查找到的所述第二人脸特征值和所述美颜参数发送给所述终端设备,所述第二人脸特征值和所述美颜参数用于指示所述终端设备根据所述第二人脸特征值对所述第一人脸特征值对应的部分或全部人脸按照所述美颜参数进行美颜处理,进行所述美颜处理的人脸为所述第二人脸特征值对应的人脸。Sending, by the network server, the second facial feature value and the facial parameter to the terminal device, where the second facial feature value and the facial parameter are used to indicate the terminal device Performing a facial treatment on the part or all of the faces corresponding to the first facial feature value according to the second facial feature value according to the beauty parameter, and performing the facial treatment on the face as the second The face corresponding to the face feature value.
  7. 根据权利要求6所述的美颜处理方法,其中,所述网络服务器通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数,包括:The beauty processing method according to claim 6, wherein the network server searches for the matched second facial feature value and the beauty parameter by using the first facial feature value of the terminal device, including:
    所述网络服务器接收所述终端设备发送的所述第一人脸特征值;Receiving, by the network server, the first facial feature value sent by the terminal device;
    所述网络服务器通过已存储的人脸特征值库与所述第一人脸特征值进行匹配,所匹配的结果包括所述第二人脸特征值和所述美颜参数,所述第二人脸特征值对应的人脸为所述第一人脸特征值对应的部分或全部人脸。The network server matches the first facial feature value by using the stored facial feature value library, and the matched result includes the second facial feature value and the facial parameter, the second person The face corresponding to the face feature value is part or all of the face corresponding to the first face feature value.
  8. 根据权利要求6所述的美颜处理方法,其中,所述网络服务器通 过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数之前,还包括:The beauty processing method according to claim 6, wherein said web server is connected Before the first face feature value of the terminal device finds the matching second face feature value and the beauty parameter, the method further includes:
    所述网络服务器接收所述终端设备发送的人脸特征值和美颜参数。The network server receives a facial feature value and a beauty parameter sent by the terminal device.
  9. 根据权利要求6~8中任一项所述的美颜处理方法,其中,还包括:The beauty treatment method according to any one of claims 6 to 8, further comprising:
    所述网络服务器接收所述终端设备发送的操作指令;Receiving, by the network server, an operation instruction sent by the terminal device;
    所述网络服务器根据所述操作指令对所述网络服务器中的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项,并向所述终端设备返回操作结果。And the network server adds, reads, updates, and deletes one of a face feature value and a beauty parameter in the face feature value database in the network server according to the operation instruction, and The terminal device returns an operation result.
  10. 根据权利要求6~8中任一项所述的美颜处理方法,其中,还包括:The beauty treatment method according to any one of claims 6 to 8, further comprising:
    所述网络服务器向终端设备发送所述网络服务器中存储的人脸特征值和美颜参数,所述人脸特征值和所述美颜参数用于指示所述终端设备在进行美颜处理前,通过所述终端设备中存储的人脸特征值与待执行美颜处理的人脸对应的人脸特征值进行匹配。Transmitting, by the network server, a facial feature value and a beauty parameter stored in the network server to the terminal device, where the facial feature value and the facial parameter are used to indicate that the terminal device passes the beauty processing The face feature value stored in the terminal device matches the face feature value corresponding to the face to be subjected to the beauty process.
  11. 一种美颜处理装置,包括:A beauty treatment device comprising:
    查找模块,设置为通过终端设备获取的第一人脸特征值在网络服务器中查找匹配的第二人脸特征值和美颜参数;a search module, configured to search for a matching second facial feature value and a beauty parameter in the network server by using the first facial feature value obtained by the terminal device;
    美颜模块,设置为根据所述查找模块查找到的第二人脸特征值对所第一人脸特征值对应的部分或全部人脸按照所述美颜参数进行美颜处理,进行所述美颜处理的人脸为所述第二人脸特征值对应的人脸。And the beauty module is configured to perform a beauty treatment on the part or all the faces corresponding to the first facial feature value according to the second facial feature value found by the searching module, and perform the beauty treatment according to the beauty parameter The face processed by the face is the face corresponding to the feature value of the second face.
  12. 根据权利要求11所述的美颜处理装置,其中,所述查找模块包括:发送单元,设置为将所述第一人脸特征值发送给所述网络服务器,所述第一人脸特征值用于指示所述网络服务器通过已存储的人脸特征值库与所述第一人脸特征值进行匹配;The beauty processing apparatus according to claim 11, wherein the searching module comprises: a sending unit, configured to send the first facial feature value to the web server, where the first facial feature value is used Instructing the network server to match the first facial feature value by using the stored facial feature value library;
    接收单元,设置为接收所述网络服务器发送的匹配结果,所述匹配结果包括所述第二人脸特征值和所述美颜参数,所述第二人脸特征值对应的人脸为所述第一人脸特征值对应的部分或全部人脸。 a receiving unit, configured to receive a matching result sent by the network server, where the matching result includes the second facial feature value and the facial parameter, and the face corresponding to the second facial feature value is the Part or all of the face corresponding to the first face feature value.
  13. 根据权利要求11所述的美颜处理装置,其中,所述美颜处理装置还包括:发送模块,设置为在所述查找模块通过所述第一人脸特征值在所述网络服务器中查找匹配的第二人脸特征值和美颜参数之前,将所述终端设备中的人脸特征值和美颜参数发送给所述网络服务器;The beauty processing apparatus according to claim 11, wherein the beauty processing apparatus further comprises: a transmitting module configured to search for a match in the web server by the first face feature value at the lookup module Transmitting the facial feature value and the beauty parameter in the terminal device to the network server before the second facial feature value and the beauty parameter;
    处理模块,设置为存储或删除所述终端设备中的人脸特征值和美颜参数。The processing module is configured to store or delete the facial feature value and the beauty parameter in the terminal device.
  14. 根据权利要求11~13中任一项所述的美颜处理装置,其中,所述查找模块,还设置为在通过所述第一人脸特征值在所述网络服务器中查找匹配的第二人脸特征值和美颜参数之前,通过所述第一人脸特征值在所述终端设备中查找匹配的第二人脸特征值和美颜参数;The beauty processing apparatus according to any one of claims 11 to 13, wherein the searching module is further configured to search for a matching second person in the web server by using the first facial feature value Before the face feature value and the beauty parameter, searching for the matching second face feature value and the beauty parameter in the terminal device by using the first face feature value;
    则所述查找模块设置为通过所述第一人脸特征值在所述网络服务器中查找匹配的第二人脸特征值和美颜参数,是指:当所述查找模块在所述终端设备中未查找到与所述第一人脸特征值匹配的第二人脸特征值时,在所述网络服务器中查找与所述第一人脸特征值匹配的第二人脸特征值和美颜参数。The searching module is configured to search for the matching second facial feature value and the beauty parameter in the network server by using the first facial feature value, that is, when the searching module is not in the terminal device When the second facial feature value matching the first facial feature value is found, the second facial feature value and the beauty parameter matching the first facial feature value are searched in the web server.
  15. 根据权利要求11~13中任一项所述的美颜处理装置,其中,所述发送模块,还设置为通过用户在所述终端设备上执行的操作,向所述网络服务器发送操作指令,所述操作指令用于指示所述网络服务器对所存储的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项。The beauty processing apparatus according to any one of claims 11 to 13, wherein the transmitting module is further configured to send an operation instruction to the network server by an operation performed by the user on the terminal device, The operation instruction is used to instruct the network server to perform one or more of adding, reading, updating and deleting the face feature value and the beauty parameter in the stored face feature value library.
  16. 一种美颜处理装置,包括:A beauty treatment device comprising:
    查找模块,设置为通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数;a searching module, configured to search for a matching second facial feature value and a beauty parameter by using a first facial feature value of the terminal device;
    发送模块,设置为将所述查找模块查找到的第二人脸特征值和所述美颜参数发送给所述终端设备,所述第二人脸特征值和所述美颜参数用于指示所述终端设备根据所述第二人脸特征值对所述第一人脸特征值对应的部分或全部人脸按照所述美颜参数进行美颜处理,进行所述美颜处理的人 脸为所述第二人脸特征值对应的人脸。a sending module, configured to send the second face feature value and the beauty parameter found by the searching module to the terminal device, where the second face feature value and the beauty parameter are used to indicate The terminal device performs a beauty treatment on the part or all the faces corresponding to the first facial feature value according to the second facial feature value according to the beauty parameter, and performs the beauty treatment The face is a face corresponding to the second face feature value.
  17. 根据权利要求16所述的美颜处理装置,其中,所述查找模块包括:接收单元,设置为接收所述终端设备发送的所述第一人脸特征值;The beauty processing device according to claim 16, wherein the searching module comprises: a receiving unit, configured to receive the first facial feature value sent by the terminal device;
    匹配单元,设置为通过已存储的人脸特征值库与所述接收单元接收的第一人脸特征值进行匹配,所匹配的结果包括所述第二人脸特征值和所述美颜参数,所述第二人脸特征值对应的人脸为所述第一人脸特征值对应的部分或全部人脸。a matching unit, configured to match, by using the stored face feature value library, the first face feature value received by the receiving unit, the matched result includes the second face feature value and the beauty parameter, The face corresponding to the second facial feature value is a part or all of the face corresponding to the first facial feature value.
  18. 根据权利要求16所述的美颜处理装置,其中,所述美颜处理装置还包括:接收模块,设置为在所述查找模块通过终端设备的第一人脸特征值查找匹配的第二人脸特征值和美颜参数之前,接收所述终端设备发送的人脸特征值和美颜参数。The beauty processing apparatus according to claim 16, wherein the beauty processing apparatus further comprises: a receiving module configured to search for a matching second face by the first module feature value of the terminal device by the searching module Before the feature value and the beauty parameter, the face feature value and the beauty parameter sent by the terminal device are received.
  19. 根据权利要求16~18中任一项所述的美颜处理装置,其中,所述接收模块,还设置为接收所述终端设备发送的操作指令;The beauty processing apparatus according to any one of claims 16 to 18, wherein the receiving module is further configured to receive an operation instruction sent by the terminal device;
    所述美颜处理装置还包括:处理模块,设置为根据所述接收模块接收的操作指令对所述网络服务器中的人脸特征值库中的人脸特征值和美颜参数进行增加、读取、更新和删除操作中的一项或多项;The beauty processing device further includes: a processing module configured to add, read, and read facial feature values and beauty parameters in the face feature value database in the network server according to the operation instruction received by the receiving module One or more of the update and delete operations;
    所述发送模块,还设置为向所述终端设备返回操作结果。The sending module is further configured to return an operation result to the terminal device.
  20. 根据权利要求16~18中任一项所述的美颜处理装置,其中,所述发送模块,还设置为向终端设备发送所述网络服务器中存储的人脸特征值和美颜参数,所述人脸特征值和所述美颜参数用于指示所述终端设备在进行美颜处理前,通过所述终端设备中存储的人脸特征值与待执行美颜处理的人脸对应的人脸特征值进行匹配。The beauty processing apparatus according to any one of claims 16 to 18, wherein the transmitting module is further configured to transmit, to the terminal device, a facial feature value and a beauty parameter stored in the network server, the person The face feature value and the beauty parameter are used to indicate that the terminal device uses the face feature value stored in the terminal device and the face feature value corresponding to the face to be executed by the face processing before performing the beauty process. Make a match.
  21. 一种终端设备,包括:摄像头、显示器和处理器,其中,所述处理器中设置有如权利要求11~15中任一项所述的美颜处理装置;A terminal device comprising: a camera, a display and a processor, wherein the processor is provided with the beauty treatment device according to any one of claims 11 to 15;
    所述摄像头,设置为拍照或摄像,并将拍摄图像中的人脸转化为人脸特征值; The camera is configured to take a picture or a camera, and convert a face in the captured image into a face feature value;
    所述显示器,设置为在拍照或摄像过程中显示实时拍摄图像,并在拍照或摄像完成后显示拍摄结果。 The display is configured to display a real-time captured image during photographing or photographing, and display the photographing result after the photographing or photographing is completed.
PCT/CN2016/108268 2016-01-04 2016-12-01 Facial beautification method, apparatus, and terminal device WO2017118250A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201610004706.4A CN106940880A (en) 2016-01-04 2016-01-04 A kind of U.S. face processing method, device and terminal device
CN201610004706.4 2016-01-04

Publications (1)

Publication Number Publication Date
WO2017118250A1 true WO2017118250A1 (en) 2017-07-13

Family

ID=59273217

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/108268 WO2017118250A1 (en) 2016-01-04 2016-12-01 Facial beautification method, apparatus, and terminal device

Country Status (2)

Country Link
CN (1) CN106940880A (en)
WO (1) WO2017118250A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109903249A (en) * 2019-01-29 2019-06-18 贾广袖 U.S. face processing method, storage equipment and mobile terminal based on face identification

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109288233A (en) * 2017-07-25 2019-02-01 丽宝大数据股份有限公司 It is signable to repair the biological information analytical equipment for holding region
CN107437269B (en) * 2017-08-03 2021-10-08 北京小米移动软件有限公司 Method and device for processing picture
CN107730442A (en) * 2017-10-16 2018-02-23 郑州云海信息技术有限公司 A kind of face U.S. face method and device
CN107844764B (en) * 2017-10-31 2020-05-12 Oppo广东移动通信有限公司 Image processing method, image processing device, electronic equipment and computer readable storage medium
CN108765273B (en) * 2018-05-31 2021-03-09 Oppo广东移动通信有限公司 Virtual face-lifting method and device for face photographing
CN111062260B (en) * 2019-11-25 2024-03-05 杭州绿度信息技术有限公司 Automatic generation method of face-beautifying recommendation scheme
CN111402154A (en) * 2020-03-10 2020-07-10 北京字节跳动网络技术有限公司 Image beautifying method and device, electronic equipment and computer readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010095120A1 (en) * 2009-02-23 2010-08-26 L'oreal A method of making up using an addressable matrix light source
CN103413270A (en) * 2013-08-15 2013-11-27 北京小米科技有限责任公司 Method and device for image processing and terminal device
CN103632165A (en) * 2013-11-28 2014-03-12 小米科技有限责任公司 Picture processing method, device and terminal equipment
CN104346136A (en) * 2013-07-24 2015-02-11 腾讯科技(深圳)有限公司 Method and device for picture processing
CN104574299A (en) * 2014-12-25 2015-04-29 小米科技有限责任公司 Face picture processing method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010095120A1 (en) * 2009-02-23 2010-08-26 L'oreal A method of making up using an addressable matrix light source
CN104346136A (en) * 2013-07-24 2015-02-11 腾讯科技(深圳)有限公司 Method and device for picture processing
CN103413270A (en) * 2013-08-15 2013-11-27 北京小米科技有限责任公司 Method and device for image processing and terminal device
CN103632165A (en) * 2013-11-28 2014-03-12 小米科技有限责任公司 Picture processing method, device and terminal equipment
CN104574299A (en) * 2014-12-25 2015-04-29 小米科技有限责任公司 Face picture processing method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109903249A (en) * 2019-01-29 2019-06-18 贾广袖 U.S. face processing method, storage equipment and mobile terminal based on face identification

Also Published As

Publication number Publication date
CN106940880A (en) 2017-07-11

Similar Documents

Publication Publication Date Title
WO2017118250A1 (en) Facial beautification method, apparatus, and terminal device
JP6878700B2 (en) Cross-blockchain authentication methods, devices, and electronic devices
EP3079082B1 (en) Method and apparatus for album display
WO2019174595A1 (en) Resource configuration method and apparatus, terminal, and storage medium
US10831823B2 (en) Photo distribution method and terminal
US10608988B2 (en) Method and apparatus for bluetooth-based identity recognition
WO2021196401A1 (en) Image reconstruction method and apparatus, electronic device and storage medium
US20190306163A1 (en) Method and device for information interaction and association between human biological feature data and account
JP6584186B2 (en) COMMUNICATION DEVICE, COMMUNICATION METHOD, AND PROGRAM
WO2022198853A1 (en) Task scheduling method and apparatus, electronic device, storage medium, and program product
RU2644511C2 (en) Method and device for displaying router configuration interface
KR101859433B1 (en) Method for processing of mosaic image and apparatus thereof
TW201516939A (en) Method and device for inquiring user identity, method and device for acquiring user identity, and method and device for adding friend in instant messaging
WO2019128568A1 (en) Content pushing method, apparatus and device
CN106992953A (en) System information acquisition method and device
KR20170033775A (en) Communication apparatus, method for controlling communication apparatus, and storage medium
WO2018133354A1 (en) Information acquisition method and acquisition device
CN110677682A (en) Live broadcast detection and data processing method, device, system and storage medium
WO2017219497A1 (en) Message generation method and apparatus
JP2017521803A (en) Image sharing method, apparatus, program, and recording medium
WO2021190625A1 (en) Image capture method and device
JP2017511089A (en) Method, apparatus, program and recording medium for accessing network
KR20200052673A (en) Apparatus and mehtod for communication between devices in close proximity in a wireless network
CN111338971A (en) Application testing method and device, electronic equipment and storage medium
WO2021227942A1 (en) Information sharing method, electronic devices and system

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16883376

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16883376

Country of ref document: EP

Kind code of ref document: A1