CN108846878A - Face textures generation method, device, readable storage medium storing program for executing and mobile terminal - Google Patents

Face textures generation method, device, readable storage medium storing program for executing and mobile terminal Download PDF

Info

Publication number
CN108846878A
CN108846878A CN201810581131.1A CN201810581131A CN108846878A CN 108846878 A CN108846878 A CN 108846878A CN 201810581131 A CN201810581131 A CN 201810581131A CN 108846878 A CN108846878 A CN 108846878A
Authority
CN
China
Prior art keywords
textures
samples pictures
picture
face
datum mark
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201810581131.1A
Other languages
Chinese (zh)
Inventor
马登富
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Qiku Internet Technology Shenzhen Co Ltd
Original Assignee
Qiku Internet Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Qiku Internet Technology Shenzhen Co Ltd filed Critical Qiku Internet Technology Shenzhen Co Ltd
Priority to CN201810581131.1A priority Critical patent/CN108846878A/en
Publication of CN108846878A publication Critical patent/CN108846878A/en
Priority to PCT/CN2019/087073 priority patent/WO2019233256A1/en
Withdrawn legal-status Critical Current

Links

Classifications

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

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 kind of face textures generation method, device, readable storage medium storing program for executing and mobile terminal, this method include:A standard faces image is obtained under textures edit pattern, and parses multiple human face characteristic points in the standard faces image;Multiple samples pictures for selecting from samples pictures database of user are obtained, and obtain a human face characteristic point that user selects for each samples pictures respectively using as datum mark;Each samples pictures are loaded onto textures editing interface, the corresponding position of the standard faces image is placed in, to generate a textures picture;Obtain the title of the textures picture, the final size of each samples pictures, and each samples pictures are with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, and the configuration file of the textures picture is generated according to the title, the final size and the coordinate information.

Description

Face textures generation method, device, readable storage medium storing program for executing and mobile terminal
Technical field
The present invention relates to picture process fields, more particularly to a kind of face textures generation method, device, readable storage medium Matter and mobile terminal.
Background technique
With the continuous development of electronic technology, intelligent terminal, such as mobile phone, tablet computer etc. be increasingly becoming people with The external world is linked up and the important tool of personal resource management, brings many conveniences for people's lives.
The functional diversities of intelligent terminal make more and more application installation, wherein camera is on intelligent terminal Important application.Most of intelligent terminals all have camera function, bring great convenience and enjoyment for people's lives, people The camera of mobile terminal is also increasingly dependent on.Online face textures in camera applications are also very welcomed by the people, but face Textures resource can only be downloaded on the server, and user cannot customize some personalizations by online editing face textures resource Face textures lack the interactivity with user.
Summary of the invention
In view of the above situation, it is necessary to customization face textures picture can not be liked according to oneself for user in the prior art The problem of, a kind of face textures generation method, device, readable storage medium storing program for executing and mobile terminal are provided.
A kind of face textures generation method, including:
A standard faces image is obtained under textures edit pattern, and parses multiple people in the standard faces image Face characteristic point;
Multiple samples pictures that user selects from samples pictures database are obtained, and obtain user respectively for each The human face characteristic point that the samples pictures select is using as datum mark;
Each samples pictures are loaded onto textures editing interface, the correspondence position of the standard faces image is placed in It sets, to generate a textures picture;
Obtain the title of the textures picture, the final size of each samples pictures and each sample graph Piece is with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, and according to the title, the final ruler The very little and described coordinate information generates the configuration file of the textures picture, wherein the title is used in corresponding file mesh Corresponding samples pictures are found in record below.
Further, above-mentioned face textures generation method, wherein described that each samples pictures are loaded onto textures volume In editing interface, the step of being placed in the corresponding position of the standard faces image, includes:
The attribute information of each samples pictures is obtained, the attribute information includes the target ruler of the samples pictures It is very little, and relative to the coordinates of targets of corresponding datum mark;
Each samples pictures are adjusted to the target size, and are loaded onto described in the textures editing interface The position of coordinates of targets.
Further, above-mentioned face textures generation method, wherein described that each samples pictures are loaded onto textures volume In editing interface, it is placed in the corresponding position of the standard faces image, further includes before with the step of one textures picture of generation:
Obtain user's any one samples pictures adjusted.
Further, above-mentioned face textures generation method, wherein user includes following mistakes to the adjustment of the samples pictures At least one of journey:
Zoom in or out the samples pictures;
The position of the mobile samples pictures.
Further, above-mentioned face textures generation method, wherein it is described according to the title, the final size and The coordinate information generated after the step of configuration file of the textures picture:
The samples pictures and configuration file correspondence are stored into textures picture database.
Further, above-mentioned face textures generation method, wherein described by the samples pictures and the configuration file pair The step into textures picture database should be stored further includes later:
When getting signal of the user for the current textures picture selected in the textures picture database, institute is obtained State the corresponding current samples pictures of current textures picture, and according to the corresponding configuration file of the current textures picture will described in work as Preceding samples pictures are loaded onto current display interface.
Further, above-mentioned face textures generation method, wherein it is described according to the title, the final size and The coordinate information generated after the step of configuration file of the textures picture:
The configuration file and samples pictures correspondence are uploaded in server, so that the server update textures Picture database.
The embodiment of the invention also provides a kind of face pinup picture generating means, including:
Acquisition and parsing module, for obtaining a standard faces image under textures edit pattern, and parse the mark Multiple human face characteristic points in quasi- facial image;
First obtains module, the multiple samples pictures selected from samples pictures database for obtaining user, Yi Jifen Not Huo Qu the human face characteristic point that selects for each samples pictures of user using as datum mark;
First generation module is placed in the mark for each samples pictures to be loaded onto textures editing interface The corresponding position of quasi- facial image, to generate a textures picture;
Second obtains module, for obtaining the title of the textures picture, the final size of each samples pictures, with And each samples pictures are with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, wherein described Title below corresponding file directory for finding corresponding samples pictures;
Second generation module, for generating the patch according to the title, the final size and the coordinate information The configuration file of figure picture.
Further, above-mentioned face pinup picture generating means, wherein first generation module is used for:
The attribute information of each samples pictures is obtained, the attribute information includes the target ruler of the samples pictures It is very little, and relative to the coordinates of targets of corresponding datum mark;
Each samples pictures are adjusted to the target size, and are loaded onto described in the textures editing interface The position of coordinates of targets.
Further, above-mentioned face pinup picture generating means further include:
Third obtains module, for obtaining user's any one samples pictures adjusted.
Further, above-mentioned face pinup picture generating means, wherein user includes following mistakes to the adjustment of the samples pictures At least one of journey:
Zoom in or out the samples pictures;
The position of the mobile samples pictures.
Further, above-mentioned face pinup picture generating means further include:
Memory module, for storing the samples pictures and configuration file correspondence into textures picture database.
Further, above-mentioned face pinup picture generating means further include:
Display module gets user for the current textures picture selected in the textures picture database for working as When signal, the corresponding current samples pictures of the current textures picture are obtained, and match according to the current textures picture is corresponding It sets file the current samples pictures are loaded onto current display interface.
Further, above-mentioned face pinup picture generating means further include:
Uploading module, for the configuration file and samples pictures correspondence to be uploaded in server, so that described Server update textures picture database.
The embodiment of the invention also provides a kind of readable storage medium storing program for executing, are stored thereon with program, described program is by processor The step of above-mentioned any one method is realized when execution.
The embodiment of the invention also provides a kind of mobile terminals, including memory, processor and storage are on a memory And the program that can be run on a processor, the step of processor realizes above-mentioned any one method when executing described program.
In the embodiment of the present invention, user is obtained from samples pictures database and selects multiple samples pictures, and is added to one by one Textures editing interface after adjustment is completed, is saved in the size and location that editing interface adjusts every picture to suitable position And generate face textures configuration file.This method can be convenient user produced and generated according to the hobby of oneself it is some suitable online Face textures picture enriches the online face textures resource of camera applications.
Detailed description of the invention
Fig. 1 is the flow chart for the face textures generation method that first embodiment of the invention provides;
Fig. 2 is the flow chart for the face textures generation method that second embodiment of the invention provides;
Fig. 3 is the flow chart for the face textures generation method that third embodiment of the invention provides;
Fig. 4 is the structural block diagram for the face pinup picture generating means that third embodiment of the invention provides.
Specific embodiment
The embodiment of the present invention is described below in detail, examples of the embodiments are shown in the accompanying drawings, wherein from beginning to end Same or similar label indicates same or similar element or element with the same or similar functions.Below with reference to attached The embodiment of figure description is exemplary, and for explaining only the invention, and is not considered as limiting the invention.
Referring to following description and drawings, it will be clear that these and other aspects of the embodiment of the present invention.In these descriptions In attached drawing, some particular implementations in the embodiment of the present invention are specifically disclosed, to indicate to implement implementation of the invention Some modes of the principle of example, but it is to be understood that the scope of embodiments of the invention is not limited.On the contrary, of the invention Embodiment includes all changes, modification and the equivalent fallen within the scope of the spirit and intension of attached claims.
Referring to Fig. 1, this method is applied to mobile terminal for the face textures generation method in first embodiment of the invention In, mobile terminal such as mobile phone, tablet computer, wearable device etc..The mobile terminal is equipped with camera apparatus, can in real time into Row takes pictures or photographs.In the present embodiment, user can start the textures edit pattern of mobile terminal camera application, in textures editor User can be according to oneself hobby online editing face textures under mode, and can apply immediately.The face textures generation method packet Include step S11~S14.
Step S11 obtains a standard faces image under textures edit pattern, and parses in the standard faces image Multiple human face characteristic points.
Specifically, shooting the front face photo an of standard of comparison as mark by camera under textures edit pattern Quasi- facial image, or select a picture as standard faces image from the picture being locally stored.And use existing face Identification technology identifies the standard faces image of acquisition, obtains human face characteristic point, the human face characteristic point such as eyes, nose Son, mouth, ear, eyebrow etc..The extraction of human face characteristic point can be used any one face characteristic in the prior art and extract calculation Method, such as based on statistical method or method neural network based.
Step S12 obtains multiple samples pictures that user selects from samples pictures database, and obtains user respectively The human face characteristic point selected for each samples pictures is using as datum mark.
The samples pictures database is pre-stored in mobile terminal, wherein being stored with multiple pictures.The sample graph the piece number It can be the picture that user downloads from Internet resources in advance according to the picture in library, be also possible to the picture that user voluntarily shoots. Picture type in samples pictures database includes but is not limited to ornament (such as glasses, hair band, the neck of different colours, shape Band etc.), animal painting and characters in a fancy style.User selects multiple samples pictures according to hobby from samples pictures database, and is directed to The each samples pictures selected determine a human face characteristic point as datum mark.For example, user selects the sample graph of a glasses The samples pictures of piece and a hair band, and eyes in specified value facial image and contouring head are respectively as two sample graphs The datum mark of piece.The selection of the datum mark is convenient for being automatically positioned when subsequent use textures picture.The user being understood that can be with needle Multiple samples pictures are selected with different datum marks, also can choose identical datum mark, is not limited herein.
Each samples pictures are loaded onto textures editing interface by step S13, are placed in the standard faces image Corresponding position, to generate a textures picture.
The samples pictures that user selects successively are loaded onto textures editing interface, and are shown in the upper of standard faces image Layer.The position for being loaded onto the samples pictures on textures editing interface can carry out really according to any one in following two ways It is fixed.
First way is:
The attribute information of each samples pictures is obtained, the attribute information includes the target ruler of the samples pictures It is very little, and relative to the coordinates of targets of corresponding datum mark;
Each samples pictures are adjusted to the target size, and are loaded onto described in the textures editing interface The position of coordinates of targets.
In which, the samples pictures size in samples pictures database is indefinite, may be relative to standard faces image It is excessive or too small.In order to facilitate user's operation, each samples pictures are previously provided with standard size, which can be according to mark Quasi- facial image and the corresponding pre-set dimension ratio of samples pictures are determined.For example, a samples pictures and standard faces image Pre-set dimension ratio be 0.5:1, then it is standard faces according to the standard size of the pre-set dimension ratio-dependent sample image Picture size it is general.Target when loading samples pictures, after the samples pictures are first reduced half, on textures editing interface The position of coordinate is shown.
Wherein, the target coordinate position of samples pictures is pre-set, the target as relative to corresponding datum mark Coordinate.When it is implemented, the mapping table of each human face characteristic point and coordinates of targets is prestored in mobile terminal, when user is true When having determined a human face characteristic point as datum mark, the value of the corresponding coordinates of targets of the datum mark can be inquired.For example, user selects As this picture be eyes, corresponding datum mark be eyes, then inquire the corresponding coordinates of targets of eyes, then by the sample of the selection This picture is shown on the coordinates of targets.
The second way is:
User zooms in or out the samples pictures currently selected in textures editing interface, and is dragged to needs Position.
The adjustment for carrying out picture in first way without user, simplifies the operation of user, more intelligent.Second In mode, user is voluntarily adjusted, more intuitive to the size of samples pictures, the adjustment of position.It should be understood that above two Mode may be used in combination.
Step S14 obtains the title of the textures picture, the final size of each samples pictures and each institute Samples pictures are stated with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, and according to the title, institute It states final size and the coordinate information generates the configuration file of the textures picture, wherein the title is used in correspondence File directory below find corresponding samples pictures.
Multiple samples pictures that user selects are established into syntagmatic, to generate a complete textures picture.And it obtains The final size of each samples pictures and each samples pictures are with the corresponding relationship of datum mark and relative to corresponding base Coordinate information on schedule.
Wherein, the final size of samples pictures is to form the size after the textures picture, is equally likely to original sample The size of this picture, it is also possible to more than or less than the size of original sample picture.Samples pictures are relative to corresponding datum mark Coordinate information, when being to correspond to datum mark as origin, the coordinate of the position at the center of samples pictures.
According to the configuration file, user is that the textures picture generated can be used, and carries out textures to the image taken pictures in real time.Tool Body, when the textures picture edited using user, acquisition for mobile terminal configuration file, according to the title of textures in corresponding text Corresponding samples pictures are found below part catalogue, further according to the size of final size adjustment samples pictures, and according to samples pictures The position of coordinate information adjustment samples pictures relative to corresponding datum mark, can be completed the textures to picture.
In the present embodiment, user is obtained from samples pictures database and selects multiple samples pictures, and is added to textures one by one Editing interface after adjustment is completed, saves and raw in the size and location that editing interface adjusts every picture to suitable position At face textures configuration file.This method can be convenient user and produce and generate some suitable online faces according to the hobby of oneself Textures picture enriches the online face textures resource of camera applications.
Referring to Fig. 2, for the face textures image generating method in second embodiment of the invention, including step S21~ S28。
Step S21 obtains a standard faces image under textures edit pattern, and parses in the standard faces image Multiple human face characteristic points.
In above-mentioned steps, can obtaining from the image that mobile terminal is locally stored for standard faces image can also pass through Camera takes pictures to obtain.The identification of its human face characteristic point can be analyzed to obtain according to face recognition technology in the prior art, herein not It gives and repeating.
Step S22 obtains multiple samples pictures that user selects from samples pictures database, and obtains user respectively The human face characteristic point selected for each samples pictures is using as datum mark.
When user starts textures edit pattern, openable samples pictures database selects more than two samples pictures, and Specify a human face characteristic point as datum mark for each samples pictures selected.It can be used for determining correspondence according to the datum mark Samples pictures position coordinates.When it is implemented, multiple samples pictures of selection can respectively correspond different datum marks, it can also Corresponding same datum mark, not limits herein.
Step S23 obtains the attribute information of each samples pictures, and the attribute information includes the samples pictures Target size, and the coordinates of targets relative to corresponding datum mark.
Step S24 adjusts each samples pictures to the target size, and is loaded onto the textures editing interface In the coordinates of targets position.
Specifically, the target size of samples pictures according to the samples pictures and the pre-set dimension ratio of standard faces image into Row determines that the preset ratio of each samples pictures and standard faces image is pre-stored in mobile terminal.When getting standard When facial image, the size to the standard faces image can be obtained simultaneously.Then according to the ratio of samples pictures and standard faces The target size of samples pictures can be calculated, then adjusts the samples pictures to the size of the target size.It should be understood that The corresponding preset standard dimension scale of different samples pictures can be different, for example, the samples pictures of glasses and standard faces image Pre-set dimension ratio be 0.8:1, the samples pictures of animal painting and the pre-set dimension ratio of facial image are 1:1.
Coordinates of targets of the samples pictures relative to datum mark, as using the datum mark as origin when, samples pictures center Coordinate.The corresponding relationship that each human face characteristic point and coordinates of targets are prestored in mobile terminal, when user determines a face characteristic When putting on the basis of point, mobile terminal can inquire the corresponding coordinates of targets of the datum mark.And samples pictures adjusted are shown The position of the coordinates of targets.
Step S25 obtains user's any one samples pictures adjusted.
Since size, position, the color of samples pictures etc. that adjust in step S24 may not meet wanting for user It asks.Therefore user can manually adjust again samples pictures under textures edit pattern.Adjustment package of the user to the samples pictures Include at least one of following processes:
Zoom in or out the samples pictures;
The position of the mobile samples pictures.
Step S26 obtains the title of the textures picture, the final size of each samples pictures and each institute Samples pictures are stated with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, and according to the title, institute It states final size and the coordinate information generates the configuration file of the textures picture.
Wherein, the title of textures picture below corresponding file directory for finding corresponding samples pictures.And sample The final size of picture is the size after being adjusted, and is equally likely to the size of original samples pictures, it is also possible to be greater than Or the size less than original sample picture.Coordinate information of the samples pictures relative to corresponding datum mark, as with corresponding base When being on schedule origin, the coordinate of the centers of samples pictures relative to the position of origin.
Step S27 stores the samples pictures and configuration file correspondence into textures picture database.
After what a textures picture user makes, corresponding samples pictures and configuration file packing can be stored to textures figure In sheet data library, in order to be called when subsequent use.
Step S28, when getting user for the signal of the current textures picture selected in the textures picture database When, obtain the corresponding current samples pictures of the current textures picture, and literary according to the corresponding configuration of the current textures picture The current samples pictures are loaded onto current display interface by the information in part.
When the textures picture for needing that user is called to edit, the textures picture can be selected in textures picture database, and It calls.When mobile terminal receives the signal for calling textures picture, according to the name of textures recorded in corresponding configuration file Title finds corresponding current samples pictures below corresponding file directory, and is worked as according to the final size adjustment in configuration file The size of preceding samples pictures, and the current sample of coordinate information adjustment according to current samples pictures relative to corresponding datum mark The textures to image can be completed in the position of picture.
It further, in another embodiment of the invention, further include following step after step S28:
Obtain the thumbnail that the textures picture is contracted to pre-set dimension;
The thumbnail is added in the configuration file.
Specifically, searching textures picture for the ease of user, the textures picture of generation is contracted to pre-set dimension, to be formed One thumbnail is added in configuration file.User can select textures picture according to thumbnail, convenient, fast.
In the present embodiment, user selects multiple samples pictures from samples pictures database, and selects suitable face characteristic Point is used as datum mark.After each samples pictures being zoomed in and out according to preset target size, be added to textures editor circle one by one Target coordinate position on face.And user can according to actual needs edit the samples pictures on textures editing interface again, Such as it is sized or adjusts the position of samples pictures centre distance datum mark.So one by one adjust face textures, adjustment complete with Face textures configuration file is generated afterwards.Also, the textures picture that user edits is loaded onto according to the configuration file of face textures On the image currently taken pictures.
Referring to Fig. 3, for the face chart pasting method in third embodiment of the invention, on the basis of second embodiment, It further include step S31.
The configuration file and samples pictures correspondence are uploaded in server, so that the server by step S31 Update textures picture database.
The corresponding samples pictures of face textures and configuration file of generation are packaged pair uploaded by camera applications by user On the server answered.After backstage manager receives the face textures resource packet of user's upload, in background audit, if audit It is downloaded by being then put into the online face resource downloading page for user, if audit does not pass through, passes through mail or other modes It tells that audit does not pass through user, can be uploaded again after modification.After audit passes through, backstage manager passes through audit Face textures resource packet is placed into remote server, downloads for other users
Further, when user connects remote server, mobile terminal is by remote service in real time to textures picture number Edition upgrading is carried out according to library.When it is implemented, mobile terminal judges textures picture according to the version number of face textures configuration file Whether resources bank updates, if the version number of current software is more than or equal to the version number of face textures configuration file, Then update textures picture resource library.
Referring to Fig. 4, for the face pinup picture generating means in third embodiment of the invention, including:
Acquisition and parsing module 10 for obtaining a standard faces image under textures edit pattern, and parse described Multiple human face characteristic points in standard faces image;
First acquisition module 20, the multiple samples pictures selected from samples pictures database for obtaining user, and A human face characteristic point that user selects for each samples pictures is obtained respectively using as datum mark;
First generation module 30 is placed in described for each samples pictures to be loaded onto textures editing interface The corresponding position of standard faces image, to generate a textures picture;
Second obtains module 40, for obtaining the title of the textures picture, the final size of each samples pictures, And each samples pictures are with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, wherein institute Title is stated for finding corresponding samples pictures below corresponding file directory;
Second generation module 50, for according to the generation of the title, the final size and the coordinate information The configuration file of textures picture.
Further, above-mentioned face pinup picture generating means, wherein first generation module 30 is used for:
The attribute information of each samples pictures is obtained, the attribute information includes the target ruler of the samples pictures It is very little, and relative to the coordinates of targets of corresponding datum mark;
Each samples pictures are adjusted to the target size, and are loaded onto described in the textures editing interface The position of coordinates of targets.
Further, above-mentioned face pinup picture generating means further include:
Third obtains module 60, for obtaining user's any one samples pictures adjusted.
Further, above-mentioned face pinup picture generating means, wherein user includes following mistakes to the adjustment of the samples pictures At least one of journey:
Zoom in or out the samples pictures;
The position of the mobile samples pictures.
Further, above-mentioned face pinup picture generating means further include:
Memory module 70, for storing the samples pictures and configuration file correspondence to textures picture database In.
Further, above-mentioned face pinup picture generating means further include:
Display module 80 gets user for the current textures picture selected in the textures picture database for working as Signal when, obtain the corresponding current samples pictures of the current textures picture, and corresponding according to the current textures picture The current samples pictures are loaded onto current display interface by configuration file.
Further, above-mentioned face pinup picture generating means further include:
Uploading module 90, for the configuration file and samples pictures correspondence to be uploaded in server, so that institute State server update textures picture database.
The technical effect of face pinup picture generating means provided by the embodiment of the present invention, realization principle and generation and aforementioned Embodiment of the method is identical, and to briefly describe, Installation practice part does not refer to place, can refer to corresponding in preceding method embodiment Content.
The embodiment of the present invention also proposed a kind of readable storage medium storing program for executing, be stored thereon with computer program, which is located Reason device realizes above-mentioned face textures generation method when executing.
The embodiment of the present invention also proposed a kind of mobile terminal, including memory, processor and storage are on a memory And the program that can be run on a processor, the processor realize above-mentioned face textures generation method when executing described program.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system, including the system of processor or other can be held from instruction The instruction fetch of row system, device or equipment and the system executed instruction) it uses, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium ", which can be, any may include, stores, communicates, propagates or pass Defeated program is for instruction execution system, device or equipment or the dress used in conjunction with these instruction execution systems, device or equipment It sets.
The more specific example (non-exhaustive list) of computer-readable medium includes following:It is routed with one or more Electrical connection section (electronic device), portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium can even is that the paper that can print described program on it or other are suitable Medium, because can then be edited, be interpreted or when necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each section of the invention can be realized with hardware, software, firmware or their combination.Above-mentioned In embodiment, software that multiple steps or method can be executed in memory and by suitable instruction execution system with storage Or firmware is realized.It, and in another embodiment, can be under well known in the art for example, if realized with hardware Any one of column technology or their combination are realized:With for realizing the logic gates of logic function to data-signal Discrete logic, with suitable combinational logic gate circuit specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or spy described in conjunction with this embodiment or example Point is included at least one embodiment or example of the invention.In the present specification, schematic expression of the above terms are not Centainly refer to identical embodiment or example.Moreover, particular features, structures, materials, or characteristics described can be any One or more embodiment or examples in can be combined in any suitable manner.
The embodiments described above only express several embodiments of the present invention, and the description thereof is more specific and detailed, but simultaneously Limitations on the scope of the patent of the present invention therefore cannot be interpreted as.It should be pointed out that for those of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to guarantor of the invention Protect range.Therefore, the scope of protection of the patent of the invention shall be subject to the appended claims.
The embodiment of the present invention further discloses:
A1. a kind of face textures generation method, including:
A standard faces image is obtained under textures edit pattern, and parses multiple people in the standard faces image Face characteristic point;
Multiple samples pictures that user selects from samples pictures database are obtained, and obtain user respectively for each The human face characteristic point that the samples pictures select is using as datum mark;
Each samples pictures are loaded onto textures editing interface, the correspondence position of the standard faces image is placed in It sets, to generate a textures picture;
Obtain the title of the textures picture, the final size of each samples pictures and each sample graph Piece is with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, and according to the title, the final ruler The very little and described coordinate information generates the configuration file of the textures picture, wherein the title is used in corresponding file mesh Corresponding samples pictures are found in record below.
A2. face textures generation method as described in a1, it is described that each samples pictures are loaded onto textures editor circle In face, the step of being placed in the corresponding position of the standard faces image, includes:
The attribute information of each samples pictures is obtained, the attribute information includes the target ruler of the samples pictures It is very little, and relative to the coordinates of targets of corresponding datum mark;
Each samples pictures are adjusted to the target size, and are loaded onto described in the textures editing interface The position of coordinates of targets.
A3. face textures generation method as described in a1, it is described that each samples pictures are loaded onto textures editor circle In face, it is placed in the corresponding position of the standard faces image, further includes before with the step of one textures picture of generation:
Obtain user's any one samples pictures adjusted.
A4. the face textures generation method as described in A3, during user includes following to the adjustment of the samples pictures At least one:
Zoom in or out the samples pictures;
The position of the mobile samples pictures.
A5. face textures generation method as described in a1, it is described according to the title, the final size and the seat Further include after the step of mark information generates the configuration file of the textures picture:
The samples pictures and configuration file correspondence are stored into textures picture database.
A6. face textures generation method as described in a5, it is described to deposit the samples pictures and configuration file correspondence Store up the step into textures picture database further includes later:
When getting signal of the user for the current textures picture selected in the textures picture database, institute is obtained State the corresponding current samples pictures of current textures picture, and according to the corresponding configuration file of the current textures picture will described in work as Preceding samples pictures are loaded onto current display interface.
A7. face textures generation method as described in a1, it is described according to the title, the final size and the seat Further include after the step of mark information generates the configuration file of the textures picture:
The configuration file and samples pictures correspondence are uploaded in server, so that the server update textures Picture database.
B8. a kind of face pinup picture generating means, including:
Acquisition and parsing module, for obtaining a standard faces image under textures edit pattern, and parse the mark Multiple human face characteristic points in quasi- facial image;
First obtains module, the multiple samples pictures selected from samples pictures database for obtaining user, Yi Jifen Not Huo Qu the human face characteristic point that selects for each samples pictures of user using as datum mark;
First generation module is placed in the mark for each samples pictures to be loaded onto textures editing interface The corresponding position of quasi- facial image, to generate a textures picture;
Second obtains module, for obtaining the title of the textures picture, the final size of each samples pictures, with And each samples pictures are with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, wherein described Title below corresponding file directory for finding corresponding samples pictures;
Second generation module, for generating the patch according to the title, the final size and the coordinate information The configuration file of figure picture.
B9. the face pinup picture generating means as described in B8, first generation module are used for:
The attribute information of each samples pictures is obtained, the attribute information includes the target ruler of the samples pictures It is very little, and relative to the coordinates of targets of corresponding datum mark;
Each samples pictures are adjusted to the target size, and are loaded onto described in the textures editing interface The position of coordinates of targets.
B10. the face pinup picture generating means as described in B8 further include:
Third obtains module, for obtaining user's any one samples pictures adjusted.
B11. the face pinup picture generating means as described in B10, user include following processes to the adjustment of the samples pictures At least one of:
Zoom in or out the samples pictures;
The position of the mobile samples pictures.
B12. the face pinup picture generating means as described in B8 further include:
Memory module, for storing the samples pictures and configuration file correspondence into textures picture database.
B13. face pinup picture generating means as described in B12 further include:
Display module gets user for the current textures picture selected in the textures picture database for working as When signal, the corresponding current samples pictures of the current textures picture are obtained, and match according to the current textures picture is corresponding It sets file the current samples pictures are loaded onto current display interface.
B14. the face pinup picture generating means as described in B8 further include:
Uploading module, for the configuration file and samples pictures correspondence to be uploaded in server, so that described Server update textures picture database.
C15. a kind of readable storage medium storing program for executing is stored thereon with program, A1-A7 is realized when described program is executed by processor Any method.
D16. a kind of mobile terminal, including memory, processor and storage can transport on a memory and on a processor Capable program, the processor realize the method as described in A1-A7 any one when executing described program.

Claims (10)

1. a kind of face textures generation method, which is characterized in that including:
A standard faces image is obtained under textures edit pattern, and parses the spy of multiple faces in the standard faces image Sign point;
Multiple samples pictures that user selects from samples pictures database are obtained, and obtain user respectively for each described The human face characteristic point that samples pictures select is using as datum mark;
Each samples pictures are loaded onto textures editing interface, the corresponding position of the standard faces image is placed in, To generate a textures picture;
Obtain the title of the textures picture, the final size of each samples pictures and each samples pictures with The corresponding relationship of datum mark and coordinate information relative to corresponding datum mark, and according to the title, the final size with And the coordinate information generates the configuration file of the textures picture, wherein the title is used under corresponding file directory Find corresponding samples pictures in face.
2. face textures generation method as described in claim 1, which is characterized in that described to load each samples pictures Into textures editing interface, the step of being placed in the corresponding position of the standard faces image, includes:
The attribute information of each samples pictures is obtained, the attribute information includes the target size of the samples pictures, with And the coordinates of targets relative to corresponding datum mark;
The target that each samples pictures are adjusted to the target size, and are loaded onto the textures editing interface The position of coordinate.
3. face textures generation method as described in claim 1, which is characterized in that described to load each samples pictures Into textures editing interface, it is placed in the corresponding position of the standard faces image, before the step of one textures picture of generation Further include:
Obtain user's any one samples pictures adjusted.
4. face textures generation method as claimed in claim 3, which is characterized in that adjustment package of the user to the samples pictures Include at least one of following processes:
Zoom in or out the samples pictures;
The position of the mobile samples pictures.
5. face textures generation method as described in claim 1, which is characterized in that it is described according to the title, it is described final Size and the coordinate information further include after generating the step of configuration file of the textures picture:
The samples pictures and configuration file correspondence are stored into textures picture database.
6. face textures generation method as claimed in claim 5, which is characterized in that described by the samples pictures and described to match Set the corresponding step stored into textures picture database of file further includes later:
When getting signal of the user for the current textures picture selected in the textures picture database, work as described in acquisition The corresponding current samples pictures of preceding textures picture, and according to the corresponding configuration file of the current textures picture by the current sample This picture is loaded onto current display interface.
7. face textures generation method as described in claim 1, which is characterized in that it is described according to the title, it is described final Size and the coordinate information further include after generating the step of configuration file of the textures picture:
The configuration file and samples pictures correspondence are uploaded in server, so that the server update textures picture Database.
8. a kind of face pinup picture generating means, which is characterized in that including:
Acquisition and parsing module, for obtaining a standard faces image under textures edit pattern, and parse the standard people Multiple human face characteristic points in face image;
First obtains module, the multiple samples pictures selected from samples pictures database for obtaining user, and obtains respectively A human face characteristic point that family is selected for each samples pictures is taken using as datum mark;
First generation module is placed in the standard people for each samples pictures to be loaded onto textures editing interface The corresponding position of face image, to generate a textures picture;
Second obtains module, for obtaining the title of the textures picture, the final size of each samples pictures, and it is every A samples pictures are with the corresponding relationship of datum mark and relative to the coordinate information of corresponding datum mark, wherein the title For finding corresponding samples pictures below corresponding file directory;
Second generation module, for generating the textures figure according to the title, the final size and the coordinate information The configuration file of piece.
9. a kind of readable storage medium storing program for executing, is stored thereon with program, which is characterized in that realized such as when described program is executed by processor Method as claimed in claim 1 to 7.
10. a kind of mobile terminal including memory, processor and stores the journey that can be run on a memory and on a processor Sequence, which is characterized in that the processor realizes the method as described in claim 1-7 any one when executing described program.
CN201810581131.1A 2018-06-07 2018-06-07 Face textures generation method, device, readable storage medium storing program for executing and mobile terminal Withdrawn CN108846878A (en)

Priority Applications (2)

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

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
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
CN108846878A true CN108846878A (en) 2018-11-20

Family

ID=64211350

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810581131.1A Withdrawn CN108846878A (en) 2018-06-07 2018-06-07 Face textures generation method, device, readable storage medium storing program for executing 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
CN110428360A (en) * 2019-07-05 2019-11-08 中国平安财产保险股份有限公司 Automobile image beautification method, equipment, storage medium and device
WO2019233256A1 (en) * 2018-06-07 2019-12-12 奇酷互联网络科技(深圳)有限公司 Human face sticker generating method and apparatus, readable storage medium and mobile terminal
WO2020259152A1 (en) * 2019-06-25 2020-12-30 北京字节跳动网络技术有限公司 Sticker generating method and apparatus, and medium and electronic device
CN112507837A (en) * 2020-12-01 2021-03-16 杭州小影创新科技股份有限公司 Adaptive algorithm based on human head segmentation and using method thereof

Families Citing this family (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
CN111553835B (en) * 2020-04-10 2024-03-26 上海完美时空软件有限公司 Method and device for generating pinching face data of user
CN111729321B (en) * 2020-05-07 2024-03-26 完美世界(重庆)互动科技有限公司 Method, system, storage medium and computing device for constructing personalized roles
CN112132044B (en) * 2020-09-24 2022-04-22 天津锋物科技有限公司 Face sticker generation method based on face alignment and affine transformation

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971607A (en) * 2006-12-04 2007-05-30 谢亦玲 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
CN107679497A (en) * 2017-10-11 2018-02-09 齐鲁工业大学 Video face textures effect processing method and generation system

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103065360B (en) * 2013-01-16 2016-08-24 中国科学院重庆绿色智能技术研究院 A kind of hair shape effect map generalization method and system
CN104616329A (en) * 2015-02-10 2015-05-13 广州视源电子科技股份有限公司 Image generation method and device
CN107122774B (en) * 2017-03-28 2019-12-03 武汉斗鱼网络科技有限公司 A kind of adaptive chart pasting method and system mobile with key point in image
CN107506732B (en) * 2017-08-25 2021-03-30 奇酷互联网络科技(深圳)有限公司 Method, device, mobile terminal and computer storage medium for mapping
CN108846878A (en) * 2018-06-07 2018-11-20 奇酷互联网络科技(深圳)有限公司 Face textures generation method, device, readable storage medium storing program for executing and mobile terminal

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1971607A (en) * 2006-12-04 2007-05-30 谢亦玲 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
CN107679497A (en) * 2017-10-11 2018-02-09 齐鲁工业大学 Video face textures effect processing method and generation system

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2019233256A1 (en) * 2018-06-07 2019-12-12 奇酷互联网络科技(深圳)有限公司 Human face sticker generating method and apparatus, readable storage medium and mobile terminal
WO2020259152A1 (en) * 2019-06-25 2020-12-30 北京字节跳动网络技术有限公司 Sticker generating method and apparatus, and medium and electronic device
US11494961B2 (en) 2019-06-25 2022-11-08 Beijing Bytedance Network Technology Co., Ltd. Sticker generating method and apparatus, and medium and electronic device
CN110428360A (en) * 2019-07-05 2019-11-08 中国平安财产保险股份有限公司 Automobile image beautification method, equipment, storage medium and 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

Also Published As

Publication number Publication date
WO2019233256A1 (en) 2019-12-12

Similar Documents

Publication Publication Date Title
CN108846878A (en) Face textures generation method, device, readable storage medium storing program for executing and mobile terminal
US11321385B2 (en) Visualization of image themes based on image content
CN109819313B (en) Video processing method, device and storage medium
CN109087376B (en) Image processing method, image processing device, storage medium and electronic equipment
US20210303855A1 (en) Augmented reality item collections
EP2992613A1 (en) Method and system for providing personal emoticons
CN108346171B (en) Image processing method, device, equipment and computer storage medium
US20090251484A1 (en) Avatar for a portable device
CN104854848B (en) The processing method of terminal and contact head image
CN115735229A (en) Updating avatar garments in messaging systems
CN111050222B (en) Virtual article issuing method, device and storage medium
CN109101919A (en) Method and apparatus for generating information
CN110012210A (en) Photographic method, device, storage medium and electronic equipment
CN106203286A (en) The content acquisition method of a kind of augmented reality, device and mobile terminal
CN104834382B (en) Application program for mobile terminal response system and method
US11297225B2 (en) Video producing method, apparatus, storage medium, and electronic device
CN109948093B (en) Expression picture generation method and device and electronic equipment
CN106507170A (en) A kind of method for processing video frequency and device
CN114390193B (en) Image processing method, device, electronic equipment and storage medium
CN111800569A (en) Photographing processing method and device, storage medium and electronic equipment
CN110213458A (en) A kind of image processing method, device and storage medium
CN105898137A (en) Image collection and information push methods, image collection and information push devices and mobile phone
CN108563792A (en) Image retrieval processing method, server, client and storage medium
CN113810627B (en) Video processing method, device, mobile terminal and readable storage medium
CN112669416B (en) Customer service system, method, device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication

Application publication date: 20181120

WW01 Invention patent application withdrawn after publication