Summary of the invention
In order to solve the above-mentioned technical problem, the object of the present invention is to provide the 3D that a kind of viewer image virtually arrives the scene of broadcasting
Virtual auditorium generation method, system, device and storage medium.
First technical solution of the present invention is:
A kind of virtual auditorium generation method of 3D, comprising the following steps:
The pictorial information that terminal user uploads is obtained, and virtual image is generated according to pictorial information;
The virtual auditorium of 3D is generated in conjunction with virtual image and preset 3D seat;
Video stream data is generated in conjunction with the virtual auditorium of 3D and the video information of collection in worksite.
Further, the pictorial information is face picture, the pictorial information for obtaining terminal user and uploading, and according to figure
Piece information generates the step for virtual image, specifically includes the following steps:
After obtaining the essential information of terminal user and the face picture of upload, recognition of face is carried out according to face picture, with
And virtual image is generated according to the face recognized;
Virtual image is matched with essential information, and generates image data pond according to multiple virtual images.
Further, the essential information includes location information and temporal information, the combination virtual image and preset 3D
Seat generates the step for 3D virtual auditorium, specifically includes the following steps:
The virtual image in image data pond is divided into multiple groups according to location information;
Successively the virtual image in each group is ranked up according to temporal information, so that each virtual image corresponds to a seat
Serial number;
It is virtual to generate multiple 3D according to seat serial number respectively by each virtual image rendering configurations to corresponding 3D seat
Auditorium.
Further, the essential information further includes routing id information, the virtual auditorium of the combination 3D and collection in worksite
Video information generates the step for video stream data, specifically includes the following steps:
Video stream data is generated in conjunction with the virtual auditorium of 3D and the video information of collection in worksite;
It is sent in each terminal in the virtual auditorium of 3D according to routing id information by video stream data is routed.
Further, further include barrage management process, the barrage management process specifically includes the following steps:
After obtaining the essential information of terminal user and the barrage information of upload, by barrage information and essential information progress
Match;
Automatic identification is carried out to barrage information, and judges barrage information whether Eligibility requirements melts barrage information if meeting
Enter in video stream data;Conversely, deleting the barrage information.
Further, further comprising the steps of:
The voice messaging that terminal user uploads is obtained, and voice messaging is incorporated in video stream data.
Second technical solution of the present invention is:
A kind of virtual auditorium generation system of 3D, comprising:
Picture uploading module generates virtual graph for obtaining the pictorial information of terminal user's upload, and according to pictorial information
Picture;
Virtual spectators' module, for generating the virtual auditorium of 3D in conjunction with virtual image and preset 3D seat;
Data generation module, for combining the video information of the virtual auditorium of 3D and collection in worksite to generate video stream data.
Further, the pictorial information is face picture, and the picture uploading module includes picture uploading unit and information
Matching unit;
After the picture uploading unit is used to obtain the essential information of terminal user and the face picture of upload, according to face
Picture carries out recognition of face, and generates virtual image according to the face recognized;
The information matching unit is used to match virtual image with essential information, and according to multiple virtual images
Generate image data pond.
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.
The beneficial effects of the present invention are: the terminal user in the present invention is broadcast by mobile intelligent terminal uploading pictures information
It is laid flat platform and virtual image is generated according to pictorial information, and virtual image and preset 3D seat is combined to generate the virtual auditorium of 3D,
Spectators are when watching program, it can be seen that the virtual image of oneself, to give spectators' feeling for recording program now, greatly
Improve the viewing experience of spectators.
Specific embodiment
As shown in Figure 1, present embodiments providing a kind of virtual auditorium generation method of 3D, comprising the following steps:
S1, the pictorial information that terminal user uploads is obtained, and virtual image is generated according to pictorial information;
S2, the virtual auditorium of 3D is generated in conjunction with virtual image and preset 3D seat;
S3, video stream data is generated in conjunction with the virtual auditorium of 3D and the video information of collection in worksite.
In the present embodiment, terminal user is connected to playing platform, such as client in advance in intelligent movable by APP or link
APP is installed in terminal, is clicked by APP and logs in corresponding program, such as the variety show of CCTV5.Terminal user passes through intelligence
Energy terminal uploading pictures information, the pictorial information can be self-timer photograph, portrait or cartoon picture etc.;Cloud platform receives figure
After piece information, virtual image is generated according to pictorial information, for example invent a cartoon character, and combines virtual image and preset
3D seat generate the virtual auditorium of 3D, the 3D seat can be true seat, or virtual seat;When 3D
When chair is true seat, for example it is the seat in court, 3D scanning is carried out in court by 3D scanner, and generate correspondence
3D seat data.Video stream data, the video fluxion are generated in conjunction with the virtual auditorium of 3D and the video information of collection in worksite
According to can specifically be generated in the following manner, the virtual spectators of 3D first way: are shown by large screen at live streaming scene
Then when performance recording, the virtual auditorium of 3D on host and large screen is recorded together for seat, generates video fluxion
According to, and video stream data is transmitted to user terminal and is played out.The second way: the virtual auditorium of 3D is fabricated to data mould
Type, then the data of performance recording are merged with data model, to generate video stream data, and video stream data is transmitted
It is played out to user terminal.
The virtual image of terminal user by above-mentioned method, can be shown in video to when user watches video, have
The virtual image of oneself may be watched, to give terminal user's feeling for participating in performance recording now, is greatly improved
The viewing experience of terminal user.
Wherein, the pictorial information is face picture, and step S1 specifically includes step S11~S12:
After the face picture of S11, the essential information for obtaining terminal user and upload, face knowledge is carried out according to face picture
Not, and according to the face recognized virtual image is generated;
S12, virtual image is matched with essential information, and generates image data pond according to multiple virtual images.
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.Satisfactory face picture is generated into virtual image, the virtual image is by true face card
The image in Tonghua, or the virtual image of other forms.Due to by terminal carry out networking viewing spectators can arrive it is thousands of
To hundreds of thousands of, multiple virtual images generations image data pond.
Wherein, the essential information includes location information and temporal information, and step S2 specifically includes step S21~S23:
S21, the virtual image in image data pond is divided by multiple groups according to location information;
S22, successively according to temporal information the virtual image in each group is ranked up, so that each virtual image is one corresponding
Seat serial number;
S23, according to seat serial number respectively by each virtual image rendering configurations to corresponding 3D seat, to generate multiple 3D
Virtual auditorium.
Since virtual image is up to as many as tens of thousands of in image data pond, and the 3D seat of a virtual auditorium of 3D may be only
There are several hundred or thousands of, it is therefore desirable to be grouped to virtual image in image data pond, then generate for different groups
The virtual auditorium of different 3D.In the present embodiment, image data pond is grouped according to location information, the location information
The relevant information of base station is had in the data of upload since terminal user is when uploading data for the location information of terminal user,
Therefore the relevant location information of terminal user can be obtained.It is grouped according to location information, the same 3D can be made virtually to see
Spectators in many seats are user in the neighbourhood as far as possible, the enjoyment of the viewing of user are improved indirectly, to improve viewing body
It tests.After being grouped, seat is distributed to each virtual image according to temporal information, the temporal information is that the connection of each terminal enters
The time of program playing platform generates 3D and virtually sees after virtual image is successively carried out fusion rendering with corresponding 3D seat
Many seats.
The essential information further includes routing id information, and step S3 specifically includes step S31~S32:
S31, video stream data is generated in conjunction with the virtual auditorium of 3D and the video information of collection in worksite;
S32, it is sent in each terminal in the virtual auditorium of 3D according to routing id information by video stream data is routed.
Since the different corresponding video stream datas of the virtual auditorium of 3D is different, combining the virtual spectators of 3D
After the video information of seat and collection in worksite generates video stream data, 3D is sent to for video stream data is routed according to routing id information
Each terminal in virtual auditorium, specifically, since the video stream data in the virtual auditorium of the same 3D is identical, and same
The spectators of one virtual auditorium of 3D are in the same telecommunication administration area, and therefore, cloud platform only need to will video stream data all the way
It is sent in the telecommunication administration area, then is sent in each terminal by replicating video flow data in the telecommunication administration area, to realize
It plays, can so greatly reduce the transmission of the data of network, the network transmission cost of saving.
It is further used as preferred embodiment, further includes barrage management process, the barrage management process specifically includes
Following steps:
After obtaining the essential information of terminal user and the barrage information of upload, by barrage information and essential information progress
Match;
Automatic identification is carried out to barrage information, and judges barrage information whether Eligibility requirements melts barrage information if meeting
Enter in video stream data;Conversely, deleting 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.
It is further used as preferred embodiment, further comprising the steps of:
The voice messaging that terminal user uploads is obtained, and voice messaging is incorporated in video stream data.
Specifically, in program when host interacts with spectators, for example certain spectators are interviewed, mobile intelligent terminal can
To acquire the voice messaging of user, and voice messaging is uploaded to cloud platform, to incorporate in video stream data.
As shown in Fig. 2, the present embodiment additionally provides a kind of virtual auditorium generation system of 3D, comprising:
Picture uploading module generates virtual graph for obtaining the pictorial information of terminal user's upload, and according to pictorial information
Picture;
Virtual spectators' module, for generating the virtual auditorium of 3D in conjunction with virtual image and preset 3D seat;
Data generation module, for combining the video information of the virtual auditorium of 3D and collection in worksite to generate video stream data.
It is further used as preferred embodiment, the pictorial information is face picture, and the picture uploading module includes
Picture uploading unit and information matching unit;
After the picture uploading unit is used to obtain the essential information of terminal user and the face picture of upload, according to face
Picture carries out recognition of face, and generates virtual image according to the face recognized;
The information matching unit is used to match virtual image with essential information, and according to multiple virtual images
Generate image data pond.
A kind of virtual auditorium of 3D of the present embodiment generates system, and one kind provided by embodiment of the present invention method can be performed
The virtual auditorium generation method of 3D, any combination implementation steps of executing method embodiment have the corresponding function of this method
And beneficial effect.
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
The kind virtual auditorium generation method of 3D, any combination implementation steps of executing method embodiment have the corresponding function of this method
Energy 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 virtual auditorium of 3D provided by embodiment of the present invention method can be performed in a kind of storage medium of the present embodiment
Generation method, any combination implementation steps of executing method embodiment have the corresponding function of this method and beneficial effect.
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.