WO2019233256A1 - Human face sticker generating method and apparatus, readable storage medium and mobile terminal - Google Patents

Human face sticker generating method and apparatus, readable storage medium and mobile terminal Download PDF

Info

Publication number
WO2019233256A1
WO2019233256A1 PCT/CN2019/087073 CN2019087073W WO2019233256A1 WO 2019233256 A1 WO2019233256 A1 WO 2019233256A1 CN 2019087073 W CN2019087073 W CN 2019087073W WO 2019233256 A1 WO2019233256 A1 WO 2019233256A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
sample
texture
generating
image
Prior art date
Application number
PCT/CN2019/087073
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 WO2019233256A1 publication Critical patent/WO2019233256A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation

Definitions

  • the invention relates to the field of picture processing, in particular to a method, a device, a readable storage medium and a mobile terminal for generating a face map.
  • a face map generation method includes:
  • the final size and the coordinate information generate a configuration file of the texture image, wherein the name is used to find a corresponding sample image under a corresponding file directory.
  • the step of loading each of the sample pictures into a map editing interface and placing the sample picture at a corresponding position of the standard face image includes:
  • the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point
  • the method for generating a face map described above, wherein the acquiring attribute information of each of the sample pictures includes:
  • a target coordinate corresponding to a reference point for the sample picture is determined based on a correspondence table between different facial feature points and target coordinates.
  • each of the sample pictures is loaded into a map editing interface and placed in a corresponding position of the standard face image to generate a map picture before the step of generating a map picture.
  • the adjustment of the sample picture by the user includes at least one of the following processes:
  • the method further includes:
  • the sample picture and the configuration file are correspondingly stored in a texture picture database.
  • the method for generating a face map after the step of correspondingly storing the sample picture and the configuration file in a map picture database, the method further includes:
  • a current sample picture corresponding to the current texture picture is obtained, and the current sample picture is loaded according to a configuration file corresponding to the current texture picture To the current display interface.
  • the configuration file corresponding to the current texture picture further includes:
  • the method further includes:
  • the configuration file and the sample picture are correspondingly uploaded to a server, so that the server updates a map picture database.
  • An embodiment of the present invention further provides a device for generating a face map, including:
  • An acquisition and analysis module configured to acquire a standard face image in a map editing mode, and parse out multiple facial feature points in the standard face image
  • a first acquisition module configured to acquire a plurality of sample pictures selected by a user from a sample picture database, and respectively obtain a face feature point selected by the user for each of the sample pictures as a reference point;
  • a first generating module configured to load each of the sample pictures into a texture editing interface, and place the sample pictures in a corresponding position of the standard face image to generate a texture picture;
  • a second obtaining module configured to obtain a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, where , The name is used to find the corresponding sample picture under the corresponding file directory;
  • a second generating module is configured to generate a configuration file of the texture image according to the name, the final size, and the coordinate information.
  • the first generating module is configured to:
  • the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point
  • the first generating module is configured to:
  • the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point
  • the above-mentioned face map generating device further includes:
  • the third obtaining module is configured to obtain any one of the sample pictures adjusted by a user.
  • the adjustment of the sample picture by the user includes at least one of the following processes:
  • the above-mentioned face map generating device further includes:
  • the storage module is configured to correspondingly store the sample picture and the configuration file into a texture picture database.
  • the above-mentioned face map generating device further includes:
  • a display module configured to obtain a current sample picture corresponding to the current texture picture when a signal for a current texture picture selected by the user from the texture picture database is obtained, and to change all data according to a configuration file corresponding to the current texture picture The current sample picture is loaded into the current display interface.
  • the above-mentioned face map generating device further includes:
  • An adding module is configured to obtain a thumbnail of the current texture image reduced to a preset size, and add the thumbnail to the configuration file.
  • the above-mentioned face map generating device further includes:
  • the uploading module is configured to upload the configuration file and the sample picture to the server correspondingly, so that the server updates the texture picture database.
  • An embodiment of the present invention further provides a readable storage medium on which a program is stored, and when the program is executed by a processor, the steps of any one of the foregoing methods are implemented.
  • An embodiment of the present invention further provides a mobile terminal including a memory, a processor, and a program stored on the memory and executable on the processor.
  • a mobile terminal including a memory, a processor, and a program stored on the memory and executable on the processor.
  • the processor executes the program, the steps of any one of the foregoing methods are implemented.
  • the acquiring user selects multiple sample pictures from the sample picture database and adds them one by one to the texture editing interface.
  • the size and position of each image are adjusted to an appropriate position.
  • the image is saved and generated Face map profile. This method can facilitate users to produce some suitable online face map pictures according to their own preferences, which enriches the online face map resources of the camera application.
  • FIG. 1 is a flowchart of a method for generating a face map according to a first embodiment of the present invention
  • FIG. 2 is a flowchart of a method for generating a face map according to a second embodiment of the present invention
  • FIG. 3 is a flowchart of a method for generating a face map according to a third embodiment of the present invention.
  • FIG. 4 is a structural block diagram of a face map generating apparatus according to a third embodiment of the present invention.
  • FIG. 1 is a face map generation method according to a first embodiment of the present invention.
  • the method is applied to a mobile terminal, such as a mobile phone, a tablet computer, a wearable device, and the like.
  • the mobile terminal is equipped with a camera device and can take pictures or photographs in real time.
  • a user may start a texture editing mode of a camera application of a mobile terminal.
  • a user may edit a face texture online according to his / her preference, and may apply the texture instantly.
  • the method for generating a face map includes steps S11 to S14.
  • step S11 a standard face image is acquired in the texture editing mode, and a plurality of facial feature points in the standard face image are parsed.
  • a relatively standard front face photo is taken by the camera as a standard face image, or a picture is selected from a locally stored picture as a standard face image.
  • the existing face recognition technology is adopted to recognize the obtained standard face image and obtain facial feature points, such as eyes, nose, mouth, ears, eyebrows, etc.
  • the facial feature points can be extracted using any facial feature extraction algorithm in the prior art, such as a statistical method or a neural network-based method.
  • step S12 a plurality of sample pictures selected by the user from the sample picture database are obtained, and a face feature point selected by the user for each of the sample pictures is obtained as a reference point.
  • the sample picture database is stored in the mobile terminal in advance, and a plurality of pictures are stored therein.
  • the pictures in the sample picture database may be pictures downloaded by users from network resources in advance, or pictures taken by users themselves.
  • the types of pictures in the sample picture database include, but are not limited to, decorations (such as glasses, hair bands, ties, etc. of different colors and shapes), animal images, and word art.
  • the user selects multiple sample pictures from the sample picture database according to preferences, and determines a face feature point as a reference point for each selected sample picture. For example, the user selects a sample picture of glasses and a sample picture of hair bands, and specifies the eye and head contours in the standard face image as the reference points of the two sample pictures, respectively. The selection of the reference point facilitates automatic positioning when subsequent use of the texture image. Understandably, the user may select different reference points for multiple sample pictures, or select the same reference point, which is not limited here.
  • step S13 each of the sample pictures is loaded into a texture editing interface and placed in a corresponding position of the standard face image to generate a texture picture.
  • the sample pictures selected by the user are sequentially loaded into the texture editing interface and displayed on the upper layer of the standard face image.
  • the position of the sample picture loaded on the texture editing interface can be determined according to either of the following two methods.
  • the first way is:
  • the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point
  • the size of the sample pictures in the sample picture database is variable, which may be too large or too small compared to the standard face image.
  • each sample picture is preset with a standard size, and the standard size can be determined according to a preset size ratio corresponding to the standard face image and the sample picture. For example, if the preset size ratio of the sample picture to the standard face image is 0.5: 1, the standard size of the sample image is determined to be half of the standard face image size according to the preset size ratio.
  • the target coordinate position of the sample picture is set in advance, that is, the target coordinate relative to the corresponding reference point.
  • a correspondence table of each face feature point and target coordinates is pre-stored in the mobile terminal.
  • the value of the target coordinate corresponding to the reference point may be queried. For example, if the sample picture selected by the user is the eye, and the corresponding reference point is the eye, then the target coordinates corresponding to the eye are queried, and the selected sample picture is displayed on the target coordinates.
  • the second way is:
  • the user can enlarge or reduce the currently selected sample picture in the texture editing interface, and drag it to a desired position.
  • the first method does not require the user to adjust the picture, which simplifies the user's operation and is more intelligent.
  • the second method the user can adjust the size and position of the sample picture more intuitively. Understandably, the above two methods can be used in combination.
  • Step S14 obtaining a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, and according to the name ,
  • the final size and the coordinate information generate a configuration file of the texture image, wherein the name is used to find a corresponding sample image under a corresponding file directory.
  • the final size of the sample picture is the size of the texture picture, which may be equal to the size of the original sample picture, or may be larger or smaller than the size of the original sample picture.
  • the coordinate information of the sample picture with respect to the corresponding reference point that is, the coordinates of the position of the center of the sample picture when the corresponding reference point is the origin.
  • the user can use the generated texture image to map the photographed image in real time.
  • the mobile terminal obtains the configuration file, finds a corresponding sample image under the corresponding file directory according to the name of the texture, and then adjusts the size of the sample image according to the final size.
  • the coordinate information of the corresponding reference point adjusts the position of the sample picture to complete the mapping of the picture.
  • the acquisition user selects multiple sample pictures from the sample picture database and adds them one by one to the texture editing interface.
  • the size and position of each image are adjusted to a suitable position. After the adjustment is completed, the person is saved and generated.
  • Face map profile This method can facilitate users to produce some suitable online face map pictures according to their own preferences, which enriches the online face map resources of the camera application.
  • FIG. 2 is a face map image generating method in a second embodiment of the present invention, including steps S21 to S28.
  • step S21 a standard face image is acquired in the map editing mode, and a plurality of facial feature points in the standard face image are parsed.
  • the standard face image may be obtained from an image stored locally on the mobile terminal, or may be obtained by taking a picture with a camera.
  • the recognition of the facial feature points can be obtained by analyzing the facial recognition technology in the prior art, which will not be repeated here.
  • step S22 a plurality of sample pictures selected by the user from the sample picture database are obtained, and a face feature point selected by the user for each of the sample pictures is obtained as a reference point.
  • the user When the user starts the texture editing mode, he can open the sample image database to select more than two sample images, and specify a face feature point as a reference point for each selected sample image.
  • the reference point can be used to determine the position coordinates of the corresponding sample picture.
  • the selected multiple sample pictures may respectively correspond to different reference points or the same reference point, which is not limited herein.
  • Step S23 Acquire attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point.
  • step S24 each of the sample pictures is adjusted to the target size and loaded to the position of the target coordinate in the texture editing interface.
  • the target size of the sample picture is determined according to the preset size ratio of the sample picture and the standard face image, and the preset ratio of each sample picture and the standard face image is stored in the mobile terminal in advance.
  • the size of the standard face image can be obtained at the same time.
  • the target size of the sample picture can be calculated according to the ratio of the sample picture to the standard face, and then the sample picture is adjusted to the size of the target size.
  • the preset standard size ratio corresponding to different sample pictures may be different.
  • the preset size ratio of the sample picture of glasses and the standard face image is 0.8: 1
  • the preset ratio of the sample picture of the animal image and the face image Set the size ratio to 1: 1.
  • the target coordinates of the sample picture relative to the reference point are the coordinates of the center of the sample picture when the reference point is used as the origin.
  • a correspondence relationship between each face feature point and target coordinates is pre-stored in the mobile terminal.
  • the mobile terminal may query the target coordinates corresponding to the reference point.
  • the adjusted sample picture is displayed at the position of the target coordinate.
  • Step S25 Obtain any one of the sample pictures adjusted by the user.
  • the adjustment of the sample picture by the user includes at least one of the following processes:
  • Step S26 Acquire a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, and according to the name , The final size, and the coordinate information to generate a configuration file of the texture image.
  • the name of the texture image is used to find the corresponding sample image under the corresponding file directory.
  • the final size of the sample picture is the adjusted size, which may be equal to the size of the original sample picture, or may be larger or smaller than the size of the original sample picture.
  • the coordinate information of the sample picture with respect to the corresponding reference point is the coordinate of the position of the center of the sample picture with respect to the origin when the corresponding reference point is used as the origin.
  • step S27 the sample picture and the configuration file are correspondingly stored in a texture picture database.
  • the corresponding sample image and configuration file can be packaged and stored in the texture image database, so that it can be recalled later.
  • step S28 when a signal of the current texture picture selected by the user for the texture picture database is obtained, the current sample picture corresponding to the current texture picture is obtained, and the information in the configuration file corresponding to the current texture picture is obtained based on The current sample picture is loaded into a current display interface.
  • the texture picture can be selected in the texture picture database and called.
  • the mobile terminal receives the signal to call the texture image, it finds the corresponding current sample image under the corresponding file directory according to the name of the texture recorded in the corresponding configuration file, and adjusts the size of the current sample image according to the final size in the configuration file. , And adjusting the position of the current sample picture according to the coordinate information of the current sample picture relative to the corresponding reference point, the image mapping can be completed.
  • step S28 the following steps are further included:
  • the generated texture image is reduced to a preset size to form a thumbnail image and added to the configuration file.
  • the user can select a sticker image according to the thumbnail, which is convenient and fast.
  • the user selects multiple sample pictures from the sample picture database, and selects appropriate facial feature points as a reference point. After each sample picture is scaled according to the preset target size, it is added to the target coordinate position on the texture editing interface one by one.
  • the user can edit the sample picture on the texture editing interface according to actual needs, such as resizing or adjusting the position of the sample picture center from the reference point. In this way, the face map is adjusted one by one, and a face map configuration file is generated after the adjustment is completed.
  • the map picture edited by the user is loaded onto the currently photographed image.
  • FIG. 3 is a face mapping method according to a third embodiment of the present invention.
  • the method further includes step S31 on the basis of the second embodiment.
  • step S31 the configuration file and the sample picture are correspondingly uploaded to the server, so that the server updates the texture picture database.
  • the user packages and uploads the sample pictures and configuration files corresponding to the generated face maps on the corresponding server through the camera application.
  • the background management staff receives the face map resource package uploaded by the user, it is reviewed in the background. If the review is passed, it will be placed on the online face resource download page for users to download. Pass, you can upload again after modification. After the review is passed, the background management staff places the approved face texture resource pack on a remote server for download by other users.
  • the mobile terminal updates the version of the texture image database in real time through the remote service.
  • the mobile terminal determines whether the texture image resource library is updated according to the version number of the face texture configuration file. If the version number of the current software is greater than or equal to the version number of the texture texture file, the texture image resource library is updated.
  • FIG. 4 is a face map generating device according to a third embodiment of the present invention, including:
  • An acquisition and analysis module 10 configured to acquire a standard face image in a map editing mode, and parse out a plurality of facial feature points in the standard face image;
  • a first obtaining module 20 configured to obtain a plurality of sample pictures selected by a user from a sample picture database, and respectively obtain a face feature point selected by the user for each of the sample pictures as a reference point;
  • a first generating module 30, configured to load each of the sample pictures into a texture editing interface and place the sample pictures in corresponding positions of the standard face image to generate a texture picture;
  • a second obtaining module 40 configured to obtain a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, The name is used to find the corresponding sample picture under the corresponding file directory;
  • the second generating module 50 is configured to generate a configuration file of the texture image according to the name, the final size, and the coordinate information.
  • the first generating module 30 is configured to:
  • the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point
  • the above-mentioned face map generating device further includes:
  • the third obtaining module 60 is configured to obtain any one of the sample pictures adjusted by a user.
  • the adjustment of the sample picture by the user includes at least one of the following processes:
  • the above-mentioned face map generating device further includes:
  • the storage module 70 is configured to correspondingly store the sample picture and the configuration file in a texture picture database.
  • the above-mentioned face map generating device further includes:
  • a display module 80 is configured to obtain a current sample picture corresponding to the current texture picture when a signal for a current texture picture selected by the user in the texture picture database is obtained, and to change the current sample picture corresponding to the current texture picture The current sample picture is loaded into a current display interface.
  • the above-mentioned face map generating device further includes:
  • the uploading module 90 is configured to upload the configuration file and the sample picture to the server correspondingly, so that the server updates the texture picture database.
  • the face map generating device provided by the embodiment of the present invention has the same implementation principle and technical effect as the foregoing method embodiments.
  • the parts not mentioned in the device embodiments can be referred to the corresponding method embodiments. content.
  • An embodiment of the present invention further provides a readable storage medium on which a computer program is stored, and when the program is executed by a processor, the foregoing method for generating a face map is implemented.
  • An embodiment of the present invention further provides a mobile terminal, including a memory, a processor, and a program stored on the memory and executable on the processor.
  • a mobile terminal including a memory, a processor, and a program stored on the memory and executable on the processor.
  • the processor executes the program, the foregoing method for generating a face map is implemented.
  • a sequenced list of executable instructions that can be considered to implement a logical function can be embodied in any computer-readable medium, For instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from and execute instructions) Or equipment.
  • a "computer-readable medium” may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
  • computer readable media include the following: electrical connections (electronic devices) with one or more wirings, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM).
  • the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
  • each part of the present invention may be implemented by hardware, software, firmware, or a combination thereof.
  • multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system.
  • a suitable instruction execution system For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
  • a method for generating a face map including:
  • the final size and the coordinate information generate a configuration file of the texture image, wherein the name is used to find a corresponding sample image under a corresponding file directory.
  • A2 The method for generating a face map according to A1, wherein the step of loading each of the sample pictures into a map editing interface and placing the sample pictures in a corresponding position of the standard face image includes:
  • the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point
  • A3 The method for generating a face map according to A1, wherein each of the sample pictures is loaded into a map editing interface and placed in a corresponding position of the standard face image to generate a map picture Also includes:
  • A4 The method for generating a face map according to A3, wherein the adjustment of the sample picture by the user includes at least one of the following processes:
  • A5 The method for generating a face map according to A1, after the step of generating a configuration file of the map picture according to the name, the final size, and the coordinate information, further comprising:
  • the sample picture and the configuration file are correspondingly stored in a texture picture database.
  • A6 The method for generating a face map according to A5, after the step of correspondingly storing the sample picture and the configuration file in a map picture database, further comprising:
  • a current sample picture corresponding to the current texture picture is obtained, and the current sample picture is loaded according to a configuration file corresponding to the current texture picture To the current display interface.
  • the configuration file and the sample picture are correspondingly uploaded to a server, so that the server updates a map picture database.
  • a face map generating device comprising:
  • An acquisition and analysis module configured to acquire a standard face image in a map editing mode, and parse out multiple facial feature points in the standard face image
  • a first acquisition module configured to acquire a plurality of sample pictures selected by a user from a sample picture database, and respectively obtain a face feature point selected by the user for each of the sample pictures as a reference point;
  • a first generating module configured to load each of the sample pictures into a texture editing interface, and place the sample pictures in a corresponding position of the standard face image to generate a texture picture;
  • a second obtaining module configured to obtain a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, where , The name is used to find the corresponding sample picture under the corresponding file directory;
  • a second generating module is configured to generate a configuration file of the texture image according to the name, the final size, and the coordinate information.
  • the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point
  • the third obtaining module is configured to obtain any one of the sample pictures adjusted by a user.
  • the face map generating device further comprising:
  • the storage module is configured to correspondingly store the sample picture and the configuration file into a texture picture database.
  • the face map generating device according to B12 further comprising:
  • a display module configured to obtain a current sample picture corresponding to the current texture picture when a signal for a current texture picture selected by the user from the texture picture database is obtained, and to change all data according to a configuration file corresponding to the current texture picture The current sample picture is loaded into the current display interface.
  • the uploading module is configured to upload the configuration file and the sample picture to the server correspondingly, so that the server updates the texture picture database.
  • a readable storage medium having stored thereon a program which, when executed by a processor, implements the method of any one of A1 to A7.
  • a mobile terminal comprising a memory, a processor, and a program stored on the memory and executable on the processor.
  • the processor executes the program, the method according to any one of A1 to A7 is implemented.

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

A human face sticker generating method and apparatus, a readable storage medium and a mobile terminal, the method comprising: acquiring a standard human face image in a sticker editing mode, and parsing the image to obtain a plurality of human face feature points in the standard human face image (S11); acquiring a plurality of sample images selected by a user from a sample image database, and acquiring one human face feature point selected by the user for each sample image respectively to serve as a reference point (S12); loading each sample image into a sticker editing interface, and placing the sample image at a corresponding position of the standard human face image, so as to generate a sticker image (S13); and acquiring a name for each sticker image, the final size of each sample image, a correspondence between each sample image and the reference point, and coordinate information relative to the corresponding reference point, and generating a configuration file of the sticker image according to the name, the final size and the coordinate information (S14).

Description

人脸贴图生成方法、装置、可读存储介质及移动终端Face map generating method, device, readable storage medium and mobile terminal 【技术领域】[Technical Field]
本发明涉及图片处理领域,特别是涉及一种人脸贴图生成方法、装置、可读存储介质及移动终端。The invention relates to the field of picture processing, in particular to a method, a device, a readable storage medium and a mobile terminal for generating a face map.
【背景技术】【Background technique】
随着电子技术的不断发展,智能终端设备,例如手机、平板电脑等逐渐成为人们与外界沟通及个人资源管理的重要工具,为人们的生活带来了许多便利。With the continuous development of electronic technology, smart terminal devices such as mobile phones and tablet computers have gradually become important tools for people to communicate with the outside world and personal resource management, bringing many conveniences to people's lives.
智能终端的功能多样化使得越来越多的应用安装,其中,照相机是智能终端上的重要应用。大多数智能终端都具备拍照功能,为人们的生活带来了极大的便利和乐趣,人们对移动端的相机也越来越依赖。相机应用中的在线人脸贴图也非常受人们欢迎,但是人脸贴图资源只能在服务器上下载,用户不能通过在线编辑人脸贴图资源来定制一些个性化的人脸贴图,缺乏与用户的互动性。The diversification of the functions of smart terminals makes more and more applications installed. Among them, the camera is an important application on smart terminals. Most smart terminals have a camera function, which brings great convenience and fun to people's lives, and people are increasingly relying on mobile cameras. The online face maps in the camera application are also very popular, but the face map resources can only be downloaded on the server, and users cannot customize some personalized face maps by editing the face map resources online, lacking interaction with the user Sex.
【发明内容】[Summary of the Invention]
鉴于上述状况,有必要针对现有技术中用户无法根据自己喜好定制人脸贴图图片的问题,提供一种人脸贴图生成方法、装置、可读存储介质及移动终端。In view of the foregoing, it is necessary to provide a method, a device, a readable storage medium, and a mobile terminal for generating a face map in response to a problem that users cannot customize a face map picture according to their own preferences in the prior art.
一种人脸贴图生成方法,包括:A face map generation method includes:
在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点;Acquiring a standard face image in a map editing mode, and parsing out multiple facial feature points in the standard face image;
获取用户从样本图片数据库中选择的多个样本图片,以及分别获取用户针对每个所述样本图片选择的一所述人脸特征点以作为基准点;Acquiring a plurality of sample pictures selected by the user from the sample picture database, and separately acquiring one of the facial feature points selected by the user for each of the sample pictures as a reference point;
将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片;Loading each of the sample pictures into a texture editing interface and placing them in corresponding positions of the standard face image to generate a texture picture;
获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,并根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件,其中,所述名称用于在对应的文件目录下面找到对应的样本图片。Obtaining the name of the texture picture, the final size of each of the sample pictures, and the correspondence between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, and according to the name, the The final size and the coordinate information generate a configuration file of the texture image, wherein the name is used to find a corresponding sample image under a corresponding file directory.
进一步的,上述人脸贴图生成方法,其中,所述将每个所述样本图片加载 至贴图编辑界面中,并置于所述标准人脸图像的对应位置的步骤包括:Further, in the above method for generating a face map, wherein the step of loading each of the sample pictures into a map editing interface and placing the sample picture at a corresponding position of the standard face image includes:
获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
进一步的,上述人脸贴图生成方法,其中,所述获取每个所述样本图片的属性信息,包括:Further, the method for generating a face map described above, wherein the acquiring attribute information of each of the sample pictures includes:
按照所述标准人脸图像与所述样本图片对应的预设尺寸比例,确定所述样本图片的目标尺寸;和/或Determining a target size of the sample picture according to a preset size ratio corresponding to the standard face image and the sample picture; and / or
基于不同人脸特征点和目标坐标之间的对应关系表,确定针对所述样本图片的基准点对应的目标坐标。A target coordinate corresponding to a reference point for the sample picture is determined based on a correspondence table between different facial feature points and target coordinates.
进一步的,上述人脸贴图生成方法,其中,所述将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片的步骤之前还包括:Further, in the above method for generating a face map, wherein each of the sample pictures is loaded into a map editing interface and placed in a corresponding position of the standard face image to generate a map picture before the step of generating a map picture. include:
获取用户调整后的任意一所述样本图片。Obtain any one of the sample pictures adjusted by the user.
进一步的,上述人脸贴图生成方法,其中,用户对所述样本图片的调整包括下述过程中的至少一种:Further, in the above method for generating a face map, the adjustment of the sample picture by the user includes at least one of the following processes:
放大或缩小所述样本图片;Enlarge or reduce the sample picture;
移动所述样本图片的位置。Move the position of the sample picture.
进一步的,上述人脸贴图生成方法,其中,所述根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件的步骤之后还包括:Further, in the method for generating a face map, after the step of generating a configuration file of the map picture according to the name, the final size, and the coordinate information, the method further includes:
将所述样本图片和所述配置文件对应存储至贴图图片数据库中。The sample picture and the configuration file are correspondingly stored in a texture picture database.
进一步的,上述人脸贴图生成方法,其中,所述将所述样本图片和所述配置文件对应存储至贴图图片数据库中的步骤之后还包括:Further, in the method for generating a face map, after the step of correspondingly storing the sample picture and the configuration file in a map picture database, the method further includes:
当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图片加载至当前显示界面中。When a signal from a user for the current texture picture selected in the texture picture database is obtained, a current sample picture corresponding to the current texture picture is obtained, and the current sample picture is loaded according to a configuration file corresponding to the current texture picture To the current display interface.
进一步的,上述人脸贴图生成方法,其中,在所述当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图 片加载至当前显示界面中之后,还包括:Further, in the above-mentioned face texture generating method, when a signal of a current texture picture selected by the user for the texture picture database is obtained, a current sample picture corresponding to the current texture picture is obtained, and After loading the current sample picture into the current display interface, the configuration file corresponding to the current texture picture further includes:
获取所述当前贴图图片缩小至预设尺寸的缩略图;Obtaining a thumbnail of the current texture picture reduced to a preset size;
将所述缩略图添加至所述配置文件中。Adding the thumbnail to the profile.
进一步的,上述人脸贴图生成方法,其中,所述根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件的步骤之后还包括:Further, in the method for generating a face map, after the step of generating a configuration file of the map picture according to the name, the final size, and the coordinate information, the method further includes:
将所述配置文件和所述样本图片对应上传至服务器中,以使所述服务器更新贴图图片数据库。The configuration file and the sample picture are correspondingly uploaded to a server, so that the server updates a map picture database.
本发明实施例还提供了一种人脸贴图生成装置,包括:An embodiment of the present invention further provides a device for generating a face map, including:
获取及解析模块,用于在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点;An acquisition and analysis module, configured to acquire a standard face image in a map editing mode, and parse out multiple facial feature points in the standard face image;
第一获取模块,用于获取用户从样本图片数据库中选择的多个样本图片,以及分别获取用户针对每个所述样本图片选择的一所述人脸特征点以作为基准点;A first acquisition module, configured to acquire a plurality of sample pictures selected by a user from a sample picture database, and respectively obtain a face feature point selected by the user for each of the sample pictures as a reference point;
第一生成模块,用于将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片;A first generating module, configured to load each of the sample pictures into a texture editing interface, and place the sample pictures in a corresponding position of the standard face image to generate a texture picture;
第二获取模块,用于获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,其中,所述名称用于在对应的文件目录下面找到对应的样本图片;A second obtaining module, configured to obtain a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, where , The name is used to find the corresponding sample picture under the corresponding file directory;
第二生成模块,用于根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件。A second generating module is configured to generate a configuration file of the texture image according to the name, the final size, and the coordinate information.
进一步的,上述人脸贴图生成装置,其中,所述第一生成模块用于:Further, in the above device for generating a face map, the first generating module is configured to:
获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
进一步的,上述人脸贴图生成装置,其中,所述第一生成模块用于:Further, in the above device for generating a face map, the first generating module is configured to:
获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
进一步的,上述人脸贴图生成装置,还包括:Further, the above-mentioned face map generating device further includes:
第三获取模块,用于获取用户调整后的任意一所述样本图片。The third obtaining module is configured to obtain any one of the sample pictures adjusted by a user.
进一步的,上述人脸贴图生成装置,其中,用户对所述样本图片的调整包括下述过程中的至少一种:Further, in the above-mentioned face map generating device, the adjustment of the sample picture by the user includes at least one of the following processes:
放大或缩小所述样本图片;Enlarge or reduce the sample picture;
移动所述样本图片的位置。Move the position of the sample picture.
进一步的,上述人脸贴图生成装置,还包括:Further, the above-mentioned face map generating device further includes:
存储模块,用于将所述样本图片和所述配置文件对应存储至贴图图片数据库中。The storage module is configured to correspondingly store the sample picture and the configuration file into a texture picture database.
进一步的,上述人脸贴图生成装置,还包括:Further, the above-mentioned face map generating device further includes:
显示模块,用于当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图片加载至当前显示界面中。A display module, configured to obtain a current sample picture corresponding to the current texture picture when a signal for a current texture picture selected by the user from the texture picture database is obtained, and to change all data according to a configuration file corresponding to the current texture picture The current sample picture is loaded into the current display interface.
进一步的,上述人脸贴图生成装置,其中,还包括:Further, the above-mentioned face map generating device further includes:
添加模块,用于获取所述当前贴图图片缩小至预设尺寸的缩略图,将所述缩略图添加至所述配置文件中。An adding module is configured to obtain a thumbnail of the current texture image reduced to a preset size, and add the thumbnail to the configuration file.
进一步的,上述人脸贴图生成装置,还包括:Further, the above-mentioned face map generating device further includes:
上传模块,用于将所述配置文件和所述样本图片对应上传至服务器中,以使所述服务器更新贴图图片数据库。The uploading module is configured to upload the configuration file and the sample picture to the server correspondingly, so that the server updates the texture picture database.
本发明实施例还提供了一种可读存储介质,其上存储有程序,所述程序被处理器执行时实现上述任意一方法的步骤。An embodiment of the present invention further provides a readable storage medium on which a program is stored, and when the program is executed by a processor, the steps of any one of the foregoing methods are implemented.
本发明实施例还提供了一种移动终端,包括存储器、处理器以及存储在存储器上并可在处理器上运行的程序,所述处理器执行所述程序时实现上述任意一方法的步骤。An embodiment of the present invention further provides a mobile terminal including a memory, a processor, and a program stored on the memory and executable on the processor. When the processor executes the program, the steps of any one of the foregoing methods are implemented.
本发明实施例中,获取用户从样本图片数据库选择多个样本图片,并逐张加入到贴图编辑界面,在编辑界面调整每张图片的大小和位置到合适的位置,调整完成以后,保存并生成人脸贴图配置文件。该方法可以方便用户根据自己的喜好制作生成一些合适的在线人脸贴图图片,丰富了相机应用的在线人脸贴图资源。In the embodiment of the present invention, the acquiring user selects multiple sample pictures from the sample picture database and adds them one by one to the texture editing interface. In the editing interface, the size and position of each image are adjusted to an appropriate position. After the adjustment is completed, the image is saved and generated Face map profile. This method can facilitate users to produce some suitable online face map pictures according to their own preferences, which enriches the online face map resources of the camera application.
【附图说明】[Brief Description of the Drawings]
图1为本发明第一实施例提供的人脸贴图生成方法的流程图;FIG. 1 is a flowchart of a method for generating a face map according to a first embodiment of the present invention; FIG.
图2为本发明第二实施例提供的人脸贴图生成方法的流程图;2 is a flowchart of a method for generating a face map according to a second embodiment of the present invention;
图3为本发明第三实施例提供的人脸贴图生成方法的流程图;3 is a flowchart of a method for generating a face map according to a third embodiment of the present invention;
图4为本发明第三实施例提供的人脸贴图生成装置的结构框图。FIG. 4 is a structural block diagram of a face map generating apparatus according to a third embodiment of the present invention.
【具体实施方式】【Detailed ways】
下面详细描述本发明的实施例,所述实施例的示例在附图中示出,其中自始至终相同或类似的标号表示相同或类似的元件或具有相同或类似功能的元件。下面通过参考附图描述的实施例是示例性的,仅用于解释本发明,而不能理解为对本发明的限制。Hereinafter, embodiments of the present invention will be described in detail. Examples of the embodiments are shown in the drawings, wherein the same or similar reference numerals indicate the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the drawings are exemplary, and are only used to explain the present invention, and should not be construed as limiting the present invention.
参照下面的描述和附图,将清楚本发明的实施例的这些和其他方面。在这些描述和附图中,具体公开了本发明的实施例中的一些特定实施方式,来表示实施本发明的实施例的原理的一些方式,但是应当理解,本发明的实施例的范围不受此限制。相反,本发明的实施例包括落入所附加权利要求书的精神和内涵范围内的所有变化、修改和等同物。These and other aspects of embodiments of the invention will be apparent with reference to the following description and drawings. In these descriptions and drawings, some specific implementations of the embodiments of the present invention are specifically disclosed to represent some ways of implementing the principles of the embodiments of the present invention, but it should be understood that the scope of the embodiments of the present invention is not limited by This limitation. On the contrary, the embodiments of the present invention include all changes, modifications, and equivalents falling within the spirit and scope of the appended claims.
请参阅图1,为本发明第一实施例中的人脸贴图生成方法,该方法应用于移动终端中,该移动终端例如手机、平板电脑、可穿戴设备等。该移动终端装配有相机设备,可实时进行拍照或摄影。本实施例中,用户可启动移动终端相机应用的贴图编辑模式,在该贴图编辑模式下用户可根据自己的喜好在线编辑人脸贴图,并可即时应用。该人脸贴图生成方法包括步骤S11~S14。Please refer to FIG. 1, which is a face map generation method according to a first embodiment of the present invention. The method is applied to a mobile terminal, such as a mobile phone, a tablet computer, a wearable device, and the like. The mobile terminal is equipped with a camera device and can take pictures or photographs in real time. In this embodiment, a user may start a texture editing mode of a camera application of a mobile terminal. In this texture editing mode, a user may edit a face texture online according to his / her preference, and may apply the texture instantly. The method for generating a face map includes steps S11 to S14.
步骤S11,在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点。In step S11, a standard face image is acquired in the texture editing mode, and a plurality of facial feature points in the standard face image are parsed.
具体的,在贴图编辑模式下,通过相机拍摄一张比较标准的正面人脸照片作为标准人脸图像,或从本地存储的图片中选择一张图片作为标准人脸图像。并采用现有的人脸识别技术对获取的标准人脸图像进行识别,获取人脸特征点,该人脸特征点例如眼睛、鼻子、嘴巴、耳朵、眉毛等。人脸特征点的提取可采用现有技术中的任意一种人脸特征提取算法,例如基于统计方法或基于神经网络的方法。Specifically, in the texture editing mode, a relatively standard front face photo is taken by the camera as a standard face image, or a picture is selected from a locally stored picture as a standard face image. The existing face recognition technology is adopted to recognize the obtained standard face image and obtain facial feature points, such as eyes, nose, mouth, ears, eyebrows, etc. The facial feature points can be extracted using any facial feature extraction algorithm in the prior art, such as a statistical method or a neural network-based method.
步骤S12,获取用户从样本图片数据库中选择的多个样本图片,以及分别获 取用户针对每个所述样本图片选择的一人脸特征点以作为基准点。In step S12, a plurality of sample pictures selected by the user from the sample picture database are obtained, and a face feature point selected by the user for each of the sample pictures is obtained as a reference point.
该样本图片数据库预先存储于移动终端中,其中存储有多个图片。该样本图片数据库中的图片可以是用户预先从网络资源中下载的图片,也可以是用户自行拍摄的图片。样本图片数据库中的图片类型包括但不限于装饰品(例如不同颜色、形状的眼镜、发带、领带等)、动物图像和艺术字。用户根据喜好从样本图片数据库中选择多个样本图片,并针对选择的每个样本图片确定一个人脸特征点作为基准点。例如,用户选择一个眼镜的样本图片和一个发带的样本图片,并指定标准人脸图像中的眼睛和头部轮廓分别作为两个样本图片的基准点。该基准点的选择便于后续使用贴图图片时自动定位。可以理解的用户可以针对多个样本图片选择不同的基准点,也可以选择相同的基准点,此处不予限定。The sample picture database is stored in the mobile terminal in advance, and a plurality of pictures are stored therein. The pictures in the sample picture database may be pictures downloaded by users from network resources in advance, or pictures taken by users themselves. The types of pictures in the sample picture database include, but are not limited to, decorations (such as glasses, hair bands, ties, etc. of different colors and shapes), animal images, and word art. The user selects multiple sample pictures from the sample picture database according to preferences, and determines a face feature point as a reference point for each selected sample picture. For example, the user selects a sample picture of glasses and a sample picture of hair bands, and specifies the eye and head contours in the standard face image as the reference points of the two sample pictures, respectively. The selection of the reference point facilitates automatic positioning when subsequent use of the texture image. Understandably, the user may select different reference points for multiple sample pictures, or select the same reference point, which is not limited here.
步骤S13,将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片。In step S13, each of the sample pictures is loaded into a texture editing interface and placed in a corresponding position of the standard face image to generate a texture picture.
将用户选择的样本图片依次加载至贴图编辑界面中,并显示在标准人脸图像的上层。加载至贴图编辑界面上的样本图片的位置可以根据下述两种方式中的任意一种进行确定。The sample pictures selected by the user are sequentially loaded into the texture editing interface and displayed on the upper layer of the standard face image. The position of the sample picture loaded on the texture editing interface can be determined according to either of the following two methods.
第一种方式为:The first way is:
获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
该方式中,样本图片数据库中的样本图片尺寸不定,其可能相对于标准人脸图像过大或过小。为了方便用户操作,每个样本图片预先设置有标准尺寸,该标准尺寸可根据标准人脸图像和样本图片对应的预设尺寸比例进行确定。例如,一样本图片与标准人脸图像的预设尺寸比例为0.5:1,则根据该预设尺寸比例确定该样本图像的标准尺寸为标准人脸图像尺寸的一半。加载样本图片时,先将该样本图片缩小一半后,在贴图编辑界面上的目标坐标的位置进行显示。In this method, the size of the sample pictures in the sample picture database is variable, which may be too large or too small compared to the standard face image. In order to facilitate user operation, each sample picture is preset with a standard size, and the standard size can be determined according to a preset size ratio corresponding to the standard face image and the sample picture. For example, if the preset size ratio of the sample picture to the standard face image is 0.5: 1, the standard size of the sample image is determined to be half of the standard face image size according to the preset size ratio. When loading a sample picture, first reduce the sample picture by half and display it at the position of the target coordinates on the texture editing interface.
其中,样本图片的目标坐标位置为预先设置的,即为相对于对应的基准点的目标坐标。具体实施时,移动终端中预存有每个人脸特征点和目标坐标的对应关系表,当用户确定了一个人脸特征点作为基准点时,可查询该基准点对应的目标坐标的值。例如,用户选择的一样本图片为眼睛,对应的基准点为眼睛, 则查询眼睛对应的目标坐标,则将该选择的样本图片显示在该目标坐标上。The target coordinate position of the sample picture is set in advance, that is, the target coordinate relative to the corresponding reference point. In specific implementation, a correspondence table of each face feature point and target coordinates is pre-stored in the mobile terminal. When the user determines a face feature point as a reference point, the value of the target coordinate corresponding to the reference point may be queried. For example, if the sample picture selected by the user is the eye, and the corresponding reference point is the eye, then the target coordinates corresponding to the eye are queried, and the selected sample picture is displayed on the target coordinates.
第二种方式为:The second way is:
用户在贴图编辑界面中将当前选择的样本图片进行放大或缩小,并拖动至需要的位置。The user can enlarge or reduce the currently selected sample picture in the texture editing interface, and drag it to a desired position.
第一种方式中无需用户进行图片的调整,简化了用户的操作,更加智能化。第二种方式中,用户自行调节,其对样本图片的大小、位置的调整更为直观。可以理解的,上述两种方式可结合使用。The first method does not require the user to adjust the picture, which simplifies the user's operation and is more intelligent. In the second method, the user can adjust the size and position of the sample picture more intuitively. Understandably, the above two methods can be used in combination.
步骤S14,获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,并根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件,其中,所述名称用于在对应的文件目录下面找到对应的样本图片。Step S14, obtaining a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, and according to the name , The final size and the coordinate information generate a configuration file of the texture image, wherein the name is used to find a corresponding sample image under a corresponding file directory.
将用户选择的多个样本图片建立组合关系,以生成一个完整的贴图图片。并获取各个样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息。Establish a combination relationship between multiple sample pictures selected by the user to generate a complete texture picture. The final size of each sample picture, and the corresponding relationship between each sample picture and the reference point and the coordinate information relative to the corresponding reference point are obtained.
其中,样本图片的最终尺寸即为组成该贴图图片后的尺寸,其可能等于原始的样本图片的尺寸,也可能大于或小于原始样本图片的尺寸。样本图片相对于对应的基准点的坐标信息,即是以对应基准点为原点时,样本图片的中心的位置的坐标。The final size of the sample picture is the size of the texture picture, which may be equal to the size of the original sample picture, or may be larger or smaller than the size of the original sample picture. The coordinate information of the sample picture with respect to the corresponding reference point, that is, the coordinates of the position of the center of the sample picture when the corresponding reference point is the origin.
根据该配置文件,用户即可使用生成的贴图图片,实时对拍照的图像进行贴图。具体的,使用用户编辑的贴图图片时,移动终端获取该配置文件,根据贴图的名称在对应的文件目录下面找到对应的样本图片,再根据最终尺寸调整样本图片的大小,并根据样本图片相对于对应的基准点的坐标信息调整样本图片的位置,即可完成对图片的贴图。According to the configuration file, the user can use the generated texture image to map the photographed image in real time. Specifically, when using a texture image edited by a user, the mobile terminal obtains the configuration file, finds a corresponding sample image under the corresponding file directory according to the name of the texture, and then adjusts the size of the sample image according to the final size. The coordinate information of the corresponding reference point adjusts the position of the sample picture to complete the mapping of the picture.
本实施例中,获取用户从样本图片数据库选择多个样本图片,并逐张加入到贴图编辑界面,在编辑界面调整每张图片的大小和位置到合适的位置,调整完成以后,保存并生成人脸贴图配置文件。该方法可以方便用户根据自己的喜好制作生成一些合适的在线人脸贴图图片,丰富了相机应用的在线人脸贴图资源。In this embodiment, the acquisition user selects multiple sample pictures from the sample picture database and adds them one by one to the texture editing interface. In the editing interface, the size and position of each image are adjusted to a suitable position. After the adjustment is completed, the person is saved and generated. Face map profile. This method can facilitate users to produce some suitable online face map pictures according to their own preferences, which enriches the online face map resources of the camera application.
请参阅图2,为本发明第二实施例中的人脸贴图图像生成方法,包括步骤S21~S28。Please refer to FIG. 2, which is a face map image generating method in a second embodiment of the present invention, including steps S21 to S28.
步骤S21,在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点。In step S21, a standard face image is acquired in the map editing mode, and a plurality of facial feature points in the standard face image are parsed.
上述步骤中,标准人脸图像的可从移动终端本地存储的图像中获取,也可以通过相机拍照得到。其人脸特征点的识别可根据现有技术中的人脸识别技术分析得到,此处不予赘述。In the above steps, the standard face image may be obtained from an image stored locally on the mobile terminal, or may be obtained by taking a picture with a camera. The recognition of the facial feature points can be obtained by analyzing the facial recognition technology in the prior art, which will not be repeated here.
步骤S22,获取用户从样本图片数据库中选择的多个样本图片,以及分别获取用户针对每个所述样本图片选择的一人脸特征点以作为基准点。In step S22, a plurality of sample pictures selected by the user from the sample picture database are obtained, and a face feature point selected by the user for each of the sample pictures is obtained as a reference point.
用户启动贴图编辑模式时,可打开样本图片数据库选择两个以上的样本图片,并针对选择的每个样本图片指定一个人脸特征点作为基准点。根据该基准点可用于确定对应的样本图片的位置坐标。具体实施时,选择的多个样本图片可分别对应不同的基准点,也可对应同一基准点,此处不予限定。When the user starts the texture editing mode, he can open the sample image database to select more than two sample images, and specify a face feature point as a reference point for each selected sample image. The reference point can be used to determine the position coordinates of the corresponding sample picture. In specific implementation, the selected multiple sample pictures may respectively correspond to different reference points or the same reference point, which is not limited herein.
步骤S23,获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标。Step S23: Acquire attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point.
步骤S24,将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。In step S24, each of the sample pictures is adjusted to the target size and loaded to the position of the target coordinate in the texture editing interface.
具体的,样本图片的目标尺寸根据该样本图片与标准人脸图像的预设尺寸比例进行确定,每个样本图片与标准人脸图像的预设比例预先存储于移动终端中。当获取到标准人脸图像时,可同时获取对该标准人脸图像的尺寸。然后根据样本图片与标准人脸的比例可计算出样本图片的目标尺寸,然后将该样本图片调整至该目标尺寸的大小。可以理解的,不同的样本图片对应的预设标准尺寸比例可不同,例如,眼镜的样本图片与标准人脸图像的预设尺寸比例为0.8:1,动物图像的样本图片与人脸图像的预设尺寸比例为1:1。Specifically, the target size of the sample picture is determined according to the preset size ratio of the sample picture and the standard face image, and the preset ratio of each sample picture and the standard face image is stored in the mobile terminal in advance. When a standard face image is obtained, the size of the standard face image can be obtained at the same time. Then, the target size of the sample picture can be calculated according to the ratio of the sample picture to the standard face, and then the sample picture is adjusted to the size of the target size. It can be understood that the preset standard size ratio corresponding to different sample pictures may be different. For example, the preset size ratio of the sample picture of glasses and the standard face image is 0.8: 1, and the preset ratio of the sample picture of the animal image and the face image Set the size ratio to 1: 1.
样本图片相对于基准点的目标坐标,即为以该基准点为原点时,样本图片中心的坐标。移动终端中预存有每个人脸特征点与目标坐标的对应关系,当用户确定一人脸特征点为基准点时,移动终端可查询该基准点对应的目标坐标。并将调整后的样本图片显示在该目标坐标的位置。The target coordinates of the sample picture relative to the reference point are the coordinates of the center of the sample picture when the reference point is used as the origin. A correspondence relationship between each face feature point and target coordinates is pre-stored in the mobile terminal. When the user determines that a face feature point is a reference point, the mobile terminal may query the target coordinates corresponding to the reference point. The adjusted sample picture is displayed at the position of the target coordinate.
步骤S25,获取用户调整后的任意一所述样本图片。Step S25: Obtain any one of the sample pictures adjusted by the user.
由于步骤S24中调整得到的样本图片的尺寸、位置、颜色等可能不符合用户的要求。因此用户可在贴图编辑模式下,再次手动调节样本图片。用户对所述样本图片的调整包括下述过程中的至少一种:Because the size, position, and color of the sample picture adjusted in step S24 may not meet the requirements of the user. Therefore, the user can manually adjust the sample picture again in the texture editing mode. The adjustment of the sample picture by the user includes at least one of the following processes:
放大或缩小所述样本图片;Enlarge or reduce the sample picture;
移动所述样本图片的位置。Move the position of the sample picture.
步骤S26,获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,并根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件。Step S26: Acquire a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, and according to the name , The final size, and the coordinate information to generate a configuration file of the texture image.
其中,贴图图片的名称用于在对应的文件目录下面找到对应的样本图片。而样本图片的最终尺寸即为经过调整后的尺寸,其可能等于原始的样本图片的尺寸,也可能大于或小于原始样本图片的尺寸。样本图片相对于对应的基准点的坐标信息,即为以对应的基准点为原点时,样本图片的中心相对于原点的位置的坐标。The name of the texture image is used to find the corresponding sample image under the corresponding file directory. The final size of the sample picture is the adjusted size, which may be equal to the size of the original sample picture, or may be larger or smaller than the size of the original sample picture. The coordinate information of the sample picture with respect to the corresponding reference point is the coordinate of the position of the center of the sample picture with respect to the origin when the corresponding reference point is used as the origin.
步骤S27,将所述样本图片和所述配置文件对应存储至贴图图片数据库中。In step S27, the sample picture and the configuration file are correspondingly stored in a texture picture database.
用户制作好一个贴图图片后,可将对应的样本图片和配置文件打包存储至贴图图片数据库中,以便于后续使用时调用。After the user has created a texture image, the corresponding sample image and configuration file can be packaged and stored in the texture image database, so that it can be recalled later.
步骤S28,当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件中的信息将所述当前样本图片加载至当前显示界面中。In step S28, when a signal of the current texture picture selected by the user for the texture picture database is obtained, the current sample picture corresponding to the current texture picture is obtained, and the information in the configuration file corresponding to the current texture picture is obtained based on The current sample picture is loaded into a current display interface.
当需要调用用户编辑的贴图图片时,可在贴图图片数据库中选择该贴图图片,并调用。移动终端接收到调用贴图图片的信号时,根据对应的配置文件中所记录的贴图的名称在对应的文件目录下面找到对应的当前样本图片,并根据配置文件中的最终尺寸调整当前样本图片的大小,以及根据当前样本图片相对于对应的基准点的坐标信息调整当前样本图片的位置,即可完成对图像的贴图。When it is necessary to call the texture picture edited by the user, the texture picture can be selected in the texture picture database and called. When the mobile terminal receives the signal to call the texture image, it finds the corresponding current sample image under the corresponding file directory according to the name of the texture recorded in the corresponding configuration file, and adjusts the size of the current sample image according to the final size in the configuration file. , And adjusting the position of the current sample picture according to the coordinate information of the current sample picture relative to the corresponding reference point, the image mapping can be completed.
进一步的,在本发明的另一实施例中,步骤S28之后还包括下述步骤:Further, in another embodiment of the present invention, after step S28, the following steps are further included:
获取所述贴图图片缩小至预设尺寸的缩略图;Obtaining a thumbnail of the texture picture reduced to a preset size;
将所述缩略图添加至所述配置文件中。Adding the thumbnail to the profile.
具体的,为了便于用户查找贴图图片,将生成的贴图图片缩小至预设尺寸,以形成一个缩略图添加至配置文件中。用户可根据缩略图选择贴图图片,方便、快捷。Specifically, in order to facilitate the user to find the texture image, the generated texture image is reduced to a preset size to form a thumbnail image and added to the configuration file. The user can select a sticker image according to the thumbnail, which is convenient and fast.
本实施例中,用户从样本图片数据库选择多个样本图片,并选择合适的人脸特征点作为基准点。根据预置的目标尺寸将每个样本图片进行缩放后,逐张加入到贴图编辑界面上的目标坐标位置。并且用户可根据实际需要对贴图编辑 界面上的样本图片再次编辑,如调整大小或调整样本图片中心距离基准点的位置。如此逐张调整人脸贴图,调整完成以后生成人脸贴图配置文件。并且,根据人脸贴图的配置文件将用户编辑的贴图图片加载至当前拍照的图像上。In this embodiment, the user selects multiple sample pictures from the sample picture database, and selects appropriate facial feature points as a reference point. After each sample picture is scaled according to the preset target size, it is added to the target coordinate position on the texture editing interface one by one. In addition, the user can edit the sample picture on the texture editing interface according to actual needs, such as resizing or adjusting the position of the sample picture center from the reference point. In this way, the face map is adjusted one by one, and a face map configuration file is generated after the adjustment is completed. In addition, according to the configuration file of the face map, the map picture edited by the user is loaded onto the currently photographed image.
请参阅图3,为本发明第三实施例中的人脸贴图方法,其在第二实施例的基础上,还包括步骤S31。Please refer to FIG. 3, which is a face mapping method according to a third embodiment of the present invention. The method further includes step S31 on the basis of the second embodiment.
步骤S31,将所述配置文件和所述样本图片对应上传至服务器中,以使所述服务器更新贴图图片数据库。In step S31, the configuration file and the sample picture are correspondingly uploaded to the server, so that the server updates the texture picture database.
用户通过相机应用将生成的人脸贴图对应的样本图片和配置文件打包上传的对应的服务器上。后台管理人员收到用户上传的人脸贴图资源包以后,在后台审核,如果审核通过则放到在线人脸资源下载页面供用户下载,如果审核不通过,则通过邮件或其他方式告诉用户审核不通过,修改以后可以再次上传。审核通过以后,后台管理人员将审核通过的人脸贴图资源包放置到远程服务器,供其他用户下载。The user packages and uploads the sample pictures and configuration files corresponding to the generated face maps on the corresponding server through the camera application. After the background management staff receives the face map resource package uploaded by the user, it is reviewed in the background. If the review is passed, it will be placed on the online face resource download page for users to download. Pass, you can upload again after modification. After the review is passed, the background management staff places the approved face texture resource pack on a remote server for download by other users.
进一步的,当用户连接远程服务器时,移动终端通过远程服务实时对贴图图片数据库进行版本升级。具体实施时,移动终端根据人脸贴图配置文件的版本号判断贴图图片资源库是否更新,如果当前的软件的版本号大于或者等于人脸贴图配置文件的版本号时,则更新贴图图片资源库。Further, when a user connects to a remote server, the mobile terminal updates the version of the texture image database in real time through the remote service. In specific implementation, the mobile terminal determines whether the texture image resource library is updated according to the version number of the face texture configuration file. If the version number of the current software is greater than or equal to the version number of the texture texture file, the texture image resource library is updated.
请参阅图4,为本发明第三实施例中的人脸贴图生成装置,包括:Please refer to FIG. 4, which is a face map generating device according to a third embodiment of the present invention, including:
获取及解析模块10,用于在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点;An acquisition and analysis module 10, configured to acquire a standard face image in a map editing mode, and parse out a plurality of facial feature points in the standard face image;
第一获取模块20,用于获取用户从样本图片数据库中选择的多个样本图片,以及分别获取用户针对每个所述样本图片选择的一所述人脸特征点以作为基准点;A first obtaining module 20, configured to obtain a plurality of sample pictures selected by a user from a sample picture database, and respectively obtain a face feature point selected by the user for each of the sample pictures as a reference point;
第一生成模块30,用于将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片;A first generating module 30, configured to load each of the sample pictures into a texture editing interface and place the sample pictures in corresponding positions of the standard face image to generate a texture picture;
第二获取模块40,用于获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,其中,所述名称用于在对应的文件目录下面找到对应的样本图片;A second obtaining module 40, configured to obtain a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, The name is used to find the corresponding sample picture under the corresponding file directory;
第二生成模块50,用于根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件。The second generating module 50 is configured to generate a configuration file of the texture image according to the name, the final size, and the coordinate information.
进一步的,上述人脸贴图生成装置,其中,所述第一生成模块30用于:Further, in the above device for generating a face map, the first generating module 30 is configured to:
获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
进一步的,上述人脸贴图生成装置,还包括:Further, the above-mentioned face map generating device further includes:
第三获取模块60,用于获取用户调整后的任意一所述样本图片。The third obtaining module 60 is configured to obtain any one of the sample pictures adjusted by a user.
进一步的,上述人脸贴图生成装置,其中,用户对所述样本图片的调整包括下述过程中的至少一种:Further, in the above-mentioned face map generating device, the adjustment of the sample picture by the user includes at least one of the following processes:
放大或缩小所述样本图片;Enlarge or reduce the sample picture;
移动所述样本图片的位置。Move the position of the sample picture.
进一步的,上述人脸贴图生成装置,还包括:Further, the above-mentioned face map generating device further includes:
存储模块70,用于将所述样本图片和所述配置文件对应存储至贴图图片数据库中。The storage module 70 is configured to correspondingly store the sample picture and the configuration file in a texture picture database.
进一步的,上述人脸贴图生成装置,还包括:Further, the above-mentioned face map generating device further includes:
显示模块80,用于当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图片加载至当前显示界面中。A display module 80 is configured to obtain a current sample picture corresponding to the current texture picture when a signal for a current texture picture selected by the user in the texture picture database is obtained, and to change the current sample picture corresponding to the current texture picture The current sample picture is loaded into a current display interface.
进一步的,上述人脸贴图生成装置,还包括:Further, the above-mentioned face map generating device further includes:
上传模块90,用于将所述配置文件和所述样本图片对应上传至服务器中,以使所述服务器更新贴图图片数据库。The uploading module 90 is configured to upload the configuration file and the sample picture to the server correspondingly, so that the server updates the texture picture database.
本发明实施例所提供的人脸贴图生成装置,其实现原理及产生的技术效果和前述方法实施例相同,为简要描述,装置实施例部分未提及之处,可参考前述方法实施例中相应内容。The face map generating device provided by the embodiment of the present invention has the same implementation principle and technical effect as the foregoing method embodiments. For a brief description, the parts not mentioned in the device embodiments can be referred to the corresponding method embodiments. content.
本发明实施例还提出了一种可读存储介质,其上存储有计算机程序,该程序被处理器执行时实现上述的人脸贴图生成方法。An embodiment of the present invention further provides a readable storage medium on which a computer program is stored, and when the program is executed by a processor, the foregoing method for generating a face map is implemented.
本发明实施例还提出了一种移动终端,包括存储器、处理器以及存储在存储器上并可在处理器上运行的程序,所述处理器执行所述程序时实现上述的人脸贴图生成方法。An embodiment of the present invention further provides a mobile terminal, including a memory, a processor, and a program stored on the memory and executable on the processor. When the processor executes the program, the foregoing method for generating a face map is implemented.
在流程图中表示或在此以其他方式描述的逻辑和/或步骤,例如,可以被认 为是用于实现逻辑功能的可执行指令的定序列表,可以具体实现在任何计算机可读介质中,以供指令执行***、装置或设备(如基于计算机的***、包括处理器的***或其他可以从指令执行***、装置或设备取指令并执行指令的***)使用,或结合这些指令执行***、装置或设备而使用。就本说明书而言,“计算机可读介质”可以是任何可以包含、存储、通信、传播或传输程序以供指令执行***、装置或设备或结合这些指令执行***、装置或设备而使用的装置。The logic and / or steps represented in the flowchart or otherwise described herein, for example, a sequenced list of executable instructions that can be considered to implement a logical function, can be embodied in any computer-readable medium, For instruction execution systems, devices, or devices (such as computer-based systems, systems including processors, or other systems that can fetch instructions from and execute instructions) Or equipment. For the purposes of this specification, a "computer-readable medium" may be any device that can contain, store, communicate, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device.
计算机可读介质的更具体的示例(非穷尽性列表)包括以下:具有一个或多个布线的电连接部(电子装置),便携式计算机盘盒(磁装置),随机存取存储器(RAM),只读存储器(ROM),可擦除可编辑只读存储器(EPROM或闪速存储器),光纤装置,以及便携式光盘只读存储器(CDROM)。另外,计算机可读介质甚至可以是可在其上打印所述程序的纸或其他合适的介质,因为可以例如通过对纸或其他介质进行光学扫描,接着进行编辑、解译或必要时以其他合适方式进行处理来以电子方式获得所述程序,然后将其存储在计算机存储器中。More specific examples (non-exhaustive list) of computer readable media include the following: electrical connections (electronic devices) with one or more wirings, portable computer disk cartridges (magnetic devices), random access memory (RAM), Read-only memory (ROM), erasable and editable read-only memory (EPROM or flash memory), fiber optic devices, and portable optical disk read-only memory (CDROM). In addition, the computer-readable medium may even be paper or other suitable medium on which the program can be printed, because, for example, by optically scanning the paper or other medium, followed by editing, interpretation, or other suitable Processing to obtain the program electronically and then store it in computer memory.
应当理解,本发明的各部分可以用硬件、软件、固件或它们的组合来实现。在上述实施方式中,多个步骤或方法可以用存储在存储器中且由合适的指令执行***执行的软件或固件来实现。例如,如果用硬件来实现,和在另一实施方式中一样,可用本领域公知的下列技术中的任一项或他们的组合来实现:具有用于对数据信号实现逻辑功能的逻辑门电路的离散逻辑电路,具有合适的组合逻辑门电路的专用集成电路,可编程门阵列(PGA),现场可编程门阵列(FPGA)等。It should be understood that each part of the present invention may be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods may be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. For example, if implemented in hardware, as in another embodiment, it may be implemented using any one or a combination of the following techniques known in the art: Discrete logic circuits, application specific integrated circuits with suitable combinational logic gate circuits, programmable gate arrays (PGA), field programmable gate arrays (FPGA), etc.
在本说明书的描述中,参考术语“一个实施例”、“一些实施例”、“示例”、“具体示例”、或“一些示例”等的描述意指结合该实施例或示例描述的具体特征、结构、材料或者特点包含于本发明的至少一个实施例或示例中。在本说明书中,对上述术语的示意性表述不一定指的是相同的实施例或示例。而且,描述的具体特征、结构、材料或者特点可以在任何的一个或多个实施例或示例中以合适的方式结合。In the description of this specification, the description with reference to the terms “one embodiment”, “some embodiments”, “examples”, “specific examples”, or “some examples” and the like means specific features described in conjunction with the embodiments or examples , Structures, materials, or features are included in at least one embodiment or example of the invention. In this specification, the schematic expressions of the above terms do not necessarily refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples.
以上所述实施例仅表达了本发明的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对本发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本发明构思的前提下,还可以做出若干变形和 改进,这些都属于本发明的保护范围。因此,本发明专利的保护范围应以所附权利要求为准。The above-mentioned embodiments only express several implementation manners of the present invention, and their descriptions are more specific and detailed, but they cannot be understood as limiting the scope of the patent of the present invention. It should be noted that, for those of ordinary skill in the art, without departing from the concept of the present invention, several modifications and improvements can be made, which all belong to the protection scope of the present invention. Therefore, the protection scope of the invention patent shall be subject to the appended claims.
本发明实施例还揭示了:The embodiment of the invention also discloses:
A1.一种人脸贴图生成方法,包括:A1. A method for generating a face map, including:
在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点;Acquiring a standard face image in a map editing mode, and parsing out multiple facial feature points in the standard face image;
获取用户从样本图片数据库中选择的多个样本图片,以及分别获取用户针对每个所述样本图片选择的一所述人脸特征点以作为基准点;Acquiring a plurality of sample pictures selected by the user from the sample picture database, and separately acquiring one of the facial feature points selected by the user for each of the sample pictures as a reference point;
将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片;Loading each of the sample pictures into a texture editing interface and placing them in corresponding positions of the standard face image to generate a texture picture;
获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,并根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件,其中,所述名称用于在对应的文件目录下面找到对应的样本图片。Obtaining the name of the texture picture, the final size of each of the sample pictures, and the correspondence between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, and according to the name, the The final size and the coordinate information generate a configuration file of the texture image, wherein the name is used to find a corresponding sample image under a corresponding file directory.
A2.如A1所述的人脸贴图生成方法,所述将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置的步骤包括:A2. The method for generating a face map according to A1, wherein the step of loading each of the sample pictures into a map editing interface and placing the sample pictures in a corresponding position of the standard face image includes:
获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
A3.如A1所述的人脸贴图生成方法,所述将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片的步骤之前还包括:A3. The method for generating a face map according to A1, wherein each of the sample pictures is loaded into a map editing interface and placed in a corresponding position of the standard face image to generate a map picture Also includes:
获取用户调整后的任意一所述样本图片。Obtain any one of the sample pictures adjusted by the user.
A4.如A3所述的人脸贴图生成方法,用户对所述样本图片的调整包括下述过程中的至少一种:A4. The method for generating a face map according to A3, wherein the adjustment of the sample picture by the user includes at least one of the following processes:
放大或缩小所述样本图片;Enlarge or reduce the sample picture;
移动所述样本图片的位置。Move the position of the sample picture.
A5.如A1所述的人脸贴图生成方法,所述根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件的步骤之后还包括:A5. The method for generating a face map according to A1, after the step of generating a configuration file of the map picture according to the name, the final size, and the coordinate information, further comprising:
将所述样本图片和所述配置文件对应存储至贴图图片数据库中。The sample picture and the configuration file are correspondingly stored in a texture picture database.
A6.如A5所述的人脸贴图生成方法,所述将所述样本图片和所述配置文件对应存储至贴图图片数据库中的步骤之后还包括:A6. The method for generating a face map according to A5, after the step of correspondingly storing the sample picture and the configuration file in a map picture database, further comprising:
当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图片加载至当前显示界面中。When a signal from a user for the current texture picture selected in the texture picture database is obtained, a current sample picture corresponding to the current texture picture is obtained, and the current sample picture is loaded according to a configuration file corresponding to the current texture picture To the current display interface.
A7.如A1所述的人脸贴图生成方法,所述根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件的步骤之后还包括:A7. The method for generating a face map according to A1, after the step of generating a configuration file of the map picture according to the name, the final size, and the coordinate information, further comprising:
将所述配置文件和所述样本图片对应上传至服务器中,以使所述服务器更新贴图图片数据库。The configuration file and the sample picture are correspondingly uploaded to a server, so that the server updates a map picture database.
B8.一种人脸贴图生成装置,包括:B8. A face map generating device, comprising:
获取及解析模块,用于在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点;An acquisition and analysis module, configured to acquire a standard face image in a map editing mode, and parse out multiple facial feature points in the standard face image;
第一获取模块,用于获取用户从样本图片数据库中选择的多个样本图片,以及分别获取用户针对每个所述样本图片选择的一所述人脸特征点以作为基准点;A first acquisition module, configured to acquire a plurality of sample pictures selected by a user from a sample picture database, and respectively obtain a face feature point selected by the user for each of the sample pictures as a reference point;
第一生成模块,用于将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片;A first generating module, configured to load each of the sample pictures into a texture editing interface, and place the sample pictures in a corresponding position of the standard face image to generate a texture picture;
第二获取模块,用于获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,其中,所述名称用于在对应的文件目录下面找到对应的样本图片;A second obtaining module, configured to obtain a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, where , The name is used to find the corresponding sample picture under the corresponding file directory;
第二生成模块,用于根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件。A second generating module is configured to generate a configuration file of the texture image according to the name, the final size, and the coordinate information.
B9.如B8所述的人脸贴图生成装置,所述第一生成模块用于:B9. The face map generating device according to B8, wherein the first generating module is configured to:
获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
B10.如B8所述的人脸贴图生成装置,还包括:B10. The face map generating device according to B8, further comprising:
第三获取模块,用于获取用户调整后的任意一所述样本图片。The third obtaining module is configured to obtain any one of the sample pictures adjusted by a user.
B11.如B10所述的人脸贴图生成装置,用户对所述样本图片的调整包括下述过程中的至少一种:B11. The face map generating device according to B10, wherein the adjustment of the sample picture by the user includes at least one of the following processes:
放大或缩小所述样本图片;Enlarge or reduce the sample picture;
移动所述样本图片的位置。Move the position of the sample picture.
B12.如B8所述的人脸贴图生成装置,还包括:B12. The face map generating device according to B8, further comprising:
存储模块,用于将所述样本图片和所述配置文件对应存储至贴图图片数据库中。The storage module is configured to correspondingly store the sample picture and the configuration file into a texture picture database.
B13.如B12所述的人脸贴图生成装置,还包括:B13. The face map generating device according to B12, further comprising:
显示模块,用于当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图片加载至当前显示界面中。A display module, configured to obtain a current sample picture corresponding to the current texture picture when a signal for a current texture picture selected by the user from the texture picture database is obtained, and to change all data according to a configuration file corresponding to the current texture picture The current sample picture is loaded into the current display interface.
B14.如B8所述的人脸贴图生成装置,还包括:B14. The face map generating device according to B8, further comprising:
上传模块,用于将所述配置文件和所述样本图片对应上传至服务器中,以使所述服务器更新贴图图片数据库。The uploading module is configured to upload the configuration file and the sample picture to the server correspondingly, so that the server updates the texture picture database.
C15.一种可读存储介质,其上存储有程序,所述程序被处理器执行时实现A1-A7任一所述的方法。C15. A readable storage medium having stored thereon a program which, when executed by a processor, implements the method of any one of A1 to A7.
D16.一种移动终端,包括存储器、处理器以及存储在存储器上并可在处理器上运行的程序,所述处理器执行所述程序时实现如A1-A7任意一项所述的方法。D16. A mobile terminal, comprising a memory, a processor, and a program stored on the memory and executable on the processor. When the processor executes the program, the method according to any one of A1 to A7 is implemented.

Claims (20)

  1. 一种人脸贴图生成方法,其中,包括:A method for generating a face map, including:
    在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点;Acquiring a standard face image in a map editing mode, and parsing out multiple facial feature points in the standard face image;
    获取用户从样本图片数据库中选择的多个样本图片,以及分别获取用户针对每个所述样本图片选择的一所述人脸特征点以作为基准点;Acquiring a plurality of sample pictures selected by the user from the sample picture database, and separately acquiring one of the facial feature points selected by the user for each of the sample pictures as a reference point;
    将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片;Loading each of the sample pictures into a texture editing interface and placing them in corresponding positions of the standard face image to generate a texture picture;
    获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,并根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件,其中,所述名称用于在对应的文件目录下面找到对应的样本图片。Obtaining the name of the texture picture, the final size of each of the sample pictures, and the correspondence between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, and according to the name, the The final size and the coordinate information generate a configuration file of the texture image, wherein the name is used to find a corresponding sample image under a corresponding file directory.
  2. 如权利要求1所述的人脸贴图生成方法,其中,所述将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置的步骤包括:The method for generating a face map according to claim 1, wherein the step of loading each of the sample pictures into a map editing interface and placing the sample pictures in a corresponding position of the standard face image comprises:
    获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
    将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
  3. 如权利要求2所述的人脸贴图生成方法,其中,所述获取每个所述样本图片的属性信息,包括:The method for generating a face map according to claim 2, wherein the acquiring attribute information of each of the sample pictures comprises:
    按照所述标准人脸图像与所述样本图片对应的预设尺寸比例,确定所述样本图片的目标尺寸;和/或Determining a target size of the sample picture according to a preset size ratio corresponding to the standard face image and the sample picture; and / or
    基于不同人脸特征点和目标坐标之间的对应关系表,确定针对所述样本图片的基准点对应的目标坐标。A target coordinate corresponding to a reference point for the sample picture is determined based on a correspondence table between different facial feature points and target coordinates.
  4. 如权利要求1所述的人脸贴图生成方法,其中,所述将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片的步骤之前还包括:The method for generating a face map according to claim 1, wherein each of said sample pictures is loaded into a map editing interface and placed at a corresponding position of said standard face image to generate a map picture. Before the steps also include:
    获取用户调整后的任意一所述样本图片。Obtain any one of the sample pictures adjusted by the user.
  5. 如权利要求4所述的人脸贴图生成方法,其中,用户对所述样本图片的调整包括下述过程中的至少一种:The method for generating a face map according to claim 4, wherein the adjustment of the sample picture by the user comprises at least one of the following processes:
    放大或缩小所述样本图片;Enlarge or reduce the sample picture;
    移动所述样本图片的位置。Move the position of the sample picture.
  6. 如权利要求1所述的人脸贴图生成方法,其中,所述根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件的步骤之后还包括:The method for generating a face map according to claim 1, wherein after the step of generating a configuration file of the map picture according to the name, the final size, and the coordinate information, further comprising:
    将所述样本图片和所述配置文件对应存储至贴图图片数据库中。The sample picture and the configuration file are correspondingly stored in a texture picture database.
  7. 如权利要求6所述的人脸贴图生成方法,其中,所述将所述样本图片和所述配置文件对应存储至贴图图片数据库中的步骤之后还包括:The method for generating a face map according to claim 6, wherein after the step of correspondingly storing the sample picture and the configuration file in a map picture database, the method further comprises:
    当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图片加载至当前显示界面中。When a signal from a user for the current texture picture selected in the texture picture database is obtained, a current sample picture corresponding to the current texture picture is obtained, and the current sample picture is loaded according to a configuration file corresponding to the current texture picture To the current display interface.
  8. 如权利要求7所述的人脸贴图生成方法,其中,在所述当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图片加载至当前显示界面中之后,还包括:The method for generating a face map according to claim 7, wherein when a signal of a current texture picture selected by the user for the texture picture database is obtained, obtaining a current sample picture corresponding to the current texture picture, After loading the current sample picture into the current display interface according to the configuration file corresponding to the current texture picture, the method further includes:
    获取所述当前贴图图片缩小至预设尺寸的缩略图;Obtaining a thumbnail of the current texture picture reduced to a preset size;
    将所述缩略图添加至所述配置文件中。Adding the thumbnail to the profile.
  9. 如权利要求1所述的人脸贴图生成方法,其中,所述根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件的步骤之后还包括:The method for generating a face map according to claim 1, wherein after the step of generating a configuration file of the map picture according to the name, the final size, and the coordinate information, further comprising:
    将所述配置文件和所述样本图片对应上传至服务器中,以使所述服务器更新贴图图片数据库。The configuration file and the sample picture are correspondingly uploaded to a server, so that the server updates a map picture database.
  10. 一种人脸贴图生成装置,其中,包括:A face map generating device, including:
    获取及解析模块,用于在贴图编辑模式下获取一标准人脸图像,并解析出所述标准人脸图像中的多个人脸特征点;An acquisition and analysis module, configured to acquire a standard face image in a map editing mode, and parse out multiple facial feature points in the standard face image;
    第一获取模块,用于获取用户从样本图片数据库中选择的多个样本图片,以及分别获取用户针对每个所述样本图片选择的一所述人脸特征点以作为基准点;A first acquisition module, configured to acquire a plurality of sample pictures selected by a user from a sample picture database, and respectively obtain a face feature point selected by the user for each of the sample pictures as a reference point;
    第一生成模块,用于将每个所述样本图片加载至贴图编辑界面中,并置于所述标准人脸图像的对应位置,以生成一贴图图片;A first generating module, configured to load each of the sample pictures into a texture editing interface, and place the sample pictures in a corresponding position of the standard face image to generate a texture picture;
    第二获取模块,用于获取所述贴图图片的名称、每个所述样本图片的最终尺寸,以及每个所述样本图片与基准点的对应关系和相对于对应的基准点的坐标信息,其中,所述名称用于在对应的文件目录下面找到对应的样本图片;A second obtaining module, configured to obtain a name of the texture picture, a final size of each of the sample pictures, and a correspondence relationship between each of the sample pictures and a reference point and coordinate information relative to the corresponding reference point, where , The name is used to find the corresponding sample picture under the corresponding file directory;
    第二生成模块,用于根据所述名称、所述最终尺寸以及所述坐标信息生成所述贴图图片的配置文件。A second generating module is configured to generate a configuration file of the texture image according to the name, the final size, and the coordinate information.
  11. 如权利要求1所述的人脸贴图生成装置,其中,所述第一生成模块用于:The device for generating a face map according to claim 1, wherein the first generating module is configured to:
    获取每个所述样本图片的属性信息,所述属性信息包括所述样本图片的目标尺寸,以及相对于对应的基准点的目标坐标;Acquiring attribute information of each of the sample pictures, where the attribute information includes a target size of the sample picture and a target coordinate relative to a corresponding reference point;
    将每个所述样本图片调整至所述目标尺寸,并加载至所述贴图编辑界面中的所述目标坐标的位置。Adjusting each of the sample pictures to the target size, and loading the sample picture to a position of the target coordinate in the texture editing interface.
  12. 如权利要求11所述的人脸贴图生成装置,其中,所述第一生成模块具体用于:The device for generating a face map according to claim 11, wherein the first generating module is specifically configured to:
    按照所述标准人脸图像与所述样本图片对应的预设尺寸比例,确定所述样本图片的目标尺寸;和/或Determining a target size of the sample picture according to a preset size ratio corresponding to the standard face image and the sample picture; and / or
    基于不同人脸特征点和目标坐标之间的对应关系表,确定针对所述样本图片的基准点对应的目标坐标。A target coordinate corresponding to a reference point for the sample picture is determined based on a correspondence table between different facial feature points and target coordinates.
  13. 如权利要求10所述的人脸贴图生成装置,其中,还包括:The device for generating a face map according to claim 10, further comprising:
    第三获取模块,用于获取用户调整后的任意一所述样本图片。The third obtaining module is configured to obtain any one of the sample pictures adjusted by a user.
  14. 如权利要求13所述的人脸贴图生成装置,其中,用户对所述样本图片的调整包括下述过程中的至少一种:The device for generating a face map according to claim 13, wherein the adjustment of the sample picture by the user includes at least one of the following processes:
    放大或缩小所述样本图片;Enlarge or reduce the sample picture;
    移动所述样本图片的位置。Move the position of the sample picture.
  15. 如权利要求10所述的人脸贴图生成装置,其中,还包括:The device for generating a face map according to claim 10, further comprising:
    存储模块,用于将所述样本图片和所述配置文件对应存储至贴图图片数据库中。The storage module is configured to correspondingly store the sample picture and the configuration file into a texture picture database.
  16. 如权利要求15所述的人脸贴图生成装置,其中,还包括:The device for generating a face map according to claim 15, further comprising:
    显示模块,用于当获取到用户针对所述贴图图片数据库中选择的当前贴图图片的信号时,获取所述当前贴图图片对应的当前样本图片,并根据所述当前贴图图片对应的配置文件将所述当前样本图片加载至当前显示界面中。A display module, configured to obtain a current sample picture corresponding to the current texture picture when a signal for a current texture picture selected by the user from the texture picture database is obtained, and to change all data according to a configuration file corresponding to the current texture picture The current sample picture is loaded into the current display interface.
  17. 如权利要求16所述的人脸贴图生成装置,其中,还包括:The device for generating a face map according to claim 16, further comprising:
    添加模块,用于获取所述当前贴图图片缩小至预设尺寸的缩略图,将所述缩略图添加至所述配置文件中。An adding module is configured to obtain a thumbnail of the current texture image reduced to a preset size, and add the thumbnail to the configuration file.
  18. 如权利要求10所述的人脸贴图生成装置,其中,还包括:The device for generating a face map according to claim 10, further comprising:
    上传模块,用于将所述配置文件和所述样本图片对应上传至服务器中,以使所述服务器更新贴图图片数据库。The uploading module is configured to upload the configuration file and the sample picture to the server correspondingly, so that the server updates the texture picture database.
  19. 一种可读存储介质,其上存储有程序,其中,所述程序被处理器执行时实现如权利要求1-9任一所述的方法。A readable storage medium having a program stored thereon, wherein when the program is executed by a processor, the method according to any one of claims 1-9 is implemented.
  20. 一种移动终端,包括存储器、处理器以及存储在存储器上并可在处理器上运行的程序,其中,所述处理器执行所述程序时实现如权利要求1-9任意一项所述的方法。A mobile terminal includes a memory, a processor, and a program stored on the memory and executable on the processor, wherein when the processor executes the program, the method according to any one of claims 1 to 9 is implemented .
PCT/CN2019/087073 2018-06-07 2019-05-15 Human face sticker generating method and apparatus, readable storage medium and mobile terminal WO2019233256A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810581131.1 2018-06-07
CN201810581131.1A CN108846878A (en) 2018-06-07 2018-06-07 Face textures generation method, device, readable storage medium storing program for executing and mobile terminal

Publications (1)

Publication Number Publication Date
WO2019233256A1 true WO2019233256A1 (en) 2019-12-12

Family

ID=64211350

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/087073 WO2019233256A1 (en) 2018-06-07 2019-05-15 Human face sticker generating method and apparatus, readable storage medium and mobile terminal

Country Status (2)

Country Link
CN (1) CN108846878A (en)
WO (1) WO2019233256A1 (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145082A (en) * 2019-12-23 2020-05-12 五八有限公司 Face image processing method and device, electronic equipment and storage medium
CN111553835A (en) * 2020-04-10 2020-08-18 上海完美时空软件有限公司 Method and device for generating face pinching data of user
CN111729321A (en) * 2020-05-07 2020-10-02 完美世界(重庆)互动科技有限公司 Method, system, storage medium and computing device for constructing personalized character
CN112132044A (en) * 2020-09-24 2020-12-25 天津锋物科技有限公司 Face sticker generation method based on face alignment and affine transformation

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108846878A (en) * 2018-06-07 2018-11-20 奇酷互联网络科技(深圳)有限公司 Face textures generation method, device, readable storage medium storing program for executing and mobile terminal
CN112132859A (en) 2019-06-25 2020-12-25 北京字节跳动网络技术有限公司 Sticker generation method, apparatus, medium, and electronic device
CN110428360B (en) * 2019-07-05 2023-08-25 中国平安财产保险股份有限公司 Automobile image beautifying method, equipment, storage medium and device
CN112507837A (en) * 2020-12-01 2021-03-16 杭州小影创新科技股份有限公司 Adaptive algorithm based on human head segmentation and using method thereof

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065360A (en) * 2013-01-16 2013-04-24 重庆绿色智能技术研究院 Generation method and generation system of hair style effect pictures
CN104616329A (en) * 2015-02-10 2015-05-13 广州视源电子科技股份有限公司 Image generation method and device
CN107122774A (en) * 2017-03-28 2017-09-01 武汉斗鱼网络科技有限公司 A kind of adaptive chart pasting method moved with key point in image and system
CN107506732A (en) * 2017-08-25 2017-12-22 奇酷互联网络科技(深圳)有限公司 Method, equipment, mobile terminal and the computer-readable storage medium of textures
CN107679497A (en) * 2017-10-11 2018-02-09 齐鲁工业大学 Video face textures effect processing method and generation system
CN108846878A (en) * 2018-06-07 2018-11-20 奇酷互联网络科技(深圳)有限公司 Face textures generation method, device, readable storage medium storing program for executing and mobile terminal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971607B (en) * 2006-12-04 2012-08-22 谢亦玲 Picture database processing method for computerized glasses fitting system and glasses fitting device
CN106339201A (en) * 2016-09-14 2017-01-18 北京金山安全软件有限公司 Map processing method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065360A (en) * 2013-01-16 2013-04-24 重庆绿色智能技术研究院 Generation method and generation system of hair style effect pictures
CN104616329A (en) * 2015-02-10 2015-05-13 广州视源电子科技股份有限公司 Image generation method and device
CN107122774A (en) * 2017-03-28 2017-09-01 武汉斗鱼网络科技有限公司 A kind of adaptive chart pasting method moved with key point in image and system
CN107506732A (en) * 2017-08-25 2017-12-22 奇酷互联网络科技(深圳)有限公司 Method, equipment, mobile terminal and the computer-readable storage medium of textures
CN107679497A (en) * 2017-10-11 2018-02-09 齐鲁工业大学 Video face textures effect processing method and generation system
CN108846878A (en) * 2018-06-07 2018-11-20 奇酷互联网络科技(深圳)有限公司 Face textures generation method, device, readable storage medium storing program for executing and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111145082A (en) * 2019-12-23 2020-05-12 五八有限公司 Face image processing method and device, electronic equipment and storage medium
CN111553835A (en) * 2020-04-10 2020-08-18 上海完美时空软件有限公司 Method and device for generating face pinching data of user
CN111553835B (en) * 2020-04-10 2024-03-26 上海完美时空软件有限公司 Method and device for generating pinching face data of user
CN111729321A (en) * 2020-05-07 2020-10-02 完美世界(重庆)互动科技有限公司 Method, system, storage medium and computing device for constructing personalized character
CN111729321B (en) * 2020-05-07 2024-03-26 完美世界(重庆)互动科技有限公司 Method, system, storage medium and computing device for constructing personalized roles
CN112132044A (en) * 2020-09-24 2020-12-25 天津锋物科技有限公司 Face sticker generation method based on face alignment and affine transformation

Also Published As

Publication number Publication date
CN108846878A (en) 2018-11-20

Similar Documents

Publication Publication Date Title
WO2019233256A1 (en) Human face sticker generating method and apparatus, readable storage medium and mobile terminal
US11683362B2 (en) Realistic neural network based image style transfer
US10127945B2 (en) Visualization of image themes based on image content
US20200020173A1 (en) Methods and systems for constructing an animated 3d facial model from a 2d facial image
CN109087376B (en) Image processing method, image processing device, storage medium and electronic equipment
US20230056060A1 (en) Subtitle splitter
WO2017197959A1 (en) Image processing method, apparatus, and device
WO2019134502A1 (en) Photographing method and device, storage medium, and electronic apparatus
CN107124548A (en) A kind of photographic method and terminal
CN110148191B (en) Video virtual expression generation method and device and computer readable storage medium
KR102045575B1 (en) Smart mirror display device
US11297225B2 (en) Video producing method, apparatus, storage medium, and electronic device
CN108600632A (en) It takes pictures reminding method, intelligent glasses and computer readable storage medium
CN104834382B (en) Application program for mobile terminal response system and method
US11943283B2 (en) Dynamically assigning storage locations for messaging system data
US11769286B2 (en) Beauty processing method, electronic device, and computer-readable storage medium
US11558328B2 (en) Automatically generated personalized message
US20240046538A1 (en) Method for generating face shape adjustment image, model training method, apparatus and device
US11380037B2 (en) Method and apparatus for generating virtual operating object, storage medium, and electronic device
US20240070976A1 (en) Object relighting using neural networks
US20240046072A1 (en) Modulated image segmentation
WO2016082470A1 (en) Method for image processing, device and computer storage medium
WO2021057644A1 (en) Photographing method and apparatus
CN112488650A (en) Conference atmosphere adjusting method, electronic equipment and related products
CN109949213B (en) Method and apparatus for generating image

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: 19815342

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: 19815342

Country of ref document: EP

Kind code of ref document: A1