CN107551549A - Video game image method of adjustment and its device - Google Patents

Video game image method of adjustment and its device Download PDF

Info

Publication number
CN107551549A
CN107551549A CN201710676517.6A CN201710676517A CN107551549A CN 107551549 A CN107551549 A CN 107551549A CN 201710676517 A CN201710676517 A CN 201710676517A CN 107551549 A CN107551549 A CN 107551549A
Authority
CN
China
Prior art keywords
user
virtual image
image
adjustment
video game
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
CN201710676517.6A
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.)
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 CN201710676517.6A priority Critical patent/CN107551549A/en
Publication of CN107551549A publication Critical patent/CN107551549A/en
Pending legal-status Critical Current

Links

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The present invention proposes a kind of video game image method of adjustment and its device, wherein, method includes:Obtain the depth information for carrying the user for attempting to build virtual image in gaming;Wherein, depth information generates after carrying out structure light image processing to user;The virtual image of user is built according to depth information;Obtain the adjustment information being adjusted to the virtual image of user;Virtual image is adjusted according to adjustment information, forms the destination virtual image of user.This method, it can realize and virtual image is built according to the depth information of user, because the virtual image of user is more nearly reality than the virtual image set in game, so as to improve the substitution sense of game.In addition, user can be adjusted according to self-demand to virtual image, the individual demand of user is disclosure satisfy that, lifts the applicability of this method.

Description

Video game image method of adjustment and its device
Technical field
The present invention relates to field of terminal equipment, more particularly to a kind of video game image method of adjustment and its device.
Background technology
At present, various game emerge in an endless stream, and game has become a part for people's amusement and leisure.Especially it is three-dimensional game Play, because the virtual image of personage in its game more conforms to the visual effect of people, increasingly favored by people.
In correlation technique, the virtual image of personage is built by Software for producing in game.Due to personage's Virtual image is built in advance, and user can not be adjusted to it, can not meet the individual demand of user.In addition, with Family can only select the virtual image having had been built up when playing game, and it is poor for topic to there is substitution sense.
The content of the invention
It is contemplated that at least solves one of technical problem in correlation technique to a certain extent.
Therefore, first purpose of the present invention is to propose a kind of video game image method of adjustment, to realize according to user's Depth information builds virtual image, because the virtual image of user is more nearly reality than the virtual image set in game, from And the substitution sense of game can be improved.In addition, user can be adjusted according to self-demand to virtual image, use disclosure satisfy that The individual demand at family, the applicability of this method is lifted, and it is to build in advance to solve the existing virtual image due to personage , user can not be adjusted to it, can not meet the individual demand of user.In addition, user can only select when playing game The virtual image having had been built up, it is poor for topic to there is substitution sense.
Second object of the present invention is to propose a kind of video game image adjusting apparatus.
Third object of the present invention is to propose a kind of computer-readable recording medium.
Fourth object of the present invention is to propose a kind of terminal device.
For the above-mentioned purpose, first aspect present invention embodiment proposes a kind of video game image method of adjustment, including:
Obtain the depth information for carrying the user for attempting to build virtual image in gaming;Wherein, the depth information pair Generated after user's progress structure light image processing;
The virtual image of the user is built according to the depth information;
Obtain the adjustment information being adjusted to the virtual image of the user;
The virtual image is adjusted according to the adjustment information, forms the destination virtual image of the user.
User's expression recognition method of the embodiment of the present invention, attempt to build virtual image in gaming by obtaining to carry The depth information of user;Wherein, depth information is built to what is generated after user's progress structure light image processing according to depth information The virtual image of user, the adjustment information being adjusted to the virtual image of user is obtained, according to adjustment information to virtual image It is adjusted, forms the destination virtual image of user.Virtual image is built according to the depth information of user thus, it is possible to realize, Because the virtual image of user is more nearly reality than the virtual image set in game, so as to improve the substitution of game Sense.In addition, user can be adjusted according to self-demand to virtual image, the individual demand of user is disclosure satisfy that, is lifted The applicability of this method.
For the above-mentioned purpose, second aspect of the present invention embodiment proposes a kind of video game image adjusting apparatus, including:
First acquisition module, the depth information for the user for attempting to build virtual image in gaming is carried for obtaining;Its In, the depth information generates after carrying out structure light image processing to user;
Module is built, for building the virtual image of the user according to the depth information;
Second acquisition module, for obtaining the adjustment information being adjusted to the virtual image of the user;
Adjusting module, for being adjusted according to the adjustment information to the virtual image, form the mesh of the user Mark virtual image.
The video game image adjusting apparatus of the embodiment of the present invention, attempt to build virtual image in gaming by obtaining to carry The depth information of user;Wherein, depth information is built to what is generated after user's progress structure light image processing according to depth information The virtual image of user, the adjustment information being adjusted to the virtual image of user is obtained, according to adjustment information to virtual image It is adjusted, forms the destination virtual image of user.Virtual image is built according to the depth information of user thus, it is possible to realize, Because the virtual image of user is more nearly reality than the virtual image set in game, so as to improve the substitution of game Sense.In addition, user can be adjusted according to self-demand to virtual image, the individual demand of user is disclosure satisfy that, is lifted The applicability of this method.
For the above-mentioned purpose, third aspect present invention embodiment proposes one or more and includes computer executable instructions Non-volatile computer readable storage medium storing program for executing, when the computer executable instructions are executed by one or more processors, So that video game image method of adjustment of the computing device as described in first aspect embodiment.
For the above-mentioned purpose, fourth aspect present invention embodiment proposes a kind of terminal device, including memory and processing Device, computer-readable instruction is stored in the memory, when the instruction is by the computing device so that the processor Perform the video game image method of adjustment as described in first 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 a kind of schematic flow sheet of video game image method of adjustment provided in an embodiment of the present invention;
Fig. 2 is the device combination diagram of a projective structure light provided in an embodiment of the present invention;
Fig. 3 is the schematic diagram of various forms of structure lights provided in an embodiment of the present invention;
Fig. 4 is the schematic flow sheet of another video game image method of adjustment provided in an embodiment of the present invention;
Fig. 5 is the schematic flow sheet of another video game image method of adjustment provided in an embodiment of the present invention;
Fig. 6 is the schematic flow sheet of another video game image method of adjustment provided in an embodiment of the present invention;
Fig. 7 is the schematic flow sheet of another video game image method of adjustment provided in an embodiment of the present invention;
Fig. 8 is the projection set schematic diagram of structure light heterogeneous in the embodiment of the present invention;
Fig. 9 is a kind of structural representation of video game image adjusting apparatus provided in an embodiment of the present invention;
Figure 10 is the structural representation of another video game image adjusting apparatus provided in an embodiment of the present invention;
Figure 11 is the schematic diagram of image processing circuit in one embodiment.
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 video game image method of adjustment and its device of the embodiment of the present invention are described.
Fig. 1 is the schematic flow sheet of user's expression recognition method provided in an embodiment of the present invention.
As shown in figure 1, the video game image method of adjustment comprises the following steps:
Step 101, the depth information for carrying the user for attempting to build virtual image in gaming is obtained;Wherein, depth is believed Cease and generated after carrying out structure light image processing to user.
It is known that the collection of the projection of direction in space light is collectively referred to as structure 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 Object is surveyed, i.e., in the space residing for user, the image modulated by the shape on user surface is formed on user's body surface.Should Image is by the camera detection in another location, so as to obtain structure light image.
After structure light image is obtained, the optical strip image of user is gathered from the structure light image, by the striation figure of user As with carrying out view data calculating according to pre-defined algorithm with reference to optical strip image, obtaining each striation of optical strip image on user's body Relative to the displacement with reference to the reference striation in optical strip image.The each of optical strip image is calculated using trigonometry conversion The depth value of striation, and it is worth to according to the depth depth information 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, Fig. 3 is the schematic diagram of various forms of structure lights provided in an embodiment of the present invention.Said structure is just Uniformly arrange, accordingly, the equipment of generating structure light can be that luminous point, line, grating, grid or speckle are projected into measured object Certain projector equipment or instrument on body, such as optical projection device or the laser for generating laser beam.
Video camera in the embodiment of the present invention can be the front camera of terminal such as mobile phone, palm PC etc..Thus, when User picks up terminal, and during terminaloriented, you can the optical projection device and camera in terminal are called, obtains the structure light of user Image, by handling the structure light image of user, the depth information of user can be obtained.
Step 102, the virtual image of user is built according to depth information.
In the present embodiment, the color information for the user that can gather depth information with camera is merged, and is used The virtual image at family.Specifically, the feature of user is extracted respectively from depth information and color information.Then, will believe from depth The feature of the user extracted in breath and the feature of the user extracted from color information carry out registration and Fusion Features processing, finally According to the feature after fusion, the virtual image of user is generated.
Step 103, the adjustment information being adjusted to the virtual image of user is obtained.
In the present embodiment, after the virtual image of user is built, user can be according to the demand of oneself, to virtual image It is adjusted, i.e., is beautified or increased special efficacy to virtual portrait.
It is understood that user is beautified or increased to virtual image special efficacy according to self-demand, be to virtual Some body part in image is adjusted, and therefore, the body part for the user for needing to adjust can be included in adjustment information, And specific adjusting parameter.
For example, when user wants to beautify virtual image, such as thin waist, thin leg, thin arm etc., user can lead to Selection operation is crossed to determine to need the body part being adjusted.It is determined that after body part, user can continuously be moved by finger Dynamic movement locus determines the adjusting parameter of body part.When than the body part if desired for adjustment being leg, user can lead to The mode for dragging leg area inwards is crossed, leg is attenuated.
Or when user wants to increase special efficacy to virtual image, for example restyle the hair, change clothes, replaced with others' face Five official ranks of oneself are changed, user can be by choosing a target material, then can be as corresponding to user specifies target material Body part, then adjustment information can be determined by target material and corresponding body part.
Step 104, virtual image is adjusted according to adjustment information, forms the destination virtual image of user.
It is determined that after adjustment information, virtual image can be adjusted according to adjustment information, the target for forming user is empty Intend image, virtual image can be built according to the depth information of user, because the virtual image of user is than the void that is set in game Intend image and be more nearly reality, so as to improve the substitution sense of game.In addition, user can be according to self-demand to virtual shape As being adjusted, the individual demand of user is disclosure satisfy that, lifts the applicability of this method.
For example, when user attempts to change the stature of oneself, such as thin leg, user can choose leg area, and Afterwards can be by way of the leg area be dragged inwards so that leg attenuates, and meets the individual demand of user, and lifting should The applicability of method.
Or when user attempts to change the hair style of oneself, oneself a happiness can be chosen from the material built in advance Joyous hair style, this hair style are exactly target material, and body part corresponding to the target material is exactly head.The specified location of user It can be the crown, the depth information on the user crown, and the depth information of hair style can be got, then utilize user's oneself The depth information on the crown is adjusted to the depth information of the hair style so that the hair style after adjustment can be placed into user naturally The crown, can thus complete to virtual image beautification operation.Because user is according to the depth information pair on the crown of oneself The depth information of hair style is adjusted so that the size or size of hair style more match with the crown, so that hair style Be placed on the crown, be bonded with the crown more naturally, treatment effect is more preferable.
The video game image method of adjustment of the present embodiment, attempt to build the user of virtual image in gaming by obtaining to carry Depth information;Wherein, depth information builds user to what is generated after user's progress structure light image processing according to depth information Virtual image, obtain the adjustment information being adjusted to the virtual image of user, according to adjustment information to virtual image carry out Adjustment, form the destination virtual image of user.Virtual image is built according to the depth information of user thus, it is possible to realize, due to The virtual image of user is more nearly reality than the virtual image set in game, so as to improve the substitution sense of game.This Outside, user can be adjusted according to self-demand to virtual image, disclosure satisfy that the individual demand of user, lift this method Applicability.
As a kind of possible implementation of the embodiment of the present invention, referring to Fig. 4, on the basis of embodiment illustrated in fig. 1, Step 103 specifically includes following sub-step:
Step 401, the selection operation to user is monitored.
In the present embodiment, selection operation can include the operation such as click, mobile.
During specific implementation, a monitor can be set with the selection operation of monitoring users.
Step 402, operation object corresponding to the selection operation monitored is defined as body part.
For example, monitor can be monitored to the clicking operation of user in real time, and after clicking operation is monitored, Ke Yishi Do not go out the region corresponding to the clicking operation, operation object corresponding in the region can be analyzed from the background, if operation object For some body part in virtual image, then the operation object is defined as body part, if operation object is not virtual Some body part in image, then ignore this selection operation.
Or monitor can be monitored to the moving operation of user in real time, when monitoring the finger of user in screen During upper continuous moving, one, picture of analogy is square, circular, oval etc., and the area that user chooses is determined according to the motion track of user Domain, the operation object corresponding to the region can be analyzed from the background, if operation object is some body part in virtual image, The operation object is then defined as body part, if operation object is not some body part in virtual image, ignored This time selection operation.
Step 403, according to the movement locus of the selection operation monitored, the adjusting parameter of virtual image is determined.
For example, if user wants thin arm, user can be chosen by way of drawing circle wants thin area in arm Domain, the region can then be dragged inward, i.e., movement locus is that user's finger drags inwards, can be with when finger stops mobile Arm after being adjusted.The fineness of arm before the fineness of arm after adjustment and adjustment is made into ratio, can be with Obtain the adjusting parameter of arm.
Step 404, adjustment information is formed according to operation object and adjusting parameter.
In the present embodiment, adjustment information includes operation object and adjusting parameter, when it is determined that needing the operation object adjusted, It can be adjusted according to adjusting parameter, to meet the individual demand of user.
The video game image method of adjustment of the present embodiment, is monitored by the selection operation to user, the choosing that will be monitored Operation object is defined as body part corresponding to extract operation, according to the movement locus of the selection operation monitored, it is determined that virtual shape The adjusting parameter of elephant, adjustment information is formed according to operation object and adjusting parameter.Thus, it is possible to adjustment information is determined by user, The individual demand of user is disclosure satisfy that, lifts the applicability of this method.
As a kind of possible implementation of the embodiment of the present invention, referring to Fig. 5, on the basis of embodiment illustrated in fig. 1, Step 103 specifically includes following sub-step:
Step 501, a target material is chosen in the material built in advance from game.
In an embodiment of the present invention, multiple elements for being adjusted to virtual image can be previously stored with game Material, for example, material can be clothes, hair style, virtual wing, shape of face, five official ranks.Game can also download in real time from server New material, newly downloaded material are possibly stored in the material that builds in advance.
Specifically, user can click on the screen of terminal device, and a material conduct is chosen from the material built in advance Target material.Terminal device can be monitored to the clicking operation of user in real time, can after the clicking operation of user is monitored To identify region corresponding to the clicking operation, material corresponding in the region can be analyzed from the background, and then determine target Material.
Step 502, the composition parameter of body part and target material corresponding to target material is obtained.
Wherein, the composition parameter of target material is the specific configuration information of target material, such as color, size and/or shape Shape etc..
In the present embodiment, user can determine the position that target material is placed, general feelings according to the beautification demand of oneself , can be by specifying a position in a manner of clicking operation or movement etc. by user under condition.For example, user can click on one Sub-screen, the clicking operation of terminal-pair user are monitored, and after clicking operation is monitored, can be identified and be clicked on operating position institute Corresponding position.For another example user can carry out continuous moving by finger on screen, one, picture of analogy is square, circular, ellipse Circle etc., the track moved according to finger obtain the position that user specifies.The position that above-mentioned user chooses is target material pair The body part answered.
For example, when User changes the hair style of oneself, oneself a happiness can be chosen from the material built in advance Joyous hair style, this hair style are exactly target material, and body part corresponding to the target material is exactly head.
Or when target material is wrist-watch, user can click on the position of wrist, body corresponding to the target material Position is exactly wrist.
Step 503, using body part corresponding to target material and composition parameter, adjustment information is formed.
In the present embodiment, adjustment information includes the composition parameter for needing the body part that beautifies and target material, when it is determined that When needing the body part beautified, it can be beautified, to meet the individual character of user according to the composition parameter of target material Change demand.
The video game image method of adjustment of the present embodiment, by choosing a target element in the material that is built in advance from game Material, the composition parameter of body part and target material corresponding to acquisition target material, utilizes body part corresponding to target material With composition parameter, adjustment information is formed.Thus, it is possible to determine adjustment information by user, the individual demand of user is disclosure satisfy that, Lift the applicability of this method.
Alternatively, referring to Fig. 6, on the basis of embodiment illustrated in fig. 1, step 104 specifically includes following sub-step:
Step 601, extraction needs to adjust the body part of user from adjustment information.
It is understood that demand of the user according to oneself, is beautified or increased special efficacy to virtual image, it is to void Some body part intended in image is adjusted, and therefore, the body part for the user for needing to adjust is included in adjustment information, with And specific adjusting parameter.
For example, from step 404, adjustment information is formed according to operation object and adjusting parameter.Or by step Rapid 503 understand, by adjustment information using body part corresponding to target material and composition parameter formed.Therefore, may be used To extract the body part for needing to adjust user from adjustment information.
Step 602, body part is identified from virtual image, and according to the adjusting parameter in adjustment information to body Position is adjusted, and obtains destination virtual image.
During specific implementation, it can recognize the need for adjusting from virtual image according to the depth information of each body part Body part, then according to the adjusting parameter in adjustment information, the body part adjusted to needs is adjusted, and obtains target Virtual image.
The video game image method of adjustment of the present embodiment, by extracting the body for needing to adjust user from adjustment information Position, identifies body part from virtual image, and body part is adjusted according to the adjusting parameter in adjustment information, obtains To destination virtual image.Thus, user can be adjusted according to self-demand to virtual image, disclosure satisfy that the individual character of user Change demand, lift the applicability of this method.
Alternatively, referring to Fig. 7, on the basis of embodiment illustrated in fig. 1, before step 101, the video game image adjustment side Method can also comprise the following steps:
Step 701, to user's body emitting structural light.
Application program can be installed, the equipment that can call generating structure light by application program is thrown on terminal device Injection device, then send structure light from grenade instrumentation to the body of user.
Step 702, gather reflected light of the structure light on user's body and form depth information.
After the structure light of the body transmitting to user reaches body, because each position can be made to structure light on body Into obstruction, structure light can reflect at body, at this point it is possible to by the camera that is set in terminal to structure light in body On reflected light be acquired, the structure light image of user can be formed by the reflected light collected, and then to the knot of user Structure light image is handled, and can obtain the depth information of user.
The video game image method of adjustment of the present embodiment, by the way that to user's body emitting structural light, collection structure light is in user Reflected light on body simultaneously forms depth information.Thus, it is possible to accurately obtain the depth information of user, it is easy to the follow-up behaviour of user Make.
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.
Fig. 8 is the projection set schematic diagram of structure light heterogeneous in the embodiment of the present invention.As shown in figure 8, the present invention is real Apply using structure light heterogeneous in example, wherein, structure light heterogeneous is random alignment speckle pattern heterogeneous, That is the structure light heterogeneous is the set of multiple hot spots, and arranged between multiple hot spots using uneven dispersing mode Cloth, and then form a speckle pattern.Because the memory space shared by speckle pattern is smaller, thus, when grenade instrumentation is run not The operational efficiency of terminal can be influenced too much, the memory space of terminal can be saved.
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, grenade instrumentation and shooting can be set in the terminals such as computer, mobile phone, palm PC Head.It is speckle pattern that grenade instrumentation launches structure light heterogeneous to user.Specifically, the diffraction in grenade instrumentation can be utilized Optical element forms speckle pattern, wherein, a number of embossment, irregular speckle pattern are provided with the diffraction optical element Case is just produced by irregular embossment on diffraction optical element.In the embodiment of the present invention, embossment depth of groove and quantity can lead to Cross algorithm setting.
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 sent out due to each position that body surface includes Raw skew.The body of user is acquired by the camera of terminal, obtains the two dimension distortion of the user with speckle pattern Image.
Further, by the speckle image of the user collected with carrying out picture number according to pre-defined algorithm with reference to speckle image According to calculating, each speckle point of speckle image of body is obtained relative to the displacement with reference to speckle point.Finally according to the shifting Relative spacing value between dynamic distance, the distance with reference to camera on speckle image and terminal and grenade instrumentation and camera, The depth value of each speckle point of speckle infrared image is obtained using trigonometry, and the depth map of user is worth to according to the depth Picture, and then the virtual image of user can be obtained according to depth image.
Fig. 9 is a kind of structural representation of video game image adjusting apparatus provided in an embodiment of the present invention.
Referring to Fig. 9, the video game image adjusting apparatus includes:First acquisition module 910, structure module 920, second obtain mould Block 930, and adjusting module 940.Wherein,
First acquisition module 910, the depth information for the user for attempting to build virtual image in gaming is carried for obtaining; Wherein, depth information generates after carrying out structure light image processing to user.
Module 920 is built, for building the virtual image of user according to depth information.
Second acquisition module 930, for obtaining the adjustment information being adjusted to the virtual image of user.
As a kind of possible implementation of the embodiment of the present invention, the second acquisition module 930, specifically for user's Selection operation is monitored;Operation object corresponding to the selection operation monitored is defined as body part;According to what is monitored The movement locus of selection operation, determine the adjusting parameter of virtual image;Adjustment information is formed according to operation object and adjusting parameter.
As the alternatively possible implementation of the embodiment of the present invention, the second acquisition module 930, specifically for from game In choose a target material in the material that builds in advance;Obtain the composition of body part and target material corresponding to target material Parameter;Using body part corresponding to target material and parameter is formed, forms adjustment information.
Adjusting module 940, for being adjusted according to adjustment information to virtual image, form the destination virtual shape of user As.
During specific implementation, adjusting module 940, specifically for extracting the body for needing to adjust user from adjustment information Position;Body part is identified from virtual image, and body part is adjusted according to the adjusting parameter in adjustment information, is obtained To destination virtual image.
Further, in a kind of possible implementation of the embodiment of the present invention, on the basis of Fig. 9, referring to Figure 10, The video game image adjusting apparatus still further comprises:
Transmitter module 950, for user's body emitting structural light.
Acquisition module 960, for gathering reflected light of the structure light on user's body and forming depth information.
It should be noted that explanation of the earlier figures 1- Fig. 7 embodiments to video game image method of adjustment embodiment is also fitted For the video game image adjusting apparatus of the embodiment, here is omitted.
The video game image adjusting apparatus of the present embodiment, attempt to build the user of virtual image in gaming by obtaining to carry Depth information;Wherein, depth information builds user to what is generated after user's progress structure light image processing according to depth information Virtual image, obtain the adjustment information being adjusted to the virtual image of user, according to adjustment information to virtual image carry out Adjustment, form the destination virtual image of user.Virtual image is built according to the depth information of user thus, it is possible to realize, due to The virtual image of user is more nearly reality than the virtual image set in game, so as to improve the substitution sense of game.This Outside, user can be adjusted according to self-demand to virtual image, disclosure satisfy that the individual demand of user, lift this method Applicability.
The division of modules is only used for for example, in other embodiments in above-mentioned video game image adjusting apparatus, can Video game image adjusting apparatus is divided into different modules as required, with complete the whole of above-mentioned video game image adjusting apparatus or Partial function.
The embodiment of the present invention additionally provides one or more non-volatile computers comprising computer executable instructions can Storage medium is read, when the computer executable instructions are executed by one or more processors so that the computing device Following steps:
Obtain the depth information for carrying the user for attempting to build virtual image in gaming;Wherein, the depth information pair Generated after user's progress structure light image processing;
The virtual image of the user is built according to the depth information;
Obtain the adjustment information being adjusted to the virtual image of the user;
The virtual image is adjusted according to the adjustment information, forms the destination virtual image of the user.
The embodiment of the present invention also provides a kind of terminal device.Above-mentioned terminal device includes image processing circuit, at image Managing circuit can utilize hardware and/or component software to realize, it may include define ISP (Image Signal Processing, figure As signal transacting) the various processing units of pipeline.Figure 11 is the schematic diagram of image processing circuit in one embodiment.Such as Figure 11 institutes Show, 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 11, image processing circuit 1100 includes imaging device 1110, ISP processors 1130 and control logic device 1140.Imaging device 1110 may include the camera and structure light with one or more lens 1112, imaging sensor 1114 The projector 1116.Structured light projector 1116 is by structured light projection to measured object.Wherein, the structured light patterns can be laser strip Line, Gray code, sine streak or, speckle pattern of random alignment etc..Imaging sensor 1114 catches projection to measured object shape Into structure light image, and structure light image is sent to ISP processors 1130, by ISP processors 1130 to structure light image It is demodulated the depth information for obtaining measured object.Meanwhile imaging sensor 1114 can also catch the color information of measured object.When So, the structure light image and color information of measured object can also be caught respectively by two imaging sensors 1114.
Wherein, by taking pattern light as an example, ISP processors 1130 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.
, can quilt after the color information that ISP processors 1130 receive the measured object that imaging sensor 1114 captures View data corresponding to surveying the color information of thing is handled.ISP processors 1130 are analyzed view data can with acquisition For determination and/or the image statistics of one or more control parameters of imaging device 1110.Imaging sensor 1114 can Including colour filter array (such as Bayer filters), imaging sensor 1114 can obtain each imaging with imaging sensor 1114 The luminous intensity and wavelength information that pixel is caught, and the one group of raw image data that can be handled by ISP processors 1130 is provided.
ISP processors 1130 handle raw image data pixel by pixel in various formats.For example, each image pixel can Bit depth with 11,10,12 or 14 bits, ISP processors 1130 can carry out one or more images to raw image data Processing operation, image statistics of the collection on view data.Wherein, image processing operations can be by identical or different locating depth Precision is spent to carry out.
ISP processors 1130 can also receive pixel data from video memory 1120.Video memory 1120 can be storage Independent private memory in the part of device device, storage device or electronic equipment, and may include DMA (Direct Memory Access, direct direct memory access (DMA)) feature.
When receiving raw image data, ISP processors 1130 can carry out one or more image processing operations.
After ISP processors 1130 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 1120, to carry out other place before shown Reason.ISP processors 1130 from the reception processing data of video memory 1120, 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 1160, for User watches and/or further handled by graphics engine or GPU (Graphics Processing Unit, graphics processor). In addition, the output of ISP processors 1130 also can be transmitted to video memory 1120, and display 1160 can be from video memory 1120 read view data.In one embodiment, video memory 1120 can be configured as realizing one or more frame bufferings Device.In addition, the output of ISP processors 1130 can be transmitted to encoder/decoder 1150, so as to encoding/decoding image data.Compile The view data of code can be saved, and be decompressed before being shown in the equipment of display 1160.Encoder/decoder 1150 can Realized by CPU or GPU or coprocessor.
The image statistics that ISP processors 1130 determine, which can be transmitted, gives the unit of control logic device 1140.Control logic device 1140 may include the processor and/or microcontroller that perform one or more routines (such as firmware), and one or more routines can root According to the image statistics of reception, the control parameter of imaging device 1110 is determined.
It it is below the step of realizing video game image method of adjustment with image processing techniques in Figure 11:
Obtain the depth information for carrying the user for attempting to build virtual image in gaming;Wherein, the depth information pair Generated after user's progress structure light image processing;
The virtual image of the user is built according to the depth information;
Obtain the adjustment information being adjusted to the virtual image of the user;
The virtual image is adjusted according to the adjustment information, forms the destination virtual image of the user.
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. video game image method of adjustment, it is characterised in that including:
    Obtain the depth information for carrying the user for attempting to build virtual image in gaming;Wherein, the depth information is to user Generated after progress structure light image processing;
    The virtual image of the user is built according to the depth information;
    Obtain the adjustment information being adjusted to the virtual image of the user;
    The virtual image is adjusted according to the adjustment information, forms the destination virtual image of the user.
  2. 2. video game image method of adjustment according to claim 1, it is characterised in that it is described according to the adjustment information to institute State virtual image to be adjusted, form the destination virtual image of the user, including:
    Extraction needs to adjust the body part of the user from the adjustment information;
    The body part is identified from the virtual image, and according to the adjusting parameter in the adjustment information to the body Body region is adjusted, and obtains the destination virtual image.
  3. 3. video game image method of adjustment according to claim 1, it is characterised in that the acquisition is to the virtual of the user The adjustment information that image is adjusted, including:
    Selection operation to the user is monitored;
    Operation object corresponding to the selection operation monitored is defined as the body part;
    According to the movement locus of the selection operation monitored, the adjusting parameter of the virtual image is determined;
    The adjustment information is formed according to the operation object and the adjusting parameter.
  4. 4. video game image method of adjustment according to claim 1, it is characterised in that the acquisition is to the virtual of the user The adjustment information that image is adjusted, including:
    A target material is chosen in the material built in advance from the game;
    Obtain the composition parameter of body part corresponding to the target material and the target material;
    Using body part corresponding to the target material and the composition parameter, the adjustment information is formed.
  5. 5. according to the video game image method of adjustment described in claim any one of 1-4, it is characterised in that the acquisition carrying attempts Before building the depth information of user of virtual image in gaming, including:
    To user's body emitting structural light;
    Gather reflected light of the structure light on the user's body and form the depth information.
  6. 6. video game image method of adjustment according to claim 5, it is characterised in that the structure light is structure heterogeneous Light, 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 on terminal On grenade instrumentation in diffraction optical element formed, wherein, be provided with the diffraction optical element a number of floating Carving, the depth of groove of the embossment are different.
  7. A kind of 7. video game image adjusting apparatus, it is characterised in that including:
    First acquisition module, the depth information for the user for attempting to build virtual image in gaming is carried for obtaining;Wherein, institute State after depth information carries out structure light image processing to user and generate;
    Module is built, for building the virtual image of the user according to the depth information;
    Second acquisition module, for obtaining the adjustment information being adjusted to the virtual image of the user;
    Adjusting module, for being adjusted according to the adjustment information to the virtual image, the target for forming the user is empty Intend image.
  8. 8. video game image adjusting apparatus according to claim 7, it is characterised in that the adjusting module, be specifically used for:
    Extraction needs to adjust the body part of the user from the adjustment information;
    The body part is identified from the virtual image, and according to the adjusting parameter in the adjustment information to the body Body region is adjusted, and obtains the destination virtual image.
  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-6 institutes The video game image method of adjustment stated.
  10. 10. a kind of terminal device, including memory and processor, computer-readable instruction is stored in the memory, it is described When instruction is by the computing device so that video game image of the computing device as any one of claim 1-6 Method of adjustment.
CN201710676517.6A 2017-08-09 2017-08-09 Video game image method of adjustment and its device Pending CN107551549A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710676517.6A CN107551549A (en) 2017-08-09 2017-08-09 Video game image method of adjustment and its device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710676517.6A CN107551549A (en) 2017-08-09 2017-08-09 Video game image method of adjustment and its device

Publications (1)

Publication Number Publication Date
CN107551549A true CN107551549A (en) 2018-01-09

Family

ID=60975251

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710676517.6A Pending CN107551549A (en) 2017-08-09 2017-08-09 Video game image method of adjustment and its device

Country Status (1)

Country Link
CN (1) CN107551549A (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109091861A (en) * 2018-06-22 2018-12-28 网易(杭州)网络有限公司 Interaction control method, electronic equipment and storage medium in game
CN110598035A (en) * 2019-09-08 2019-12-20 北京智明星通科技股份有限公司 Virtual character image recommendation method and device for mobile phone game and mobile terminal
CN111200747A (en) * 2018-10-31 2020-05-26 百度在线网络技术(北京)有限公司 Live broadcasting method and device based on virtual image
CN111432267A (en) * 2020-04-23 2020-07-17 深圳追一科技有限公司 Video adjusting method and device, electronic equipment and storage medium
CN113345054A (en) * 2021-05-28 2021-09-03 上海哔哩哔哩科技有限公司 Virtual image decorating method, detection method and device
CN113658298A (en) * 2018-05-02 2021-11-16 北京市商汤科技开发有限公司 Method and device for generating special-effect program file package and special effect
CN114187429A (en) * 2021-11-09 2022-03-15 北京百度网讯科技有限公司 Virtual image switching method and device, electronic equipment and storage medium
CN114187394A (en) * 2021-12-13 2022-03-15 北京百度网讯科技有限公司 Virtual image generation method and device, electronic equipment and storage medium

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103258271A (en) * 2012-02-15 2013-08-21 李志强 System and method of natural person digitalized image design
CN103597518A (en) * 2011-06-06 2014-02-19 微软公司 Generation of avatar reflecting player appearance
CN103871106A (en) * 2012-12-14 2014-06-18 韩国电子通信研究院 Method of fitting virtual item using human body model and system for providing fitting service of virtual item
CN104137140A (en) * 2012-03-13 2014-11-05 新游游戏株式会社 Online game providing method used for providing character customization and system thereof
CN104680574A (en) * 2013-11-27 2015-06-03 苏州蜗牛数字科技股份有限公司 Method for automatically generating 3D face according to photo
US20160184699A1 (en) * 2012-12-03 2016-06-30 Zynga Inc. Display and navigation of virtual built environments in computer-implemented games
CN106204698A (en) * 2015-05-06 2016-12-07 北京蓝犀时空科技有限公司 Virtual image for independent assortment creation generates and uses the method and system of expression
CN106371607A (en) * 2016-09-19 2017-02-01 深圳奥比中光科技有限公司 Man-machine interaction method and system based on cooperative game
CN106952336A (en) * 2017-03-13 2017-07-14 武汉山骁科技有限公司 A kind of mankind's three-dimensional head portrait production method for protecting feature

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103597518A (en) * 2011-06-06 2014-02-19 微软公司 Generation of avatar reflecting player appearance
CN103258271A (en) * 2012-02-15 2013-08-21 李志强 System and method of natural person digitalized image design
CN104137140A (en) * 2012-03-13 2014-11-05 新游游戏株式会社 Online game providing method used for providing character customization and system thereof
US20160184699A1 (en) * 2012-12-03 2016-06-30 Zynga Inc. Display and navigation of virtual built environments in computer-implemented games
CN103871106A (en) * 2012-12-14 2014-06-18 韩国电子通信研究院 Method of fitting virtual item using human body model and system for providing fitting service of virtual item
CN104680574A (en) * 2013-11-27 2015-06-03 苏州蜗牛数字科技股份有限公司 Method for automatically generating 3D face according to photo
CN106204698A (en) * 2015-05-06 2016-12-07 北京蓝犀时空科技有限公司 Virtual image for independent assortment creation generates and uses the method and system of expression
CN106371607A (en) * 2016-09-19 2017-02-01 深圳奥比中光科技有限公司 Man-machine interaction method and system based on cooperative game
CN106952336A (en) * 2017-03-13 2017-07-14 武汉山骁科技有限公司 A kind of mankind's three-dimensional head portrait production method for protecting feature

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113658298A (en) * 2018-05-02 2021-11-16 北京市商汤科技开发有限公司 Method and device for generating special-effect program file package and special effect
CN109091861A (en) * 2018-06-22 2018-12-28 网易(杭州)网络有限公司 Interaction control method, electronic equipment and storage medium in game
CN109091861B (en) * 2018-06-22 2022-06-10 网易(杭州)网络有限公司 Interactive control method in game, electronic device and storage medium
CN111200747A (en) * 2018-10-31 2020-05-26 百度在线网络技术(北京)有限公司 Live broadcasting method and device based on virtual image
CN110598035A (en) * 2019-09-08 2019-12-20 北京智明星通科技股份有限公司 Virtual character image recommendation method and device for mobile phone game and mobile terminal
CN110598035B (en) * 2019-09-08 2023-06-13 北京智明星通科技股份有限公司 Mobile phone game virtual character image recommendation method and device and mobile terminal
CN111432267A (en) * 2020-04-23 2020-07-17 深圳追一科技有限公司 Video adjusting method and device, electronic equipment and storage medium
CN113345054A (en) * 2021-05-28 2021-09-03 上海哔哩哔哩科技有限公司 Virtual image decorating method, detection method and device
CN114187429A (en) * 2021-11-09 2022-03-15 北京百度网讯科技有限公司 Virtual image switching method and device, electronic equipment and storage medium
CN114187394A (en) * 2021-12-13 2022-03-15 北京百度网讯科技有限公司 Virtual image generation method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107551549A (en) Video game image method of adjustment and its device
CN107481304A (en) The method and its device of virtual image are built in scene of game
CN107481317A (en) The facial method of adjustment and its device of face 3D models
CN107465906B (en) Panorama shooting method, device and the terminal device of scene
CN107452034A (en) Image processing method and its device
CN107682607A (en) Image acquiring method, device, mobile terminal and storage medium
CN107707839A (en) Image processing method and device
CN107479801A (en) Displaying method of terminal, device and terminal based on user's expression
CN107423716A (en) Face method for monitoring state and device
CN107656611A (en) Somatic sensation television game implementation method and device, terminal device
CN107507269A (en) Personalized three-dimensional model generating method, device and terminal device
CN107483845A (en) Photographic method and its device
CN107509045A (en) Image processing method and device, electronic installation and computer-readable recording medium
CN107469355A (en) Game image creation method and device, terminal device
CN107481101A (en) Wear the clothes recommendation method and its device
CN107707831A (en) Image processing method and device, electronic installation and computer-readable recording medium
CN107610171A (en) Image processing method and its device
CN107463659A (en) Object search method and its device
CN107707838A (en) Image processing method and device
CN107517346A (en) Photographic method, device and mobile device based on structure light
CN107480615A (en) U.S. face processing method, device and mobile device
CN107590793A (en) Image processing method and device, electronic installation and computer-readable recording medium
CN109191393A (en) U.S. face method based on threedimensional model
CN107644440A (en) Image processing method and device, electronic installation and computer-readable recording medium
CN109285214A (en) Processing method, device, electronic equipment and the readable storage medium storing program for executing of threedimensional model

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20180109

RJ01 Rejection of invention patent application after publication