A space arrangement system and method based on virtual reality
By collecting and processing real-scene data in virtual reality tourism, and combining user posture data for dynamic control, the problem of virtual reality tourism scenes being unable to be updated in real time is solved, the authenticity and consistency of the user experience is improved, and the amount of cloud computing is reduced.
Patent Information
- Application Number
- CN202410111657.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-01-26
AI Technical Summary
Virtual reality travel scenes cannot be updated in real time, resulting in unrealistic user experience and reducing user interest and experience.
By installing monitoring devices in the real scene to collect images and environmental data, transmit them to the data center for processing and splicing, build a virtual reality scene, and perform dynamic control and comparison based on the user's movement trajectory and body data to achieve adaptive updates.
It achieves synchronous updates of virtual scenes and real scenes, improves the authenticity and consistency of user experience, reduces the amount of cloud computing, and ensures the operating efficiency and accuracy of the virtual space.
Smart Images

Figure CN117934777B
Abstract
Description
Technical Field
[0001] The present invention relates to the field of virtual reality technology, and in particular to a space arrangement system and method based on virtual reality. Background Art
[0002] Virtual reality is a three-dimensional, interactive, real-time virtual environment simulated by computer technology, which enables users to interact with the virtual world through their senses. VR technology provides users with an immersive experience through hardware such as head-mounted displays, motion tracking systems, input devices, and corresponding software.
[0003] At present, VR technology has been applied to many fields of society. Among them, the combination of VR and tourism has become a popular new form of entertainment. People can achieve instant and independent travel experience through VR equipment; however, virtual reality tourism scenes usually require technicians to update the data changes of virtual scenes through computers, and cannot capture the changes of actual scenes for self-update; this means that if the technicians and the actual data collection work fail to update the real-life scene data in the software in a timely and consistent manner, users will not be able to experience real-time dynamic and real scenes, and the same senses will reduce users' interest in and experience of VR tourism. Summary of the invention
[0004] The purpose of the present invention is to provide a space arrangement system and method based on virtual reality to solve the problems raised in the above background technology.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions:
[0006] A space arrangement method based on virtual reality, the method comprising the following steps:
[0007] S100, installing a monitoring device at the real scene in advance to collect image data and dynamic environment data of the real scene, and encapsulating the data and transmitting it to the backend data center;
[0008] S200, the data center decapsulates and extracts the received data and performs data information detection, performs pixel information plane extraction on the detected image data and performs image boundary pixel enhancement, splices multi-pixel information and restores the plane scene, and spatially projects the plane scene information in combination with the environmental data to build a virtual reality scene;
[0009] S300, in a virtual scene, mapping the user's body data to a virtual scene, tracking the user's motion trajectory in the virtual scene, automatically regulating the dynamic and static state of the data in the virtual environment by parallel mapping the real scene environment, and constructing a comparison model, dynamically comparing the real scene data with the virtual scene data through the model, and formulating an adaptive update plan according to the comparison results;
[0010] S400, adaptively control the data of the virtual scene through data update output, and intelligently prompt the user with the control data to complete the virtual scene update according to the user's instructions.
[0011] The specific steps of collecting image data and dynamic environment data of the real scene in advance at the real scene monitoring device in S100, and packaging and transmitting the data to the back-end data center are as follows:
[0012] S101, by determining the area range of the real scene where data needs to be collected, the determined area is divided into sub-areas, and multi-view data is collected for each sub-area; the multi-view data collection is performed by using drone equipment to collect timeline field data of the real scene at different heights and multiple angles; the cruise intelligent robot simulates the real user's perspective to perform route planning to collect scene data in different sub-areas at different times; the real-time scene data in different sub-areas is collected by setting up a camera device; wherein the data collected by the drone and the intelligent robot include real scene image data and environmental data; the environmental data include real scene temperature data, humidity data, wind speed and direction data and air pressure data;
[0013] S102. After integrating the collected data, encapsulate the integrated data into data packets with corresponding time and sub-area numbers and send them to the back-end data center; the sub-area numbers are numbered and marked on each sub-area after determining the actual scene area for data collection and dividing it into sub-areas.
[0014] In S200, the data center unpacks and extracts the received data and performs data information detection, extracts pixel information planes from the detected image data and enhances image boundary pixels, splices multi-pixel information and restores the plane scene, and spatially projects the plane scene information in combination with the environmental data to build a virtual reality scene. The specific steps are as follows:
[0015] S201, the data center receives the encapsulated data, and independently slices the data by time and region to obtain image data and environmental data of different time lines of each region corresponding to the real scene; the sliced data are cleaned, screened and filled, and the processed image data are placed on a normalized plane through dimension adjustment and expansion operations; the data processing includes screening and eliminating fuzzy image data, erroneous image data and repeated image data in the sliced data; the dimension adjustment and expansion operations are to normalize the dimensional size of the image data. Due to the influence of the viewing angle and distance relationship when the front-end data is collected, the representation data of the same object in the image has different dimensions and sizes, so it is necessary to unify them when restoring the image data;
[0016] S202, in a plane, using the region number as a first-level division label, normalize and divide the image data of each sub-region; using the time node data of the image as a second-level division label, cluster the image data of the same time point in the corresponding sub-region; locate the image pixel data of the clustered image data, and extract the data of each pixel point; the pixel data is color data and brightness data;
[0017] S203, using pixel color data and brightness data to perform pixel blurring on the pixels of the real scene object image in the single image; the blurring is to blur the edges of the object image and only retain the color and brightness of the object pixel points, so that multiple interference details in the image can be denoised, and the boundaries between different objects in the image can be clearly obtained to obtain the pixel boundaries of the object image; the brightness of the object pixel boundary of the blurred image is enhanced to obtain the occupied contours of each object in the image data; by performing contour matching on the image data processed in the same sub-region at the same time point, the matched different image data are spliced to obtain image data with higher integrity; repeat this operation until the sub-region image data at the same time point is completely constructed; wherein, when performing image matching and splicing, it is necessary to compare the object contours in multiple images to confirm whether there are multiple areas of the same object repeated in different images. If so, it is necessary to extract independent data for the object and complete the splicing to restore the complete image construction of the area at the time point;
[0018] S204, taking the restored two-dimensional image data as the control object, using the scaling ratio of the image data collection as the restoration ratio factor, and filling the three-dimensional space scene in the virtual space by mapping; in the mapped scene space, the environmental data of the corresponding time point position is mixed into the restored scene area and moment, so as to realize the virtual parallel space mapping of the real scene at a certain moment and position; the multi-time point virtual mapping scenes are connected with the corresponding time line to realize the construction of the virtual scene.
[0019] In the S300, in the virtual scene, the user's body data is mapped to the virtual scene, the movement trajectory of the user in the virtual scene is tracked, and the dynamic and static data in the virtual environment are automatically regulated by parallel mapping the real scene environment, and a comparison model is constructed. The real scene data and the virtual scene data are dynamically compared through the model, and an adaptive update plan is formulated according to the comparison results:
[0020] S301, when a user logs into a virtual scene, obtaining the user's body data after granting permission to the user, and constructing a virtual character image of the user in the virtual scene through twin technology based on the user's body data;
[0021] S302, using the sensor installed in the VR device worn by the user to capture the user's behavior trajectory in the virtual space; the user's behavior trajectory includes the user's head movement trajectory, hand movement trajectory, leg movement trajectory and torso movement trajectory; the observable surface facing the user's face is the front plane in the virtual space, and its initial user horizontal viewing angle range is [θ1, θ2], and the initial user vertical viewing angle range is [θ3, θ4]; the corresponding unobservable surface facing the user's back is the back plane in the virtual space, and its initial user horizontal viewing angle range is [α1, α2], and the initial user vertical viewing angle range is [α3, α4]; wherein, since the back plane cannot be observed by the user, its corresponding visual range is the user's visual blind spot range; the user's head trajectory is captured, and if the captured user's head rotation angle is β, the rotation components β of the user's head rotation in the horizontal and vertical directions are calculated respectively h and β v , the calculation formula is β h =β*sinβ,β v =β*cosβ; where θ1 is the starting angle value of the initial horizontal viewing angle of the user's front plane, θ2 is the ending angle value of the initial horizontal viewing angle of the user's front plane, θ3 is the starting angle value of the initial vertical viewing angle of the user's front plane, θ4 is the ending angle value of the initial vertical viewing angle of the user's front plane, α1 is the starting angle value of the initial horizontal viewing angle of the user's back plane, α2 is the ending angle value of the initial horizontal viewing angle of the user's front plane, α3 is the starting angle value of the initial vertical viewing angle of the user's front plane, and α4 is the ending angle value of the initial vertical viewing angle of the user's front plane; where, is the maximum angle of a normal person's head turning in one direction; then the user's frontal plane viewing angle range and back plane viewing angle range in the virtual space are dynamically adjusted according to the user's head turning; if the user's head turns in a single horizontal direction, only the horizontal viewing angle range of the user's frontal plane viewing angle range and back plane viewing angle range is adjusted, and the adjustment results are [θ1±β,θ2±β] and [α1±β,α2±β]; among them, when the user's head turns horizontally to the left, the angles are subtracted, and when the user's head turns horizontally to the left, the angles are added; if the user If the head rotation is a single vertical rotation, only the vertical viewing angle range of the user's frontal viewing angle range and the back viewing angle range is adjusted, and the adjustment results are [θ3±β,θ4±β] and [α3±β,α4±β]; when the user's head is vertically lowered, the angles are subtracted, and when the user's head is vertically raised, the angles are added; if the user's head rotation occurs in both the horizontal and vertical directions, the horizontal and vertical viewing angle ranges of the user's frontal viewing angle range and the back viewing angle range are adjusted, and the adjustment result is [θ1±β h ,θ2±β h ], [θ3±β v ,θ4±β v ] and [α1±β h ,α2±β h ]、[α3±β v ,α4±β v ]; Among them, when the user's head is rotated to the upper left, the horizontal viewing angle of the plane changes to angle subtraction, and the vertical viewing angle changes to angle addition; when the user's head is rotated to the lower left, the horizontal viewing angle of the plane changes to angle subtraction, and the vertical viewing angle changes to angle subtraction; when the user's head is rotated to the upper right, the horizontal viewing angle of the plane changes to angle addition, and the vertical viewing angle changes to angle addition; when the user's head is rotated to the lower right, the horizontal viewing angle of the plane changes to angle addition, and the vertical viewing angle changes to angle subtraction;
[0022] S303, automatically adjusting the plane range according to the user's motion trajectory, performing dynamic real scene mapping simulation on the spatial data of the front plane in the virtual space, and performing static real scene data dormant storage on the spatial data of the back plane in the virtual space; wherein the data dormant space is the space behind the user's back on the vertical plane parallel to the vertical plane where the user is standing still in the back plane at a distance s; wherein s is the distance from the hand end to the sole of the foot when the user's arms and legs are in a straight line; this dynamic and static adjustment of spatial data by real-time tracking of the user's trajectory can reduce the overall calculation amount of the virtual space and the probability of erroneous data while meeting the user's VR needs;
[0023] S304, in the virtual space, a dynamic spatial coordinate system of the virtual space is constructed with the position of the user's eyes as the spatial coordinate base point; the coordinate data of each object data point of the virtual scene mapped in the virtual space is obtained by using the spatial coordinate system; the object data and environmental data at the position corresponding to each coordinate point in the space in the real scene are stored in a data tree in an inward manner; wherein the object data is the data of the object in the real scene obtained after image blurring and enhancement processing, which includes the color data, brightness data and contour data of the object; the data tree inward manner is stored as follows: when the data at this point is called, the data is displayed in the form of a data tree; when it is not called, it is saved through inward encapsulation; wherein the branches of the data tree are the object data type and environmental data type of the current position, the root of which is the current position data, and the trunk and branch parts are the occupied space after the normalization transformation of the object data and the environmental data;
[0024] When analyzing the difference between the scene in the virtual space and the real scene, a dynamic comparative analysis is performed on the virtual scene and the real scene by constructing a comparative model, wherein the steps of constructing the model are as follows:
[0025] S304-1. Perform difference analysis by retrieving the data at the same mapping space position, normalize and transform the object data and environment data at the same position; superimpose the data trees at the same coordinates by parallel mapping, and calculate the difference value λ between the two data trees, which is calculated as follows: Among them, P vs is the spatial volume of the data tree at the coordinate point in the virtual space, P rs is the spatial volume of the data tree at the coordinate point in the real scene; if λ>1+γ or λ<1-γ, it is judged that there is a difference between the environmental data at the current coordinate point in the virtual scene and the environmental data in the real scene; where γ is the error correction value; if the data difference between a point in the virtual scene and the corresponding point in the real scene is small, it is considered to be caused by data calculation error, or the difference is too small to attract the user's attention, so the results of such small calculation differences are considered to be consistent between the virtual scene and the real scene;
[0026] S304-2, perform spherical radiation around a coordinate point, and take V as the unit radiation volume, count the number of coordinate points in the unit radiation sphere where there are differences between the virtual scene and the real scene, and calculate the difference ratio k in the unit radiation sphere, the calculation formula is: Where m is the number of difference coordinate points in the unit radiation sphere, and M is the total number of coordinate points in the unit radiation sphere;
[0027] S304-3. By analyzing the difference data of two or more unit radiation balls in the positive plane and dynamic data back plane space in the virtual space, the comprehensive difference degree η of each unit radiation ball is calculated. The calculation formula is: Among them, λ(m) is the difference value set of each difference coordinate point in the unit radiation sphere; collect the distance z from the center point of each unit radiation sphere to the coordinate base point, then take is the distance influence coefficient, and the data difference influence D of each unit radiation sphere is calculated. The calculation formula is D = q*η;
[0028] S304-4. Sort the data difference results of each unit radiation ball by numerical value, and formulate the correction update order of the difference data corresponding to the unit radiation ball position in the virtual space in descending order; by introducing the distance between the location of the difference data in the virtual space and the user as the influence coefficient, the data difference degree is calculated, which can ensure that the data at the location with large data difference and the data close to the user experience are comprehensively evaluated, so as to formulate a reasonable update priority.
[0029] In S400, the data is updated and output, the virtual scene is adaptively regulated, and the regulated data is intelligently prompted to the user. The specific steps of completing the virtual scene update according to the user's instructions are as follows:
[0030] S401, according to the priority sorting result of the difference positions that need to be corrected in the virtual scene, the data of the corresponding positions in the real scene are retrieved and replaced and mapped to the virtual scene;
[0031] S402: After the virtual scene data is updated, the original data of the virtual scene before the update is retained in the user's current virtual scene experience for the user to restore the data.
[0032] A space layout system based on virtual reality, comprising a real scene data acquisition module, a virtual scene construction module, a difference data determination module, and an adaptive update module;
[0033] The real scene data acquisition module uses data acquisition equipment at the front end to collect image data and environmental data in the real scene; the virtual scene construction module performs preprocessing operations on the collected data, performs image blurring and color enhancement on the processed image data, and enhances the enhanced color boundary pixels to display the object contour, and rematches the contour data to build two-dimensional plane scene data, and completes the virtual scene construction by parallel mapping the two-dimensional scene data to the virtual space; the difference data determination module projects the user's virtual image and tracks the user's movement trajectory in the virtual scene, distinguishes the virtual space according to the user's trajectory, and adjusts the dynamic and static state of the virtual space data according to the plane; analyzes the difference between the corresponding positions of the virtual scene and the real scene in the dynamic data plane, and calculates the data update priority according to the regional difference; the adaptive update module retains the original data of the virtual scene once according to the update priority of the difference area, and replaces and updates the data in the difference area;
[0034] The real scene data acquisition module is connected to the virtual scene construction module; the virtual scene construction module is connected to the difference data determination module; the difference data determination module is connected to the adaptive update module.
[0035] The real-scene data acquisition module includes a multi-angle data acquisition unit and a data encapsulation and transmission unit; the multi-angle data acquisition unit determines the area range of data required to be collected in the real scene, divides the determined area into sub-areas, and collects multi-view data for each sub-area; the multi-view data acquisition uses drone equipment to collect timeline field data of the real scene at different heights and multiple angles; the cruise intelligent robot simulates the real user's perspective to perform route planning to collect scene data in different sub-areas at different times; the real-time scene data in different sub-areas are captured by setting up a camera device; wherein the data collected by the drone and the intelligent robot include real scene image data and environmental data; the environmental data includes temperature data, humidity data, wind speed and direction data and air pressure data of the real scene; the data encapsulation unit integrates the collected data, encapsulates the integrated data into data packets with the corresponding time and sub-area number, and sends it to the back-end data center; the sub-area number is to mark each sub-area with a number after determining the real scene area for data collection and dividing it into sub-areas.
[0036] The virtual scene construction module includes a data preprocessing unit, an image data enhancement unit and a virtual scene construction unit; the data preprocessing unit independently slices the data according to time and region to obtain image data and environmental data of different time lines of each region corresponding to the real scene; the sliced data are cleaned, screened and filled, and the processed image data are placed on a normalized plane through dimension adjustment and expansion operations; the image data enhancement unit normalizes and divides the image data of each sub-region in the plane with the region number as the first-level division layer label; the image data of the same time point in the corresponding sub-region is clustered with the time node data of the image as the second-level division layer label; the image pixel data of the clustered image data is located, and the data of each pixel is extracted; the pixel data is color data and brightness data; the real The pixels of the scene object image are blurred; the brightness of the object pixel boundaries of the blurred image is enhanced to obtain the occupied contours of each object in the image data; the image data processed in the same sub-region at the same time point is matched, and the different matched image data are spliced to obtain image data with higher integrity; this operation is repeated until the sub-region image data at the same time point is completely constructed; the virtual scene construction unit uses the restored two-dimensional image data as the reference object, and uses the scaling ratio of the image data collection as the restoration ratio factor to fill the three-dimensional space scene in the virtual space by mapping; in the mapped scene space, the environmental data of the corresponding time point position is mixed into the restored scene area and moment, so as to realize the virtual parallel space mapping of the real scene at a certain moment and position; the multi-time point virtual mapping scene is connected with the corresponding time line to realize the construction of the virtual scene.
[0037] The difference data determination module includes a user trajectory tracking unit, a dynamic and static data control unit and a data difference determination unit; when the user logs into the virtual scene, the user trajectory tracking unit obtains the user's body data after granting permission to the user, and constructs the user's virtual character image in the virtual scene through the twin technology based on the user's body data; the user's behavior trajectory in the virtual space is captured by the sensor installed in the VR device worn by the user; the user's behavior trajectory includes the user's head movement trajectory, hand movement trajectory, leg movement trajectory and torso movement trajectory; when the dynamic and static data control unit changes according to the user's movement posture, the user's observable virtual scene changes in the virtual space according to the user's perspective. The virtual space is dynamically divided into a front plane and a back plane according to a range interval; wherein the observable plane facing the user's face is the front plane in the virtual space, and the unobservable plane facing the user's back is the back plane in the virtual space; according to the user's dynamic motion range and observation range, a dynamic real scene mapping simulation is performed on the front plane and the back plane area that the user can touch, and a static real scene data dormant storage is performed on the back plane area that the user cannot touch and cannot observe; the data difference determination unit constructs a data comparison model between the real scene data and the virtual scene data, and calculates and analyzes the difference point data, the difference area data and the degree of influence of the difference area between the two scenes through the model, and sorts the correction priority of the difference area.
[0038] The adaptive update module includes a data update control unit and a data restoration unit; the data update control unit retrieves the data of the corresponding position in the real scene and replaces it in the virtual scene according to the priority sorting result of the difference position that needs to be corrected in the virtual scene; after updating the virtual scene data, the data restoration unit retains the original data of the virtual scene before the update in the user's current virtual scene experience for the user to restore the data.
[0039] Compared with the prior art, the beneficial effects achieved by the present invention are as follows: the present invention realizes data collection from the front end, data processing from the back end, and construction of virtual scenes in the cloud through the action of multiple modules, so as to realize synchronous update of the cloud and the actual scene; the present application performs dynamic plane classification of the virtual scene by tracking the user's action trajectory in the virtual scene, and synchronously maps the virtual space that is visually touchable and visible to the user with the actual environment to simulate the data scene in the actual environment, and for the virtual space that is not touchable and visible to the user, the data before it is mapped and static is retained, and the data is maintained without participating in the change of the real environment. This approach can reduce the amount of calculation in the cloud while satisfying the user's experience of the actual scene, and can more efficiently and correctly ensure the operation of the virtual scene; in addition, in the dynamic data virtual scene area, by constructing a comparison model, the virtual space scene data and the real scene data are compared and analyzed in real time, and the update priority of the virtual space difference data is analyzed in many aspects by combining the calculation error, the degree of influence of the regional difference data and the user's body perception, so as to ensure that the authenticity and correctness of the virtual space are maintained without the user's perception. BRIEF DESCRIPTION OF THE DRAWINGS
[0040] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0041] Figure 1 It is a structural schematic diagram of a space arrangement system based on virtual reality of the present invention. DETAILED DESCRIPTION
[0042] 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.
[0043] See also Figure 1 , the present invention provides a technical solution:
[0044] A space arrangement method based on virtual reality, the method comprising the following steps:
[0045] S100, installing a monitoring device at the real scene in advance to collect image data and dynamic environment data of the real scene, and encapsulating the data and transmitting it to the backend data center;
[0046] S200, the data center decapsulates and extracts the received data and performs data information detection, performs pixel information plane extraction on the detected image data and performs image boundary pixel enhancement, splices multi-pixel information and restores the plane scene, and spatially projects the plane scene information in combination with the environmental data to build a virtual reality scene;
[0047] S300, in a virtual scene, mapping the user's body data to a virtual scene, tracking the user's motion trajectory in the virtual scene, automatically regulating the dynamic and static state of the data in the virtual environment by parallel mapping the real scene environment, and constructing a comparison model, dynamically comparing the real scene data with the virtual scene data through the model, and formulating an adaptive update plan according to the comparison results;
[0048] S400, adaptively control the data of the virtual scene through data update output, and intelligently prompt the user with the control data to complete the virtual scene update according to the user's instructions.
[0049] The specific steps of collecting image data and dynamic environment data of the real scene in advance at the real scene monitoring device in S100, and packaging and transmitting the data to the back-end data center are as follows:
[0050] S101, by determining the area range of the real scene where data needs to be collected, the determined area is divided into sub-areas, and multi-view data is collected for each sub-area; the multi-view data collection is performed by using drone equipment to collect timeline field data of the real scene at different heights and multiple angles; the cruise intelligent robot simulates the real user's perspective to perform route planning to collect scene data in different sub-areas at different times; the real-time scene data in different sub-areas is collected by setting up a camera device; wherein the data collected by the drone and the intelligent robot include real scene image data and environmental data; the environmental data include real scene temperature data, humidity data, wind speed and direction data and air pressure data;
[0051] S102. After integrating the collected data, encapsulate the integrated data into data packets with corresponding time and sub-area numbers and send them to the back-end data center; the sub-area numbers are numbered and marked on each sub-area after determining the actual scene area for data collection and dividing it into sub-areas.
[0052] In S200, the data center unpacks and extracts the received data and performs data information detection, extracts pixel information planes from the detected image data and enhances image boundary pixels, splices multi-pixel information and restores the plane scene, and spatially projects the plane scene information in combination with the environmental data to build a virtual reality scene. The specific steps are as follows:
[0053] S201, the data center receives the encapsulated data, and independently slices the data by time and region to obtain image data and environmental data of different time lines of each region corresponding to the real scene; the sliced data is cleaned, screened and filled, and the processed image data is adjusted and expanded so that the image data of each sub-region at the same time point is placed on a normalized plane;
[0054] S202, in a plane, using the region number as a first-level division label, normalize and divide the image data of each sub-region; using the time node data of the image as a second-level division label, cluster the image data of the same time point in the corresponding sub-region; locate the image pixel data of the clustered image data, and extract the data of each pixel point; the pixel data is color data and brightness data;
[0055] S203, performing pixel blurring processing on the image pixels of the real scene objects in the single image using the pixel color data and brightness data; enhancing the brightness of the object pixel boundaries on the blurred image to obtain the occupied contours of each object in the image data; performing contour matching on the processed image data of the same sub-region at the same time point, and splicing the matched different image data to obtain image data with higher integrity; repeating this operation until the sub-region image data at the same time point is completely constructed;
[0056] S204, taking the restored two-dimensional image data as the control object, using the scaling ratio of the image data collection as the restoration ratio factor, and filling the three-dimensional space scene in the virtual space by mapping; in the mapped scene space, the environmental data of the corresponding time point position is mixed into the restored scene area and moment, so as to realize the virtual parallel space mapping of the real scene at a certain moment and position; the multi-time point virtual mapping scenes are connected with the corresponding time line to realize the construction of the virtual scene.
[0057] In the S300, in the virtual scene, the user's body data is mapped to the virtual scene, the movement trajectory of the user in the virtual scene is tracked, and the dynamic and static data in the virtual environment are automatically regulated by parallel mapping the real scene environment, and a comparison model is constructed. The real scene data and the virtual scene data are dynamically compared through the model, and an adaptive update plan is formulated according to the comparison results:
[0058] S301, when a user logs into a virtual scene, obtaining the user's body data after granting permission to the user, and constructing a virtual character image of the user in the virtual scene through twin technology based on the user's body data;
[0059] S302, the user's behavior trajectory in the virtual space is captured by the sensor installed in the VR device worn by the user; the user's behavior trajectory includes the user's head movement trajectory, hand movement trajectory, leg movement trajectory and torso movement trajectory; the user's face is facing the observable surface as the front plane in the virtual space, and its initial user horizontal viewing angle range is [θ1, θ2], and the initial user vertical viewing angle range is [θ3, θ4]; the corresponding user's back is facing the unobservable surface as the back plane in the virtual space, and its initial user horizontal viewing angle range is [α1, α2], and the initial user vertical viewing angle range is [α3, α4]; the user's head trajectory is captured, and if the captured user's head rotation angle is β, the rotation components β of the user's head rotation in the horizontal and vertical directions are calculated respectively h and β v , the calculation formula is β h =β*sinβ,β v =β*cosβ; where θ1 is the starting angle value of the initial horizontal viewing angle of the user's front plane, θ2 is the ending angle value of the initial horizontal viewing angle of the user's front plane, θ3 is the starting angle value of the initial vertical viewing angle of the user's front plane, θ4 is the ending angle value of the initial vertical viewing angle of the user's front plane, α1 is the starting angle value of the initial horizontal viewing angle of the user's back plane, α2 is the ending angle value of the initial horizontal viewing angle of the user's front plane, α3 is the starting angle value of the initial vertical viewing angle of the user's front plane, and α4 is the ending angle value of the initial vertical viewing angle of the user's front plane; corresponding to the rotation of the user's head, the user's front plane viewing angle range and the back plane viewing angle range in the virtual space are dynamically adjusted; if the user's head rotation is a single horizontal rotation, only the horizontal viewing angle range of the user's front plane viewing angle range and the back plane viewing angle range are adjusted The adjustment results are [θ1±β,θ2±β] and [α1±β,α2±β]; among which, when the user's head is turned horizontally to the left, the angles are subtracted, and when the user's head is turned horizontally to the left, the angles are added; if the user's head is turned in a single vertical direction, only the vertical viewing angle range of the user's front plane viewing angle range and the back plane viewing angle range is adjusted, and the adjustment results are [θ3±β,θ4±β] and [α3±β,α4±β]; among which, when the user's head is vertically lowered, the angles are subtracted, and when the user's head is vertically raised, the angles are added; if the user's head is turned in both the horizontal and vertical directions, the horizontal and vertical viewing angle ranges of the user's front plane viewing angle range and the back plane viewing angle range are adjusted, and the adjustment result is [θ1±β h ,θ2±β h ], [θ3±β v ,θ4±β v ] and [α1±β h ,α2±β h ]、[α3±β v ,α4±βv ]; Among them, when the user's head is rotated to the upper left, the horizontal viewing angle of the plane changes to angle subtraction, and the vertical viewing angle changes to angle addition; when the user's head is rotated to the lower left, the horizontal viewing angle of the plane changes to angle subtraction, and the vertical viewing angle changes to angle subtraction; when the user's head is rotated to the upper right, the horizontal viewing angle of the plane changes to angle addition, and the vertical viewing angle changes to angle addition; when the user's head is rotated to the lower right, the horizontal viewing angle of the plane changes to angle addition, and the vertical viewing angle changes to angle subtraction;
[0060] S303, automatically adjusting the plane range according to the user's motion trajectory, performing dynamic real scene mapping simulation on the spatial data of the front plane in the virtual space, and performing static real scene data dormancy storage on the spatial data of the back plane in the virtual space; wherein the data dormant space is the space behind the user's back in the back plane that is parallel to the vertical plane at a distance s from the vertical plane where the user is standing still; wherein s is the distance from the hand end to the sole of the foot when the user's arms and legs are in a straight line;
[0061] S304, in the virtual space, a dynamic space coordinate system of the virtual space is constructed with the position of the user's eyes as the space coordinate base point; the coordinate data of each object data point of the virtual scene mapped in the virtual space is obtained by using the space coordinate system; the object data and environment data at the position in the real scene corresponding to each coordinate point in the space are stored in a data tree in an inward manner; wherein the object data is the data of the object in the real scene obtained after image blurring and enhancement processing, and includes color data, brightness data and contour data of the object;
[0062] When analyzing the difference between the scene in the virtual space and the real scene, a dynamic comparative analysis is performed on the virtual scene and the real scene by constructing a comparative model, wherein the steps of constructing the model are as follows:
[0063] S304-1. Perform difference analysis by retrieving the data at the same mapping space position, normalize and transform the object data and environment data at the same position; superimpose the data trees at the same coordinates by parallel mapping, and calculate the difference value λ between the two data trees, which is calculated as follows: Among them, P vs is the spatial volume of the data tree at the coordinate point in the virtual space, P rs is the spatial volume of the data tree at the coordinate point in the real scene; if λ>1+γ or λ<1-γ, it is judged that there is a difference between the environmental data at the current coordinate point in the virtual scene and the environmental data in the real scene; where γ is the error correction value;
[0064] S304-2, perform spherical radiation around a coordinate point, and take V as the unit radiation volume, count the number of coordinate points in the unit radiation sphere where there are differences between the virtual scene and the real scene, and calculate the difference ratio k in the unit radiation sphere, the calculation formula is: Where m is the number of difference coordinate points in the unit radiation sphere, and M is the total number of coordinate points in the unit radiation sphere;
[0065] S304-3. By analyzing the difference data of two or more unit radiation balls in the positive plane and dynamic data back plane space in the virtual space, the comprehensive difference degree η of each unit radiation ball is calculated. The calculation formula is: Among them, λ(m) is the difference value set of each difference coordinate point in the unit radiation sphere; collect the distance z from the center point of each unit radiation sphere to the coordinate base point, then take is the distance influence coefficient, and the data difference influence D of each unit radiation sphere is calculated. The calculation formula is D = q*η;
[0066] S304-4. Sort the data difference results of each unit radiation ball by numerical value, and determine the correction and update sequence of the difference data corresponding to the unit radiation ball position in the virtual space in descending order.
[0067] In S400, the data is updated and output, the virtual scene is adaptively regulated, and the regulated data is intelligently prompted to the user. The specific steps of completing the virtual scene update according to the user's instructions are as follows:
[0068] S401, according to the priority sorting result of the difference positions that need to be corrected in the virtual scene, the data of the corresponding positions in the real scene are retrieved and replaced and mapped to the virtual scene;
[0069] S402: After the virtual scene data is updated, the original data of the virtual scene before the update is retained in the user's current virtual scene experience for the user to restore the data.
[0070] A space layout system based on virtual reality, comprising a real scene data acquisition module, a virtual scene construction module, a difference data determination module, and an adaptive update module;
[0071] The real scene data acquisition module uses data acquisition equipment at the front end to collect image data and environmental data in the real scene; the virtual scene construction module performs preprocessing operations on the collected data, performs image blurring and color enhancement on the processed image data, and enhances the enhanced color boundary pixels to display the object contour, and rematches the contour data to build two-dimensional plane scene data, and completes the virtual scene construction by parallel mapping the two-dimensional scene data to the virtual space; the difference data determination module projects the user's virtual image and tracks the user's movement trajectory in the virtual scene, distinguishes the virtual space according to the user's trajectory, and adjusts the dynamic and static state of the virtual space data according to the plane; analyzes the difference between the corresponding positions of the virtual scene and the real scene in the dynamic data plane, and calculates the data update priority according to the regional difference; the adaptive update module retains the original data of the virtual scene once according to the update priority of the difference area, and replaces and updates the data in the difference area;
[0072] The real scene data acquisition module is connected to the virtual scene construction module; the virtual scene construction module is connected to the difference data determination module; the difference data determination module is connected to the adaptive update module.
[0073] The real-scene data acquisition module includes a multi-angle data acquisition unit and a data encapsulation and transmission unit; the multi-angle data acquisition unit determines the area range of data required to be collected in the real scene, divides the determined area into sub-areas, and collects multi-view data for each sub-area; the multi-view data acquisition uses drone equipment to collect timeline field data of the real scene at different heights and multiple angles; the cruise intelligent robot simulates the real user's perspective to perform route planning to collect scene data in different sub-areas at different times; the real-time scene data in different sub-areas are captured by setting up a camera device; wherein the data collected by the drone and the intelligent robot include real scene image data and environmental data; the environmental data includes temperature data, humidity data, wind speed and direction data and air pressure data of the real scene; the data encapsulation unit integrates the collected data, encapsulates the integrated data into data packets with the corresponding time and sub-area number, and sends it to the back-end data center; the sub-area number is to mark each sub-area with a number after determining the real scene area for data collection and dividing it into sub-areas.
[0074] The virtual scene construction module includes a data preprocessing unit, an image data enhancement unit and a virtual scene construction unit; the data preprocessing unit independently slices the data according to time and region to obtain image data and environmental data of different time lines of each region corresponding to the real scene; the sliced data are cleaned, screened and filled, and the processed image data are placed on a normalized plane through dimension adjustment and expansion operations; the image data enhancement unit normalizes and divides the image data of each sub-region in the plane with the region number as the first-level division layer label; the image data of the same time point in the corresponding sub-region is clustered with the time node data of the image as the second-level division layer label; the image pixel data of the clustered image data is located, and the data of each pixel is extracted; the pixel data is color data and brightness data; the real The pixels of the scene object image are blurred; the brightness of the object pixel boundaries of the blurred image is enhanced to obtain the occupied contours of each object in the image data; the image data processed in the same sub-region at the same time point is matched, and the different matched image data are spliced to obtain image data with higher integrity; this operation is repeated until the sub-region image data at the same time point is completely constructed; the virtual scene construction unit uses the restored two-dimensional image data as the reference object, and uses the scaling ratio of the image data collection as the restoration ratio factor to fill the three-dimensional space scene in the virtual space by mapping; in the mapped scene space, the environmental data of the corresponding time point position is mixed into the restored scene area and moment, so as to realize the virtual parallel space mapping of the real scene at a certain moment and position; the multi-time point virtual mapping scene is connected with the corresponding time line to realize the construction of the virtual scene.
[0075] The difference data determination module includes a user trajectory tracking unit, a dynamic and static data control unit and a data difference determination unit; when the user logs into the virtual scene, the user trajectory tracking unit obtains the user's body data after granting permission to the user, and constructs the user's virtual character image in the virtual scene through the twin technology based on the user's body data; the user's behavior trajectory in the virtual space is captured by the sensor installed in the VR device worn by the user; the user's behavior trajectory includes the user's head movement trajectory, hand movement trajectory, leg movement trajectory and torso movement trajectory; when the dynamic and static data control unit changes according to the user's movement posture, the user's observable virtual scene changes in the virtual space according to the user's perspective. The virtual space is dynamically divided into a front plane and a back plane according to a range interval; wherein the observable plane facing the user's face is the front plane in the virtual space, and the unobservable plane facing the user's back is the back plane in the virtual space; according to the user's dynamic motion range and observation range, a dynamic real scene mapping simulation is performed on the front plane and the back plane area that the user can touch, and a static real scene data dormant storage is performed on the back plane area that the user cannot touch and cannot observe; the data difference determination unit constructs a data comparison model between the real scene data and the virtual scene data, and calculates and analyzes the difference point data, the difference area data and the degree of influence of the difference area between the two scenes through the model, and sorts the correction priority of the difference area.
[0076] The adaptive update module includes a data update control unit and a data restoration unit; the data update control unit retrieves the data of the corresponding position in the real scene and replaces it in the virtual scene according to the priority sorting result of the difference position that needs to be corrected in the virtual scene; after updating the virtual scene data, the data restoration unit retains the original data of the virtual scene before the update in the user's current virtual scene experience for the user to restore the data.
[0077] In the examples:
[0078] There is a "VR+tourism" project that needs to build a cloud-based virtual reality scene for a scenic spot and be able to synchronize data updates and maintenance, and it adopts this application solution;
[0079] First, the scenic area is divided into sub-areas and data is collected by area. Image data and environmental data in the sub-areas are collected by drones, intelligent robots and sensor equipment. After the collected data is integrated, the integrated data is packaged into data packets with corresponding time and sub-area numbers and sent to the back-end data center.
[0080] The data center receives the encapsulated data, slices the data independently by time and region to obtain the image data and environmental data of different time lines of each region of the real scene; cleans, screens and fills the sliced data, and places the processed image data at the same time point on a normalized plane through dimension adjustment and expansion operations; uses the region number as the first-level division layer label to normalize and divide the image data of each sub-region; uses the time node data of the image as the second-level division layer label to cluster the image data at the same time point in the corresponding sub-region; locates the image pixel data of the clustered image data and extracts the data of each pixel; uses the pixel color data and brightness data to perform pixel blur processing on the image pixels of the real scene object in the single image; and performs object The brightness of the volume pixel boundary is enhanced to obtain the occupied contours of each object in the image data; by performing contour matching on the processed image data of the same sub-region at the same time point, the different matched image data are spliced to obtain image data with higher integrity; this operation is repeated until the sub-region image data at the same time point is completely constructed; the restored two-dimensional image data is used as the reference object, and the scaling ratio of the image data acquisition is used as the restoration ratio factor to fill the three-dimensional space scene in the virtual space by mapping; in the mapped scene space, the environmental data of the corresponding time point position is mixed into the restored scene area and moment, so as to realize the virtual parallel space mapping of the real scene at a certain moment and position; the multi-time point virtual mapping scene is connected with the corresponding time line to realize the construction of the virtual scene;
[0081] When the user logs in to the virtual scene, the user's body data is obtained after the user's permission is granted, and the user's virtual character image is constructed in the virtual scene through the twin technology based on the user's body data; the user's behavior trajectory in the virtual space is captured through the sensors installed in the VR device worn by the user; the current user's horizontal head left turn is captured Then the horizontal visual range of the dynamic positive plane in the virtual space is Then the vertical visual range of the dynamic positive plane in the virtual space is Here, the horizontal visual range of a normal person looking straight ahead is π, and the leftmost side of the visual range is 0; the vertical visual range is The bottom of the visual range is 0 for calculation. The horizontal range of the normal plane is [0, π], and the vertical range is Then the horizontal visual range of the dynamic back plane in the virtual space is The vertical visual range of the dynamic back plane is Perform dynamic real scene mapping simulation on the spatial data of the front plane in the virtual space and the space behind the user's back on the vertical plane parallel to the vertical plane where the user is standing still at a distance of 2 meters in the back plane, and perform static real scene data dormant storage on the remaining back plane spatial data;
[0082] Construct a comparison model in the virtual space and analyze the difference area. Take a point (2,4,7) in the simulation space and do a difference analysis with the corresponding point in the real scene. Superimpose the data trees at the same coordinates through parallel mapping, and calculate the difference value λ between the two data trees. The calculation method is: The calculation result is 0.8; since λ<1-γ, where γ is 0.1; it is judged that there is a difference between the environmental data at the current coordinate point in the virtual scene and the environmental data in the real scene; the surrounding spherical radiation is performed with the current coordinate point, and 2 cubic meters is taken as the unit radiation volume. The number of coordinate points in the unit radiation sphere where there is a difference between the virtual scene and the real scene is counted, and the difference ratio k in the unit radiation sphere is calculated. The calculation formula is: The calculation result is 0.1; by analyzing the difference data of the two unit radiation balls 1 and 2 in the positive plane and the dynamic data back plane space in the virtual space, the comprehensive difference degree η of each unit radiation ball is calculated, and the calculation formula is: The calculated results are 0.09 for sphere 1 and 0.17 for sphere 2. The distances from the center point of each unit radiation sphere to the coordinate base point are 4 for sphere 1 and 2 for sphere 2. is the distance influence coefficient, and the data difference influence degree D of each unit radiation ball is calculated. The calculation formula is D=q*η, and the calculation result is 0.025 for ball 1 and 0.085 for ball 2. Since the difference influence degree of ball 2 is greater than that of ball 1, ball 2 is updated first. The data of the corresponding position in the real scene is retrieved and replaced and mapped to the virtual scene. After the virtual scene data is updated, the original data of the virtual scene before the update is retained in the user's current virtual scene experience for the user to restore the data.
[0083] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.
[0084] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A space arrangement method based on virtual reality, Features: The method comprises the following steps: S100, installing a monitoring device at the real scene in advance to collect image data and dynamic environment data of the real scene, and encapsulating the data and transmitting it to the backend data center; S200, the data center decapsulates and extracts the received data and performs data information detection, performs pixel information plane extraction on the detected image data and performs image boundary pixel enhancement, splices multi-pixel information and restores the plane scene, and spatially projects the plane scene information in combination with the environmental data to build a virtual reality scene; S300, in a virtual scene, mapping the user's body data to a virtual scene, tracking the user's motion trajectory in the virtual scene, automatically regulating the dynamic and static state of the data in the virtual environment by parallel mapping the real scene environment, and constructing a comparison model, dynamically comparing the real scene data with the virtual scene data through the model, and formulating an adaptive update plan according to the comparison results; In the S300, in the virtual scene, the user's body data is mapped to the virtual scene, the movement trajectory of the user in the virtual scene is tracked, and the dynamic and static data in the virtual environment are automatically regulated by parallel mapping the real scene environment, and a comparison model is constructed. The real scene data and the virtual scene data are dynamically compared through the model, and an adaptive update plan is formulated according to the comparison results: S301, when a user logs into a virtual scene, obtaining the user's body data after granting permission to the user, and constructing a virtual character image of the user in the virtual scene through twin technology based on the user's body data; S302, capturing the user's behavior trajectory in the virtual space through the sensor installed in the VR device worn by the user; the user's behavior trajectory includes the user's head movement trajectory, hand movement trajectory, leg movement trajectory and torso movement trajectory; the user's face is facing the observable surface as the positive plane in the virtual space, and its initial user horizontal viewing angle range is [θ 1 ,θ 2 ], the initial user vertical viewing angle range is [θ 3 ,θ 4 ]; then the unobservable surface corresponding to the user’s back is the back plane in the virtual space, and its initial user horizontal viewing angle range is [α 1 , α 2 ], the initial user vertical viewing angle range is [α 3 , α 4 ]; Capture the user's head trajectory. If the captured user's head rotation angle is β, calculate the rotation components β of the user's head rotation in the horizontal and vertical directions respectively. h and β v , the calculation formula is β h =β*sinβ,β v =β*cosβ; where θ 1 is the starting angle value of the initial horizontal viewing angle of the user's front plane, θ 2 is the end point angle value of the initial horizontal viewing angle of the user's front plane, θ 3 is the starting angle value of the initial vertical viewing angle of the user's front plane, θ 4 is the end point angle value of the initial vertical viewing angle of the user's front plane, α 1 is the starting angle value of the initial horizontal viewing angle of the user's back plane, α 2 is the end point angle value of the initial horizontal viewing angle of the user's front plane, α 3 is the starting angle value of the initial vertical viewing angle of the user's front plane, α 4 is the end angle value of the initial vertical viewing angle of the user's front plane; corresponding to the rotation of the user's head, the viewing angle range of the user's front plane and the viewing angle range of the back plane in the virtual space are dynamically adjusted; if the user's head rotation is a single horizontal rotation, only the horizontal viewing angle range of the user's front plane and the viewing angle range of the back plane is adjusted, and the adjustment result is [θ 1 ±β,θ 2 ±β] and [α 1 ±β,α 2 ±β]; when the user's head is turned horizontally to the left, the angle is subtracted; when the user's head is turned horizontally to the left, the angle is added; if the user's head is turned in a single vertical direction, only the vertical viewing angle range of the user's frontal viewing angle range and the back viewing angle range is adjusted, and the adjustment result is [θ 3 ±β,θ 4 ±β] and [α 3 ±β,α 4 ±β]; when the user's head is vertically lowered, the angles are subtracted; when the user's head is vertically raised, the angles are added; if the user's head rotates in both the horizontal and vertical directions, the horizontal and vertical viewing angles of the user's frontal and back plane viewing angles are adjusted, and the adjustment result is [θ 1 ±β h ,θ 2 ±β h ]、[θ 3 ±β v ,θ 4 ±β v ] and [α 1 ±β h ,α 2 ±β h ]、[α 3 ±β v ,α 4 ±β v ]; Among them, when the user's head is rotated to the upper left, the horizontal viewing angle of the plane changes to angle subtraction, and the vertical viewing angle changes to angle addition; when the user's head is rotated to the lower left, the horizontal viewing angle of the plane changes to angle subtraction, and the vertical viewing angle changes to angle subtraction; when the user's head is rotated to the upper right, the horizontal viewing angle of the plane changes to angle addition, and the vertical viewing angle changes to angle addition; when the user's head is rotated to the lower right, the horizontal viewing angle of the plane changes to angle addition, and the vertical viewing angle changes to angle subtraction; S303, automatically adjusting the plane range according to the user's motion trajectory, performing dynamic real scene mapping simulation on the spatial data of the front plane in the virtual space, and performing static real scene data dormancy storage on the spatial data of the back plane in the virtual space; wherein the data dormant space is the space behind the user's back on the vertical plane parallel to the vertical plane where the user is standing still in the back plane at a distance s; wherein s is the distance from the hand end to the sole of the foot when the user's arms and legs are in a straight line; S304, in the virtual space, a dynamic space coordinate system of the virtual space is constructed with the position of the user's eyes as the space coordinate base point; the coordinate data of each object data point of the virtual scene mapped in the virtual space is obtained by using the space coordinate system; the object data and environment data at the position in the real scene corresponding to each coordinate point in the space are stored in a data tree in an inward manner; wherein the object data is the data of the object in the real scene obtained after image blurring and enhancement processing, and includes color data, brightness data and contour data of the object; When analyzing the difference between the scene in the virtual space and the real scene, a dynamic comparative analysis is performed on the virtual scene and the real scene by constructing a comparative model, wherein the steps of constructing the model are as follows: S304-1. Perform difference analysis by retrieving the data at the same mapping space position, normalize and transform the object data and environment data at the same position; superimpose the data trees at the same coordinates by parallel mapping, and calculate the difference value λ between the two data trees, which is calculated as follows: Among them, P vs is the spatial volume of the data tree at the coordinate point in the virtual space, P rs is the spatial volume of the data tree at the coordinate point in the real scene; if λ>1+γ or λ<1-γ, it is judged that there is a difference between the environmental data at the current coordinate point in the virtual scene and the environmental data in the real scene; where γ is the error correction value; S304-2, perform spherical radiation around a coordinate point, and take V as the unit radiation volume, count the number of coordinate points in the unit radiation sphere where there are differences between the virtual scene and the real scene, and calculate the difference ratio k in the unit radiation sphere, the calculation formula is: Where m is the number of difference coordinate points in the unit radiation sphere, and M is the total number of coordinate points in the unit radiation sphere; S304-3. By analyzing the difference data of two or more unit radiation balls in the positive plane and dynamic data back plane space in the virtual space, the comprehensive difference degree η of each unit radiation ball is calculated. The calculation formula is: Among them, λ(m) is the difference value set of each difference coordinate point in the unit radiation sphere; collect the distance z from the center point of each unit radiation sphere to the coordinate base point, then take is the distance influence coefficient, and the data difference influence D of each unit radiation sphere is calculated. The calculation formula is D = q*η; S304-4, sorting the data difference results of each unit radiation ball by numerical value, and formulating the correction and update order of the difference data corresponding to the unit radiation ball position in the virtual space in descending order; S400, adaptively controlling the virtual scene through data update output, and intelligently prompting the user with the controlled data to complete the virtual scene update according to the user's instructions; In S400, the data is updated and output, the virtual scene is adaptively regulated, and the regulated data is intelligently prompted to the user. The specific steps of completing the virtual scene update according to the user's instructions are as follows: S401, according to the priority sorting result of the difference positions that need to be corrected in the virtual scene, the data of the corresponding positions in the real scene are retrieved and replaced and mapped to the virtual scene; S402: After the virtual scene data is updated, the original data of the virtual scene before the update is retained in the user's current virtual scene experience for the user to restore the data.
2. A method for spatial arrangement based on virtual reality according to claim 1, Features: The specific steps of collecting image data and dynamic environment data of the real scene in advance at the real scene monitoring device in S100, and packaging and transmitting the data to the back-end data center are as follows: S101, by determining the area range of the real scene where data needs to be collected, the determined area is divided into sub-areas, and multi-view data is collected for each sub-area; the multi-view data collection is performed by using drone equipment to collect timeline field data of the real scene at different heights and multiple angles; the cruise intelligent robot simulates the real user's perspective to perform route planning to collect scene data in different sub-areas at different times; the real-time scene data in different sub-areas is collected by setting up a camera device; wherein the data collected by the drone and the intelligent robot include real scene image data and environmental data; the environmental data include real scene temperature data, humidity data, wind speed and direction data and air pressure data; S102. After integrating the collected data, encapsulate the integrated data into data packets with corresponding time and sub-area numbers and send them to the back-end data center; the sub-area numbers are numbered and marked on each sub-area after determining the actual scene area for data collection and dividing it into sub-areas.
3. A method for spatial arrangement based on virtual reality according to claim 2, Features: In S200, the data center unpacks and extracts the received data and performs data information detection, extracts pixel information planes from the detected image data and enhances image boundary pixels, splices multi-pixel information and restores the plane scene, and spatially projects the plane scene information in combination with the environmental data to build a virtual reality scene. The specific steps are as follows: S201, the data center receives the encapsulated data, and independently slices the data by time and region to obtain image data and environmental data of different time lines of each region corresponding to the real scene; the sliced data is cleaned, screened and filled, and the processed image data is adjusted and expanded so that the image data of each sub-region at the same time point is placed on a normalized plane; S202, in the plane, using the region number as the first-level division label, normalize and divide the image data of each sub-region; using the time node data of the image as the second-level division label, cluster the image data of the same time point in the corresponding sub-region; Positioning the image pixel data of the clustered image data and extracting the data of each pixel point; The pixel point data is color data and brightness data; S203, performing pixel blurring processing on the pixels of the real scene object image in the single image using the pixel color data and brightness data; The blurred image is subjected to the brightness enhancement of the object pixel boundary to obtain the occupied contours of each object in the image data; the image data processed in the same sub-region at the same time point is subjected to contour matching, and the matched different image data are spliced to obtain image data with higher integrity; this operation is repeated until the sub-region image data at the same time point is completely constructed; S204, taking the restored two-dimensional image data as the control object, using the scaling ratio of the image data collection as the restoration ratio factor, and filling the three-dimensional space scene in the virtual space by mapping; in the mapped scene space, the environmental data of the corresponding time point position is mixed into the restored scene area and moment, so as to realize the virtual parallel space mapping of the real scene at a certain moment and position; the multi-time point virtual mapping scenes are connected with the corresponding time line to realize the construction of the virtual scene.
4. A space arrangement system based on virtual reality, using a space arrangement method based on virtual reality as claimed in any one of claims 1 to 3, Features: The space arrangement system based on virtual reality includes a real scene data acquisition module, a virtual scene construction module, a difference data determination module, and an adaptive update module; The real scene data acquisition module uses data acquisition equipment at the front end to collect image data and environmental data in the real scene; the virtual scene construction module performs preprocessing operations on the collected data, performs image blurring and color enhancement on the processed image data, and enhances the enhanced color boundary pixels to obtain the object contour, and rematches the contour data to build two-dimensional plane scene data, and completes the virtual scene construction by parallel mapping the two-dimensional scene data to the virtual space; the difference data determination module projects the user's virtual image and tracks the user's action trajectory in the virtual scene, distinguishes the virtual space according to the user's trajectory, and adjusts the data dynamic and static state of the virtual space according to the plane; Analyze the differences between the corresponding positions of the virtual scene and the real scene on the dynamic data plane, and calculate the data update priority according to the regional differences; the adaptive update module retains the original data of the virtual scene once according to the update priority of the difference area, and replaces and updates the data in the difference area; The real scene data acquisition module is connected to the virtual scene construction module; The virtual scene construction module is connected to the difference data determination module; the difference data determination module is connected to the adaptive update module.
5. A space arrangement system based on virtual reality according to claim 4, Features: The real scene data acquisition module includes a multi-angle data acquisition unit and a data encapsulation and transmission unit; the multi-angle data acquisition unit determines the area range of the real scene where data needs to be collected, divides the determined area into sub-areas, and performs multi-view data acquisition on each sub-area; The multi-view data acquisition uses drone equipment to collect real-life timeline data from multiple angles at different heights; uses a cruise intelligent robot to simulate the real user's perspective to plan routes and collect scene data in different sub-areas at different times; and uses a camera device to collect real-time scene data in different sub-areas. The data collected by the drone and the intelligent robot include real-scene image data and environmental data; the environmental data includes temperature data, humidity data, wind speed and direction data, and air pressure data for the real scene. The data encapsulation unit integrates the collected data, encapsulates the integrated data into data packets with the corresponding time and sub-area number, and sends it to the back-end data center. The sub-area number is to mark each sub-area with a number after determining the real scene area for data acquisition and dividing it into sub-areas.
6. A space arrangement system based on virtual reality according to claim 5, Features: The virtual scene construction module includes a data preprocessing unit, an image data enhancement unit and a virtual scene construction unit; the data preprocessing unit independently slices the data by time and region to obtain image data and environmental data of different time lines of each region of the corresponding real scene; cleans, screens and fills the sliced data, and adjusts the dimension and expands the processed image data so that the image data of each sub-region at the same time point is placed on a normalized plane; the image data enhancement unit normalizes and divides the image data of each sub-region in the plane by using the region number as the first-level division layer label; clusters the image data of the same time point in the corresponding sub-region by using the time node data of the image as the second-level division layer label; locates the image pixel data of the clustered image data and extracts the data of each pixel point; The pixel point data is color data and brightness data; The pixel points of the real scene object image in the single image are subjected to pixel blurring processing using pixel color data and brightness data; the brightness of the object pixel boundaries of the blurred image is enhanced to obtain the occupied contours of each object in the image data; the image data processed in the same sub-region at the same time point is subjected to contour matching, and the different matched image data are spliced to obtain image data with higher integrity; this operation is repeated until the sub-region image data at the same time point is completely constructed; the virtual scene construction unit uses the restored two-dimensional image data as the reference object, and uses the scaling ratio of the image data collection as the restoration ratio factor to fill the three-dimensional space scene in the virtual space by mapping; in the mapped scene space, the environmental data of the corresponding time point position is mixed into the restored scene area and moment, so as to realize the virtual parallel space mapping of the real scene at a certain moment and position; the multi-time point virtual mapping scene is connected with the corresponding timeline to realize the construction of the virtual scene.
7. A space arrangement system based on virtual reality according to claim 6, Features: The difference data determination module includes a user trajectory tracking unit, a dynamic and static data control unit and a data difference determination unit; when the user logs into the virtual scene, the user trajectory tracking unit obtains the user's body data after granting permission to the user, and constructs the user's virtual character image in the virtual scene through the twin technology based on the user's body data; the user's behavior trajectory in the virtual space is captured by the sensor installed in the VR device worn by the user; the user's behavior trajectory includes the user's head movement trajectory, hand movement trajectory, leg movement trajectory and torso movement trajectory; when the dynamic and static data control unit changes according to the user's movement posture, the user's observable virtual scene changes in the virtual space according to the user's perspective. The virtual space is dynamically divided into a front plane and a back plane according to a range interval; wherein the observable plane facing the user's face is the front plane in the virtual space, and the unobservable plane facing the user's back is the back plane in the virtual space; according to the user's dynamic motion range and observation range, a dynamic real scene mapping simulation is performed on the front plane and the back plane area that the user can touch, and a static real scene data dormant storage is performed on the back plane area that the user cannot touch and cannot observe; the data difference determination unit constructs a data comparison model between the real scene data and the virtual scene data, and calculates and analyzes the difference point data, the difference area data and the degree of influence of the difference area between the two scenes through the model, and sorts the correction priority of the difference area.
8. A space arrangement system based on virtual reality according to claim 7, Features: The adaptive update module includes a data update control unit and a data restoration unit; the data update control unit retrieves the data of the corresponding position in the real scene and replaces and maps it to the virtual scene according to the priority sorting result of the difference position that needs to be corrected in the virtual scene; After updating the virtual scene data, the data restoration unit retains the original data of the virtual scene before the update in the user's current virtual scene experience for the user to restore the data.
Citation Information
Patent Citations
Real-time human-computer interaction system and method based on virtual reality
CN107193371A
Method and device for establishing virtual reality model based on digital twin model
CN116664804A
