Interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real

Through real-time virtual and real fusion technology, three-dimensional characters or objects are extracted from real scenes and embedded into virtual scenes, and combined with shader algorithms to simulate shadows, solving the problem of gesture recognition accuracy being affected in complex backgrounds, and realizing virtual broadcasting The real integration of classrooms and the improvement of the popularity of education.

CN118154820BActive Publication Date: 2024-10-18NANJING ZHUYING DIGITAL TECH CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410586200.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-05-13
Publication Date
2024-10-18
Estimated Expiration
2044-05-13

AI Technical Summary

Technical Problem

In existing distance education technology, the accuracy of gesture recognition is affected in complex or dynamic backgrounds, affecting the user's interactive experience with the virtual studio.

Method used

Using an interactive performance method based on real-time virtual and real fusion, three-dimensional characters or objects are extracted from the real scene and embedded into the virtual scene through green screen cutout technology, and combined with the shader algorithm to simulate shadows to achieve true integration with the virtual scene, and Through online platforms and cloud technology, students can learn anywhere and at any time.

Benefits of technology

It improves the interactive experience between users and virtual studios and expands the popularity and accessibility of education. Students can study anywhere and at any time without being restricted by time and space.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118154820B_ABST
    Figure CN118154820B_ABST
Patent Text Reader

Abstract

The present invention discloses an interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real, and relates to the field of smart education technology. In order to solve the problem that in practical applications, especially in complex or dynamic backgrounds, the accuracy of gesture recognition may be affected, affecting the interactive experience of users with virtual studios; the interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real includes the following steps: step one: system initialization; step two: capturing three-dimensional characters or objects; step three: green screen cutout processing; step four: virtual-real fusion; step five: interactive broadcasting; the three-dimensional characters or objects are processed from the image in the real scene through the green screen cutout technology, embedded into the virtual scene, simulated and calculated the shadow of the three-dimensional characters or objects, and realized the real fusion with the virtual scene. Students can study at any place and any time, without being restricted by time and space, and expand the popularity and accessibility of education.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of smart education technology, and in particular to a real-time virtual-real fusion and real-time virtual-real interactive broadcasting method. Background Art

[0002] With the rapid development of information technology and virtual reality technology, distance education has become an important form of education. However, traditional distance education usually only transmits information through video and audio, lacking in realism and interactivity. Regarding the interactive broadcasting method, the Chinese patent with publication number: CN110045821A discloses an augmented reality interaction method for a virtual studio, comprising the following steps: (1) performing character segmentation and background color filtering on the color image captured by Kinect; (2) performing a shadow removal process of first corroding and then dilating the processed image in step (1); (3) assigning the obtained image as a dynamic texture to a plane in the constructed virtual studio; (4) based on Kinect's recognition of the character skeleton in the captured scene, combined with the depth image captured by Kinect, the depth position of the character in the space is located. Based on the recognition of the hand joints, a variety of gestures are designed, combined with the three-dimensional coordinates of the hand, to achieve a variety of interactive judgments in space. This patent only requires simple gesture operations for users to achieve a portable and rich augmented reality interactive experience.

[0003] Although the above patent can realize interactive experience through gestures, there are still the following problems:

[0004] In the prior art, although the interactive experience is achieved through gestures, in actual applications, especially in complex or dynamic backgrounds, the accuracy of gesture recognition may be affected, affecting the interactive experience of the user with the virtual studio. Summary of the invention

[0005] The purpose of the present invention is to provide an interactive performance method based on real-time virtual-real fusion and real-time virtual-real, which processes the image of three-dimensional characters or objects from the real scene through green screen cutout technology, embeds them into the virtual scene, simulates and calculates the shadow of the three-dimensional characters or objects, and realizes the real fusion with the virtual scene. Through the online platform and cloud technology, students can study at any place and any time without being restricted by time and space, which expands the popularity and accessibility of education to solve the problems raised in the above-mentioned background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] The interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real includes the following steps:

[0008] Step 1: System initialization: Set up the required scene devices in the actual scene, and establish data connection between the scene devices and the online platform and cloud technology;

[0009] Step 2: Capturing a three-dimensional person or object: starting the camera, acquiring a real scene captured by the camera, capturing a three-dimensional person or object in the real scene, and transmitting the data collected by the camera to the processor based on a wireless network;

[0010] Step 3: Green screen cutout processing: The processor separates the green pixel area from the non-green pixel area in the data collected by the camera based on the HSV color space method, extracts the captured three-dimensional person or object from the real scene, and obtains an image containing only the target object;

[0011] Step 4: Virtual-real fusion: embed the extracted image containing only the target object into the constructed virtual scene, and simulate and calculate the shadow of the three-dimensional person or object through the shader algorithm to achieve real fusion with the virtual scene;

[0012] Step 5: Interactive broadcasting: In the virtual studio, users can interact with 3D characters or objects in the virtual scene through gestures or voice recognition, and remotely play the set animations of the objects in the virtual scene through the remote control.

[0013] Step 6: Online transmission: Based on the online platform and cloud technology, the images and sounds of the virtual studio are transmitted in real time to the students' smart device terminals.

[0014] Further, for capturing the three-dimensional person or object in step 2, specifically:

[0015] Start the camera and ensure that the camera hardware is connected and initialized. After the camera is started, it will collect video frames of the real scene in real time.

[0016] Preprocess the collected image and estimate the depth information of each pixel in the image based on the depth estimation algorithm;

[0017] Collecting brightness data of each pixel in the monitoring video data, processing the brightness data of each pixel according to a preset nonlinear activation function, obtaining a processing result, compensating the video data based on a brightness compensation function, and obtaining compensated video data;

[0018] Performing frame processing on the compensated video data to obtain a processing result, and extracting feature points of a three-dimensional person or object from each frame of the processing result to obtain a feature point extraction result;

[0019] Compare the feature point extraction results of each frame image, and select the feature points of the target person appearing in each frame image;

[0020] Extracting target unit data segments in the compensated video data according to the target person feature points, and generating position attributes of a three-dimensional person or object based on the order of the target unit data segments in the time series carried by the video data;

[0021] Identify a three-dimensional person or object in the image, determine the position of the three-dimensional person or object in the video frame, and determine the tracking result of the target person or object;

[0022] The depth information and the tracking results of the target person or object are integrated to generate the capture results of the three-dimensional person or object.

[0023] Further, for the green screen cutout processing in step 3, specifically:

[0024] Read the green screen background and the image containing the foreground object, and convert the image from the RGB color space to the HSV color space;

[0025] In the HSV color space, the input image is divided into green areas and non-green areas according to the HSV value range of green pixels, and the corresponding masks are generated, marking the green areas as white and the non-green areas as black;

[0026] Perform a bitwise AND operation on the image and the mask to remove the green screen background and obtain an image containing only the foreground object. Merge the image after removing the green screen with the new background image to obtain an image containing only the target object.

[0027] Among them, the bitwise AND operation function is used to implement the bitwise AND operation of the image and the mask to remove the green screen.

[0028] Furthermore, for the calculation of the shadow of a three-dimensional person or object by using a shader algorithm in step 4, the shader algorithm is specifically:

[0029] Extracting a rendering type and a culling attribute in a shader, determining a rendering method and an appearance material of a three-dimensional character or object based on the rendering type, determining a range of a rendering object based on setting the culling attribute, and obtaining a shadow of the three-dimensional character or object that is not affected by light;

[0030] Establishing a label based on the determined rendering type and the set culling attribute, and determining a rendering method of the three-dimensional character or object when rendering different types of light sources based on the label, and recording reference information in a shadow map;

[0031] Wherein, when the tag is used, the shadow projection mode of the network renderer component corresponding to the three-dimensional character or object is set to turn on shadow projection or only cast shadows.

[0032] Furthermore, in step 5, the interaction with the three-dimensional characters or objects in the virtual scene is specifically as follows:

[0033] Capture gestures in the real world through a camera to generate gesture data, extract key features from the gesture data, train the extracted features, and generate a gesture recognition model;

[0034] The gesture data of three-dimensional people or objects is captured in real time by the camera and input into the gesture recognition model for recognition to determine whether interaction data occurs;

[0035] The interaction data is matched one by one with the preset interaction instructions to obtain a matching result;

[0036] The matched interaction instructions are transmitted to the simulation scene through the communication link to control the three-dimensional characters or objects in the simulation scene to make response actions.

[0037] Furthermore, for the interactive broadcast in step 5, it also includes voice collection of the three-dimensional character or object, specifically:

[0038] Collect voice data of the three-dimensional character through a microphone, pre-process the voice data, and extract key features from the pre-processed voice data;

[0039] The extracted key features are trained based on the speech recognition algorithm to generate a speech recognition model, and the objects in the virtual scene are animated based on the speech data recognition results of the speech recognition model.

[0040] Furthermore, for the online transmission in step 6, specifically:

[0041] The video data in the virtual studio is compressed and encoded based on the video encoder, the voice data is compressed and encoded based on the audio encoder, and the encoded video stream and audio stream are transmitted to the cloud server based on the real-time transmission protocol;

[0042] The cloud server receives the video stream and audio stream and performs transcoding, storage and distribution, and establishes a data interaction channel with the online platform;

[0043] Smart devices access the online platform of the virtual studio, receive video and audio streams from the cloud server based on the data interaction channel, decode them, and restore the original images and sounds;

[0044] The decoded images and sounds are displayed on students’ smart devices, and they interact with the virtual studio through smart devices.

[0045] Furthermore, the video data in the virtual studio is compressed and encoded based on a video encoder, the voice data is compressed and encoded based on an audio encoder, and the encoded video stream and audio stream are transmitted to the cloud server based on a real-time transport protocol, including:

[0046] Performing compression encoding processing on the video data in the virtual studio based on a video encoder to obtain a video stream data packet corresponding to the video stream;

[0047] The voice data in the virtual studio is compressed and encoded based on the audio encoder to obtain an audio stream data packet corresponding to the audio stream;

[0048] Monitor the communication parameters of the communication connection with the cloud server in real time, and determine whether the data transmission of the video stream data packet and the audio stream data packet is being carried out simultaneously in the current communication state according to the communication parameters;

[0049] When the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, the video stream data packet and the audio stream data packet are split to form a plurality of video stream sub-data packets and audio stream sub-data packets; wherein the start time and the end time of the splitting of the video stream data packet and the audio stream data packet are the same;

[0050] Packing the video stream sub-data packet and the audio stream sub-data packet with the same start time and end time into one audio and video stream data packet;

[0051] Send the audio and video stream data packets to the cloud server in sequence;

[0052] During the transmission of the audio and video stream data packets, the operating parameters of the communication channel between the audio and video stream data packet and the cloud server are monitored in real time, and the operating quality evaluation parameters of the communication channel are obtained through the operating parameters; wherein the operating quality evaluation parameters of the communication channel are obtained through the following formula:

[0053] ;

[0054] Wherein, F represents the operation quality evaluation parameter of the communication channel; n represents the number of unit time contained in the operation time of the communication channel, and the unit time is 1s; P i represents the bit error rate of data transmission corresponding to the i-th unit time; S i represents the signal-to-noise ratio of the communication channel corresponding to the i-th unit time; f represents the adjustment coefficient; S0 represents the theoretical signal-to-noise ratio corresponding to the communication channel; f i represents the actual communication frequency of the communication channel corresponding to the i-th unit time; f0 represents the communication frequency corresponding to the communication channel;

[0055] When the operation quality evaluation parameter of the communication channel is lower than a preset parameter threshold, a communication abnormality alarm is issued.

[0056] Further, real-time monitoring of the communication parameters of the communication connection with the cloud server, and determining whether the current communication state is simultaneously transmitting the data of the video stream data packet and the audio stream data packet according to the communication parameters, include:

[0057] Real-time monitoring of the rate of change per unit time of the remaining capacity of the communication channel of the communication channel connected to the cloud server;

[0058] Real-time monitoring of the rate of change per unit time of the actual bandwidth of the communication channel connected to the cloud server;

[0059] Real-time monitoring of the rate of change per unit time of the communication frequency of the communication channel connected to the cloud server;

[0060] The stability evaluation parameter corresponding to the communication channel is generated by using the unit time change rate of the remaining capacity of the communication channel, the unit time change rate of the actual bandwidth and the unit time change rate of the communication frequency, wherein the stability evaluation parameter is obtained by the following formula:

[0061] ;

[0062] Where ξ represents the stability evaluation parameter; L c , L b and L f They correspond to the rate of change per unit time of the remaining capacity of the communication channel, the rate of change per unit time of the actual bandwidth and the rate of change per unit time of the communication frequency respectively;

[0063] When the stability evaluation parameter reaches or exceeds a preset stability evaluation threshold, it is determined that the communication state of the current communication channel meets the requirements for simultaneous data transmission of video stream data packets and audio stream data packets;

[0064] When the stability evaluation parameter is lower than a preset stability evaluation threshold, it is determined that the communication state of the current communication channel does not meet the requirement of simultaneously transmitting the data of the video stream data packet and the audio stream data packet.

[0065] Further, when the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, the video stream data packet and the audio stream data packet are split to form a plurality of video stream sub-data packets and audio stream sub-data packets, including:

[0066] When the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, calling the stability evaluation parameter corresponding to the current communication channel;

[0067] The data segmentation coefficient is obtained by using the difference between the stability evaluation parameter and the preset stability evaluation threshold; wherein the data segmentation coefficient is obtained by the following formula:

[0068] ;

[0069] Among them, δ represents the data segmentation coefficient; L x represents a constant coefficient; ξ0 represents the preset stability evaluation threshold; C i represents the channel residual capacity corresponding to the communication channel of the i-th unit time; C b Indicates the corresponding channel residual capacity when the channel is saturated; C e Indicates the overall capacity corresponding to the communication channel;

[0070] The data segmentation coefficient is used to obtain the upper limit of the data volume corresponding to the data packet of the video stream sub-data packet and the audio stream sub-data packet; wherein the upper limit of the data volume corresponding to the data packet of the video stream sub-data packet and the audio stream sub-data packet is obtained by the following formula:

[0071] ;

[0072] Among them, C s and C y represents the upper limit of the data volume corresponding to the video stream sub-packet and the audio stream sub-packet; C0 represents the reference data volume corresponding to the preset sub-packet; C x Indicates the remaining channel capacity of the current communication channel;

[0073] The video stream data packet and the audio stream data packet are split according to the upper limit values ​​of the corresponding data amounts of the data packets of the video stream sub-data packet and the audio stream sub-data packet, to obtain multiple video stream sub-data packets and audio stream sub-data packets whose data amounts do not exceed the corresponding upper limit values, and the starting time and ending time of the splitting of the video stream data packet and the audio stream data packet are the same.

[0074] Compared with the prior art, the present invention has the following beneficial effects:

[0075] The shape of three-dimensional people or objects is captured by the camera, and the image of the three-dimensional people or objects in the real scene is processed through green screen cutout technology, embedded into the virtual scene, and the shadow of the three-dimensional people or objects is simulated and calculated to achieve true fusion with the virtual scene. In the virtual studio, the characters in the scene can remotely play the set animations of the objects in the virtual scene through the remote control. Through online platforms and cloud technology, students can study at any place and any time, without being restricted by time and space, which expands the popularity and accessibility of education. BRIEF DESCRIPTION OF THE DRAWINGS

[0076] Figure 1 It is a flow chart of the interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real of the present invention;

[0077] Figure 2 It is a flow chart of the interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real of the present invention. DETAILED DESCRIPTION

[0078] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0079] In order to solve the technical problem that in practical applications, especially in complex or dynamic backgrounds, the accuracy of gesture recognition may be affected, affecting the user's interactive experience with the virtual studio, please refer to Figure 1-2 , this embodiment provides the following technical solutions:

[0080] The interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real includes the following steps:

[0081] Step 1: System initialization: Set up the required scene equipment in the actual scene, including camera, green screen cutout equipment, virtual scene generation equipment, remote control, pad, HDMI cable and recording equipment, and establish data connection between the scene equipment and the online platform and cloud technology;

[0082] Step 2: Capturing a three-dimensional person or object: starting the camera, acquiring a real scene captured by the camera, capturing a three-dimensional person or object in the real scene, and transmitting the data collected by the camera to the processor based on a wireless network;

[0083] Step 3: Green screen cutout processing: The processor separates the green pixel area from the non-green pixel area in the data collected by the camera based on the HSV color space method, extracts the captured three-dimensional person or object from the real scene, and obtains an image containing only the target object;

[0084] Step 4: Virtual-real fusion: embed the extracted image containing only the target object into the constructed virtual scene, and simulate and calculate the shadow of the three-dimensional person or object through the shader algorithm to achieve real fusion with the virtual scene;

[0085] Step 5: Interactive broadcasting: In the virtual studio, users can interact with 3D characters or objects in the virtual scene through gestures or voice recognition, and use the remote control to remotely play the set animations of the objects in the virtual scene. Specifically:

[0086] Capture gestures in the real world through a camera to generate gesture data, extract key features from the gesture data, such as the shape, speed, direction, etc. of the gesture, train the extracted features, and generate a gesture recognition model;

[0087] The gesture data of three-dimensional people or objects is captured in real time by the camera and input into the gesture recognition model for recognition to determine whether interaction data occurs;

[0088] The interaction data is matched one by one with the preset interaction instructions to obtain a matching result;

[0089] The matched interactive instructions are transmitted to the simulation scene through the communication link to control the three-dimensional characters or objects in the simulation scene to make response actions, such as adjusting the position, rotating, zooming in and out, etc.

[0090] Collect the voice data of the three-dimensional character through a microphone, pre-process the voice data, and extract key features such as pitch, duration, timbre, etc. from the pre-processed voice data;

[0091] The extracted key features are trained based on the speech recognition algorithm to generate a speech recognition model, and the objects in the virtual scene are animated based on the speech data recognition results of the speech recognition model;

[0092] In this embodiment, the content of the animation playback setting is customized and developed according to the course content. For example, there are five steps to wash hands. The remote control of the virtual character in the virtual scene washing hands is the third step. In the virtual studio, the three-dimensional character can explain this step in depth separately;

[0093] Step 6: Online transmission: Based on the online platform and cloud technology, the images and sounds of the virtual studio are transmitted to the students' smart device terminals in real time, so that students can study at any place and any time. Specifically:

[0094] The video data in the virtual studio is compressed and encoded based on the video encoder, the voice data is compressed and encoded based on the audio encoder, and the encoded video stream and audio stream are transmitted to the cloud server based on the real-time transmission protocol;

[0095] The cloud server receives the video and audio streams and transcodes, stores, and distributes them. The cloud server establishes a data interaction channel with the online platform.

[0096] Smart devices access the online platform of the virtual studio, such as web pages and applications, and receive video and audio streams from the cloud server based on the data interaction channel, and decode them to restore the original images and sounds;

[0097] The decoded images and sounds are displayed on students' smart devices for them to learn and watch. Students can study at any place and at any time without being restricted by time and place, and interact with the virtual studio through smart devices, such as submitting homework and participating in discussions. At the same time, students can also provide feedback and suggestions to improve the learning experience in the virtual studio. When the learning is over, students can choose to exit the online learning platform and save or share the learning results. At the same time, this form of teaching can also be applied to various educational forms such as MOOC and online education, expanding the popularity and accessibility of education.

[0098] In this embodiment, the shape of a three-dimensional person or object is captured by a camera, and the image of the three-dimensional person or object in the real scene is processed through the green screen cutout technology and embedded into the virtual scene. The shadow of the three-dimensional person or object is simulated and calculated through the shader algorithm to achieve true fusion with the virtual scene. In the virtual studio, the person in the scene can remotely play the set animation of the objects in the virtual scene through the remote control. During the speech, you can write on the pad in your hand and transmit it to the software through the HDMI cable to achieve the picture-in-picture function. The data is collected through image acquisition and the microphone on the person, and converged into a video in MP4 format to record the content of the lecture.

[0099] In this embodiment, the three-dimensional person or object is captured in step 2, specifically:

[0100] Start the camera and ensure that the camera hardware is connected and initialized, including setting appropriate resolution, frame rate, exposure and other parameters. After the camera is started, it collects video frames of real scenes in real time, including capturing light and converting it into digital signals. The camera continuously captures video frames and can capture dozens to hundreds of frames per second.

[0101] Preprocess the captured images, including denoising, color correction, brightness adjustment, etc., to improve the effect of subsequent processing. Estimate the depth information of each pixel in the image based on depth estimation algorithms, such as structured light-based methods, stereo vision-based methods, or deep learning-based monocular depth estimation methods;

[0102] Collect brightness data of each pixel in the monitoring video data, process the brightness data of each pixel according to a preset nonlinear activation function, obtain the processing result, compensate the video data based on the brightness compensation function, and obtain the compensated video data;

[0103] Perform frame processing on the compensated video data to obtain processing results, extract feature points of three-dimensional people or objects from each frame of the processing results, and obtain feature point extraction results;

[0104] Compare the feature point extraction results of each frame image, and select the feature points of the target person appearing in each frame image;

[0105] The target unit data segments in the compensated video data are extracted according to the feature points of the target person, and the position attributes of the three-dimensional person or object are generated based on the order of the target unit data segments in the time series carried by the video data.

[0106] In this embodiment, by processing brightness data through a preset nonlinear activation function and combining the brightness compensation function to compensate the video data, the image distortion caused by uneven brightness can be significantly reduced, the overall visibility of the video can be improved, and a basis can be provided for subsequent target recognition, tracking and positioning. Based on the position attributes of the generated three-dimensional person or object, a data basis is provided for determining the position of the three-dimensional person or object in the video frame, which helps to improve the video quality and visualization effect, and also provides strong support for subsequent video analysis.

[0107] Identify the three-dimensional person or object in the image, determine the position of the three-dimensional person or object in the video frame, and determine the tracking result of the target person or object;

[0108] The depth information and the tracking results of the target person or object are integrated to generate the capture results of the three-dimensional person or object, thereby achieving continuous tracking of the target object.

[0109] In this embodiment, the green screen cutout processing in step 3 is specifically as follows:

[0110] Read the green screen background and the image containing the foreground object, and convert the image from the RGB color space to the HSV color space;

[0111] In this embodiment, the image is converted from the RGB color space to the HSV color space using an open source computer vision library. In the open source computer vision library, the color space conversion function is a function used to convert an image from one color space to another color space. In the field of computer vision, it is often necessary to convert the color space of an image for subsequent processing and analysis. The color space conversion function can realize the conversion between different color spaces, such as RGB, HSV, HSL, YUV, GRAY, etc., wherein the color space conversion function requires two parameters, the first parameter is the image to be converted, and the second parameter is the specified target color space;

[0112] In the HSV color space, the input image is divided into green areas and non-green areas according to the HSV value range of green pixels, and the corresponding masks are generated, marking the green areas as white and the non-green areas as black;

[0113] Perform a bitwise AND operation on the image and the mask to remove the green screen background and obtain an image containing only the foreground object. Merge the image after removing the green screen with the new background image to obtain an image containing only the target object.

[0114] In this embodiment, in background replacement, the mask is used to mark the background to be replaced as white, and the foreground object as black. Based on the marking result, the green screen background is eliminated, the background and foreground are marked in the HSV color space, and the pixels matching the green screen background are marked as white with a value of 255, while the pixels not matching are marked as black with a value of 0. The mask is multiplied by the original image to obtain an image containing only the foreground object; wherein, the bitwise AND operation of the image and the mask is implemented by the bitwise AND operation function to subtract the green screen.

[0115] In this embodiment, the shader algorithm is specifically:

[0116] Extract the rendering type and culling attributes in the shader, and determine the rendering method and appearance material of the three-dimensional character or object based on the rendering type. For example, if the rendering type is opaque, it means that the object defined by this shader is opaque. If the rendering type is transparent, it means that the object defined by this shader is translucent. Determine the range of the rendered object based on the set culling attributes. For example, set culling off to render the front and back of the object, set only culling the back to render only the front, and set only culling the front to render only the back. In this example, by setting culling off, the front and back of the three-dimensional character or object are rendered to obtain the shadow of the three-dimensional character or object that is not affected by light.

[0117] Based on the determined rendering type and set culling properties, a tag is established, and based on the tag, the rendering method of a 3D character or object when rendering different types of light sources is determined, and reference information is recorded in the shadow map; tags are usually used on objects that need to receive and generate real-time shadows, such as characters, scenes, etc.

[0118] When using the tag, the shadow projection mode of the network renderer component corresponding to the three-dimensional character or object is set to turn on shadow projection or only cast shadows.

[0119] In this embodiment, the shader algorithm optimizes the performance of graphics rendering while maintaining visual quality by flexibly setting rendering types and culling attributes, using tags to organize rendering behaviors, and configuring shadow projection modes. This is especially true when dealing with a large number of objects and complex lighting conditions. It can achieve efficient, realistic, and flexible graphics rendering in a virtual environment, especially for the generation and processing of shadows of three-dimensional characters or objects, greatly enhancing the realism and immersion of the virtual scene.

[0120] Specifically, the video data in the virtual studio is compressed and encoded based on a video encoder, the voice data is compressed and encoded based on an audio encoder, and the encoded video stream and audio stream are transmitted to the cloud server based on a real-time transport protocol, including:

[0121] Performing compression encoding processing on the video data in the virtual studio based on a video encoder to obtain a video stream data packet corresponding to the video stream;

[0122] The voice data in the virtual studio is compressed and encoded based on the audio encoder to obtain an audio stream data packet corresponding to the audio stream;

[0123] Monitor the communication parameters of the communication connection with the cloud server in real time, and determine whether the data transmission of the video stream data packet and the audio stream data packet is being carried out simultaneously in the current communication state according to the communication parameters;

[0124] When the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, the video stream data packet and the audio stream data packet are split to form a plurality of video stream sub-data packets and audio stream sub-data packets; wherein the start time and the end time of the splitting of the video stream data packet and the audio stream data packet are the same;

[0125] Packing the video stream sub-data packet and the audio stream sub-data packet with the same start time and end time into one audio and video stream data packet;

[0126] Send the audio and video stream data packets to the cloud server in sequence;

[0127] During the transmission of the audio and video stream data packets, the operating parameters of the communication channel between the audio and video stream data packet and the cloud server are monitored in real time, and the operating quality evaluation parameters of the communication channel are obtained through the operating parameters; wherein the operating quality evaluation parameters of the communication channel are obtained through the following formula:

[0128] ;

[0129] Wherein, F represents the operation quality evaluation parameter of the communication channel; n represents the number of unit time contained in the operation time of the communication channel, and the unit time is 1s; P i represents the bit error rate of data transmission corresponding to the i-th unit time; S i represents the signal-to-noise ratio of the communication channel corresponding to the i-th unit time; f represents the adjustment coefficient; S0 represents the theoretical signal-to-noise ratio corresponding to the communication channel; f i represents the actual communication frequency of the communication channel corresponding to the i-th unit time; f0 represents the communication frequency corresponding to the communication channel;

[0130] When the operation quality evaluation parameter of the communication channel is lower than a preset parameter threshold, a communication abnormality alarm is issued.

[0131] The technical effect of the above technical solution is: by compressing and encoding the video and voice data in the virtual studio through the video encoder and the audio encoder, the amount of data transmission can be significantly reduced and the data transmission efficiency can be improved. The compressed and encoded video stream data packet and audio stream data packet are more suitable for transmission in a network environment with limited bandwidth, reducing the transmission cost. Real-time monitoring of the communication connection status between the cloud server can ensure the real-time and stability of data transmission. When the communication status does not meet the requirements of simultaneous transmission of the video stream data packet and the audio stream data packet, by splitting the data packet, the transmission strategy can be flexibly adjusted to adapt to different network environments and communication conditions, and the continuity and integrity of data transmission can be guaranteed. Packing the video stream sub-data packet and the audio stream sub-data packet with the same start time and end time into an audio and video stream data packet can ensure the synchronous transmission of audio and video data, avoid the confusion or loss of audio and video data during the transmission process, and improve the user's viewing experience. By real-time monitoring the operating parameters of the communication channel, the operating quality evaluation parameters of the communication channel can be obtained, thereby judging the operating status of the communication channel. When the operating quality evaluation parameter is lower than the preset parameter threshold, a communication abnormality alarm is issued, which helps to timely discover and solve communication problems and ensure the stability and reliability of data transmission.

[0132] In summary, this technical solution achieves efficient, stable and reliable audio and video data transmission through data compression encoding, real-time monitoring of communication status and data packet splitting, synchronous transmission of audio and video stream data packets, and communication channel operation quality assessment and abnormal alarm, thereby improving the communication quality and user experience between the virtual studio and the cloud server.

[0133] Specifically, real-time monitoring of the communication parameters of the communication connection with the cloud server, and determining whether the current communication state is simultaneously transmitting the data of the video stream data packet and the audio stream data packet according to the communication parameters, include:

[0134] Real-time monitoring of the rate of change per unit time of the remaining capacity of the communication channel of the communication channel connected to the cloud server;

[0135] Real-time monitoring of the rate of change per unit time of the actual bandwidth of the communication channel connected to the cloud server;

[0136] Real-time monitoring of the rate of change per unit time of the communication frequency of the communication channel connected to the cloud server;

[0137] The stability evaluation parameter corresponding to the communication channel is generated by using the unit time change rate of the remaining capacity of the communication channel, the unit time change rate of the actual bandwidth and the unit time change rate of the communication frequency, wherein the stability evaluation parameter is obtained by the following formula:

[0138] ;

[0139] Where ξ represents the stability evaluation parameter; L c , L b and L f They correspond to the rate of change per unit time of the remaining capacity of the communication channel, the rate of change per unit time of the actual bandwidth and the rate of change per unit time of the communication frequency respectively;

[0140] When the stability evaluation parameter reaches or exceeds a preset stability evaluation threshold, it is determined that the communication state of the current communication channel meets the requirements for simultaneous data transmission of video stream data packets and audio stream data packets;

[0141] When the stability evaluation parameter is lower than a preset stability evaluation threshold, it is determined that the communication state of the current communication channel does not meet the requirement of simultaneously transmitting the data of the video stream data packet and the audio stream data packet.

[0142] The technical effect of the above technical solution is: by real-time monitoring of multiple key parameters of the communication channel connected to the cloud server (including the rate of change per unit time of the remaining capacity of the communication channel, the rate of change per unit time of the actual bandwidth, and the rate of change per unit time of the communication frequency), the current state of the communication channel can be evaluated in real time and accurately. This helps to promptly discover possible problems or potential risks in the communication channel, so as to take corresponding measures to adjust and optimize. According to the stability evaluation parameters obtained by real-time monitoring, it can be determined whether the current communication channel meets the data transmission requirements of video stream data packets and audio stream data packets at the same time. When the stability evaluation parameter reaches or exceeds the preset stability evaluation threshold, it means that the state of the communication channel is good and can support the simultaneous transmission of video and audio data, ensuring the efficiency and stability of data transmission. When the stability evaluation parameter is lower than the preset stability evaluation threshold, it indicates that the state of the communication channel may be poor, and corresponding adjustments need to be made, such as splitting data packets, reducing the data transmission rate, etc., to ensure the reliability and continuity of data transmission.

[0143] By real-time monitoring and evaluation of the communication channel status, the data transmission strategy can be flexibly adjusted according to the actual situation to avoid blindly transmitting a large amount of data when the communication channel status is not good, resulting in a waste of communication resources and a decline in communication quality. At the same time, the data transmission rate and priority can be adjusted in time according to the changes in the communication channel status to achieve efficient use of communication resources. In addition, by real-time monitoring and evaluation of the communication channel status and adjusting the data transmission strategy according to the evaluation results, the transmission quality of audio and video data and user experience can be guaranteed to the greatest extent. When the communication channel status is good, efficient and smooth data transmission can be achieved; when the communication channel status is not good, the continuity and stability of data transmission can be guaranteed by splitting data packets, reducing the data transmission rate, etc., to avoid confusion or loss of audio and video data.

[0144] In summary, this technical solution optimizes the data transmission strategy, realizes efficient use of communication resources, and improves data transmission quality and user experience by monitoring the communication channel parameters of the communication connection with the cloud server in real time and evaluating the stability of the communication channel based on these parameters.

[0145] Specifically, when the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, the video stream data packet and the audio stream data packet are split to form a plurality of video stream sub-data packets and audio stream sub-data packets, including:

[0146] When the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, calling the stability evaluation parameter corresponding to the current communication channel;

[0147] The data segmentation coefficient is obtained by using the difference between the stability evaluation parameter and the preset stability evaluation threshold; wherein the data segmentation coefficient is obtained by the following formula:

[0148] ;

[0149] Among them, δ represents the data segmentation coefficient; L x represents a constant coefficient; ξ0 represents the preset stability evaluation threshold; C i represents the channel residual capacity corresponding to the communication channel of the i-th unit time; C b Indicates the corresponding channel residual capacity when the channel is saturated; C e Indicates the overall capacity corresponding to the communication channel;

[0150] The data segmentation coefficient is used to obtain the upper limit of the data volume corresponding to the data packet of the video stream sub-data packet and the audio stream sub-data packet; wherein the upper limit of the data volume corresponding to the data packet of the video stream sub-data packet and the audio stream sub-data packet is obtained by the following formula:

[0151] ;

[0152] Among them, C s and C y represents the upper limit of the data volume corresponding to the video stream sub-packet and the audio stream sub-packet; C0 represents the reference data volume corresponding to the preset sub-packet; C x Indicates the remaining channel capacity of the current communication channel;

[0153] The video stream data packet and the audio stream data packet are split according to the upper limit values ​​of the corresponding data amounts of the data packets of the video stream sub-data packet and the audio stream sub-data packet, to obtain multiple video stream sub-data packets and audio stream sub-data packets whose data amounts do not exceed the corresponding upper limit values, and the starting time and ending time of the splitting of the video stream data packet and the audio stream data packet are the same.

[0154] The technical effect of the above technical solution is: when the communication state does not meet the simultaneous transmission requirements of the video stream data packet and the audio stream data packet, the technical solution can dynamically adjust the data transmission strategy according to the stability evaluation parameters of the current communication channel. By splitting the video stream data packet and the audio stream data packet into multiple sub-data packets, it can adapt to different communication channel states and ensure the continuity and stability of data transmission. The data segmentation coefficient is calculated by a specific formula using the difference between the stability evaluation parameter and the preset stability evaluation threshold. This method takes into account the difference between the real-time state and the ideal state of the communication channel, and accurately determines the degree of data segmentation based on the relationship between the remaining capacity of the channel and the overall capacity. This helps to more accurately control the size of the sub-data packet to adapt to the actual transmission capacity of the communication channel.

[0155] By comprehensively considering factors such as the preset sub-packet baseline data volume and the remaining channel capacity of the current communication channel, the upper limit of the data volume of the video stream sub-packet and the audio stream sub-packet is calculated. This method ensures that the size of the sub-packet will neither exceed the transmission capacity of the communication channel nor be too small to affect the efficiency of data transmission. When splitting the video stream data packet and the audio stream data packet, ensure that the start time and the end time of the split are the same, which helps to maintain the synchronization of audio and video data and avoid the problem of audio and video asynchrony caused by data splitting. At the same time, by monitoring the communication status in real time and adjusting the data transmission strategy in time when the demand is not met, this technical solution can reduce the possibility of data transmission interruption or delay, thereby improving the user's viewing experience. At the same time, maintaining the synchronization of audio and video data also helps to improve user satisfaction.

[0156] In summary, this technical solution achieves more efficient and stable data transmission and improves user experience by dynamically adjusting data transmission strategies, accurately calculating data segmentation coefficients, setting reasonable upper limits on sub-packet data volumes, and ensuring synchronous transmission of audio and video data.

[0157] The above description is only a preferred specific implementation manner of the present invention, but the protection scope of the present invention is not limited thereto. Any technician familiar with the technical field can make equivalent replacements or changes according to the technical scheme and inventive concept of the present invention within the technical scope disclosed by the present invention, which should be covered by the protection scope of the present invention.

Claims

1. A method for interactive broadcasting based on real-time virtual-real fusion and real-time virtual-real interaction, characterized by: The following steps are involved: Step 1: System initialization: Set up the required scene devices in the actual scene, and establish data connection between the scene devices and the online platform and cloud technology; Step 2: Capturing a three-dimensional person or object: starting the camera, acquiring a real scene captured by the camera, capturing a three-dimensional person or object in the real scene, and transmitting the data collected by the camera to the processor based on a wireless network; Step 3: Green screen cutout processing: The processor separates the green pixel area from the non-green pixel area in the data collected by the camera based on the HSV color space method, extracts the captured three-dimensional person or object from the real scene, and obtains an image containing only the target object; Step 4: Virtual-real fusion: embed the extracted image containing only the target object into the constructed virtual scene, and simulate and calculate the shadow of the three-dimensional person or object through the shader algorithm to achieve real fusion with the virtual scene; Step 5: Interactive broadcasting: In the virtual studio, users can interact with 3D characters or objects in the virtual scene through gestures or voice recognition, and remotely play the set animations of the objects in the virtual scene through the remote control. Step 6: Online transmission: Based on the online platform and cloud technology, the images and sounds of the virtual studio are transmitted to the students’ smart device terminals in real time; For online transmission in step 6, specifically: The video data in the virtual studio is compressed and encoded based on the video encoder, the voice data is compressed and encoded based on the audio encoder, and the encoded video stream and audio stream are transmitted to the cloud server based on the real-time transmission protocol; The cloud server receives the video stream and audio stream and performs transcoding, storage and distribution, and establishes a data interaction channel with the online platform; Smart devices access the online platform of the virtual studio, receive video and audio streams from the cloud server based on the data interaction channel, decode them, and restore the original images and sounds; The decoded images and sounds are displayed on students’ smart devices, and they can interact with the virtual studio through smart devices; The video data in the virtual studio is compressed and encoded based on the video encoder, the voice data is compressed and encoded based on the audio encoder, and the encoded video stream and audio stream are transmitted to the cloud server based on the real-time transmission protocol, including: Performing compression encoding processing on the video data in the virtual studio based on a video encoder to obtain a video stream data packet corresponding to the video stream; The voice data in the virtual studio is compressed and encoded based on the audio encoder to obtain an audio stream data packet corresponding to the audio stream; Monitor the communication parameters of the communication connection with the cloud server in real time, and determine whether the data transmission of the video stream data packet and the audio stream data packet is being carried out simultaneously in the current communication state according to the communication parameters; When the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, the video stream data packet and the audio stream data packet are split to form a plurality of video stream sub-data packets and audio stream sub-data packets; wherein the start time and the end time of the splitting of the video stream data packet and the audio stream data packet are the same; Packing the video stream sub-data packet and the audio stream sub-data packet with the same start time and end time into one audio and video stream data packet; Send the audio and video stream data packets to the cloud server in sequence; During the transmission of the audio and video stream data packets, the operating parameters of the communication channel between the audio and video stream data packet and the cloud server are monitored in real time, and the operating quality evaluation parameters of the communication channel are obtained through the operating parameters; wherein the operating quality evaluation parameters of the communication channel are obtained through the following formula: ; Wherein, F represents the operation quality evaluation parameter of the communication channel; n represents the number of unit time contained in the operation time of the communication channel, and the unit time is 1s; P i represents the bit error rate of data transmission corresponding to the i-th unit time; S i represents the signal-to-noise ratio of the communication channel corresponding to the i-th unit time; f represents the adjustment coefficient; S0 represents the theoretical signal-to-noise ratio corresponding to the communication channel; f i represents the actual communication frequency of the communication channel corresponding to the i-th unit time; f0 represents the communication frequency corresponding to the communication channel; When the operation quality evaluation parameter of the communication channel is lower than a preset parameter threshold, a communication abnormality alarm is issued.

2. The interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real interaction as claimed in claim 1, characterized in that: Regarding capturing three-dimensional people or objects in step 2, specifically: Start the camera and ensure that the camera hardware is connected and initialized. After the camera is started, it will collect video frames of the real scene in real time. Preprocess the collected image and estimate the depth information of each pixel in the image based on the depth estimation algorithm; Collecting brightness data of each pixel in the monitoring video data, processing the brightness data of each pixel according to a preset nonlinear activation function, obtaining a processing result, compensating the video data based on a brightness compensation function, and obtaining compensated video data; Performing frame processing on the compensated video data to obtain a processing result, and extracting feature points of a three-dimensional person or object from each frame of the processing result to obtain a feature point extraction result; Compare the feature point extraction results of each frame image, and select the feature points of the target person appearing in each frame image; Extracting target unit data segments in the compensated video data according to the target person feature points, and generating position attributes of a three-dimensional person or object based on the order of the target unit data segments in the time series carried by the video data; Identify a three-dimensional person or object in the image, determine the position of the three-dimensional person or object in the video frame, and determine the tracking result of the target person or object; The depth information and the tracking results of the target person or object are integrated to generate the capture results of the three-dimensional person or object.

3. The interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real interaction as claimed in claim 2, characterized in that: Regarding the green screen cutout processing in step 3, specifically: Read the green screen background and the image containing the foreground object, and convert the image from the RGB color space to the HSV color space; In the HSV color space, the input image is divided into green areas and non-green areas according to the HSV value range of green pixels, and the corresponding masks are generated, marking the green areas as white and the non-green areas as black; Perform a bitwise AND operation on the image and the mask to remove the green screen background and obtain an image containing only the foreground object. Merge the image after removing the green screen with the new background image to obtain an image containing only the target object. Among them, the bitwise AND operation function is used to implement the bitwise AND operation of the image and the mask to remove the green screen.

4. The interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real interaction as claimed in claim 3, characterized in that: Regarding the calculation of the shadow of a three-dimensional person or object by using a shader algorithm in step 4, the shader algorithm is specifically: Extracting a rendering type and a culling attribute in a shader, determining a rendering method and an appearance material of a three-dimensional character or object based on the rendering type, determining a range of a rendering object based on setting the culling attribute, and obtaining a shadow of the three-dimensional character or object that is not affected by light; Establishing a label based on the determined rendering type and the set culling attribute, and determining a rendering method of the three-dimensional character or object when rendering different types of light sources based on the label, and recording reference information in a shadow map; Wherein, when the tag is used, the shadow projection mode of the network renderer component corresponding to the three-dimensional character or object is set to turn on shadow projection or only cast shadows.

5. The interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real interaction as claimed in claim 4, characterized in that: Regarding step 5, the interaction with the three-dimensional characters or objects in the virtual scene is as follows: Capture gestures in the real world through a camera to generate gesture data, extract key features from the gesture data, train the extracted features, and generate a gesture recognition model; The gesture data of three-dimensional people or objects is captured in real time by the camera and input into the gesture recognition model for recognition to determine whether interaction data occurs; The interaction data is matched one by one with the preset interaction instructions to obtain a matching result; The matched interaction instructions are transmitted to the simulation scene through the communication link to control the three-dimensional characters or objects in the simulation scene to make response actions.

6. The interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real interaction as claimed in claim 5, characterized in that: For the interactive broadcast in step 5, it also includes voice collection of three-dimensional characters or objects, specifically: Collect voice data of the three-dimensional character through a microphone, pre-process the voice data, and extract key features from the pre-processed voice data; The extracted key features are trained based on the speech recognition algorithm to generate a speech recognition model, and the objects in the virtual scene are animated based on the speech data recognition results of the speech recognition model.

7. The interactive performance method based on real-time virtual-real fusion and real-time virtual-real interaction as claimed in claim 6, characterized in that: Real-time monitoring of the communication parameters of the communication connection with the cloud server, and determining whether the current communication state is simultaneously transmitting the data of the video stream data packet and the audio stream data packet according to the communication parameters, including: Real-time monitoring of the rate of change per unit time of the remaining capacity of the communication channel of the communication channel connected to the cloud server; Real-time monitoring of the rate of change per unit time of the actual bandwidth of the communication channel connected to the cloud server; Real-time monitoring of the rate of change per unit time of the communication frequency of the communication channel connected to the cloud server; The stability evaluation parameter corresponding to the communication channel is generated by using the unit time change rate of the remaining capacity of the communication channel, the unit time change rate of the actual bandwidth and the unit time change rate of the communication frequency, wherein the stability evaluation parameter is obtained by the following formula: ; Where ξ represents the stability evaluation parameter; L c , L b and L f They correspond to the rate of change per unit time of the remaining capacity of the communication channel, the rate of change per unit time of the actual bandwidth and the rate of change per unit time of the communication frequency respectively; When the stability evaluation parameter reaches or exceeds a preset stability evaluation threshold, it is determined that the communication state of the current communication channel meets the requirements for simultaneous data transmission of video stream data packets and audio stream data packets; When the stability evaluation parameter is lower than a preset stability evaluation threshold, it is determined that the communication state of the current communication channel does not meet the requirement of simultaneously transmitting the data of the video stream data packet and the audio stream data packet.

8. The interactive broadcasting method based on real-time virtual-real fusion and real-time virtual-real interaction as claimed in claim 7, characterized in that: When the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, the video stream data packet and the audio stream data packet are split to form a plurality of video stream sub-data packets and audio stream sub-data packets, including: When the communication state does not meet the data transmission requirements of the video stream data packet and the audio stream data packet, calling the stability evaluation parameter corresponding to the current communication channel; The data segmentation coefficient is obtained by using the difference between the stability evaluation parameter and the preset stability evaluation threshold; wherein the data segmentation coefficient is obtained by the following formula: ; Among them, δ represents the data segmentation coefficient; L x represents a constant coefficient; ξ0 represents the preset stability evaluation threshold; C i represents the channel residual capacity corresponding to the communication channel of the i-th unit time; C b Indicates the corresponding channel residual capacity when the channel is saturated; C e Indicates the overall capacity corresponding to the communication channel; The data segmentation coefficient is used to obtain the upper limit of the data volume corresponding to the data packet of the video stream sub-data packet and the audio stream sub-data packet; wherein the upper limit of the data volume corresponding to the data packet of the video stream sub-data packet and the audio stream sub-data packet is obtained by the following formula: ; Among them, C s and C y represents the upper limit of the data volume corresponding to the video stream sub-packet and the audio stream sub-packet; C0 represents the reference data volume corresponding to the preset sub-packet; C x Indicates the remaining channel capacity of the current communication channel; The video stream data packet and the audio stream data packet are split according to the upper limit values ​​of the corresponding data amounts of the data packets of the video stream sub-data packet and the audio stream sub-data packet, to obtain multiple video stream sub-data packets and audio stream sub-data packets whose data amounts do not exceed the corresponding upper limit values, and the starting time and ending time of the splitting of the video stream data packet and the audio stream data packet are the same.

Citation Information

Patent Citations

  • Augmented reality interaction method for virtual studio

    CN110045821A

  • Scenario video recording system and method based on 3D virtual synthesis technology and scenario training learning method

    CN105306862A

  • Motion detection method and device, electronic equipment and storage medium

    CN110111364A

  • Intelligent interactive gesture control method and device

    CN113741694A