Method, device and electronic device for displaying images on a head mounted display device
By using the angular velocity data and attitude error of the head-mounted display device for attitude compensation, the display effect problem caused by bumps and shaking during use of the device is solved, and the user experience and picture stability are improved.
Patent Information
- Application Number
- CN202210510750.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-11
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2042-05-11
AI Technical Summary
The head-mounted display device may experience bumps, shakes, etc. during use, affecting the display effect and resulting in a degraded user experience.
By determining the reference posture based on the angular velocity data of the head-mounted display device and the correction posture at the previous moment, calculating the posture error, and using the correction posture difference to compensate the reference posture, a second correction posture is obtained, which is used to render the picture to be displayed to ensure that the display The stability of the effect.
It effectively prevents screen jitter caused by bumps and shaking, improves the user experience, and ensures the stability and clarity of the display effect.
Smart Images

Figure CN114979615B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the technical field of head-mounted display devices, and in particular to a method, an apparatus, and an electronic device for displaying images on a head-mounted display device. Background Art
[0002] At present, head-mounted display devices are used more and more widely. During the use of head-mounted display devices, there may be bumps, shaking, etc., which will affect the display effect of the head-mounted display devices. How to ensure the display effect of the head-mounted display devices to improve the user experience is an urgent problem to be solved for technical personnel in this field. Summary of the invention
[0003] Embodiments of the present disclosure provide a method, an apparatus, and an electronic device for displaying images on a head-mounted display device.
[0004] According to one aspect of the present disclosure, there is provided a method for displaying a picture on a head mounted display device, comprising:
[0005] Determine, based on the angular velocity data of the head mounted display device at the current moment and the first correction posture used to process the display picture of the head mounted display device at the previous moment, a reference posture used to process the display picture of the head mounted display device at the current moment;
[0006] Processing a posture error between a reference posture and a preset posture for processing a display image to obtain a correction posture difference;
[0007] Compensating the reference posture using the correction posture difference to obtain a second correction posture for processing the image to be displayed at the current moment;
[0008] Based on the second correction posture, the picture to be displayed of the head-mounted display device is rendered to display the picture to be displayed of the head-mounted display device.
[0009] According to another aspect of the present disclosure, there is provided an apparatus for displaying a picture on a head mounted display device, comprising:
[0010] A first determination module, configured to determine a reference posture for processing a display image at a current moment based on the angular velocity data of the head mounted display device at a current moment and a first correction posture for processing a display image of the head mounted display device at a previous moment;
[0011] A first processing module, used for processing a posture error between a reference posture and a preset posture for processing a display image, so as to obtain a correction posture difference;
[0012] A compensation module, used to compensate the reference posture by using the correction posture difference to obtain a second correction posture for processing the image to be displayed at the current moment;
[0013] The second processing module is used to render the picture to be displayed of the head-mounted display device based on the second correction posture to display the picture to be displayed of the head-mounted display device.
[0014] According to another aspect of the present disclosure, a computer-readable storage medium is provided, which stores a computer program for executing the above-mentioned method for displaying a picture on a head-mounted display device.
[0015] According to another aspect of the present disclosure, there is provided an electronic device, including:
[0016] processor;
[0017] a memory for storing processor-executable instructions;
[0018] The processor is used to read executable instructions from the memory and execute the instructions to implement the above-mentioned method for displaying images on a head-mounted display device.
[0019] According to another aspect of the present disclosure, a computer program product is provided, including computer program instructions, which implement the above-mentioned method for displaying images on a head-mounted display device when the computer program instructions are executed by a processor.
[0020] The technical solution of the present disclosure is further described in detail below through the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] The above and other purposes, features and advantages of the present disclosure will become more apparent by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings. The accompanying drawings are used to provide a further understanding of the embodiments of the present disclosure and constitute a part of the specification. Together with the embodiments of the present disclosure, they are used to explain the present disclosure and do not constitute a limitation of the present disclosure. In the drawings, the same reference numerals generally represent the same components or steps.
[0022] Figure 1 It is a flowchart of a method for displaying images on a head-mounted display device provided by an exemplary embodiment of the present disclosure.
[0023] Figure 2 It is a schematic diagram of a method for processing a display screen of a head-mounted display device in an embodiment of the present disclosure.
[0024] Figure 3 It is a schematic diagram of another method for processing the display screen of the head-mounted display device in an embodiment of the present disclosure.
[0025] Figure 4 It is a schematic diagram of a scenario to which the embodiments of the present disclosure are applicable.
[0026] Figure 5 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0027] Figure 6 It is a schematic diagram of a flow chart of determining a second correction posture in an embodiment of the present disclosure.
[0028] Figure 7 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0029] Figure 8 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0030] Fig. 9 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0031] Fig.10 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0032] Figure 11-1 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0033] Figure 11-2 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0034] Figure 11-3 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0035] Figure 11-4 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0036] Fig.12 It is a flowchart of a method for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0037] Fig.13 It is a structural schematic diagram of an apparatus for displaying images on a head-mounted display device provided by an exemplary embodiment of the present disclosure.
[0038] Fig.14It is a structural schematic diagram of an apparatus for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0039] Fig.15 It is a structural schematic diagram of an apparatus for displaying images on a head-mounted display device provided by yet another exemplary embodiment of the present disclosure.
[0040] Fig.16 It is a structural schematic diagram of an apparatus for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0041] Fig.17 It is a structural schematic diagram of an apparatus for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0042] Fig.18 It is a structural schematic diagram of an apparatus for displaying images on a head-mounted display device provided by another exemplary embodiment of the present disclosure.
[0043] Fig.19 is a structural diagram of an electronic device provided by an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION
[0044] Below, the exemplary embodiments according to the present disclosure will be described in detail with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of the present disclosure, rather than all the embodiments of the present disclosure, and it should be understood that the present disclosure is not limited to the exemplary embodiments described here.
[0045] It should be noted that the relative arrangement of components and steps, the numerical expressions and numerical values set forth in these embodiments do not limit the scope of the present disclosure unless specifically stated otherwise.
[0046] Those skilled in the art can understand that the terms "first" and "second" in the embodiments of the present disclosure are only used to distinguish different steps, devices or modules, etc., and neither represent any specific technical meaning nor indicate the necessary logical order between them.
[0047] It should also be understood that in the embodiments of the present disclosure, “plurality” may refer to two or more than two, and “at least one” may refer to one, two, or more than two.
[0048] It should also be understood that any component, data or structure mentioned in the embodiments of the present disclosure can generally be understood as one or more, unless explicitly limited or otherwise indicated in the context.
[0049] In addition, the term "and / or" in the present disclosure is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in the present disclosure generally indicates that the associated objects before and after are in an "or" relationship.
[0050] It should also be understood that the description of the various embodiments in the present disclosure focuses on the differences between the various embodiments, and the same or similar aspects thereof can be referenced to each other, and for the sake of brevity, they will not be described one by one.
[0051] At the same time, it should be understood that for the convenience of description, the sizes of the various parts shown in the drawings are not drawn according to the actual proportional relationship.
[0052] 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.
[0053] 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.
[0054] 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.
[0055] The disclosed embodiments can be applied to electronic devices such as terminal devices, computer systems, servers, etc., which can operate with many other general or special computing system environments or configurations. Examples of well-known terminal devices, computing systems, environments and / or configurations suitable for use with electronic devices such as terminal devices, computer systems, servers, etc. include, but are not limited to: personal computer systems, server computer systems, thin clients, thick clients, handheld or laptop devices, microprocessor-based systems, set-top boxes, programmable consumer electronics, network personal computers, small computer systems, large computer systems, and distributed cloud computing technology environments including any of the above systems, etc.
[0056] Electronic devices such as terminal devices, computer systems, servers, etc. can be described in the general context of computer system executable instructions (such as program modules) executed by computer systems. Generally, program modules can include routines, programs, object programs, components, logic, data structures, etc., which perform specific tasks or implement specific abstract data types. Computer systems / servers can be implemented in a distributed cloud computing environment, where tasks are performed by remote processing devices linked through a communication network. In a distributed cloud computing environment, program modules can be located on local or remote computing system storage media including storage devices.
[0057] Exemplary Methods
[0058] Figure 1 It is a flowchart of a method for displaying images on a head-mounted display device provided by an exemplary embodiment of the present disclosure. Figure 1 The method shown may include step 110, step 120, step 130 and step 140, each of which is described below.
[0059] Step 110: determine a reference posture for processing the image to be displayed at the current moment based on the angular velocity data of the head mounted display device at the current moment and the first correction posture used to process the display image of the head mounted display device at the previous moment.
[0060] It should be noted that the head-mounted display device may also be referred to as a head-mounted display (HMD) or a head display, and the head-mounted display device may be used to achieve an extended reality (XR) effect, such as an augmented reality (AR) effect, a virtual reality (VR) effect, a mixed reality (MR) effect, etc. Optionally, the head-mounted display device may be used to achieve an AR effect, in which case the head-mounted display device may be an AR glasses.
[0061] Generally speaking, a head-mounted display device may include an inertial measurement unit (IMU) and an optical machine. An IMU may include an accelerometer, a gyroscope, a magnetometer, etc. An accelerometer is used to collect acceleration data, and a gyroscope is used to collect angular velocity data. An optical machine is an imaging system of a head-mounted display device, and the optical machine may include a display screen and optical elements.
[0062] Normally, the user may not be able to directly see the display screen of the head-mounted display device, but the display screen is provided to the user through the following scheme. The display screen is used to emit light for displaying the screen, and the optical element can process the above light so that the light of the display screen is projected into the user's eyes, and finally the user can see the display screen. However, when the user wears the head-mounted display device, there is almost no relative displacement and rotation between the head-mounted display device and the user, and the head-mounted display device will move with the movement of the user. Therefore, it may be necessary to process the display screen according to the position and posture of the head-mounted display device (which can actually be regarded as the user), so that the display screen can always be positioned at a certain position, or can be in a certain area, or can move with the user's movement, etc., to match the corresponding application scenario or user needs.
[0063] Before step 110, the angular velocity data of the IMU at the current moment may be obtained, such as the angular velocity data collected by the gyroscope in the IMU, and the first correction posture used to process the display screen of the head mounted display device at the previous moment may be obtained. The first correction posture may be obtained in a manner similar to the second correction posture described below. For the sake of clarity, the method for obtaining the first correction posture is not described in detail here.
[0064] In step 110, the angular velocity data at the current moment and the first correction posture may be used for integration processing with reference to the integration method from the gyroscope angular velocity to the angular position, so as to obtain a reference posture for processing the image to be displayed (the image to be displayed may be the image to be displayed by the head mounted display device) at the current moment. Assume that the angular velocity data at the current moment is represented by Gyro k , the first correction posture is represented as Pose k-1 , the reference posture is expressed as Then we have:
[0065]
[0066] Step 120 , processing the posture error between the reference posture and the preset posture for processing the display image to obtain a correction posture difference.
[0067] It should be noted that the preset posture can be a posture pre-set for the head mounted display device and can ensure the display effect of the head mounted display device. In other words, the preset posture can be a posture used to process the display image in order to ensure the display effect.
[0068] In an optional example, the preset posture is a posture for making the display screen of the head mounted display device appear at a preset position in the coordinate system of the head mounted display device. It can be understood that it can also be a preset position in the IMU coordinate system.
[0069] It is understandable that the preset position in the coordinate system of the head-mounted display device can be a fixed position in the coordinate system of the head-mounted display device, for example, the display screen is displayed in a position that can be observed by the user, such as in front of the head-mounted display device, in the upper left, or in the lower right. It should be noted that the usage habit of most users is to display the display screen in the center of the front. In the embodiments of the present disclosure, the preset posture can be set to a posture that matches the usage habits of most users, so that the display effect of the head-mounted display device can meet the needs of most users as much as possible, which is conducive to improving the user experience.
[0070] In an optional example, the preset posture is a posture for aligning a display screen of the head-mounted display device with the direction of gravity (in this posture, the heading angle of the head-mounted display device may be 0).
[0071] The alignment of the display screen of the head-mounted display device with the direction of gravity can be understood as that when the user observes the display screen through the head-mounted display device, the extension direction of the plane of the display screen is the same as the direction of gravity in the real world, so that the display screen can be kept basically perpendicular to the user's horizontal line of sight, which is in line with viewing habits. It should be noted that the usage habit of most users is to align the display screen of the head-mounted display device with the direction of gravity. In the embodiments of the present disclosure, by setting the preset posture to a posture that matches the usage habits of most users, the display effect of the head-mounted display device can meet the needs of most users as much as possible, which is conducive to improving the user experience.
[0072] Of course, the user can also set a preset posture that can make the display screen of the head-mounted display device appear in a customized position according to needs.
[0073] In step 120, the reference posture and the preset posture may be subtracted to obtain the posture error between the reference posture and the preset posture. The posture error may be in the form of a 3×1 axis angle. It should be noted that the subtraction here is not a simple subtraction, but a generalized function. The "difference" in the subtraction refers to the difference. The subtraction may refer to the relative rotation between the two angles. Assume that the reference posture is expressed as The preset posture is represented as Target, and the posture error is represented as error, then:
[0074]
[0075] After the attitude error is obtained, the attitude error can be corrected by processing the attitude error, thereby obtaining a corrected attitude difference.
[0076] Step 130 : Compensate the reference posture using the correction posture difference to obtain a second correction posture for processing the image to be displayed at the current moment.
[0077] In step 130, the correction posture difference value can be used as a compensation value to update the reference posture to obtain a second correction posture for processing the display image at the current moment. The second correction posture is represented by Pose k , then:
[0078]
[0079] It should be noted that the compensation value here may represent a relative rotation, and updating the compensation value to the reference posture may be performed by superimposing a relative rotation on the basis of the reference posture, thereby obtaining another posture (ie, the second correction posture).
[0080] Step 140: Render the image to be displayed of the head mounted display device based on the second correction posture to display the image to be displayed of the head mounted display device.
[0081] It can be understood that the first correction posture and the second correction posture are postures used to process the display screen of the head-mounted display device, which can also be called correction postures. For example, when the head-mounted display device executes the method for the first time and there is no correction posture at the last moment, the correction posture at the last moment can also adopt the real posture of the head-mounted display device, a preset posture for processing the display screen, or a pre-set other posture.
[0082] It should be noted that there are various specific implementation forms for processing the display image of the head-mounted display device based on the second correction posture or the correction posture, which are introduced below with examples.
[0083] In an optional implementation form, the rendering engine of the head-mounted display device can use the second correction posture or the correction posture to render the picture to obtain the corresponding display picture, and the obtained display picture can be updated to the optical machine of the head-mounted display device for display to realize the correction of the display picture of the head-mounted display device. It is easy to see that this implementation form uses software to realize the processing of the display picture of the head-mounted display device. For example, the scheme can adjust the overall parameters of the picture to be displayed based on the second correction posture or the correction posture, and the overall parameters may include the three-dimensional size of the display picture, etc.
[0084] In another alternative implementation, such as Figure 2 As shown, the second correction posture (eg Figure 2 Pose k ) or correct posture for image rendering, adjust the display screen in the optical machine of the head-mounted display device (for example Figure 2The display position in Display in the head mounted display device is adjusted to realize the correction of the display screen of the head mounted display device. This implementation form is adopted to realize the processing of the display screen of the head mounted display device, for example, the display position of the display screen of the head mounted display device can be adjusted up, down, left, and right. For example, the scheme can adjust the two-dimensional size of the screen to be displayed based on the second correction posture or the correction posture.
[0085] In another optional implementation, Figure 3 As shown, the image rendering can be performed based on the second correction posture or the correction posture, and the optical machine in the head-mounted display device can be configured. For example, the overall position of the optical machine in the head-mounted display module or the position of the display screen in the optical machine can be adjusted through the electronic control chassis to achieve the correction of the display screen of the head-mounted display device (this is equivalent to holding the display screen in front of the user's eyes and making corresponding shock absorption adjustments). It is easy to see that this implementation form uses hardware to implement the processing of the display screen of the head-mounted display device, and the execution logic of this implementation form can be: second correction posture → electronic control chassis → optical machine rotation.
[0086] In an embodiment of the present disclosure, in combination with the angular velocity data of the head-mounted display device at the current moment and the first correction posture used for processing the display image of the head-mounted display device at the previous moment, a reference posture used for processing the display image to be displayed at the current moment can be determined. Next, the posture error between the reference posture and the preset posture used for processing the display image can be processed to obtain a correction posture difference, and the correction posture difference is used to compensate the reference posture to obtain a second correction posture used for processing the display image to be displayed at the current moment. The second correction posture can be considered to be determined with reference to the angular velocity data of the head-mounted display device at the current moment, the first correction posture and the preset posture, and is adapted to the posture of the head-mounted display device (which can actually be regarded as a user) at the current moment. The image to be displayed of the head-mounted display device is rendered based on the posture, which is conducive to correcting the display effect of the head-mounted display device according to the display effect of the head-mounted display device under the preset posture. In this way, no matter whether a small angle change occurs during the use of the head-mounted display device (bumping, shaking, jittering, etc.), or a large angle change occurs during the use of the head-mounted display device (such as a large angle turn), it can be ensured that the head-mounted display device adjusts the display effect accordingly to the preset posture, thereby improving the user experience.
[0087] Optionally, each posture involved in the embodiments of the present disclosure may be in the form of a rotation matrix (Rotationmatrix); each correction posture involved in the embodiments of the present disclosure may be a posture for picture rendering of a rendering engine of a head-mounted display device.
[0088] It should be noted that for head-mounted display devices, there are currently multiple modes when presenting content, which may include a first mode and a second mode. For example, the first mode may be a 3-degree-of-freedom (dof) mode. In the first mode, the head-mounted display device performs positioning processing on the display screen. At this time, the content of the display screen of the head-mounted display device is related to the user's posture, and the display screen of the head-mounted display device can remain rotationally unchanged with the world coordinate system. The second mode is similar to the screen projection mode from a mobile phone to a TV. In the second mode, the head-mounted display device does not perform positioning processing on the display screen. At this time, the content of the display screen of the head-mounted display device may be related to the content playback progress, but has nothing to do with the user's posture. The display screen of the head-mounted display device moves with the user's head movement. For the sake of convenience, the second mode may be referred to as a 0-degree-of-freedom (dof) mode.
[0089] It is understandable that the user can use the head-mounted display device on a vehicle, ship, airplane or other type of mobile platform. In the 0dof mode, if the mobile platform runs smoothly, the display effect of the head-mounted display device is acceptable. However, once there is bumping or shaking, for example, due to the uneven road surface, the moving vehicle bumps and shakes, and for example, due to the influence of airflow, the aircraft in progress bumps and shakes, causing the user to shake or shake with the head-mounted display device. In this 0dof mode, since the display screen will also shake or shake accordingly, in this case the user will not be able to stably and clearly observe the content of the display screen of the head-mounted display device, which will reduce the user's experience.
[0090] In 3dof mode, once the above-mentioned bumps and shakes occur, due to the positioning of the display screen, even if the head-mounted display device shakes or shakes, the positioning of the display screen can remain unchanged, and the user can clearly see the content of the display screen of the head-mounted display device. However, when the direction of the mobile platform changes (for example, turning 90 degrees), since the user (head-mounted display device) will also change the same direction as the mobile platform, and the positioning of the display screen still does not change, the user needs to change to the posture before the direction change to observe the desired display screen, which will also reduce the user's experience.
[0091] Therefore, through the embodiments of the present disclosure, the display effect of the head-mounted display device can be corrected according to the display effect of the head-mounted display device in a preset posture. For example, the display screen of the head-mounted display device can be processed according to the correction posture so that when the angle changes slightly during the use of the head-mounted display device, the display effect is similar to the 3dof mode, and when the angle changes significantly, the display effect is similar to the 0dof mode, thereby improving the user experience.
[0092] In an optional example, the head mounted display device is configured to be coupled to a mobile platform and movable relative to the mobile platform.
[0093] It should be noted that the head mounted display device can be coupled to the mobile platform through the user, and the mobile platform can be in motion. Figure 4 As shown, the head mounted display device can be worn on the head of a user (e.g., a passenger in a vehicle), the head mounted display device and the user remain relatively still, the user can sit or stand inside the vehicle, and when the vehicle moves, the user will move with the vehicle. The user can also move inside the vehicle (e.g., from one position to another, or from one direction to another, etc.). In addition, when the mobile platform is of other types, such as a ship, the user can also sit or stand on the side of the ship.
[0094] It should be noted that for the scenario where the head-mounted display device is configured to be coupled to the mobile platform and movable relative to the mobile platform, the mobile platform may be bumpy or shaken during movement, or the mobile platform may turn during movement. In view of this, the method steps of the present disclosure can be performed for this scenario to ensure the display effect of the head-mounted display device and enhance the user experience.
[0095] It should be pointed out that there is currently a solution for stabilizing the display screen of a mobile phone (or computer) on a mobile platform, that is, the user manually adjusts the relative position and angle between the real display screen of the mobile phone and the user's eyes. In other words, the real display screen of the mobile phone has a relative displacement and rotation relative to the user's eyes. In comparison, using the stabilization solution in the embodiment of the present disclosure, the head-mounted display device has almost no relative displacement and rotation relative to the user's eyes.
[0096] exist Figure 1 Based on the embodiment shown, Figure 5 As shown, step 120 includes:
[0097] Step 1201, low pass filtering is performed on the attitude error corresponding to the current moment to obtain a corrected attitude difference.
[0098] It should be noted that the posture error obtained by subtracting the reference posture determined in step 110 from the preset posture is the posture error corresponding to the current moment.
[0099] Optionally, the attitude error corresponding to the current moment can be low-pass filtered by a low-pass filter such as an infinite impulse response (IIR) digital filter or a finite impulse response (FIR) digital filter. Each output value of the IIR digital filter can only depend on a previous sampling value, so it is very convenient for engineering applications. The low-pass filtering process of the FIR digital filter involves a sliding window, and each output value of the FIR digital filter can be calculated by a number of previous sampling values. Assuming that the attitude error corresponding to the current moment is expressed as error, and the corrected attitude difference is expressed as error1, then:
[0100] error1=LowPassfilter(error)
[0101] It can be understood that, in an ideal state, only data below the cutoff frequency can pass, and the value of the correction attitude difference error1 is not 0, that is, the second correction attitude after the reference attitude is compensated by the correction attitude difference error1 is different from the reference attitude. If data above the cutoff frequency cannot pass, the value of the correction attitude difference error1 is 0, that is, the second correction attitude after the reference attitude is compensated by the correction attitude difference error1 is the same as the reference attitude. However, under actual working conditions, the value of the correction attitude difference error1 may be 0 rarely, and may be a very small value that cannot be perceived by the user.
[0102] In the embodiments of the present disclosure, Figure 6 As shown, the angular velocity data Gyro collected by the gyroscope in the IMU at the current moment is obtained. k Afterwards, you can use the current angular velocity data Gyro k and the first correction posture Pose used to process the display image of the head mounted display device at the previous moment k-1 Perform integration processing to obtain the reference posture for processing the display image at the current moment By By subtracting the preset attitude Target, we can get the attitude error error corresponding to the current moment. For example, by low-pass filtering the error, we can get the corrected attitude difference error1. Error1 can be used as the compensation value to update In order to finally get the second correction pose Pose k . Pose k It can be considered as a posture that can achieve anti-shake. k It can be used to process the display screen at the current moment. Figure 6 The Pose k-1 As input, we get Pose k In a similar way, you can also use Pose k As input, we get Pose k+1 , change Pose k+1 As input, we get Pose k+2 Etc. In this way, by performing low-pass filtering on the posture error, high-frequency jitter and shaking (such as small-angle movement in a short period of time) can be filtered out, and the display screen of the head-mounted display device will tend to be motionless, so that the user can clearly and stably observe the content of the display screen of the head-mounted display device, which can improve the user's experience. In addition, low-frequency movement (such as long-term large-angle movement) will be retained. If the user turns his head or the mobile platform turns (for example, the mobile platform turns and the head turns), causing the head-mounted display device to move at a large angle, after compensation, the display screen of the head-mounted display device will be positioned following the user's head, so that the user can observe the desired display screen, which can also improve the user's experience.
[0103] exist Figure 5 Based on the embodiment shown, Figure 7 As shown, step 1201 includes:
[0104] Step 12011, low-pass filtering is performed on the attitude error corresponding to the current moment through a low-pass filter.
[0105] The method further includes step 150 and step 160 .
[0106] Step 150: receiving user input operation.
[0107] Optionally, the user input operation includes but is not limited to a voice input operation, a touch input operation, etc. For example, the user input operation may be an operation in which the user says in voice "adjust the cutoff frequency to 2 Hz (or 5 Hz or other frequencies)". Alternatively, the head mounted display device may have a paired handle, and the user input operation may be an operation in which the user clicks a cutoff frequency adjustment button on the handle. Alternatively, a cutoff frequency selection box or input box may also be displayed on the display screen, and the user may directly select or input the desired cutoff frequency.
[0108] Step 160 , in response to a user input operation, adjusting the cutoff frequency of the low-pass filter.
[0109] In step 160, the cutoff frequency required by the user may be determined according to the user input operation, and then the cutoff frequency of the low-pass filter may be adjusted to the cutoff frequency required by the user in any feasible manner.
[0110] Combined with the description above, it can be seen that through the low-pass filtering processing of the low-pass filter, for the case where the movement frequency of the head-mounted display device is not higher than the cut-off frequency of the low-pass filter, the display screen of the head-mounted display device changes with the movement of the head-mounted display device, and for the case where the movement frequency of the head-mounted display device is higher than the cut-off frequency of the low-pass filter, the display screen of the head-mounted display device tends to remain motionless. It can be understood that this method may be less sensitive to the movement closer to the cut-off frequency, so that the higher the movement frequency of the head-mounted display device is than the cut-off frequency, the closer the actual mode of the head-mounted display device is to the 3dof mode. The lower the movement frequency of the head-mounted display device is than the cut-off frequency, the closer the actual mode of the head-mounted display device is to the 0dof mode. Therefore, it can be understood that the higher the cut-off frequency, the frequency of most movements may be lower than the cut-off frequency, and the scheme will perform compensation processing on most of the movements of the head-mounted display device so that the display screen follows the movement of the head-mounted display device, and the actual mode of the head-mounted display device is closer to the 0dof mode. The lower the cutoff frequency, the more likely the frequency of most movements is to be higher than the cutoff frequency. In this case, the scheme will perform compensation processing on most movements of the head-mounted display device to make the display image tend to be stationary, and the actual mode of the head-mounted display device will be closer to the 3dof mode.
[0111] In the embodiments of the present disclosure, by adjusting the cutoff frequency of the low-pass filter, the user can make the actual mode of the head-mounted display device closer to the 0dof mode or closer to the 3dof mode according to actual needs.
[0112] It should be pointed out that the above description is about the case where the cutoff frequency of the low-pass filter is adjustable. In specific implementation, the cutoff frequency of the low-pass filter may also be set to an unadjustable fixed value.
[0113] exist Figure 1 Based on the embodiment shown, Figure 8 As shown, step 120 includes:
[0114] Step 1203, using the correction proportional coefficient to correct the posture error corresponding to the current moment to obtain a corrected posture difference, the correction proportional coefficient is greater than 0 and less than 1.
[0115] Optionally, the correction proportional coefficient may be 0.2, 0.5, 0.6, 0.8 or other values between 0 and 1, which are not listed here one by one.
[0116] In step 1203, the posture error corresponding to the current moment may be multiplied by the correction proportional coefficient, and the multiplication result is used as the correction posture difference.
[0117] It is understandable that in the presence of jitter and shaking, the user's head moves back and forth, causing the actual posture of the head-mounted display device to be positive or negative, and the posture error to be positive or negative. After compensation, the display screen of the head-mounted display device will tend to be stationary, so that the user can clearly and stably observe the content of the display screen of the head-mounted display device, which can improve the user's experience. In addition, if the user turns his head or the mobile platform turns (for example, the mobile platform turns and causes the user's head to turn), causing the head-mounted display device to turn, the actual posture of the head-mounted display device is always positive or negative, and the posture error is always positive or negative. After compensation, the display screen of the head-mounted display device will follow the direction of the user's head, so that the user can observe the desired display screen, which can also improve the user's experience.
[0118] It should be noted that the larger the correction scale coefficient, the closer the correction posture difference is to the posture error, and when the correction posture difference is used to determine the second correction posture, the second correction posture will be closer to the preset posture. Correspondingly, the correction speed of the display screen of the head-mounted display device will be faster, so that the larger the correction scale coefficient, the closer the actual mode of the head-mounted display device is to the 0dof mode, and the smaller the correction scale coefficient, the closer the actual mode of the head-mounted display device is to the 3dof mode.
[0119] In the embodiments of the present disclosure, by introducing a correction ratio coefficient to correct the posture error, the correction posture of the head-mounted display device can be made close to the preset posture, and the correction posture is used for rendering the display screen of the head-mounted display device, which is conducive to correcting the display effect of the head-mounted display device according to the display effect of the head-mounted display device under the preset posture. In this way, whether it is a small angle change during the use of the head-mounted display device (bumping, shaking, shaking, etc.), or a large angle change during the use of the head-mounted display device (such as a large angle turn), it can be ensured that the head-mounted display device adjusts the display effect accordingly to the preset posture, thereby improving the user experience. In addition, by controlling the correction ratio coefficient, the user can make the actual mode of the head-mounted display device closer to the 0dof mode or closer to the 3dof mode according to actual needs.
[0120] exist Figure 8 Based on the embodiment shown, Fig. 9 As shown, the method also includes:
[0121] Step 115, determining a correction ratio coefficient based on compensation reference information, where the compensation reference information includes at least one of the following: a posture error corresponding to the current moment, a cumulative value of the posture error, an environmental condition of a mobile platform where the head mounted display device is located, and steering information of the mobile platform.
[0122] Optionally, step 115 can be performed before step 120, that is, after determining the correction scale coefficient based on the compensation reference information, the determined correction scale coefficient is used to correct the posture error. Alternatively, step 115 can be performed after step 120, that is, after correcting the posture error using the correction scale coefficient, the correction scale coefficient can be determined based on the compensation reference information, so that the correction scale coefficient can be dynamically updated using the determination result, so that the updated correction scale coefficient can be subsequently used for posture error correction. The embodiments of the present disclosure do not impose any restrictions on the execution order of steps 115 and 120. Therefore, it can be understood that the correction scale coefficient in the embodiments of the present disclosure can be dynamically adjusted based on the above factors.
[0123] The environmental condition of the mobile platform where the head-mounted display device is located can be determined based on information collected by devices installed on the platform (such as cameras, radars, etc.). In the case where the mobile platform where the head-mounted display device is located is a vehicle, the environmental condition of the mobile platform where the head-mounted display device is located may include road surface information of the road surface where the vehicle is located, and the road surface information may include road surface flatness. In the case where the mobile platform where the head-mounted display device is located is an aircraft, the environmental condition of the mobile platform where the head-mounted display device is located may include the airflow intensity at the location of the aircraft.
[0124] The steering information of the mobile platform where the head mounted display device is located may include a steering degree, and the steering degree may be characterized by a steering angle. In the case where the mobile platform is a vehicle, the steering information may be detected by a vehicle-mounted steering system.
[0125] Optionally, the correction scale coefficient is positively correlated with the posture error corresponding to the current moment. In this way, the greater the difference between the reference posture and the preset posture, the greater the correction scale coefficient. A larger correction scale coefficient is conducive to more quickly correcting the display screen of the head-mounted display device according to the preset posture, thereby facilitating the display effect of the head-mounted display device.
[0126] Optionally, the correction proportional coefficient is positively correlated with the cumulative value of the posture error. The cumulative value of the posture error can be the cumulative value of the posture error within a preset time period, or it can be the cumulative value of the continuous posture error. Compared with the above example, the correction proportional coefficient is determined by the overall movement trend before the screen is displayed, which can make the correction proportional coefficient more matching the actual posture error. For example, when the mobile platform makes a large angle turn, the display screen of the head-mounted display device can be quickly corrected according to the preset posture, which is beneficial to ensure the display effect of the head-mounted display device.
[0127] It is understandable that the value of the posture error can be a positive number or a negative number. For example, if the value of the posture error toward the first direction is defined as a positive number, then the value of the posture error toward the second direction opposite to the first direction is a negative number. Both positive posture errors and negative posture errors can be processed. When evaluating the "large", "small" and "positive correlation" of the posture error, the evaluation can be made with reference to the absolute value of the posture error.
[0128] Optionally, the environmental condition includes road surface flatness, and the correction scale factor is positively correlated with the road surface flatness. Thus, the more uneven the road surface is, the smaller the correction scale factor is. A smaller correction scale factor makes the speed at which the display image of the head-mounted display device is corrected according to the preset posture more slowly, thereby facilitating the stability of the display image of the head-mounted display device.
[0129] Optionally, the steering information includes a steering degree, and the correction scale factor is positively correlated with the steering degree. Thus, the greater the change in the direction of the mobile platform, the greater the correction scale factor, and a larger correction scale factor is conducive to more quickly correcting the display screen of the head-mounted display device according to a preset posture, thereby facilitating ensuring the display screen of the head-mounted display device follows the display screen.
[0130] In the embodiments of the present disclosure, the correction proportional coefficient can be reasonably determined with reference to at least one of the posture error corresponding to the current moment, the environmental conditions of the mobile platform where the head-mounted display device is located, and the steering information of the mobile platform, so that the determined correction proportional coefficient is adapted to the actual situation.
[0131] Of course, it is understandable that, similar to the adjustment scheme of the cut-off frequency, the user can also adjust the above correction proportional coefficient according to usage requirements.
[0132] exist Figure 8 Based on the embodiment shown, Fig.10 As shown, the method further includes step 180 and step 190.
[0133] Step 180, determining a change rule of the posture error based on the posture error sequence, where the posture error sequence includes posture errors corresponding to multiple moments.
[0134] It should be noted that after determining the reference posture corresponding to the current moment by executing step 110, the posture error corresponding to the current moment can be determined by subtracting the reference posture corresponding to the current moment from the preset posture. In a similar manner, the corresponding posture error can be determined for each moment, so that a plurality of posture errors corresponding to a plurality of moments can be obtained. The plurality of posture errors can be arranged in order from early to late according to the corresponding moments to form a posture error sequence.
[0135] In an optional example, the posture error sequence may include 20 posture errors arranged in sequence, namely R1, R2, R3, ..., R20, the time corresponding to R1 may be t1, the time corresponding to R2 may be t2, the time corresponding to R3 may be t3, ..., and the time corresponding to R20 may be t20. Optionally, t20 may be the current time.
[0136] By analyzing the posture error sequence, the change law of the posture error can be determined. The change law of the posture error includes but is not limited to the following information: whether the overall change trend of the posture error is increasing or decreasing; which moment the maximum and minimum values of the posture error correspond to; how many maximum and minimum values the posture error has; which moment each maximum and minimum value corresponds to; the relationship between the posture error corresponding to each moment after a certain moment (which can be considered as the reference moment) and the posture error corresponding to the reference moment.
[0137] Step 190, adjusting the correction proportional coefficient based on the change rule of the posture error.
[0138] It should be noted that step 190 can be implemented in various forms, which are described below with examples.
[0139] In an optional implementation, Figure 11-1 As shown, step 190 includes:
[0140] Step 1901, when it is determined based on the change rule of the posture error that the posture error corresponding to each moment in the target time period is greater than or equal to the posture error corresponding to the target moment, increase the correction proportional coefficient.
[0141] The target time, the start time of the target time period, and the end time of the target time period are respectively one of the multiple times, the start time of the target time period is later than the target time, and the duration of the target time period is greater than or equal to the preset duration.
[0142] Optionally, the preset duration may be 3 seconds, 4 seconds, 5 seconds, 8 seconds or other durations, which are not listed here one by one.
[0143] In an optional example, the posture error sequence may include 20 posture errors arranged in sequence, namely R1, R2, R3, ..., R20, the time corresponding to R1 may be t1, the time corresponding to R2 may be t2, the time corresponding to R3 may be t3, ..., and the time corresponding to R20 may be t20. Optionally, t20 may be the current time.
[0144] Assuming that t13 among t1 to t20 is the target moment, the change rule of the posture error may include the size relationship between each of R14 to R20 and R13. Assuming that the interval between any two adjacent moments is 0.5 seconds, the preset duration is 3 seconds, the starting moment of the target time period is t14, and the ending moment of the target time period is t20, then when each of R14 to R20 is greater than or equal to R13, it can be considered that the posture error continues to be high from the moment t13. That is, when the posture error is corrected based on the current correction proportional coefficient, the correction effect is not ideal. At this time, the correction proportional coefficient can be increased, for example, the correction proportional coefficient can be adjusted from 0.5 to 0.6 or 0.7. By increasing the correction proportional coefficient, the display screen of the head-mounted display device can be corrected more quickly according to the preset posture, which is conducive to ensuring the display effect of the head-mounted display device.
[0145] In another alternative implementation, such as Figure 11-2 As shown, step 190 includes:
[0146] Step 1903, when it is determined based on the change rule of the posture error that the posture error corresponding to each moment in the target time period is smaller than the posture error corresponding to the target moment, the correction proportional coefficient is reduced.
[0147] The target time, the start time of the target time period, and the end time of the target time period are respectively one of the multiple times, the start time of the target time period is later than the target time, and the duration of the target time period is greater than or equal to the preset duration.
[0148] Optionally, the preset duration may be 3 seconds, 4 seconds, 5 seconds, 8 seconds or other durations, which are not listed here one by one.
[0149] Continuing with the example in the previous implementation form, when each of R14 to R20 is less than R13, it can be considered that the posture error continues to be low from the moment t13. That is, when the posture error is corrected based on the current correction proportional coefficient, the correction effect can meet the requirements. At this time, the correction proportional coefficient can be reduced, for example, the correction proportional coefficient can be adjusted from 0.5 to 0.3 or 0.4. By reducing the correction proportional coefficient, the speed at which the display screen of the head-mounted display device is corrected according to the preset posture can be made more gentle, which is conducive to ensuring the stability of the display screen of the head-mounted display device.
[0150] In another optional implementation, Figure 11-3 As shown, step 190 includes:
[0151] Step 1905: when it is determined based on the change law of the posture error that the change trend of the posture error is an increasing trend, increase the correction proportional coefficient.
[0152] Assuming that based on the change law of the posture error, it is determined that the change trend of the posture error is an increasing trend, for example, continuing the example in the first implementation form, if R1, R2, R3, ..., R20 increase in sequence, or although R1, R2, R3, ..., R20 do not increase in sequence, but the overall trend is gradually increasing (for example, the first 10 posture errors of 20 posture errors increase in sequence, the 11th posture error is the same as the 12th posture error, and the last 8 posture errors increase in sequence), then the correction ratio coefficient can be increased, for example, the correction ratio coefficient can be adjusted from 0.5 to 0.6 or 0.7. By increasing the correction ratio coefficient, the display screen of the head-mounted display device can be corrected more quickly according to the preset posture, which is conducive to ensuring the display effect of the head-mounted display device.
[0153] In yet another optional implementation, Figure 11-4 As shown, step 190 includes:
[0154] Step 1907, when it is determined based on the change law of the posture error that the change trend of the posture error is a decreasing trend, the correction proportional coefficient is reduced.
[0155] Assuming that based on the change law of the posture error, it is determined that the change trend of the posture error is a decreasing trend, for example, continuing the example in the first implementation form, if R1, R2, R3, ..., R20 decreases in sequence, or although R1, R2, R3, ..., R20 do not decrease in sequence, but the overall trend is gradually decreasing (for example, the first 10 posture errors of 20 posture errors decrease in sequence, the 11th posture error is the same as the 12th posture error, and the last 8 posture errors decrease in sequence), then the correction proportional coefficient can be reduced, for example, the correction proportional coefficient can be adjusted from 0.5 to 0.3 or 0.4. By reducing the correction proportional coefficient, the speed at which the display screen of the head-mounted display device is corrected according to the preset posture can be made more gentle, which is conducive to ensuring the stability of the display screen of the head-mounted display device.
[0156] It can be seen that in the embodiments of the present disclosure, by referring to the variation law of the posture error and adjusting the correction proportional coefficient, the display image of the head-mounted display device can be corrected at a more appropriate speed according to the actual situation, thereby ensuring the display effect and display image stability of the head-mounted display device.
[0157] exist Figure 1 Based on the embodiment shown, Fig.12 As shown, the method further includes step 102 , step 104 and step 106 .
[0158] Step 102: Identify the type of platform on which the head mounted display device is located.
[0159] It should be noted that there are various implementation forms for identifying the type of platform on which the head mounted display device is located, which are described below with examples.
[0160] In an optional implementation form, the head mounted display device can establish a communication connection with the platform on which it is located, and in the process of establishing the communication connection, relevant information of the platform can be obtained. The relevant information of the platform includes but is not limited to identification information, type information, etc. By extracting the type information from the obtained relevant information and identifying the category represented by the type information, it can be determined whether the type of the platform is a mobile platform.
[0161] In another optional implementation form, the head mounted display device may further include a camera, and the head mounted display device may collect images of its own environment through the camera, and perform target detection on the images to determine whether the images match a mobile platform such as a vehicle. If they match, it may be determined that the type of the platform where the head mounted display device is located is a mobile platform; otherwise, it may be determined that the type of the platform where the head mounted display device is located is not a mobile platform.
[0162] In another optional implementation form, the acceleration data collected by the accelerometer in the IMU of the head-mounted display device or the angular velocity data collected by the gyroscope can be obtained and compared with a preset threshold. If it is determined based on the acceleration data that the acceleration of the head-mounted display device is greater than the set acceleration threshold, or if it is determined based on the angular velocity data that the angular velocity of the head-mounted display device is greater than the set angular velocity threshold, it can be determined that the type of the platform where the head-mounted display device is located is a mobile platform. Otherwise, it can be determined that the type of the platform where the head-mounted display device is located is not a mobile platform.
[0163] Step 104: When the type of the platform on which the head mounted display device is located is a mobile platform, control the head mounted display device to switch to a target mode.
[0164] In an embodiment of the present disclosure, the head mounted display device may include at least three modes, and the at least three modes may include the 0dof mode, the 3dof mode, and the target mode in step 104 mentioned above.
[0165] Step 106 , determining whether the head mounted display device is in the target mode, and if so, triggering step 110 .
[0166] In an embodiment of the present disclosure, the type of platform on which the head-mounted display device is located can be identified. If the category of the platform is not a mobile platform, the head-mounted display device can be placed in a conventional 0dof mode or 3dof mode. If the category of the platform is a mobile platform, the head-mounted display device can be automatically switched to a target mode, so that in the target mode, step 110 is triggered to implement the execution of steps 110 to 140 above. As described above, the target mode is a mode between the 0dof mode and the 3dof mode. In the target mode, when the mobile platform is bumpy or shaking, the display screen of the head-mounted display device can be adjusted to compensate for the bumps and shakes to keep the screen stable. In addition, when the mobile platform or the user's head turns, the display screen of the head-mounted display device can be kept positioned following the user's head, thereby improving the user experience.
[0167] It should be noted that the above description is about automatically switching the head mounted display device to the target mode when the head mounted display device is located on the mobile platform. Of course, the user can also manually select to put the head mounted display device into any mode of 0dof mode, 3dof mode or target mode according to actual needs.
[0168] It should be noted that the mobile platform involved in the embodiments of the present disclosure may also be referred to as a sports vehicle; the angular velocity data in the embodiments of the present disclosure may also be collected not by the gyroscope in the IMU, but by other sensors that can obtain angular velocity data.
[0169] In summary, in the embodiments of the present disclosure, without using the acceleration data collected by the IMU, by using the angular velocity data collected by the IMU, the display effect of the head-mounted display device can be corrected according to the display effect of the head-mounted display device under a preset posture. For the head-mounted display device, the display effect can be guaranteed regardless of whether it is a short-term small-angle movement or a long-term large-angle movement.
[0170] Any method for displaying a picture on a head-mounted display device provided in the embodiments of the present disclosure may be executed by any appropriate device with data processing capabilities, including but not limited to: a terminal device and a server, etc. Alternatively, any method for displaying a picture on a head-mounted display device provided in the embodiments of the present disclosure may be executed by a processor, such as the processor executing any method for displaying a picture on a head-mounted display device mentioned in the embodiments of the present disclosure by calling corresponding instructions stored in a memory. This will not be described in detail below.
[0171] Exemplary Devices
[0172] Fig.13 is a schematic structural diagram of an apparatus for displaying images on a head mounted display device provided by an exemplary embodiment of the present disclosure, Fig.13 The device shown includes a first determination module 1310 , a first processing module 1320 , a compensation module 1330 , and a second processing module 1340 .
[0173] A first determining module 1310 is used to determine a reference posture for processing a display image at a current moment based on the angular velocity data of the head mounted display device at a current moment and a first correction posture for processing a display image of the head mounted display device at a previous moment;
[0174] A first processing module 1320 is used to process a posture error between a reference posture and a preset posture for processing a display image to obtain a correction posture difference;
[0175] A compensation module 1330, configured to compensate the reference posture using the correction posture difference to obtain a second correction posture for processing the image to be displayed at the current moment;
[0176] The second processing module 1340 is used to render the picture to be displayed of the head-mounted display device based on the second correction posture, so as to display the picture to be displayed of the head-mounted display device.
[0177] In an optional example, the first processing module 1320 is configured to:
[0178] The attitude error corresponding to the current moment is low-pass filtered to obtain the corrected attitude difference.
[0179] In an alternative example,
[0180] The first processing module 1320 is used to:
[0181] The attitude error corresponding to the current moment is processed by low-pass filtering;
[0182] like Fig.14 As shown, the device also includes:
[0183] The receiving module 1350 is used to receive user input operations;
[0184] The first adjustment module 1360 is used to adjust the cutoff frequency of the low-pass filter in response to a user input operation.
[0185] In an optional example, the first processing module 1320 is configured to:
[0186] The correction proportional coefficient is used to correct the posture error corresponding to the current moment to obtain a corrected posture difference, wherein the correction proportional coefficient is greater than 0 and less than 1.
[0187] In an alternative example, Fig.15 As shown, the device also includes:
[0188] The second determination module 1315 is used to determine the correction scale coefficient based on the compensation reference information, where the compensation reference information includes at least one of the following: the posture error corresponding to the current moment, the accumulated value of the posture error, the environmental conditions of the mobile platform where the head-mounted display device is located, and the steering information of the mobile platform.
[0189] In an optional example, at least one of the following four items is satisfied:
[0190] The correction scale coefficient is positively correlated with the attitude error corresponding to the current moment;
[0191] The correction scale coefficient is positively correlated with the cumulative value of the attitude error;
[0192] Environmental conditions include road surface smoothness, and the correction proportionality factor is positively correlated with road surface smoothness;
[0193] The steering information includes the steering degree, and the correction proportional coefficient is positively correlated with the steering degree.
[0194] In an alternative example, Fig.16 As shown, the device also includes:
[0195] A third determination module 1380 is used to determine a change rule of the posture error based on the posture error sequence, where the posture error sequence includes posture errors corresponding to multiple moments;
[0196] The second adjustment module 1390 is used to adjust the correction proportional coefficient based on the change rule of the posture error.
[0197] In an optional example, the second adjustment module 1390 includes Fig.16 At least one of the first adjustment unit 13901, the second adjustment unit 13903, the third adjustment unit 13905, and the fourth adjustment unit 13907 shown;
[0198] The first adjustment unit 13901 is used to increase the correction proportional coefficient when it is determined that the posture error corresponding to each moment in the target time period is greater than or equal to the posture error corresponding to the target moment based on the posture error change law;
[0199] The second adjustment unit 13903 is used to reduce the correction proportional coefficient when it is determined based on the change law of the posture error that the posture error corresponding to each moment in the target time period is smaller than the posture error corresponding to the target moment;
[0200] The third adjustment unit 13905 is used to increase the correction proportional coefficient when it is determined that the change trend of the posture error is an increasing trend based on the change law of the posture error;
[0201] The fourth adjustment unit 13907 is used to reduce the correction proportional coefficient when it is determined that the change trend of the posture error is a decreasing trend based on the change law of the posture error;
[0202] The target time, the start time of the target time period, and the end time of the target time period are respectively one of the multiple times, the start time of the target time period is later than the target time, and the duration of the target time period is greater than or equal to the preset duration.
[0203] In an alternative example,
[0204] like Fig.17 As shown, the device also includes:
[0205] An identification module 1302 is used to identify the type of platform where the head mounted display device is located;
[0206] The control module 1304 is used to control the head mounted display device to switch to the target mode when the type is a mobile platform;
[0207] The trigger module 1306 is used to trigger the first determination module 1310 when the head mounted display device is in the target mode.
[0208] In an optional example, the head mounted display device is configured to be coupled to a mobile platform and movable relative to the mobile platform.
[0209] In an optional example, one of the following two conditions is met:
[0210] The preset posture is a posture for causing the display screen of the head-mounted display device to be displayed at a preset position in the coordinate system of the head-mounted display device;
[0211] The preset posture is a posture used to align the display screen of the head mounted display device with the direction of gravity.
[0212] In an alternative example, Fig.18 As shown, the device also includes:
[0213] Configuration module 1395 is used to configure the optical machine in the head-mounted display device based on the second correction posture.
[0214] Exemplary Electronic Devices
[0215] Below, reference Fig.19 The electronic device according to the embodiment of the present disclosure is described. The electronic device may be any one or both of the first device and the second device, or a stand-alone device independent of them, and the stand-alone device may communicate with the first device and the second device to receive the collected input signals from them.
[0216] Fig.19A block diagram of an electronic device 1900 according to an embodiment of the present disclosure is illustrated.
[0217] like Fig.19 As shown, electronic device 1900 includes one or more processors 1910 and memory 1920 .
[0218] The processor 1910 may be a central processing unit (CPU) or other forms of processing units having data processing capabilities and / or instruction execution capabilities, and may control other components in the electronic device 1900 to perform desired functions.
[0219] The memory 1920 may include one or more computer program products, which may include various forms of computer-readable storage media, such as volatile memory and / or non-volatile memory. The volatile memory may include, for example, random access memory (RAM) and / or cache memory (cache), etc. The non-volatile memory may include, for example, read-only memory (ROM), hard disk, flash memory, etc. One or more computer program instructions may be stored on the computer-readable storage medium, and the processor 1910 may run the program instructions to implement the methods for displaying images on a head-mounted display device and / or other desired functions of the various embodiments of the present disclosure described above. Various contents such as input signals, signal components, noise components, etc. may also be stored in the computer-readable storage medium.
[0220] In one example, the electronic device 1900 may further include: an input device 1930 and an output device 1940 , and these components are interconnected via a bus system and / or other forms of connection mechanisms (not shown).
[0221] For example, when the electronic device 1900 is a first device or a second device, the input device 1930 may be a microphone or a microphone array. When the electronic device 1900 is a stand-alone device, the input device 1930 may be a communication network connector for receiving collected input signals from the first device and the second device.
[0222] In addition, the input device 1930 may also include, for example, a keyboard, a mouse, and the like.
[0223] The output device 1940 can output various information to the outside, and can include, for example, a display, a speaker, a printer, a communication network and a remote output device connected thereto.
[0224] Of course, to simplify, Fig.19Only some of the components related to the present disclosure in the electronic device 1900 are shown, and components such as a bus, an input / output interface, etc. are omitted. In addition, according to specific application scenarios, the electronic device 1900 may also include any other appropriate components.
[0225] Exemplary computer program products and computer-readable storage media
[0226] In addition to the above-mentioned methods and devices, an embodiment of the present disclosure may also be a computer program product, which includes computer program instructions, which, when executed by a processor, enable the processor to execute the steps of the method for displaying an image on a head-mounted display device according to various embodiments of the present disclosure described in the above "Exemplary Method" section of this specification.
[0227] The computer program product may be written in any combination of one or more programming languages to write program code for performing the operations of the disclosed embodiments, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0228] In addition, an embodiment of the present disclosure may also be a computer-readable storage medium having computer program instructions stored thereon, which, when executed by a processor, causes the processor to execute the steps of the method for displaying an image on a head-mounted display device according to various embodiments of the present disclosure described in the above “Exemplary Method” section of this specification.
[0229] The computer readable storage medium can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0230] The basic principles of the present disclosure are described above in conjunction with specific embodiments. It should be pointed out that the advantages, strengths, effects, etc. mentioned in the present disclosure are only examples and not limitations, and it cannot be considered that these advantages, strengths, effects, etc. must be possessed by each embodiment of the present disclosure. The specific details disclosed above are only for the purpose of illustration and ease of understanding, not limitation, and the above details do not limit the present disclosure to being implemented by adopting the above specific details.
[0231] Each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the system embodiment, since it basically corresponds to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.
[0232] The block diagrams of the devices, apparatuses, equipment, and systems involved in this disclosure are only illustrative examples and are not intended to require or imply that they must be connected, arranged, and configured in the manner shown in the block diagrams. As will be appreciated by those skilled in the art, these devices, apparatuses, equipment, and systems can be connected, arranged, and configured in any manner. Words such as "including," "comprising," "having," and the like are open words, referring to "including but not limited to," and can be used interchangeably therewith. The words "or" and "and" used herein refer to the words "and / or," and can be used interchangeably therewith, unless the context clearly indicates otherwise. The word "such as" used herein refers to the phrase "such as but not limited to," and can be used interchangeably therewith.
[0233] The method and apparatus of the present disclosure may be implemented in many ways. For example, the method and apparatus of the present disclosure may be implemented by software, hardware, firmware, or any combination of software, hardware, and firmware. The above order of steps for the method is for illustration only, and the steps of the method of the present disclosure are not limited to the order specifically described above, unless otherwise specifically stated. In addition, in some embodiments, the present disclosure may also be implemented as a program recorded in a recording medium, which includes machine-readable instructions for implementing the method according to the present disclosure. Therefore, the present disclosure also covers a recording medium storing a program for executing the method according to the present disclosure.
[0234] It should also be noted that in the apparatus, device and method of the present disclosure, each component or each step can be decomposed and / or recombined. Such decomposition and / or recombination should be regarded as equivalent solutions of the present disclosure.
[0235] The above description of the disclosed aspects is provided to enable any person skilled in the art to make or use the present disclosure. Various modifications to these aspects will be readily apparent to those skilled in the art, and the general principles defined herein may be applied to other aspects without departing from the scope of the present disclosure. Therefore, the present disclosure is not intended to be limited to the aspects shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
[0236] The above description has been given for the purpose of illustration and description. In addition, this description is not intended to limit the embodiments of the present disclosure to the forms disclosed herein. Although multiple example aspects and embodiments have been discussed above, those skilled in the art will recognize certain variations, modifications, changes, additions and sub-combinations thereof.
Claims
1. A method for displaying an image on a head-mounted display device, comprising: Determining a reference posture for processing a display image at a current moment based on the angular velocity data of the head-mounted display device at a current moment and a first correction posture used to process a display image of the head-mounted display device at a previous moment; Processing a posture error between the reference posture and a preset posture for processing a display image to obtain a corrected posture difference; Compensating the reference posture using the correction posture difference to obtain a second correction posture for processing the image to be displayed at a current moment, wherein both the first correction posture and the second correction posture are postures for processing the display image of the head-mounted display device; Rendering a to-be-displayed image of the head-mounted display device based on the second correction posture, so as to display the to-be-displayed image of the head-mounted display device in a target mode, so that a display effect of the head-mounted display device is corrected according to a display effect of the head-mounted display device in the preset posture; Among them, the target mode is used to keep the display screen of the head-mounted display device stable when the head-mounted display device undergoes a first type of angle change. The target mode is also used to keep the display screen of the head-mounted display device positioned following the user's head when the head-mounted display device undergoes a second type of angle change, and the change angle of the second type of angle change is greater than the change angle of the first type of angle change.
2. The method according to claim 1, wherein The step of processing a posture error between the reference posture and a preset posture for processing a display image to obtain a corrected posture difference comprises: The posture error corresponding to the current moment is corrected using a correction proportional coefficient to obtain a corrected posture difference, wherein the correction proportional coefficient is greater than 0 and less than 1.
3. The method according to claim 2, further comprising: The correction proportional coefficient is determined based on compensation reference information, where the compensation reference information includes at least one of the following: a posture error corresponding to a current moment, a cumulative value of the posture error, an environmental condition of a mobile platform where the head-mounted display device is located, and steering information of the mobile platform.
4. The method according to claim 3, wherein: At least one of the following four conditions is met: The correction proportional coefficient is positively correlated with the posture error corresponding to the current moment; The correction proportional coefficient is positively correlated with the cumulative value of the posture error; The environmental condition includes road surface smoothness, and the correction proportional coefficient is positively correlated with the road surface smoothness; The steering information includes a steering degree, and the correction proportional coefficient is positively correlated with the steering degree.
5. The method according to claim 2, further comprising: Determining a change pattern of the attitude error based on an attitude error sequence, wherein the attitude error sequence includes attitude errors corresponding to a plurality of moments; Based on the change rule of the posture error, the correction proportional coefficient is adjusted.
6. The method according to claim 5, wherein: The adjusting of the correction proportional coefficient based on the change rule of the posture error includes at least one of the following four items: When it is determined based on the attitude error variation rule that the attitude error corresponding to each moment in the target time period is greater than or equal to the attitude error corresponding to the target moment, increasing the correction proportional coefficient; When it is determined based on the change law of the posture error that the posture error corresponding to each moment in the target time period is smaller than the posture error corresponding to the target moment, reducing the correction proportional coefficient; When it is determined based on the change law of the posture error that the change trend of the posture error is an increasing trend, increasing the correction proportional coefficient; When it is determined based on the change law of the posture error that the change trend of the posture error is a decreasing trend, reducing the correction proportional coefficient; Among them, the target moment, the starting moment of the target time period, and the ending moment of the target time period are respectively one moment among the multiple moments, the starting moment of the target time period is later than the target moment, and the duration of the target time period is greater than or equal to the preset duration.
7. The method according to claim 1, wherein The step of processing a posture error between the reference posture and a preset posture for processing a display image to obtain a corrected posture difference comprises: The posture error corresponding to the current moment is subjected to low-pass filtering to obtain the corrected posture difference.
8. The method according to claim 7, wherein: The low-pass filtering of the attitude error corresponding to the current moment includes: Perform low-pass filtering on the attitude error corresponding to the current moment through a low-pass filter; The method further comprises: Receive user input operations; In response to the user input operation, the cutoff frequency of the low-pass filter is adjusted.
9. The method according to claim 1, further comprising: Identifying the type of platform on which the head-mounted display device is located; In a case where the type is a mobile platform, controlling the head mounted display device to switch to a target mode; When the head-mounted display device is in the target mode, the step of determining a reference posture for processing the display image at the current moment based on the angular velocity data of the head-mounted display device at the current moment and the first correction posture used to process the display image of the head-mounted display device at the previous moment is performed.
10. The method according to claim 1, wherein The head mounted display device is configured to be coupled to a mobile platform and movable relative to the mobile platform.
11. The method according to any one of claims 1 to 10, wherein At least one of the following two conditions is met: The preset posture is a posture for causing the display screen of the head-mounted display device to be displayed at a preset position in the coordinate system of the head-mounted display device; The preset posture is a posture for aligning a display screen of the head-mounted display device with a direction of gravity.
12. The method according to any one of claims 1 to 10, further comprising: Based on the second correction posture, configure the optical machine in the head-mounted display device.
13. A device for displaying images on a head-mounted display device, comprising: a first determining module, configured to determine, based on the angular velocity data of the head-mounted display device at a current moment and a first correction posture used to process a display image of the head-mounted display device at a previous moment, a reference posture for processing a display image of the head-mounted display device at a current moment; A first processing module is used to process a posture error between the reference posture and a preset posture for processing a display image to obtain a corrected posture difference; a compensation module, configured to compensate the reference posture using the correction posture difference to obtain a second correction posture for processing the image to be displayed at a current moment, wherein the first correction posture and the second correction posture are both postures for processing the display image of the head-mounted display device; a second processing module, configured to render a to-be-displayed image of the head-mounted display device based on the second correction posture, so as to display the to-be-displayed image of the head-mounted display device in a target mode, so that a display effect of the head-mounted display device is corrected according to a display effect of the head-mounted display device in the preset posture; Among them, the target mode is used to keep the display screen of the head-mounted display device stable when the head-mounted display device undergoes a first type of angle change. The target mode is also used to keep the display screen of the head-mounted display device positioned following the user's head when the head-mounted display device undergoes a second type of angle change, and the change angle of the second type of angle change is greater than the change angle of the first type of angle change.
14. An electronic device comprising: a memory for storing a computer program product; A processor is configured to execute a computer program product stored in the memory, and when the computer program product is executed, implements the method for displaying an image on a head-mounted display device according to any one of claims 1 to 12.
15. A computer-readable storage medium having computer program instructions stored thereon, characterized in that: When the computer program instructions are executed by a processor, the method for displaying images on a head-mounted display device according to any one of claims 1 to 12 is implemented.
