Control method, device, equipment and readable storage medium of head mounted display device
By acquiring and training feature vectors that reflect the focal length of the head-mounted display device, the focal length is automatically adjusted, which solves the problem of manually adjusting the focal length in the existing technology and improves the convenience and service life of the device.
Patent Information
- Application Number
- CN202111434155.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-29
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2041-11-29
AI Technical Summary
Existing head-mounted display devices require users to manually adjust the focus during use, and the focus spiral ages as the number of wears increases, affecting the wearing experience.
By obtaining the feature vector that reflects the focal length of the head-mounted display device, the focal length mapping function is trained, the target focal length is predicted, and the current focal length is automatically adjusted to avoid manual adjustment by the user.
It improves the convenience of use of the head-mounted display device, extends the service life of the device, and enhances the user experience.
Smart Images

Figure CN114339193B
Abstract
Description
Technical Field
[0001] The embodiments of the present disclosure relate to the field of head-mounted technology, and more specifically, to a control method, apparatus, device, and readable storage medium for a head-mounted display device. Background Art
[0002] With the development of technology, head-mounted display devices are appearing more and more in daily life, such as VR head-mounted display devices and AR head-mounted display devices.
[0003] At present, most head-mounted products can adjust the focal length to meet the different needs of users. However, when using head-mounted display devices, users need to manually adjust the focus screw, which makes the use of head-mounted devices inconvenient. In addition, as the number of times you wear it increases, the focus screw will age and lose focus, affecting the wearing experience.
[0004] Therefore, it is necessary to provide a new control method for a head-mounted display device to adaptively adjust the focal length of the head-mounted display device. Summary of the invention
[0005] The purpose of the embodiments of the present disclosure is to provide a technical solution for controlling a head-mounted display device to adaptively adjust the focal length of the head-mounted display device.
[0006] According to a first aspect of an embodiment of the present disclosure, a method for controlling a head mounted display device is provided, the method comprising:
[0007] Acquire a selected feature vector, wherein the feature vector includes a feature reflecting a focal length of the head mounted display device;
[0008] Obtaining a mapping function between the feature vector and focal length;
[0009] Predicting a target focal length of the head mounted display device according to a vector value of the feature vector for the head mounted display device and the mapping function;
[0010] The current focal length of the head mounted display device is adjusted to a target focal length.
[0011] Optionally, the feature vector includes a wearing state feature;
[0012] The wearing state feature includes at least one of the pressure of the user's face relative to the wearing part of the head-mounted display device, the distance between the user's eyes and the screen of the head-mounted display device, and the wearing angle.
[0013] Optionally, the obtaining a mapping function between the feature vector and the focal length includes:
[0014] When the head mounted display device is worn for the first time, acquiring wearing state data of the head mounted display device as a training sample;
[0015] The mapping function is obtained through training according to the vector value of the training sample for the feature vector and the optimal focal length corresponding to the training sample.
[0016] Optionally, before obtaining wearing state data of the head mounted display device as a training sample when the head mounted display device is worn for the first time, the method further includes:
[0017] When the head mounted display device is worn for the first time, N first images are displayed, wherein the focal lengths corresponding to the N first images are different;
[0018] In response to a first input from a user, acquiring M second images from the N first images;
[0019] Determining the optimal focal length according to the M second images;
[0020] Wherein, N and M are positive integers greater than 1, and M is less than N.
[0021] According to a second aspect of an embodiment of the present disclosure, a control device for a head mounted display device is provided, the device comprising:
[0022] A first acquisition module, configured to acquire a selected feature vector, wherein the feature vector includes a feature reflecting a focal length of the head mounted display device;
[0023] A second acquisition module is used to acquire a mapping function between the feature vector and the focal length;
[0024] A prediction module, configured to predict a target focal length of the head mounted display device according to a vector value of the head mounted display device for the feature vector and the mapping function;
[0025] The adjustment module is used to adjust the current focal length of the head mounted display device to a target focal length.
[0026] Optionally, the feature vector includes a wearing state feature;
[0027] The wearing state feature includes at least one of the pressure of the user's face relative to the wearing part of the head-mounted display device, the distance between the user's eyes and the screen of the head-mounted display device, and the wearing angle.
[0028] Optionally, the second acquisition module includes:
[0029] A sample acquisition unit, configured to acquire wearing state data of the head mounted display device as a training sample when the head mounted display device is worn for the first time;
[0030] A training unit is used to train and obtain the mapping function according to the vector value of the training sample for the feature vector and the optimal focal length corresponding to the training sample.
[0031] Optionally, the device further comprises:
[0032] A display module, configured to display N first images when the head mounted display device is worn for the first time, wherein the focal lengths corresponding to the N first images are different;
[0033] A third acquisition module, configured to acquire M second images from the N first images in response to a first input from a user;
[0034] A determination module, configured to determine the optimal focal length according to the M second images;
[0035] Wherein, N and M are positive integers greater than 1, and M is less than N.
[0036] According to a third aspect of an embodiment of the present disclosure, there is provided a head mounted display device, including a focusing mechanism, the head mounted display device further comprising:
[0037] Memory for storing executable computer instructions;
[0038] A processor, configured to execute the control method according to the first aspect of the embodiment of the present disclosure under the control of the executable computer instruction;
[0039] Wherein, the focusing mechanism is connected to the processor to adjust the current focal length of the head mounted display device to the target focal length.
[0040] According to a fourth aspect of an embodiment of the present disclosure, a computer-readable storage medium is provided, on which computer instructions are stored. When the computer instructions are executed by a processor, the method according to the first aspect of the embodiment of the present disclosure is executed.
[0041] According to an embodiment of the present disclosure, a feature vector reflecting the focal length of the head-mounted display device is obtained, and the target focal length of the head-mounted display device is predicted based on the vector value of the feature vector of the head-mounted display device and the mapping function between the feature vector and the focal length, so as to adjust the current focal length of the head-mounted display device to the target focal length. In this way, during the use of the head-mounted display device, the focal length of the head-mounted display device can be adaptively adjusted according to the changes in the user's wearing state, without the need for manual adjustment by the user, which makes it more convenient to use and provides a better user experience. In addition, avoiding users from frequently adjusting the focal length of the head-mounted display device through the focus knob can extend the service life of the device.
[0042] Other features and advantages of embodiments of the present disclosure will become apparent from the following detailed description of exemplary embodiments of the present disclosure with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions of the embodiments of the present disclosure, the following briefly introduces the drawings required for use in the embodiments. It should be understood that the following drawings only illustrate certain embodiments of the present disclosure and should not be regarded as limiting the scope. For those of ordinary skill in the art, other related drawings can also be obtained based on these drawings without creative work.
[0044] Figure 1 is a schematic diagram of the hardware configuration of a head mounted display device that can be used to implement a control method of an embodiment;
[0045] Figure 2 is a flowchart of a method for controlling a head mounted display device according to an embodiment;
[0046] Figure 3 is a principle block diagram of a control device for a head mounted display device according to an embodiment;
[0047] Figure 4 1 is a schematic diagram of the hardware structure of a head mounted display device according to an embodiment. DETAILED DESCRIPTION
[0048] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that unless otherwise specifically stated, the relative arrangement of components and steps, numerical expressions and numerical values set forth in these embodiments do not limit the scope of the embodiments of the present disclosure.
[0049] 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.
[0050] 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.
[0051] In all examples shown and discussed herein, any specific values should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.
[0052] 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.
[0053] <Hardware Configuration>
[0054] Figure 1 The figure is a schematic diagram of a hardware configuration that can be used to implement a control method for a head mounted display device according to an embodiment.
[0055] like Figure 1 As shown, the head mounted display device 1000 may include a processor 1100, a memory 1200, an interface device 1300, a communication device 1400, a display device 1500, an input device 1600, a microphone 1700 and a speaker 1800. The processor 1100 may include, but is not limited to, a central processing unit CPU, a microprocessor MCU, etc. The memory 1200 may include, for example, a ROM (read-only memory), a RAM (random access memory), a non-volatile memory such as a hard disk, etc. The interface device 1300 may include, for example, various bus interfaces, such as a serial bus interface (including a USB interface), a parallel bus interface, etc. The communication device 1400 may, for example, be capable of wired or wireless communication. The display device 1500 may be, for example, a liquid crystal display, an LED display, a touch display, etc. The input device 1600 may include, for example, a touch screen, a keyboard, a handle, etc. The microphone 1700 may be used to input voice information. The speaker 1800 may be used to output voice information.
[0056] The head mounted display device 1000 may be, for example, a VR (Virtual Reality) device, an AR (Augmented Reality) device, an MR (Mixed Reality) device, etc., which is not limited in the embodiments of the present disclosure.
[0057] In this embodiment, the memory 1200 of the head mounted display device 1000 is used to store instructions, which are used to control the processor 1100 to operate to implement or support the implementation of the control method of the head mounted display device according to any embodiment. The technician can design instructions according to the scheme disclosed in this specification. How the instructions control the processor to operate is well known in the art, so it will not be described in detail here.
[0058] It should be understood by those skilled in the art that although Figure 1 , multiple devices of the head mounted display device 1000 are shown, but the head mounted display device 1000 of the embodiment of this specification may only involve some of the devices, or may also include other devices, which is not limited here.
[0059] Figure 1 The illustrated head mounted display device 1000 is illustrative only and is in no way intended to limit the present description, its application, or uses.
[0060] Hereinafter, various embodiments and examples according to the present disclosure are described with reference to the drawings.
[0061] <Method Example>
[0062] Figure 2 A control method for a head mounted display device according to an embodiment of the present disclosure is shown. The control method can be performed as follows. Figure 1 The head mounted display device 1000 is shown as an implementation.
[0063] like Figure 2 As shown, the control method of the head mounted display device provided in this embodiment may include the following steps S2100 to S2400.
[0064] Step S2100: Obtain a selected feature vector, wherein the feature vector includes a feature reflecting a focal length of the head mounted display device.
[0065] In this embodiment, the feature vector may be a feature selected by the user that affects the focal length of the head mounted display device.
[0066] In this embodiment, on the one hand, during the use of the head-mounted display device by the user, in order to adapt to the vision conditions of different users, the focal length of the head-mounted display device needs to be adjusted so that the user can see a clear picture. On the other hand, the user can adjust the wearing state according to actual needs, and the user can also adjust the wearing state according to the application scenario. For example, for users who pay attention to wearing comfort, a smaller wearing pressure is selected. For another example, for exciting shooting game scenes, users often choose a larger wearing pressure. In different wearing states, the distance between the user's eyes and the screen of the head-mounted display device is different. When the distance between the user's eyes and the screen of the head-mounted display device changes, in order to enable the user to see a clear picture, the focal length of the head-mounted display device needs to be adjusted. In other words, the user's wearing state will affect the adjustment of the focal length of the head-mounted display device. Based on this, the characteristics reflecting the wearing state can be used as characteristics that affect the focal length of the head-mounted display device.
[0067] In one embodiment, the feature vector includes a wearing state feature. The wearing state feature may include at least one of the pressure of the user's face relative to the wearing portion of the head mounted display device, the distance between the user's eyes and the screen of the head mounted display device, and the wearing angle.
[0068] In this embodiment, the head mounted display device is provided with a wearing portion, and when the user uses the head mounted display device, the head mounted display device can be fixed to the user's head through the wearing portion, which can be, for example, a strap.
[0069] In a specific example, the pressure between the wearing part of the head mounted display device and the user's face may be a pressure value of the user's face relative to the wearing part detected by a pressure sensor.
[0070] In a specific implementation, at least one pressure sensor is provided on the head-mounted display device. During the use of the head-mounted display device, the pressure value of the user's face relative to the wearing part can be detected by the pressure sensor. Exemplarily, when one pressure sensor is provided on the head-mounted display device, during the use of the head-mounted display device, the measured value of the pressure sensor is used as the pressure value of the user's face relative to the wearing part. Exemplarily, when multiple pressure sensors are provided on the head-mounted display device, during the use of the head-mounted display device, the average value of the measured values of the multiple pressure sensors is used as the pressure value of the user's face relative to the wearing part. It should be noted that during the use of the head-mounted display device, the pressure sensor can measure the pressure of the user's face relative to the wearing part in real time, and can also measure the pressure value of the user's face relative to the wearing part at a preset frequency.
[0071] In another specific example, the pressure between the wearing portion of the head mounted display device and the user's face may be a pressure level of the user's face relative to the wearing portion.
[0072] In this example, the pressure value of the user's face relative to the wearing part can be divided into multiple pressure levels, and one pressure level corresponds to a pressure range. For example, the pressure value of the user's face relative to the wearing part is divided into 10 levels, and as the pressure level increases, the pressure value of the user's face relative to the wearing part increases. In a specific implementation, during the use of the head-mounted display device, the current pressure level of the user's face relative to the wearing part is determined based on the pressure value of the user's face relative to the wearing part detected by the pressure sensor, and the mapping relationship between the pressure value and the pressure level.
[0073] In this embodiment, the distance between the user's eyes and the screen of the head mounted display device can be detected by a distance sensor.
[0074] In a specific example, the distance between the user's eyes and the screen of the head-mounted display device may be a distance value between the user's eyes and the screen of the head-mounted display device detected by a distance sensor.
[0075] In a specific implementation, at least one distance sensor is provided on the head-mounted display device. During the use of the head-mounted display device, the distance sensor can be used to detect the distance value between the user's eyes and the screen of the head-mounted display device. Exemplarily, when one distance sensor is provided on the head-mounted display device, during the use of the head-mounted display device, the measured value of the distance sensor is used as the distance value between the user's eyes and the screen of the head-mounted display device. Exemplarily, when multiple distance sensors are provided on the head-mounted display device, during the use of the head-mounted display device, the average value of the measured values of the multiple distance sensors is used as the distance value between the user's eyes and the screen of the head-mounted display device. It should be noted that during the use of the head-mounted display device, the distance sensor can measure the distance between the user's eyes and the screen of the head-mounted display device in real time, and can also measure the distance between the user's eyes and the screen of the head-mounted display device at a preset frequency.
[0076] It should be noted that the distance sensor may be an infrared sensor, an ultrasonic sensor, etc., which is not limited in the embodiments of the present disclosure.
[0077] In another specific example, the distance between the user's eyes and the screen of the head-mounted display device may be a distance level between the user's eyes and the screen of the head-mounted display device.
[0078] In this example, the distance value between the user's eye and the screen of the head-mounted display device can be divided into multiple distance levels, and one distance level corresponds to a distance range. For example, the distance value between the user's eye and the screen of the head-mounted display device is divided into 10 levels. As the distance level increases, the distance between the user's eye and the screen of the head-mounted display device increases. In a specific implementation, during the use of the head-mounted display device, the current distance level between the user's eye and the screen of the head-mounted display device is determined based on the distance value between the user's eye and the screen of the head-mounted display device detected by the distance sensor, and the mapping relationship between the distance value and the distance level.
[0079] In this embodiment, the wearing angle can be detected by an inertial measurement unit (IMU) on the head mounted display device.
[0080] In this embodiment, the target focal length of the head-mounted display device can be predicted based on the pressure of the user's face relative to the wearing part of the head-mounted display device, the distance between the user's eyes and the screen of the head-mounted display device, and the wearing angle, so as to adaptively adjust the focal length of the head-mounted display device according to the predicted target focal length, without the need for manual adjustment by the user, and thus providing a better user experience. In addition, the pressure value of the user's face relative to the wearing part is divided into a plurality of pressure levels, and the distance between the user's eyes and the screen of the head-mounted display device is divided into a plurality of distance levels, so as to make predictions based on the pressure level and the distance level, which can reduce the amount of calculation, improve the response speed, and reduce the power consumption.
[0081] After step S2100, step S2200 is executed to obtain a mapping function between the feature vector and the focal length.
[0082] In one embodiment, the step of obtaining the mapping function between the feature vector and the focal length may further include: step S3100 to step S3200.
[0083] Step S3100: When the head mounted display device is worn for the first time, the wearing state data of the head mounted display device is obtained as a training sample.
[0084] According to step S3100, the mapping function can be trained through training samples to obtain a mapping relationship between the selected feature vector and the focal length.
[0085] It is understandable that the more training samples there are, the more accurate the training results are. However, after a certain number of training samples is reached, the accuracy of the training results will increase more and more slowly until the orientation is stable. Here, the number of training samples required can be determined by taking into account the accuracy of the training results and the data processing cost.
[0086] In this embodiment, the wearing state data may be the wearing state data generated when the user wears the head mounted display device for the first time. The wearing state data may include the pressure of the user's face relative to the wearing part detected by the pressure sensor, the distance between the user's eyes and the screen of the head mounted display device detected by the distance sensor, and the wearing angle detected by the inertial measurement unit.
[0087] In a specific implementation, when a user wears the head mounted display device for the first time, the user can configure the optimal focal length of the head mounted display device. After configuration, the focal length of the head mounted display device is adjusted according to the configured optimal focal length. After that, the data of the pressure sensor, the distance sensor and the inertial measurement unit can be read to obtain the wearing state data corresponding to the optimal focal length. After that, the wearing state data is used as a training sample to train a mapping function between a feature vector and a focal length.
[0088] In one embodiment, before obtaining wearing status data of the head mounted display device as a training sample when the head mounted display device is worn for the first time, the method may further include: steps S4100 to S4300.
[0089] Step S4100: When the head mounted display device is worn for the first time, N first images are displayed, wherein the focal lengths corresponding to the N first images are different.
[0090] Each of the N first images is acquired at a different focal length.
[0091] Step S4200: In response to a first input from a user, M second images are acquired from the N first images, wherein N and M are positive integers greater than 1, and M is less than N.
[0092] The second image may be a relatively clear image selected by the user from the N first images. The number of second images may be set based on experience, and the embodiment of the present disclosure does not limit this.
[0093] The first input may be an input of the user selecting the second image. For example, the first input may be an input of the user clicking the first image through a handle.
[0094] Step S4300: determining the optimal focal length according to the M second images.
[0095] The best focal length may be the best focal length in the current wearing state. The best focal length may be determined according to the second image selected by the user.
[0096] For example, when a user wears the head mounted display device for the first time, the head mounted display device automatically adjusts the focal length, obtains 10 first images corresponding to different focal lengths, and displays the 10 first images. Afterwards, the user can select 3 clearer images from the 10 first images as second images. Afterwards, the optimal focal length is determined based on the 3 second images selected by the user.
[0097] In this embodiment, the user can select a clearer image according to his or her own vision, and the optimal focal length can be determined according to the image selected by the user. In this way, the needs of different users can be met and the user experience is better.
[0098] After step S3100, step S3200 is performed to train and obtain the mapping function according to the vector value of the training sample for the feature vector and the optimal focal length corresponding to the training sample.
[0099] In one example, the mapping function F(x) may be obtained using any multivariate linear regression model.
[0100] For example, the multivariate linear regression model can be a simple polynomial function that reflects the mapping function F(x), wherein the coefficients of each order of the polynomial function are unknown, and by substituting the vector value of the feature vector of the training sample and the corresponding optimal focal length into the polynomial function, the coefficients of each order of the polynomial function can be determined, thereby obtaining the mapping function F(x). The multivariate linear regression model can be, for example, an LR model, a Bayesian model, etc., which is not limited here.
[0101] In this embodiment, the wearing state data of the head mounted display device is obtained as a training sample, and the mapping function is trained according to the vector value of the feature vector of the training sample and the optimal focal length corresponding to the training sample, so as to predict the target focal length according to the mapping function. Since the mapping function is obtained by training based on a large number of training samples, the predicted focal length can be determined by using the mapping function, which can improve the accuracy of the obtained predicted focal length.
[0102] After step S2200, step S2300 is performed to predict a target focal length of the head-mounted display device according to the vector value of the head-mounted display device for the feature vector and the mapping function.
[0103] The independent variable of the mapping function F(x) is the eigenvector X, and the dependent variable F(x) is the focal length determined by the eigenvector X.
[0104] In this embodiment, after obtaining a mapping function between a feature vector and a focal length according to step S2200 and obtaining a vector value of the head mounted display device for the feature vector according to step S2300, the vector value can be substituted into the mapping function to predict a target focal length of the head mounted display device.
[0105] Step S2400: adjusting the current focal length of the head mounted display device to a target focal length.
[0106] In a specific implementation, after the target focal length is obtained, the focusing mechanism of the head-mounted display device is controlled to operate according to the target focal length, so as to adjust the current focal length of the head-mounted display device to the target focal length.
[0107] The control method of the head mounted display device of the embodiment is described below with a specific example.
[0108] First, when the user wears the head mounted display device for the first time, N first images at different focal lengths are acquired and displayed, wherein each of the N first images corresponds to a different focal length. The user selects M relatively clear second images from the N first images. The optimal focal length is determined based on the M second images.
[0109] Then, the focal length of the head mounted display device is adjusted to the optimal focal length. At the same time, the detection data of the pressure sensor, distance sensor and inertial measurement unit of the head mounted display device are obtained to obtain the wearing state data, that is, the pressure of the user's face relative to the wearing part, the distance between the user's eyes and the screen of the head mounted display device, and the wearing angle.
[0110] Afterwards, the wearing state data is used as a training sample, and the mapping function is obtained through training according to the vector value of the training sample for the feature vector and the optimal focal length corresponding to the training sample.
[0111] Afterwards, when the user wears the head mounted display device for the second time, the vector value of the head mounted display device for the feature vector is obtained, that is, the pressure of the user's face relative to the wearing part, the distance between the user's eyes and the screen of the head mounted display device, and the wearing angle. According to the vector value of the head mounted display device for the feature vector and the mapping function, the target focal length of the head mounted display device is predicted, and the current focal length of the head mounted display device is adjusted to the target focal length.
[0112] According to an embodiment of the present disclosure, a feature vector reflecting the focal length of the head-mounted display device is obtained, and the target focal length of the head-mounted display device is predicted based on the vector value of the feature vector of the head-mounted display device and the mapping function between the feature vector and the focal length, so as to adjust the current focal length of the head-mounted display device to the target focal length. In this way, during the use of the head-mounted display device, the focal length of the head-mounted display device can be adaptively adjusted according to the changes in the user's wearing state, without the need for manual adjustment by the user, which makes it more convenient to use and provides a better user experience. In addition, avoiding users from frequently adjusting the focal length of the head-mounted display device through the focus knob can extend the service life of the device.
[0113] <Device Example>
[0114] The present disclosure provides a control device for a head mounted display device, such as Figure 3 As shown, the control device 300 of the head mounted display device may include a first acquisition module 310 , a second acquisition module 320 , a prediction module 330 and an adjustment module 340 .
[0115] The first acquisition module 310 may be configured to acquire a selected feature vector, wherein the feature vector includes a feature reflecting a focal length of the head mounted display device.
[0116] The second acquisition module 320 may be used to acquire a mapping function between the feature vector and the focal length.
[0117] The prediction module 330 may be configured to predict a target focal length of the head mounted display device according to a vector value of the feature vector of the head mounted display device and the mapping function.
[0118] The adjustment module 340 may be configured to adjust the current focal length of the head mounted display device to a target focal length.
[0119] In one embodiment, the feature vector includes a wearing state feature; wherein the wearing state feature includes at least one of the pressure of the user's face relative to the wearing part of the head-mounted display device, the distance between the user's eyes and the screen of the head-mounted display device, and the wearing angle.
[0120] In one embodiment, the second acquisition module includes:
[0121] A sample acquisition unit, configured to acquire wearing state data of the head mounted display device as a training sample when the head mounted display device is worn for the first time;
[0122] A training unit is used to train and obtain the mapping function according to the vector value of the training sample for the feature vector and the optimal focal length corresponding to the training sample.
[0123] In one embodiment, the apparatus further comprises:
[0124] A display module, configured to display N first images when the head mounted display device is worn for the first time, wherein the focal lengths corresponding to the N first images are different;
[0125] A third acquisition module, configured to acquire M second images from the N first images in response to a first input from a user;
[0126] A determination module, configured to determine the optimal focal length according to the M second images;
[0127] Wherein, N and M are positive integers greater than 1, and M is less than N.
[0128] According to an embodiment of the present disclosure, a feature vector reflecting the focal length of the head-mounted display device is obtained, and the target focal length of the head-mounted display device is predicted based on the vector value of the feature vector of the head-mounted display device and the mapping function between the feature vector and the focal length, so as to adjust the current focal length of the head-mounted display device to the target focal length. In this way, during the use of the head-mounted display device, the focal length of the head-mounted display device can be adaptively adjusted according to the changes in the user's wearing state, without the need for manual adjustment by the user, which makes it more convenient to use and provides a better user experience. In addition, avoiding users from frequently adjusting the focal length of the head-mounted display device through the focus knob can extend the service life of the device.
[0129] <Equipment Embodiment>
[0130] Figure 4 FIG. 1 is a schematic diagram of the hardware structure of a head mounted display device according to an embodiment. Figure 4As shown, the head mounted display device 400 includes a memory 410 , a processor 420 and a focusing mechanism 430 .
[0131] The memory 410 may be used to store executable computer instructions.
[0132] The processor 420 can be used to execute the control method of the head-mounted display device according to the method embodiment of the present disclosure under the control of the executable computer instructions.
[0133] The focus adjustment mechanism 430 is connected to the processor 420 to adjust the current focal length of the head mounted display device to a target focal length.
[0134] The head mounted display device 400 may be as follows Figure 1 The head mounted display device 1000 shown may also be a device with other hardware structures, which is not limited here. The head mounted display device 400 may be, for example, a VR device, an AR device, and an MR device, which is not limited in the embodiments of the present disclosure.
[0135] The head mounted display device 400 may also include a pressure sensor, a distance sensor and an inertial measurement unit. The pressure sensor is used to detect the pressure of the user's face relative to the wearing part of the head mounted display device. The distance sensor is used to detect the distance between the user's eyes and the screen of the head mounted display device. The inertial measurement unit is used to detect the wearing angle.
[0136] In another embodiment, the head mounted display device 400 may include the control device 300 of the above head mounted display device.
[0137] In one embodiment, each module of the control device 300 of the head mounted display device can be implemented by the processor 420 running the computer instructions stored in the memory 410.
[0138] According to an embodiment of the present disclosure, a feature vector reflecting the focal length of the head-mounted display device is obtained, and the target focal length of the head-mounted display device is predicted based on the vector value of the feature vector of the head-mounted display device and the mapping function between the feature vector and the focal length, so as to adjust the current focal length of the head-mounted display device to the target focal length. In this way, during the use of the head-mounted display device, the focal length of the head-mounted display device can be adaptively adjusted according to the changes in the user's wearing state, without the need for manual adjustment by the user, which makes it more convenient to use and provides a better user experience. In addition, avoiding users from frequently adjusting the focal length of the head-mounted display device through the focus knob can extend the service life of the device.
[0139] <Computer Readable Storage Medium>
[0140] The embodiment of the present disclosure further provides a computer-readable storage medium on which computer instructions are stored. When the computer instructions are executed by a processor, the control method of the head-mounted display device provided by the embodiment of the present disclosure is executed.
[0141] The embodiments of the present disclosure may be systems, methods and / or computer program products. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the embodiments of the present disclosure.
[0142] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.
[0143] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.
[0144] The computer program instructions for performing the operation of the disclosed embodiment can be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions can be executed completely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer, partially on the remote computer, or completely on the remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, using an Internet service provider to connect through the Internet). In some embodiments, by using the state information of the computer-readable program instructions to personalize and customize electronic circuits, such as programmable logic circuits, field programmable gate arrays (FPGAs) or programmable logic arrays (PLAs), the electronic circuits can execute computer-readable program instructions, thereby realizing various aspects of the disclosed embodiment.
[0145] Various aspects of the disclosed embodiments are described herein with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to the disclosed embodiments. It should be understood that each box in the flowchart and / or block diagram and the combination of boxes in the flowchart and / or block diagram can be implemented by computer-readable program instructions.
[0146] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0147] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.
[0148] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.
[0149] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the embodiments of the present disclosure is defined by the appended claims.
Claims
1. A method for controlling a head mounted display device, It is characterized in that The method comprises: Acquire a selected feature vector, wherein the feature vector includes a feature reflecting a focal length of the head mounted display device; Obtaining a mapping function between the feature vector and focal length; Predicting a target focal length of the head mounted display device according to a vector value of the feature vector for the head mounted display device and the mapping function; adjusting the current focal length of the head mounted display device to a target focal length, Among them, the feature vector includes wearing state features; the wearing state features include at least one of the pressure of the user's face relative to the wearing part of the head-mounted display device, the distance between the user's eyes and the screen of the head-mounted display device, and the wearing angle, the pressure value of the user's face relative to the wearing part is divided into multiple pressure levels, the distance between the user's eyes and the screen of the head-mounted display device is divided into multiple distance levels, and the feature vector is obtained according to the pressure level and the distance level.
2. The method according to claim 1, It is characterized in that The step of obtaining a mapping function between the feature vector and the focal length comprises: When the head mounted display device is worn for the first time, acquiring wearing state data of the head mounted display device as a training sample; The mapping function is obtained through training according to the vector value of the training sample for the feature vector and the optimal focal length corresponding to the training sample.
3. The method according to claim 2, It is characterized in that Before obtaining the wearing state data of the head mounted display device as a training sample when the head mounted display device is worn for the first time, the method further includes: When the head mounted display device is worn for the first time, N first images are displayed, wherein the focal lengths corresponding to the N first images are different; In response to a first input from a user, acquiring M second images from the N first images; Determining the optimal focal length according to the M second images; Wherein, N and M are positive integers greater than 1, and M is less than N.
4. A control device for a head mounted display device, It is characterized in that The device comprises: A first acquisition module, configured to acquire a selected feature vector, wherein the feature vector includes a feature reflecting a focal length of the head mounted display device; A second acquisition module is used to acquire a mapping function between the feature vector and the focal length; A prediction module, configured to predict a target focal length of the head mounted display device according to a vector value of the head mounted display device for the feature vector and the mapping function; an adjustment module, configured to adjust the current focal length of the head mounted display device to a target focal length, Among them, the feature vector includes wearing state features; the wearing state features include at least one of the pressure of the user's face relative to the wearing part of the head-mounted display device, the distance between the user's eyes and the screen of the head-mounted display device, and the wearing angle, the pressure value of the user's face relative to the wearing part is divided into multiple pressure levels, the distance between the user's eyes and the screen of the head-mounted display device is divided into multiple distance levels, and the feature vector is obtained according to the pressure level and the distance level.
5. The device according to claim 4, It is characterized in that The second acquisition module includes: A sample acquisition unit, configured to acquire wearing state data of the head mounted display device as a training sample when the head mounted display device is worn for the first time; A training unit is used to train and obtain the mapping function according to the vector value of the training sample for the feature vector and the optimal focal length corresponding to the training sample.
6. The device according to claim 5, It is characterized in that The device also includes: A display module, configured to display N first images when the head mounted display device is worn for the first time, wherein the focal lengths corresponding to the N first images are different; A third acquisition module, configured to acquire M second images from the N first images in response to a first input from a user; A determination module, configured to determine the optimal focal length according to the M second images; Wherein, N and M are positive integers greater than 1, and M is less than N.
7. A head mounted display device, It is characterized in that Including a focusing mechanism, the head mounted display device also includes: Memory for storing executable computer instructions; A processor, configured to execute the control method according to any one of claims 1 to 3 under the control of the executable computer instructions; Wherein, the focusing mechanism is connected to the processor to adjust the current focal length of the head mounted display device to the target focal length.
8. A computer-readable storage medium having computer instructions stored thereon, wherein the computer instructions are executed by a processor to perform the method according to any one of claims 1 to 3.
