Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide one kind
First technical solution of the present invention is:
A kind of exchange method based on the virtual spectators of 3D, comprising the following steps:
The pictorial information of user terminal uploads is obtained, and 3D virtual image is generated according to pictorial information;
After the barrage information for obtaining user terminal uploads, picture is shown in conjunction with barrage information and the rendering of 3D virtual image, with
Barrage information is set to match display with 3D virtual image.
Further, the pictorial information is face picture, the pictorial information for obtaining user terminal uploads, and according to figure
Piece information generates the step for 3D virtual image, specifically includes the following steps:
It is empty to generate primary 3D in conjunction with face picture and preset manikin for the face picture for obtaining user terminal uploads
Quasi- image;
Setting information is obtained, generates final 3D virtual image in conjunction with setting information and primary 3D virtual image.
Further, further include the steps that establishing the virtual auditorium of 3D, described the step of establishing 3D virtual auditorium specifically:
According to the genesis sequence of 3D virtual image, successively 3D virtual image is rendered on preset 3D seat, to generate
The virtual auditorium of 3D.
Further, it after the barrage information for obtaining user terminal uploads, is rendered in conjunction with barrage information and 3D virtual image
Show picture, so that the step for barrage information matches display with 3D virtual image, specifically includes the following steps:
Preset triggering information is sent to the user terminal, so as to show input frame on user terminal;
After obtaining the barrage information uploaded by input frame, picture is shown in conjunction with barrage information and the rendering of 3D virtual image,
So that barrage information matches display with 3D virtual image.
Further, the combination barrage information and 3D virtual image rendering display picture, so that barrage information and 3D are virtual
The step for images match is shown, specifically:
The display box of preset format is rendered in 3D virtual image, Dynamically Announce is corresponding on display box according to barrage information
Barrage.
It further, further include barrage management process, the barrage management process specifically:
After obtaining barrage information, automatic identification is carried out to barrage information and judges whether barrage information meets the requirements, with
And determine barrage information it is undesirable when, delete the barrage information.
Second technical solution of the present invention is:
A kind of interactive system based on the virtual spectators of 3D, comprising:
Picture uploading module, for obtaining the pictorial information of user terminal uploads, and it is virtual according to pictorial information generation 3D
Image;
Barrage uploading module, after the barrage information for obtaining user terminal uploads, in conjunction with barrage information and 3D virtual graph
As rendering display picture, so that barrage information matches display with 3D virtual image.
Further, the pictorial information is face picture, and the picture uploading module includes picture uploading unit and setting
Unit;
The picture uploading unit is used to obtain the face picture of user terminal uploads, in conjunction with face picture and preset people
Body Model generates primary 3D virtual image;
The setting unit generates finally for obtaining setting information in conjunction with setting information and primary 3D virtual image
3D virtual image.
It further, further include that auditorium establishes module, the auditorium is established module and is specifically used for according to 3D virtual image
Genesis sequence, successively 3D virtual image is rendered on preset 3D seat, to generate the virtual auditorium of 3D.
Third technical solution of the present invention is:
A kind of computer code automatically generating device, the memory is for storing at least one program, the processor
For loading at least one described program to execute upper the method.
4th technical solution of the present invention is:
A kind of storage medium, wherein be stored with the executable instruction of processor, the executable instruction of the processor by
For executing method as described above when processor executes.
It, can be with the beneficial effects of the present invention are: the present invention is by carrying out matching rendering for barrage information and 3D virtual image
Whether the barrage for clearly allowing spectators to recognize that oneself sends has sent, and is recognized that the transmission feelings of other barrages
Condition improves the viewing experience of spectators, improves viewing enjoyment indirectly.
Specific embodiment
As shown in Figure 1, present embodiments providing a kind of exchange method based on the virtual spectators of 3D, comprising the following steps:
S1, the pictorial information for obtaining user terminal uploads, and 3D virtual image is generated according to pictorial information;
S2, obtain user terminal uploads barrage information after, in conjunction with barrage information and 3D virtual image rendering display picture,
So that barrage information matches display with 3D virtual image.
In the present embodiment, spectators are connected to playing platform, such as client in advance in mobile intelligent terminal by APP or link
On APP is installed, clicked by APP and log in corresponding program, program platform can also be entered by clicking URL link.Into
After program platform, spectators can be self-timer photograph, portrait or cartoon by intelligent terminal uploading pictures information, the pictorial information
Picture etc.;After broadcasting cloud platform receives pictorial information, virtual image is generated according to pictorial information, for example invent a cartoon
Image or major part baby's image.During the program playing process, host can interact with spectators, and spectators pass through
It uploads barrage and responds progress, after spectators upload barrage information, barrage information is matched with corresponding 3D virtual image, and
Corresponding barrage is rendered on display picture.Wherein, the step of 3D virtual image is matched can be by with lower section
Formula realized, first way are as follows: in the head position or other positions pop-up display frame of 3D virtual image, in display box
Show barrage content.The second way are as follows: when needing to show barrage, the mouth of Dynamically Announce 3D virtual image, then dynamic wash with watercolours
Dye barrage spues in mouth to be come.The third mode are as follows: barrage is still moved to the other end of screen from one end of screen, still
The anterior locations of barrage show the scaled down version of the 3D virtual image, will be seen that the barrage is who sends by 3D virtual image
's.
By the above-mentioned means, whether the barrage that can clearly allow spectators to recognize that oneself sends has sent out, and
It is recognized that whose hair other barrages are, the viewing experience of spectators is improved, improves viewing enjoyment indirectly.
Wherein, the pictorial information is face picture, and the step S1 specifically includes step S11~S12:
S11, the face picture for obtaining user terminal uploads generate primary in conjunction with face picture and preset manikin
3D virtual image;
S12, setting information is obtained, generates final 3D virtual image in conjunction with setting information and primary 3D virtual image.
S13, according to the genesis sequence of 3D virtual image, successively 3D virtual image is rendered on preset 3D seat, with
Generate the virtual auditorium of 3D.
After face picture is uploaded to playing platform by terminal user, playing platform carries out recognition of face according to face picture and sentences
It is disconnected, judge whether to meet the requirements, for example terminal user uploads the picture of pet, then this picture is undesirable, then the figure
Piece cannot be used for generating virtual image.Specifically, after identifying face, trimming appropriate is carried out to face picture, so that face
Moderate dimensions, primary 3D virtual image, 3D virtual graph at this time are generated in conjunction with face picture and preset manikin
It seem a fairly simple image, for example spectators' participation is a Basketball Match program, it is virtual that the 3D can be set in spectators
Image puts on the clothes of corresponding team member, to support corresponding team.It, will be at 3D virtual image wash with watercolours after being provided with 3D virtual image
Dye generates the virtual auditorium of 3D on preset 3D seat, wherein the 3D seat can be true seat, can also be with
For virtual seat;For example be the seat in court when 3D seat is true seat, by 3D scanner in court into
Row 3D scanning, and generate corresponding 3D seat data.It, can be according to 3D virtual graph when arranging the seat sequence of 3D virtual image
It arranges, can also be arranged according to the membership grade of user APP as the time of generation.
Wherein, the step S2 specifically includes step S21~S22:
S21, preset triggering information is sent to the user terminal, so as to show input frame on user terminal;
S22, after obtaining the barrage information uploaded by input frame, picture is shown in conjunction with barrage information and the rendering of 3D virtual image
Face, so that barrage information matches display with 3D virtual image.
When host interacts with spectators, the cloud platform meeting preset triggering information of mode is to user terminal, to use
Show input frame in the terminal at family, for example, when live streaming host inquire spectators " how is sportsman Ha Deng tonight performance " user terminal
Line will pop up a card, and input frame can be popped up by clicking the card, and spectators can choose whether input barrage content, when need
When inputting barrage content, card and input content are clicked.By the input content in input frame, and it is sent to cloud platform, cloud
Platform renders the barrage that display is matched with 3D virtual image according to receiving barrage information matches 3D virtual image.Wherein,
By triggering information triggering pop-up input frame, it can effectively avoid spectators' malice from sending barrage information, facilitate the pipe of cloud platform
Reason.
Specifically, the combination barrage information in the step and 3D virtual image rendering display picture, so that barrage information
The step for display is matched with 3D virtual image, specifically: the display box of preset format is rendered in 3D virtual image, according to bullet
The corresponding barrage of curtain information Dynamically Announce on display box.
In the present embodiment, when spectators send barrage, the text of a bubble is generated on corresponding 3D virtual image
Word frame, text are shown by dynamically display mode, for example spectators send " my Ai Hadeng ", in textbox, first show
" I " word, after show other words one by one, finally show " my Ai Hadeng " entire sentence.In this way, feeling it is 3D virtual to spectators
Image is being spoken, and the experience of spectators is preferably improved.
It is further used as preferred embodiment, further includes barrage management process, the barrage management process specifically:
After obtaining barrage information, automatic identification is carried out to barrage information and judges whether barrage information meets the requirements, with
And determine barrage information it is undesirable when, delete the barrage information.
During program video plays, spectators can input text in barrage frame, and the text appears in end
On the display screen at end.Since spectators may send thick language or other undesirable language, it is therefore desirable to barrage information into
Row identification, filters out undesirable barrage, existing technology can be used specifically to be identified, such as by establishing identification
Database matches barrage sentence with database respectively, searches whether there is undesirable voice.
As shown in Fig. 2, the present embodiment additionally provides a kind of interactive system based on the virtual spectators of 3D, comprising:
Picture uploading module, for obtaining the pictorial information of user terminal uploads, and it is virtual according to pictorial information generation 3D
Image;
Barrage uploading module, after the barrage information for obtaining user terminal uploads, in conjunction with barrage information and 3D virtual graph
As rendering display picture, so that barrage information matches display with 3D virtual image.
It is further used as preferred embodiment, the pictorial information is face picture, and the picture uploading module includes
Picture uploading unit and setting unit;
The picture uploading unit is used to obtain the face picture of user terminal uploads, in conjunction with face picture and preset people
Body Model generates primary 3D virtual image;
The setting unit generates finally for obtaining setting information in conjunction with setting information and primary 3D virtual image
3D virtual image.
It is further used as preferred embodiment, further includes that auditorium establishes module, it is specific that the auditorium establishes module
For the genesis sequence according to 3D virtual image, successively 3D virtual image is rendered on preset 3D seat, to generate 3D void
Quasi- auditorium.
A kind of interactive system based on the virtual spectators of 3D of the present embodiment can be performed provided by embodiment of the present invention method
A kind of exchange method based on the virtual spectators of 3D, any combination implementation steps of executing method embodiment, has this method phase
The function and beneficial effect answered.
The present embodiment additionally provides a kind of computer code automatically generating device, and the memory is for storing at least one
Program, the processor is for loading at least one described program to execute upper the method.
A kind of computer code automatically generating device of the present embodiment can be performed one provided by embodiment of the present invention method
It is corresponding to have this method for exchange method of the kind based on the virtual spectators of 3D, any combination implementation steps of executing method embodiment
Function and beneficial effect.
The present embodiment additionally provides a kind of storage medium, wherein being stored with the executable instruction of processor, the processor
Executable instruction is used to execute method as described above when executed by the processor.
A kind of storage medium of the present embodiment can be performed one kind provided by embodiment of the present invention method and virtually be seen based on 3D
Many exchange methods, any combination implementation steps of executing method embodiment have the corresponding function of this method and beneficial to effect
Fruit.
It is to be illustrated to preferable implementation of the invention, but the invention is not limited to the implementation above
Example, those skilled in the art can also make various equivalent variations on the premise of without prejudice to spirit of the invention or replace
It changes, these equivalent deformations or replacement are all included in the scope defined by the claims of the present application.