A real-time picture switching method based on software frame rate and related device
Through a real-time screen switching method based on software frame rate, combined with encoding processing of pose and projection angle data and scene complexity analysis, the problem of unsmooth screen switching in three-dimensional holographic stereoscopic display is solved and a higher-quality virtual experience is achieved.
Patent Information
- Application Number
- CN202311163862.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-11
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-09-11
AI Technical Summary
In the three-dimensional holographic display, the picture switching is not smooth and the viewing experience is poor. The existing technology lacks adaptive and accurate picture switching strategies, which affects the audience's visual experience and emotional resonance.
A real-time screen switching method based on software frame rate is adopted. Through coding feature extraction, fusion coding, scene complexity analysis and fluency curve prediction of pose data and projection angle data, the frame rate switching threshold is calculated to achieve real-time screen switching control and ensure The continuity and smoothness of screen switching.
It improves the accuracy and smoothness of picture switching, reduces stuttering and flickering, improves the audience's visual experience and emotional resonance, and provides a more coherent picture transition.
Smart Images

Figure CN117201754B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a real-time picture switching method based on software frame rate and a related device. Background Art
[0002] Driven by modern digital technology, 3D holographic stereoscopic display technology has been widely used in virtual reality, augmented reality, entertainment industry and other fields. This technology enables the audience to experience the virtual world immersively by presenting realistic 3D scenes. However, due to the complex scene content and requirements, 3D holographic stereoscopic display often faces problems such as unsmooth screen switching and poor viewing experience. In order to solve these problems, researchers proposed a real-time screen switching method based on software frame rate, aiming to improve the smoothness, consistency and viewing experience of screen switching through intelligent technical means, so as to meet users' demand for high-quality virtual experience.
[0003] In traditional 3D holographic stereoscopic displays, the screen switching is not coherent due to the changes in scene complexity, which interferes with the audience's visual experience. The freeze and flickering problems during the screen switching process will affect the audience's viewing comfort and even cause dizziness and other discomfort. Existing technologies often lack adaptability and cannot flexibly adjust the screen switching strategy according to different scene characteristics and audience needs. In terms of the timing of screen switching, existing technologies lack accurate methods to determine key moments, which affects the audience's emotional resonance and sense of participation. Summary of the invention
[0004] The present invention provides a real-time picture switching method based on software frame rate and a related device, which are used to improve the accuracy of real-time picture switching based on software frame rate.
[0005] A first aspect of the present invention provides a real-time picture switching method based on software frame rate, and the real-time picture switching method based on software frame rate comprises:
[0006] Extracting the posture data of the current three-dimensional display laser light source to obtain a posture data set, and calculating the projection angle of the posture data set to obtain projection angle data;
[0007] Extracting data coding features from the posture data set and the projection angle data to obtain fused coding features, matching a target coding algorithm with the fused coding features, and performing fusion coding on the posture data set and the projection angle data through the target coding algorithm to generate coded fusion data;
[0008] Performing three-dimensional display scene modeling through the encoded fusion data to obtain a three-dimensional scene model, and at the same time, matching a rendering engine of the three-dimensional scene model, and generating picture frames for the three-dimensional scene model through the rendering engine to obtain multiple real-time picture frames;
[0009] Performing real-time frame rate analysis on a plurality of the real-time picture frames to obtain real-time frame rate data, performing moving average calculation on the real-time frame rate data to obtain a moving average frame rate, and performing scene complexity calculation on the three-dimensional scene model using the moving average frame rate to obtain scene complexity data for each of the real-time picture frames;
[0010] Predicting a picture smoothness curve for the scene complexity data of each real-time picture frame to obtain a smoothness curve, and extracting extreme points from the smoothness curve to obtain a plurality of curve extreme points;
[0011] The frame rate switching threshold is calculated through multiple extreme points of the curve to obtain the frame rate switching threshold, the real-time frame rate data is frame rate smoothed to obtain smoothed frame rate data, and at the same time, the smoothed frame rate data is calibrated for switching frames based on the frame rate switching threshold to obtain at least one target switching frame, and the three-dimensional scene model is controlled to switch the screen in real time through at least one of the target switching frames.
[0012] In combination with the first aspect, in a first implementation of the first aspect of the present invention, the data coding feature extraction is performed on the pose data set and the projection angle data to obtain a fused coding feature, a target coding algorithm is matched through the fused coding feature, and the pose data set and the projection angle data are fused and encoded through the target coding algorithm to generate encoded fused data, including:
[0013] Inputting the pose data set into a preset first recurrent neural network to extract data coding features to obtain a first coding feature;
[0014] Inputting the projection angle data set into a preset second recurrent neural network to extract data coding features to obtain a second coding feature;
[0015] Performing feature correlation analysis on the first coding feature and the second coding feature to obtain relevant data indicators;
[0016] Generate feature fusion semantic representation through the relevant data indicators to obtain target feature fusion semantic information;
[0017] By fusing the target feature with semantic information, the first coding feature and the second coding feature are subjected to feature fusion to obtain a fused coding feature;
[0018] Performing coding space screening on the fused coding features to obtain a target coding space, and mapping the fused coding features to the target coding space to obtain a spatial coding feature;
[0019] Performing isometric mapping on the spatial coding features to obtain multiple groups of spatial data points, performing distance relationship calculation on the multiple groups of spatial data points to obtain target distance relationships between the multiple groups of spatial data points, and performing coding algorithm matching through the target distance relationships to obtain a target coding algorithm;
[0020] The pose data set and the projection angle data are fused and encoded using a target encoding algorithm to generate encoded fusion data.
[0021] In combination with the second implementation manner of the first aspect, in the second implementation manner of the first aspect of the present invention, the spatial coding features are equidistantly mapped to obtain multiple groups of spatial data points, and distance relationships are calculated for the multiple groups of spatial data points to obtain target distance relationships between the multiple groups of spatial data points, and encoding algorithm matching is performed through the target distance relationship to obtain a target encoding algorithm, including:
[0022] Constructing a distance matrix for the spatial coding features to obtain a target distance matrix;
[0023] Performing isometric mapping on the spatial coding features through the target distance matrix to obtain multiple groups of spatial data points;
[0024] Performing K nearest neighbor analysis on multiple groups of spatial data points to obtain multiple pairs of adjacent data points;
[0025] Constructing an adjacency graph for multiple pairs of adjacent data points to obtain a target adjacency graph;
[0026] Calculating the shortest path distance of the target adjacency graph to obtain the shortest path distance of the target adjacency graph;
[0027] Calculating the distance relationship between the multiple groups of spatial data points by using the shortest path distance to obtain the target distance relationship between the multiple groups of spatial data points;
[0028] The encoding algorithm is matched through the target distance relationship to obtain the target encoding algorithm.
[0029] In combination with the second implementation manner of the first aspect, in a third implementation manner of the first aspect of the present invention, matching the encoding algorithms through the target distance relationship to obtain the target encoding algorithm includes:
[0030] Performing encoding algorithm set matching on the target distance relationship to obtain a target encoding algorithm set;
[0031] Performing low-dimensional space transformation on the target distance relationship to obtain a Euclidean distance set corresponding to the target distance relationship;
[0032] Using the Euclidean distance set, calculating the cosine similarity of each coding algorithm in the target coding algorithm set to obtain a similarity set;
[0033] Each of the encoding algorithms is screened using the similarity set to obtain a target encoding algorithm.
[0034] In combination with the first aspect, in a fourth implementation of the first aspect of the present invention, performing real-time frame rate analysis on a plurality of real-time picture frames to obtain real-time frame rate data, performing moving average calculation on the real-time frame rate data to obtain a moving average frame rate, and performing scene complexity calculation on the three-dimensional scene model by using the moving average frame rate to obtain scene complexity data of each real-time picture frame, including:
[0035] Calculating the time interval of a plurality of real-time picture frames to obtain a plurality of time interval data;
[0036] Performing real-time frame rate analysis on a plurality of real-time picture frames according to a plurality of the time interval data to obtain real-time frame rate data;
[0037] Performing time moving window calculation on the real-time frame rate data to obtain a plurality of target time moving windows;
[0038] Performing window frame rate calculation on the real-time frame rate data through a plurality of target time moving windows to obtain a plurality of window frame rate data;
[0039] Calculating a moving average of the plurality of window frame rate data to obtain a moving average frame rate;
[0040] Extracting picture content from the three-dimensional scene model using the moving average frame rate to obtain a picture content set;
[0041] Performing picture rendering index analysis on the picture content set to obtain a rendering index data set;
[0042] The scene complexity of the three-dimensional scene model is calculated using the rendering index data set to obtain scene complexity data of each real-time picture frame.
[0043] In combination with the first aspect, in a fifth implementation of the first aspect of the present invention, the scene complexity data of each real-time picture frame is predicted for a picture smoothness curve to obtain a smoothness curve, and extreme point extraction is performed on the smoothness curve to obtain a plurality of curve extreme points, including:
[0044] By using a preset autoregressive integrated moving average calculation model, time series extraction is performed on the scene complexity data of each real-time picture frame to obtain a target time series;
[0045] Performing fluency calculation on the scene complexity data of each of the real-time picture frames through the target time sequence to obtain fluency data corresponding to each of the real-time picture frames;
[0046] Smoothing the fluency data corresponding to each real-time picture frame to obtain smoothed fluency data;
[0047] The picture fluency curve is predicted by using the smoothed fluency data to obtain the fluency curve, and extreme value points are extracted from the fluency curve to obtain a plurality of curve extreme value points.
[0048] In combination with the fifth implementation of the first aspect, in a sixth implementation of the first aspect of the present invention, the smoothed fluency data is used to predict a picture fluency curve to obtain the fluency curve, and extreme value points are extracted from the fluency curve to obtain a plurality of curve extreme value points, including:
[0049] Performing data feature segmentation on the smoothness and fluency data to obtain a segmentation feature set corresponding to the smoothness and fluency data;
[0050] Inputting the segmentation feature set into a preset picture fluency prediction model to perform fluency prediction to obtain a predicted fluency data set;
[0051] Constructing a picture fluency curve by using the predicted fluency data set to obtain the fluency curve;
[0052] The extreme points of the fluency curve are extracted by a peak detection algorithm to obtain a plurality of extreme points of the curve.
[0053] A second aspect of the present invention provides a real-time picture switching device based on software frame rate, the real-time picture switching device based on software frame rate comprising:
[0054] An extraction module is used to extract the posture data of the current three-dimensional display laser light source to obtain a posture data set, and at the same time, calculate the projection angle of the posture data set to obtain projection angle data;
[0055] A coding module is used to extract data coding features from the posture data set and the projection angle data to obtain fused coding features, match the fused coding features to a target coding algorithm, and perform fusion coding on the posture data set and the projection angle data through the target coding algorithm to generate coded fusion data;
[0056] A matching module is used to perform three-dimensional display scene modeling through the encoded fusion data to obtain a three-dimensional scene model, and at the same time, match a rendering engine of the three-dimensional scene model, and generate picture frames for the three-dimensional scene model through the rendering engine to obtain multiple real-time picture frames;
[0057] An analysis module, configured to perform real-time frame rate analysis on a plurality of real-time picture frames to obtain real-time frame rate data, perform moving average calculation on the real-time frame rate data to obtain a moving average frame rate, and perform scene complexity calculation on the three-dimensional scene model using the moving average frame rate to obtain scene complexity data for each real-time picture frame;
[0058] A prediction module, used for predicting a picture smoothness curve for the scene complexity data of each real-time picture frame to obtain a smoothness curve, and extracting extreme points of the smoothness curve to obtain a plurality of curve extreme points;
[0059] A calculation module is used to calculate the frame rate switching threshold through multiple extreme points of the curve to obtain the frame rate switching threshold, perform frame rate smoothing on the real-time frame rate data to obtain smoothed frame rate data, and at the same time, perform switching frame calibration on the smoothed frame rate data based on the frame rate switching threshold to obtain at least one target switching frame, and perform real-time screen switching control on the three-dimensional scene model through at least one of the target switching frames.
[0060] The third aspect of the present invention provides a real-time picture switching device based on software frame rate, comprising: a memory and at least one processor, wherein instructions are stored in the memory; the at least one processor calls the instructions in the memory so that the real-time picture switching device based on software frame rate executes the above-mentioned real-time picture switching method based on software frame rate.
[0061] A fourth aspect of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores instructions, which, when executed on a computer, enable the computer to execute the above-mentioned method for real-time screen switching based on software frame rate.
[0062] In the technical solution provided by the present invention, a moving average is calculated for the real-time frame rate data to obtain a moving average frame rate, a scene complexity is calculated for the three-dimensional scene model to obtain scene complexity data and a picture fluency curve is predicted to obtain a fluency curve, an extreme point is extracted for the fluency curve to obtain a plurality of curve extreme points; a frame rate switching threshold is calculated through a plurality of curve extreme points to obtain a frame rate switching threshold, a frame rate smoothing process is performed on the real-time frame rate data to obtain smoothed frame rate data, a switching frame calibration is performed on the smoothed frame rate data based on the frame rate switching threshold to obtain at least one target switching frame, and a real-time picture switching control is performed on the three-dimensional scene model through at least one target switching frame. In the present application scheme, by comprehensively analyzing the posture data, projection angle data, scene complexity data, etc., the system can more accurately judge the complexity and content of each frame, thereby formulating a suitable switching strategy. This helps to avoid confusion and discomfort to the audience when the picture changes greatly or complexly. By predicting the fluency curve, extracting the extreme points and calculating the frame rate switching threshold, the system can adjust the switching timing according to the fluency change trend to achieve smooth picture switching. This can reduce screen freezes and flickers, improving the audience's visual experience. Through real-time frame rate analysis and moving average calculation, the system can monitor the frame rate in real time and smooth it. Combined with the frame rate switching threshold calculation, the frame rate can be intelligently adjusted to make the screen switching more coherent and avoid screen freezes and instabilities. BRIEF DESCRIPTION OF THE DRAWINGS
[0063] Figure 1 A schematic diagram of an embodiment of a method for real-time switching of images based on software frame rate in an embodiment of the present invention;
[0064] Figure 2 This is a flow chart of calculating distance relationships between multiple groups of spatial data points in an embodiment of the present invention;
[0065] Figure 3 A flowchart of encoding algorithm matching based on target distance relationship in an embodiment of the present invention;
[0066] Figure 4 It is a flow chart of performing real-time frame rate analysis on multiple real-time picture frames in an embodiment of the present invention;
[0067] Figure 5 Schematic diagram of an embodiment of a device for real-time switching of images based on software frame rate in an embodiment of the present invention;
[0068] Figure 6 The figure is a schematic diagram of an embodiment of a real-time picture switching device based on software frame rate in an embodiment of the present invention. DETAILED DESCRIPTION
[0069] The embodiment of the present invention provides a method and a related device for real-time switching of pictures based on software frame rate, which are used to improve the accuracy of real-time switching of pictures based on software frame rate.
[0070] The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0071] For ease of understanding, the specific process of the embodiment of the present invention is described below. Figure 1 , an embodiment of the real-time screen switching method based on software frame rate in an embodiment of the present invention includes:
[0072] S101, extracting the posture data of the current three-dimensional display laser light source to obtain a posture data set, and at the same time, calculating the projection angle of the posture data set to obtain projection angle data;
[0073] It is understandable that the execution subject of the present invention may be a real-time screen switching device based on software frame rate, or a terminal or a server, which is not limited here. The embodiment of the present invention is described by taking a server as the execution subject as an example.
[0074] Specifically, for the extraction of pose data, it is necessary to use appropriate sensors (such as cameras or depth sensors) to capture images or point cloud data of the laser light source in the three-dimensional display area. These data will become the basis for further analysis. Through computer vision technology, the pose information of the laser light source, including its position and rotation angle in the virtual space, can be extracted from the captured image or point cloud data. This usually involves steps such as feature point detection, feature matching, and pose estimation. For example, consider a virtual demonstration center that displays a rotating planet model. In the image captured by the camera, the feature points are unique textures or geometric features on the planet model. Computer vision algorithms can detect and match these feature points in the image to obtain the position and pose of the planet model in the image. For the calculation of the projection angle, the principles of geometry and trigonometry need to be applied. Based on the pose data, the projection angle of the laser light source relative to the audience's perspective is calculated. This calculation involves mapping the coordinates of the laser light source into the coordinate system of the audience's perspective and taking into account its rotation angle to derive the projection angle of the laser light source from the audience's perspective. In this embodiment, it is assumed that the pose of the planet model has been calculated, and its position and rotation angle relative to the camera position are known. Now, the server calculates the projection angle of the planet model in the eyes of the audience. This requires projecting the three-dimensional coordinates of the planet model onto the viewer's viewing plane to obtain its coordinates on the two-dimensional plane. At the same time, the viewer's viewing angle needs to be considered to ensure the accuracy of the projection. Through trigonometric calculations, the server derives the projection angle of the planet model from the viewer's perspective.
[0075] S102, extracting data coding features from the pose data set and the projection angle data to obtain fused coding features, matching the fused coding features with the target coding algorithm, and performing fusion coding on the pose data set and the projection angle data through the target coding algorithm to generate coded fusion data;
[0076] Specifically, the recurrent neural network (RNN) technology in deep learning is used to extract the encoding features of the pose data set and the projection angle data. The pose data set and the projection angle data are respectively input into the preset first and second recurrent neural networks, and the first and second encoding features are obtained through the processing of the network layers. These two encoding features represent the abstract representation of the pose and projection angle data, mapping the original data into a higher-dimensional feature space. For example, consider a virtual exhibition center, in which a three-dimensional model of an aircraft is displayed. The pose data set may contain the coordinates and rotation information of the aircraft at different time points, while the projection angle data set is the projection angle of these coordinates and rotation information relative to the audience's perspective. These data can be input into the recurrent neural network, and after multiple iterations, the network can capture the abstract features in the pose data set and the projection angle data set, namely the first and second encoding features. Through the correlation analysis of the first and second encoding features, relevant data indicators can be obtained. These indicators reflect the relationship between the pose data and the projection angle data, and provide an important basis for subsequent feature fusion. By integrating these indicators, target feature fusion semantic information can be generated, which represents the comprehensive semantic expression of the pose and projection angle data. In this embodiment, if the posture data of the aircraft changes, the projection angle data will also change accordingly. The relevant data indicators can measure the degree of association between the two, such as the relationship between the rotation angle of the aircraft and its projection angle from the audience's perspective. By integrating semantic information, the first and second coding features are feature fused to obtain fused coding features. This step emphasizes the meaningful information extracted from the posture and projection angle data and merges them into a more comprehensive feature representation. The fused coding features are subjected to coding space screening. This involves mapping the fused coding features to a target coding space for further analysis. Through isometric mapping, the fused coding features can be mapped to multiple groups of spatial data points. These data points represent the feature vectors of different postures and projection angle data, and mapping them to the same coding space facilitates further processing. In this embodiment, the fused coding features contain the comprehensive features of the position, rotation information and projection angle data of the aircraft. Through coding space screening, these features are mapped to a target coding space for more detailed analysis. Continuing to calculate the distance relationship, the target distance relationship between multiple groups of spatial data points can be obtained. This reflects the similarity or difference between different feature vectors, and provides information for the next step of coding algorithm matching. Through the target encoding algorithm, the pose data set and the projection angle data are fused and encoded to generate encoded fusion data. This step utilizes the previous feature fusion and encoding space screening to determine how to best convert the original data into encoded data that can be used for subsequent analysis.
[0077] Among them, isometric mapping is required for the extracted spatial encoding features. The purpose is to map the spatial encoding features into a more analyzable space for subsequent distance relationship calculation. Isometric mapping is usually achieved through a mathematical transformation to transform the original feature space into a new coordinate space. Based on the features after isometric mapping, a distance matrix is constructed. The distance matrix records the distance between each pair of feature vectors and can be understood as a distance measure in the feature space. This matrix will become the basis for subsequent distance relationship calculation. K-times nearest neighbor analysis is performed through the distance matrix. K-times nearest neighbor analysis is a common data mining technique used to determine the K nearest neighbors of each feature vector. These nearest neighbors are the data points with the closest distance in the feature space. Based on the results of K-times nearest neighbor analysis, a target adjacency graph can be constructed. In this graph, each feature vector corresponds to a node in the graph, and the connection between the nodes represents the distance relationship between them. This adjacency graph will reflect the connection structure between the data points in the feature space. Next, the shortest path distance calculation is performed on the target adjacency graph. The shortest path algorithm is used to calculate the shortest path between nodes in the graph, that is, the shortest distance connecting two nodes. These shortest path distances will provide more information about the distance relationship between data points. Through the shortest path distance, the target distance relationship between multiple sets of spatial data points can be calculated. This relationship calculation can include various metrics, such as Euclidean distance, Manhattan distance, etc., depending on the needs of the problem. Through the target distance relationship, the encoding algorithm can be matched. This process involves comparing and matching the target distance relationship with the predefined encoding algorithm to find the encoding algorithm that best suits the data set. The basis for matching can be the similarity of the distance relationship or other correlation metrics. For example, consider a scene in a virtual reality game. In this scene, there are multiple virtual objects, and their positions and motion states are represented as spatial encoding features. These features are isometrically mapped to map them into a space that is easier to handle. A distance matrix is constructed based on the isometrically mapped features to calculate the distance between each object. Next, a K-times nearest neighbor analysis is performed to determine the nearest neighbors of each object. Based on this information, a target adjacency graph is constructed to show the connection relationship between objects. The shortest path distance between objects is calculated using the shortest path algorithm. By comparing these distance relationships, an encoding algorithm suitable for the scene is selected to optimize the performance and fluency of the virtual reality game.
[0078] Furthermore, the server has obtained the target distance relations between multiple sets of spatial data points. These distance relations reflect the similarities and differences between data points and are the basis for selecting encoding algorithms. The target distance relations are matched with the encoding algorithm set. The encoding algorithm set is a predefined set of encoding methods used to map high-dimensional data to low-dimensional space for subsequent processing and analysis. In this step, the server compares the target distance relations with each algorithm in the encoding algorithm set to find the most suitable match. The target distance relations are transformed into a low-dimensional space. The purpose is to project the target distance relations into a low-dimensional space to reduce the complexity of the data and the complexity of the calculation. The low-dimensional space transformation can use various dimensionality reduction techniques, such as principal component analysis (PCA). Through the low-dimensional space transformation, the server obtains the Euclidean distance set corresponding to the target distance relations. These Euclidean distances are calculated in the low-dimensional space and can better reflect the distance relations between data points. Through the Euclidean distance set, the cosine similarity is calculated for each encoding algorithm in the target encoding algorithm set. Cosine similarity is a commonly used similarity measurement method used to compare the direction and size differences between two vectors. By calculating the cosine similarity between each encoding algorithm and the Euclidean distance set, a similarity set can be obtained, which reflects the similarity between each algorithm and the data. Each encoding algorithm is screened by the similarity set. The server sets a threshold and selects only those encoding algorithms with high similarity to the target distance relationship. This ensures that the selected algorithm can better adapt to the characteristics of the data set, thereby achieving more accurate encoding and analysis. For example, suppose the server has a virtual screen switching scene, which contains multiple different transition effects, such as gradient, fly-in, and fade-out. The server calculates the target distance relationship between different transitions based on different transition effects. The server selects an encoding algorithm that is suitable for multiple transition effects, and finds the best matching algorithm by calculating its similarity with different target distance relationships. In this way, in practical applications, no matter how the screen switching method changes, consistent fluency and coherence can be maintained.
[0079] S103, performing three-dimensional display scene modeling by encoding the fused data to obtain a three-dimensional scene model, and at the same time, matching a rendering engine of the three-dimensional scene model, and generating picture frames for the three-dimensional scene model by the rendering engine to obtain multiple real-time picture frames;
[0080] Specifically, the coded fusion data will be used as input, including the pose data set, projection angle data, and the coded data obtained by feature extraction and fusion. These data will become the basis for building a 3D scene model. In the 3D scene modeling stage, the server will use these data to reconstruct the entire virtual environment, including information such as the position, rotation, and projection angle of objects. This process can be achieved through computer vision and graphics technology, such as multi-view reconstruction algorithms, 3D point cloud registration, etc. Next, the server matches the appropriate rendering engine to convert the 3D scene model into actual picture frames. The rendering engine is a key tool that can simulate lighting, materials, shadows, etc. based on the input scene information to generate realistic pictures. Different rendering engines have different characteristics and performances, and the appropriate engine can be selected according to needs. Through the rendering engine, the server generates picture frames for the 3D scene model. This process includes converting information such as objects, lighting, materials, etc. in the 3D scene model into 2D pictures. Each picture frame represents a virtual scene at a specific moment, such as the action of a character, the position of an object, etc. Due to the need for real-time switching, these picture frames need to be generated in a very short time to ensure the smoothness and coherence of the picture switching. For example, consider a virtual art installation that contains multiple abstract geometric shapes. By encoding the fusion data, the server determines the pose of each shape, that is, their position and orientation in the virtual space. The projection angle data can determine how the shape is projected when the audience observes from different angles. By selecting the appropriate rendering engine, the server converts these geometric shapes into picture frames, presenting a series of amazing virtual art scenes. As the audience moves through the exhibition, the real-time switching method will ensure the smoothness and coherence of the picture, bringing them a unique art experience.
[0081] S104, performing real-time frame rate analysis on multiple real-time picture frames to obtain real-time frame rate data, performing moving average calculation on the real-time frame rate data to obtain a moving average frame rate, and performing scene complexity calculation on the three-dimensional scene model by using the moving average frame rate to obtain scene complexity data of each real-time picture frame;
[0082] Specifically, the server performs real-time frame rate analysis on multiple real-time picture frames to obtain the actual frame rate data of each frame. This can be achieved by recording the time interval between consecutive frames. Through the real-time frame rate data, the server understands the frame rate of each frame in a specific time period, providing a basis for subsequent complexity analysis. In order to smoothly evaluate the real-time frame rate data, the server adopts the moving average calculation method. By applying a resizable moving window on the time axis, the server calculates the average value of the real-time frame rate in each window. This will help eliminate instantaneous frame rate fluctuations and provide more stable data. Through the moving average frame rate, the server calculates the scene complexity of the three-dimensional scene model. The definition of complexity can include factors such as the number of objects in the picture, texture details, and light and shadow effects. These factors will be used to evaluate the complexity of each real-time picture frame, thereby providing quantitative indicators for subsequent switching decisions. The server extracts picture content from multiple real-time picture frames. This involves extracting key picture content from each picture, such as the position, texture, color, etc. of the object. These picture contents will be used as features for subsequent rendering index analysis. In the picture rendering index analysis phase, the server will use the picture content set to calculate the rendering index data of each real-time picture frame. These indicators include information such as the rendering time of objects, lighting effects, and shadows. Through these indicators, the server has a more comprehensive understanding of the rendering complexity of each real-time screen frame. Through the rendering indicator data set, the server again calculates the scene complexity of each real-time screen frame. This complexity combines factors such as the number of objects, textures, and lighting effects, providing a more comprehensive measure for screen switching. Based on these complexity data, the server more intelligently decides when to switch screens to ensure the smoothness and consistency of the switching process. For example, suppose the server has a scene in a virtual space, which includes multiple geometric figures. Through real-time frame rate analysis, the server records the frame rate of each figure in different time periods. Through moving average calculation, the server smoothly obtains the average frame rate of each figure. Then, the server extracts key screen content from each screen, such as the position and shape of the figure. By calculating the rendering indicators, the server obtains the rendering complexity of each figure. By integrating the complexity data, the server decides when to switch different graphics to achieve smooth and ornamental screen switching.
[0083] S105, predicting a picture smoothness curve for scene complexity data of each real-time picture frame to obtain a smoothness curve, extracting extreme value points of the smoothness curve to obtain a plurality of curve extreme value points;
[0084] Specifically, it is necessary to extract the scene complexity data of each real-time picture frame, which can reflect the content and degree of change of each frame. By forming these data into a time series, the change of scene complexity of each real-time picture frame over time can be constructed. The constructed time series data can be used to calculate the fluency. This calculation process can evaluate the fluency of the picture according to the complexity change in the time series. For example, when the scene complexity of several consecutive frames changes little, the picture fluency is high; conversely, when the complexity changes drastically, the fluency is low. In order to obtain a smoother fluency curve, the fluency data corresponding to each real-time picture frame can be smoothed. This process can use various smoothing filtering algorithms, such as moving average, exponential smoothing, etc., to reduce noise and fluctuations, so as to obtain more stable fluency data. Based on the smoothed fluency data, the fluency curve can be predicted. By analyzing the trend and change of the fluency data, the fluency trend in the future can be predicted. This prediction can help the system choose a more appropriate time when switching pictures to achieve a smoother transition effect. The purpose of extracting extreme points in the fluency curve is to determine the peaks and valleys of fluency, so as to make more accurate decisions in actual switching. For example, when the fluency curve reaches a peak, it is a suitable time to switch, and when the fluency curve reaches a valley, switching needs to be avoided to maintain the user's viewing experience. For example, suppose the server has a time series that represents the scene complexity changes of each real-time picture frame. By calculating the fluency and smoothing it, the server obtains a fluency curve. In this curve, there are several extreme points, corresponding to the peaks and valleys of fluency. The system can decide when to switch the screen based on these extreme points, thereby implementing a more intelligent switching strategy under different fluency states and improving the user's viewing experience.
[0085] Among them, the smoothed fluency data is segmented by data features. The fluency data is segmented into a series of sub-intervals, each of which has its own specific data features. These data features may include average values, variances, trends, etc. Such segmentation helps to better understand the changing patterns of fluency data in different time periods. The segmented feature set is input into a preset picture fluency prediction model for fluency prediction. This prediction model may be a machine learning algorithm, such as a regression model, a neural network, etc., or other prediction methods. By training the model, future fluency changes can be predicted based on past fluency data and corresponding features. By predicting the fluency data set, a fluency curve can be constructed. On the curve, the horizontal axis represents time and the vertical axis represents the fluency value. By connecting the predicted fluency data points, a curve reflecting the future fluency change trend can be obtained. In order to further analyze the fluency curve, a peak detection algorithm can be used to extract extreme points in the curve. The peak detection algorithm can identify the local highest and lowest points in the curve, that is, the maximum and minimum values. These extreme points correspond to the peaks and valleys of fluency, representing the appropriate time for picture switching. For example, suppose the server has a set of smoothed fluency data, which indicates the changes in the picture fluency in different time periods. The server divides this data into multiple sub-intervals and inputs them into the trained picture fluency prediction model. Through the model, the server predicts the future trend of fluency. The server connects the predicted fluency data to form a fluency curve. The server uses the peak detection algorithm to extract multiple extreme points from the curve. These points correspond to the peaks and valleys of future fluency, helping the server to more accurately determine the timing of picture switching to improve the user's viewing experience.
[0086] S106. Calculate the frame rate switching threshold through multiple curve extreme points to obtain the frame rate switching threshold, perform frame rate smoothing on the real-time frame rate data to obtain smoothed frame rate data, and at the same time, perform switching frame calibration on the smoothed frame rate data based on the frame rate switching threshold to obtain at least one target switching frame, and perform real-time screen switching control on the three-dimensional scene model through the at least one target switching frame.
[0087] Specifically, the frame rate switching threshold is calculated through multiple curve extreme points. In the previous step, the server extracts multiple extreme points from the fluency curve, and these extreme points represent the fluctuation of fluency. The server calculates the frame rate switching threshold based on the characteristics of these extreme points. This threshold can be regarded as an indicator to measure the change of fluency. When the fluctuation of fluency exceeds the threshold, it means that the time for screen switching has come. Then, the real-time frame rate data is smoothed to obtain smoothed frame rate data. The real-time frame rate data will fluctuate due to various factors. In order to reduce the impact of these fluctuations, the real-time frame rate data can be smoothed by moving average and other methods. The smoothed data can better reflect the actual frame rate change trend. At the same time, the smoothed frame rate data is calibrated for switching frames based on the frame rate switching threshold. By comparing the smoothed frame rate data with the frame rate switching threshold, it can be determined when the screen should be switched. When the frame rate data exceeds the threshold, it means that the screen changes more drastically, and the current frame can be calibrated as a switching frame. The three-dimensional scene model is controlled to switch the screen in real time through at least one target switching frame. When the calibrated switching frames reach a certain number, real-time screen switching can be triggered. The switching frame is used as a switching point to switch to a suitable screen at different frame rates, thereby ensuring smoothness and viewing experience. This switching can be based on a preset switching algorithm and dynamically adjusted according to actual conditions, thereby achieving more intelligent and adaptive screen switching. For example, assume that the server extracts multiple extreme points based on the smoothness curve, and calculates the frame rate switching threshold through these extreme points. At the same time, the server collects real-time frame rate data and smoothes it to obtain smoothed frame rate data. By comparing the smoothed frame rate data with the threshold, the server determines which frames are switching frames. When the switching frames reach a certain number, the server triggers real-time screen switching, uses the switching frame as a switching point, and switches to the appropriate screen according to the frame rate requirements. In this way, the server intelligently controls the switching of the screen according to the change in smoothness to provide a better viewing experience.
[0088] In an embodiment of the present invention, a moving average is calculated for real-time frame rate data to obtain a moving average frame rate, a scene complexity is calculated for a three-dimensional scene model to obtain scene complexity data and a picture fluency curve is predicted to obtain a fluency curve, an extreme point is extracted for the fluency curve to obtain multiple curve extreme points; a frame rate switching threshold is calculated through multiple curve extreme points to obtain a frame rate switching threshold, a frame rate smoothing process is performed on the real-time frame rate data to obtain smoothed frame rate data, a switching frame calibration is performed on the smoothed frame rate data based on the frame rate switching threshold to obtain at least one target switching frame, and a real-time picture switching control is performed on the three-dimensional scene model through at least one target switching frame. In the present application scheme, by comprehensively analyzing the posture data, projection angle data, scene complexity data, etc., the system can more accurately judge the complexity and content of each frame, thereby formulating a suitable switching strategy. This helps to avoid confusion and discomfort to the audience when the picture changes greatly or complexly. By predicting the fluency curve, extracting extreme points and calculating the frame rate switching threshold, the system can adjust the switching timing according to the fluency change trend to achieve smooth picture switching. This can reduce screen freezes and flickers, improving the audience's visual experience. Through real-time frame rate analysis and moving average calculation, the system can monitor the frame rate in real time and smooth it. Combined with the frame rate switching threshold calculation, the frame rate can be intelligently adjusted to make the screen switching more coherent and avoid screen freezes and instabilities.
[0089] In a specific embodiment, the process of executing step S102 may specifically include the following steps:
[0090] (1) Inputting the pose data set into a preset first recurrent neural network to extract data encoding features to obtain a first encoding feature;
[0091] (2) Inputting the projection angle data set into a preset second recurrent neural network to extract data encoding features to obtain a second encoding feature;
[0092] (3) Perform feature correlation analysis on the first coding feature and the second coding feature to obtain relevant data indicators;
[0093] (4) Generate feature fusion semantic representation through relevant data indicators to obtain target feature fusion semantic information;
[0094] (5) Fusing the first coding feature and the second coding feature by fusing the semantic information of the target feature to obtain a fused coding feature;
[0095] (6) Screening the fused coding features in the coding space to obtain the target coding space, and mapping the fused coding features to the target coding space to obtain the spatial coding features;
[0096] (7) Performing isometric mapping on the spatial coding features to obtain multiple groups of spatial data points, and calculating the distance relationship between the multiple groups of spatial data points to obtain the target distance relationship between the multiple groups of spatial data points, and matching the coding algorithm through the target distance relationship to obtain the target coding algorithm;
[0097] (8) The pose data set and the projection angle data are fused and encoded through the target encoding algorithm to generate encoded fusion data.
[0098] Specifically, the pose data set is input into the preset first recurrent neural network for data encoding feature extraction to obtain the first encoding feature. Recurrent neural network (RNN) is a neural network structure suitable for sequence data, which can extract important information about the data sequence from the input data. The pose data set is input into the preset first RNN, and the network will encode each data point to obtain the first encoding feature. Then, the projection angle data set is input into the preset second recurrent neural network for data encoding feature extraction to obtain the second encoding feature. Similarly, the projection angle data is also input into the preset second RNN, and the network will encode each data point to obtain the second encoding feature. Subsequently, the first encoding feature and the second encoding feature are subjected to feature correlation analysis to obtain relevant data indicators. The purpose is to explore the degree of correlation between the two sets of encoding features, so as to determine whether they can be fused to extract higher-level features. Feature fusion semantic representation is generated through relevant data indicators to obtain target feature fusion semantic information. Feature fusion can be achieved in different ways, such as linear combination, weighted average, etc. At this stage, the results of the correlation analysis will guide the feature fusion method to generate target feature fusion semantic information. The first coding feature and the second coding feature are fused by the target feature fusion semantic information to obtain a fused coding feature. The application of the target feature fusion semantic information fuses the two sets of features into a more representative code, which helps to better capture the relationship between the pose data and the projection angle data. The fused coding feature is filtered in the coding space to obtain the target coding space, and the fused coding feature is mapped to the target coding space to obtain the spatial coding feature. The coding space filtering can be regarded as projecting the fused coding feature into a more meaningful space, thereby further improving its expression ability. The spatial coding feature is isometrically mapped to obtain multiple groups of spatial data points, and the distance relationship of the multiple groups of spatial data points is calculated to obtain the target distance relationship between the multiple groups of spatial data points. The isometric mapping can map the coding feature to a unified metric space, which is convenient for distance calculation. The coding algorithm is matched by the target distance relationship to obtain the target coding algorithm. After obtaining the target distance relationship, the server selects a suitable coding algorithm according to the distance relationship to fuse the pose data set and the projection angle data set to generate coded fusion data. For example, suppose that the server has a three-dimensional scene, which includes the pose information of multiple objects and their projection angle data. By inputting the pose data set into the first recurrent neural network, the server obtains a series of first coded features. At the same time, by inputting the projection angle data set into the second recurrent neural network, the server obtains a series of second coded features. The server performs feature correlation analysis on the two sets of features to obtain relevant data indicators. Based on the indicators, the server generates target feature fusion semantic information and applies it to the two sets of coded features to obtain fused coded features.Next, the server projects the fused coding features into the target coding space and performs isometric mapping to obtain multiple sets of spatial data points. By calculating the distance relationship between these spatial data points, the server obtains the target distance relationship and selects a suitable coding algorithm based on these relationships. The server uses the selected coding algorithm to fuse the pose data set and the projection angle data set to generate coded fusion data.
[0099] In a specific embodiment, if Figure 2 As shown, performing isometric mapping of the spatial coding features to obtain multiple groups of spatial data points, and calculating the distance relationship between the multiple groups of spatial data points to obtain the target distance relationship between the multiple groups of spatial data points, and matching the coding algorithm through the target distance relationship to obtain the target coding algorithm step can specifically include the following steps:
[0100] S201, constructing a distance matrix for the spatial coding features to obtain a target distance matrix;
[0101] S202, performing isometric mapping on the spatial coding features through a target distance matrix to obtain multiple groups of spatial data points;
[0102] S203, performing K nearest neighbor analysis on multiple groups of spatial data points to obtain multiple pairs of adjacent data points;
[0103] S204, constructing an adjacency graph by using multiple pairs of adjacent data points to obtain a target adjacency graph;
[0104] S205, calculating the shortest path distance of the target adjacency graph to obtain the shortest path distance of the target adjacency graph;
[0105] S206, calculating the distance relationship between the multiple groups of spatial data points by using the shortest path distance to obtain the target distance relationship between the multiple groups of spatial data points;
[0106] S207, matching the encoding algorithm through the target distance relationship to obtain the target encoding algorithm.
[0107] It should be noted that the distance matrix is constructed for the spatial coding features to obtain the target distance matrix. The distance matrix reflects the distance relationship between different spatial data points. It is a symmetric matrix in which each element represents the distance between two data points. By calculating the distance between the spatial coding features, a distance matrix can be obtained, in which the elements represent the distance between different data points. The spatial coding features are isometrically mapped through the target distance matrix to obtain multiple groups of spatial data points. Isometric mapping is to map the distance information in the distance matrix to a unified metric space for subsequent analysis and processing. This step can convert the distance information between different data points into a more consistent and comparable form. K-times nearest neighbor analysis is performed on multiple groups of spatial data points to obtain multiple pairs of adjacent data points. K-times nearest neighbor analysis is a common distance analysis method used to find the K nearest neighbor data points of each data point. This helps to determine the neighbor relationship of data points in space, thereby capturing the local structural information between data. The target adjacency graph is obtained by constructing an adjacency graph through multiple pairs of adjacent data points. An adjacency graph is a graph structure in which nodes represent data points and edges represent the relationship between nodes. In this step, the relationship between adjacent data points is converted into edges in the graph, thus forming an adjacency graph, which can help the server better understand the connectivity between data. The shortest path distance is calculated for the target adjacency graph to obtain the shortest path distance of the target adjacency graph. The shortest path distance refers to the distance of the shortest path from one node to another node in the graph, which can be used to measure the global similarity and connectivity between data points. The distance relationship of multiple groups of spatial data points is calculated by the shortest path distance to obtain the target distance relationship between multiple groups of spatial data points. This step integrates the local K-times nearest neighbor analysis and the global shortest path distance information, providing a more comprehensive and accurate distance relationship for subsequent encoding algorithm matching. The encoding algorithm is matched by the target distance relationship to obtain the target encoding algorithm. After obtaining the target distance relationship, the server selects a suitable encoding algorithm according to the distance relationship to fuse the pose data set and the projection angle data set to generate encoded fusion data. For example, suppose the server has a data set in a high-dimensional space, in which each data point represents an abstract object. By calculating the distance between the spatial encoding features, the server obtains a distance matrix that describes the similarity between each object. The server performs isometric mapping on the distance matrix and maps the distance information into a unified metric space. Next, the server uses the K-nearest neighbor analysis method to find the nearest neighbor of each object and form an adjacency graph. By calculating the shortest path distance between nodes in the adjacency graph, the server obtains the global similarity between objects. Based on these distance relationships, the server selects a suitable encoding algorithm to fuse the pose data set and the projection angle data set to generate encoded fusion data.
[0108] In a specific embodiment, if Figure 3 As shown, the process of executing step S207 may specifically include the following steps:
[0109] S301, matching the target distance relationship with a coding algorithm set to obtain a target coding algorithm set;
[0110] S302, performing low-dimensional space conversion on the target distance relationship to obtain a Euclidean distance set corresponding to the target distance relationship;
[0111] S303, performing cosine similarity calculation on each coding algorithm in the target coding algorithm set through the Euclidean distance set to obtain a similarity set;
[0112] S304 , screening each encoding algorithm through a similarity set to obtain a target encoding algorithm.
[0113] It should be noted that the target distance relationship is matched with the encoding algorithm set to obtain the target encoding algorithm set. The encoding algorithm set is a set of different encoding methods used to map high-dimensional data to low-dimensional space for further analysis and processing. According to the distance relationship, a suitable encoding algorithm is selected to form a target encoding algorithm set. The target distance relationship is converted to a low-dimensional space to obtain a Euclidean distance set corresponding to the target distance relationship. Low-dimensional space conversion is to map the high-dimensional distance relationship to a low-dimensional space in order to better measure the similarity between data. Through this conversion, the server obtains a Euclidean distance set, in which the distance can more accurately represent the relationship between data. Through the Euclidean distance set, the cosine similarity is calculated for each encoding algorithm in the target encoding algorithm set to obtain a similarity set. Cosine similarity is a commonly used similarity measurement method used to measure the degree of similarity between vectors. By converting the Euclidean distance set into a vector form and then calculating the cosine similarity, the similarity between each encoding algorithm and the distance relationship can be obtained. Through the similarity set, each encoding algorithm is screened to obtain the target encoding algorithm. The similarity value in the similarity set reflects the degree of match between each encoding algorithm and the distance relationship. According to the similarity value, the server selects the encoding algorithm with higher similarity as the target encoding algorithm for the subsequent fusion encoding process. For example, consider a data set containing multiple high-dimensional data points representing different types of images. According to the distance relationship between the data points, the server selects a set of encoding algorithms, including principal component analysis (PCA), independent component analysis (ICA), and autoencoder. The server transforms the distance relationship into a low-dimensional space and obtains a Euclidean distance set, in which the distance represents the similarity between the data points. Then, the Euclidean distance set is converted into a vector form, and the cosine similarity between each encoding algorithm and the distance relationship is calculated. Assume that the server obtains a similarity set, in which PCA has the highest similarity, followed by ICA, and the autoencoder has the lowest similarity. According to the similarity value, the server selects PCA as the target encoding algorithm for fusion encoding of the pose data set and the projection angle data set to generate encoded fusion data. In this way, the server achieves the goal of fusion encoding by matching the distance relationship and the encoding algorithm.
[0114] In a specific embodiment, if Figure 4 As shown, the process of executing step S104 may specifically include the following steps:
[0115] S401, calculating the time interval of a plurality of real-time picture frames to obtain a plurality of time interval data;
[0116] S402, performing real-time frame rate analysis on multiple real-time picture frames according to multiple time interval data to obtain real-time frame rate data;
[0117] S403, performing time moving window calculation on the real-time frame rate data to obtain multiple target time moving windows;
[0118] S404, performing window frame rate calculation on the real-time frame rate data through multiple target time moving windows to obtain multiple window frame rate data;
[0119] S405, calculating a moving average of the frame rate data of the multiple windows to obtain a moving average frame rate;
[0120] S406, extracting picture content from the three-dimensional scene model by using a moving average frame rate to obtain a picture content set;
[0121] S407, analyzing the picture rendering index of the picture content set to obtain a rendering index data set;
[0122] S408. Calculate the scene complexity of the three-dimensional scene model using the rendering index data set to obtain scene complexity data of each real-time picture frame.
[0123] It should be noted that the picture time interval calculation is performed on multiple real-time picture frames to obtain multiple time interval data. The time interval refers to the time difference between two adjacent frames, which can be used to calculate the frame rate and smoothness of the real-time picture frame. By recording the timestamp of each real-time picture frame, the server calculates multiple time interval data. The real-time frame rate analysis is performed on multiple real-time picture frames through the multiple time interval data to obtain real-time frame rate data. The real-time frame rate refers to the number of frames displayed within a certain period of time, which can reflect the smoothness of the picture. By converting the time interval data into frame rate data, the server obtains the real-time frame rate of each real-time picture frame. The real-time frame rate data is calculated by time moving window to obtain multiple target time moving windows. The time moving window is a sliding window used to calculate the average frame rate within a period of time in the real-time frame rate data sequence. By setting the window size and sliding step size, the server obtains multiple target time moving windows. The window frame rate calculation is performed on the real-time frame rate data through multiple target time moving windows to obtain multiple window frame rate data. The window frame rate refers to the average frame rate within a time window, which can more stably reflect the quality of the picture. By averaging the real-time frame rate data in different time windows, the server obtains multiple window frame rate data. A moving average is calculated for multiple window frame rate data to obtain a moving average frame rate. The moving average frame rate is a frame rate value obtained by performing a moving average calculation on the window frame rate data, which can smoothly reflect the overall quality of the real-time picture frame. The picture content of the three-dimensional scene model is extracted by the moving average frame rate to obtain a picture content set. The moving average frame rate is an indicator of the quality of the real-time picture frame. By matching the moving average frame rate with each real-time picture frame, the server extracts different picture contents according to the change of the frame rate. The picture rendering index of the picture content set is analyzed to obtain a rendering index data set. The picture rendering index is a parameter used to measure the picture quality, including pixel density, color saturation, contrast, etc. By analyzing the rendering index of the picture content set, the server obtains a set of rendering index data. The scene complexity of the three-dimensional scene model is calculated by the rendering index data set to obtain the scene complexity data of each real-time picture frame. Scene complexity refers to the number and degree of change of elements in the picture. By calculating the parameters in the rendering index data set, the server obtains the scene complexity information of each real-time picture frame. For example, consider a three-dimensional scene in a virtual reality application, which contains multiple real-time picture frames. The server first records the timestamp of each frame, calculates the time interval data, and then calculates the real-time frame rate data based on the time interval data. Next, a sliding window is used to calculate the window frame rate in different time periods, and then the moving average frame rate is calculated based on the window frame rate. The server matches the moving average frame rate with each frame and extracts the screen content based on the change in frame rate. The rendering indicators of the screen content are analyzed to obtain a set of rendering indicator data sets.The scene complexity of each frame is calculated through the rendering index data set to obtain the scene complexity data of the real-time frame.
[0124] In a specific embodiment, the process of executing step S105 may specifically include the following steps:
[0125] (1) Using a preset autoregressive integrated moving average calculation model, the scene complexity data of each real-time frame is extracted in time series to obtain the target time series;
[0126] (2) Calculate the fluency of the scene complexity data of each real-time picture frame through the target time series to obtain the fluency data corresponding to each real-time picture frame;
[0127] (3) Smoothing the fluency data corresponding to each real-time picture frame to obtain smoothed fluency data;
[0128] (4) The smoothness curve of the picture is predicted by smoothing the smoothness data to obtain the smoothness curve, and the extreme points of the smoothness curve are extracted to obtain multiple curve extreme points.
[0129] Specifically, the scene complexity data of each real-time picture frame is extracted in time series by using a preset autoregressive integrated moving average calculation model to obtain a target time series. The autoregressive integrated moving average model is a statistical method for processing time series data. By analyzing the autocorrelation, trend and periodicity of the data, the target time series can be extracted. The scene complexity data of each real-time picture frame is calculated for fluency by using the target time series to obtain the fluency data corresponding to each real-time picture frame. On the basis of the time series data, the fluency of the real-time picture frame can be estimated by calculating the rate of change and trend of the data. The fluency data corresponding to each real-time picture frame is smoothed to obtain smoothed fluency data. The smoothing process can use a sliding average or other method to smooth the noise and mutation in the fluency data to obtain more stable fluency information. The picture fluency curve is predicted by using the smoothed fluency data to obtain a fluency curve. Using the smoothed fluency data, a prediction model, such as a regression model or a time series analysis model, can be established to predict the fluency trend in the future. In addition, the extreme point extraction of the fluency curve is performed to obtain multiple curve extreme points. The extreme point is a local maximum or minimum value in the curve, which can represent a significant change point in the picture fluency. Through mathematical methods, such as derivation or threshold determination, the extreme point in the fluency curve can be extracted. For example, considering a real-time picture frame sequence in a virtual scene, the server uses a preset autoregressive integrated moving average calculation model to extract the scene complexity data of each picture frame in a time series to obtain a target time series. By analyzing the target time series, the server calculates the fluency data corresponding to each picture frame. Then, the fluency data is smoothed to reduce the impact of noise. Based on the smoothed data, the server establishes a prediction model, such as a regression model, to predict the fluency trend in the future. At the same time, the server can also analyze the fluency curve and extract the extreme points in the curve, which represent the time points when the picture fluency changes significantly. In this way, the server can identify the key moments of fluency change while predicting the picture fluency, so as to better control the real-time picture switching.
[0130] In a specific embodiment, the process of performing the step of predicting the picture fluency curve by smoothing the fluency data to obtain the fluency curve, extracting the extreme points of the fluency curve, and obtaining a plurality of curve extreme points may specifically include the following steps:
[0131] (1) Perform data feature segmentation on the smoothness and fluency data to obtain a segmentation feature set corresponding to the smoothness and fluency data;
[0132] (2) Inputting the segmentation feature set into a preset picture fluency prediction model to perform fluency prediction and obtain a predicted fluency data set;
[0133] (3) Constructing a picture fluency curve by predicting the fluency data set to obtain a fluency curve;
[0134] (4) The extreme points of the fluency curve are extracted through the peak detection algorithm to obtain multiple extreme points of the curve.
[0135] Specifically, the smooth fluency data is segmented with data features to obtain a segmentation feature set corresponding to the smooth fluency data. Data feature segmentation can divide the smooth fluency data according to a certain rule, and segment the continuous fluency data into different feature segments, each of which has certain feature attributes. The segmentation feature set is input into a preset picture fluency prediction model for fluency prediction to obtain a predicted fluency data set. The picture fluency prediction model can be a regression model, a time series model, etc., which uses the feature information in the segmentation feature set to predict the fluency data in the future. The picture fluency curve is constructed by predicting the fluency data set to obtain a fluency curve. Using the predicted fluency data, a picture fluency curve can be constructed in chronological order to reflect the changing trend of the picture fluency. In addition, the extreme value points of the fluency curve are extracted by a peak detection algorithm to obtain multiple curve extreme value points. The peak detection algorithm can identify the maximum and minimum values in the fluency curve, that is, the significant change points of the fluency. These extreme value points can help determine the peaks and troughs of the picture fluency curve, thereby guiding the decision of real-time picture switching. For example, consider a smooth fluency data set in a virtual scene. The server segments the data according to certain rules to obtain a segmentation feature set. By inputting the segmentation feature set into the preset picture fluency prediction model, a predicted fluency data set can be obtained, which contains the fluency prediction values for a period of time in the future. Using these predicted values, the server constructs a picture fluency curve to depict the changing trend of fluency. By applying the peak detection algorithm, the server extracts multiple extreme points from the fluency curve, which represent the time points when the fluency changes significantly. In this way, the server predicts the changes in picture fluency and identifies the key moments of fluency changes in order to control real-time picture switching.
[0136] The above describes the real-time image switching method based on software frame rate in the embodiment of the present invention. The following describes the real-time image switching device based on software frame rate in the embodiment of the present invention. Figure 5 In one embodiment of the present invention, a real-time image switching device based on software frame rate includes:
[0137] The extraction module 501 is used to extract the posture data of the current three-dimensional display laser light source to obtain a posture data set, and at the same time, calculate the projection angle of the posture data set to obtain projection angle data;
[0138] The encoding module 502 is used to extract data encoding features from the posture data set and the projection angle data to obtain fused encoding features, match the fused encoding features to the target encoding algorithm, and perform fusion encoding on the posture data set and the projection angle data through the target encoding algorithm to generate encoded fusion data;
[0139] A matching module 503 is used to perform three-dimensional display scene modeling through the encoded fusion data to obtain a three-dimensional scene model, and at the same time, match a rendering engine of the three-dimensional scene model, and generate picture frames for the three-dimensional scene model through the rendering engine to obtain multiple real-time picture frames;
[0140] The analysis module 504 is used to perform real-time frame rate analysis on the multiple real-time picture frames to obtain real-time frame rate data, perform moving average calculation on the real-time frame rate data to obtain moving average frame rate, and perform scene complexity calculation on the three-dimensional scene model according to the moving average frame rate to obtain scene complexity data of each real-time picture frame;
[0141] The prediction module 505 is used to predict the picture smoothness curve for the scene complexity data of each real-time picture frame to obtain a smoothness curve, and extract extreme points from the smoothness curve to obtain multiple curve extreme points;
[0142] The calculation module 506 is used to calculate the frame rate switching threshold through multiple extreme points of the curve to obtain the frame rate switching threshold, perform frame rate smoothing on the real-time frame rate data to obtain smoothed frame rate data, and at the same time, perform switching frame calibration on the smoothed frame rate data based on the frame rate switching threshold to obtain at least one target switching frame, and perform real-time screen switching control on the three-dimensional scene model through at least one of the target switching frames.
[0143] Through the cooperation of the above-mentioned components, the moving average value of the real-time frame rate data is calculated to obtain the moving average frame rate, the scene complexity of the three-dimensional scene model is calculated to obtain the scene complexity data and the picture fluency curve is predicted to obtain the fluency curve, the extreme point of the fluency curve is extracted to obtain multiple curve extreme points; the frame rate switching threshold is calculated through multiple curve extreme points to obtain the frame rate switching threshold, the real-time frame rate data is subjected to frame rate smoothing processing to obtain smooth frame rate data, the smooth frame rate data is calibrated for switching frames based on the frame rate switching threshold to obtain at least one target switching frame, and the three-dimensional scene model is controlled for real-time picture switching through at least one target switching frame. In the present application scheme, by comprehensively analyzing the posture data, projection angle data, scene complexity data, etc., the system can more accurately judge the complexity and content of each frame, so as to formulate a suitable switching strategy. This helps to avoid confusion and discomfort to the audience when the picture changes greatly or complexly. By predicting the fluency curve, extracting the extreme points and calculating the frame rate switching threshold, the system can adjust the switching timing according to the fluency change trend to achieve smooth picture switching. This can reduce screen freezes and flickers, improving the audience's visual experience. Through real-time frame rate analysis and moving average calculation, the system can monitor the frame rate in real time and smooth it. Combined with the frame rate switching threshold calculation, the frame rate can be intelligently adjusted to make the screen switching more coherent and avoid screen freezes and instabilities.
[0144] above Figure 5 The real-time picture switching device based on software frame rate in the embodiment of the present invention is described in detail from the perspective of modular functional entities. The real-time picture switching device based on software frame rate in the embodiment of the present invention is described in detail from the perspective of hardware processing.
[0145] Figure 66 is a structural diagram of a real-time screen switching device based on software frame rate provided by an embodiment of the present invention. The real-time screen switching device 600 based on software frame rate may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 610 (for example, one or more processors) and a memory 620, and one or more storage media 630 (for example, one or more mass storage devices) storing application programs 633 or data 632. Among them, the memory 620 and the storage medium 630 can be short-term storage or permanent storage. The program stored in the storage medium 630 may include one or more modules (not shown in the figure), and each module may include a series of instruction operations in the real-time screen switching device 600 based on software frame rate. Furthermore, the processor 610 can be configured to communicate with the storage medium 630 to execute a series of instruction operations in the storage medium 630 on the real-time screen switching device 600 based on software frame rate.
[0146] The real-time switching device 600 based on software frame rate may also include one or more power supplies 640, one or more wired or wireless network interfaces 650, one or more input and output interfaces 660, and / or one or more operating systems 631, such as Windows Server, Mac OS X, Unix, Linux, FreeBSD, etc. It can be understood by those skilled in the art that Figure 6 The illustrated structure of the real-time picture switching device based on software frame rate does not constitute a limitation on the real-time picture switching device based on software frame rate, and may include more or fewer components than illustrated, or a combination of certain components, or a different arrangement of components.
[0147] The present invention also provides a real-time picture switching device based on software frame rate, and the real-time picture switching device based on software frame rate includes a memory and a processor, and the memory stores computer-readable instructions. When the computer-readable instructions are executed by the processor, the processor executes the steps of the real-time picture switching method based on software frame rate in the above-mentioned embodiments.
[0148] The present invention also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the real-time screen switching method based on software frame rate.
[0149] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0150] If the integrated unit is implemented in the form of a software functional unit and sold or passed as an independent product, it can be stored in a computer-readable storage medium. Based on the understanding, the technical solution of the present invention is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.
[0151] As described above, the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A real-time screen switching method based on software frame rate, characterized in that: The real-time picture switching method based on software frame rate includes: Extracting the posture data of the current three-dimensional display laser light source to obtain a posture data set, and calculating the projection angle of the posture data set to obtain projection angle data; Extracting data coding features from the posture data set and the projection angle data to obtain fused coding features, matching a target coding algorithm with the fused coding features, and performing fusion coding on the posture data set and the projection angle data through the target coding algorithm to generate coded fusion data; Performing three-dimensional display scene modeling through the encoded fusion data to obtain a three-dimensional scene model, and at the same time, matching a rendering engine of the three-dimensional scene model, and generating picture frames for the three-dimensional scene model through the rendering engine to obtain multiple real-time picture frames; Performing real-time frame rate analysis on a plurality of the real-time picture frames to obtain real-time frame rate data, performing moving average calculation on the real-time frame rate data to obtain a moving average frame rate, and performing scene complexity calculation on the three-dimensional scene model using the moving average frame rate to obtain scene complexity data for each of the real-time picture frames; Predicting the picture smoothness curve for the scene complexity data of each real-time picture frame to obtain a smoothness curve, extracting extreme points from the smoothness curve to obtain a plurality of curve extreme points; specifically comprising: extracting the time series from the scene complexity data of each real-time picture frame through a preset autoregressive integrated moving average calculation model to obtain a target time series; performing fluency calculation on the scene complexity data of each real-time picture frame through the target time series to obtain the fluency data corresponding to each real-time picture frame; smoothing the fluency data corresponding to each real-time picture frame to obtain smoothed fluency data; performing data feature segmentation on the smoothed fluency data to obtain a segmentation feature set corresponding to the smoothed fluency data; inputting the segmentation feature set into a preset picture fluency prediction model to perform fluency prediction to obtain a predicted fluency data set; constructing a picture fluency curve through the predicted fluency data set to obtain the fluency curve; extracting extreme points from the fluency curve through a peak detection algorithm to obtain a plurality of curve extreme points; The frame rate switching threshold is calculated through multiple extreme points of the curve to obtain the frame rate switching threshold, the real-time frame rate data is frame rate smoothed to obtain smoothed frame rate data, and at the same time, the smoothed frame rate data is calibrated for switching frames based on the frame rate switching threshold to obtain at least one target switching frame, and the three-dimensional scene model is controlled to switch the screen in real time through at least one of the target switching frames.
2. The real-time picture switching method based on software frame rate according to claim 1 is characterized in that: The step of extracting data coding features from the posture data set and the projection angle data to obtain fused coding features, matching a target coding algorithm with the fused coding features, and performing fusion coding on the posture data set and the projection angle data through the target coding algorithm to generate coded fusion data includes: Inputting the pose data set into a preset first recurrent neural network to extract data coding features to obtain a first coding feature; Inputting the projection angle data set into a preset second recurrent neural network to extract data coding features to obtain a second coding feature; Performing feature correlation analysis on the first coding feature and the second coding feature to obtain relevant data indicators; Generate feature fusion semantic representation through the relevant data indicators to obtain target feature fusion semantic information; By fusing the target feature with semantic information, the first coding feature and the second coding feature are subjected to feature fusion to obtain a fused coding feature; Performing coding space screening on the fused coding features to obtain a target coding space, and mapping the fused coding features to the target coding space to obtain a spatial coding feature; Performing isometric mapping on the spatial coding features to obtain multiple groups of spatial data points, performing distance relationship calculation on the multiple groups of spatial data points to obtain target distance relationships between the multiple groups of spatial data points, and performing coding algorithm matching through the target distance relationships to obtain a target coding algorithm; The pose data set and the projection angle data are fused and encoded using a target encoding algorithm to generate encoded fusion data.
3. The real-time picture switching method based on software frame rate according to claim 2 is characterized in that: The isometric mapping of the spatial coding features to obtain multiple groups of spatial data points, and calculating the distance relationship between the multiple groups of spatial data points to obtain the target distance relationship between the multiple groups of spatial data points, and matching the coding algorithms through the target distance relationship to obtain the target coding algorithm, including: Constructing a distance matrix for the spatial coding features to obtain a target distance matrix; Performing isometric mapping on the spatial coding features through the target distance matrix to obtain multiple groups of spatial data points; Performing K nearest neighbor analysis on multiple groups of spatial data points to obtain multiple pairs of adjacent data points; Constructing an adjacency graph for multiple pairs of adjacent data points to obtain a target adjacency graph; Calculating the shortest path distance of the target adjacency graph to obtain the shortest path distance of the target adjacency graph; Calculating the distance relationship between the multiple groups of spatial data points by using the shortest path distance to obtain the target distance relationship between the multiple groups of spatial data points; The encoding algorithm is matched through the target distance relationship to obtain the target encoding algorithm.
4. The real-time picture switching method based on software frame rate according to claim 3 is characterized in that: The encoding algorithm matching is performed through the target distance relationship to obtain the target encoding algorithm, including: Performing encoding algorithm set matching on the target distance relationship to obtain a target encoding algorithm set; Performing low-dimensional space transformation on the target distance relationship to obtain a Euclidean distance set corresponding to the target distance relationship; Using the Euclidean distance set, calculating the cosine similarity of each coding algorithm in the target coding algorithm set to obtain a similarity set; Each of the encoding algorithms is screened using the similarity set to obtain a target encoding algorithm.
5. The real-time picture switching method based on software frame rate according to claim 1 is characterized in that: The real-time frame rate analysis is performed on the multiple real-time picture frames to obtain real-time frame rate data, a moving average is calculated on the real-time frame rate data to obtain a moving average frame rate, and scene complexity calculation is performed on the three-dimensional scene model by using the moving average frame rate to obtain scene complexity data for each real-time picture frame, including: Calculating the time interval of a plurality of real-time picture frames to obtain a plurality of time interval data; Performing real-time frame rate analysis on a plurality of real-time picture frames through a plurality of the time interval data to obtain real-time frame rate data; Performing time moving window calculation on the real-time frame rate data to obtain a plurality of target time moving windows; Performing window frame rate calculation on the real-time frame rate data through a plurality of target time moving windows to obtain a plurality of window frame rate data; Calculating a moving average of the plurality of window frame rate data to obtain a moving average frame rate; Extracting picture content from the three-dimensional scene model using the moving average frame rate to obtain a picture content set; Performing picture rendering index analysis on the picture content set to obtain a rendering index data set; The scene complexity of the three-dimensional scene model is calculated using the rendering index data set to obtain scene complexity data of each real-time picture frame.
6. A real-time picture switching device based on software frame rate, characterized in that: The real-time picture switching device based on software frame rate includes: An extraction module is used to extract the posture data of the current three-dimensional display laser light source to obtain a posture data set, and at the same time, calculate the projection angle of the posture data set to obtain projection angle data; A coding module is used to extract data coding features from the posture data set and the projection angle data to obtain fused coding features, match the fused coding features to a target coding algorithm, and perform fusion coding on the posture data set and the projection angle data through the target coding algorithm to generate coded fusion data; A matching module is used to perform three-dimensional display scene modeling through the encoded fusion data to obtain a three-dimensional scene model, and at the same time, match a rendering engine of the three-dimensional scene model, and generate picture frames for the three-dimensional scene model through the rendering engine to obtain multiple real-time picture frames; An analysis module, configured to perform real-time frame rate analysis on a plurality of real-time picture frames to obtain real-time frame rate data, perform moving average calculation on the real-time frame rate data to obtain a moving average frame rate, and perform scene complexity calculation on the three-dimensional scene model using the moving average frame rate to obtain scene complexity data for each real-time picture frame; A prediction module is used to predict the picture smoothness curve of the scene complexity data of each real-time picture frame to obtain a smoothness curve, and to extract extreme points of the smoothness curve to obtain multiple curve extreme points; specifically comprising: extracting the time series of the scene complexity data of each real-time picture frame through a preset autoregressive integrated moving average calculation model to obtain a target time series; performing fluency calculation on the scene complexity data of each real-time picture frame through the target time series to obtain the fluency data corresponding to each real-time picture frame; smoothing the fluency data corresponding to each real-time picture frame to obtain smoothed fluency data; performing data feature segmentation on the smoothed fluency data to obtain a segmentation feature set corresponding to the smoothed fluency data; inputting the segmentation feature set into a preset picture fluency prediction model to perform fluency prediction to obtain a predicted fluency data set; constructing a picture fluency curve through the predicted fluency data set to obtain the fluency curve; extracting extreme points of the fluency curve through a peak detection algorithm to obtain multiple curve extreme points; A calculation module is used to calculate the frame rate switching threshold through multiple extreme points of the curve to obtain the frame rate switching threshold, perform frame rate smoothing on the real-time frame rate data to obtain smoothed frame rate data, and at the same time, perform switching frame calibration on the smoothed frame rate data based on the frame rate switching threshold to obtain at least one target switching frame, and perform real-time screen switching control on the three-dimensional scene model through at least one of the target switching frames.
7. A real-time picture switching device based on software frame rate, characterized in that: The real-time picture switching device based on software frame rate includes: a memory and at least one processor, wherein instructions are stored in the memory; The at least one processor calls the instructions in the memory to enable the real-time picture switching device based on software frame rate to execute the real-time picture switching method based on software frame rate as described in any one of claims 1-5.
8. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the real-time picture switching method based on software frame rate as described in any one of claims 1 to 5 is implemented.
Citation Information
Patent Citations
Television, device and method for realizing automatic optimization of video call fluency
CN111405228A
Game fluency testing method and device and electronic equipment
CN116405655A
