CN108830928A - Mapping method, device, terminal device and the readable storage medium storing program for executing of threedimensional model - Google Patents

Mapping method, device, terminal device and the readable storage medium storing program for executing of threedimensional model Download PDF

Info

Publication number
CN108830928A
CN108830928A CN201810688329.XA CN201810688329A CN108830928A CN 108830928 A CN108830928 A CN 108830928A CN 201810688329 A CN201810688329 A CN 201810688329A CN 108830928 A CN108830928 A CN 108830928A
Authority
CN
China
Prior art keywords
model
transparent medium
rigid
key point
incidence relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810688329.XA
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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network Technology 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201810688329.XA priority Critical patent/CN108830928A/en
Publication of CN108830928A publication Critical patent/CN108830928A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • Architecture (AREA)
  • Computer Hardware Design (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

This application involves a kind of mapping method of threedimensional model, device, terminal device and readable storage medium storing program for executing.This method includes:According to the multiple first key point, preset first incidence relation and the second incidence relation, the mapping posture information of rigid model and transparent medium model to be mapped is determined;According to the mapping posture information of the rigid model and the transparent medium model, the rigid model and the transparent medium model are redrawn in the test object.This method enables to the posture of rigid model and transparent medium model to change with the attitudes vibration of test object, it considerably increases rigid model and transparent medium model in display form in different positions, so that the display form of the rigid model is more abundant, so that the rigid model and transparent medium model are when attitudes vibration occurs for the test object of its application, it shows that image is more reasonable, therefore further improves the intelligence of human-computer interaction.

Description

Mapping method, device, terminal device and the readable storage medium storing program for executing of threedimensional model
Technical field
This application involves technical field of image processing, more particularly to the mapping method, device, terminal of a kind of threedimensional model Equipment and readable storage medium storing program for executing.
Background technique
With the development of image processing techniques, people are higher and higher for the processing requirement of facial image.For example, life In, the character image that people often shoot it adds the paster of 3-D effect, so that display image more horn of plenty, For example, increasing cap on the personage's head image shot.
In general, when we are to the paster for adding 3-D effect on personage's head image, such as when the ornaments such as cap, lead to It crosses and three-dimensional template image is carried out to plane in the form of two dimensional image shows.
However, be added to the three-dimensional template image of face head zone in the above method, in face towards other directions When, the display form of the three-dimensional template image is relatively simple so that character image show it is unreasonable.
Summary of the invention
Based on this, it is necessary to which in view of the above technical problems, the mapping method, device, terminal for providing a kind of threedimensional model are set Standby and readable storage medium storing program for executing.
In a first aspect, the embodiment of the present invention provides a kind of mapping method of threedimensional model, the method includes:
The test object in image to be mapped is detected, multiple first key points are obtained;
According to the multiple first key point, preset first incidence relation and the second incidence relation, determine to be mapped The mapping posture information of rigid model and transparent medium model;Wherein, there are multiple second keys on the transparent medium model Point, corresponding relationship of first incidence relation between the multiple second key point and the multiple first key point, institute State corresponding relationship of second incidence relation between the rigid model and the transparent medium model;
According to the mapping posture information of the rigid model and the transparent medium model, redrawn in the test object The rigid model and the transparent medium model.
The mapping method of three-dimensional template image provided in this embodiment detects the inspection in image to be mapped by terminal device Object is surveyed, obtains multiple first key points, and close according to multiple first key points, preset first incidence relation and the second association System, determines the mapping posture information of rigid model and transparent medium model to be mapped, thus according to rigid model and transparent matchmaker The mapping posture information of Jie's model redraws rigid model and transparent medium model to be mapped in test object.Due in weight The posture information of rigid model Yu transparent medium model is combined when drawing, and there is the parameter information under three-dimensional each form, because This, the posture of rigid model and transparent medium model after redrawing changes with the attitudes vibration of test object, i.e., aobvious When showing performance, the position and orientation of the rigid model and transparent medium model can follow the middle test object of image to be mapped The variation of position and orientation and occur to change accordingly, considerably increase rigid model and transparent medium model in different postures Under display form so that the display form of the rigid model is more abundant, so that the rigid model and transparent medium mould For type when attitudes vibration occurs for the test object of its application, display image is more reasonable, therefore further improves man-machine friendship Mutual intelligence.
The posture of the rigid model and the transparent medium model after redrawing in one of the embodiments, is with described The attitudes vibration of test object and change.
In one of the embodiments, the method also includes:
According to the multiple first key point, first incidence relation and second incidence relation, determine described When multiple first key point postures change, the attitude parameter of the rigid model and the transparent medium model;
According to the attitude parameter of the rigid model and the transparent medium model, the rigid model and described is determined The mapping posture information of bright medium model.
In the present embodiment, terminal device is determined according to multiple first key points, the first incidence relation and the second incidence relation When multiple first key point postures change, the attitude parameter of rigid model to be mapped and transparent medium model, and root According to the attitude parameter of above-mentioned rigid model to be mapped and transparent medium model, reflecting for rigid model and transparent medium model is determined Penetrate posture information, enable terminal device according to its first key point determine corresponding with first key point rigid model and The mapping posture information of transparent medium model, so that the rigid model and transparent medium model are according to identified mapping posture Information is redrawn on the surface of test object, so that rigid model and transparent medium model can be according to the postures of test object Variation and corresponding variation occurs, make the display image of rigid model more diversified so that the rigid model and When attitudes vibration occurs for the test object of its application, the reasonability of display image greatly improves transparent medium model, therefore Further improve the intelligence of human-computer interaction.
In one of the embodiments, the method also includes:
According to the multiple first key point and first incidence relation, the posture letter of the transparent medium model is determined Breath;Wherein, the posture information of the transparent medium model includes current position coordinates and/or the angle of the multiple second key point Spend information;
According to the posture information of the transparent medium model and second incidence relation, the rigid model is determined Posture information;
According to the posture information of the posture information of the transparent medium model and the rigid model, the rigid body mould is determined The mapping posture information of type and the transparent medium model.
In the present embodiment, terminal device determines transparent medium model according to multiple first key points and the first incidence relation Posture information determine the posture letter of rigid model and according to the posture information of transparent medium model and the second incidence relation Breath, and according to the posture information of transparent medium model and the posture information of rigid model, determine the mapping posture information.Eventually End equipment can determine reflecting for corresponding with first key point rigid model and transparent medium model according to its first key point Posture information is penetrated, so that the rigid model and transparent medium model are according to identified mapping posture information test object again Surface redraw so that rigid model and transparent medium model can occur accordingly according to the attitudes vibration of test object Variation, make the display image of rigid model more diversified, so that the rigid model and transparent medium model exist When attitudes vibration occurs for its test object applied, the reasonability of displayed image is greatly improved, therefore further improves people The intelligence of machine interaction.Further, by carrying out three-dimensional coordinate to the corresponding array of rigid model used by terminal device Transformation, and the mode of the posture information of rigid model is obtained according to transformed array, implementation is simple, has saved terminal While the system resource of equipment, improves and redraw efficiency.
In one of the embodiments, the method also includes:
It is corresponding to the rigid model according to the posture information of the transparent medium model and second incidence relation Array carries out three-dimensional coordinate transformation, obtains transformed array;
According to the transformed array, the posture information of the rigid model is obtained.
In the present embodiment, by carrying out three-dimensional coordinate transformation to the corresponding array of rigid model used by terminal device, And the mode of the posture information of rigid model is obtained according to transformed array, implementation is simple, has saved terminal device System resource while, improve and redraw efficiency.
In one of the embodiments, the method also includes:
According to the multiple first key point and first incidence relation, obtain and the multiple first key point coordinate Multiple second key points of mapping;
According to the position coordinates of the multiple second key point, the posture information of the transparent medium model is determined.
In the present embodiment, terminal device obtains closing with multiple first according to multiple first key points and the first incidence relation Multiple second key points of key point coordinate mapping, and according to the position coordinates of multiple second key points, determine transparent medium model Posture information so that the transparent medium model can follow the change in location of above-mentioned first key point and occur corresponding Attitudes vibration.
In one of the embodiments, the method also includes:
Determine the key point in the rigid model with the transparent medium modal position coordinate matching;
The corresponding pixel of the key point is set for sky, to obtain the rigid model to be mapped and transparent medium mould Type.
In the present embodiment, terminal device by determine in the rigid model with position coordinates in the transparent medium model Matched key point, and it is sky that the corresponding pixel of key point, which is arranged, to obtain rigid model and transparent medium model to be mapped, So that the position that rigid model is blocked by transparent medium model is invisible, the reasonability that rigid model is shown is improved.
In one of the embodiments, the method also includes:
The transparent medium model is transparent headform, and the rigid model is can be with the matched three-dimensional of headform Model.
In one of the embodiments, the method also includes:
The rigid model is at least one of cap model, glasses model.
Second aspect, the embodiment of the present invention provide a kind of mapping device of threedimensional model, and described device includes:Obtain mould Block, the first determining module and first processing module;
The acquisition module obtains multiple first key points for detecting the test object in image to be mapped;
First determining module, for according to the multiple first key point, preset first incidence relation and second Incidence relation determines the mapping posture information of rigid model and transparent medium model to be mapped;Wherein, the transparent medium mould There are multiple second key points, first incidence relation is the multiple second key point and the multiple first key in type Corresponding relationship between point, corresponding pass of second incidence relation between the rigid model and the transparent medium model System;
The first processing module, for being believed according to the mapping posture of the rigid model and the transparent medium model Breath, redraws the rigid model and the transparent medium model in the test object.
The third aspect, the embodiment of the present invention provide a kind of terminal device, including memory and processor, and the memory is deposited Computer program is contained, the processor realizes following steps when executing the computer program:
The test object in image to be mapped is detected, multiple first key points are obtained;
According to the multiple first key point, preset first incidence relation and the second incidence relation, determine to be mapped The mapping posture information of rigid model and transparent medium model;Wherein, there are multiple second keys on the transparent medium model Point, corresponding relationship of first incidence relation between the multiple second key point and the multiple first key point, institute State corresponding relationship of second incidence relation between the rigid model and the transparent medium model;
According to the mapping posture information of the rigid model and the transparent medium model, redrawn in the test object The rigid model and the transparent medium model.
Fourth aspect, the embodiment of the present invention provide a kind of computer readable storage medium, are stored thereon with computer program, The computer program realizes following steps when being executed by processor:
The test object in image to be mapped is detected, multiple first key points are obtained;
According to the multiple first key point, preset first incidence relation and the second incidence relation, determine to be mapped The mapping posture information of rigid model and transparent medium model;Wherein, there are multiple second keys on the transparent medium model Point, corresponding relationship of first incidence relation between the multiple second key point and the multiple first key point, institute State corresponding relationship of second incidence relation between the rigid model and the transparent medium model;
According to the mapping posture information of the rigid model and the transparent medium model, redrawn in the test object The rigid model and the transparent medium model.
Mapping device, terminal device and the storage medium of above-mentioned threedimensional model enable to terminal device detection to be mapped Test object in image, obtains multiple first key points, and according to multiple first key points, preset first incidence relation and Second incidence relation determines the mapping posture information of rigid model and transparent medium model to be mapped, thus according to rigid body mould The mapping posture information of type and transparent medium model redraws rigid model and transparent medium mould to be mapped in test object Type.Due to combining the posture information of rigid model Yu transparent medium model when redrawing, have under three-dimensional each form Parameter information, therefore, the posture of rigid model and transparent medium model after redrawing occur with the attitudes vibration of test object Variation, i.e., when showing performance, the position and orientation of the rigid model and transparent medium model can follow image to be mapped The variation of the position and orientation of middle test object and occur to change accordingly, considerably increase rigid model and transparent medium mould Type is in display form in different positions, so that the display form of the rigid model is more abundant, so that the rigid model With transparent medium model when attitudes vibration occurs for the test object of its application, display image is more reasonable, therefore further Improve the intelligence of human-computer interaction.
Detailed description of the invention
Fig. 1 is the flow diagram of the mapping method for the threedimensional model that one embodiment provides;
Fig. 2 is the flow diagram of the mapping method for the threedimensional model that another embodiment provides;
Fig. 3 is the flow diagram of the mapping method for the threedimensional model that another embodiment provides;
Fig. 4 is the flow diagram of the mapping method for the threedimensional model that another embodiment provides;
Fig. 5 is the flow diagram of the mapping method for the threedimensional model that another embodiment provides;
Fig. 6 is the flow diagram of the mapping method for the threedimensional model that another embodiment provides;
Fig. 7 is the structural schematic diagram of the mapping device for the threedimensional model that one embodiment provides;
Fig. 8 is the structural schematic diagram of the mapping device for the threedimensional model that another embodiment provides;
Fig. 9 is the structural schematic diagram of the mapping device for the threedimensional model that another embodiment provides;
Figure 10 is the structural schematic diagram of the mapping device for the threedimensional model that another embodiment provides;
Figure 11 is the internal structure chart of terminal device in one embodiment.
Specific embodiment
With the development of image processing techniques, people are higher and higher for the processing requirement of image.In general, in order to meet people Various demands, can be to the paster of image that it shoots addition 3-D effect, so that image display modalities are diversified.Example Such as, people can add cap paster in the form of forming portrait and be branded as or to portrait addition glasses patch to the portrait of shooting Paper, in the form of forming portrait and wear glasses.In traditional technology, the display methods of the paster of 3-D effect is added for portrait, Form show it is single so that portrait occur face towards variation when, the form of the portrait hyperphoria with fixed eyeballs eyeball shows unreasonable.This The mapping method of three-dimensional template image, device, terminal device and storage medium provided by inventive embodiments, it is intended to solve above-mentioned Technical problem.
It should be noted that the mapping method of three-dimensional template image provided in an embodiment of the present invention, executing subject can be with It is the mapping device of three-dimensional template image, which can be implemented as by way of software, hardware or software and hardware combining Terminal device it is some or all of.The executing subject of following methods embodiment is illustrated by taking terminal device as an example.
It is with reference to the accompanying drawings and embodiments, right in order to which the objects, technical solutions and advantages of the application are more clearly understood The application is further elaborated.It should be appreciated that specific embodiment described herein is only used to explain the application, not For limiting the application.
In order to which more clearly the embodiment of the present invention is described, here to part noun involved in following embodiments It is illustrated:First key point is the key point of the middle test object of image to be mapped, and the second key point is three-dimensional template image The key point of included transparent medium model;Association of first incidence relation between the first key point and the second key point is closed System, the second incidence relation are the incidence relation of rigid model and transparent medium model in three-dimensional template image.
Fig. 1 is the flow diagram for the mapping method of threedimensional model that one embodiment provides, the present embodiment what is involved is Terminal device is according to the posture information of identified rigid model and the transparent medium model, to the rigid body in test object Model and the transparent medium model are redrawn, so that the detailed process of the display posture abundantization of rigid model.Such as Fig. 1 Shown, this method includes:
Test object in S101, detection image to be mapped, obtains multiple first key points.
Specifically, terminal device, which obtains image to be mapped, determines the inspection in the image to be mapped by image detecting technique Object is surveyed, and according to key point identification technology, detection obtains multiple first key points of the test object.It optionally, should be wait reflect The image of its camera captured in real-time can be passed through for terminal device by penetrating image, can also be the figure prestored inside terminal device Picture;Optionally, which can be a picture, can also be a frame image in video flowing.
The distribution of above-mentioned multiple first key points characterizes the distribution in each region of test object, and terminal device being capable of basis The distribution in each region of the test object judges the posture of the test object.For example, when image to be mapped is facial image, eventually The test object that end equipment detects is human face region, and terminal device can be identified on facial image using human face detection tech Test object be human face region, then multiple first key points of human face region are detected using face key point identification technology, Its multiple first key point got can characterize each of human face region on the image to be mapped and the human face region The distribution of organ.Optionally, which can be facial image, or human body image can also scheme for animal Picture, corresponding test object can be human face region, and human abdomen muscle region, animal face area do not limit this present embodiment It is fixed.
S102, according to the multiple first key point, preset first incidence relation and the second incidence relation, determine wait reflect The mapping posture information of the rigid model and transparent medium model penetrated;Wherein, have multiple second on the transparent medium model Key point, corresponding pass of first incidence relation between the multiple second key point and the multiple first key point System, corresponding relationship of second incidence relation between the rigid model and the transparent medium model.
It should be noted that there are multiple second key points, and multiple second key point on the transparent medium model The distribution of the different parts on the transparent medium model can be characterized.Wherein, above-mentioned first incidence relation is multiple second crucial Corresponding relationship between point and above-mentioned multiple first key points, optionally, first incidence relation can be crucial for multiple second Corresponding relationship between the mark and the mark of multiple first key points of point, or the coordinate of multiple second key points and more Corresponding relationship between the coordinate of a first key point.Above-mentioned second incidence relation is above-mentioned rigid model and above-mentioned transparent medium Corresponding relationship between model, can be between the partial region of rigid model and the partial region coordinate of transparent medium model Corresponding relationship, the corresponding relationship that can also have for the posture information of rigid model and transparent medium model, such as rigid body mould The direction of type and transparent medium model towards identical.
After terminal device obtains above-mentioned multiple first key points, terminal device can be obtained from preset model library Rigid model and transparent medium model to be mapped, optionally, when above-mentioned second incidence relation characterization rigid model posture and When corresponding relationship between the posture of transparent medium model, due to the transparent medium model under each posture include multiple Two key points it is corresponding two can to obtain multiple second key points under the posture by the mapping of three-dimensional space to two-dimensional surface Multiple two-dimensional projection's coordinate points of dimensional plane, and again due between above-mentioned multiple second key points and above-mentioned multiple first key points It can based on the corresponding multiple two-dimensional projection's coordinate points in two-dimensional surface of above-mentioned multiple second key points with the first incidence relation It is closed with obtaining the second key point of transparent medium model in multiple two-dimensional projection's coordinate points of two-dimensional surface and above-mentioned multiple first Corresponding relationship between key point.
In addition, terminal device is by by the coordinate of two-dimensional projection's coordinate points under multiple postures and above-mentioned associated first The coordinate of key point is matched, so that it is determined that going out the two-dimensional projection's coordinate points that can match with first key point, Jin Ergen According to the two-dimensional projection, coordinate points determine the posture of transparent medium model.In addition, if above-mentioned second incidence relation is rigid model When corresponding relationship between posture and the posture of transparent medium model, at this point, terminal device can be according to second incidence relation And the posture of identified transparent medium model, determine the posture of rigid model.Optionally, above-mentioned " will be under multiple postures The coordinate of two-dimensional projection's coordinate points is matched with the coordinate of above-mentioned associated multiple first key points ", it can be set for terminal Multiple two-dimensional projection's coordinate points that alternative is overlapped with the coordinate position of associated multiple first key points can also be selection It is less than multiple two-dimensional projection's coordinate points of preset threshold with the coordinate position of associated multiple first key points distance.
Since terminal device has obtained the posture of transparent medium model and rigid model, thus to obtain this transparent for terminal device The mapping posture information of medium model and rigid model.Optionally, the mapping posture information may include transparent medium model and Direction, position, scaling and distance of rigid model etc..
For example, second key point of the available above-mentioned transparent medium model of terminal device under multiple postures, and should The second key point under multiple postures does three-dimensional space to the Mapping and Converting of two-dimensional surface, obtains the two-dimensional projection under multiple postures Coordinate points, terminal device selected from two-dimensional projection's coordinate points under multiple posture one can be with above-mentioned first key point The posture of transparent medium model and rigid model corresponding to the smallest two-dimensional projection's coordinate points of position coordinates deviation, as transparent Medium model and rigid model posture to be determined, to obtain the mapping posture information under the posture.
S103, according to the mapping posture information of the rigid model and the transparent medium model, in the test object On redraw the rigid model to be mapped and the transparent medium model.
Specifically, terminal device can be believed according to the mapping posture of identified rigid model and the transparent medium model The rigid model and the transparent medium model, are redrawn the surface of test object by breath.Due to combining rigid body when redrawing The posture information of model and the transparent medium model has the parameter information under three-dimensional each form, therefore, after redrawing The posture of rigid model and the transparent medium model can change with the attitudes vibration of test object.
For example, test object in above-mentioned image to be mapped is facial image, and when rigid model is cap model, then on Stating transparent medium model can be transparent headform.When the direction of character facial changes, such as from obverting Side, corresponding cap model can follow the direction change of character facial and corresponding change, the i.e. display of cap model The side of display cap can be changed into from the front of display cap.
In the present embodiment, terminal device obtains multiple first key points by the test object in detection image to be mapped, And according to multiple first key point, preset first incidence relation and the second incidence relation, rigid model to be mapped is determined With the mapping posture information of transparent medium model, the mapping posture information of rigid model and transparent medium model is determined, due to every Multiple second key points of transparent medium model under a posture can be obtained by the mapping of three-dimensional space to two-dimensional surface Multiple two-dimensional projection's coordinate points of the corresponding two-dimensional surface of multiple second key points under the posture, and due to above-mentioned multiple second There is the first incidence relation between key point and above-mentioned multiple first key points, therefore can determine the second of transparent medium model Multiple two-dimensional projection coordinate points corresponding multiple first key points of the key point in two-dimensional surface.Based on this, terminal device passes through Two-dimensional projection's coordinate points are matched with above-mentioned associated first key point, so that it is determined that going out and matched first pass The posture of the corresponding transparent medium model of key point, and then combine second between above-mentioned rigid model and transparent medium model to close Connection relationship obtains the posture of rigid model under the posture, so that it is determined that the mapping posture of rigid model and transparent medium model is believed out Breath, and according to the mapping posture information, redraws rigid model and transparent medium model to be mapped in test object, due to The posture information of rigid model Yu transparent medium model is combined when redrawing, and there is the parameter information under three-dimensional each form, Therefore, the posture of rigid model and transparent medium model after redrawing changes with the attitudes vibration of test object.
In the present embodiment, terminal device detects the test object in image to be mapped, obtains multiple first key points, and root According to multiple first key points, preset first incidence relation and the second incidence relation, rigid model to be mapped and transparent is determined The mapping posture information of medium model, thus according to the mapping posture information of rigid model and transparent medium model, in detection pair As above redrawing rigid model and transparent medium model to be mapped.Due to combining rigid model and transparent medium mould when redrawing The posture information of type has the parameter information under three-dimensional each form, therefore, rigid model and transparent medium mould after redrawing The posture of type changes with the attitudes vibration of test object, i.e., when showing performance, the rigid model and transparent medium mould The position and orientation of type can follow the variation of the position and orientation of the middle test object of image to be mapped and occur to become accordingly Change, considerably increases rigid model and transparent medium model in display form in different positions, so that the rigid model Show that form is more abundant, so that the rigid model and transparent medium model occur posture in the test object of its application and become When change, display image is more reasonable, therefore further improves the intelligence of human-computer interaction.
Fig. 2 is the flow diagram of the mapping method for the threedimensional model that another embodiment provides, what the present embodiment was related to It is terminal device according to multiple first key points, preset first incidence relation and the second incidence relation, determines to be mapped rigid A kind of possible realization process of the mapping posture information of body Model and transparent medium model.As shown in Fig. 2, above-mentioned S102, it can To include:
S201, according to the multiple first key point, first incidence relation and second incidence relation, determine and exist When the multiple first key point posture changes, the attitude parameter of the rigid model and the transparent medium model.
As described in above-described embodiment, above-mentioned multiple first key points pass through the first incidence relation and transparent medium model Multiple second key points between there is the first incidence relation, and the transparent medium model passes through the second incidence relation and rigid body mould Type is associated, and therefore, above-mentioned multiple first key points are associated with above-mentioned rigid model to be mapped.Therefore it can be closed with posture It is that equation Y=R*X characterizes the incidence relation, wherein X characterizes multiple first key points of test object, and Y is above-mentioned rigid model It is indicated with the parametrization of transparent medium model and R is the attitude parameter group of rigid model and transparent medium model.
It should be noted that the rigid model and transparent medium model itself will not change, only because above-mentioned The position of one key point changes, and the posture of rigid model and transparent medium model needs to occur corresponding change, therefore asks When solving above-mentioned posture relation equation, it is thus necessary to determine that Y is constant, i.e., rigid model and transparent medium model itself do not change, thus root Variation and the first incidence relation according to X can determine the variation with associated second key point of first key point, above-mentioned Parameter after may include the variation of the second key point in R, and due to having second between transparent medium model and rigid model Incidence relation, therefore, the attitude parameter based on the parameter after the variation of the second key point, after can determining rigid model variation.? It also may include the posture ginseng after rigid model variation that is may include the running parameter of the second key point in above-mentioned R Number, therefore, the above process solve the attitude parameter group that the R come is actually above-mentioned rigid model and transparent medium model.
S202, according to the attitude parameter of the rigid model to be mapped and transparent medium model, determine the mapping appearance State information.
Specifically, terminal device according to the attitude parameter of identified rigid model to be mapped and transparent medium model into The caching of row array form or the storage of other forms, and combine the pixel of the rigid model and transparent medium model Point forms mapping posture information.
In the present embodiment, terminal device is determined according to multiple first key points, the first incidence relation and the second incidence relation When multiple first key point postures change, the attitude parameter of rigid model to be mapped and transparent medium model, and root According to the attitude parameter of above-mentioned rigid model to be mapped and transparent medium model, reflecting for rigid model and transparent medium model is determined Penetrate posture information, enable terminal device according to its first key point determine corresponding with first key point rigid model and The mapping posture information of transparent medium model, so that the rigid model and transparent medium model are according to identified mapping posture Information is redrawn on the surface of test object, so that rigid model and transparent medium model can be according to the postures of test object Variation and corresponding variation occurs, make the display image of rigid model more diversified so that the rigid model and When attitudes vibration occurs for the test object of its application, the reasonability of display image greatly improves transparent medium model, therefore Further improve the intelligence of human-computer interaction.
Fig. 3 is the flow diagram of the mapping method for the threedimensional model that another embodiment provides, what the present embodiment was related to It is terminal device according to multiple first key points, preset first incidence relation and the second incidence relation, determines to be mapped rigid The alternatively possible realization process of the mapping posture information of body Model and transparent medium model.As shown in figure 3, above-mentioned S102, May include:
S301, according to the multiple first key point and first incidence relation, determine the transparent medium model Posture information;Wherein, the posture information of the transparent medium model includes the current position coordinates of the multiple second key point And/or angle information.
Specifically, terminal device can be determined and multiple according to multiple first key points and the first incidence relation The distribution of corresponding multiple second key points of one key point, to be determined according to the distribution of identified second key point transparent At least one of the position coordinates of medium model, angle, to determine transparent medium model attitude information.
A kind of mode of possible realization as the step, the implementation can be as shown in figure 4, include:
S401, according to the multiple first key point and first incidence relation, obtain and the multiple first crucial Multiple second key points of point coordinate mapping.
Specifically, above-mentioned multiple first key points all have a two-dimensional coordinate on two-dimensional surface, and multiple second close Key point all has a three-dimensional coordinate in three-dimensional space, due to having between above-mentioned multiple first key points and multiple second key points Have the first incidence relation, therefore, the first key point of each two-dimensional surface with the second key point of a three-dimensional planar it Between have coordinate mapping relations, so, terminal device can be determined according to the two-dimensional coordinate position of the first key point one tool There is the three-dimensional coordinate position of the second key point of above-mentioned coordinate mapping relations.
S402, according to the position coordinates of the multiple second key point, determine the posture information of the transparent medium model.
Specifically, terminal device can determine transparent medium model according to the three-dimensional coordinate position of above-mentioned second key point Position and orientation, so that it is determined that the posture information of the transparent medium model.
Based on foregoing description, terminal device is assured that out the posture information of transparent medium model, so that this is thoroughly Bright medium model can follow the change in location of above-mentioned first key point and corresponding attitudes vibration occurs.
S302, posture information and second incidence relation according to the transparent medium model, determine the rigid body The posture information of model.
Specifically, the second incidence relation in the present embodiment can be the posture information and transparent medium model of rigid model Posture information between corresponding relationship, thus, terminal device can determine its phase by the posture information of transparent medium model The posture information of associated rigid model.Such as terminal device passes through the position coordinates and direction of transparent medium model, thus really The position coordinates for determining the position coordinates and transparent medium model of rigid model match, and determine rigid model direction with it is saturating Bright medium model towards it is identical or keep a preset angle.
A kind of mode of possible realization as the step, the implementation can be as shown in figure 5, include:
S501, posture information and second incidence relation according to the transparent medium model, to the rigid model Corresponding array carries out three-dimensional coordinate transformation, obtains transformed array.
Specifically, the form of expression of the posture information of transparent medium model can be the form of array in the step.Terminal Equipment obtains the posture information of transparent medium model, when the position of the first key point changes, leads to the position of the second key point It sets when changing, then the array for characterizing the transparent medium model changes.Terminal device is determined according to the second incidence relation Corresponding variation occurs for array corresponding to the rigid model out, since rigid model is threedimensional model, terminal device needs Three-dimensional coordinate variation is done to array corresponding to the rigid model, to obtain transformed array.
S502, according to the transformed array, obtain the posture information of the rigid model.
Specifically, terminal device regenerates the posture of rigid model according to transformed array, to obtain the rigid body The posture information of model.
Based on the description of above-mentioned S501 and S502, by being carried out to the corresponding array of rigid model used by terminal device Three-dimensional coordinate transformation, and the mode of the posture information of rigid model is obtained according to transformed array, implementation is simple, section About the system resource of terminal device while, improve and redraw efficiency.
S303, according to the posture information of the transparent medium model and the posture information of the rigid model, determine described in Map posture information.
In the present embodiment, terminal device determines transparent medium model according to multiple first key points and the first incidence relation Posture information determine the posture letter of rigid model and according to the posture information of transparent medium model and the second incidence relation Breath, and according to the posture information of transparent medium model and the posture information of rigid model, determine the mapping posture information.Eventually End equipment can determine reflecting for corresponding with first key point rigid model and transparent medium model according to its first key point Posture information is penetrated, so that the rigid model and transparent medium model are according to identified mapping posture information test object again Surface redraw so that rigid model and transparent medium model can occur accordingly according to the attitudes vibration of test object Variation, make the display image of rigid model more diversified, so that the rigid model and transparent medium model exist When attitudes vibration occurs for its test object applied, the reasonability of displayed image is greatly improved, therefore further improves people The intelligence of machine interaction.Further, by carrying out three-dimensional coordinate to the corresponding array of rigid model used by terminal device Transformation, and the mode of the posture information of rigid model is obtained according to transformed array, implementation is simple, has saved terminal While the system resource of equipment, improves and redraw efficiency.
Above-described embodiment describes the mistake that terminal device draws rigid model and transparent medium model in test object Journey.Before actually drawing, such as when establishing rigid model and transparent medium model template library, cap model is often and thoroughly Bright headform has overlapping region.Faced with this situation, the pixel by the region that the two is overlapped is needed to be set as empty, thus real The reasonable occlusion effect of existing rigid model, such as to portrait band cap, by will be inside cap and headform The pixel of lap is set as empty, so that occlusion effect is realized inside cap, so that the display of the cap is more reasonable.Tool Body is referring to following embodiments shown in fig. 6.
Fig. 6 is the flow diagram of the mapping method for the threedimensional model that another embodiment provides, optionally, in above-mentioned reality On the basis of applying example, this method further includes:
S601, determine in the rigid model with the matched key point of position coordinates in the transparent medium model.
It is determined in above-mentioned rigid model and in transparent medium model specifically, terminal device passes through, the two position coordinates The key point matched, optionally, the key point that can be overlapped for the respective coordinates of the two, or between the respective coordinates of the two Distance is less than the key point of preset threshold.Such as when above-mentioned rigid model be cap, and above-mentioned transparent medium model be number of people mould When type, in the case where number of people band cap, the crown key point coordinate of the inside key point of cap and headform be overlapped or Close, then terminal device determines the inside key point of above-mentioned cap and the crown key point coordinate matching of headform.
S602, the corresponding pixel of the setting key point are sky, to obtain the rigid model to be mapped and transparent matchmaker Jie's model.
Specifically, terminal device is by the matched key point pixel of position coordinates in above-mentioned rigid model and transparent medium model It is set as empty, so that the position that rigid model is blocked by transparent medium model is invisible.
In the present embodiment, terminal device by determine in the rigid model with position coordinates in the transparent medium model Matched key point, and it is sky that the corresponding pixel of key point, which is arranged, to obtain rigid model and transparent medium model to be mapped, So that the position that rigid model is blocked by transparent medium model is invisible, the reasonability that rigid model is shown is improved.
Optionally, the transparent medium model can be hollow man head model, and the rigid model can be can be with people The matched threedimensional model of head model;Optionally, the rigid model is at least one of cap model, glasses model.
It should be understood that although each step in the flow chart of Fig. 1-6 is successively shown according to the instruction of arrow, These steps are not that the inevitable sequence according to arrow instruction successively executes.Unless expressly stating otherwise herein, these steps Execution there is no stringent sequences to limit, these steps can execute in other order.Moreover, at least one in Fig. 1-6 Part steps may include that perhaps these sub-steps of multiple stages or stage are not necessarily in synchronization to multiple sub-steps Completion is executed, but can be executed at different times, the execution sequence in these sub-steps or stage is also not necessarily successively It carries out, but can be at least part of the sub-step or stage of other steps or other steps in turn or alternately It executes.
Fig. 7 is the structural schematic diagram of the mapping device for the threedimensional model that one embodiment provides, as shown in fig. 7, the device Including:Obtain module 11, the first determining module 12 and first processing module 13.
Specifically, first obtains module 11, for detecting the test object in image to be mapped, it is crucial to obtain multiple first Point;
First determining module 12, for being closed according to the multiple first key point, preset first incidence relation and second Connection relationship determines the mapping posture information of rigid model and transparent medium model to be mapped;Wherein, the transparent medium model Upper to have multiple second key points, first incidence relation is the multiple second key point and the multiple first key point Between corresponding relationship, second incidence relation between the rigid model and the transparent medium model it is corresponding pass System;
First processing module 13, for the mapping posture information according to the rigid model and the transparent medium model, The rigid model and the transparent medium model are redrawn in the test object.
The mapping device of threedimensional model provided in this embodiment can execute above-mentioned corresponding embodiment of the method, realize Principle is similar with technical effect, and details are not described herein.
In one embodiment, the posture of the rigid model and the transparent medium model after redrawing is with the detection The attitudes vibration of object and change.
Fig. 8 is the structural schematic diagram of the mapping device for the threedimensional model that another embodiment provides, real shown in above-mentioned Fig. 7 On the basis of applying example, as shown in figure 8, above-mentioned first determining module 12, may include:First determination unit 121 and second determines Unit 122;
Specifically, the first determination unit 121, for according to the multiple first key point, first incidence relation and Second incidence relation determines the rigid model and described when the multiple first key point posture changes The attitude parameter of bright medium model;
Second determination unit 122 is determined for the attitude parameter according to the rigid model and the transparent medium model The mapping posture information of the rigid model and the transparent medium model.
The mapping device of threedimensional model provided in this embodiment can execute above-mentioned corresponding embodiment of the method, realize Principle is similar with technical effect, and details are not described herein.
Fig. 9 is the structural schematic diagram of the mapping device for the threedimensional model that another embodiment provides, in above-mentioned Fig. 7 or figure On the basis of 8 illustrated embodiments, as shown in figure 9, above-mentioned first determining module 12, may include:Third determination unit 123, Four determination units 124 and the 5th determination unit 125;
Specifically, third determination unit 123, is used for according to the multiple first key point and first incidence relation, Determine the posture information of the transparent medium model;Wherein, the posture information of the transparent medium model includes the multiple The current position coordinates and/or angle information of two key points;
4th determination unit 124, for being closed according to the posture information and second association of the transparent medium model System, determines the posture information of the rigid model;
5th determination unit 125, for according to the posture information of the transparent medium model and the appearance of the rigid model State information determines the mapping posture information of the rigid model and the transparent medium model.
It should be noted that above-mentioned Fig. 9 is based on showing on the basis of embodiment illustrated in fig. 8, certainly, Fig. 9 can be with It is shown based on embodiment illustrated in fig. 7.
The mapping device of threedimensional model provided in this embodiment can execute above-mentioned corresponding embodiment of the method, realize Principle is similar with technical effect, and details are not described herein.
In one embodiment, the 4th determination unit 124, specifically for the posture information according to the transparent medium model With second incidence relation, three-dimensional coordinate transformation is carried out to the corresponding array of the rigid model, obtains transformed array; And according to the transformed array, the posture information of the rigid model is obtained.
In one embodiment, third determination unit 123 is specifically used for according to the multiple first key point and described the One incidence relation obtains multiple second key points mapped with the multiple first key point coordinate;And according to the multiple The position coordinates of two key points determine the posture information of the transparent medium model.
Figure 10 is the structural schematic diagram of the mapping device for the threedimensional model that another embodiment provides, in above-mentioned Fig. 7-9 institute On the basis of showing embodiment, as shown in Figure 10, which further includes:Second determining module 14 and Second processing module 15;
Specifically, the second determining module 14, for determining, position is sat in the rigid model and the transparent medium model Mark matched key point;
Second processing module 15, it is described to be mapped rigid to obtain for the corresponding pixel of the key point being arranged as sky Body Model and transparent medium model.
It should be noted that above-mentioned Figure 10 is based on showing on the basis of embodiment illustrated in fig. 9, certainly, Figure 10 may be used also To be exemplified based on Fig. 7 or implementation shown in Fig. 8.
In one embodiment, the transparent medium model is transparent headform, and the rigid model is can be with people The matched threedimensional model of head model.
In one embodiment, the rigid model is at least one of cap model, glasses model.
The mapping device of threedimensional model provided by the above embodiment can execute above-mentioned corresponding embodiment of the method, in fact Existing principle is similar with technical effect, and details are not described herein.
The specific of mapping device about threedimensional model limits the mapping method that may refer to above for threedimensional model Restriction, details are not described herein.Modules in the mapping device of above-mentioned threedimensional model can be fully or partially through software, hard Part and combinations thereof is realized.Above-mentioned each module can be embedded in the form of hardware or independently of in the processor in computer equipment, It can also be stored in a software form in the memory in computer equipment, execute the above modules in order to which processor calls Corresponding operation.
In one embodiment, a kind of computer equipment is provided, which can be terminal device, inside Structure chart can be as shown in figure 11.The computer equipment includes that the processor, memory, network connected by system bus connects Mouth, display screen and input unit.Wherein, the processor of the computer equipment is for providing calculating and control ability.The computer The memory of equipment includes non-volatile memory medium, built-in storage.The non-volatile memory medium be stored with operating system and Computer program.The built-in storage provides ring for the operation of operating system and computer program in non-volatile memory medium Border.The network interface of the computer equipment is used to communicate with external terminal by network connection.The computer program is processed A kind of mapping method of threedimensional model is realized when device executes.The display screen of the computer equipment can be liquid crystal display or Electric ink display screen, the input unit of the computer equipment can be the touch layer covered on display screen, be also possible to calculate Key, trace ball or the Trackpad being arranged on machine equipment shell can also be external keyboard, Trackpad or mouse etc..
It will be understood by those skilled in the art that structure shown in Figure 11, only part relevant to application scheme The block diagram of structure, does not constitute the restriction for the computer equipment being applied thereon to application scheme, and specific computer is set Standby may include perhaps combining certain components or with different component layouts than more or fewer components as shown in the figure.
In one embodiment, a kind of terminal device, including memory and processor are provided, the memory is stored with Computer program, the processor realize following steps when executing the computer program:
The test object in image to be mapped is detected, multiple first key points are obtained;
According to the multiple first key point, preset first incidence relation and the second incidence relation, determine to be mapped The mapping posture information of rigid model and transparent medium model;Wherein, there are multiple second keys on the transparent medium model Point, corresponding relationship of first incidence relation between the multiple second key point and the multiple first key point, institute State corresponding relationship of second incidence relation between the rigid model and the transparent medium model;
According to the mapping posture information of the rigid model and the transparent medium model, redrawn in the test object The rigid model and the transparent medium model.
In one embodiment, the posture of the rigid model and the transparent medium model after redrawing is with the detection The attitudes vibration of object and change.
In one embodiment, following steps are also realized when processor executes computer program:
According to the multiple first key point, first incidence relation and second incidence relation, determine described When multiple first key point postures change, the attitude parameter of the rigid model and the transparent medium model;
According to the attitude parameter of the rigid model and the transparent medium model, the rigid model and described is determined The mapping posture information of bright medium model.
In one embodiment, following steps are also realized when processor executes computer program:
According to the multiple first key point and first incidence relation, the posture letter of the transparent medium model is determined Breath;Wherein, the posture information of the transparent medium model includes current position coordinates and/or the angle of the multiple second key point Spend information;
According to the posture information of the transparent medium model and second incidence relation, the rigid model is determined Posture information;
According to the posture information of the posture information of the transparent medium model and the rigid model, the rigid body mould is determined The mapping posture information of type and the transparent medium model.
In one embodiment, following steps are also realized when processor executes computer program:
It is corresponding to the rigid model according to the posture information of the transparent medium model and second incidence relation Array carries out three-dimensional coordinate transformation, obtains transformed array;
According to the transformed array, the posture information of the rigid model is obtained.
In one embodiment, following steps are also realized when processor executes computer program:
According to the multiple first key point and first incidence relation, obtain and the multiple first key point coordinate Multiple second key points of mapping;
According to the position coordinates of the multiple second key point, the posture information of the transparent medium model is determined.
In one embodiment, following steps are also realized when processor executes computer program:
Determine in the rigid model with the matched key point of position coordinates in the transparent medium model;
The corresponding pixel of the key point is set for sky, to obtain the rigid model to be mapped and transparent medium mould Type.
In one embodiment, the transparent medium model is transparent headform, and the rigid model is can be with people The matched threedimensional model of head model.
In one embodiment, the rigid model is at least one of cap model, glasses model.
Terminal device provided in this embodiment, implementing principle and technical effect are similar with above method embodiment, herein It repeats no more.
In one embodiment, a kind of computer readable storage medium is provided, computer program is stored thereon with, is calculated Machine program realizes following steps when being executed by processor:
The test object in image to be mapped is detected, multiple first key points are obtained;
According to the multiple first key point, preset first incidence relation and the second incidence relation, determine to be mapped The mapping posture information of rigid model and transparent medium model;Wherein, there are multiple second keys on the transparent medium model Point, corresponding relationship of first incidence relation between the multiple second key point and the multiple first key point, institute State corresponding relationship of second incidence relation between the rigid model and the transparent medium model;
According to the mapping posture information of the rigid model and the transparent medium model, redrawn in the test object The rigid model and the transparent medium model.
In one embodiment, the posture of the rigid model and the transparent medium model after redrawing is with the detection The attitudes vibration of object and change.
In one embodiment, following steps are also realized when computer program is executed by processor:
According to the multiple first key point, first incidence relation and second incidence relation, determine described When multiple first key point postures change, the attitude parameter of the rigid model and the transparent medium model;
According to the attitude parameter of the rigid model and the transparent medium model, the rigid model and described is determined The mapping posture information of bright medium model.
In one embodiment, following steps are also realized when computer program is executed by processor:
According to the multiple first key point and first incidence relation, the posture letter of the transparent medium model is determined Breath;Wherein, the posture information of the transparent medium model includes current position coordinates and/or the angle of the multiple second key point Spend information;
According to the posture information of the transparent medium model and second incidence relation, the rigid model is determined Posture information;
According to the posture information of the posture information of the transparent medium model and the rigid model, determine described rigid The mapping posture information of body Model and the transparent medium model.
In one embodiment, following steps are also realized when computer program is executed by processor:
It is corresponding to the rigid model according to the posture information of the transparent medium model and second incidence relation Array carries out three-dimensional coordinate transformation, obtains transformed array;
According to the transformed array, the posture information of the rigid model is obtained.
In one embodiment, following steps are also realized when computer program is executed by processor:
According to the multiple first key point and first incidence relation, obtain and the multiple first key point coordinate Multiple second key points of mapping;
According to the position coordinates of the multiple second key point, the posture information of the transparent medium model is determined.
In one embodiment, following steps are also realized when computer program is executed by processor:
Determine in the rigid model with the matched key point of position coordinates in the transparent medium model;
The corresponding pixel of the key point is set for sky, to obtain the rigid model to be mapped and transparent medium mould Type.
In one embodiment, the transparent medium model is transparent headform, and the rigid model is can be with people The matched threedimensional model of head model.
In one embodiment, the rigid model is at least one of cap model, glasses model.
Computer readable storage medium provided in this embodiment, implementing principle and technical effect and above method embodiment Similar, details are not described herein.
Those of ordinary skill in the art will appreciate that realizing all or part of the process in above-described embodiment method, being can be with Relevant hardware is instructed to complete by computer program, the computer program can be stored in a non-volatile computer In read/write memory medium, the computer program is when being executed, it may include such as the process of the embodiment of above-mentioned each method.Wherein, To any reference of memory, storage, database or other media used in each embodiment provided herein, Including non-volatile and/or volatile memory.Nonvolatile memory may include read-only memory (ROM), programming ROM (PROM), electrically programmable ROM (EPROM), electrically erasable ROM (EEPROM) or flash memory.Volatile memory may include Random access memory (RAM) or external cache.By way of illustration and not limitation, RAM is available in many forms, Such as static state RAM (SRAM), dynamic ram (DRAM), synchronous dram (SDRAM), double data rate sdram (DDRSDRAM), enhancing Type SDRAM (ESDRAM), synchronization link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic ram (DRDRAM) and memory bus dynamic ram (RDRAM) etc..
Each technical characteristic of above embodiments can be combined arbitrarily, for simplicity of description, not to above-described embodiment In each technical characteristic it is all possible combination be all described, as long as however, the combination of these technical characteristics be not present lance Shield all should be considered as described in this specification.
The several embodiments of the application above described embodiment only expresses, the description thereof is more specific and detailed, but simultaneously It cannot therefore be construed as limiting the scope of the patent.It should be pointed out that coming for those of ordinary skill in the art It says, without departing from the concept of this application, various modifications and improvements can be made, these belong to the protection of the application Range.Therefore, the scope of protection shall be subject to the appended claims for the application patent.

Claims (10)

1. a kind of mapping method of threedimensional model, which is characterized in that the method includes:
The test object in image to be mapped is detected, multiple first key points are obtained;
According to the multiple first key point, preset first incidence relation and the second incidence relation, rigid body to be mapped is determined The mapping posture information of model and transparent medium model;Wherein, there is multiple second key points, institute on the transparent medium model State corresponding relationship of first incidence relation between the multiple second key point and the multiple first key point, described second Corresponding relationship of the incidence relation between the rigid model and the transparent medium model;
According to the mapping posture information of the rigid model and the transparent medium model, redrawn in the test object described Rigid model and the transparent medium model.
2. the method according to claim 1, wherein the rigid model and the transparent medium mould after redrawing The posture of type changes with the attitudes vibration of the test object.
3. according to the method described in claim 2, it is characterized in that, it is described according to the multiple first key point, preset One incidence relation and the second incidence relation determine the mapping posture information of rigid model and transparent medium model, including:
According to the multiple first key point, first incidence relation and second incidence relation, determine the multiple When first key point posture changes, the attitude parameter of the rigid model and the transparent medium model;
According to the attitude parameter of the rigid model and the transparent medium model, the rigid model and the transparent matchmaker are determined The mapping posture information of Jie's model.
4. according to the method described in claim 2, it is characterized in that, it is described according to the multiple first key point, preset One incidence relation and the second incidence relation determine the mapping posture information of rigid model and transparent medium model, including:
According to the multiple first key point and first incidence relation, the posture information of the transparent medium model is determined; Wherein, the posture information of the transparent medium model includes the current position coordinates and/or angle of the multiple second key point Information;
According to the posture information of the transparent medium model and second incidence relation, the posture of the rigid model is determined Information;
According to the posture information of the posture information of the transparent medium model and the rigid model, determine the rigid model and The mapping posture information of the transparent medium model.
5. according to the method described in claim 4, it is characterized in that, the posture information according to the transparent medium model with And second incidence relation, determine the posture information of the rigid model, including:
According to the posture information of the transparent medium model and second incidence relation, array corresponding to the rigid model Three-dimensional coordinate transformation is carried out, transformed array is obtained;
According to the transformed array, the posture information of the rigid model is obtained.
6. according to the method described in claim 4, it is characterized in that, described according to the multiple first key point and described first Incidence relation determines the posture information of the transparent medium model, including:
According to the multiple first key point and first incidence relation, obtain mapping with the multiple first key point coordinate Multiple second key points;
According to the position coordinates of the multiple second key point, the posture information of the transparent medium model is determined.
7. method according to claim 1-6, which is characterized in that the method also includes:
Determine the key point in the rigid model with the transparent medium modal position coordinate matching;
The corresponding pixel of the key point is set for sky, to obtain the rigid model to be mapped and transparent medium model.
8. a kind of mapping device of threedimensional model, which is characterized in that described device includes:Obtain module, the first determining module and First processing module;
The acquisition module obtains multiple first key points for detecting the test object in image to be mapped;
First determining module, for according to the multiple first key point, preset first incidence relation and the second association Relationship determines the mapping posture information of rigid model and transparent medium model to be mapped;Wherein, on the transparent medium model With multiple second key points, first incidence relation be the multiple second key point and the multiple first key point it Between corresponding relationship, corresponding relationship of second incidence relation between the rigid model and the transparent medium model;
The first processing module, for the mapping posture information according to the rigid model and the transparent medium model, The rigid model and the transparent medium model are redrawn in the test object.
9. a kind of terminal device, including memory and processor, the memory are stored with computer program, which is characterized in that The step of processor realizes any one of claims 1 to 7 the method when executing the computer program.
10. a kind of computer readable storage medium, is stored thereon with computer program, which is characterized in that the computer program The step of method described in any one of claims 1 to 7 is realized when being executed by processor.
CN201810688329.XA 2018-06-28 2018-06-28 Mapping method, device, terminal device and the readable storage medium storing program for executing of threedimensional model Pending CN108830928A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810688329.XA CN108830928A (en) 2018-06-28 2018-06-28 Mapping method, device, terminal device and the readable storage medium storing program for executing of threedimensional model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810688329.XA CN108830928A (en) 2018-06-28 2018-06-28 Mapping method, device, terminal device and the readable storage medium storing program for executing of threedimensional model

Publications (1)

Publication Number Publication Date
CN108830928A true CN108830928A (en) 2018-11-16

Family

ID=64133623

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810688329.XA Pending CN108830928A (en) 2018-06-28 2018-06-28 Mapping method, device, terminal device and the readable storage medium storing program for executing of threedimensional model

Country Status (1)

Country Link
CN (1) CN108830928A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113949914A (en) * 2021-08-19 2022-01-18 广州博冠信息科技有限公司 Live broadcast interaction method and device, electronic equipment and computer readable storage medium
CN114116081A (en) * 2020-08-10 2022-03-01 北京字节跳动网络技术有限公司 Interactive dynamic fluid effect processing method and device and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021590A (en) * 2013-02-28 2014-09-03 北京三星通信技术研究有限公司 Virtual try-on system and virtual try-on method
CN105404392A (en) * 2015-11-03 2016-03-16 北京英梅吉科技有限公司 Monocular camera based virtual wearing method and system
US20160371829A1 (en) * 2015-06-16 2016-12-22 Fujitsu Limited Image processing device and image processing method
CN107341827A (en) * 2017-07-27 2017-11-10 腾讯科技(深圳)有限公司 A kind of method for processing video frequency, device and storage medium
CN107924579A (en) * 2015-08-14 2018-04-17 麦特尔有限公司 The method for generating personalization 3D head models or 3D body models
CN108205822A (en) * 2017-12-13 2018-06-26 中兴通讯股份有限公司 Chart pasting method and device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104021590A (en) * 2013-02-28 2014-09-03 北京三星通信技术研究有限公司 Virtual try-on system and virtual try-on method
US20160371829A1 (en) * 2015-06-16 2016-12-22 Fujitsu Limited Image processing device and image processing method
CN107924579A (en) * 2015-08-14 2018-04-17 麦特尔有限公司 The method for generating personalization 3D head models or 3D body models
CN105404392A (en) * 2015-11-03 2016-03-16 北京英梅吉科技有限公司 Monocular camera based virtual wearing method and system
CN107341827A (en) * 2017-07-27 2017-11-10 腾讯科技(深圳)有限公司 A kind of method for processing video frequency, device and storage medium
CN108205822A (en) * 2017-12-13 2018-06-26 中兴通讯股份有限公司 Chart pasting method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114116081A (en) * 2020-08-10 2022-03-01 北京字节跳动网络技术有限公司 Interactive dynamic fluid effect processing method and device and electronic equipment
CN114116081B (en) * 2020-08-10 2023-10-27 抖音视界有限公司 Interactive dynamic fluid effect processing method and device and electronic equipment
CN113949914A (en) * 2021-08-19 2022-01-18 广州博冠信息科技有限公司 Live broadcast interaction method and device, electronic equipment and computer readable storage medium

Similar Documents

Publication Publication Date Title
US11393154B2 (en) Hair rendering method, device, electronic apparatus, and storage medium
WO2018188499A1 (en) Image processing method and device, video processing method and device, virtual reality device and storage medium
US9996982B2 (en) Information processing device, authoring method, and program
WO2019154013A1 (en) Expression animation data processing method, computer device and storage medium
JP5709440B2 (en) Information processing apparatus and information processing method
JP6458371B2 (en) Method for obtaining texture data for a three-dimensional model, portable electronic device, and program
CN104463975B (en) Setting method and information processing unit
US20170119471A1 (en) Augmented Reality Imaging System for Cosmetic Surgical Procedures
CN109782901A (en) Augmented reality exchange method, device, computer equipment and storage medium
US8643679B2 (en) Storage medium storing image conversion program and image conversion apparatus
JP2018081410A (en) Computer program
WO2020149270A1 (en) Method for generating 3d object arranged in augmented reality space
JP2023517121A (en) IMAGE PROCESSING AND IMAGE SYNTHESIS METHOD, APPARATUS AND COMPUTER PROGRAM
JP3245336B2 (en) Modeling method and modeling system
CN109886144A (en) Virtual examination forwarding method, device, computer equipment and storage medium
KR102237520B1 (en) Method of providing virtual exhibition space for efficient data management
CN114419226A (en) Panorama rendering method and device, computer equipment and storage medium
US8938131B1 (en) Apparatus and method for registration of flat panel display device and imaging sensor, and electronic device having flat panel display device and imaging sensor which are registered using the method
CN108830928A (en) Mapping method, device, terminal device and the readable storage medium storing program for executing of threedimensional model
CN106502401A (en) A kind of display control method and device
WO2019042028A1 (en) All-around spherical light field rendering method
CN108549484A (en) Man-machine interaction method and device based on human body dynamic posture
CN110908508B (en) Control method of virtual picture, terminal device and storage medium
CN108876713B (en) Mapping method and device of two-dimensional template image, terminal equipment and storage medium
US9563723B1 (en) Generation of an observer view in a virtual environment

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