CN-117148584-B - Pupil distance adjusting method and device, electronic equipment and readable storage medium
Abstract
The application discloses a pupil distance adjusting method, a pupil distance adjusting device, electronic equipment and a readable storage medium. The pupil distance adjusting method is used for display equipment and comprises the steps of obtaining a first convergence angle of two eyes when the two eyes observe a first target of an image under the condition of displaying the image, determining a depth distance of the two eyes when the two eyes observe a second target according to first aberration of the two eyes when the two eyes observe the first target, wherein the first aberration is a difference between a position of the first target observed by the left eye in the image and a position of the first target observed by the right eye in the image, the second target is any target except the first target in the image, determining a second convergence angle of the two eyes when the two eyes observe the second target according to the second aberration and the depth distance of the two eyes, determining a pupil distance change value according to the second convergence angle and the first convergence angle, and adjusting a distance between center points of the two display modules according to the pupil distance change value.
Inventors
- CHEN YILIN
- CHU YIFAN
Assignees
- 维沃移动通信有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20230904
Claims (14)
- 1. A method of adjusting a pupil distance, the method being used for a display device, the display device including two display modules, the method comprising: Under the condition of displaying an image, acquiring a first convergence angle when eyes observe a first target of the image; Determining a depth distance of the two eyes when observing a second target according to a first aberration when the two eyes observe the first target, wherein the first aberration is a distance difference between a position of the first target observed by the left eye in the image and a position of the first target observed by the right eye in the image, and the second target is any target except the first target in the image; determining a second convergence angle of the two eyes when the two eyes observe a second target according to a second aberration and the depth distance when the two eyes observe the second target; determining a pupil distance variation value according to the second convergence angle and the first convergence angle; and adjusting the distance between the center points of the two display modules according to the pupil distance variation value.
- 2. The adjustment method according to claim 1, wherein the determining the depth distance of the two eyes when observing the second target according to the first aberration when the two eyes observe the first target includes: Determining a depth map of the image according to the first aberration, wherein the depth map is used for representing depth distances of all targets in the image; and determining the depth distance of the second target in the depth map.
- 3. The adjustment method according to claim 1 or 2, characterized in that the adjustment method further comprises, before determining the second convergence angle of the eyes when observing the second target, based on the second aberration and the depth distance when the eyes observe the second target: acquiring a first position of the second target in the image, which is observed by a left eye in the eyes, in a case that the eyes observe the second target; acquiring a second position of the second target in the image, which is observed by the right eye in the eyes; the second aberration is determined from the first position and the second position.
- 4. The adjustment method according to claim 1 or 2, characterized in that the adjustment method further comprises, before determining the second convergence angle of the eyes when observing the second target, based on the second aberration and the depth distance when the eyes observe the second target: acquiring image characteristic information of the image; Determining attention maps of all targets in the image according to the image characteristic information; And determining the second aberration according to the attention map corresponding to the second target.
- 5. The adjustment method according to claim 1 or 2, characterized in that the acquiring a first convergence angle when viewing a first object of the image by both eyes in the case of displaying the image comprises: Under the condition of displaying the image, acquiring an initial pupil distance when eyes observe a first target of the image; acquiring the minimum distance of a connecting line between the first target and the eyes; and determining the first convergence angle according to the minimum distance and the initial pupil distance.
- 6. The adjustment method according to claim 1 or 2, characterized in that, before determining the depth distance of the eyes when viewing a second target, the adjustment method further comprises: Acquiring a third position of the first target in the image, which is observed by a left eye in the eyes, in the case that the eyes observe the first target; Acquiring a fourth position of the first target in the image, which is observed by a right eye of the two eyes; The first aberration is determined from the third position and the fourth position.
- 7. An adjustment device of interpupillary distance, characterized in that, adjustment device is used for display equipment, display equipment includes two display modules, and adjustment device includes: an acquisition unit configured to acquire, in a case of displaying an image, a first convergence angle at which both eyes observe a first target of the image; A determining unit configured to determine a depth distance of the two eyes when observing a second target according to a first aberration when the two eyes observe the first target, where the first aberration is a distance difference between a position of the first target observed by the left eye in the image and a position of the first target observed by the right eye in the image, and the second target is any target other than the first target in the image; the determination unit is also used for determining a second convergence angle of the two eyes when the two eyes observe the second target according to the second aberration and the depth distance when the two eyes observe the second target, and Determining a pupil distance variation value according to the second convergence angle and the first convergence angle; And the adjusting unit is used for adjusting the distance between the center points of the two display modules according to the pupil distance change value.
- 8. The adjusting device according to claim 7, wherein the determining unit is specifically configured to: Determining a depth map of the image according to the first aberration, wherein the depth map is used for representing depth distances of all targets in the image; and determining the depth distance of the second target in the depth map.
- 9. The adjustment device according to claim 7 or 8, characterized in that the acquisition unit is further adapted to: acquiring a first position of the second object in the image observed by a left eye of the eyes while the eyes observe the second object, and Acquiring a second position of the second target in the image, which is observed by the right eye in the eyes; the determination unit is specifically configured to determine the second aberration according to the first position and the second position.
- 10. The adjustment device according to claim 7 or 8, characterized in that the acquisition unit is further adapted to acquire image characteristic information of the image; the determining unit is also used for determining the attention map of all targets in the image according to the image characteristic information, and And determining the second aberration according to the attention map corresponding to the second target.
- 11. The adjustment device according to claim 7 or 8, characterized in that the acquisition unit is specifically configured to: Under the condition of displaying the image, acquiring an initial pupil distance when eyes observe a first target of the image; acquiring the minimum distance of a connecting line between the first target and the eyes; and determining the first convergence angle according to the minimum distance and the initial pupil distance.
- 12. The adjustment device according to claim 7 or 8, characterized in that the acquisition unit is further adapted to: acquiring a third position of the first object in the image, which is observed by a left eye of the eyes, in a case that the eyes observe the first object, and Acquiring a fourth position of the first target in the image, which is observed by a right eye of the two eyes; the determination unit is further configured to determine the first aberration according to the third position and the fourth position.
- 13. An electronic device comprising a processor and a memory storing a program or input executable on the processor, which when executed by the processor, performs the steps of the method of any of claims 1 to 6.
- 14. A readable storage medium, characterized in that it stores thereon a program or an input, which when executed by a processor, implements the steps of the method according to any of claims 1 to 6.
Description
Pupil distance adjusting method and device, electronic equipment and readable storage medium Technical Field The application belongs to the technical field of electronic equipment, and particularly relates to a pupil distance adjusting method and device, electronic equipment and a readable storage medium. Background In the related art, a head-mounted display device generally has a pupil distance adjusting function, that is, a distance between two display modules of the head-mounted display device is adjusted to adapt to pupil distances between eyes when a user views the head-mounted display device, so as to ensure a look and feel effect of the user. In the conventional adjustment method, the pupil distance is calculated only by detecting the movement of both eyes. However, in the actual use process, even if the user looks in the same direction of the screen, the pupil distance of the eyes of the user still has a difference due to the difference of objects watched by the user, so that the existing method of determining the pupil distance according to the movement of the eyes is inaccurate in calculation of the pupil distance, and the effect of the look and feel of the user is poor. Disclosure of Invention An object of the embodiment of the application is to provide a pupil distance adjusting method, device, electronic equipment and readable storage medium, which can solve the problem that the pupil distance change calculation is not accurate enough in a pupil distance determining mode according to movement of two eyes. In a first aspect, an embodiment of the present application provides a method for adjusting a pupil distance, where the adjusting method is used in a display device, the display device includes two display modules, and the adjusting method includes: Under the condition of displaying the image, acquiring a first convergence angle when the eyes observe a first target of the image; Determining a depth distance of the two eyes when observing the second target according to a first aberration when the two eyes observe the first target, wherein the first aberration is a distance difference between a position of the first target observed by the left eye in the image and a position of the first target observed by the right eye in the image, and the second target is any target except the first target in the image; determining a second convergence angle of the two eyes when the two eyes observe the second target according to the second aberration and the depth distance when the two eyes observe the second target; Determining a pupil distance change value according to the second convergence angle and the first convergence angle; and adjusting the distance between the center points of the two display modules according to the pupil distance change value. In a second aspect, an embodiment of the present application provides an adjustment apparatus for a pupil distance, where the adjustment apparatus is used for a display device, the display device includes two display modules, and the adjustment apparatus includes: An acquisition unit configured to acquire a first convergence angle at which both eyes observe a first target of an image in a case where the image is displayed; A determining unit configured to determine a depth distance of both eyes when observing a second object according to a first aberration when observing the first object by both eyes, where the first aberration is a difference in distance between a position of the first object in the image observed by the left eye and a position of the first object in the image observed by the right eye, and the second object is any object in the image other than the first object; the determining unit is also used for determining a second convergence angle of the two eyes when the two eyes observe the second target according to the second aberration and the depth distance when the two eyes observe the second target, and Determining a pupil distance change value according to the second convergence angle and the first convergence angle; and the adjusting unit is used for adjusting the distance between the center points of the two display modules according to the pupil distance change value. In a third aspect, embodiments of the present application provide an electronic device comprising a processor and a memory storing a program or instructions executable on the processor, the program or instructions implementing the steps of the method as in the first aspect when executed by the processor. In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which when executed by a processor perform the steps of the method as in the first aspect. In a fifth aspect, embodiments of the present application provide a chip comprising a processor and a communication interface coupled to the processor for running a program or instructions implementing the steps of the method as in the first asp