Regional culture VR guide system based on block chain and data processing method thereof
By introducing blockchain-based technology and data preprocessing, compression and rendering optimization methods into the VR guide system, the fluency problem of VR guide in the unstable network is solved, and efficient and secure data transmission and High-quality guided tour experience.
Patent Information
- Application Number
- CN202411508008.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-28
- Publication Date
- 2025-02-14
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The prior art is difficult to ensure the continuous fluency of VR tours in the case of poor network conditions or large fluctuations, and it is difficult to effectively reduce the amount of data transmission while ensuring picture quality, resulting in insufficient balance between fluency and picture quality.
Adopting a blockchain-based regional cultural VR guide system, the user's location is obtained through the location information acquisition module and VR scene data is generated. The blockchain data retrieval module retrieves regional cultural data from distributed nodes based on location information, and the data preprocessing module Optimize data transmission efficiency. The data transmission module uses efficient data compression and decompression technology. The rendering module uses Metropolis-Hastings sampling algorithm to optimize ray tracing and dynamically adjusts the data transmission strategy to adapt to network state.
It realizes the continuous fluency of VR tours in the case of poor network conditions or large fluctuations, improves data transmission efficiency, ensures high-quality images and smooth tour experience, and overcomes the fluency in the existing technology. It is difficult to balance the shortcomings with image quality, and the security and reliability of data transmission are improved through elliptic curve encryption technology and Merkle tree verification mechanism.
Smart Images

Figure CN119440249A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of digital cultural guide technology, and in particular to a blockchain-based regional cultural VR guide system and a data processing method thereof. Background Art
[0002] In the current complex network environment, virtual reality (VR) guided tours, as an emerging application form, are widely used in cultural display, education and training, tourism and other fields. VR guided tours provide users with highly interactive visual and perceptual experiences through high-quality virtual scenes and immersive experiences. However, the smoothness of VR guided tours is heavily dependent on the efficiency of data transmission. Especially in complex network environments, the data transmission rate and stability directly affect the user experience.
[0003] In the prior art, VR navigation systems usually rely on a high-bandwidth and low-latency network environment to ensure that a large amount of 3D images, audio, and interactive data can be transmitted to the user terminal in real time. However, in actual applications, complex network environments, such as high network latency, insufficient bandwidth, and high packet loss rates, often lead to low data transmission efficiency, which in turn causes screen freezes, delays, and even interruptions during VR navigation, affecting the user's immersive experience. In order to alleviate these problems, the prior art attempts to improve data transmission efficiency through data compression, caching technology, and network optimization algorithms. However, these methods have alleviated the problem to a certain extent, but still cannot guarantee the continuous smoothness of VR navigation when the network conditions are poor or fluctuating. In addition, the existing technical solutions are difficult to effectively reduce the amount of data transmission while ensuring the image quality, and therefore have significant deficiencies in the balance between smoothness and image quality. Summary of the invention
[0004] The purpose of the present invention is to provide a regional cultural VR tour system based on blockchain and its data processing method, so as to solve the problem that the continuous smoothness of VR tour cannot be guaranteed when the network condition is poor or fluctuating greatly, and the problem that there is a lack of balance between the smoothness of VR tour and the image quality.
[0005] To achieve the above purpose, the present invention provides the following technical solution: a regional cultural VR tour system based on blockchain, the system comprising:
[0006] A location information acquisition module is used to obtain the user's location information and generate corresponding VR scene data;
[0007] The blockchain data retrieval module, based on the location information, retrieves the regional cultural data related to the location from the distributed nodes through the blockchain network. Specifically, each piece of regional cultural data in the blockchain uses elliptic curve encryption to retrieve blockchain data. The elliptic curve equation is:
[0008] y 2 =x 3 +ax+b,
[0009] Among them, a and b are curve parameters, and x and y represent the coordinates of points on the curve;
[0010] Each user is assigned a private key k and a corresponding public key P to ensure that the user can safely obtain the cultural data that matches his or her location information. The encryption formula is:
[0011] P = kG,
[0012] Among them, P represents the public key, κ represents the private key, and G represents the base point;
[0013] Data preprocessing module, used to preprocess the retrieved regional cultural data and optimize data transmission efficiency;
[0014] The data transmission module transmits the pre-processed data to the user's VR device through efficient data compression and decompression technology;
[0015] The rendering module is used to render regional cultural data in real time on the user's VR device to ensure the smoothness of VR tour. Specifically, the Metropolis-Hastings sampling algorithm is used to optimize the sampling efficiency of ray tracing during the rendering process. According to the principle of energy minimization, the optimal lighting model and scene texture are selected for sampling to ensure the fidelity of the rendering results while reducing the computational complexity. The Metropolis-Hastings acceptance probability formula is:
[0016]
[0017] Among them, α represents the probability of receiving a new state, v represents the current state, v′ represents the new state, π(v) represents the value of the target distribution at the current state v, π(v′) represents the value of the target distribution at the new state v′, q(ν′|ν) represents the transition probability from the current state v to the new state v′, and q(v|v′) represents the transition probability from the new state v′ back to the current state ν.
[0018] Preferably, the location information acquisition module acquires the user's location information and generates corresponding VR scene data including:
[0019] The fuzzy C-means clustering algorithm is used to process the user location information, and the location information with deviations is classified through fuzzy clustering to generate multiple location information candidate sets. The specific formula of the objective function of the fuzzy C-means is:
[0020]
[0021] Among them, u ij Represents data point xi For cluster center c j The membership degree, m represents the fuzziness index, J m represents the objective function, i represents the index number of the data point, j represents the index number of the cluster center, and x i represents the i-th data point, c j represents the jth cluster center, m represents the fuzziness index, n represents the total number of data points, and c represents the number of cluster centers.
[0022] Preferably, the data preprocessing module preprocesses the retrieved regional cultural data to optimize data transmission efficiency, including:
[0023] In the preprocessing process of regional cultural data, the Kruskal algorithm is used to model the relationship between cultural data, generate the minimum spanning tree between data, optimize the transmission path, reduce the redundant data that needs to be transmitted through the minimum spanning tree, and only transmit the most relevant regional cultural information. The specific public disclosure of the minimum spanning tree algorithm is as follows:
[0024]
[0025] Among them, T represents the total weight of the minimum spanning tree, (u, r) represents the two endpoints of an edge on the way, u and r represent nodes, w(u, r) represents the cost of connecting node u and node r, and E represents the edge set.
[0026] Preferably, the data transmission module transmits the pre-processed data to the user's VR device through efficient data compression and decompression technology, including:
[0027] Nash equilibrium is applied to optimize the transmission strategy during network data transmission. The Nash equilibrium formula is:
[0028]
[0029] in, For each user l, l is the user number, u l represents the utility function of user l, represents the optimal strategy of user l, represents the optimal strategy combination of all users except user l, s l represents other policies of user l, s -l represents the strategy combination selected by other users except user l;
[0030] At the Nash equilibrium point, each user l chooses the optimal strategy When No other strategies l The utility obtained Low.
[0031] Preferably, the blockchain data retrieval module retrieves regional cultural data related to the location from distributed nodes through the blockchain network based on the location information, including:
[0032] Use distributed hash tables to route data between nodes to ensure the shortest path for data requests;
[0033] Verify data integrity;
[0034] Dynamically adjust data transmission strategies based on network latency and bandwidth conditions;
[0035] When T<N / B, the data transmission link with the highest priority is selected for data transmission, where T represents the current network delay, N represents the amount of data to be transmitted, and B represents the current bandwidth.
[0036] Preferably, the dynamically adjusting the data transmission strategy based on network delay and bandwidth conditions includes:
[0037] Monitor latency and bandwidth in the current network environment;
[0038] Calculate the transmission quality score of each candidate transmission link. The scoring rule is Q = aL + bW, where L represents the link delay, W represents the link bandwidth, and a and b are the weight parameters of the link delay and bandwidth respectively;
[0039] The transmission link with the highest score is selected for data transmission.
[0040] Preferably, calculating the transmission quality score of each candidate transmission link includes:
[0041] Collect historical performance data of candidate links;
[0042] Calculate the average delay L of the current link avg and bandwidth average value W avg ;
[0043] The weight is adjusted based on the link stability factor S, and the formula is Q = (aL avg +bW avg )×S, where S represents the stability factor of the link, Q represents the final quality score of the transmission link, a and b are the weight parameters of link delay and bandwidth respectively, and L avg Indicates the calculation of the average delay of the current link, W avg Indicates the average bandwidth.
[0044] Preferably, in the minimum spanning tree, the construction process in the minimum spanning tree combines the distributed node information in the blockchain.
[0045] Preferably, the blockchain data retrieval module, based on the location information, retrieves the regional cultural data related to the location from the distributed nodes through the blockchain network, and generates a unique private key k based on the user's dynamic location information.
[0046] A method for processing regional cultural VR tour data based on blockchain, using the regional cultural VR tour system based on blockchain, the method comprising:
[0047] S1. Acquire the user's location information through a location information acquisition module, and generate corresponding VR scene data based on the location information;
[0048] S2. Based on the user's location information, the regional cultural data related to the user's location is quickly retrieved from the distributed nodes through the blockchain network. Specifically, the elliptic curve encryption algorithm is used to retrieve the data, and the encryption key is generated using the elliptic curve equation. Private keys and public keys are assigned to each user to ensure that the user can safely obtain the regional cultural data that matches his or her location information;
[0049] S3, preprocessing the retrieved regional cultural data, using data compression and decompression technology to optimize data transmission efficiency, and transmitting the preprocessed data to the user's VR device;
[0050] S4. Real-time rendering of regional cultural data on the user's VR device to ensure the smoothness of VR tour. Specifically, the Metropolis-Hastings sampling algorithm is used to optimize ray tracing. According to the principle of minimization of target distribution, the optimal ray path is selected and sampled. The acceptance probability of the new state is determined by the acceptance probability formula to optimize the fidelity of the rendering effect.
[0051] S5. Dynamically adjust the data transmission strategy based on the network status to ensure efficient data transmission, and select the best transmission path based on the real-time network bandwidth and delay.
[0052] It can be seen from the above technical solution that the present invention has the following beneficial effects:
[0053] The blockchain-based regional cultural VR tour system and its data processing method obtain the user's location information and generate corresponding VR scene data. Based on the location information, the regional cultural data related to the location are retrieved from the distributed nodes through the blockchain network, and the retrieved regional cultural data are pre-processed to optimize the data transmission efficiency. The pre-processed data is transmitted to the user's VR device through efficient data compression and decompression technology, and the regional cultural data is rendered in real time on the user's VR device to ensure the smoothness of the VR tour. The regional cultural data related to the user's location is more efficiently scheduled and transmitted, thereby reducing data delays, ensuring the real-time and smoothness of the VR tour, and automatically selecting the optimal transmission path and link. It avoids screen freezes, delays and interruptions caused by network problems, enhances the immersive experience during VR tours, ensures high image quality and smoothness of tours, overcomes the shortcomings of existing technologies that it is difficult to strike a balance between image quality and smoothness, and uses elliptic curve encryption technology and Merkle tree verification mechanism to effectively prevent data from being tampered with or leaked during transmission, further enhancing users' sense of security and trust, ensuring that data can still be transmitted efficiently in the case of unstable network, reducing packet loss rate, and improving transmission reliability and stability. It solves the problem that existing technologies cannot ensure the continuous smoothness of VR tours when network conditions are poor or fluctuating, and the problem that there are deficiencies in the balance between VR tour smoothness and image quality. BRIEF DESCRIPTION OF THE DRAWINGS
[0054] Figure 1 It is a connection diagram of the system modules of the present invention;
[0055] Figure 2 The figure is a flow chart of the method of the present invention. DETAILED DESCRIPTION
[0056] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0057] like Figure 1 As shown, the present invention provides a technical solution: a regional cultural VR tour system based on blockchain, the system comprising:
[0058] A location information acquisition module is used to obtain the user's location information and generate corresponding VR scene data;
[0059] The blockchain data retrieval module, based on the location information, retrieves the regional cultural data related to the location from the distributed nodes through the blockchain network. Specifically, each piece of regional cultural data in the blockchain uses elliptic curve encryption to retrieve blockchain data. The elliptic curve equation is:
[0060] y 2 =x 3 +ax+b,
[0061] Among them, a and b are curve parameters, and x and y represent the coordinates of points on the curve;
[0062] Each user is assigned a private key k and a corresponding public key P to ensure that the user can safely obtain the cultural data that matches his or her location information. The encryption formula is:
[0063] P = kG,
[0064] Among them, P represents the public key, k represents the private key, and G represents the base point;
[0065] Data preprocessing module, used to preprocess the retrieved regional cultural data and optimize data transmission efficiency;
[0066] The data transmission module transmits the pre-processed data to the user's VR device through efficient data compression and decompression technology;
[0067] The rendering module is used to render regional cultural data in real time on the user's VR device to ensure the smoothness of VR tour. Specifically, the Metropolis-Hastings sampling algorithm is used to optimize the sampling efficiency of ray tracing during the rendering process. According to the principle of energy minimization, the optimal lighting model and scene texture are selected for sampling to ensure the fidelity of the rendering results while reducing the computational complexity. The Metropolis-Hastings acceptance probability formula is:
[0068]
[0069] Among them, α represents the probability of receiving a new state, ν represents the current state, ν′ represents the new state, π(ν) represents the value of the target distribution at the current state v, π(v′) represents the value of the target distribution at the new state v′, q(v′|v) represents the transition probability from the current state v to the new state v′, and q(v|v′) represents the transition probability from the new state v′ back to the current state v.
[0070] The system collects the user's geographic location information in real time through the location information acquisition module, and transmits this location information to the blockchain data retrieval module. The module uses the elliptic curve encryption algorithm to retrieve the cultural data matching the location in the distributed node network of the blockchain based on the user's location information. The encryption process is based on the elliptic curve y 2 =x3 +ax+b, the parameters a and b of the equation are constants preset by the system, combined with the user's private key k and public key P, to ensure that the data has a high degree of security and confidentiality during transmission and avoid data leakage. This implementation adopts blockchain technology combined with elliptic curve encryption algorithm, which can effectively ensure the privacy of users during VR navigation. The use of distributed nodes and encryption algorithms not only improves the security of the system, but also improves the efficiency of data transmission. In addition, the automatic matching function of cultural data based on user location information can provide a personalized navigation experience, allowing users to quickly obtain cultural background information related to their current location.
[0071] The data preprocessing module compresses and optimizes the retrieved regional cultural data to reduce the bandwidth and time required for data transmission. During the transmission process, the data transmission module uses compression technology to efficiently transmit the optimized data to the user's VR device. The received data is rendered in real time by the rendering module, and the Metropolis-Hastings algorithm is used to optimize the sampling efficiency of ray tracing. Based on the optimal illumination model, realistic scene images are rendered to ensure the authenticity and smoothness of the rendering results. This implementation method greatly improves the efficiency of data transmission and reduces data latency through data preprocessing and compression technology, thereby providing users with a smoother VR tour experience. At the same time, the Metropolis-Hastings algorithm used by the rendering module optimizes the image rendering process, enabling the system to render high-quality scene images with limited computing resources, ensuring the realism and visual effects of the scene during the tour.
[0072] The location information acquisition module acquires the user's location information and generates corresponding VR scene data including:
[0073] The fuzzy C-means clustering algorithm is used to process the user location information, and the location information with deviations is classified through fuzzy clustering to generate multiple location information candidate sets. The specific formula of the objective function of the fuzzy C-means is:
[0074]
[0075] Among them, u ij Represents data point x i For cluster center c j The membership degree, m represents the fuzziness index, J m represents the objective function, i represents the index number of the data point, j represents the index number of the cluster center, and x i represents the i-th data point, c j represents the jth cluster center, m represents the fuzziness index, n represents the total number of data points, and c represents the number of cluster centers.
[0076] The system obtains the user's geographic location information in real time through the location information acquisition module. Since GPS positioning or other positioning technologies may have errors or deviations, the system uses the fuzzy C-means clustering algorithm to process these location information. The algorithm can classify the user into multiple location information candidate sets based on their actual location and calculate the x value of each data point. i With cluster center c j The distance between them is combined with the degree of membership to fuzzily classify the user's location information. This fuzzy classification algorithm can effectively process fuzzy data, reduce errors in location information, and improve the accuracy of VR scene data generated by the system. By processing the user's location information through the fuzzy C-means clustering algorithm, the impact of positioning errors can be effectively reduced, ensuring that the scene data in the user's VR guided experience is more accurate and reliable. Compared with traditional hard clustering methods, fuzzy clustering can process fuzzy or highly uncertain data and provide more flexible and accurate positioning results. In addition, the algorithm's adaptability and robustness enable it to adapt to positioning data fluctuations in different user environments, improving the overall performance of the system.
[0077] The data preprocessing module preprocesses the retrieved regional cultural data to optimize data transmission efficiency including:
[0078] In the preprocessing process of regional cultural data, the Kruskal algorithm is used to model the relationship between cultural data, generate the minimum spanning tree between data, optimize the transmission path, reduce the redundant data that needs to be transmitted through the minimum spanning tree, and only transmit the most relevant regional cultural information. The specific public disclosure of the minimum spanning tree algorithm is as follows:
[0079]
[0080] Among them, T represents the total weight of the minimum spanning tree, (u, r) represents the two endpoints of an edge on the way, u and r represent nodes, w(u, r) represents the cost of connecting node u and node r, and E represents the edge set.
[0081] In the preprocessing stage of regional cultural data, the system uses the Kruskal algorithm to construct a relationship network between cultural data and generate a minimum spanning tree. This algorithm traverses all data nodes, selects the edges with the smallest weight one by one, ensures that the selected edges do not form a loop, and finally forms a minimum spanning tree connecting all relevant nodes. Through the establishment of the minimum spanning tree, the system can effectively reduce the transmission of redundant data and ensure that only the regional cultural information most relevant to the user's current location is transmitted during the data transmission process, thereby improving the efficiency of data transmission. By using the Kruskal algorithm to generate a minimum spanning tree, this implementation method can significantly reduce the amount of data that needs to be transmitted in the system, thereby improving the efficiency of data transmission. The application of this algorithm can optimize the data transmission path and reduce unnecessary network overhead, especially when processing large-scale data, with high adaptability and scalability. In addition, the use of the minimum spanning tree ensures that the system only transmits the most relevant cultural data, improving the response speed and user experience of the VR guide system.
[0082] The data transmission module transmits the pre-processed data to the user's VR device through efficient data compression and decompression technology, including:
[0083] Nash equilibrium is applied to optimize the transmission strategy during network data transmission. The Nash equilibrium formula is:
[0084]
[0085] in, For each user l, l is the user number, u l represents the utility function of user l, represents the optimal strategy of user l, represents the optimal strategy combination of all users except user l, s l represents other policies of user l, s -l represents the strategy combination selected by other users except user l;
[0086] At the Nash equilibrium point, each user l chooses the optimal strategy When No other strategies l The utility obtained Low.
[0087] The system uses Nash equilibrium optimization transmission strategy during data transmission. For each user l, the system calculates its utility function u based on network bandwidth, data volume and other conditions. l , and select the optimal strategy through strategy optimization This policy is used in conjunction with other user policies Under the combined effect, the user's utility function value is ensured maximize, and will not be affected by choosing other strategies s l And obtain higher utility. The application of Nash equilibrium ensures the optimization of the overall transmission efficiency when multiple users are transmitting data at the same time, avoids the bottleneck problem caused by the competition for network resources, and ensures that each user can get the best transmission experience under the transmission strategy they can choose. By adopting Nash equilibrium to optimize the data transmission strategy, the system can reasonably allocate network bandwidth resources when multiple users are transmitting data at the same time, and maximize the data transmission efficiency. This method can not only avoid the transmission delay caused by network resource conflicts, but also adaptively select the optimal transmission strategy according to the network conditions of different users, improve the stability and speed of data transmission, and thus improve the user's VR experience.
[0088] The blockchain data retrieval module is based on location information and retrieves regional cultural data related to the location from distributed nodes through the blockchain network, including:
[0089] Use distributed hash tables to route data between nodes to ensure the shortest path for data requests;
[0090] Verify data integrity;
[0091] Dynamically adjust data transmission strategies based on network latency and bandwidth conditions;
[0092] When T<N / B, the data transmission link with the highest priority is selected for data transmission, where T represents the current network delay, N represents the amount of data to be transmitted, and B represents the current bandwidth.
[0093] The system uses distributed hash tables to route data between nodes, ensuring that users can find the shortest data transmission path when retrieving regional cultural data related to their location information in the blockchain network. Through the efficient distributed characteristics of distributed hash tables, the system can quickly locate cultural data stored on each node. During data transmission, the system will determine whether to enable the highest priority transmission link based on the current network delay T and bandwidth B, as well as the amount of data N that needs to be transmitted. Under the condition of T<N / B, the system will give priority to the highest priority transmission link to ensure efficient data transmission. Through distributed hash table technology, the system can quickly locate cultural data on distributed nodes and greatly shorten the time for data retrieval. At the same time, dynamically adjusting the data transmission strategy, combined with network delay and bandwidth conditions, can effectively improve data transmission efficiency, reduce delays, and enhance user experience. In addition, the use of the highest priority data transmission link can ensure that the most important data is transmitted first at critical moments, further optimizing the utilization of network resources.
[0094] Dynamically adjust data transmission strategies based on network latency and bandwidth conditions, including:
[0095] Monitor latency and bandwidth in the current network environment;
[0096] Calculate the transmission quality score of each candidate transmission link. The scoring rule is Q = aL + bW, where L represents the link delay, W represents the link bandwidth, and a and b are the weight parameters of the link delay and bandwidth respectively;
[0097] The transmission link with the highest score is selected for data transmission.
[0098] By monitoring the network's latency and bandwidth in real time, each candidate transmission link is scored. In the scoring formula Q=aL+bW, link latency L and bandwidth W represent the key performance indicators of the link, respectively. Weight parameters a and b are set according to the system's requirements for latency and bandwidth. The highest transmission link is selected based on the score to ensure optimal data transmission under different network conditions. By monitoring the network status in real time and dynamically adjusting the transmission strategy based on latency and bandwidth, the system can always maintain efficient data transmission in a complex network environment and avoid network bottlenecks. At the same time, the transmission link selection strategy based on the score enables the system to flexibly adapt to different network conditions, ensuring that users can smoothly receive VR data.
[0099] Calculating the transmission quality score of each candidate transmission link includes:
[0100] Collect historical performance data of candidate links;
[0101] Calculate the average delay L of the current link avg and bandwidth average value W avg ;
[0102] The weight is adjusted based on the link stability factor S, and the formula is Q = (aL avg +bW avg )×S, where S represents the stability factor of the link, Q represents the final quality score of the transmission link, a and b are the weight parameters of link delay and bandwidth respectively, and L avg Indicates the calculation of the average delay of the current link, W avg Indicates the average bandwidth.
[0103] The system collects historical performance data of candidate links and calculates the average delay L of each transmission link. avg and bandwidth average value W avg, and adjust the final score Q in combination with the link stability factor S. The link stability factor S is based on historical data performance and can reflect the long-term stability of the link, which helps the system select a more reliable transmission link. By combining historical data and link stability factors, the system can more accurately evaluate the long-term performance of each candidate link, thereby selecting a more stable and efficient transmission link. This method not only improves the stability of data transmission, but also reduces frequent link switching and improves user experience.
[0104] In the minimum spanning tree, the construction process in the minimum spanning tree combines the distributed node information in the blockchain. In this embodiment, the system uses the distributed node information in the blockchain to optimize the construction process of the minimum spanning tree. Each node in the blockchain network can store regional cultural data. When the system needs to transmit data, the shortest path will be selected through the minimum spanning tree algorithm to minimize the data transmission delay in the network. When generating the minimum spanning tree, the system comprehensively considers the storage location and connection method of each node according to the topological structure of the blockchain network to ensure that the data transmission path is shortest and efficient. By combining the characteristics of the distributed nodes of the blockchain, the minimum spanning tree can not only find the optimal data transmission path, but also reduce unnecessary transmission steps and improve the speed and reliability of data acquisition. The algorithm reasonably selects and connects the nodes according to the distance of each node in the network and the cultural data stored therein, ensuring the efficiency of the entire data transmission. This embodiment combines the information of the distributed nodes of the blockchain to achieve more accurate node selection and path optimization in the construction of the minimum spanning tree, reduce network delays, and optimize the overall performance of the system. Compared with traditional network topology, the distributed architecture of blockchain can provide more flexible node selection and dynamic routing, ensuring the stability and efficiency of data transmission, especially in large-scale data retrieval and transmission scenarios.
[0105] The blockchain data retrieval module retrieves the regional cultural data related to the location from the distributed nodes through the blockchain network based on the location information, and generates a unique private key k based on the user's dynamic location information. In this embodiment, the system uses the user's dynamic location information to generate a unique private key for each user. This process combines the encryption mechanism of the blockchain to ensure the security of data transmission and retrieval. When the user moves, the system will update its location information in real time and generate a new private key based on the new location information. The private key is closely related to the user's location information, ensuring that only users in this specific location can successfully decrypt and access the blockchain data related to the regional culture. The user's private key generation process uses an elliptic curve encryption algorithm. With dynamic location information as input, the system can generate an unpredictable and unique private key. This not only ensures the privacy and security of user data, but also ensures the integrity and reliability of data transmission through the immutability of the blockchain. By generating a unique private key based on dynamic location information, this embodiment ensures the security and privacy protection of user data on the blockchain. The dynamic generation mechanism of the private key makes each data retrieval and transmission highly secure, preventing unauthorized users from accessing it. At the same time, combined with the distributed architecture of blockchain, the system can ensure the integrity and security of data storage and transmission, improving the reliability and user experience of the entire VR guide system.
[0106] A method for processing regional cultural VR tour data based on blockchain is also provided, the method comprising the following steps:
[0107] S1: obtaining the user's location information through a location information acquisition module, and generating corresponding VR scene data based on the location information;
[0108] The system first collects the user's geographic location information in real time through the location information acquisition module, such as through GPS, Beidou positioning or other positioning technologies. After obtaining the user's location information, the system uses this information as input to generate VR scene data related to the user's current location. The system automatically selects cultural data that matches the user's location based on the user's geographic location to provide users with a personalized cultural experience. These scene data will be dynamically updated as the user's location changes, ensuring that the user's VR tour experience is always related to their actual location.
[0109] S2: Based on the user's location information, the regional cultural data related to the user's location is quickly retrieved from the distributed nodes through the blockchain network. Specifically, the elliptic curve encryption algorithm is used to retrieve the data, and the encryption key is generated using the elliptic curve equation. Private keys and public keys are assigned to each user to ensure that users can safely obtain regional cultural data that matches their location information;
[0110] When the user's location information is obtained, the system will quickly retrieve the regional cultural data related to the location through the distributed storage nodes in the blockchain network. The system uses the elliptic curve encryption algorithm and uses the elliptic curve equation to generate the user's encryption key. Each user will be assigned a private key and a corresponding public key to ensure the security of data transmission. When the user requests data, the system will use the private key for decryption, ensuring that only authorized users can obtain the corresponding regional cultural data. This process improves the security and privacy protection of data transmission through the encryption and distributed storage mechanism of the blockchain.
[0111] S3: pre-process the retrieved regional cultural data, use data compression and decompression technology to optimize data transmission efficiency, and transmit the pre-processed data to the user's VR device;
[0112] The retrieved regional cultural data will be processed by the preprocessing module before being transmitted to the user's VR device. This module uses efficient data compression and decompression technology to compress the cultural data to reduce the bandwidth and time required for transmission. After preprocessing, the data is transmitted to the user's VR device through the network and decompressed at the receiving end to ensure the efficiency and integrity of data transmission. This can avoid transmission bottlenecks caused by insufficient network bandwidth or high latency, and improve the smoothness of user experience.
[0113] S4: Real-time rendering of regional cultural data on the user's VR device to ensure the smoothness of VR tour. Specifically, the Metropolis-Hastings sampling algorithm is used to optimize ray tracing. According to the principle of minimization of target distribution, the optimal ray path is selected and sampled. The acceptance probability of the new state is determined by the acceptance probability formula to optimize the fidelity of the rendering effect.
[0114] When the data is successfully transmitted to the user's VR device, the system will start the real-time rendering module to render the regional cultural data. The rendering process uses the Metropolis-Hastings sampling algorithm to optimize ray tracing and select the optimal ray path for sampling to ensure that the ray tracing rendering results are realistic and efficient. Based on the principle of minimization of target distribution, the algorithm calculates the acceptance probability of the new state through the acceptance probability formula and selects a ray path that meets visual realism and computational efficiency. This process significantly optimizes the fidelity of the rendering, making the user's guided tour experience in the VR environment more immersive.
[0115] S5: Dynamically adjust the data transmission strategy based on the network status to ensure efficient data transmission and select the best transmission path based on the real-time network bandwidth and latency.
[0116] During data transmission, the system monitors the current network status in real time, including network delay and bandwidth. When the network status changes, the system will dynamically adjust the data transmission strategy and select the optimal transmission path. Specifically, the system will evaluate the currently available transmission links and calculate the transmission quality score of each link based on the bandwidth and delay of the link. The system selects the optimal link based on the scoring results to ensure that data transmission is always in an efficient state and avoid transmission delays or data loss caused by fluctuations in network conditions.
[0117] Through this method, the system can efficiently acquire, process and transmit regional cultural data related to user location information and provide a realistic VR tour experience. The elliptic curve encryption algorithm ensures the security of data transmission, the data compression and decompression technology optimizes the transmission efficiency, and the Metropolis-Hastings algorithm ensures the authenticity of the rendering effect. By dynamically adjusting the data transmission strategy, the system can adapt to the data transmission requirements in different network environments, improving the flexibility and reliability of the system.
[0118] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.
Claims
1. A regional cultural VR tour system based on blockchain, characterized in that: The system comprises: A location information acquisition module is used to obtain the user's location information and generate corresponding VR scene data; The blockchain data retrieval module, based on the location information, retrieves the regional cultural data related to the location from the distributed nodes through the blockchain network. Specifically, each piece of regional cultural data in the blockchain uses elliptic curve encryption to retrieve blockchain data. The elliptic curve equation is: y 2 =x 3 +ax+b, where a and b are curve parameters, and x and y represent the coordinates of a point on the curve; Each user is assigned a private key κ and a corresponding public key P to ensure that the user can safely obtain cultural data that matches their location information. The encryption formula is: P = kG, where P represents the public key, k represents the private key, and G represents the base point; Data preprocessing module, used to preprocess the retrieved regional cultural data and optimize data transmission efficiency; The data transmission module transmits the pre-processed data to the user's VR device through efficient data compression and decompression technology; The rendering module is used to render regional cultural data in real time on the user's VR device to ensure the smoothness of VR tour. Specifically, the Metropolis-Hastings sampling algorithm is used to optimize the sampling efficiency of ray tracing during the rendering process. According to the principle of energy minimization, the optimal lighting model and scene texture are selected for sampling to ensure the fidelity of the rendering results while reducing the computational complexity. The Metropolis-Hastings acceptance probability formula is: Among them, α represents the probability of receiving a new state, ν represents the current state, ν′ represents the new state, π(v) represents the value of the target distribution at the current state v, π(v′) represents the value of the target distribution at the new state v′, q(ν′|v) represents the transition probability from the current state v to the new state ν′, and q(v|v′) represents the transition probability from the new state v′ back to the current state v.
2. According to claim 1, a regional cultural VR tour system based on blockchain is characterized by: The location information acquisition module acquires the user's location information and generates corresponding VR scene data including: The fuzzy C-means clustering algorithm is used to process the user location information, and the location information with deviations is classified through fuzzy clustering to generate multiple location information candidate sets. The specific formula of the objective function of the fuzzy C-means is: Among them, u ij Represents data point x i For cluster center c j The membership degree, m represents the fuzziness index, J m represents the objective function, i represents the index number of the data point, j represents the index number of the cluster center, and x i represents the i-th data point, c j represents the jth cluster center, m represents the fuzziness index, n represents the total number of data points, and c represents the number of cluster centers.
3. According to claim 1, a regional cultural VR tour guide system based on blockchain is characterized by: The data preprocessing module preprocesses the retrieved regional cultural data to optimize the data transmission efficiency including: In the preprocessing process of regional cultural data, the Kruskal algorithm is used to model the relationship between cultural data, generate the minimum spanning tree between data, optimize the transmission path, reduce the redundant data that needs to be transmitted through the minimum spanning tree, and only transmit the most relevant regional cultural information. The specific public disclosure of the minimum spanning tree algorithm is as follows: Among them, T represents the total weight of the minimum spanning tree, (u, r) represents the two endpoints of an edge on the way, u and r represent nodes, w(u, r) represents the cost of connecting node u and node r, and E represents the edge set.
4. According to claim 1, a regional cultural VR tour guide system based on blockchain is characterized by: The data transmission module transmits the pre-processed data to the user's VR device through efficient data compression and decompression technology, including: Nash equilibrium is applied to optimize the transmission strategy during network data transmission. The Nash equilibrium formula is: in, For each user l, l is the user number, u l represents the utility function of user l, represents the optimal strategy of user l, represents the optimal strategy combination of all users except user l, s l represents other policies of user l, s -l represents the strategy combination selected by other users except user l; At the Nash equilibrium point, each user l chooses the optimal strategy When No other strategies l The utility obtained Low.
5. According to claim 1, a regional cultural VR tour guide system based on blockchain is characterized by: The blockchain data retrieval module retrieves regional cultural data related to the location from distributed nodes through the blockchain network based on the location information, including: Use distributed hash tables to route data between nodes to ensure the shortest path for data requests; Verify data integrity; Dynamically adjust data transmission strategies based on network latency and bandwidth conditions; When T<N / B, the data transmission link with the highest priority is selected for data transmission, where T represents the current network delay, N represents the amount of data to be transmitted, and B represents the current bandwidth.
6. According to claim 5, a regional cultural VR tour guide system based on blockchain is characterized in that: The dynamically adjusting the data transmission strategy based on network delay and bandwidth conditions includes: Monitor latency and bandwidth in the current network environment; Calculate the transmission quality score of each candidate transmission link. The scoring rule is Q = aL + bW, where L represents the link delay, W represents the link bandwidth, and a and b are the weight parameters of the link delay and bandwidth respectively; The transmission link with the highest score is selected for data transmission.
7. A blockchain-based regional cultural VR tour guide system according to claim 6, characterized in that: The calculating of the transmission quality score of each candidate transmission link comprises: Collect historical performance data of candidate links; Calculate the average delay L of the current link avg and bandwidth average value W avg ; The weight is adjusted based on the link stability factor S, and the formula is Q = (aL avg +bW avg )×S, where S represents the stability factor of the link, Q represents the final quality score of the transmission link, a and b are the weight parameters of link delay and bandwidth respectively, and L avg Indicates the calculation of the average delay of the current link, W avg Indicates the average bandwidth.
8. According to claim 3, a regional cultural VR tour guide system based on blockchain is characterized in that: In the minimum spanning tree, the construction process in the minimum spanning tree combines the distributed node information in the blockchain.
9. The regional cultural VR tour guide system based on blockchain according to claim 1 is characterized by: The blockchain data retrieval module, based on the location information, retrieves the regional cultural data related to the location from the distributed nodes through the blockchain network, and generates a unique private key k based on the user's dynamic location information.
10. A method for processing regional cultural VR tour data based on blockchain, using the regional cultural VR tour system based on blockchain according to any one of claims 1 to 9, characterized in that: The method comprises: S1. Acquire the user's location information through a location information acquisition module, and generate corresponding VR scene data based on the location information; S2. Based on the user's location information, the regional cultural data related to the user's location is quickly retrieved from the distributed nodes through the blockchain network. Specifically, the elliptic curve encryption algorithm is used to retrieve the data, and the encryption key is generated using the elliptic curve equation. Private keys and public keys are assigned to each user to ensure that the user can safely obtain the regional cultural data that matches his or her location information; S3, preprocessing the retrieved regional cultural data, using data compression and decompression technology to optimize data transmission efficiency, and transmitting the preprocessed data to the user's VR device; S4. Real-time rendering of regional cultural data on the user's VR device to ensure the smoothness of VR tour. Specifically, the Metropolis-Hastings sampling algorithm is used to optimize ray tracing. According to the principle of minimization of target distribution, the optimal ray path is selected and sampled. The acceptance probability of the new state is determined by the acceptance probability formula to optimize the fidelity of the rendering effect. S5. Dynamically adjust the data transmission strategy based on the network status to ensure efficient data transmission, and select the best transmission path based on the real-time network bandwidth and delay.