Display method of VR equipment and electronic equipment
By using eye tracking algorithms and standard eyeball data in VR devices to adjust the position and size of screenshots or screen recording materials, the problem of VR device display offset is solved and the display effect is improved.
Patent Information
- Application Number
- CN202310349671.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-03
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2043-04-03
AI Technical Summary
Due to differences in wearing habits and facial sizes of VR device users, pictures or videos after screenshots or screen recordings cannot be centered on the display device, and often appear tilted or angled, resulting in poor display effects.
Obtain the user's pupil center point position data by using an eye tracking algorithm in the VR device, and compare it with the preset standard eyeball data to calculate the offset parameters of the screen material. If it is within the specified range, adjust its position and size to achieve centering. show.
It effectively solves the problem of display offset caused by the difference between the user's pupil center and the center point of the screen, and improves the display effect of screenshots and screen recordings of VR equipment.
Smart Images

Figure CN118778795A_ABST
Abstract
Description
Background Art
[0002] VR (Virtual Reality) is a brand-new practical technology developed in the 20th century. Virtual reality technology encompasses computer, electronic information, and simulation technology. Its basic implementation method is based on computer technology, using and integrating the latest developments of various high technologies such as 3D graphics technology, multimedia technology, simulation technology, display technology, and servo technology. With the help of computers and other equipment, a realistic 3D visual, tactile, olfactory and other sensory experiences are generated in the virtual world, so that people in the virtual world have an immersive feeling.
[0003] With the rapid development of the Internet, VR devices are becoming more and more popular. In current VR products, due to the differences from the real world, the sharing of product content is often done by using screenshots or screen recording functions. However, in actual use, due to the differences in wearing habits or individual facial sizes of different users, the display position of the screenshots or recorded videos on the display device after being exported cannot be centered, and there will be tilt or angle offset. Figure 1 As shown, the screen material is the displayed screenshot or screen recording video. Figure 1 It can be seen that the screen material is tilted and offset, which results in poor display effect of VR device. Summary of the invention
[0004] The present application provides a display method and electronic device for a VR device, which adjusts screen materials such as screenshot images or recorded videos to avoid problems such as being unable to be centered, tilted, or having an angle offset when displaying the screen material, thereby improving the display effect of the VR device.
[0005] In a first aspect, an embodiment of the present application provides a display method for a VR device, the method comprising:
[0006] When the VR device starts the screen material acquisition function, it uses a preset eye tracking algorithm to acquire the user's eye data at specified intervals, wherein the eye data includes the position coordinates of the pupil center point and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function;
[0007] When the screen material is acquired, for any one of the screen materials, based on the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device, an offset parameter of the screen material is obtained, wherein the offset parameter is used to characterize whether an offset occurs between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left-eye and right-eye identifiers of the standard eyeball data are the same as the left-eye and right-eye identifiers of the eyeball data; and,
[0008] If it is determined that the offset parameter of the screen material is within the specified range, then obtaining the adjustment parameter of the screen material according to the eyeball data corresponding to the screen material and the standard eyeball data; and,
[0009] The position and size of the screen material are adjusted by the adjustment parameters to obtain the target screen material;
[0010] The target screen material is rendered using a preset rendering method, and the rendered screen material is displayed.
[0011] A second aspect of the present application provides an electronic device, including a processor and a memory, wherein the processor and the memory are connected via a bus;
[0012] The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program:
[0013] When the VR device starts the screen material acquisition function, it uses a preset eye tracking algorithm to acquire the user's eye data at specified intervals, wherein the eye data includes the position coordinates of the pupil center point and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function;
[0014] When the screen material is acquired, for any one of the screen materials, based on the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device, an offset parameter of the screen material is obtained, wherein the offset parameter is used to characterize whether an offset occurs between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left-eye and right-eye identifiers of the standard eyeball data are the same as the left-eye and right-eye identifiers of the eyeball data; and,
[0015] If it is determined that the offset parameter of the screen material is within the specified range, then obtaining the adjustment parameter of the screen material according to the eyeball data corresponding to the screen material and the standard eyeball data; and,
[0016] The position and size of the screen material are adjusted by the adjustment parameters to obtain the target screen material;
[0017] The target screen material is rendered using a preset rendering method, and the rendered screen material is displayed.
[0018] According to a third aspect provided by an embodiment of the present invention, a computer storage medium is provided, wherein the computer storage medium stores a computer program, and the computer program is used to execute the method as described in the first aspect.
[0019] In the above-mentioned embodiment of the present application, the offset parameter of the screen material is determined by the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device. When it is determined that the offset parameter of the screen material is within the specified range, the adjustment parameter of the screen material is obtained according to the eyeball data corresponding to the screen material and the standard eyeball data, and then the display position and size of the screen material are adjusted using the adjustment parameter to obtain the target screen material and display it. Therefore, in the embodiment of the present application, the size and position of the screen material are adjusted by the user's eyeball data, which solves the problems of the screen material being unable to be centered, tilted or offset at an angle due to the difference between the user's pupil center and the screen center point, and improves the display effect of the VR device. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0021] Figure 1 A schematic diagram of screen materials in the prior art provided by an embodiment of the present application is exemplarily shown;
[0022] Figure 2 One of the application scenario schematic diagrams provided by the embodiment of the present application is exemplarily shown;
[0023] Figure 3 The second schematic diagram of the application scenario provided by the embodiment of the present application is exemplarily shown;
[0024] Figure 4 One of the flow charts of the display method of the VR device provided in the embodiment of the present application is exemplarily shown;
[0025] Figure 5 A schematic diagram exemplarily shows reference points of a VR device provided in an embodiment of the present application;
[0026] Figure 6 The flowchart of determining the offset parameters of the screen material provided by the embodiment of the present application is exemplarily shown;
[0027] Figure 7 The flowchart of determining adjustment parameters of screen materials provided by an embodiment of the present application is exemplarily shown;
[0028] Figure 8 A schematic diagram exemplarily shows the adjusted screen material provided in the embodiment of the present application;
[0029] Fig. 9 The second flowchart of the display method of the VR device provided in the embodiment of the present application is exemplarily shown;
[0030] Fig.10 A schematic diagram of a display device of a VR device provided in an embodiment of the present application is exemplarily shown;
[0031] Fig.11 The hardware structure diagram of the electronic device provided in the embodiment of the present application is exemplified. DETAILED DESCRIPTION
[0032] In order to make the purpose, implementation mode and advantages of the present application clearer, the exemplary implementation mode of the present application will be clearly and completely described below in conjunction with the drawings in the exemplary embodiments of the present application. Obviously, the described exemplary embodiments are only part of the embodiments of the present application, rather than all the embodiments.
[0033] Based on the exemplary embodiments described in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the claims attached to this application. In addition, although the disclosure in this application is introduced according to one or several exemplary examples, it should be understood that each aspect of the disclosure can also constitute a complete implementation method separately.
[0034] It should be noted that the brief description of terms in this application is only for the convenience of understanding the embodiments described below, and is not intended to limit the embodiments of this application. Unless otherwise specified, these terms should be understood according to their common and usual meanings.
[0035] The terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover but not exclude inclusion, for example, a product or device comprising a series of components is not necessarily limited to those components clearly listed, but may include other components not clearly listed or inherent to these products or devices.
[0036] The term "module" as used in this application refers to any known or later developed hardware, software, firmware, artificial intelligence, fuzzy logic or combination of hardware and / or software code that is capable of performing the functions associated with that element.
[0037] The following is an overview of the concepts of the embodiments of the present application.
[0038] At present, due to the difference between VR products and the real world, the sharing of their product content is often done by using screenshot or screen recording functions. However, in actual use, due to the wearing habits of different users or differences in individual facial sizes, the exported screenshots or recorded videos cannot be displayed in the center of the display device, and may be tilted or offset at an angle. This results in poor display effects on VR devices.
[0039] Based on the problem that the screenshots or recorded videos cannot be displayed in the center of the display device after being exported in the prior art, and there will be a tilt or angle offset, the embodiment of the present application provides a display method for a VR device, which determines the offset parameters of the screen material by the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device. When it is determined that the offset parameters of the screen material are within the specified range, the adjustment parameters of the screen material are obtained according to the eyeball data corresponding to the screen material and the standard eyeball data, and then the display position and size of the screen material are adjusted using the adjustment parameters to obtain the target screen material and display it. Therefore, in the embodiment of the present application, the screen material is adjusted by the user's eyeball data, which solves the problems of the screen material being unable to be centered, tilted or offset at an angle due to the difference between the user's pupil center and the screen center point, and improves the display effect of the VR device. The embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0040] Figure 2 The following is a schematic diagram showing an application scenario of the display method of the VR device provided in the embodiment of the present application. Figure 2The application scenario shown is described by taking the electronic device as a server as an example. The application scenario includes a VR device 210 and a server 220. The server 220 can be implemented by a single server or by multiple servers. The server 220 can be implemented by a physical server or by a virtual server.
[0041] In a possible application scenario, after the VR device 210 starts the screen material acquisition function, the server 220 uses a preset eye tracking algorithm to acquire the user's eye data at specified intervals, wherein the eye data includes the position coordinates of the center point of the pupil and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function. When the server 220 acquires the screen material, for any screen material, based on the position coordinates of the center point of the pupil in the eye data corresponding to the screen material and the position coordinates of the reference point in the standard eye data preset in the VR device 210, the offset parameter of the screen material is obtained, wherein the offset parameter is used to characterize whether there is an offset between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left and right eye identifiers of the standard eye data are the same as the left and right eye identifiers of the eye data. And if the server 220 determines that the offset parameter of the screen material is within the specified range, then the adjustment parameter of the screen material is obtained according to the eye data corresponding to the screen material and the standard eye data; and the position and size of the screen material are adjusted by the adjustment parameter to obtain the target screen material; the target screen material is rendered using a preset rendering method, and the rendered screen material is displayed through the VR device 210.
[0042] like Figure 3As shown, it is a schematic diagram of another application scenario of the present application, in which the electronic device is a VR device as an example for explanation. The application scenario includes a VR device 210 and a memory 230. Among them, when the VR device 210 starts the screen material acquisition function, at a specified time interval, the VR device 210 uses a preset eye tracking algorithm to obtain the user's eye data, wherein the eye data includes the position coordinates of the center point of the pupil and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function; when the screen material is obtained, for any screen material, based on the position coordinates of the center point of the pupil in the eye data corresponding to the screen material and the position coordinates of the reference point in the standard eye data pre-stored in the memory 230 by the VR device 210, the offset parameters of the screen material are obtained, wherein the offset parameters are used to represent whether there is an offset between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left-eye and right-eye identifiers of the standard eyeball data are the same as the left-eye and right-eye identifiers of the eyeball data; and if the VR device 210 determines that the offset parameter of the screen material is within a specified range, then according to the eyeball data corresponding to the screen material and the standard eyeball data, an adjustment parameter of the screen material is obtained; and the position and size of the screen material are adjusted by the adjustment parameter to obtain the target screen material; the VR device 210 renders the target screen material using a preset rendering method, and displays the rendered screen material.
[0043] in, Figure 2 The server 220 and the VR device 210 can exchange information through a communication network, wherein the communication method adopted by the communication network can be divided into a wireless communication method or a wired communication method.
[0044] Exemplarily, the server 220 can access the network through cellular mobile communication technology to communicate with the VR device 210, wherein the cellular mobile communication technology, for example, includes the fifth generation mobile communication (5th Generation Mobile Networks, 5G) technology.
[0045] Optionally, the server 220 may access the network via short-range wireless communication to communicate with the VR device 210, wherein the short-range wireless communication method may include, for example, Wireless Fidelity (Wi-Fi) technology.
[0046] Among them, the description in this application only details a single VR device 210, a single server 220 and a single storage 230, but those skilled in the art should understand that the VR device 210, server 220 and storage 230 shown are intended to represent the operation of the VR device 210, server 220 and storage 230 involved in the technical solution of this application. It does not imply any limitation on the number, type or location of the VR device 210, server 220 and storage 230. It should be noted that if additional modules are added to the illustrated environment or individual modules are removed from it, the underlying concept of the exemplary embodiment of this application will not be changed.
[0047] It should be noted that the display method of the VR device proposed in this application is not only applicable to Figure 2 and Figure 3 The application scenario shown is also applicable to any device with a VR device display.
[0048] The following describes the display method of the VR device according to the exemplary embodiment of the present application in combination with the application scenarios described above and with reference to the accompanying drawings. It should be noted that the above application scenarios are only shown to facilitate understanding of the methods and principles of the present application, and the implementation of the present application is not limited in this respect.
[0049] like Figure 4 FIG. 1 is a flow chart of a display method of a VR device, which may include the following steps:
[0050] Step 401: after the VR device starts the screen material acquisition function, the user's eye data is acquired at specified intervals using a preset eye tracking algorithm, wherein the eye data includes the position coordinates of the pupil center point and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function;
[0051] Among them, in this embodiment, if the screen material acquisition function is a screenshot function, the corresponding specified duration is the screenshot duration, that is, one screenshot image corresponds to one eyeball data. If the screen material acquisition function is a screen recording function, the corresponding specified duration is not greater than the screen recording duration, that is, one screen recording video corresponds to at least one eyeball data. However, this embodiment does not limit the specified duration, and the specified duration in this embodiment can be set according to actual conditions.
[0052] It should be noted that: in the embodiment of the present application, when obtaining screen materials, a screenshot or screen recording is taken of the content displayed in the VR device. In the embodiment of the present application, the content displayed in the VR device changes with the change of the posture of the user's head or the change of the wearing position of the VR device, that is, under the premise that the same user has the same head posture and the same wearing position of the VR device, the content displayed in the VR device will not change with the movement of the eyeball. It can be understood that, under the premise that the same user does not change the head posture and the wearing position of the VR device, only the user's eyeball moves, and the content displayed in the VR device will not change. However, when obtaining screen materials, when the user's eyeball data is different from the standard eyeball data preset in the VR device, the position and / or size of the obtained screen material will be different from the position and / or size of the screen material corresponding to the standard eyeball data.
[0053] Step 402: when the screen material is acquired, for any screen material, based on the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device, an offset parameter of the screen material is obtained, wherein the offset parameter is used to characterize whether an offset occurs between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left-eye and right-eye identifiers of the standard eyeball data are the same as the left-eye and right-eye identifiers of the eyeball data;
[0054] For example, Figure 5 , which is a schematic diagram of reference points in a VR device. The reference point in this embodiment is the midpoint of a line connecting the center points of the left and right eyes of the VR device.
[0055] In one embodiment, the screen material includes a screenshot or a screen recording video. The screen material acquired in this embodiment may only acquire the screen material for the left eye, or only acquire the screen material for the right eye, or acquire the screen material for the left eye and the screen material for the right eye at the same time. This embodiment does not limit the acquired screen material, and it can be set according to actual conditions. The following introduces a method for determining the offset parameter of the screen material. Figure 6 As shown, it is a schematic diagram of a process of determining the offset parameters of the screen material, which includes the following steps:
[0056] Step 601: for any eyeball data of the screen material, based on the position coordinates of the pupil center point in the eyeball data and the position coordinates of the reference point, obtain the distance between the pupil center point and the reference point; wherein the distance between the pupil center point and the reference point can be obtained by formula (1):
[0057]
[0058] Among them, d is the distance between the center of the pupil and the reference point, x1 is the horizontal coordinate of the position coordinates of the center of the pupil, y1 is the vertical coordinate of the position coordinates of the center of the pupil, z1 is the vertical coordinate of the position coordinates of the center of the pupil, x2 is the horizontal coordinate of the position coordinates of the reference point, y2 is the vertical coordinate of the position coordinates of the reference point, and z2 is the vertical coordinate of the position coordinates of the reference point.
[0059] Step 602: determine whether the eyeball data of the screen material is one, if so, execute step 603, if not, execute step 604;
[0060] Step 603: Determine the offset parameter of the screen material based on the distance;
[0061] Step 604: Perform weighted summation on the multiple distances corresponding to each eyeball data to obtain the offset parameter of the screen material.
[0062] It should be noted that the weights of the multiple distances corresponding to each eyeball data in the embodiment of the present application are pre-set and can be set according to actual conditions. The weights of each distance are not limited in this embodiment.
[0063] Step 403: if it is determined that the offset parameter of the screen material is within the specified range, then obtaining the adjustment parameter of the screen material according to the eyeball data corresponding to the screen material and the standard eyeball data;
[0064] In order to save computing resources, in one embodiment, if the offset parameter is not within the specified range, the screen material is not adjusted. If the offset parameter is less than the minimum value in the specified range, it is determined that there is no offset or the offset is small, and the screen material does not need to be adjusted. If the offset parameter is greater than the maximum value in the specified range, the offset is too large, and even if adjusted, a good effect cannot be achieved, so no adjustment is made in this embodiment.
[0065] It should be noted that the designated range in this embodiment can be set according to actual conditions, and this embodiment does not limit the designated range. In addition, the eyeball data in this embodiment also includes pupil distance.
[0066] like Figure 7 As shown, it is a schematic diagram of a process for determining adjustment parameters of screen materials, which may include the following steps:
[0067] Step 701: for any eyeball data of the screen material, based on a matrix corresponding to the eyeball data and a matrix corresponding to the standard eyeball data, a first intermediate adjustment parameter is obtained, wherein the matrix corresponding to the eyeball data is composed of the pupil distance, the position coordinates of the pupil center point, and the left and right eye identifiers;
[0068] Among them, the matrix corresponding to the eyeball data can be in the form of {E0 E x E y E z S I}, where E0 represents the pupil distance, E x is the horizontal coordinate of the pupil center, E y is the ordinate of the pupil center, E z is the vertical coordinate of the pupil center point, S I is the left and right eye identifier, the value of I is L or R, where S L S stands for the left eye. R The form of the matrix corresponding to the standard eyeball data in this embodiment is the same as the form of the matrix corresponding to the eyeball data in the embodiment of the present application, and this embodiment will not be described in detail here.
[0069] It should be noted that the form of the matrix corresponding to the eye data in this embodiment is only used for illustration, and does not limit the form of the matrix corresponding to the eye data in the application embodiment. The form of the matrix corresponding to the eye data in the application embodiment can be set according to actual conditions.
[0070] In one embodiment, step 701 may be specifically implemented as follows: subtracting a matrix corresponding to the eyeball data from a matrix corresponding to the standard eyeball data to obtain the first intermediate adjustment parameter.
[0071] Step 702: Obtain a second intermediate adjustment parameter according to the first intermediate adjustment parameter and the preset adjustment parameter;
[0072] In one embodiment, step 702 may be specifically implemented as: multiplying the first intermediate adjustment parameter by the preset adjustment parameter to obtain the second intermediate adjustment parameter.
[0073] The preset adjustment parameters in this embodiment include a first preset adjustment parameter and a second preset adjustment parameter;
[0074] In one embodiment, the second intermediate adjustment parameter may be obtained specifically in the following manner:
[0075] The preset adjustment parameter is multiplied by the first preset adjustment parameter, and then multiplied by the second preset adjustment parameter to obtain the second intermediate adjustment parameter. The second intermediate adjustment parameter can be obtained by formula (2):
[0076] F i =(E i -f)×C1×C2……(2);
[0077] Among them, F iis the second intermediate adjustment parameter corresponding to the eye data i, E i The matrix corresponding to the eye data i, f is the matrix corresponding to the standard eye data, C1 is the first preset adjustment parameter, and C2 is the second preset adjustment parameter.
[0078] It should be noted that: the first preset adjustment parameter in this embodiment In this embodiment, the first preset adjustment parameters A0, A x , A xy , A y , A xz , A yz , A z are coordinate mapping correction coefficients in different dimensions determined according to hardware and optical parameters, which are preset. In this embodiment, R f , B x , B y and B z The display adjustment matrix parameters related to screen size, resolution, arrangement mode (single screen, dual screen, etc.), and refresh direction are reserved for different devices according to screen display characteristics. Similarly, the second preset adjustment parameters are also preset. For example, for a dual screen with a screen size of 5.46 inches, a resolution of 1920*3664, and a horizontal refresh direction, the second preset adjustment parameters are R f =5.4, B x =1.0, B y =1.0, B z =0.1. The first preset adjustment parameter and the second preset adjustment parameter in this embodiment can be set according to actual conditions, and this embodiment does not limit the first preset adjustment parameter and the second preset adjustment parameter.
[0079] Step 703: determine whether the number of eyeball data of the screen material is one, if so, execute step 704, if not, execute step 705;
[0080] Step 704: Determine the second intermediate adjustment parameter as the adjustment parameter of the screen material;
[0081] Step 705: Perform weighted summation on the second intermediate adjustment parameters corresponding to each eyeball data to obtain the adjustment parameters of the screen material.
[0082] It should be noted that the weights corresponding to the second intermediate adjustment parameters corresponding to each eye data in this embodiment are pre-set. This embodiment does not limit the weights corresponding to each second intermediate adjustment parameter. The second intermediate adjustment parameters in this embodiment can be set according to actual conditions.
[0083] Step 404: adjusting the position and size of the screen material by using the adjustment parameters to obtain a target screen material;
[0084] The adjustment parameters include a scaling parameter and a displacement parameter, and the displacement parameter includes a moving distance and a moving direction.
[0085] In one embodiment, step 404 may be specifically implemented as follows: adjusting the size of the screen material using the scaling parameter, and moving the screen material by the moving distance in the moving direction based on the displacement parameter to obtain the target screen material.
[0086] For example, the scaling parameter may be in the form of {R xyz}, where R is the scaling parameter. When R>1, the size of the screen material is enlarged, and the specific enlarged size is the current size of the screen material multiplied by the scaling parameter to obtain the enlarged size of the screen material. When R<1, the size of the screen material is reduced, and the specific reduced size is the current size of the screen material multiplied by the scaling parameter to obtain the reduced size of the screen. And x is the moving distance on the horizontal axis, y is the moving distance on the vertical axis, and z is the moving distance on the vertical axis. Taking x as an example of the moving direction, when x>0, the screen material is moved in the positive direction of the x-axis, and when x<0, the screen material is moved in the negative direction of the x-axis. Among them, the moving directions of y and z are determined in the same way as the moving direction of x, and this embodiment will not be repeated here.
[0087] Step 405: Render the target screen material using a preset rendering method, and display the rendered screen material.
[0088] For example, Figure 8 As shown, for Figure 1 Schematic diagram of the screen material after adjusting the screen material in Figure 8 It can be seen that the screen material after adjustment does not shift and is displayed in the center, which improves the display effect of the VR device.
[0089] Among them, the method of rendering the screen material in this embodiment is the method in the prior art. The specific rendering method can be set according to the actual situation, and this embodiment does not limit the rendering method here.
[0090] It should be noted that: when the screen material obtained in step 401 is the left eye screen material, the rendered screen material is the left eye screen material, and is limited by the left eye of the VR device. When the screen material obtained in step 401 is the right eye screen material, the rendered screen material is the right eye screen material, and is limited by the right eye of the VR device. When the left eye screen material and the right eye screen material are obtained at the same time in step 401, the rendered screen material includes the rendered left eye screen material and the rendered right eye screen material, and the rendered left eye screen material is displayed by rendering the left eye of the VR device and the rendered right eye screen material is displayed by the right eye of the VR device.
[0091] In order to further connect the technical solutions in this application, Fig. 9 A detailed description may include the following steps:
[0092] Step 901: after the VR device starts the screen material acquisition function, the user's eye data is acquired at specified intervals using a preset eye tracking algorithm, wherein the eye data includes the position coordinates of the pupil center point and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function;
[0093] Step 902: when the screen material is acquired, for any screen material, based on the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device, an offset parameter of the screen material is obtained, wherein the offset parameter is used to characterize whether an offset occurs between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left-eye and right-eye identifiers of the standard eyeball data are the same as the left-eye and right-eye identifiers of the eyeball data;
[0094] Step 903: determine whether the number of eyeball data of the screen material is one, if so, execute step 904, if not, return to execute step 905;
[0095] Step 904: Determine the offset parameter of the screen material based on the distance;
[0096] Step 905: performing weighted summation on multiple distances corresponding to each eyeball data to obtain an offset parameter of the screen material;
[0097] Step 906: obtaining a first intermediate adjustment parameter based on a matrix corresponding to the eyeball data and a matrix corresponding to the standard eyeball data, wherein the matrix corresponding to the eyeball data is composed of the pupil distance, the position coordinates of the pupil center point, and the left and right eye identifiers;
[0098] Step 907: Obtain a second intermediate adjustment parameter according to the first intermediate adjustment parameter and the preset adjustment parameter;
[0099] Step 908: Determine whether the eyeball data of the screen material is one, if so, execute step 909, if not, execute step 910;
[0100] Step 909: Determine the second intermediate adjustment parameter as the adjustment parameter of the screen material;
[0101] Step 910: performing weighted summation on the second intermediate adjustment parameters corresponding to each eyeball data to obtain the adjustment parameters of the screen material;
[0102] Step 911: determine whether the adjustment parameter is within a specified range, if yes, execute step 912, if no, execute step 914;
[0103] Step 912: obtaining adjustment parameters of the screen material according to the eyeball data corresponding to the screen material and the standard eyeball data;
[0104] Step 913: adjusting the position and size of the screen material by using the adjustment parameters to obtain the target screen material;
[0105] Step 914: Do not adjust the screen material;
[0106] Step 915: Render the target screen material using a preset rendering method, and display the rendered screen material.
[0107] Based on the same inventive concept, the display method of the VR device disclosed above can also be implemented by a display device of the VR device. The effect of the display device of the VR device is similar to that of the aforementioned method, and will not be repeated here.
[0108] Fig.10 Schematic diagram of the structure of a display device of a VR device according to an embodiment of the present disclosure.
[0109] like Fig.10 As shown, the display device 1000 of the VR device of the present disclosure may include an eyeball data acquisition module 1010, an offset parameter determination module 1020, an adjustment parameter determination module 1030, a target screen material determination module 1040 and a rendering module 1050.
[0110] The eyeball data acquisition module 1010 is used to acquire the user's eyeball data by using a preset eyeball tracking algorithm at specified intervals after the VR device starts the screen material acquisition function, wherein the eyeball data includes the position coordinates of the pupil center point and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function;
[0111] The offset parameter determination module 1020 is used for obtaining, for any screen material, an offset parameter of the screen material based on the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device, wherein the offset parameter is used to indicate whether an offset occurs between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left-eye and right-eye identifiers of the standard eyeball data are the same as the left-eye and right-eye identifiers of the eyeball data;
[0112] The adjustment parameter determination module 1030 is used to obtain the adjustment parameter of the screen material according to the eyeball data corresponding to the screen material and the standard eyeball data if it is determined that the offset parameter of the screen material is within a specified range;
[0113] A target screen material determination module 1040 is used to adjust the position and size of the screen material by using the adjustment parameters to obtain the target screen material;
[0114] The rendering module 1050 is used to render the target screen material using a preset rendering method and display the rendered screen material.
[0115] In one embodiment, the offset parameter determination module 1020 is specifically configured to:
[0116] For any eyeball data of the screen material, based on the position coordinates of the pupil center point in the eyeball data and the position coordinates of the reference point, obtain the distance between the pupil center point and the reference point;
[0117] If the number of eyeball data of the screen material is one, determining the offset parameter of the screen material by using the distance;
[0118] If there are multiple eyeball data of the screen material, weighted sum is performed on multiple distances corresponding to each eyeball data to obtain the offset parameter of the screen material.
[0119] In one embodiment, the eyeball data further includes pupil distance;
[0120] The adjustment parameter determination module 1030 is specifically used for:
[0121] For any eyeball data of the screen material, a first intermediate adjustment parameter is obtained based on a matrix corresponding to the eyeball data and a matrix corresponding to the standard eyeball data, wherein the matrix corresponding to the eyeball data is composed of the pupil distance, the position coordinates of the pupil center point, and left and right eye identifiers; and,
[0122] Obtaining a second intermediate adjustment parameter according to the first intermediate adjustment parameter and the preset adjustment parameter;
[0123] If the amount of eyeball data of the screen material is one, determining the second intermediate adjustment parameter as the adjustment parameter of the screen material;
[0124] If there are multiple eyeball data of the screen material, weighted sum is performed on the second intermediate adjustment parameters corresponding to each eyeball data to obtain the adjustment parameters of the screen material.
[0125] In one embodiment, the adjustment parameter determination module 1030 executes the matrix based on the eyeball data and the matrix based on the standard eyeball data to obtain the first intermediate adjustment parameter, which is specifically used for:
[0126] Subtracting the matrix corresponding to the eyeball data from the matrix corresponding to the standard eyeball data to obtain the first intermediate adjustment parameter;
[0127] The adjustment parameter determination module 1030 performs the step of obtaining the second intermediate adjustment parameter according to the first intermediate adjustment parameter and the preset adjustment parameter, specifically for:
[0128] The first intermediate adjustment parameter is multiplied by the preset adjustment parameter to obtain the second intermediate adjustment parameter.
[0129] In one embodiment, the preset adjustment parameters include a first preset adjustment parameter and a second preset adjustment parameter;
[0130] The second intermediate adjustment parameter determination module 1060 is configured to obtain the second intermediate adjustment parameter by:
[0131] F i =(E i -f)×C1×C2;
[0132] Among them, F i is the second intermediate adjustment parameter corresponding to the eye data i, E i The matrix corresponding to the eye data i, f is the matrix corresponding to the standard eye data, C1 is the first preset adjustment parameter, and C2 is the second preset adjustment parameter.
[0133] In one embodiment, the adjustment parameters include a scaling parameter and a displacement parameter, and the displacement parameter includes a moving distance and a moving direction;
[0134] The target screen material determination module 1040 is specifically used for:
[0135] The size of the screen material is adjusted using the scaling parameter, and the screen material is moved by the moving distance in the moving direction based on the displacement parameter to obtain the target screen material.
[0136] In one embodiment, the target screen material determination module 1040 is further configured to:
[0137] If the offset parameter is not within the specified range, the screen material is not adjusted.
[0138] In one embodiment, the screen material includes a screenshot or a screen recording video.
[0139] After introducing a display method and apparatus for a VR device according to an exemplary embodiment of the present invention, next, an electronic device according to another exemplary embodiment of the present invention is introduced.
[0140] It will be appreciated by those skilled in the art that various aspects of the present invention may be implemented as a system, method or program product. Therefore, various aspects of the present invention may be specifically implemented in the following forms, namely: a complete hardware implementation, a complete software implementation (including firmware, microcode, etc.), or a combination of hardware and software, which may be collectively referred to herein as a "circuit", "module" or "system".
[0141] In some possible implementations, the electronic device according to the present invention may include at least one processor and at least one computer storage medium. The computer storage medium stores program code, and when the program code is executed by the processor, the processor executes the steps of the display method of the VR device according to various exemplary embodiments of the present invention described above in this specification. For example, the processor may execute the following steps: Figure 4 Steps 401-405 shown in .
[0142] Refer to the following Fig.11 The electronic device 1100 according to this embodiment of the present invention is described. Fig.11 The electronic device 1100 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0143] like Fig.11 As shown, the electronic device 1100 is in the form of a general electronic device. The components of the electronic device 1100 may include but are not limited to: the at least one processor 1101, the at least one computer storage medium 1102, and a bus 1103 connecting different system components (including the computer storage medium 1102 and the processor 1101).
[0144] Bus 1103 represents one or more of several types of bus structures, including a computer storage media bus or computer storage media controller, a peripheral bus, a processor, or a local bus using any of a variety of bus architectures.
[0145] Computer storage media 1102 may include readable media in the form of volatile computer storage media, such as random access computer storage media (RAM) 1121 and / or cache storage media 1122 , and may further include read-only computer storage media (ROM) 1123 .
[0146] The computer storage medium 1102 may also include a program / utility 1125 having a set (at least one) of program modules 1124, such program modules 1124 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0147] The electronic device 1100 may also communicate with one or more external devices 1104 (e.g., keyboards, pointing devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 1100, and / or communicate with any device that enables the electronic device 1100 to communicate with one or more other electronic devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 1105. Furthermore, the electronic device 1100 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 1106. As shown, the network adapter 1106 communicates with other modules for the electronic device 1100 via a bus 1103. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 1100, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0148] In some possible implementations, various aspects of the display method for a VR device provided by the present invention may also be implemented in the form of a program product, which includes program code. When the program product runs on a computer device, the program code is used to enable the computer device to execute the steps of the display method for a VR device according to various exemplary embodiments of the present invention described above in this specification.
[0149] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A display method for a VR device, It is characterized in that The method comprises: When the VR device starts the screen material acquisition function, it uses a preset eye tracking algorithm to acquire the user's eye data at specified intervals, wherein the eye data includes the position coordinates of the pupil center point and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function; When the screen material is acquired, for any one of the screen materials, based on the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device, an offset parameter of the screen material is obtained, wherein the offset parameter is used to characterize whether an offset occurs between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left-eye and right-eye identifiers of the standard eyeball data are the same as the left-eye and right-eye identifiers of the eyeball data; and, If it is determined that the offset parameter of the screen material is within the specified range, then obtaining the adjustment parameter of the screen material according to the eyeball data corresponding to the screen material and the standard eyeball data; and, The position and size of the screen material are adjusted by the adjustment parameters to obtain the target screen material; The target screen material is rendered using a preset rendering method, and the rendered screen material is displayed.
2. The method according to claim 1, It is characterized in that The obtaining of the offset parameters of the screen material based on the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device includes: For any eyeball data of the screen material, based on the position coordinates of the pupil center point in the eyeball data and the position coordinates of the reference point, obtain the distance between the pupil center point and the reference point; If the number of eyeball data of the screen material is one, determining the offset parameter of the screen material by using the distance; If there are multiple eyeball data of the screen material, weighted sum is performed on multiple distances corresponding to each eyeball data to obtain the offset parameter of the screen material.
3. The method according to claim 1, It is characterized in that The eyeball data also includes pupil distance; The obtaining the adjustment parameters of the screen material according to the eyeball data corresponding to the screen material and the standard eyeball data includes: For any eyeball data of the screen material, a first intermediate adjustment parameter is obtained based on a matrix corresponding to the eyeball data and a matrix corresponding to the standard eyeball data, wherein the matrix corresponding to the eyeball data is composed of the pupil distance, the position coordinates of the pupil center point, and left and right eye identifiers; and, Obtaining a second intermediate adjustment parameter according to the first intermediate adjustment parameter and the preset adjustment parameter; If the amount of eyeball data of the screen material is one, determining the second intermediate adjustment parameter as the adjustment parameter of the screen material; If there are multiple eyeball data of the screen material, weighted sum is performed on the second intermediate adjustment parameters corresponding to each eyeball data to obtain the adjustment parameters of the screen material.
4. The method according to claim 3, It is characterized in that The obtaining of the first intermediate adjustment parameter based on the matrix corresponding to the eyeball data and the matrix corresponding to the standard eyeball data comprises: Subtracting the matrix corresponding to the eyeball data from the matrix corresponding to the standard eyeball data to obtain the first intermediate adjustment parameter; The obtaining of the second intermediate adjustment parameter according to the first intermediate adjustment parameter and the preset adjustment parameter includes: The first intermediate adjustment parameter is multiplied by the preset adjustment parameter to obtain the second intermediate adjustment parameter.
5. The method according to claim 3 or 4, It is characterized in that The preset adjustment parameters include a first preset adjustment parameter and a second preset adjustment parameter; The second intermediate adjustment parameter is obtained by: F i =(E i -f)×C 1 ×C 2 ; Among them, F i is the second intermediate adjustment parameter corresponding to the eye data i, E i The matrix corresponding to the eyeball data i, f is the matrix corresponding to the standard eyeball data, C 1 is the first preset adjustment parameter, C 2 The second preset adjustment parameter.
6. The method according to claim 1, It is characterized in that The adjustment parameters include a scaling parameter and a displacement parameter, and the displacement parameter includes a moving distance and a moving direction; The step of adjusting the position and size of the screen material by using the adjustment parameters to obtain the target screen material includes: The size of the screen material is adjusted using the scaling parameter, and the screen material is moved by the moving distance in the moving direction based on the displacement parameter to obtain the target screen material.
7. The method according to claim 1, It is characterized in that The method further comprises: If the offset parameter is not within the specified range, the screen material is not adjusted.
8. The method according to any one of claims 1 to 4, 6 and 7, It is characterized in that The screen material includes screenshots or screen recordings.
9. An electronic device, It is characterized in that comprising a processor and a memory, wherein the processor and the memory are connected via a bus; The memory stores a computer program, and the processor is configured to perform the following operations based on the computer program: When the VR device starts the screen material acquisition function, it uses a preset eye tracking algorithm to acquire the user's eye data at specified intervals, wherein the eye data includes the position coordinates of the pupil center point and the left and right eye identifiers, and the screen material acquisition function includes a screenshot function or a screen recording function; When the screen material is acquired, for any one of the screen materials, based on the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device, an offset parameter of the screen material is obtained, wherein the offset parameter is used to characterize whether an offset occurs between the screen material and the reference point, and the screen material includes left-eye screen material and / or right-eye screen material, and the left-eye and right-eye identifiers of the standard eyeball data are the same as the left-eye and right-eye identifiers of the eyeball data; and, If it is determined that the offset parameter of the screen material is within the specified range, then obtaining the adjustment parameter of the screen material according to the eyeball data corresponding to the screen material and the standard eyeball data; and, The position and size of the screen material are adjusted by the adjustment parameters to obtain the target screen material; The target screen material is rendered using a preset rendering method, and the rendered screen material is displayed.
10. The electronic device according to claim 9, It is characterized in that The processor executes the position coordinates of the pupil center point in the eyeball data corresponding to the screen material and the position coordinates of the reference point in the standard eyeball data preset in the VR device to obtain the offset parameters of the screen material, and is specifically configured as follows: For any eyeball data of the screen material, based on the position coordinates of the pupil center point in the eyeball data and the position coordinates of the reference point, obtain the distance between the pupil center point and the reference point; If the number of eyeball data of the screen material is one, determining the offset parameter of the screen material by using the distance; If there are multiple eyeball data of the screen material, weighted sum is performed on multiple distances corresponding to each eyeball data to obtain the offset parameter of the screen material.
Citation Information
Patent Citations
Method and device for automatically adjusting screen
CN106843821A
Adaptive parallax adjustment method and virtual reality VR display system
CN107682690A
VR pupil distance distance adjusting method and device
CN113820863A
Image calibration method and device
CN114624875A
Picture screen capture method and device, head-mounted virtual reality equipment and storage medium
CN115268650A
