Virtual reality interaction method and device based on respiratory data
By acquiring and processing breathing information and using preset algorithms to perform virtual reality interactive operations, the portability and individual differences of respiratory interaction technology in the virtual reality field are solved, and more natural user experience and emotional support are achieved, suitable for virtual reality and medical care field.
Patent Information
- Application Number
- CN202410021490.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-01-05
- Publication Date
- 2024-11-15
- Estimated Expiration
- 2044-01-05
AI Technical Summary
The existing respiratory control interaction technology has shortcomings in the virtual reality field of mobile platform failure, individual differences, environmental impact, and technical portability and wearability, which cannot meet the growing demand for virtual reality respiratory interaction.
By obtaining the original breathing information, deinterference processing and analysis, the breathing data is determined using the preset breathing algorithm, interactive operations are performed to determine the interaction results, and virtual reality display is performed based on the interaction results to realize virtual reality interaction based on the breathing data.
It enhances the virtual reality experience, provides emotional support and mental health improvement, and is suitable for the medical field. It solves the shortcomings of respiratory interaction technology in portability and individual differences, and improves the naturalness and convenience of interaction.
Smart Images

Figure CN117827003B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of this specification relate to the field of data processing technology, and in particular to a virtual reality interaction method based on respiratory data. Background Art
[0002] Respiration-based interaction technology combines virtual reality with biosignal detection and analysis, aiming to leverage the user's breathing rate and patterns to interact with the virtual environment. Current technologies include the following.
[0003] 1. Biosignal Detection and Analysis: Biosignals reflect the body's internal physiological processes, including respiration, heart rate, and electrical skin activity. Accurately detecting and analyzing respiratory signals is crucial for interactive technologies based on respiratory rate. Advances in sensor technology enable the use of portable sensors or wearable devices, such as chest strap sensors and photoelectric meters, to monitor respiratory rate in real time. By collecting and analyzing respiratory signals, we can identify the fluctuations and frequency of breathing, providing a basis for interaction.
[0004] 2. Virtual Reality: Virtual reality is a computer-generated simulated environment that immerses users in a virtual environment through technologies such as head-mounted displays, controllers, and haptic feedback. VR technology has made significant progress, including advancements in graphics rendering, spatial tracking, and real-time interaction, providing a solid foundation for respiratory-based interaction technology.
[0005] 3. Interaction Design and Human-Computer Interface: Research in interaction design and human-computer interface is dedicated to designing and improving the interaction between humans and computers to provide a better user experience. Respiration-based interaction technology requires converting respiratory signals into instructions or feedback for the virtual environment. This requires in-depth research into users' breathing patterns and habits, and the design of corresponding interaction models and interfaces. This includes research into breathing mapping rules, the definition of interaction instructions, and feedback mechanisms.
[0006] 4. Psychological and Physiological Effects Research: Breathing is closely linked to the human body's psychological and physiological state. Studies have found that adjusting breathing rate and pattern can have positive effects on both the mind and body, such as calming and relaxing, and alleviating anxiety. These psychological and physiological effects provide theoretical and practical foundations for interactive technologies based on breathing rate, supporting their application in the areas of health and relaxation.
[0007] In summary, respiratory rate-based interaction technology combines knowledge and technologies from multiple fields such as biosignal detection and analysis, virtual reality technology, interaction design and human-computer interface, and psychological and physiological effect research to achieve a more natural and immersive user interaction experience.
[0008] Current breath-controlled interaction technologies detect and analyze breathing signals, applying the user's breathing patterns to control devices or applications. For example, breath control can be used to manipulate the movement of game characters or perform gesture-based interactions. This technology enables touchless interaction with computers and smart devices, increasing user engagement. However, current mobile platforms do not support breath-sensing technology. Furthermore, individual differences, environmental influences, and the portability and wearability of the technology require further consideration.
[0009] Faced with the growing demand for breathing interaction in virtual reality, there is an urgent need for innovative technical solutions to breathing interaction in the field of virtual reality. Summary of the Invention
[0010] In light of this, embodiments of this specification provide a virtual reality interaction method based on respiratory data. One or more embodiments of this specification also include a virtual reality interaction apparatus based on respiratory data, a computing device, a computer-readable storage medium, and a computer program to address technical deficiencies in the prior art.
[0011] According to a first aspect of an embodiment of this specification, a virtual reality interaction method based on respiratory data is provided, comprising:
[0012] Obtaining original respiratory information, performing interference removal processing on the respiratory information, and obtaining initial respiratory information;
[0013] Analyze the initial breathing information based on the preset breathing algorithm to obtain breathing data;
[0014] Perform interactive operations based on respiratory data to determine interactive results;
[0015] Perform virtual reality display based on the interaction results.
[0016] In a possible implementation, obtaining original respiratory information and performing interference removal processing on the respiratory information to obtain initial respiratory information includes:
[0017] monitoring respiratory rate information, respiratory volume information, and respiratory volume information, and determining original respiratory information based on the respiratory rate information, respiratory volume information, and respiratory volume information;
[0018] The original breathing information is filtered to obtain the initial breathing information.
[0019] In one possible implementation, the initial breathing information is parsed based on a preset breathing algorithm to obtain breathing data, including:
[0020] The initial breathing information is analyzed based on the preset breathing algorithm to obtain breathing frequency data, breathing volume data and breathing volume data.
[0021] In one possible implementation, performing an interactive operation based on the respiratory data and determining an interactive result includes:
[0022] Determine the current scene and determine the interaction parameters based on the current scene;
[0023] Determine the interaction calculation method based on the interaction parameters;
[0024] Determine interaction data based on breathing data and interaction calculation method;
[0025] Determine interaction outcomes based on interaction data.
[0026] In one possible implementation, the current scene includes a candle-blowing scene;
[0027] Accordingly, interaction data is determined based on the breathing data and the interaction calculation method, including:
[0028] Determine distance and range data based on breathing data and interactive calculations;
[0029] Interaction data is determined based on the distance data and the range data.
[0030] In one possible implementation, determining an interaction result based on the interaction data includes:
[0031] Determine range and distance thresholds;
[0032] Determine distance interaction results based on distance data and distance thresholds;
[0033] determining a range interaction result based on the range data and the range threshold;
[0034] The interaction result is determined based on the range interaction result and the distance interaction result.
[0035] In one possible implementation, determining distance data and range data based on breathing data and interactive calculations includes:
[0036] Determine the distance calculation formula and range calculation formula based on the interactive calculation method;
[0037] determining distance data based on the respiration data and a distance calculation formula;
[0038] The range data is determined based on the respiration data and the range calculation formula.
[0039] According to a second aspect of an embodiment of this specification, a virtual reality interaction device based on respiratory data is provided, comprising:
[0040] An information acquisition module is configured to acquire original respiratory information, perform interference removal processing on the respiratory information, and obtain initial respiratory information;
[0041] a data determination module configured to parse the initial respiratory information based on a preset respiratory algorithm to obtain respiratory data;
[0042] an interaction determination module, configured to perform interaction calculations based on the respiratory data and determine an interaction result;
[0043] The virtual reality module is configured to perform virtual reality display based on the interaction results.
[0044] According to a third aspect of an embodiment of this specification, a computing device is provided, including:
[0045] memory and processor;
[0046] The memory is used to store computer-executable instructions, and the processor is used to execute the computer-executable instructions. When the computer-executable instructions are executed by the processor, the steps of the above-mentioned virtual reality interaction method based on respiratory data are implemented.
[0047] According to a fourth aspect of the embodiments of this specification, a computer-readable storage medium is provided, which stores computer-executable instructions. When the instructions are executed by a processor, the steps of the above-mentioned virtual reality interaction method based on respiratory data are implemented.
[0048] According to a fifth aspect of the embodiments of this specification, a computer program is provided, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned virtual reality interaction method based on respiratory data.
[0049] Embodiments of this specification provide a virtual reality interaction method and apparatus based on respiratory data, wherein the virtual reality interaction method based on respiratory data includes: obtaining original respiratory information, performing de-interference processing on the respiratory information to obtain initial respiratory information, parsing the initial respiratory information based on a preset respiratory algorithm to obtain respiratory data, performing interactive operations based on the respiratory data, determining an interaction result, and performing a virtual reality display based on the interaction result. By obtaining original respiratory information, performing de-interference processing on the respiratory information to obtain initial respiratory information, parsing the initial respiratory information based on a preset respiratory algorithm to obtain respiratory data, performing interactive operations based on the respiratory data, determining an interaction result, and performing a virtual reality display based on the interaction result, virtual reality interaction based on respiratory data is achieved, which can be used to enhance the virtual reality experience, provide emotional support, improve mental health, provide biofeedback, and play a role in the medical field. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] Figure 1 This is a scene diagram of a virtual reality interaction method based on respiratory data provided by an embodiment of this specification;
[0051] Figure 2This is a flowchart of a virtual reality interaction method based on respiratory data provided by one embodiment of this specification;
[0052] Figure 3 This is a schematic diagram of a virtual reality interaction method based on respiratory data provided by one embodiment of this specification;
[0053] Figure 4 This is a schematic structural diagram of a virtual reality interaction device based on respiratory data provided by one embodiment of this specification;
[0054] Figure 5 This is a structural block diagram of a computing device provided by one embodiment of this specification. DETAILED DESCRIPTION
[0055] The following description sets forth many specific details to facilitate a thorough understanding of this specification. However, this specification can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the scope of this specification. Therefore, this specification is not limited to the specific implementations disclosed below.
[0056] The terms used in one or more embodiments of this specification are for the purpose of describing specific embodiments only and are not intended to limit one or more embodiments of this specification. The singular forms "a," "an," and "the" used in one or more embodiments of this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used in one or more embodiments of this specification refers to and includes any or all possible combinations of one or more associated listed items.
[0057] It should be understood that although the terms first, second, etc. may be used to describe various information in one or more embodiments of this specification, such information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of one or more embodiments of this specification, the first may also be referred to as the second, and similarly, the second may also be referred to as the first. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".
[0058] In this specification, a virtual reality interaction method based on respiratory data is provided. This specification also relates to a virtual reality interaction device based on respiratory data, a computing device, and a computer-readable storage medium, which are described in detail one by one in the following embodiments.
[0059] See also Figure 1 , Figure 1A scene diagram of a virtual reality interaction method based on respiratory data provided according to an embodiment of this specification is shown.
[0060] exist Figure 1 In an application scenario, computing device 101 may obtain raw respiratory information and perform interference removal processing on the respiratory information to obtain initial respiratory information 102. Computing device 101 may then analyze initial respiratory information 102 based on a preset respiratory algorithm to obtain respiratory data 103. Computing device 101 may then perform an interactive operation based on respiratory data 103 to determine an interactive result 104. Finally, computing device 101 may perform a virtual reality display based on interactive result 104, as indicated by reference numeral 105.
[0061] It should be noted that the computing device 101 described above can be either hardware or software. When the computing device 101 is hardware, it can be implemented as a distributed cluster consisting of multiple servers or terminal devices, or as a single server or a single terminal device. When the computing device 101 is software, it can be installed in the hardware devices listed above. It can be implemented as multiple software programs or software modules, for example, to provide distributed services, or as a single software program or software module. No specific limitations are imposed herein.
[0062] See also Figure 2 , Figure 2 A flowchart of a virtual reality interaction method based on respiratory data provided according to an embodiment of this specification is shown, which specifically includes the following steps.
[0063] Step 201: Obtain original breathing information, perform interference removal processing on the breathing information, and obtain initial breathing information.
[0064] In one possible implementation, original respiratory information is obtained, and interference removal processing is performed on the respiratory information to obtain initial respiratory information, including: monitoring respiratory rate information, respiratory volume information, and respiratory volume information, and determining the original respiratory information based on the respiratory rate information, respiratory volume information, and respiratory volume information; and filtering the original respiratory information to obtain initial respiratory information.
[0065] In practical applications, respiration detection uses data such as breathing frequency, volume, and breath volume as raw data. During the transmission of raw respiration signals, interference signals such as audio, vibration, and signals generated by internal organs are mixed in. This process simply processes these noise signals.
[0066] It should be noted that the interference removal process for respiratory information is not limited to filtering, and this embodiment does not limit this, as long as the effect of removing interference from respiratory information is achieved.
[0067] Step 202: Analyze the initial breathing information based on a preset breathing algorithm to obtain breathing data.
[0068] In a possible implementation, the initial breathing information is parsed based on a preset breathing algorithm to obtain breathing data, including: parsing the initial breathing information based on a preset breathing algorithm to obtain breathing frequency data, breathing volume data, and breathing volume data.
[0069] In actual applications, the preset breathing algorithm is used to analyze the breathing frequency, breathing volume, air output and other data. The breathing data will be passed to the interaction module.
[0070] For example, the MUSCI detection algorithm can be used. The basic principle of the MUSIC algorithm is to first perform statistical analysis on the data to obtain the covariance matrix, then perform algebraic operations on the covariance matrix to obtain the signal subspace and noise subspace. Finally, the orthogonality of these subspaces is used to obtain a high-resolution spectrum of the signal data.
[0071] The surface movement of breathing is quasi-periodic within a certain period of time, so the human body surface signal model is:
[0072]
[0073] In the formula , is the harmonic component of the respiratory frequency, is the corresponding intensity; The variance is Gaussian noise.
[0074] remember , then we can get its covariance matrix:
[0075]
[0076] In the formula , , .
[0077] remember is the eigenvalue of the covariance matrix R, and let The corresponding orthogonal eigenvectors, is with A set of corresponding orthogonal vectors. Since the matrix P is a diagonal matrix of rank n and the diagonal elements are greater than 0, then There are n positive eigenvalues and the remaining mn eigenvalues are 0. Therefore, the eigenvalues of the covariance matrix R are:
[0078]
[0079] remember , , according to the definition of eigenvector, ,also , from which we can get:
[0080]
[0081] because If the column is full rank, then
[0082] From this we can draw the following conclusion: For any case of m>n, the true frequency value It is an equation The only solution of .
[0083] Based on the above conclusions, the steps of MUSCI algorithm to estimate frequency are as follows:
[0084] 1. Pass Get the covariance matrix and decompose its features. Get the corresponding feature space and .
[0085] 2. Determine the frequency estimate by the positions of the n highest peaks of the following function:
[0086]
[0087] According to the above analysis, the parameters that need to be determined by the MUSIC algorithm are mainly: the dimension of the covariance matrix and the number of frequencies of the original signal.
[0088] Step 203: Perform interactive calculation based on the breathing data to determine the interactive result.
[0089] In one possible implementation, interactive calculations are performed based on breathing data to determine interaction results, including: determining a current scene, and determining interaction parameters based on the current scene; determining an interaction calculation method based on the interaction parameters; determining interaction data based on the breathing data and the interaction calculation method; and determining interaction results based on the interaction data.
[0090] In practical applications, breathing interaction is the core module of this interaction. The interaction detection module determines whether the interaction is successful and how to respond after the interaction. The incoming breathing data is then used to trigger the result calculation.
[0091] In one possible implementation, the current scene includes a candle blowing scene; accordingly, determining interaction data based on breathing data and an interaction calculation method includes: determining distance data and range data based on breathing data and an interaction calculation method; and determining interaction data based on distance data and range data.
[0092] In practical applications, blowing is a very typical interaction method in breathing interaction. This can be used as an example to demonstrate how blowing in interaction detection achieves interaction.
[0093] Specifically, in the virtual reality space, the main interaction is the visual interaction of the glasses, so the breathing range based on this setting uses the 60-degree cone of vision range of a single eye.
[0094] In one possible implementation, distance data and range data are determined based on breathing data and an interactive calculation method, including: determining a distance calculation formula and a range calculation formula based on an interactive calculation method; determining distance data based on breathing data and a distance calculation formula; and determining range data based on breathing data and a range calculation formula.
[0095] In practical applications, two conditions are required to complete the interaction:
[0096] ①The relationship between the candle wick and the mouth:
[0097] Calculate distances using vector operations:
[0098]
[0099] Among them, A represents the position of the lips, B represents the position of the candle, and X, Y and Z represent different coordinate axes.
[0100] ②Angle range between candle wick and air blowing:
[0101] The vector angle can be obtained by vector dot multiplication:
[0102]
[0103]
[0104] Among them, θ represents the vector angle, and a and b represent the two edges of the exhalation range.
[0105] In one possible implementation, determining an interaction result based on interaction data includes: determining a range threshold and a distance threshold; determining a distance interaction result based on the distance data and the distance threshold; determining a range interaction result based on the range data and the range threshold; and determining an interaction result based on the range interaction result and the distance interaction result.
[0106] In practical applications, after the range data and the distance data are calculated, it can be determined whether the candle can be blown out based on the range data and the distance data.
[0107] For example, if the range is 80 degrees, the distance is 10 centimeters, the distance threshold is 5 centimeters, and the range threshold is 80 degrees, then the candle can be blown out within a distance of 10 centimeters and a range of 80 degrees.
[0108] Step 204: Perform virtual reality display based on the interaction result.
[0109] Continuing with the previous example, with a range of 80 degrees, a distance of 10 centimeters, a distance threshold of 5 centimeters, and a range threshold of 80 degrees, the candle can be blown out within a distance of 10 centimeters and a range of 80 degrees. VR data of the candle being blown out is then obtained and used for VR presentation.
[0110] For further information, see Figure 3 Because respiration detection isn't triggered instantaneously, the respiration algorithm can process multiple respiration data sets. The algorithm takes the median of the respiration data and then performs interactive detection. That is, it obtains at least two respiration data sets, performs interactive calculations based on the at least two respiration data sets, and determines the interactive result.
[0111] Embodiments of this specification provide a virtual reality interaction method and apparatus based on respiratory data, wherein the virtual reality interaction method based on respiratory data includes: obtaining original respiratory information, performing de-interference processing on the respiratory information to obtain initial respiratory information, parsing the initial respiratory information based on a preset respiratory algorithm to obtain respiratory data, performing interactive operations based on the respiratory data, determining an interaction result, and performing a virtual reality display based on the interaction result. By obtaining original respiratory information, performing de-interference processing on the respiratory information to obtain initial respiratory information, parsing the initial respiratory information based on a preset respiratory algorithm to obtain respiratory data, performing interactive operations based on the respiratory data, determining an interaction result, and performing a virtual reality display based on the interaction result, virtual reality interaction based on respiratory data is achieved, which can be used to enhance the virtual reality experience, provide emotional support, improve mental health, provide biofeedback, and play a role in the medical field.
[0112] Corresponding to the above method embodiment, this specification also provides an embodiment of a virtual reality interaction device based on respiratory data, Figure 4 FIG1 shows a schematic diagram of a virtual reality interaction device based on respiratory data provided by an embodiment of this specification. Figure 4 As shown, the device includes:
[0113] According to a second aspect of an embodiment of this specification, a virtual reality interaction device based on respiratory data is provided, comprising:
[0114] The information acquisition module 401 is configured to acquire original respiratory information, perform interference removal processing on the respiratory information, and obtain initial respiratory information;
[0115] The data determination module 402 is configured to analyze the initial breathing information based on a preset breathing algorithm to obtain breathing data;
[0116] An interaction determination module 403 is configured to perform interaction calculation based on the respiratory data and determine an interaction result;
[0117] The virtual reality module 404 is configured to perform virtual reality display based on the interaction results.
[0118] In a possible implementation, the information acquisition module 401 is further configured to:
[0119] monitoring respiratory rate information, respiratory volume information, and respiratory volume information, and determining original respiratory information based on the respiratory rate information, respiratory volume information, and respiratory volume information;
[0120] The original breathing information is filtered to obtain the initial breathing information.
[0121] In a possible implementation, the data determination module 402 is further configured to:
[0122] The initial breathing information is analyzed based on the preset breathing algorithm to obtain breathing frequency data, breathing volume data and breathing volume data.
[0123] In a possible implementation, the interaction determination module 403 is further configured to:
[0124] Determine the current scene and determine the interaction parameters based on the current scene;
[0125] Determine the interaction calculation method based on the interaction parameters;
[0126] Determine interaction data based on breathing data and interaction calculation method;
[0127] Determine interaction outcomes based on interaction data.
[0128] In a possible implementation, the interaction determination module 403 is further configured to:
[0129] Current scenes include the candle blowing scene;
[0130] Accordingly, interaction data is determined based on the breathing data and the interaction calculation method, including:
[0131] Determine distance and range data based on breathing data and interactive calculations;
[0132] Interaction data is determined based on the distance data and the range data.
[0133] In a possible implementation, the interaction determination module 403 is further configured to:
[0134] Determine range and distance thresholds;
[0135] Determine distance interaction results based on distance data and distance thresholds;
[0136] determining a range interaction result based on the range data and the range threshold;
[0137] The interaction result is determined based on the range interaction result and the distance interaction result.
[0138] In a possible implementation, the interaction determination module 403 is further configured to:
[0139] Determine the distance calculation formula and range calculation formula based on the interactive calculation method;
[0140] determining distance data based on the respiration data and a distance calculation formula;
[0141] The range data is determined based on the respiration data and the range calculation formula.
[0142] Embodiments of this specification provide a method and apparatus for virtual reality interaction based on respiratory data, wherein the apparatus for virtual reality interaction based on respiratory data comprises: obtaining original respiratory information, performing de-interference processing on the respiratory information to obtain initial respiratory information, parsing the initial respiratory information based on a preset respiratory algorithm to obtain respiratory data, performing interactive operations based on the respiratory data, determining an interaction result, and performing a virtual reality display based on the interaction result. By obtaining original respiratory information, performing de-interference processing on the respiratory information to obtain initial respiratory information, parsing the initial respiratory information based on a preset respiratory algorithm to obtain respiratory data, performing interactive operations based on the respiratory data, determining an interaction result, and performing a virtual reality display based on the interaction result, virtual reality interaction based on respiratory data is achieved, which can be used to enhance the virtual reality experience, provide emotional support, improve mental health, provide biofeedback, and play a role in the medical field.
[0143] The above is a schematic diagram of a respiratory data-based VR interaction device according to this embodiment. It should be noted that the technical solution of this respiratory data-based VR interaction device and the technical solution of the respiratory data-based VR interaction method described above share the same concept. For details not described in detail in the respiratory data-based VR interaction device technical solution, please refer to the description of the respiratory data-based VR interaction method technical solution.
[0144] Figure 5 The block diagram of a computing device 500 according to one embodiment of the present disclosure is shown. Components of the computing device 500 include, but are not limited to, a memory 510 and a processor 520. The processor 520 is connected to the memory 510 via a bus 530, and a database 550 is used to store data.
[0145] The computing device 500 also includes an access device 540 that enables the computing device 500 to communicate via one or more networks 560. Examples of such networks include a public switched telephone network (PSTN), a local area network (LAN), a wide area network (WAN), a personal area network (PAN), or a combination of communication networks such as the Internet. The access device 540 may include one or more of any type of network interface (e.g., a network interface card (NIC)) whether wired or wireless, such as an IEEE 802.11 wireless local area network (WLAN) wireless interface, a Worldwide Interoperability for Microwave Access (Wi-MAX) interface, an Ethernet interface, a universal serial bus (USB) interface, a cellular network interface, a Bluetooth interface, or a near field communication (NFC) interface.
[0146] In one embodiment of the present specification, the above components of the computing device 500 and Figure 5 Other components not shown in the figure may also be connected to each other, for example, via a bus. Figure 5 The computing device structure block diagram shown is for illustrative purposes only and is not intended to limit the scope of this specification. Those skilled in the art may add or replace other components as needed.
[0147] Computing device 500 can be any type of stationary or mobile computing device, including a mobile computer or mobile computing device (e.g., a tablet computer, personal digital assistant, laptop computer, notebook computer, netbook computer, etc.), a mobile phone (e.g., a smartphone), a wearable computing device (e.g., a smartwatch, smart glasses, etc.), or other types of mobile devices, or a stationary computing device such as a desktop computer or personal computer (PC). Computing device 500 can also be a mobile or stationary server.
[0148] The processor 520 is configured to execute the following computer-executable instructions, which, when executed by the processor, implement the steps of the aforementioned method for virtual reality interaction based on respiratory data. The above is a schematic diagram of a computing device according to this embodiment. It should be noted that the technical solution of this computing device and the technical solution of the aforementioned method for virtual reality interaction based on respiratory data are based on the same concept. For details not described in detail in the technical solution of the computing device, please refer to the description of the technical solution of the aforementioned method for virtual reality interaction based on respiratory data.
[0149] An embodiment of the present specification further provides a computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the above-mentioned virtual reality interaction method based on respiratory data.
[0150] The above is a schematic diagram of a computer-readable storage medium according to this embodiment. It should be noted that the technical solution of this storage medium is based on the same concept as the technical solution of the aforementioned method for virtual reality interaction based on respiratory data. For details not described in detail in the technical solution of the storage medium, please refer to the description of the technical solution of the aforementioned method for virtual reality interaction based on respiratory data.
[0151] An embodiment of the present specification further provides a computer program, wherein when the computer program is executed in a computer, the computer is caused to execute the steps of the above-mentioned virtual reality interaction method based on respiratory data.
[0152] The above is an illustrative embodiment of a computer program. It should be noted that the technical solution of this computer program and the technical solution of the aforementioned method for virtual reality interaction based on respiratory data share the same concept. For details not described in detail in the technical solution of the computer program, please refer to the description of the technical solution of the aforementioned method for virtual reality interaction based on respiratory data.
[0153] The foregoing description of this specification describes specific embodiments. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recited in the claims can be performed in an order different from that described in the embodiments and still achieve the desired results. Furthermore, the processes depicted in the accompanying drawings do not necessarily require the specific order shown or the sequential order to achieve the desired results. In certain embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0154] The computer instructions include computer program code, which may be in source code form, object code form, executable file, or some intermediate form. The computer-readable medium may include any entity or device capable of carrying the computer program code, recording medium, USB flash drive, mobile hard drive, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal, and software distribution medium. It should be noted that the content of the computer-readable medium may be appropriately increased or decreased based on the requirements of legislation and patent practice within a jurisdiction. For example, in some jurisdictions, based on legislation and patent practice, computer-readable media does not include electric carrier signals and telecommunication signals.
[0155] It should be noted that for the aforementioned method embodiments, for the sake of simplicity of description, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the embodiments of this specification are not limited by the order of the actions described, because according to the embodiments of this specification, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in this specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the embodiments of this specification.
[0156] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0157] The preferred embodiments disclosed above are intended only to help illustrate this specification. The optional embodiments do not exhaustively describe all details, nor do they limit the invention to the specific embodiments described. Obviously, many modifications and variations can be made based on the content of the embodiments of this specification. This specification selects and specifically describes these embodiments in order to better explain the principles and practical applications of the embodiments of this specification, so that those skilled in the art can better understand and utilize this specification. This specification is limited only by the claims and their full scope and equivalents.
Claims
1. A virtual reality interaction method based on breathing data, It is characterized in that include: Acquire original breathing information, perform interference removal processing on the breathing information, and obtain initial breathing information; Analyze the initial breathing information based on a preset breathing algorithm to obtain breathing data, wherein the breathing data includes breathing volume data and breathing volume data; Performing interactive calculation based on the breathing data to determine an interactive result; Performing virtual reality display based on the interaction result; The performing interactive operation based on the respiratory data to determine the interactive result includes: Determine the current scene, and determine the interaction parameters based on the current scene; Determining an interaction calculation method based on the interaction parameters; determining interaction data based on the breathing data and the interaction calculation method; determining an interaction result based on the interaction data; The current scene includes a candle blowing scene; Accordingly, determining the interaction data based on the breathing data and the interaction calculation method includes: determining distance data and range data based on the breathing data and the interactive calculation method; determining interaction data based on the distance data and the range data; The determining the interaction result based on the interaction data includes: Determine range thresholds and distance thresholds; determining a distance interaction result based on the distance data and the distance threshold; determining a range interaction result based on the range data and the range threshold; Determine an interaction result based on the range interaction result and the distance interaction result; The determining of distance data and range data based on the breathing data and the interactive calculation method includes: Determine a distance calculation formula and a range calculation formula based on the interactive calculation method; determining distance data based on the breathing data and the distance calculation formula; determining range data based on the breathing data and the range calculation formula; The distance calculation formula includes: Among them, A represents the position of the lips, B represents the position of the candle, and X, Y and Z represent different coordinate axes; Wherein, the range calculation formula includes: The vector angle is obtained by vector dot multiplication: Among them, θ represents the vector angle, and a and b represent the two edges of the exhalation range.
2. The method according to claim 1, It is characterized in that The obtaining of original breathing information and performing interference removal processing on the breathing information to obtain initial breathing information includes: Monitoring respiratory frequency information, respiratory volume information and respiratory volume information, and determining the original respiratory information based on the respiratory frequency information, the respiratory volume information and the respiratory volume information; The original breathing information is filtered to obtain initial breathing information.
3. The method according to claim 1, It is characterized in that The initial breathing information is parsed based on a preset breathing algorithm to obtain breathing data, including: The initial breathing information is parsed based on a preset breathing algorithm to obtain breathing frequency data, breathing volume data and breathing volume data.
4. A virtual reality interaction device based on breathing data, used to implement the steps of the virtual reality interaction method based on breathing data according to any one of claims 1 to 3, It is characterized in that include: An information acquisition module is configured to acquire original breathing information, perform interference removal processing on the breathing information, and obtain initial breathing information; A data determination module is configured to parse the initial breathing information based on a preset breathing algorithm to obtain breathing data, wherein the breathing data includes breathing volume data and breathing volume data; An interaction determination module is configured to perform interaction calculation based on the respiratory data to determine an interaction result; a virtual reality module is configured to perform virtual reality display based on the interaction result; The interaction determination module is further configured to determine a current scene, determine interaction parameters based on the current scene; determine an interaction calculation method based on the interaction parameters; and determine interaction data based on the breathing data and the interaction calculation method; An interaction result is determined based on the interaction data.
5. A computing device, It is characterized in that include: Memory and processor; The memory is used to store computer executable instructions, and the processor is used to execute the computer executable instructions. When the computer executable instructions are executed by the processor, the steps of the virtual reality interaction method based on breathing data according to any one of claims 1 to 3 are implemented.
6. A computer-readable storage medium storing computer-executable instructions, which, when executed by a processor, implement the steps of the virtual reality interaction method based on respiratory data as described in any one of claims 1 to 3.
Citation Information
Patent Citations
Recovery system for measuring and exercising respiratory function and man-machine interaction method
CN106823297A
Fine-grained breathing interaction method based on visual and auditory detection
CN116048270A
Virtual reality system and method for relieving pain
CN116110539A
Scene generation system and method based on virtual reality and related equipment
CN116115876A
Systems and Methods for Breathing Sensory Experience Within a Virtual Reality Environment
US20180173308A1
