CN107622522A - The method and device of generation game material - Google Patents

The method and device of generation game material Download PDF

Info

Publication number
CN107622522A
CN107622522A CN201710676383.8A CN201710676383A CN107622522A CN 107622522 A CN107622522 A CN 107622522A CN 201710676383 A CN201710676383 A CN 201710676383A CN 107622522 A CN107622522 A CN 107622522A
Authority
CN
China
Prior art keywords
user
body part
game
information
profile information
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
CN201710676383.8A
Other languages
Chinese (zh)
Other versions
CN107622522B (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 CN201710676383.8A priority Critical patent/CN107622522B/en
Publication of CN107622522A publication Critical patent/CN107622522A/en
Application granted granted Critical
Publication of CN107622522B publication Critical patent/CN107622522B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present invention proposes a kind of method and device for generating game material, wherein, method includes:Obtain the depth information of the virtual image for creating user in gaming, and the 3D models of user are built according to depth information, wherein, depth information is to generating after user's projective structure light;The profile information of each body part of user is identified from 3D models;For each body part, target material corresponding to the profile information generation body part of body part is utilized;Utilize the material database of target material more new game.Pass through this method, user can use the personalized game image of the material structure in the material database of game, user's fast resolution is facilitated to go out the game image of oneself, user can also utilize the material in material database to change game image at any time according to self-demand, improve Consumer's Experience, the cohesiveness of game is improved, user in the prior art is solved and is difficult to differentiate the technical problem that the game of oneself is vivid, game cohesiveness is relatively low.

Description

The method and device of generation game material
Technical field
The present invention relates to field of terminal equipment, more particularly to a kind of method and device for generating game material.
Background technology
At present in some scene of game, the designer of game can provide the user some games image, Yong Huke To select the game image oneself liked in gaming.But the game image that game provides the user generally has The figure image of quantity is limited, user selects oneself needs when setting game image from the figure image of limited quantity Figure image be controlled and operate.
But in existing game, often occur that multiple users are occurred using the situation of same game image, So that user is difficult to the game image for therefrom telling oneself in time, and then can not be operated in time.Do not have also at present There is correlation technique that user can be made to customize personalized game image according to the needs of oneself so that existing game is coagulated Poly- power is relatively low.
The content of the invention
It is contemplated that at least solves one of technical problem in correlation technique to a certain extent.
Therefore, the present invention proposes a kind of method for generating game material, by obtaining the 3D models of user, from 3D models The profile information of each body part of user is identified, based on target material corresponding to profile information generation and to the material of game Storehouse is updated, and user is solved existing using the personalized game image of the material structure in the material database of game There is user in technology to be difficult to differentiate the technical problem that the game of oneself is vivid, game cohesiveness is relatively low.
The present invention also proposes a kind of device for generating game material.
The present invention also proposes a kind of non-volatile computer readable storage medium storing program for executing.
The present invention also proposes a kind of computer equipment.
First aspect present invention embodiment proposes a kind of method for generating game material, including:
The depth information of the virtual image for creating user in gaming is obtained, and according to the depth information structure The 3D models of user are built, wherein, the depth information is to generating after user's projective structure light;
The profile information of each body part of the user is identified from the 3D models;
For each body part, generated using the profile information of the body part corresponding to the body part Target material;
The material database of the game is updated using the target material;Each body is stored with wherein described material database At least one material of position.
The method of the generation game material of the embodiment of the present invention, by obtaining the virtual shape for being used for creating user in gaming The depth information of elephant, and according to the 3D models of depth information structure user, each body part of user is identified from 3D models Profile information, for each body part, using target material corresponding to the profile information generation body part of body part, Utilize the material database of target material more new game.Thereby, it is possible to user is built using the material in the material database of game Personalized game image, the game image of user is set to be different from the game image of other users, it is convenient to use Family fast resolution goes out the game image of oneself, and user can also be according to the material in the demand utilization material database of itself at any time Game image is changed, Consumer's Experience is improved, improves the cohesiveness of game.Used by being stored in the material database of game The material of each body part in family, allow the personalized game image of material structure of the user in material database, structure The game image built is vivid similar with user's itself, so as to which user can easily tell the game shape of oneself As solving user in the prior art and being difficult to differentiate the vivid technical problem of the game of oneself.
Second aspect of the present invention embodiment proposes a kind of device for generating game material, including:
Acquisition module, for the depth information of virtual image of the acquisition for creating user in gaming, and according to The 3D models of depth information structure user, wherein, the depth information is to generating after user's projective structure light;
Identification module, for identifying the profile information of each body part of the user from the 3D models;
Generation module, for for each body part, using described in the profile information generation of the body part Target material corresponding to body part;
Update module, for updating the material database of the game using the target material.
The device of the generation game material of the embodiment of the present invention, by obtaining the virtual shape for being used for creating user in gaming The depth information of elephant, and according to the 3D models of depth information structure user, each body part of user is identified from 3D models Profile information, for each body part, using target material corresponding to the profile information generation body part of body part, Utilize the material database of target material more new game.Thereby, it is possible to user is built using the material in the material database of game Personalized game image, the game image of user is set to be different from the game image of other users, it is convenient to use Family fast resolution goes out the game image of oneself, and user can also be according to the material in the demand utilization material database of itself at any time Game image is changed, Consumer's Experience is improved, improves the cohesiveness of game.Used by being stored in the material database of game The material of each body part in family, allow the personalized game image of material structure of the user in material database, structure The game image built is vivid similar with user's itself, so as to which user can easily tell the game shape of oneself As solving user in the prior art and being difficult to differentiate the vivid technical problem of the game of oneself.
Third aspect present invention embodiment proposes one or more non-volatile meters for including computer executable instructions Calculation machine readable storage medium storing program for executing, when the computer executable instructions are executed by one or more processors so that the processing The method that device performs the generation game material as described in first aspect embodiment.
Fourth aspect present invention embodiment proposes a kind of computer equipment, including memory and processor, the storage Computer-readable instruction is stored in device, when the instruction is by the computing device so that the computing device such as first The method of generation game material described in aspect embodiment.
The additional aspect of the present invention and advantage will be set forth in part in the description, and will partly become from the following description Obtain substantially, or recognized by the practice of the present invention.
Brief description of the drawings
Of the invention above-mentioned and/or additional aspect and advantage will become from the following description of the accompanying drawings of embodiments Substantially and it is readily appreciated that, wherein:
Fig. 1 is the schematic flow sheet of the method for the generation game material that one embodiment of the invention proposes;
Fig. 2 is the device combination diagram of a projective structure light;
Fig. 3 is the schematic diagram of homogeneous texture light provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of the method for the generation game material that another embodiment of the present invention proposes;
Fig. 5 is the schematic diagram of structure light heterogeneous in the embodiment of the present invention;
Fig. 6 is the schematic flow sheet of the method for the generation game material that further embodiment of this invention proposes;
Fig. 7 is the structural representation of the device for the generation game material that one embodiment of the invention proposes;
Fig. 8 is the structural representation of the device for the generation game material that another embodiment of the present invention proposes;
Fig. 9 is the structural representation of the image processing circuit in the terminal that one embodiment of the invention proposes.
Embodiment
Embodiments of the invention are described below in detail, the example of the embodiment is shown in the drawings, wherein from beginning to end Same or similar label represents same or similar element or the element with same or like function.Below with reference to attached The embodiment of figure description is exemplary, it is intended to for explaining the present invention, and is not considered as limiting the invention.
Below with reference to the accompanying drawings the method and device of the generation game material of the embodiment of the present invention is described.
Fig. 1 is the schematic flow sheet of the method for the generation game material that one embodiment of the invention proposes.
As shown in figure 1, the method for generation game material comprises the following steps:
Step 101, the depth information of the virtual image for creating user in gaming is obtained, and according to depth information structure The 3D models of user are built, wherein, depth information is to generating after user's projective structure light.
It is known that the set of projections of direction in space light beam is collectively referred to as structure light (structured light).
As a kind of example, Fig. 2 is the device combination diagram of a projective structure light.Only with the throwing of structure light in Fig. 2 The set that photograph album is combined into line carries out example, and the principle that the structure light of speckle pattern is combined into for set of projections is similar.As shown in Fig. 2 Optical projection device and video camera can be included in the device, wherein, optical projection device is by the project structured light of certain pattern in quilt Survey in the space residing for object (user), the striation that formation is modulated by the shape of body surface on the body surface of user 3-D view.The 3-D view is by the camera detection in another location, so as to obtain the striation two dimensional image of distortion.Striation Distortion degree depend on the profile on relative position between optical projection device and video camera and user's body surface, intuitively, The displacement (or skew) shown along striation is proportional to the height on user's body surface, and distortion illustrates the change of plane, no The physical clearance on user's body surface has been continuously displayed, when the timing of relative position one between optical projection device and video camera, by The striation two dimensional image coordinate of distortion can reappearing user body surface three-D profile, that is, obtain user 3D models.
As a kind of example, formula (1) can be used to calculate and obtain face 3D models, wherein, formula (1) is as follows:
Wherein, (x, y, z) is the coordinate of the user's 3D models obtained, between baselines of the b between grenade instrumentation and camera Away from F is the focal length of camera, and spaces of the θ residing for grenade instrumentation to user projects projected angle during default structured light patterns Degree, (x', y') are the coordinate of the two-dimentional fault image of user.
As a kind of example, the type of structure light includes grating type, spot type, speckle type (including circular speckle and cross Speckle), as shown in figure 3, what said structure was just uniformly arranged.Accordingly, the equipment of generating structure light can be by luminous point, Certain projector equipment or the instrument that line, grating, grid or speckle are projected on testee, such as optical projection device, can also It is the laser for generating laser beam.
In the present embodiment, a structure optical transmitter can be installed on the terminal devices such as computer, mobile phone, palm PC, tied Structure optical transmitter is used for user's emitting structural light.
After the depth information that terminal device gets by structure light the virtual image for creating user in gaming, Characteristic point data can be extracted from depth information, and then according to the characteristic point data of extraction, these characteristic points are connected into Network.Such as the distance relation according to each point spatially, by the point of same level, or point of the distance in threshold range Triangular net is connected into, and then these networks are spliced, constructs the 3D models of user.
Step 102, the profile information of each body part of user is identified from 3D models.
3D models can intuitively show the body contour information of user, so as in the present embodiment, construct the 3D of user After model, the profile information of each body part of user can be identified from 3D models, such as, it can identify that user is each The profile information of individual face organ, the profile information on head etc..
Step 103, for each body part, target corresponding to the profile information generation body part of body part is utilized Material.
In the present embodiment, after the profile information for identifying each body part of user, each body part can be directed to, Target material corresponding with the body part is generated using the profile information identified.
, it is understood that target material nearly fully can fully embody the body part of user.
Step 104, using the material database of target material more new game, wherein, each body part is stored with material database At least one material.
In order to facilitate user quickly to create oneself virtual image in gaming, one can be pre-established and be stored with The material database of the material of each body part of user.Wherein, material database can be stored in the local storage of terminal device, used When family creates virtual image in gaming, material can be selected from local storage;Material database can also be stored in user and be played In the account of game, when user creates virtual image in gaming, required material can be directly selected from account.By material Stock is stored in game account, can save the memory space of terminal device, while can release the limitation to terminal device, is used Family logs in identical game account on different terminal devices, can create or more new game in virtual image, experience More preferably.
In the present embodiment, according to the profile information that is identified from 3D models generate each body part target material it Afterwards, the material database of game can be updated using target material, so that the material in material database is more abundant, user can be with More virtual images are created that, lift Consumer's Experience.
The method of the generation game material of the present embodiment, by obtaining the virtual image for being used for creating user in gaming Depth information, and the 3D models of user are built according to depth information, the wheel of each body part of user is identified from 3D models Wide information, for each body part, using target material corresponding to the profile information generation body part of body part, utilize The material database of target material more new game.Thereby, it is possible to user is built individual character using the material in the material database of game The game image of change, the game image of user is different from the game image of other users, facilitate user fast Speed tells the game image of oneself, and user can also change at any time according to the material in the demand utilization material database of itself Game image, improves Consumer's Experience, improves the cohesiveness of game.It is every by storing user in the material database of game The material of individual body part, allow the personalized game image of material structure of the user in material database, structure Game image is vivid similar with user's itself, so as to which user can easily tell the game image of oneself, Solve user in the prior art to be difficult to differentiate the vivid technical problem of the game of oneself.
The depth information for creating the virtual image of user in gaming to clearly illustrate acquisition to be used for, and according to The specific implementation process of the 3D models of depth information structure user, the embodiment of the present invention propose another generation game material Method.Fig. 4 is the schematic flow sheet of the method for the generation game material that another embodiment of the present invention proposes.
As shown in figure 4, on the basis of embodiment as shown in Figure 1, step 101 may comprise steps of:
Step 201, to user's projective structure light.
Structured light projector can be installed, when that is installed in user's startup terminal device has virtual shape on terminal device During the game of elephant, such as fighting landlord, blue moon legend etc., structured light projector can be called by passing through started game client, From structured light projector to user's projective structure light.
Step 202, gather the reflected light formed on user's body and form depth information.
After the structured light projector in terminal device reaches user to the structure light that user projects, due to each on body Individual position can be caused to hinder to structure light, structure light is reflected at user's body, form reflected light.It is at this point it is possible to logical Cross the camera installed in terminal device to be acquired the reflected light that structure light is formed on user's body, utilize what is collected Reflected light forms depth information.
Further, in the depth information of user in addition to including user oneself, it is also possible to including background information, now, Denoising and smoothing processing first can be carried out to depth information, to obtain the image of user region, and then by front and rear The processing such as scape segmentation, user and Background are split, and obtain the depth information of user.
Step 203, the 3D models of user are built according to depth information.
In the present embodiment, after the depth information for obtaining user, further it can build user's according to depth information 3D models.
Specifically, each characteristic point data for building 3D models can be extracted from depth information, and then according to extraction Characteristic point data, these characteristic points are connected into network.Such as the distance relation according to each point spatially, will be identical flat The point in face, or point of the distance in threshold range connect into triangular net, and then these networks are spliced, you can raw Into the 3D models of user.
The method of the generation game material of the present embodiment, by user's projective structure light, gathering the shape on user's body Into reflected light and form depth information, according to depth information build user 3D models, can be identification each body of user The profile information at position and using profile information generate corresponding to target material lay the foundation, and then ensure generate target material Authenticity and accuracy.
Herein it should be noted that as a kind of example, the structure light used in above-described embodiment can be to be heterogeneous Structure light, the speckle pattern or random dot pattern that structure light heterogeneous is formed for the set of multiple hot spots, are by being arranged on terminal On grenade instrumentation in diffraction optical element formed.
Fig. 5 is the schematic diagram of structure light heterogeneous in the embodiment of the present invention.As shown in figure 5, adopted in the embodiment of the present invention It is structure light heterogeneous, wherein, structure light heterogeneous is the speckle pattern of random alignment, that is to say, that this is non- Even structure light is the set of multiple hot spots, and is arranged between multiple hot spots using uneven dispersing mode, and then forms one Individual speckle pattern.Because the memory space shared by speckle pattern is smaller, thus, grenade instrumentation will not be to terminal device when running Operational efficiency influences too much, and can save the memory space of terminal.
In addition, the speckle pattern used in the embodiment of the present invention, for other existing structure light types, hash Arrangement can reduce energy expenditure, save electricity, improve the endurance of terminal.
In embodiments of the present invention, can grenade instrumentation be set in the terminal devices such as computer, mobile phone, palm PC and takes the photograph As head.It is speckle pattern that grenade instrumentation launches structure light heterogeneous to user.Specifically, spreading out in grenade instrumentation can be utilized Penetrate optical element and form speckle pattern, wherein, a number of embossment, irregular speckle are provided with the diffraction optical element Pattern is just produced by irregular embossment on diffraction optical element.In the embodiment of the present invention, embossment depth of groove and quantity can be with Set by algorithm.
Wherein, grenade instrumentation can be used for projecting a default speckle pattern to the space residing for measurand.Shooting Head can be used for being acquired the measurand for having projected speckle pattern, to obtain two of the measurand with speckle pattern Tie up fault image.
In the embodiment of the present invention, when the camera of terminal is directed at user, the grenade instrumentation in terminal can be to user institute The space at place projects default speckle pattern, has multiple speckle points in the speckle pattern, when the speckle pattern is projected onto use When on the body surface of family, a lot of speckle points in the speckle pattern can be due to each body part that body surface includes And shift.The structure light heterogeneous reflected by the camera of terminal device the body of user is acquired, and is obtained To the two-dimentional fault image of the user with speckle pattern.
Further, by the speckle image collected with carrying out view data meter according to pre-defined algorithm with reference to speckle image Calculate, obtain each speckle point (characteristic point) of the speckle image collected relative to the movement with reference to speckle point (fixed reference feature point) Distance.Finally according to the displacement, distance and grenade instrumentation and camera with reference to camera on speckle image and terminal Between relative spacing value, the depth information of each speckle point of speckle infrared image is obtained using trigonometry, and then get The depth information of user, can be with the 3D models of reconstructing user based on the depth information.
Fig. 6 is the schematic flow sheet of the method for the generation game material that further embodiment of this invention proposes.
As shown in fig. 6, the method for generation game material may comprise steps of:
Step 301, the depth information of the virtual image for creating user in gaming is obtained, and according to depth information structure Build the 3D models of user.
It should be noted that the description in the embodiment of the present invention to step 301 may refer in previous embodiment to obtaining Depth information and the description that 3D models are created according to depth information, its realization principle is similar, and here is omitted.
Step 302, the characteristic point for belonging to each body part is identified from 3D models.
Uniform light is projected when the pattern that the structure light projected to user forms for many hot spot points, such as to user During the structure light of point-type structure light, speckle pattern heterogeneous or random dot pattern, the 3D models of structure are made up of many points User biological information, the point that can embody the biological information of user is characteristic point.So as to, in the present embodiment, Ke Yicong The characteristic point for belonging to each body part is identified in the 3D models of structure.
Step 303, for each body part, the depth information of the characteristic point based on body part, body part is built And obtain the profile information of body part.
, can be further directed to every after the characteristic point that each body part is identified from 3D models in the present embodiment Individual body part, based on depth information corresponding to the characteristic point of body part, each body part is constructed, and body can be obtained The profile information of body region.
Specifically, for each body part, each characteristic point of the body part will be formed, according to each in body part The depth information of individual characteristic point is arranged, and can construct the body part.And then by the feature of the body part edge Point is connected, you can obtains the profile information of the body part.
Step 304, for each body part, the reference contours information of the body part to prestore is obtained.
Same body part may include different profile informations, such as eyebrow, can be synophrys, straight eyebrows slanting upwards and outwards, willow leaf Eyebrow etc., it is naturally different for different cambers, its profile information.Therefore, each body part can be directed to, it may be included The profile information of type prestore in memory, as reference contours information, to be easy to accurately determine profile information pair The type for the body part answered.
, can be first according to the profile information of the body part of acquisition in a kind of possible implementation of the embodiment of the present invention The type of the body part is identified, and then reference contours letter corresponding with the type is obtained from the profile information prestored Breath.
For example oval face, oval face, round face, profile letter corresponding to four kinds of shapes of face of state's word face are prestored in memory Breath, the facial profile information obtained according to the face of structure, the shape of face for identifying user is oval face, then is obtained from memory The profile information of oval face is taken as reference contours information.
Step 305, by profile information compared with reference contours information.
Step 306, if profile information and the difference of reference contours information exceed default threshold value, according to profile information Generate target material.
Wherein, threshold value is set in advance that, for different body parts, can set different threshold values.Threshold value takes Value can be set by developer in algorithm for design, and the present invention is not construed as limiting to the specific value of threshold value.It is to be understood that It is that threshold value is smaller, the target material of generation is more, and the material stored in material database is more, and user is creating or changed virtual shape As when alternative it is bigger.
In the present embodiment, after the reference contours information for obtaining body part, it will can be obtained from the body part of structure The profile information taken is compared with reference contours information, judges whether profile information and the difference of reference contours information exceed in advance If threshold value, if difference exceedes threshold value, according to profile information generate target material.
As a kind of example, the profile information point maximum with profile difference in reference contours information can be selected, obtaining should The depth information of point, and the difference of both depth informations is calculated, it is big in difference by gained difference compared with default threshold value When threshold value, target material is generated according to profile information.
Step 307, according to difference and threshold value, preset range corresponding to difference is determined.
To better adapt to terminal device used in user and game, can to the material that is stored in material database according to Different precision are divided, and for the material after division set corresponding to scope, and set different difference and threshold value with not Same scope is corresponding.
So as to, difference that can be according to profile information and reference contours information in the present embodiment and default threshold value, it is determined that Preset range corresponding to difference.
Step 308, the first material and standard material for belonging to preset range are obtained from material database.
After obtaining preset range corresponding to difference, it can further be obtained from material database and belong to the of preset range One material and standard material.
Step 309, by target material and the first material respectively compared with standard material.
Step 310, if target material is less than the difference of the first material and standard material with standard material difference, utilize Target material is replaced the first material and is deposited into material database.
In the present embodiment, obtain and belong to after the first material and standard material of preset range from material database, can be with Further target material is compared with standard material, and the first material is compared with standard material, judges target element Material and the first material difference with standard material respectively.If difference between target material and standard material be less than the first material with Difference between standard material, then replace the first material using target material and be deposited into material database, to ensure to deposit in material database The accuracy of the material of storage.
The method of the generation game material of the present embodiment, by obtaining the virtual image for being used for creating user in gaming Depth information, and according to the 3D models of depth information structure user, the spy for belonging to each body part is identified from 3D models Point is levied, and the depth information of distinguished point based builds body part and obtains profile information, can ensure the profile information obtained Accuracy.For each body part, the reference contours information of the body part to prestore is obtained, profile information and reference are taken turns Wide information is compared, and when the difference of profile information and reference contours information exceedes default threshold value, according to profile information Target material is generated, can make to store larger material in material database, improve the alternative of user.According to difference and threshold value, Preset range corresponding to difference is determined, the first material and standard material for belonging to preset range are obtained from material database, by target Material and the first material are less than the first material and standard compared with standard material, and in target material and standard material difference respectively During the difference of material, replace the first material using target material and be deposited into material database, the element stored in material database can be ensured The accuracy of material, material database is set to store the material of different accuracy, to adapt to different terminal devices and game demand.Pass through The method of the generation game material of the present embodiment, user can use the personalized game of the material structure in the material database of game Figure image, the game image of user is different from the game image of other users, facilitate user's fast resolution to go out The game image of oneself, user can also change game at any time according to the material in the demand utilization material database of itself Image, Consumer's Experience is improved, improve the cohesiveness of game.
The present invention also proposes a kind of device for generating game material.
Fig. 7 is the structural representation of the device for the generation game material that one embodiment of the invention proposes.
As shown in fig. 7, the device of generation game material includes:Acquisition module 710, identification module 720, generation module 730, and update module 740.Wherein,
Acquisition module 710, the depth information of the virtual image of establishment user in gaming to be used for for obtaining, and according to depth The 3D models of information architecture user are spent, wherein, depth information is to generating after user's projective structure light.
Identification module 720, for identifying the profile information of each body part of user from 3D models.
Generation module 730, for for each body part, body part pair to be generated using the profile information of body part The target material answered.
Update module 740, for the material database using target material more new game.
Further, acquisition module 710, it is specifically used for:To user's projective structure light, gather what is formed on user's body Reflected light simultaneously forms depth information, and the 3D models of user are built according to depth information.
As a kind of example, structure light can be structure light heterogeneous.Structure light heterogeneous is the collection of multiple hot spots The speckle pattern formed or random dot pattern are closed, is formed by the diffraction optical element being arranged in the grenade instrumentation in terminal, Wherein, a number of embossment is provided with diffraction optical element, the depth of groove of embossment is different.
Alternatively, in a kind of possible implementation of the embodiment of the present invention, as shown in figure 8, in embodiment as shown in Figure 7 On the basis of, identification module 720 can also include:
Recognition unit 721, the characteristic point of each body part is belonged to for being identified from 3D models.
First acquisition unit 722, for for each body part, the depth information of the characteristic point based on body part, Build body part and obtain the profile information of body part.
Generation module 730 can include:
Second acquisition unit 731, for obtaining the reference contours information of the body part to prestore.
Specifically, second acquisition unit 731 is used to identify type corresponding to body part, obtains reference corresponding with type Profile information.
Comparing unit 732, by profile information compared with reference contours information.
Generation unit 733, for when the difference of profile information and reference contours information exceedes default threshold value, according to wheel Wide information generates target material.
Further, update module 740 is specifically used for:According to difference and threshold value, preset range corresponding to difference is determined;From The first material and standard material for belonging to preset range are obtained in material database;Target material and the first material is plain with standard respectively Material compares;If target material is less than the difference of the first material and standard material with standard material difference, target material is utilized The first material is replaced to be deposited into material database.
It should be noted that the explanation of the embodiment of the method for foregoing material of being played to generation, is also applied for this implementation The device of the generation game material of example, its realization principle is similar, and here is omitted.
The device of the generation game material of the present embodiment, by obtaining the virtual image for being used for creating user in gaming Depth information, and the 3D models of user are built according to depth information, the wheel of each body part of user is identified from 3D models Wide information, for each body part, using target material corresponding to the profile information generation body part of body part, utilize The material database of target material more new game.Thereby, it is possible to user is built individual character using the material in the material database of game The game image of change, the game image of user is different from the game image of other users, facilitate user fast Speed tells the game image of oneself, and user can also change at any time according to the material in the demand utilization material database of itself Game image, improves Consumer's Experience, improves the cohesiveness of game.It is every by storing user in the material database of game The material of individual body part, allow the personalized game image of material structure of the user in material database, structure Game image is vivid similar with user's itself, so as to which user can easily tell the game image of oneself, Solve user in the prior art to be difficult to differentiate the vivid technical problem of the game of oneself.
The present invention also proposes the non-volatile computer readable storage medium that one or more includes computer executable instructions Matter, when computer executable instructions are executed by one or more processors so that described in computing device previous embodiment The method of generation game material.
The present invention also proposes a kind of terminal.Above-mentioned terminal includes image processing circuit, and image processing circuit can utilize Hardware and/or component software are realized, it may include define ISP (Image Signal Processing, picture signal processing) pipeline Various processing units.Fig. 9 is the structural representation of the image processing circuit in the terminal that one embodiment of the invention proposes.Such as figure Shown in 9, for purposes of illustration only, only showing the various aspects of the image processing techniques related to the embodiment of the present invention.
As shown in figure 9, image processing circuit 80 includes imaging device 810, ISP processors 830 and control logic device 840. Imaging device 810 may include the camera and structured light projector with one or more lens 812, imaging sensor 814 816.Structured light projector 816 is by structured light projection to measured object.Wherein, the structured light patterns can be laser stripe, Gray code, Sine streak or, speckle pattern of random alignment etc..Imaging sensor 814 catches the structure light that projection is formed to measured object Image, and structure light image is sent to ISP processors 830, acquisition is demodulated to structure light image by ISP processors 830 The depth information of measured object.Meanwhile imaging sensor 814 can also catch the color information of measured object.It is of course also possible to by two Individual imaging sensor 814 catches the structure light image and color information of measured object respectively.
Wherein, by taking pattern light as an example, ISP processors 830 are demodulated to structure light image, are specifically included, from this The speckle image of measured object is gathered in structure light image, by the speckle image of measured object with reference speckle image according to pre-defined algorithm View data calculating is carried out, each speckle point for obtaining speckle image on measured object dissipates relative to reference to the reference in speckle image The displacement of spot.The depth value of each speckle point of speckle image is calculated using trigonometry conversion, and according to the depth Angle value obtains the depth information of measured object.
It is, of course, also possible to obtain the depth image by the method for binocular vision or based on jet lag TOF method Information etc., is not limited herein, as long as can obtain or belong to this by the method for the depth information that measured object is calculated The scope that embodiment includes.
After the color information that ISP processors 830 receive the measured object that imaging sensor 814 captures, it can be tested View data corresponding to the color information of thing is handled.ISP processors 830 are analyzed view data can be used for obtaining Determine the image statistics of one or more control parameters of imaging device 810.Imaging sensor 814 may include colour filter Array (such as Bayer filters), imaging sensor 814 can obtain the light intensity caught with each imaging pixel of imaging sensor 814 Degree and wavelength information, and the one group of raw image data that can be handled by ISP processors 830 is provided.
ISP processors 830 handle 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 processors 830 can be carried out at one or more images to raw image data Reason operation, image statistics of the collection on view data.Wherein, image processing operations can be by identical or different bit depth Precision is carried out.
ISP processors 830 can also receive pixel data from video memory 820.Video memory 820 can be memory device The independent private memory in a part, storage device or electronic equipment put, and may include DMA (Direct Memory Access, direct memory access (DMA)) feature.
When receiving raw image data, ISP processors 830 can carry out one or more image processing operations.
After ISP processors 830 get color information and the depth information of measured object, it can be merged, obtained 3-D view.Wherein, can be extracted by least one of appearance profile extracting method or contour feature extracting method corresponding The feature of measured object.Such as pass through active shape model method ASM, active appearance models method AAM, PCA PCA, discrete The methods of cosine transform method DCT, the feature of measured object is extracted, is not limited herein.It will be extracted respectively from depth information again The feature of measured object and feature progress registration and the Fusion Features processing that measured object is extracted from color information.Herein refer to Fusion treatment can be the feature that will be extracted in depth information and color information directly combination or by different images Middle identical feature combines after carrying out weight setting, it is possibility to have other amalgamation modes, finally according to the feature after fusion, generation 3-D view.
The view data of 3-D view can be transmitted to video memory 820, to carry out other place before shown Reason.ISP processors 830 from the reception processing data of video memory 820, and to the processing data carry out original domain in and Image real time transfer in RGB and YCbCr color spaces.The view data of 3-D view may be output to display 860, for Family is watched and/or further handled by graphics engine or GPU (Graphics Processing Unit, graphics processor).This Outside, the output of ISP processors 830 also be can be transmitted to video memory 820, and display 860 can be read from video memory 820 View data.In one embodiment, video memory 820 can be configured as realizing one or more frame buffers.In addition, The output of ISP processors 830 can be transmitted to encoder/decoder 850, so as to encoding/decoding image data.The picture number of coding According to can be saved, and decompressed before being shown in the equipment of display 860.Encoder/decoder 850 can by CPU or GPU or Coprocessor is realized.
The image statistics that ISP processors 830 determine, which can be transmitted, gives the unit of control logic device 840.Control logic device 840 It may include the processor and/or microcontroller for performing one or more routines (such as firmware), one or more routines can be according to connecing The image statistics of receipts, determine the control parameter of imaging device 810.
It is the step of realizing the method for generation game material with image processing techniques in Fig. 9 below:
Step 101 ', the depth information of the virtual image for creating user in gaming is obtained, and according to depth information The 3D models of user are built, wherein, depth information is to generating after user's projective structure light.
Step 102 ', the profile information of each body part of user is identified from 3D models.
Step 103 ', for each body part, utilize mesh corresponding to the profile information generation body part of body part Mark material.
Step 104 ', using the material database of target material more new game, wherein, each body part is stored with material database At least one material.
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Identical embodiment or example must be directed to.Moreover, specific features, structure, material or the feature of description can be with office Combined in an appropriate manner in one or more embodiments or example.In addition, in the case of not conflicting, the skill of this area Art personnel can be tied the different embodiments or example and the feature of different embodiments or example described in this specification Close and combine.
In addition, term " first ", " second " are only used for describing purpose, and it is not intended that instruction or hint relative importance Or the implicit quantity for indicating indicated technical characteristic.Thus, define " first ", the feature of " second " can be expressed or Implicitly include at least one this feature.In the description of the invention, " multiple " are meant that at least two, such as two, three It is individual etc., unless otherwise specifically defined.
Any process or method described otherwise above description in flow chart or herein is construed as, and represents to include Module, fragment or the portion of the code of the executable instruction of one or more the step of being used to realize custom logic function or process Point, and the scope of the preferred embodiment of the present invention includes other realization, wherein can not press shown or discuss suitable Sequence, including according to involved function by it is basic simultaneously in the way of or in the opposite order, carry out perform function, this should be of the invention Embodiment person of ordinary skill in the field understood.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.The more specifically example (non-exhaustive list) of computer-readable medium includes following:Electricity with one or more wiring Connecting portion (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.Such as, if realized with hardware with another embodiment, following skill well known in the art can be used Any one of art or their combination are realized:With the logic gates for realizing logic function to data-signal from Logic circuit is dissipated, the application specific integrated circuit with suitable combinational logic gate circuit, programmable gate array (PGA), scene can compile Journey gate array (FPGA) etc..
Those skilled in the art are appreciated that to realize all or part of step that above-described embodiment method carries Suddenly it is that by program the hardware of correlation can be instructed to complete, described program can be stored in a kind of computer-readable storage medium In matter, the program upon execution, including one or a combination set of the step of embodiment of the method.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing module, can also That unit is individually physically present, can also two or more units be integrated in a module.Above-mentioned integrated mould Block can both be realized in the form of hardware, can also be realized in the form of software function module.The integrated module is such as Fruit is realized in the form of software function module and as independent production marketing or in use, can also be stored in a computer In read/write memory medium.
Storage medium mentioned above can be read-only storage, disk or CD etc..Although have been shown and retouch above Embodiments of the invention are stated, it is to be understood that above-described embodiment is exemplary, it is impossible to be interpreted as the limit to the present invention System, one of ordinary skill in the art can be changed to above-described embodiment, change, replace and become within the scope of the invention Type.

Claims (10)

  1. A kind of 1. method for generating game material, it is characterised in that including:
    The depth information of the virtual image for creating user in gaming is obtained, and builds user's according to the depth information 3D models, wherein, the depth information is to generating after user's projective structure light;
    The profile information of each body part of the user is identified from the 3D models;
    For each body part, target corresponding to the body part is generated using the profile information of the body part Material;
    The material database of the game is updated using the target material;Each body part is stored with wherein described material database At least one material.
  2. 2. according to the method for claim 1, it is characterised in that described to identify that the user is each from the 3D models The profile information of body part, including:
    The characteristic point for belonging to each body part is identified from the 3D models;
    For each body part, the depth information of the characteristic point based on the body part, build the body part and Obtain the profile information of body part.
  3. 3. according to the method for claim 1, it is characterised in that the profile information using the body part is given birth to Into target material corresponding to the body part, including:
    Obtain the reference contours information of the body part to prestore;
    By the profile information compared with the reference contours information;
    If the profile information and the difference of the reference contours information exceed default threshold value, according to the profile information Generate the target material.
  4. 4. according to the method for claim 3, it is characterised in that the reference contours for obtaining the body part to prestore Information, including:
    Identify type corresponding to the body part;
    Obtain the reference contours information corresponding with the type.
  5. 5. according to the method for claim 3, it is characterised in that the element that the game is updated using the target material Material storehouse, including:
    According to the difference and the threshold value, preset range corresponding to the difference is determined;
    The first material and standard material for belonging to the preset range are obtained from the material database;
    By the target material and first material respectively compared with the standard material;
    If the target material is less than the difference of first material and the standard material with standard material difference, utilize The target material is replaced first material and is deposited into the material database.
  6. 6. according to the method described in claim any one of 1-4, it is characterised in that described to obtain for creating user in gaming Virtual image the depth information, including:
    To user's projective structure light;
    Gather the reflected light formed on the user's body and form the depth information.
  7. 7. according to the method described in claim any one of 1-4, it is characterised in that the structure light is structure light heterogeneous, The speckle pattern or random dot pattern that the structure light heterogeneous is formed for the set of multiple hot spots, are by being arranged in terminal What the diffraction optical element in grenade instrumentation was formed, wherein, a number of embossment, institute are provided with the diffraction optical element The depth of groove for stating embossment is different.
  8. A kind of 8. device for generating game material, it is characterised in that including:
    Acquisition module, the depth information of the virtual image of establishment user in gaming to be used for for obtaining, and according to the depth The 3D models of information architecture user, wherein, the depth information is to generating after user's projective structure light;
    Identification module, for identifying the profile information of each body part of the user from the 3D models;
    Generation module, for for each body part, the body to be generated using the profile information of the body part Target material corresponding to position;
    Update module, for updating the material database of the game using the target material.
  9. 9. one or more includes the non-volatile computer readable storage medium storing program for executing of computer executable instructions, when the computer When executable instruction is executed by one or more processors so that the computing device such as any one of claim 1-7 institutes The method for the generation game material stated.
  10. 10. a kind of computer equipment, including memory and processor, computer-readable instruction is stored in the memory, institute When stating instruction by the computing device so that generation trip of the computing device as any one of claim 1-7 The method of play material.
CN201710676383.8A 2017-08-09 2017-08-09 Method and device for generating game material Active CN107622522B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710676383.8A CN107622522B (en) 2017-08-09 2017-08-09 Method and device for generating game material

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710676383.8A CN107622522B (en) 2017-08-09 2017-08-09 Method and device for generating game material

Publications (2)

Publication Number Publication Date
CN107622522A true CN107622522A (en) 2018-01-23
CN107622522B CN107622522B (en) 2021-02-05

Family

ID=61088109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710676383.8A Active CN107622522B (en) 2017-08-09 2017-08-09 Method and device for generating game material

Country Status (1)

Country Link
CN (1) CN107622522B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108898650A (en) * 2018-06-15 2018-11-27 Oppo广东移动通信有限公司 Humanoid material creation method and relevant apparatus
CN111598579A (en) * 2019-02-02 2020-08-28 阿里巴巴集团控股有限公司 Commodity content processing method and device, storage medium and processor

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504774A (en) * 2009-03-06 2009-08-12 暨南大学 Animation design engine based on virtual reality
CN104679831A (en) * 2015-02-04 2015-06-03 腾讯科技(深圳)有限公司 Method and device for matching human model
CN104899825A (en) * 2014-03-06 2015-09-09 腾讯科技(深圳)有限公司 Method and device for modeling picture figure
US20150279083A1 (en) * 2014-03-26 2015-10-01 Microsoft Corporation Real-time three-dimensional reconstruction of a scene from a single camera

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101504774A (en) * 2009-03-06 2009-08-12 暨南大学 Animation design engine based on virtual reality
CN104899825A (en) * 2014-03-06 2015-09-09 腾讯科技(深圳)有限公司 Method and device for modeling picture figure
US20150279083A1 (en) * 2014-03-26 2015-10-01 Microsoft Corporation Real-time three-dimensional reconstruction of a scene from a single camera
CN104679831A (en) * 2015-02-04 2015-06-03 腾讯科技(深圳)有限公司 Method and device for matching human model

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108898650A (en) * 2018-06-15 2018-11-27 Oppo广东移动通信有限公司 Humanoid material creation method and relevant apparatus
CN108898650B (en) * 2018-06-15 2022-11-15 Oppo广东移动通信有限公司 Human-shaped material creating method and related device
CN111598579A (en) * 2019-02-02 2020-08-28 阿里巴巴集团控股有限公司 Commodity content processing method and device, storage medium and processor
CN111598579B (en) * 2019-02-02 2023-05-02 阿里巴巴集团控股有限公司 Commodity content processing method, commodity content processing device, storage medium and processor

Also Published As

Publication number Publication date
CN107622522B (en) 2021-02-05

Similar Documents

Publication Publication Date Title
CN107481304A (en) The method and its device of virtual image are built in scene of game
CN107479801A (en) Displaying method of terminal, device and terminal based on user's expression
CN107480613A (en) Face identification method, device, mobile terminal and computer-readable recording medium
CN107465906B (en) Panorama shooting method, device and the terminal device of scene
CN107423716A (en) Face method for monitoring state and device
CN107481317A (en) The facial method of adjustment and its device of face 3D models
CN107610077A (en) Image processing method and device, electronic installation and computer-readable recording medium
CN107551549A (en) Video game image method of adjustment and its device
CN107483845B (en) Photographic method and its device
CN107481101A (en) Wear the clothes recommendation method and its device
CN107507269A (en) Personalized three-dimensional model generating method, device and terminal device
CN107452034A (en) Image processing method and its device
CN107707839A (en) Image processing method and device
CN107707831A (en) Image processing method and device, electronic installation and computer-readable recording medium
CN107509045A (en) Image processing method and device, electronic installation and computer-readable recording medium
CN107463659A (en) Object search method and its device
CN107437019A (en) The auth method and device of lip reading identification
CN107895110A (en) Unlocking method, device and the mobile terminal of terminal device
CN107491744A (en) Human body personal identification method, device, mobile terminal and storage medium
CN107656611A (en) Somatic sensation television game implementation method and device, terminal device
CN107592449A (en) Three-dimension modeling method, apparatus and mobile terminal
CN107707838A (en) Image processing method and device
CN107469355A (en) Game image creation method and device, terminal device
CN107644440A (en) Image processing method and device, electronic installation and computer-readable recording medium
CN107480615A (en) U.S. face processing method, device and mobile device

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
CB02 Change of applicant information
CB02 Change of applicant information

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Applicant before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

GR01 Patent grant
GR01 Patent grant