Method and device for positioning head-mounted display device, head-mounted display device and medium

By using real-time data processing of camera devices and inertial measurement units in VR equipment, the update frequency of pose data is improved, solving the problems of low output frequency and high delay in the existing technology, and achieving more efficient pose data. output and better user experience.

CN115342806BActive Publication Date: 2024-09-10GOERTEK INC
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202210833629.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-14
Publication Date
2024-09-10
Estimated Expiration
2042-07-14

AI Technical Summary

Technical Problem

The visual + inertial navigation fusion positioning method of existing VR equipment outputs pose data at a low frequency and cannot meet the needs of high refresh rate screens, resulting in high latency and dizziness in users.

Method used

Data is collected through the camera device and the inertial measurement unit, and real-time processing of fused pose data and inertial data is used to increase the update frequency of pose data to be consistent with the sampling frequency of the inertial measurement unit, reduce latency, and ensure the real-time nature of the output pose data.

Benefits of technology

It improves the output frequency and real-time performance of pose data, meets the needs of high refresh rate screens, and reduces users’ dizziness.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115342806B
    Figure CN115342806B
Patent Text Reader

Abstract

The present disclosure provides a positioning method, device, head-mounted display device and medium for a head-mounted display device. The head-mounted display device includes a camera device and an inertial measurement unit. The method includes: obtaining fused posture data of the head-mounted display device according to a first image captured by the camera device and inertial data collected by the inertial measurement unit; obtaining target posture data of the head-mounted display device at the current moment according to the fused posture data and inertial data collected by the inertial measurement unit at the current moment. After the inertial measurement unit collects the inertial data at the current moment, the target posture data can be output by simply combining the inertial data with the fused posture data, which can effectively reduce the delay and ensure the real-time performance of the output posture data.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the technical field of head-mounted display devices, and more specifically, to a positioning method for a head-mounted display device, a positioning device for a head-mounted display device, a head-mounted display device, and a computer-readable storage medium. Background Art

[0002] The positioning methods currently used by mainstream VR (Virtual Reality) devices are all based on the vision + inertial navigation fusion positioning method. Among them, visual positioning uses a camera, and the frame rate of the camera is usually between 10Hz and 60Hz. The inertial navigation sensor mostly uses an inertial measurement unit (IMU), and the sampling frequency of the inertial measurement unit is usually much higher than the camera frame rate.

[0003] However, since the frequency of the output pose data of the positioning method of vision + inertial navigation fusion depends on the camera frame rate, that is, between 10Hz and 60Hz, and the screen refresh rate of the current mainstream VR devices is higher than the camera frame rate, the frequency of the pose data output by vision + inertial navigation fusion alone is low and cannot meet the requirements. At the same time, it takes time to calculate the pose data of vision + inertial navigation fusion, and this delay is usually between 10ms and 100ms. As a near-eye display device, VR devices are sensitive to delays. High delays will cause a mismatch between visual output and vestibular motion, causing users to feel dizzy. Summary of the invention

[0004] One purpose of the embodiments of the present disclosure is to provide a new technical solution for positioning a head-mounted display device.

[0005] According to a first aspect of an embodiment of the present disclosure, a positioning method for a head mounted display device is provided, wherein the head mounted display device includes a camera device and an inertial measurement unit, and the method includes:

[0006] Obtaining fused posture data of the head mounted display device according to the first image captured by the camera device and the inertial data collected by the inertial measurement unit;

[0007] According to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment, the target posture data of the head mounted display device at the current moment is obtained.

[0008] Optionally, obtaining target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment includes:

[0009] Determining whether the fused posture data is updated;

[0010] If the fused posture data is updated, a first change value of the inertial data from the target time to the current time is determined according to the inertial data collected by the inertial measurement unit at the current time and the inertial data collected by the inertial measurement unit at the target time; wherein the target time is the time when the inertial data involved in calculating the updated fused posture data is collected;

[0011] According to the updated fusion posture data and the first change value, the target posture data of the head mounted display device at the current moment is obtained.

[0012] Optionally, obtaining target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment further includes:

[0013] If the fused posture data is not updated, determining a second change value of the inertial data from the previous moment to the current moment according to the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the previous moment;

[0014] According to the second change value and the target fusion posture data at the previous moment, the target posture data of the head mounted display device at the current moment is obtained.

[0015] Optionally, determining whether the fused pose data is updated includes:

[0016] Obtaining the fused posture data corresponding to the current moment;

[0017] Get the fusion pose data corresponding to the previous moment;

[0018] In the case where the fused pose data corresponding to the current moment is different from the fused pose data corresponding to the previous moment, determining that the fused pose data is updated; and,

[0019] When the fused pose data corresponding to the current moment is the same as the fused pose data corresponding to the previous moment, it is determined that the fused pose data is not updated.

[0020] Optionally, obtaining fused posture data of the head mounted display device according to the first image captured by the camera device and the inertial data captured by the inertial measurement unit includes:

[0021] Based on the real-time positioning and map building algorithm, the first image collected by the camera device and the inertial data collected by the inertial measurement unit are fused to obtain fused posture data of the head-mounted display device.

[0022] According to a second aspect of an embodiment of the present disclosure, a positioning device for a head-mounted display device is provided, wherein the head-mounted display device includes a camera device and an inertial measurement unit, and the device includes:

[0023] A fusion module, configured to obtain fused posture data of the head mounted display device according to the first image captured by the camera device and the inertial data collected by the inertial measurement unit;

[0024] The calculation module is used to obtain the target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment.

[0025] Optionally, the calculation module includes a judgment unit, a first determination unit and a first calculation unit.

[0026] The judging unit is used to judge whether the fused posture data is updated;

[0027] The first determination unit is used to determine, if the fused posture data is updated, a first change value of the inertial data from the target time to the current time according to the inertial data collected by the inertial measurement unit at the current time and the inertial data collected by the inertial measurement unit at the target time; wherein the target time is the collection time of the inertial data involved in calculating the updated fused posture data;

[0028] The first calculation unit is used to obtain the target posture data of the head mounted display device at the current moment according to the updated fusion posture data and the first change value.

[0029] Optionally, the calculation module includes a second determination unit and a second calculation unit,

[0030] The second determination unit is used to determine, if the fused posture data is not updated, a second change value of the inertial data from the previous moment to the current moment based on the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the previous moment;

[0031] The second calculation unit is used to obtain the target posture data of the head mounted display device at the current moment according to the second change value and the target fusion posture data at the previous moment.

[0032] According to a third aspect of an embodiment of the present disclosure, a head-mounted display device is provided, the head-mounted display device comprising a camera device and an inertial measurement unit, the head-mounted display device further comprising:

[0033] Memory for storing executable computer instructions;

[0034] A processor, configured to execute the positioning method according to the first aspect above under the control of the executable computer instructions;

[0035] The processor is connected to the camera device and the inertial measurement unit in communication to obtain the first image captured by the camera device and the inertial data collected by the inertial measurement unit.

[0036] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the method described in the first aspect is executed.

[0037] One beneficial effect of the disclosed embodiment is that, based on the fused pose data calculated based on the first image captured by the camera device and the inertial data collected by the inertial measurement unit, the head-mounted display device will calculate the target pose data of the head-mounted display device at the current moment based on the fused pose data and the inertial data collected by the inertial measurement unit at the current moment. That is, the frequency of updating the pose data is increased to be consistent with the sampling frequency of the inertial measurement unit, which greatly exceeds the requirement of refreshing the screen display of the head-mounted display device and increases the output frequency of the pose data. Moreover, after the inertial measurement unit collects the inertial data at the current moment, the target pose data can be output by simply combining the inertial data with the fused pose data, which reduces the delay and ensures the real-time performance of the output pose data.

[0038] Other features and advantages of the present specification will become apparent from the following detailed description of exemplary embodiments of the present specification with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The accompanying drawings, which are incorporated in and constitute a part of the specification, illustrate embodiments of the specification and, together with the description, serve to explain the principles of the specification.

[0040] Figure 1 is a schematic diagram of the hardware configuration of a head mounted display device according to an embodiment of the present disclosure;

[0041] Figure 2 is a flow chart of a positioning method for a head mounted display device according to an embodiment of the present disclosure;

[0042] Figure 3 is a schematic diagram of a camera device outputting a first image and an inertial measurement unit outputting inertial data according to the present disclosure;

[0043] Figure 4 is a flowchart of a positioning method for a head mounted display device according to an example of the present disclosure;

[0044] Figure 5is a principle block diagram of a positioning device for a head mounted display device according to an embodiment of the present disclosure;

[0045] Figure 6 It is a principle block diagram of a head mounted display device according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0046] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.

[0047] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0048] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered as part of the specification.

[0049] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0050] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0051] <Hardware Configuration>

[0052] Figure 1 1 is a block diagram of a hardware configuration of a head mounted display device 1000 according to an embodiment of the present disclosure.

[0053] The head mounted display device 1000 may be, for example, a VR (Virtual Reality) device, an AR (Augmented Reality) device, an MR (Mixed Reality) device, or the like.

[0054] In one embodiment, Figure 1 As shown, the head mounted display device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, an audio device 1700, an inertial measurement unit 1800, a camera device 1900, etc.

[0055] Among them, the processor 1100 can be, for example, a central processing unit CPU, a microprocessor MCU, etc. The memory 1200 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 includes, for example, a serial bus interface (including a USB interface), a parallel bus interface, a high-definition multimedia interface HDMI interface, etc. The communication device 1400 can, for example, perform wired or wireless communication. The display device 1500 is, for example, a liquid crystal display, an LED display, a touch display, etc. The input device 1600 includes, for example, a touch screen, a somatosensory input, etc. The audio device 1700 can be used to input / output voice information. The inertial measurement unit 1800 can be used to measure the motion information of the head-mounted display device 1000. The camera device 1900 can be used to obtain image information.

[0056] In this embodiment, the memory 1200 of the head mounted display device 1000 is used to store instructions, and the instructions are used to control the processor 1100 to operate to implement or support the implementation of the positioning method of the head mounted display device according to any embodiment. The technician can design the instructions according to the scheme disclosed in this specification. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.

[0057] It should be understood by those skilled in the art that although Figure 1 , multiple devices of the head mounted display device 1000 are shown, but the head mounted display device 1000 of the embodiment of this specification may only involve some of the devices, or may also include other devices, which is not limited here.

[0058] Figure 1 The illustrated head mounted display device 1000 is illustrative only and is in no way intended to limit the present description, its application, or uses.

[0059] Hereinafter, various embodiments and examples according to the present disclosure are described with reference to the drawings.

[0060] <Method Example>

[0061] Figure 2 A method for positioning a head mounted display device according to an embodiment of the present disclosure is shown. The method for positioning a head mounted display device can be performed as follows. Figure 1 The head mounted display device 1000 shown is implemented, and the head mounted display device may be a VR device, an AR device, an MR device, etc.

[0062] like Figure 2 As shown, the positioning method of the head mounted display device provided in this embodiment may include the following steps S2100 to S2200.

[0063] Step S2100: Obtain fused posture data of the head mounted display device according to the first image captured by the camera device and the inertial data collected by the inertial measurement unit.

[0064] At least one camera device is provided in the head-mounted display device. The camera device may be a camera, for example, a binocular camera or a multi-eye camera. When the wearer wears the head-mounted display device, images can be captured through the camera device.

[0065] The frame rate of the camera device may generally be 10 Hz to 60 Hz. That is, when the wearer wears the head mounted display device, the camera device may capture the first image at a frame rate of 10 Hz to 60 Hz.

[0066] An inertial measurement unit (IMU) is integrated in the head-mounted display device. The IMU can be a 6-axis IMU or a 9-axis IMU. The IMU is used to detect the motion information of the head-mounted display device. The data collected by the IMU can be called inertial data.

[0067] The sampling frequency of the inertial measurement unit is usually 200 Hz to 2000 Hz. That is, when the wearer wears the head mounted display device, the inertial measurement unit can collect inertial data at a sampling frequency of 200 Hz to 2000 Hz.

[0068] The fused pose data of the head mounted display device refers to the six degrees of freedom information (hereinafter referred to as 6DoF information) of the head mounted display device calculated based on the vision + inertial navigation fusion positioning algorithm, including the degrees of freedom of movement and the degrees of freedom of rotation. Among them, the vision + inertial navigation fusion positioning algorithm may include a simultaneous localization and mapping (SLAM) algorithm, of course, it may also be other algorithms, which are not limited in this embodiment.

[0069] In this embodiment, obtaining the fused posture data of the head-mounted display device according to the first image captured by the camera device and the inertial data collected by the inertial measurement unit in step S2100 may further include: based on the real-time positioning and map construction algorithm, fusing the first image captured by the camera device and the inertial data collected by the inertial measurement unit to obtain the fused posture data of the head-mounted display device.

[0070] Specifically, after obtaining the first image captured by the camera device and the inertial data collected by the inertial measurement unit, the processor can fuse the first image and the inertial data based on the SLAM algorithm to obtain the 6DoF information of the head-mounted display device as fused pose data. It is understandable that since the SLAM algorithm needs calculation time to calculate the pose data, this delay Tk is usually between 10ms and 100ms.

[0071] For example, refer to Figure 3 , the long vertical bars in the first row are all the times when the camera device collects the first image, for example, time t1, time t2, and time t3 are all the times when the camera device collects the first image. For example, when the wearer wears the head-mounted display device, the camera device can output the first image at a frame rate of 10Hz to 60Hz, for example, collecting the first image at time t1, collecting the first image at time t2, etc.

[0072] Continue to refer to Figure 3 The short vertical bars in the first row are the moments when the inertial measurement unit collects inertial data. For example, when the wearer wears a head-mounted display device, the inertial measurement unit can output inertial data at a sampling frequency of 200 Hz to 2000 Hz.

[0073] Continue to refer to Figure 3 , the vertical bar in the second row represents the fused pose data. Starting from time t1, the first image collected by the camera device and the inertial data collected by the inertial measurement unit can be fused based on the SLAM algorithm to obtain the fused pose data. For example, after outputting the first image and inertial data at time t1, the processor can fuse the first image and inertial data based on the SLAM algorithm, and output the fused pose data calculated for the first time at t1+Tk. For another example, after outputting the first image and inertial data at time t2, the processor can fuse the first image and inertial data based on the SLAM algorithm, and output the fused pose data calculated for the second time at t2+Tk, and so on. From Figure 3 It can be seen that the fused pose data is consistent with the frame rate of the camera device, and the Tk delay is high, so real-time positioning cannot be performed.

[0074] After executing step S2100 to obtain the fused posture data of the head mounted display device according to the first image captured by the camera device and the inertial data collected by the inertial measurement unit, proceed to:

[0075] Step S2200: Obtain target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment.

[0076] In this embodiment, after obtaining the fused posture data of the head-mounted display device, it will calculate the target posture data of the head-mounted display device at the current moment based on the fused posture data and the inertial data collected by the inertial measurement unit at the current moment, thereby increasing the frequency of updating the posture data to be consistent with the sampling frequency of the inertial measurement unit, while reducing the delay and ensuring that the effective accuracy is not lost.

[0077] In one embodiment, step S2200 may further include the following steps S2210a to S2230a for obtaining the target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment:

[0078] Step S2210a, determining whether the fused posture data is updated.

[0079] Here, this step S2210a determines whether the fused pose data is updated and can further include: obtaining the fused pose data corresponding to the current moment; obtaining the fused pose data corresponding to the previous moment; when the fused pose data corresponding to the current moment is different from the fused pose data corresponding to the previous moment, determining that the fused pose data is updated; and when the fused pose data corresponding to the current moment is the same as the fused pose data corresponding to the previous moment, determining that the fused pose data is not updated.

[0080] Step S2220a, if the fused posture data is updated, determine a first change value of the inertial data from the target moment to the current moment according to the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the target moment.

[0081] The target time is the time at which the inertial data participating in the calculation of the updated fusion pose data is collected. It is understandable that when the fusion pose data is updated, it is necessary to find all the inertial data and corresponding timestamps from the inertial data collection time i to the current time j that contribute to the fusion pose data.

[0082] Continue to refer to Figure 3 , the first fusion pose data is generated at time t1+Tk. Since the first fusion pose data is calculated based on the inertial data collected by the inertial measurement unit at time t1, time t1 is taken as the target time i1, and the current time is the time when the inertial measurement unit currently collects inertial data. The current time is j1. Figure 3It can also be seen that the second fused pose data is generated at time t2+Tk. That is to say, the fused pose data obtained at the previous moment j3 is zero, and the fused pose data obtained at the current moment j1 is the fused pose data generated at time t1+Tk. The two are different, so the fused pose data update can be determined. Here, all inertial data and timestamps from the target moment i1 to the current moment j1 are recorded, and the change value of the inertial data from moment i1 to moment j1 is calculated. The change value represents the motion information of the head-mounted display device measured by the inertial measurement unit from moment i1 to moment j1. The specific calculation process is the integration of discrete inertial data over time. This calculation process takes a short time, usually less than 1ms, which ensures the real-time output of the target pose data.

[0083] Step S2230a: Obtain target posture data of the head mounted display device at the current moment according to the updated fusion posture data and the first change value.

[0084] Continue to refer to Figure 3 After calculating the change value of the inertial data from time i1 to time j1 and combining it with the first fused pose data, the target pose data of the inertial measurement unit at the current acquisition time, i.e., the current time j1, can be output.

[0085] In one embodiment, step S2200 may further include the following steps S2210b to S2220b, based on the fused posture data and the inertial data collected by the inertial measurement unit at the current moment, to obtain the target posture data of the head mounted display device at the current moment:

[0086] Step S2210b, if the fused posture data is not updated, determine a second change value of the inertial data from the previous moment to the current moment based on the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the previous moment.

[0087] Continue to refer to Figure 3, the current moment is the moment when the inertial measurement unit currently collects inertial data, the current moment is j2, and the previous moment is i2. Since the j2 moment corresponds to the first fused pose data, the fused pose data has not been updated. In other words, the fused pose data of the previous moment i2 obtained is the fused pose data generated at the t1+Tk moment, and the fused pose data of the current moment j2 obtained is also the fused pose data generated at the t1+Tk moment. The fused pose data corresponding to the current moment j2 is the same as the fused pose data corresponding to the previous moment i2. It can be determined that the fused pose data has not been updated. Here, the previous moment i2 and the corresponding inertial data, the current moment j2 and the corresponding inertial data are recorded, and the change value of the inertial data from the i2 moment to the j2 moment is calculated. The change value represents the motion information of the head-mounted display device measured by the inertial measurement unit from the i2 moment to the j2 moment. The specific calculation process is the integration of discrete inertial data over time. This calculation process takes a short time, usually less than 1ms, which ensures the real-time output of the target pose data.

[0088] Step S2220b: Obtain target posture data of the head mounted display device at the current moment according to the second change value and the target fusion posture data at the previous moment.

[0089] Continue to refer to Figure 3 , after calculating the change value of the inertial data from time i2 to time j2, combined with the target posture data corresponding to time i2, the target posture data of the current acquisition time of the inertial measurement unit, i.e., the current time j2, can be obtained.

[0090] According to the disclosed embodiment, the head-mounted display device calculates the target posture data of the head-mounted display device at the current moment based on the fused posture data and the inertial data collected by the inertial measurement unit at the current moment, based on the fused posture data collected by the first image collected by the camera device and the inertial data collected by the inertial measurement unit. That is, the frequency of updating the posture data is increased to be consistent with the sampling frequency of the inertial measurement unit, which greatly exceeds the demand for refreshing the screen display of the head-mounted display device and increases the output frequency of the posture data. In addition, after the inertial measurement unit collects the inertial data at the current moment, the target posture data can be output by simply combining the inertial data with the fused posture data, which reduces the delay and ensures the real-time performance of the output posture.

[0091] Next, combine 3 and Figure 4 An example of a method for positioning a head mounted display device is shown. In this example, the method for positioning the head mounted display device includes:

[0092] Step 401, determine whether fusion pose data is generated, if yes, execute step 402, otherwise, the process ends.

[0093] Step 402, further determine whether the generated fusion pose data is the first fusion pose data. If it is the first fusion pose data, it indicates that the fusion pose data is updated, then execute step 403, otherwise, execute step 406.

[0094] Step 403, aligning the timestamps of the inertial data and the fused pose data, specifically, recording all the inertial data and timestamps from the collection time i (this time i can be called the target time) of the inertial data involved in calculating the updated fused pose data to the current time j.

[0095] Step 404, calculate the first change value IMU from the inertial data collected at the target time i to the inertial data collected at the current time j ij .

[0096] Step 405: The first change value IMU ij Combined with the updated fusion pose data, the target pose data of the head mounted display device at the current time j is obtained and output, and the process ends.

[0097] Step 406, when the fused pose data is not the first fused pose data, further determine whether the fused pose data is updated. If the fused pose data is updated, execute the above step 403; if the fused pose data is not updated, execute step 407.

[0098] Step 407, aligning the timestamps of the inertial data and the fused posture data, specifically, recording the current moment j and the corresponding inertial data, and the previous moment i and the corresponding inertial data.

[0099] Step 408, calculate the second change value IMU from the inertial data collected at the previous moment i to the inertial data collected at the current moment j ij .

[0100] Step 409: The second change value IMU ij Combined with the target posture data corresponding to the previous moment i, the target posture data of the head-mounted display device at the current moment j is obtained and output, and the process ends.

[0101] According to this example, each collected inertial data is used for posture output, and the output frequency of the posture is consistent with the sampling frequency of the inertial measurement unit, which improves the frequency of posture output. At the same time, the calculation process of the change value of the inertial data, that is, the motion information of the VR device measured and calculated by the inertial measurement unit, is simple, and the operation efficiency is very high, less than 1ms, ensuring the real-time output of the posture. Finally, when there is a fusion posture update, the posture output based on the inertial measurement unit will be corrected to ensure accuracy.

[0102] <Device Example>

[0103] Figure 5 FIG. 1 is a schematic diagram of a positioning device for a head mounted display device according to an embodiment. Figure 5 As shown, the positioning device 500 of the head mounted display device includes a fusion module 510 and a calculation module 520 .

[0104] The fusion module 510 is used to obtain fused posture data of the head mounted display device according to the first image captured by the camera device and the inertial data collected by the inertial measurement unit.

[0105] The calculation module 520 is used to obtain the target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment.

[0106] In one embodiment, the calculation module 520 includes a judgment unit, a first determination unit and a first calculation unit (all not shown in the figure).

[0107] The judging unit is used to judge whether the fused posture data is updated.

[0108] The first determination unit is used to determine a first change value of the inertial data from the target moment to the current moment based on the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the target moment if the fused pose data is updated; wherein the target moment is the moment of collection of the inertial data involved in calculating the updated fused pose data.

[0109] The first calculation unit is used to obtain the target posture data of the head mounted display device at the current moment according to the updated fusion posture data and the first change value.

[0110] In one embodiment, the calculation module 520 includes a second determination unit and a second calculation unit (neither of which are shown in the figure).

[0111] The second determination unit is used to determine a second change value of the inertial data from the previous moment to the current moment based on the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the previous moment if the fused posture data is not updated.

[0112] The second calculation unit is used to obtain the target posture data of the head mounted display device at the current moment according to the second change value and the target fusion posture data at the previous moment.

[0113] In one embodiment, the judgment unit (not shown in the figure) is specifically used to: obtain the fused pose data corresponding to the current moment; obtain the fused pose data corresponding to the previous moment; when the fused pose data corresponding to the current moment is the same as the fused pose data corresponding to the previous moment, determine that the fused pose data is updated; and when the fused pose data corresponding to the current moment is different from the fused pose data corresponding to the previous moment, determine that the fused pose data is not updated.

[0114] In one embodiment, the fusion module 510 is specifically used to: based on the real-time positioning and map building algorithm, fuse the first image captured by the camera device and the inertial data collected by the inertial measurement unit to obtain the fused posture data of the head-mounted display device.

[0115] According to the disclosed embodiment, the head-mounted display device calculates the target posture data of the head-mounted display device at the current moment based on the fused posture data and the inertial data collected by the inertial measurement unit at the current moment, based on the fused posture data collected by the first image collected by the camera device and the inertial data collected by the inertial measurement unit. That is, the frequency of updating the posture data is increased to be consistent with the sampling frequency of the inertial measurement unit, which greatly exceeds the demand for screen display refresh of the head-mounted display device and improves the output frequency of the posture data. In addition, after the inertial measurement unit collects the inertial data at the current moment, the target posture data can be output by simply combining the inertial data with the fused posture data, which reduces the delay and ensures the real-time performance of the output posture data.

[0116] <Equipment Embodiment>

[0117] Figure 6 FIG. 1 is a schematic diagram of the hardware structure of a head mounted display device according to an embodiment. Figure 6 As shown, the head mounted display device 600 includes a camera device 610 and an inertial measurement unit 620 , and the head mounted display device 600 also includes a processor 630 and a memory 640 .

[0118] The memory 640 may be used to store executable computer instructions.

[0119] The processor 630 can be used to execute the positioning method of the head-mounted display device according to the method embodiment of the present disclosure under the control of the executable computer instructions.

[0120] The processor is connected to the camera device and the inertial measurement unit in communication to obtain the first image captured by the camera device and the inertial data collected by the inertial measurement unit.

[0121] The head mounted display device 600 may be as follows Figure 1The head mounted display device 1000 shown may also be a device with other hardware structures, which is not limited here. The head mounted display device 600 may be, for example, a VR device, an AR device, an MR device, etc., which is not limited in the embodiments of the present disclosure.

[0122] In another embodiment, the head mounted display device 600 may include the positioning device 500 of the above head mounted display device.

[0123] In one embodiment, each module of the positioning device 500 of the head mounted display device can be implemented by the processor 630 running the computer instructions stored in the memory 640.

[0124] According to the disclosed embodiment, the head-mounted display device calculates the target posture data of the head-mounted display device at the current moment based on the fused posture data and the inertial data collected by the inertial measurement unit at the current moment, based on the fused posture data collected by the first image collected by the camera device and the inertial data collected by the inertial measurement unit. That is, the frequency of updating the posture data is increased to be consistent with the sampling frequency of the inertial measurement unit, which greatly exceeds the demand for screen display refresh of the head-mounted display device and improves the output frequency of the posture data. In addition, after the inertial measurement unit collects the inertial data at the current moment, the target posture data can be output by simply combining the inertial data with the fused posture data, which reduces the delay and ensures the real-time performance of the output posture data.

[0125] <Computer Readable Storage Medium>

[0126] The embodiment of the present disclosure further provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the positioning method of the head-mounted display device provided by the embodiment of the present disclosure is executed.

[0127] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0128] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0129] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0130] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0131] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0132] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0133] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0134] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0135] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims

1. A method for positioning a head mounted display device, characterized in that: The head mounted display device includes a camera device and an inertial measurement unit, and the method includes: Obtaining fused posture data of the head mounted display device according to the first image captured by the camera device and the inertial data collected by the inertial measurement unit; Obtaining target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment; Among them, obtaining the target posture data of the head-mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment includes: judging whether the fused posture data is updated; if the fused posture data is updated, determining the first change value of the inertial data from the target moment to the current moment according to the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the target moment; wherein the target moment is the collection moment of the inertial data involved in calculating the updated fused posture data; obtaining the target posture data of the head-mounted display device at the current moment according to the updated fused posture data and the first change value.

2. The method according to claim 1, characterized in that The step of obtaining target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment further includes: If the fused posture data is not updated, determining a second change value of the inertial data from the previous moment to the current moment according to the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the previous moment; According to the second change value and the target fusion posture data at the previous moment, the target posture data of the head mounted display device at the current moment is obtained.

3. The method according to claim 1, characterized in that The determining whether the fused posture data is updated includes: Obtaining the fused posture data corresponding to the current moment; Get the fusion pose data corresponding to the previous moment; In the case where the fused pose data corresponding to the current moment is different from the fused pose data corresponding to the previous moment, determining that the fused pose data is updated; and, When the fused pose data corresponding to the current moment is the same as the fused pose data corresponding to the previous moment, it is determined that the fused pose data is not updated.

4. The method according to claim 1 or 2, characterized in that: The step of obtaining fused posture data of the head mounted display device according to the first image collected by the camera device and the inertial data collected by the inertial measurement unit includes: Based on the real-time positioning and map building algorithm, the first image collected by the camera device and the inertial data collected by the inertial measurement unit are fused to obtain fused posture data of the head-mounted display device.

5. A positioning device for a head mounted display device, characterized in that: The head mounted display device comprises a camera device and an inertial measurement unit, and the device comprises: A fusion module, configured to obtain fused posture data of the head mounted display device according to the first image captured by the camera device and the inertial data collected by the inertial measurement unit; A calculation module, configured to obtain target posture data of the head mounted display device at the current moment according to the fused posture data and the inertial data collected by the inertial measurement unit at the current moment; The calculation module includes a judgment unit, a first determination unit and a first calculation unit. The judging unit is used to judge whether the fused posture data is updated; The first determination unit is used to determine, if the fused posture data is updated, a first change value of the inertial data from the target time to the current time according to the inertial data collected by the inertial measurement unit at the current time and the inertial data collected by the inertial measurement unit at the target time; wherein the target time is the collection time of the inertial data involved in calculating the updated fused posture data; The first calculation unit is used to obtain the target posture data of the head mounted display device at the current moment according to the updated fusion posture data and the first change value.

6. The device according to claim 5, characterized in that The calculation module includes a second determination unit and a second calculation unit, The second determination unit is used to determine, if the fused posture data is not updated, a second change value of the inertial data from the previous moment to the current moment based on the inertial data collected by the inertial measurement unit at the current moment and the inertial data collected by the inertial measurement unit at the previous moment; The second calculation unit is used to obtain the target posture data of the head mounted display device at the current moment according to the second change value and the target fusion posture data at the previous moment.

7. A head-mounted display device, comprising a camera device and an inertial measurement unit, and further comprising: Memory for storing executable computer instructions; A processor, configured to execute the positioning method according to any one of claims 1 to 4 under the control of the executable computer instructions; The processor is connected to the camera device and the inertial measurement unit in communication to obtain the first image captured by the camera device and the inertial data collected by the inertial measurement unit.

8. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions are executed by a processor to execute the positioning method according to any one of claims 1 to 4.