CN108898650A - Humanoid material creation method and relevant apparatus - Google Patents

Humanoid material creation method and relevant apparatus Download PDF

Info

Publication number
CN108898650A
CN108898650A CN201810623737.7A CN201810623737A CN108898650A CN 108898650 A CN108898650 A CN 108898650A CN 201810623737 A CN201810623737 A CN 201810623737A CN 108898650 A CN108898650 A CN 108898650A
Authority
CN
China
Prior art keywords
target
image
humanoid
ornament
target person
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.)
Granted
Application number
CN201810623737.7A
Other languages
Chinese (zh)
Other versions
CN108898650B (en
Inventor
胡孔勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201810623737.7A priority Critical patent/CN108898650B/en
Publication of CN108898650A publication Critical patent/CN108898650A/en
Application granted granted Critical
Publication of CN108898650B publication Critical patent/CN108898650B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T11/002D [Two Dimensional] image generation
    • G06T11/60Editing figures and text; Combining figures or text
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation
    • G06T13/403D [Three Dimensional] animation of characters, e.g. humans, animals or virtual beings

Abstract

This application discloses a kind of humanoid material creation method and relevant apparatus, are applied to electronic equipment, including:Target image is obtained, target image includes the image on the head of target person;When including the image of at least one target ornament in detecting target image, at least one first material of target person is created according to the image of at least one target ornament, wherein the corresponding target ornament of each first material;According to the second material of other images creation target person in target image, the second material corresponds to the facial characteristics of target person, other images are the image in target image in addition to the image of at least one target ornament;According at least one first material and the second material, the humanoid material of target person is generated, and humanoid material support movement follows function.The application is conducive to improve the accuracy and efficiency of electronic equipment creation material.

Description

Humanoid material creation method and relevant apparatus
Technical field
This application involves electronic technology field more particularly to a kind of humanoid material creation methods and relevant apparatus.
Background technique
With the rapid development of intelligent terminal (such as smart phone) technology and more more and more universal, user is become Indispensable electronic product in daily life.The current some application programs of mobile phone can generate the emoji table of cartoon type Feelings, the emoji expression are usually to be pre-stored in mobile phone as material template, and after user selects a material, the element can be used Material synthesising picture etc..
Summary of the invention
The embodiment of the present application provides a kind of humanoid material creation method and relevant apparatus, provides a kind of dynamic creation complex man The method of morph material improves the accuracy and efficiency of electronic equipment creation material.
In a first aspect, the embodiment of the present application provides a kind of humanoid material creation method, it is applied to electronic equipment, the method Including:
Target image is obtained, the target image includes the image on the head of target person;
In detecting the target image include at least one target ornament image when, according to it is described at least one The image of target ornament creates at least one first material of the target person, wherein each first material is one corresponding Target ornament;
The second material of the target person, second material pair are created according to other images in the target image The facial characteristics of the target person is answered, other described images are in the target image except at least one described target ornament Image except image;
According at least one described first material and second material, the humanoid material of the target person is generated, and The humanoid material support movement follows function.
Second aspect, the embodiment of the present application provide a kind of humanoid material creating device, are applied to electronic equipment, described humanoid Material creating device includes processing unit and communication unit, wherein
The processing unit, for obtaining target image by the communication unit, the target image includes target person The image on the head of object;And in detecting the target image include at least one target ornament image when, according to The image of at least one target ornament creates at least one first material of the target person, wherein each first Material corresponds to a target ornament;And the second of the target person is created according to other images in the target image Material, second material correspond to the facial characteristics of the target person, other described images is remove institute in the target image State the image except the image of at least one target ornament;And according at least one described first material and second element Material generates the humanoid material of the target person, and the humanoid material support movement follows function.
The third aspect, the embodiment of the present application provide a kind of electronic equipment, including processor, memory, communication interface and One or more programs, wherein said one or multiple programs are stored in above-mentioned memory, and are configured by above-mentioned It manages device to execute, above procedure is included the steps that for executing the instruction in the embodiment of the present application first aspect either method.
Fourth aspect, the embodiment of the present application provide a kind of computer readable storage medium, wherein above-mentioned computer-readable Storage medium storage is used for the computer program of electronic data interchange, wherein above-mentioned computer program executes computer such as Step some or all of described in the embodiment of the present application first aspect either method.
As can be seen that in the embodiment of the present application, electronic equipment obtains target image first, and target image includes target person The image on the head of object;Secondly, in detecting target image include at least one target ornament image when, according at least At least one first material of the image creation target person of one target ornament, again, according to other in target image Image creates the second material of target person, finally, generating target person according at least one first material and the second material Humanoid material, wherein the corresponding target ornament of each first material, the second material correspond to the facial characteristics of target person, Humanoid material support movement follows function.As it can be seen that complicated character image of the electronic equipment for wearing ornament, it being capable of hierarchical The corresponding material of face data of ornament corresponding material and user is created, and can be acted by facial expression and follow realization The function of enhancing display AR is also more accorded with relative to selecting the mode for prestoring fixed material or whole creation material more flexible Users ' individualized requirement is closed, the accuracy and flexibility of electronic equipment creation material are improved.
Detailed description of the invention
Technical solution in ord to more clearly illustrate embodiments of the present application or in background technique below will be implemented the application Attached drawing needed in example or background technique is illustrated.
Figure 1A is a kind of schematic diagram of the program running space of smart phone;
Figure 1B is a kind of system architecture diagram of Android system;
Fig. 2 is a kind of flow diagram of humanoid material creation method provided by the embodiments of the present application;
Fig. 3 is the flow diagram of the humanoid material creation method of another kind disclosed in the embodiment of the present application;
Fig. 4 is the flow diagram of the humanoid material creation method of another kind disclosed in the embodiment of the present application;
Fig. 5 is the structural schematic diagram of a kind of electronic equipment disclosed in the embodiment of the present application;
Fig. 6 is a kind of functional unit composition block diagram of humanoid material creating device disclosed in the embodiment of the present application;
Fig. 7 is a kind of structural schematic diagram of graphic processing circuit disclosed in the embodiment of the present application.
Specific implementation
In order to make those skilled in the art more fully understand application scheme, below in conjunction in the embodiment of the present application Attached drawing, the technical scheme in the embodiment of the application is clearly and completely described, it is clear that described embodiment is only The embodiment of the application a part, instead of all the embodiments.Based on the embodiment in the application, ordinary skill people Member's every other embodiment obtained without making creative work, all should belong to the model of the application protection It encloses.
It is described in detail separately below.
The description and claims of this application and term " first ", " second ", " third " and " in the attached drawing Four " etc. are not use to describe a particular order for distinguishing different objects.In addition, term " includes " and " having " and it Any deformation, it is intended that cover and non-exclusive include.Such as it contains the process, method of a series of steps or units, be System, product or equipment are not limited to listed step or unit, but optionally further comprising the step of not listing or list Member, or optionally further comprising other step or units intrinsic for these process, methods, product or equipment.
Referenced herein " embodiment " is it is meant that a particular feature, structure, or characteristic described can wrap in conjunction with the embodiments It is contained at least one embodiment of the application.Each position in the description occur the phrase might not each mean it is identical Embodiment, nor the independent or alternative embodiment with other embodiments mutual exclusion.Those skilled in the art explicitly and Implicitly understand, embodiment described herein can be combined with other embodiments.
As shown in Figure 1A, the electronic equipments such as smart phone are typically provided with program running space at present, and program operation is empty Between include user's space and operating system space, wherein user's space operation have one or more application program, this or more A application program is the third party application of electronic equipment installation, humanoid material creation method described in the embodiment of the present application Software algorithm may operate in user's space, operating system space motion has the operating system of electronic equipment.
The electronic equipment can specifically run the Mobile operating system iOS of Android android system, Apple Inc.'s exploitation Deng not doing unique restriction herein.As shown in Figure 1B, by taking electronic equipment operation has android system as an example, corresponding user Space includes the application layer (Applications) in the android system, and operating system space may include the Android system Application framework layer (Application Framework), system Runtime Library layer (including system Runtime Library layer in system Android Runtime when Libraries and Android are run), Linux inner core (Linux Kernel).Wherein, it applies It include all kinds of application programs directly interacted with user, or the service routine for running on backstage write by Java language on layer. For example, the program for the common basic function realized on smart phone, such as short message service (Short Messaging Service, SMS) short message, dialing, Photo Browser, calendar, game, map, WWW (World Wide Web, Web) programs such as browser and the other applications of developer's exploitation.Application framework layer provides exploitation Android A series of class libraries needed for application program can be used in reusing component, can also realize personalized extension by inheriting.System Runtime Library layer is the support of application framework, provides service for the various components in android system.System Runtime Library layer by System class libraries and Android are constituted when running.It include core library and Dalvik virtual machine two parts when Android is run.Linux Inner nuclear layer is for realizing hardware device drivers, process and memory management, network protocol stack, power management, the cores such as wireless communication Function.
Electronic equipment may include the various handheld devices with wireless communication function, mobile unit, wearable device (example Such as smartwatch, Intelligent bracelet, pedometer), calculate equipment or be connected to other processing equipments of radio modem, with And various forms of user equipmenies (User Equipment, UE), mobile station (Mobile Station, MS), terminal device (terminal device) etc..For convenience of description, apparatus mentioned above is referred to as electronic equipment.
It describes in detail below to the embodiment of the present application.
Referring to Fig. 2, Fig. 2 is that the embodiment of the present application provides a kind of flow diagram of humanoid material creation method, answer For electronic equipment, I includes at morph material creation method:
S201, electronic equipment obtain target image, and the target image includes the image on the head of target person;
Wherein, the image on the head of the target person may include the fractional objects such as face, hair and ornament Image.
S202, the electronic equipment include the image of at least one target ornament in detecting the target image When, at least one first material of the target person is created according to the image of at least one target ornament, wherein every The corresponding target ornament of a first material.
Wherein, each first material supports individually-edited function, improves source material editing flexibility and intelligence.
Wherein, the target ornament comprises at least one of the following:The accessories such as glasses, cap, headwear.
In a kind of realization, electronic equipment is after creating at least one first material, display circle that can be current in display screen Each first material is presented in face, the color of first material, pattern are close with corresponding target ornament, as target user wears The glasses worn are black, Circular mirror frame, then corresponding first material of the glasses is also possible to the glasses of a cartoon type, and face Also non-black, shape are circle to color, alternatively, can convert the color and/or shape according to the facial expression of active user, such as It detecting User Colors expression, then the glasses color is updated to black, optic portion can also do the processing of sunglasses pattern, etc., Unique restriction is not done herein.
During another kind is realized, electronic equipment is after creating at least one first material, display that can be current in display screen Each first material is presented in interface, also, when detecting the selection operation for some the first material, can show this The set interface of first material, wherein the color of first material, pattern can carry out customized setting.
S203, the electronic equipment create the second element of the target person according to other images in the target image Material, second material correspond to the facial characteristics of the target person, other described images are in the target image except described Image except the image of at least one target ornament;
Wherein, second material can be 3D animation types emoji head portrait or sketch, paint from life, oil painting etc. it is each Class pre-sets emoji head portrait of style etc., does not do unique restriction herein.The face feature and use that second material is integrally presented Family face characteristic is similar, such as user's oxeye, small mouth, then the eyes and mouth that corresponding the second material generated is presented Feature is also possible to the small mouth of oxeye.
S204, the electronic equipment generate the target according at least one described first material and second material The humanoid material of personage, and the humanoid material support movement follows function.
Wherein, a certain position (such as face, head, trunk) for acting the humanoid material for following function to refer to generation The movement of user's corresponding position can be followed and acted, the emoji expression of 3D effect is showed.The humanoid material is a kind of tool The figure image of the preset kind of standby 3D style and features.
As can be seen that electronic equipment obtains target image first, and target image includes target person in the embodiment of the present application Head image;Secondly, in detecting target image include at least one target ornament image when, according at least one At least one first material of the image creation target person of a target ornament, again, according to other shadows in target image As the second material of creation target person, finally, generating the people of target person according at least one first material and the second material Morph material, wherein the corresponding target ornament of each first material, the second material correspond to the facial characteristics of target person, people Morph material support movement follows function.As it can be seen that complicated character image of the electronic equipment for wearing ornament, it being capable of hierarchical wound The corresponding material of ornament and the corresponding material of face data of user are built, and can be acted by facial expression and realization is followed to increase The function of strong display AR also more meets relative to selecting the mode for prestoring fixed material or whole creation material more flexible Users ' individualized requirement improves the accuracy and flexibility of electronic equipment creation material.
In a possible example, the electronic equipment creates institute according to the image of at least one target ornament At least one first material of target person is stated, including:The electronic equipment determines every at least one described target ornament The characteristic information of a target ornament, the characteristic information include profile information;According to the feature of each target ornament Corresponding first material of information creating obtains at least one first material of the target person.
Wherein, the characteristic information of target ornament can specifically be imported the material being pre-configured and create engine by electronic equipment, To create corresponding first material.
As it can be seen that electronic equipment can create the first material based on the profile information of target ornament, due to wheel in this example Wide information is the property parameters of most direct reflection body resemblance, so the first material is created using profile information to be mentioned High electronic equipment creates the accuracy of the first material.
In a possible example, the electronic equipment creates the mesh according to other images in the target image The second material of personage is marked, including:The electronic equipment removes at least one target ornament described in the target image Image obtains updated target image;Determine the face feature information in the updated target image;According to the face Portion's characteristic information creates the second material of the target person.
Wherein, the face feature information comprises at least one of the following:The big little profile of eyes, nose profile, cheek profile, Forehead, chin, mouth profile, hairline etc. can also include eye color, colour of skin etc..
As it can be seen that in this example, since the profile and color of the organ of the face of user are that face is most dominant and intuitive Feature can be created that the human face similarity degree with user so electronic equipment analyzes the type feature to create the second material Higher material improves the accuracy that electronic equipment creates the second material.
In a possible example, the electronic equipment is according at least one described first material and second element Material generates the humanoid material of the target person, including:The electronic equipment synthesizes at least one described first material and second Material obtains the head material of the target person;The humanoid material of the target person is created according to the head material.
In this possible example, the electronic equipment creates the humanoid element of the target person according to the head material Material, including:The electronic equipment selection is adapted to the body material of the head material;Merge the head material and the body Material obtains the humanoid material of the target person.
Wherein, the first material and the second material are supported individually-edited, between each other without constraint.
As it can be seen that electronic equipment only needs to obtain individual target image in this example, can quickly be created that the first material and Second material removes glasses without user to create the second material, quickly and efficiently.
In a possible example, the electronic equipment is according at least one described first material and second element Material, after the humanoid material for generating the target person, the method also includes:The editor that user is obtained for target material refers to It enables, the target material is updated according to the edit instruction, obtain updated target material, the target material includes described Any one or more materials at least one first material and second material;Synthesize updated target material and not The material of update obtains the updated humanoid material of the target person;Take pictures or video process in call the update Humanoid material afterwards.
As it can be seen that in this example, electronic equipment after founder's morph material, may further for the first material and/or Second material is edited, and to update the people's morph material, improves the convenient flexibility of material and efficiency.
In a possible example, the electronic equipment is according at least one described first material and second element Material generates the humanoid material of the target person, including:The edit instruction that user is directed to target material is obtained, according to the volume Volume instruction updates the target material, obtains updated target material, the target material include it is described at least one first Any one or more materials in material and second material;The material for synthesizing updated target material and not updating, The head material of the target person is obtained, the material not updated includes described at least one first material and described second Material in material in addition to the target material;The humanoid material of the target person is created according to the head material.
As it can be seen that in this example, electronic equipment specifically can create the first material and the during founder's morph material After two materials, the edit instruction that can receive user carries out suspended time editing, finally regenerates the humanoid material determined, mentions High source material editing flexibility.
In a possible example, the electronic equipment obtains target image, including:The electronic equipment is detecting When humanoid material request to create, the target person is shot, target image is obtained;Alternatively,
The electronic equipment receives the target image of the target person from server.
Wherein, the image data that the electronic equipment photographic subjects personage obtains can be yuv data or RGBA number According to.
As it can be seen that the acquisition modes of target image are flexible and efficient in this example.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 3, Fig. 3 is that one kind provided by the embodiments of the present application is humanoid The flow diagram of material creation method is applied to electronic equipment.As shown, my morph material creation method includes:
S301, the electronic equipment obtain target image, and the target image includes the image on the head of target person;
S302, the electronic equipment include the image of at least one target ornament in detecting the target image When, determine the characteristic information of each target ornament at least one described target ornament, the characteristic information includes profile Information;
S303, the electronic equipment create corresponding first material according to the characteristic information of each target ornament, Obtain at least one first material of the target person.
S304, the electronic equipment remove the image of at least one target ornament described in the target image, obtain Updated target image;
S305, the electronic equipment determine the face feature information in the updated target image;
S306, the electronic equipment creates the second material of the target person according to the face feature information, described Second material corresponds to the facial characteristics of the target person.
S307, the electronic equipment synthesize at least one described first material and the second material, obtain the target person Head material;
S308, the electronic equipment create the humanoid material of the target person according to the head material.
S309, the electronic equipment obtain the edit instruction that user is directed to target material, are updated according to the edit instruction The target material, obtains updated target material, and the target material includes at least one described first material and described Any one or more materials in second material;
S310, the material that the electronic equipment synthesizes updated target material and do not update obtain the target person Updated humanoid material;
S311, the electronic equipment take pictures or video process in call the updated humanoid material.
As can be seen that electronic equipment obtains target image first, and target image includes target person in the embodiment of the present application Head image;Secondly, in detecting target image include at least one target ornament image when, according at least one At least one first material of the image creation target person of a target ornament, again, according to other shadows in target image As the second material of creation target person, finally, generating the people of target person according at least one first material and the second material Morph material, wherein the corresponding target ornament of each first material, the second material correspond to the facial characteristics of target person, people Morph material support movement follows function.As it can be seen that complicated character image of the electronic equipment for wearing ornament, it being capable of hierarchical wound The corresponding material of ornament and the corresponding material of face data of user are built, and can be acted by facial expression and realization is followed to increase The function of strong display AR also more meets relative to selecting the mode for prestoring fixed material or whole creation material more flexible Users ' individualized requirement improves the accuracy and flexibility of electronic equipment creation material.
In addition, electronic equipment can create the first material based on the profile information of target ornament, since profile information is The property parameters of most direct reflection body resemblance are set so being created the first material using profile information and can be improved electronics The accuracy of the first material of standby creation.
Further, since the profile and color of the organ of the face of user are the most dominant and intuitive features of face, so Electronic equipment analyzes the type feature to create the second material, can be created that and the higher element of the human face similarity degree of user Material improves the accuracy that electronic equipment creates the second material.
In addition, electronic equipment only needs to obtain individual target image, it can quickly be created that the first material and the second material, Glasses are removed without user to create the second material, quickly and efficiently.
In addition, electronic equipment is after founder's morph material, may further for the first material and/or the second material into Edlin improves the convenient flexibility of material and efficiency to update the people's morph material.
It is consistent with the embodiment shown in Fig. 2, referring to Fig. 4, Fig. 4 is that one kind provided by the embodiments of the present application is humanoid The flow diagram of material creation method is applied to electronic equipment.As shown, my morph material creation method includes:
S401, the electronic equipment obtain target image, and the target image includes the image on the head of target person;
S402, the electronic equipment include the image of at least one target ornament in detecting the target image When, determine the characteristic information of each target ornament at least one described target ornament, the characteristic information includes profile Information;
S403, the electronic equipment create corresponding first material according to the characteristic information of each target ornament, Obtain at least one first material of the target person.
S404, the electronic equipment remove the image of at least one target ornament described in the target image, obtain Updated target image;
S405, the electronic equipment determine the face feature information in the updated target image;
S406, the electronic equipment creates the second material of the target person according to the face feature information, described Second material corresponds to the facial characteristics of the target person.
S407, the electronic equipment obtain the edit instruction that user is directed to target material, are updated according to the edit instruction The target material, obtains updated target material, and the target material includes at least one described first material and described Any one or more materials in second material;
S408, the material that the electronic equipment synthesizes updated target material and do not update obtain the target person Head material, the material not updated includes that the target is removed at least one described first material and second material Material except material;
S409, the electronic equipment create the humanoid material of the target person according to the head material.
It can be seen that the embodiment of the present application, electronic equipment obtains target image first, and target image includes target person The image on head;Secondly, in detecting target image include at least one target ornament image when, according at least one At least one first material of the image creation target person of target ornament, again, according to other images in target image The second material for creating target person, finally, generating the humanoid of target person according at least one first material and the second material Material, wherein the corresponding target ornament of each first material, the second material corresponds to the facial characteristics of target person, humanoid Material support movement follows function.As it can be seen that complicated character image of the electronic equipment for wearing ornament, it being capable of hierarchical creation The corresponding material of face data of the corresponding material of ornament and user, and can be acted by facial expression and realization is followed to enhance The function of showing AR also more meets use relative to selecting the mode for prestoring fixed material or whole creation material more flexible Family individual demand improves the accuracy and flexibility of electronic equipment creation material.
In addition, electronic equipment can create the first material based on the profile information of target ornament, since profile information is The property parameters of most direct reflection body resemblance are set so being created the first material using profile information and can be improved electronics The accuracy of the first material of standby creation.
Further, since the profile and color of the organ of the face of user are the most dominant and intuitive features of face, so Electronic equipment analyzes the type feature to create the second material, can be created that and the higher element of the human face similarity degree of user Material improves the accuracy that electronic equipment creates the second material.
In addition, electronic equipment only needs to obtain individual target image, it can quickly be created that the first material and the second material, Glasses are removed without user to create the second material, quickly and efficiently.
In addition, electronic equipment can during founder's morph material, specifically after creating the first material and the second material, The edit instruction that can receive user carries out suspended time editing, finally regenerates the humanoid material determined, improves material and compiles Collect flexibility.
It is consistent with described Fig. 2, Fig. 3, embodiment shown in Fig. 4, referring to Fig. 5, Fig. 5 is provided by the embodiments of the present application The structural schematic diagram of a kind of electronic equipment 500, the electronic equipment 500 operation have one or more application program and operating system, As shown, the electronic equipment 500 includes processor 510, memory 520, communication interface 530 and one or more programs 521, wherein one or more of programs 521 are stored in the memory 520, and are configured by the processor 510 execute, and one or more of programs 521 include the instruction for executing following steps;
Target image is obtained, the target image includes the image on the head of target person;
In detecting the target image include at least one target ornament image when, according to it is described at least one The image of target ornament creates at least one first material of the target person, wherein each first material is one corresponding Target ornament;
The second material of the target person, second material pair are created according to other images in the target image The facial characteristics of the target person is answered, other described images are in the target image except at least one described target ornament Image except image;
According at least one described first material and second material, the humanoid material of the target person is generated, and The humanoid material support movement follows function.
As can be seen that electronic equipment obtains target image first, and target image includes target person in the embodiment of the present application Head image;Secondly, in detecting target image include at least one target ornament image when, according at least one At least one first material of the image creation target person of a target ornament, again, according to other shadows in target image As the second material of creation target person, finally, generating the people of target person according at least one first material and the second material Morph material, wherein the corresponding target ornament of each first material, the second material correspond to the facial characteristics of target person, people Morph material support movement follows function.As it can be seen that complicated character image of the electronic equipment for wearing ornament, it being capable of hierarchical wound The corresponding material of ornament and the corresponding material of face data of user are built, and can be acted by facial expression and realization is followed to increase The function of strong display AR also more meets relative to selecting the mode for prestoring fixed material or whole creation material more flexible Users ' individualized requirement improves the accuracy and flexibility of electronic equipment creation material.
In a possible example, the target is created in the image of at least one target ornament according to In terms of at least one first material of personage, the instruction in described program is specifically used for executing following operation:Described in determining at least The characteristic information of each target ornament, the characteristic information include profile information in one target ornament;And according to institute The characteristic information for stating each target ornament creates corresponding first material, obtains at least one first element of the target person Material.
In a possible example, the target person is created in described other images according in the target image The second material in terms of, the instruction in described program is specifically used for executing following operation:It removes described in the target image extremely The image of a few target ornament, obtains updated target image;And it determines in the updated target image Face feature information;And the second material of the target person is created according to the face feature information.
In a possible example, in described at least one first material according to and second material, generate In terms of the humanoid material of the target person, the instruction in described program is specifically used for executing following operation:Synthesis is described at least One the first material and the second material obtain the head material of the target person;And institute is created according to the head material State the humanoid material of target person.
In a possible example, described program further includes instructions for performing the following operations:Described according to institute At least one first material and second material are stated, after the humanoid material for generating the target person, user is obtained and is directed to The edit instruction of target material updates the target material according to the edit instruction, obtains updated target material, described Target material includes any one or more materials in described at least one first material and second material;And synthesis Updated target material and the material not updated obtain the updated humanoid material of the target person;And it is taking pictures Or the updated humanoid material is called in video process.
In a possible example, in described at least one first material according to and second material, generate In terms of the humanoid material of the target person, the instruction in described program is specifically used for executing following operation:User is obtained to be directed to The edit instruction of target material updates the target material according to the edit instruction, obtains updated target material, described Target material includes any one or more materials in described at least one first material and second material;And synthesis Updated target material and the material not updated obtain the head material of the target person, the material package not updated Include the material at least one described first material and second material in addition to the target material;And according to the head Portion's material creates the humanoid material of the target person.
In a possible example, in terms of the acquisition target image, the instruction in described program is specifically used for holding The following operation of row:When detecting humanoid material request to create, the target person is shot, target image is obtained;Alternatively,
Receive the target image of the target person from server.
Above-described embodiment is mainly described the scheme of the embodiment of the present application from the angle of method side implementation procedure.It can With understanding, in order to realize the above functions, it comprises execute the corresponding hardware configuration of each function and/or soft for electronic equipment Part module.Those skilled in the art should be readily appreciated that, described in conjunction with the examples disclosed in the embodiments of the present disclosure Unit and algorithm steps, the application can be realized with the combining form of hardware or hardware and computer software.Some function is studied carefully Unexpectedly it is executed in a manner of hardware or computer software driving hardware, the specific application and design constraint depending on technical solution Condition.Professional technician can specifically realize described function to each using distinct methods, but this It realizes it is not considered that exceeding scope of the present application.
The embodiment of the present application can carry out the division of functional unit according to the method example to electronic equipment, for example, can With each functional unit of each function division of correspondence, two or more functions can also be integrated in a processing unit In.The integrated unit both can take the form of hardware realization, can also realize in the form of software functional units.It needs It is noted that be schematical, only a kind of logical function partition to the division of unit in the embodiment of the present application, it is practical real It is current that there may be another division manner.
The following is an embodiment of the apparatus of the present invention, and apparatus of the present invention embodiment is realized for executing embodiment of the present invention method Method.Humanoid material creating device 600 as shown in FIG. 6 is applied to electronic equipment, the humanoid material creating device 600 Including processing unit 601 and communication unit 602, wherein
The processing unit 601, for obtaining target image by the communication unit 602, the target image includes The image on the head of target person;And including the image of at least one target ornament in detecting the target image When, at least one first material of the target person is created according to the image of at least one target ornament, wherein every The corresponding target ornament of a first material;And the target person is created according to other images in the target image The second material, second material corresponds to the facial characteristics of the target person, other described images are the target image In image in addition to the image of at least one target ornament;And according at least one described first material and described Second material generates the humanoid material of the target person, and the humanoid material support movement follows function.
Wherein, the humanoid material creating device can also include storage unit 603, for storing the program of electronic equipment Code and data.The processing unit 601 can be processor, and the communication unit 602 can be image capture device, input Equipment or transceiver, storage unit 603 can be memory.
As can be seen that electronic equipment obtains target image first, and target image includes target person in the embodiment of the present application Head image;Secondly, in detecting target image include at least one target ornament image when, according at least one At least one first material of the image creation target person of a target ornament, again, according to other shadows in target image As the second material of creation target person, finally, generating the people of target person according at least one first material and the second material Morph material, wherein the corresponding target ornament of each first material, the second material correspond to the facial characteristics of target person, people Morph material support movement follows function.As it can be seen that complicated character image of the electronic equipment for wearing ornament, it being capable of hierarchical wound The corresponding material of ornament and the corresponding material of face data of user are built, and can be acted by facial expression and realization is followed to increase The function of strong display AR also more meets relative to selecting the mode for prestoring fixed material or whole creation material more flexible Users ' individualized requirement improves the accuracy and flexibility of electronic equipment creation material.
In a possible example, the target is created in the image of at least one target ornament according to In terms of at least one first material of personage, the processing unit 601 is specifically used for:Determine at least one described target ornament In each target ornament characteristic information, the characteristic information includes profile information;And it is decorated according to each target The characteristic information of object creates corresponding first material, obtains at least one first material of the target person.
In a possible example, the target person is created in described other images according in the target image The second material in terms of, the processing unit 601 is specifically used for:Remove the decoration of at least one target described in the target image The image of object obtains updated target image;And the face feature information in the determining updated target image;With And the second material of the target person is created according to the face feature information.
In a possible example, in described at least one first material according to and second material, generate In terms of the humanoid material of the target person, the processing unit 601 is specifically used for:Synthesize at least one described first material and Second material obtains the head material of the target person;And the people of the target person is created according to the head material Morph material.
In a possible example, the processing unit 601 is at least one first material and the institute according to The second material is stated, after the humanoid material for generating the target person, is also used to:User is obtained by the communication unit 601 For the edit instruction of target material, the target material is updated according to the edit instruction, obtains updated target material, The target material includes any one or more materials in described at least one first material and second material;And The material for synthesizing updated target material and not updating obtains the updated humanoid material of the target person;And Take pictures or video process in call the updated humanoid material.
In a possible example, in described at least one first material according to and second material, generate In terms of the humanoid material of the target person, the processing unit 601 is specifically used for:It is obtained and is used by the communication unit 602 Family is directed to the edit instruction of target material, updates the target material according to the edit instruction, obtains updated target element Material, the target material include any one or more materials in described at least one first material and second material; And the material for synthesizing updated target material and not updating, the head material of the target person is obtained, it is described not update Material include material at least one described first material and second material in addition to the target material;And root The humanoid material of the target person is created according to the head material.
In a possible example, in terms of obtaining target image by the communication unit 602, the processing unit 601 are specifically used for:When detecting humanoid material request to create, the target person is shot, target image is obtained;Alternatively,
Receive the target image of the target person from server.
The embodiment of the present invention also provides another electronic equipment.It include image processing circuit, the figure in above-mentioned electronic equipment It is realized as processing circuit can use hardware and or software component, can specifically include various processing units.Fig. 7 is a kind of figure As the exemplary diagram of processing circuit.As shown in fig. 7, for purposes of illustration only, only showing image processing method relevant to the embodiment of the present application The dependent processing unit in face.
As shown in fig. 7, the image processing circuit may include image signal process (Image Signal Processing, ISP) processor 740 and control logic device 750.The image data that imaging device 710 captures is handled by ISP processor 740 first, ISP processor 740 analyzes image data, to capture the image statistics for determining the control parameter of imaging device 710 Information.Imaging device 710 can be the camera with lens 712 and imaging sensor 714.Imaging sensor 714 may include Each imaging pixel of colour filter array (such as Bayer filter), imaging sensor 714 can capture the light intensity and wave of environment light Long message, the imaging sensor 714 transmit raw image data to ISP processor 740.Sensor 720 can be based on preset interface Raw image data is supplied to ISP processor 740.Preset interface includes Standard Mobile Imager framework (Standard Mobile Imaging Architecture, SMIA) interface, other serial or parallel camera interfaces or above-mentioned interface combination.
ISP processor 740 handles raw image data pixel by pixel in various formats.For example, each image pixel can Bit depth with 8,10,12 or 14 bits, ISP processor 740 can carry out raw image data at one or more images Reason operation, statistical information of the collection about image data.Wherein, image processing operations can be by identical or different bit depth precision It carries out.
ISP processor 740 can also receive pixel data from video memory 730.For example, from preset interface by original pixels Data are sent to video memory 730, the raw pixel data in video memory 730 be available to ISP processor 740 for Processing.Video memory 730 can be for the part memory space or independent private memory, type of memory Direct memory access (DMA) (Direct Memory Access, DMA).
When receiving from preset interface or from the raw image data of video memory 730, ISP processor 740 Image processing operations can be carried out, are such as filtered.Image data that treated can be transmitted to video memory 730, so as to aobvious Other processing are carried out before showing.ISP processor 740 receives processing data from video memory 730, and carries out to the processing data Image real time transfer in original domain and RGB and YCbCr color space.Treated, and image data may be output to display 770, so that user watches and/or by graphics engine or graphics processor (Graphics Processing Unit, GPU) into one Step processing.In addition, the output of ISP processor 740 also can be transmitted to video memory 730, and display 770 can be stored from image Device 730 reads image data.In one embodiment, video memory 730 can be configured to realize one or more frame bufferings Device.In addition, the output of ISP processor 740 can be transmitted to encoder/decoder 760, to realize encoding/decoding image data.It compiles The image data of code can be saved, and decompress before being shown in 770 equipment of display.Encoder/decoder 760 can be by CPU or GPU or coprocessor are realized.
The statistical data that ISP processor 740 determines, which can be transmitted, gives control logic device Unit 750.For example, statistical data can wrap Include the image sensings such as automatic exposure, automatic white balance, automatic focusing, flicker detection, black level compensation, 712 shadow correction of lens 714 statistical information of device.Control logic device 750 can be processor and/or microcontroller, and one or more routines can be according to reception Statistical data, determine the control parameter of imaging device 710.For example, control parameter may include 720 control parameter (example of sensor Such as gain, the time of integration of spectrum assignment), camera flash control parameter, 712 control parameter of lens (such as focus or zoom With focal length) or these parameters combination.ISP control parameter may include for automatic white balance and color adjustment (for example, in RGB During processing) 712 shadow correction parameter of gain level and color correction matrix and lens.
The following are the steps that image display correlation in preceding method embodiment is realized with image processing techniques in Fig. 7.
The embodiment of the present application also provides a kind of computer storage medium, wherein computer storage medium storage is for electricity The computer program of subdata exchange, the computer program make computer execute any as recorded in above method embodiment Some or all of method step, above-mentioned computer include electronic equipment.
The embodiment of the present application also provides a kind of computer program product, and above-mentioned computer program product includes storing calculating The non-transient computer readable storage medium of machine program, above-mentioned computer program are operable to that computer is made to execute such as above-mentioned side Some or all of either record method step in method embodiment.The computer program product can be a software installation Packet, above-mentioned computer includes electronic equipment.
It should be noted that for the various method embodiments described above, for simple description, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, some steps may be performed in other sequences or simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, related actions and modules not necessarily the application It is necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, reference can be made to the related descriptions of other embodiments.
In several embodiments provided herein, it should be understood that disclosed device, it can be by another way It realizes.For example, the apparatus embodiments described above are merely exemplary, such as the division of said units, it is only a kind of Logical function partition, there may be another division manner in actual implementation, such as multiple units or components can combine or can To be integrated into another system, or some features can be ignored or not executed.Another point, shown or discussed is mutual Coupling, direct-coupling or communication connection can be through some interfaces, the indirect coupling or communication connection of device or unit, It can be electrical or other forms.
Above-mentioned unit as illustrated by the separation member may or may not be physically separated, aobvious as unit The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme 's.
It, can also be in addition, each functional unit in each embodiment of the application can integrate in one processing unit It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list Member both can take the form of hardware realization, can also realize in the form of software functional units.
If above-mentioned integrated unit is realized in the form of SFU software functional unit and sells or use as independent product When, it can store in a computer-readable access to memory.Based on this understanding, the technical solution of the application substantially or Person says that all or part of the part that contributes to existing technology or the technical solution can body in the form of software products Reveal and, which is stored in a memory, including some instructions are used so that a computer equipment (can be personal computer, server or network equipment etc.) executes all or part of each embodiment above method of the application Step.And memory above-mentioned includes:USB flash disk, read-only memory (ROM, Read-Only Memory), random access memory The various media that can store program code such as (RAM, Random Access Memory), mobile hard disk, magnetic or disk.
Those of ordinary skill in the art will appreciate that all or part of the steps in the various methods of above-described embodiment is can It is completed with instructing relevant hardware by program, which can store in a computer-readable memory, memory May include:Flash disk, read-only memory (English:Read-Only Memory, referred to as:ROM), random access device (English: Random Access Memory, referred to as:RAM), disk or CD etc..
The embodiment of the present application is described in detail above, specific case used herein to the principle of the application and Embodiment is expounded, the description of the example is only used to help understand the method for the present application and its core ideas; At the same time, for those skilled in the art can in specific embodiments and applications according to the thought of the application There is change place, in conclusion the contents of this specification should not be construed as limiting the present application.

Claims (10)

1. a kind of humanoid material creation method, which is characterized in that it is applied to electronic equipment, the method includes:
Target image is obtained, the target image includes the image on the head of target person;
In detecting the target image include at least one target ornament image when, according at least one described target The image of ornament creates at least one first material of the target person, wherein the corresponding target of each first material Ornament;
The second material of the target person is created according to other images in the target image, second material corresponds to institute The facial characteristics of target person is stated, other described images are in the target image except the shadow of at least one target ornament Image as except;
According at least one described first material and second material, the humanoid material of the target person is generated, and described Humanoid material support movement follows function.
2. the method according to claim 1, wherein the image of at least one target ornament according to At least one first material of the target person is created, including:
Determine the characteristic information of each target ornament at least one described target ornament, the characteristic information includes profile Information;
Corresponding first material is created according to the characteristic information of each target ornament, obtains the target person at least One the first material.
3. method according to claim 1 or 2, which is characterized in that described other images according in the target image The second material of the target person is created, including:
The image for removing at least one target ornament described in the target image obtains updated target image;
Determine the face feature information in the updated target image;
The second material of the target person is created according to the face feature information.
4. method according to claim 1-3, which is characterized in that described at least one first material according to With second material, the humanoid material of the target person is generated, including:
At least one described first material and the second material are synthesized, the head material of the target person is obtained;
The humanoid material of the target person is created according to the head material.
5. according to the method described in claim 4, it is characterized in that, described at least one first material according to and described Two materials, after the humanoid material for generating the target person, the method also includes:
The edit instruction that user is directed to target material is obtained, the target material is updated according to the edit instruction, is updated Target material afterwards, the target material include in described at least one first material and second material any one or Multiple materials;
The material for synthesizing updated target material and not updating obtains the updated humanoid material of the target person;
Take pictures or video process in call the updated humanoid material.
6. method according to claim 1-3, which is characterized in that described at least one first material according to With second material, the humanoid material of the target person is generated, including:
The edit instruction that user is directed to target material is obtained, the target material is updated according to the edit instruction, is updated Target material afterwards, the target material include in described at least one first material and second material any one or Multiple materials;
The material for synthesizing updated target material and not updating obtains the head material of the target person, described not update Material include material at least one described first material and second material in addition to the target material;
The humanoid material of the target person is created according to the head material.
7. method according to claim 1-6, which is characterized in that the acquisition target image, including:
When detecting humanoid material request to create, the target person is shot, target image is obtained;Alternatively,
Receive the target image of the target person from server.
8. a kind of humanoid material creating device, which is characterized in that be applied to electronic equipment, the humanoid material creating device includes Processing unit and communication unit, wherein
The processing unit, for obtaining target image by the communication unit, the target image includes target person The image on head;And in detecting the target image include at least one target ornament image when, according to described The image of at least one target ornament creates at least one first material of the target person, wherein each first material A corresponding target ornament;And the second element of the target person is created according to other images in the target image Material, second material correspond to the facial characteristics of the target person, other described images are in the target image except described Image except the image of at least one target ornament;And according at least one described first material and second element Material generates the humanoid material of the target person, and the humanoid material support movement follows function.
9. a kind of electronic equipment, which is characterized in that including processor, memory, communication interface, and one or more programs, One or more of programs are stored in the memory, and are configured to be executed by the processor, described program packet Include the instruction for executing the step in the method according to claim 1 to 7.
10. a kind of computer readable storage medium, which is characterized in that storage is used for the computer program of electronic data interchange, In, the computer program makes computer execute the method according to claim 1 to 7.
CN201810623737.7A 2018-06-15 2018-06-15 Human-shaped material creating method and related device Active CN108898650B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810623737.7A CN108898650B (en) 2018-06-15 2018-06-15 Human-shaped material creating method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810623737.7A CN108898650B (en) 2018-06-15 2018-06-15 Human-shaped material creating method and related device

Publications (2)

Publication Number Publication Date
CN108898650A true CN108898650A (en) 2018-11-27
CN108898650B CN108898650B (en) 2022-11-15

Family

ID=64344991

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810623737.7A Active CN108898650B (en) 2018-06-15 2018-06-15 Human-shaped material creating method and related device

Country Status (1)

Country Link
CN (1) CN108898650B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909287A (en) * 2019-10-30 2020-03-24 广东优世联合控股集团股份有限公司 Visual processing-based field material loading method and device and storage medium
CN116109798A (en) * 2023-04-04 2023-05-12 腾讯科技(深圳)有限公司 Image data processing method, device, equipment and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1606347A (en) * 2004-11-15 2005-04-13 北京中星微电子有限公司 A video communication method
CN104616331A (en) * 2015-02-16 2015-05-13 百度在线网络技术(北京)有限公司 Image processing method and device on mobile device
CN105279186A (en) * 2014-07-17 2016-01-27 腾讯科技(深圳)有限公司 Image processing method and system
CN107451950A (en) * 2016-05-30 2017-12-08 北京旷视科技有限公司 Face image synthesis method, human face recognition model training method and related device
CN107622522A (en) * 2017-08-09 2018-01-23 广东欧珀移动通信有限公司 The method and device of generation game material

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1606347A (en) * 2004-11-15 2005-04-13 北京中星微电子有限公司 A video communication method
CN105279186A (en) * 2014-07-17 2016-01-27 腾讯科技(深圳)有限公司 Image processing method and system
CN104616331A (en) * 2015-02-16 2015-05-13 百度在线网络技术(北京)有限公司 Image processing method and device on mobile device
CN107451950A (en) * 2016-05-30 2017-12-08 北京旷视科技有限公司 Face image synthesis method, human face recognition model training method and related device
CN107622522A (en) * 2017-08-09 2018-01-23 广东欧珀移动通信有限公司 The method and device of generation game material

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110909287A (en) * 2019-10-30 2020-03-24 广东优世联合控股集团股份有限公司 Visual processing-based field material loading method and device and storage medium
CN116109798A (en) * 2023-04-04 2023-05-12 腾讯科技(深圳)有限公司 Image data processing method, device, equipment and medium
CN116109798B (en) * 2023-04-04 2023-06-09 腾讯科技(深圳)有限公司 Image data processing method, device, equipment and medium

Also Published As

Publication number Publication date
CN108898650B (en) 2022-11-15

Similar Documents

Publication Publication Date Title
US11189071B2 (en) Electronic device for providing avatar animation and method thereof
CN103929606B (en) Control method is presented in image and control device is presented in image
CN110139028A (en) A kind of method and head-mounted display apparatus of image procossing
EP2920683A1 (en) Method of providing a digitally represented visual instruction from a specialist to a user in need of said visual instruction, and a system therefor
WO2019237982A1 (en) Sticker setting method and apparatus
CN205353495U (en) Multi -functional collapsible intelligent glasses
CN108024071A (en) Video content generation method, video content generating means and storage medium
US20210383588A1 (en) Electronic device and method of providing user interface for emoji editing while interworking with camera function by using said electronic device
CN113302694A (en) System and method for generating personalized video based on template
US20240095981A1 (en) Video generation method and apparatus, device and readable storage medium
CN108810277A (en) It takes pictures method for previewing and device
CN113850726A (en) Image transformation method and device
CN108898650A (en) Humanoid material creation method and relevant apparatus
CN106131457A (en) A kind of GIF image generating method, device and terminal unit
CN113850709A (en) Image transformation method and device
US20240046560A1 (en) Three-Dimensional Model Reconstruction Method, Device, and Storage Medium
CN110278386A (en) Image processing method, device, storage medium and electronic equipment
WO2019238001A1 (en) Photograph capturing control method and related device
CN115908120A (en) Image processing method and electronic device
WO2015173344A1 (en) Method of providing a digitally represented visual instruction from a specialist to a user in need of said visual instruction, and a system therefor
CN108874343B (en) Preview window sharing method and device
CN109769112B (en) Assembly setting method of virtual screen all-in-one machine with multiple screen effects
CN108919957A (en) A kind of image transfer method, device, terminal device and storage medium
CN116723410B (en) Method and device for adjusting frame interval
JP7304484B2 (en) Portrait Relighting Using Infrared Light

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
GR01 Patent grant
GR01 Patent grant