A method, device and equipment for measuring pupil distance of head-mounted device
Through the macro image collection equipment, the VR product optical module contouring image is calculated, and the actual pupil distance is calculated, which solves the problem that it is difficult to measure the pupil distance in the state of the existing technology and improves production efficiency.
Patent Information
- Application Number
- CN202211055277.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-08-31
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2042-08-31
AI Technical Summary
It is difficult to accurately measure the pupil distance in the finished product state, which affects production efficiency.
The optical module profile image of the head-mounted device is acquired through a macro image acquisition device, and the actual interpupillary distance is calculated based on the preset distance and image difference.
The accurate measurement of the pupil distance in the finished product state is realized, and the production efficiency is improved.
Smart Images

Figure CN115307878B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the technical field of head-mounted devices, and in particular to a method, device and equipment for measuring pupil distance of a head-mounted device. Background Art
[0002] Inter-Pupillary Distance (IPD) is the distance between the two pupils when the eyes are looking straight ahead (such as Figure 1 It is also an important parameter for virtual reality (VR) technology to provide users with a better experience. Therefore, it is necessary to measure whether the IPD of VR products meets the requirements.
[0003] On the one hand, the optical center of the lens is best aligned directly with the pupil, which helps ensure that the user obtains the clearest possible image; on the other hand, people's perception of stereoscopic images depends on the subtle differences in the images obtained by the two eyes, so measuring IPD can also enable users to obtain better stereoscopic visual experience. Since everyone's IPD is different, the brain will perform 3D calculations based on a person's specific IPD. If the wrong IPD is used when wearing VR glasses, the user will have incorrect depth perception and even cause eye fatigue. It is crucial to measure whether the IPD of VR products meets the requirements.
[0004] As the functions of VR products become more and more complex, users have higher and higher requirements for product battery life, so some VR products will add a back cover as a battery compartment. This will result in the back cover blocking the eye mask. Such products are usually measured for IPD in the semi-finished state, and it is difficult to measure the IPD of the product in the finished state, which affects production efficiency.
[0005] In view of this, the embodiments of the present invention provide a pupil distance measurement method, device and equipment capable of measuring the IPD of a head-mounted device in a finished product state. Summary of the invention
[0006] The purpose of the embodiments of the present invention is to provide a method, device and equipment for measuring the pupil distance of a head-mounted device, which is helpful for measuring the pupil distance of a product in a finished state during use, thereby improving production efficiency.
[0007] In order to solve the above technical problems, an embodiment of the present invention provides a method for measuring pupil distance of a head mounted device, comprising:
[0008] Acquire a contour image of the first optical module of the head-mounted device to be tested by a macro image acquisition device;
[0009] Controlling the head-mounted device to be tested to move a preset distance, and acquiring a contour image of the second optical module of the head-mounted device to be tested through the macro image acquisition device;
[0010] Based on the preset distance, the contour image of the first optical module and the contour image of the second optical module, an actual pupil distance corresponding to a preset position is obtained; the preset position is the position of the distance adjustment end; the distance adjustment end is used to adjust the relative position between the first optical module and the second optical module.
[0011] Optionally, obtaining an actual pupil distance corresponding to a preset position based on the preset distance, the contour image of the first optical module, and the contour image of the second optical module includes:
[0012] Calculating first centroid coordinates based on the contour image of the first optical module;
[0013] Calculating the second centroid coordinates based on the contour image of the second optical module;
[0014] Calculating a centroid pixel difference between the first optical module profile and the second optical module profile based on the first centroid coordinate and the second centroid coordinate;
[0015] Obtaining a distance difference value according to the centroid pixel difference;
[0016] According to the preset distance, the distance difference and the preset calculation relationship, an actual pupil distance corresponding to the preset position is obtained.
[0017] Optionally, when the preset position is the maximum IPD position, the preset calculation relationship is:
[0018] IPD MAX =D+ΔD-(l*2), where IPD MAX represents the actual pupil distance at the maximum IPD position, D represents the preset distance, ΔD represents the distance difference, and l represents the relative distance from the centroid of the optical module profile to the optical center in the IPD moving direction;
[0019] When the preset position is the minimum IPD position, the preset calculation relationship is:
[0020] IPD MAX =D-ΔD-(l*2), where IPD MAX It represents the actual pupil distance at the maximum IPD position, D represents the preset distance, and ΔD represents the distance difference.
[0021] Optionally, also include:
[0022] Acquire a theoretical pupil distance corresponding to the preset position;
[0023] The actual pupil distance is compared with the theoretical pupil distance, and a feedback result is generated when the actual pupil distance is inconsistent with the theoretical pupil distance.
[0024] Optionally, also include:
[0025] Obtaining an IPD sensor value corresponding to the head mounted device to be tested when the head mounted device to be tested is at the preset IPD position;
[0026] The IPD sensor value, the preset position, and the actual pupil distance are stored correspondingly.
[0027] Optionally, also include:
[0028] The optical axis of the macro image acquisition device is calibrated in advance.
[0029] Optionally, also include:
[0030] The head mounted device to be tested is placed on a product tooling in advance, and the product tooling is arranged on a driving module;
[0031] The controlling the head mounted device to be tested to move a preset distance includes:
[0032] The driving module is controlled to drive the head mounted device to be tested to move a preset distance.
[0033] An embodiment of the present invention further provides a pupil distance measurement device for a head mounted device, comprising:
[0034] An acquisition module, used for acquiring a contour image of the first optical module of the head-mounted device to be tested through a macro image acquisition device;
[0035] A control module, used for controlling the head-mounted device to be tested to move a preset distance, and obtaining a contour image of the second optical module of the head-mounted device to be tested through the macro image acquisition device;
[0036] A calculation module is used to obtain an actual pupil distance corresponding to a preset position based on the preset distance, the contour image of the first optical module and the contour image of the second optical module; the preset position is the position of the distance adjustment end; the distance adjustment end is used to adjust the relative position between the first optical module and the second optical module.
[0037] An embodiment of the present invention further provides a pupil distance measuring device for a head mounted device, comprising:
[0038] Memory for storing computer programs;
[0039] A processor is used to implement the steps of the pupil distance measurement method of the head-mounted device as described above when executing the computer program.
[0040] An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the pupil distance measurement method of the head-mounted device as described above are implemented.
[0041] An embodiment of the present invention provides a method for measuring the pupil distance of a head-mounted device, comprising: acquiring a contour image of a first optical module of a head-mounted device to be measured by a macro image acquisition device; controlling the head-mounted device to be measured to move a preset distance, and acquiring a contour image of a second optical module of the head-mounted device to be measured by the macro image acquisition device; obtaining an actual pupil distance corresponding to a preset position based on the preset distance, the contour image of the first optical module, and the contour image of the second optical module; the preset position is the position of a distance adjustment end; and the distance adjustment end is used to adjust the relative position between the first optical module and the second optical module.
[0042] It can be seen that in the embodiment of the present invention, when measuring the pupil distance of the optical module of the head-mounted device to be measured, the preset position of the distance adjustment end for the relative position between the first optical module and the second optical module can be predetermined, and then the contour image of the first optical module of the head-mounted device to be measured is collected by the macro image acquisition device. After the collection is completed, the head-mounted device to be measured is moved by a preset distance so that the second optical module is located in the field of view of the macro image acquisition device, and the contour image of the second optical module is collected by the macro image acquisition device. Then, based on the preset distance, the contour image of the first optical module and the contour image of the second optical module, the actual pupil distance corresponding to the preset position is calculated; in the present invention, the macro image acquisition device is used to achieve pupil distance measurement by unilateral image acquisition, which is conducive to pupil distance measurement of products in the finished state and to improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the prior art and the drawings required for use in the embodiments are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0044] Figure 1 A schematic diagram of pupil distance provided by an embodiment of the present invention;
[0045] Figure 2 A schematic diagram of a flow chart of a method for measuring pupil distance of a head mounted device provided in an embodiment of the present invention;
[0046] Figure 3 A schematic diagram of optical axis calibration of an image acquisition device provided by an embodiment of the present invention;
[0047] Figure 4 A schematic diagram of the pupil distance measurement principle provided by an embodiment of the present invention;
[0048] Figure 5 A schematic diagram of a single-sided photographing device provided by an embodiment of the present invention;
[0049] Figure 6 A schematic structural diagram of a pupil distance measurement device for a head mounted device provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0050] The embodiments of the present invention provide a method, device and equipment for measuring the pupil distance of a head-mounted device, which are helpful for measuring the pupil distance of a product in a finished state during use, thereby improving production efficiency.
[0051] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0052] Please refer to Figure 2 , Figure 2 A schematic flow chart of a method for measuring pupil distance of a head mounted device provided in an embodiment of the present invention. The method comprises:
[0053] It should be noted that in actual applications, the head-mounted device to be tested may be smart glasses (such as AR glasses, etc.). Before testing the head-mounted device to be tested, it is first necessary to perform parallel calibration between the optical axis of the macro image acquisition device and the optical axis of the product lens. Secondly, the center of the macro image acquisition device needs to be aligned with the center of the product lens. Specifically, the standard calibration parts can be used to confirm whether the calibration is correct.
[0054] Specifically, during the calibration process, the macro image acquisition device is calibrated to make the optical axis parallel and the center point coincide. According to the characteristics of the head-mounted device (such as a VR device), the central circular hole of the product Lens is represented by 3D design, and the circular hole is illuminated by a backlight source. The position of the macro image acquisition device is adjusted so that its center is in the center of the circular hole. The calibration circular hole is then moved back and forth to check whether the center of the macro image acquisition device is offset. If there is an offset, it means that the optical axis of the macro image acquisition device is not parallel to the optical axis of the product. It is necessary to continue to adjust the angle of the macro image acquisition device until the center of the macro image acquisition device does not shift after moving back and forth. After the calibration is completed, the relative position of the macro image acquisition device and the product is determined. The product is the location of the product tooling. Please refer to the specific calibration diagram Figure 3 .
[0055] It is understandable that after the calibration is completed, the distance adjustment end between the first optical module and the second optical module of the head-mounted device to be tested can be adjusted to a preset position manually or by driving the control device, and the head-mounted device to be tested can be placed on the product tooling. Among them, due to the deviation of the structural assembly and the tolerance of the product material, the distance adjustment end between the first optical module and the second optical module of the head-mounted device may not be adjusted to the maximum and minimum, so it is necessary to detect the distance between the first optical module and the second optical module at these positions (that is, the pupil distance IPD of the head-mounted device), that is, the preset position in the embodiment of the present invention can be the IPD maximum position and the IPD minimum position, of course, it can also be any position between the IPD maximum position and the IPD minimum position, and can be determined according to actual conditions.
[0056] S110: Acquire a contour image of the first optical module of the head mounted device to be tested by a macro image acquisition device;
[0057] It should be noted that in order to achieve IPD measurement of the optical module of the head-mounted device in the embodiment of the present invention, the image acquisition device used in the embodiment of the present invention is a macro image acquisition device (such as a macro camera), and the contour images of the first optical module and the second optical module of the head-mounted device to be measured are respectively captured on one side. Specifically, by adjusting the position of the head-mounted device to be measured, the contour of the first optical module of the head-mounted device to be measured is located within the field of view of the macro image acquisition device, and the contour image of the first optical module of the head-mounted device to be measured is obtained through the macro image acquisition device. For details, please refer to Figure 4 and Figure 5 ,in, Figure 5 In the figure, Left eyecup is the left eyecup, Right eyecup is the right eyecup, camera is the camera, the optical lens on the left eyecup is the left eye optical module, and the optical lens on the right eyecup is the right eye optical module. The first optical module can be illuminated by the backlight source of the head-mounted device to be tested, so that the outline of the first optical module can be identified.
[0058] S130: Controlling the head-mounted device to be tested to move a preset distance, and acquiring a contour image of the second optical module of the head-mounted device to be tested through a macro image acquisition device;
[0059] Specifically, since the distance between the first optical module and the second optical module of the head-mounted device is usually fixed, after obtaining the contour image of the first optical module of the head-mounted device to be tested, the head-mounted device to be tested can be controlled to move a preset distance in a preset direction so that the contour of the second optical module is located within the field of view of the macro image acquisition device, and then the contour image of the second optical module of the head-mounted device to be tested is obtained by the macro image acquisition device, wherein the preset distance in the embodiment of the present invention can be 72mm. Of course, in practical applications, the specific value of the preset distance needs to be determined according to the actual situation of the head-mounted device to be tested, and the embodiment of the present invention does not specifically limit this. Among them, the second optical module can be illuminated by the backlight source of the head-mounted device to be tested, so that the contour of the second optical module can be identified and the image can be acquired.
[0060] It should be noted that the first optical module in the embodiment of the present invention is one of the left-eye optical module and the right-eye optical module, and the second optical module is the other of the left-eye optical module and the right-eye optical module.
[0061] In addition, in actual applications, the product tooling can be set on the driving module to control the driving module to drive the head-mounted device to be tested to move a preset distance.
[0062] S140: Based on the preset distance, the contour image of the first optical module and the contour image of the second optical module, an actual pupil distance corresponding to a preset position is obtained; the preset position is the position of the distance adjustment end; the distance adjustment end is used to adjust the relative position between the first optical module and the second optical module.
[0063] Specifically, after collecting the contour image of the first optical module and the contour image of the second optical module, the contour image of the first optical module and the contour image of the second optical module can be analyzed, and the actual pupil distance at the preset position can be calculated in combination with the preset distance.
[0064] It should be noted that in actual applications, the product tooling can be set on the driving module, and then the head-mounted device to be tested can be driven to move a preset distance by controlling the driving module, wherein the driving module can be an electric cylinder.
[0065] In actual applications, the head-mounted device to be tested can be fixed to the product tooling, and then automatically connected to the data port of the head-mounted device to be tested through the Type C data cable. The X-axis electric cylinder can drive the head-mounted device to be tested to move, and the distance adjustment end between the first optical module and the second optical module (such as the IPD automatic lever) can be lowered to the middle position between the two lenses of the product through the cylinder, and the pupil distance of the head-mounted device to be tested can be adjusted to the maximum position, and the distance adjustment end between the first optical module and the second optical module can be raised back to its original position, thereby adjusting the IPD to the maximum position; then the head-mounted device to be tested can be moved to the photo taking position of the macro image acquisition device through the electric cylinder, and then The corresponding cylinder is set to adjust the position of the macro image acquisition device, and the electric cylinder is used to drive the head-mounted device to be tested to move so that the left eye lens contour is located at the position where the macro image acquisition device takes photos of the left eye lens contour. The head-mounted device to be tested broadcasts a white image to illuminate the lens contour, and the macro image acquisition device takes the lens contour image and uploads the data. Then, the head-mounted device to be tested is driven by the electric cylinder to move to the right eye shooting position, and the macro image acquisition device takes the right eye lens contour image and uploads the data. The processor calculates the actual pupil distance at the preset position based on the acquired data, and after the test is completed, the head-mounted device to be tested is driven by the electric cylinder to return to the test origin, and the Type C cable is automatically unplugged, and the entire test process ends. Further, the process of obtaining the actual pupil distance corresponding to the preset position based on the preset distance, the contour image of the first optical module, and the contour image of the second optical module in the above S140 can specifically include:
[0066] Calculating first centroid coordinates based on the contour image of the first optical module;
[0067] Calculating the second centroid coordinates based on the contour image of the second optical module;
[0068] Calculating the centroid pixel difference between the first optical module profile and the second optical module profile based on the first centroid coordinates and the second centroid coordinates;
[0069] The distance difference is obtained according to the centroid pixel difference;
[0070] According to the preset distance, the distance difference and the preset calculation relationship, the actual pupil distance corresponding to the preset position is obtained.
[0071] It should be noted that by analyzing the contour image of the first optical module, the first centroid coordinates (x1, y1) can be calculated, and by analyzing the contour image of the second optical module, the second centroid coordinates (x2, y2) can be calculated, and then the centroid pixel difference between the first optical module contour and the second optical module contour is calculated. Then, the centroid pixel difference is further processed according to the imaging ratio f between the macro image acquisition device and the head-mounted device to be tested, and the distance difference ΔD=Δd / f is obtained, thereby converting the pixel difference on the image into the distance difference of the head-mounted device to be tested. Since the above calculation obtains the relative distance between the two centroids, and the IPD is defined as the distance between the two optical centers, it is necessary to convert according to the relative relationship between the centroid and the optical center of the head-mounted device to be tested, that is, according to the preset distance, distance difference and preset calculation relationship, obtain the actual pupil distance corresponding to the preset position of the IPD lever.
[0072] The process of obtaining the imaging ratio f between the macro image acquisition device and the head-mounted device to be tested is as follows:
[0073] The head-mounted device to be tested is moved to a fixed position M, and the position m of the image movement on the imaging surface of the macro image acquisition device is obtained, so that f=m / M is obtained.
[0074] Furthermore, when the preset position is the maximum IPD position, the preset calculation relationship is:
[0075] IPD MAX =D+ΔD-(l*2), where IPD MAX represents the actual pupil distance at the maximum IPD position, D represents the preset distance, ΔD represents the distance difference, and l represents the relative distance from the centroid of the optical module profile to the optical center in the IPD moving direction;
[0076] When the preset position is the minimum IPD position, the preset calculation relationship is:
[0077] IPD MAX =D-ΔD-(l*2), where IPD MAX It represents the actual pupil distance at the maximum IPD position, D represents the preset distance, and ΔD represents the distance difference.
[0078] It should be noted that according to the above calculation formula, the actual pupil distance when the distance adjustment end between the first optical module and the second optical module is at the maximum IPD position, and the actual pupil distance when the distance adjustment end between the first optical module and the second optical module is at the minimum IPD position can be obtained.
[0079] Furthermore, the method may also include:
[0080] Obtaining a theoretical pupil distance corresponding to a preset position;
[0081] The actual pupil distance is compared with the theoretical pupil distance, and when the actual pupil distance is inconsistent with the theoretical pupil distance, a feedback result is generated.
[0082] It should be noted that in order to further verify whether the IPD of the head-mounted device to be tested can reach the theoretical maximum value and the theoretical minimum value, after further calculating the actual pupil distance at the maximum IPD position, the theoretical pupil distance at the maximum IPD position can be obtained, and the actual pupil distance at the maximum IPD position can be compared with the theoretical pupil distance. If the two are inconsistent, it means that the IPD of the head-mounted device to be tested cannot reach the theoretical maximum, and a feedback result is generated so that the designer can adjust the product parameters of the head-mounted device to be tested. Similarly, after calculating the actual pupil distance at the minimum IPD position, the theoretical pupil distance at the minimum IPD position can be obtained, and the actual pupil distance at the maximum IPD position can be compared with the theoretical pupil distance. If the two are inconsistent, it means that the IPD of the head-mounted device to be tested cannot reach the theoretical minimum, and a feedback result is generated so that the designer can adjust the product parameters of the head-mounted device to be tested. The embodiment of the present invention can further determine whether the IPD of the head-mounted device to be tested can be dialed to the maximum and minimum, and if it cannot be dialed to the maximum and minimum, the design parameters of the head-mounted product to be tested are adjusted so that the IPD can reach the theoretical maximum and theoretical minimum, thereby better meeting user needs and improving user experience.
[0083] Furthermore, the method may also include:
[0084] Obtain the IPD sensor value corresponding to the head mounted device under test at the preset IPD position;
[0085] The IPD sensor value, preset position, and actual pupil distance are stored correspondingly.
[0086] It should be noted that, in the embodiment of the present invention, the value of the IPD sensor can be further calibrated. Specifically, after obtaining the actual pupil distance at the preset IPD position, the corresponding IPD sensor value can be obtained, and then the IPD sensor value, the preset position and the actual pupil distance can be stored correspondingly, thereby realizing the calibration of the IPD sensor.
[0087] It can be seen that in the embodiment of the present invention, when measuring the pupil distance of the optical module of the head-mounted device to be measured, the IPD of the head-mounted device to be measured can be first moved to a preset position, the head-mounted device to be measured can be mounted on the main product tooling, and then the contour image of the first optical module of the head-mounted device to be measured is collected by the macro image acquisition device. After the collection is completed, the head-mounted device to be measured is moved a preset distance so that its second optical module is located within the field of view of the macro image acquisition device, and the contour image of the second optical module is collected by the macro image acquisition device. Then, based on the preset distance, the contour image of the first optical module and the contour image of the second optical module, the actual pupil distance corresponding to the preset position is calculated; in the present invention, the macro image acquisition device is used to achieve pupil distance measurement by unilateral image acquisition, which is conducive to pupil distance measurement of products in the finished state and to improving production efficiency.
[0088] On the basis of the above embodiment, an embodiment of the present invention further provides a pupil distance measurement device for a head mounted device, the device comprising:
[0089] The acquisition module 21 is used to acquire a contour image of the first optical module of the head-mounted device to be tested through a macro image acquisition device;
[0090] The control module 22 is used to control the head-mounted device to be tested to move a preset distance, and obtain a contour image of the second optical module of the head-mounted device to be tested through a macro image acquisition device;
[0091] The calculation module 23 is used to obtain the actual pupil distance corresponding to the preset position based on the preset distance, the contour image of the first optical module and the contour image of the second optical module; the preset position is the position of the distance adjustment end; the distance adjustment end is used to adjust the relative position between the first optical module and the second optical module.
[0092] It should be noted that the pupil distance measurement device of the head-mounted device provided in the embodiment of the present invention has the same beneficial effects as the pupil distance measurement method of the head-mounted device provided in the above embodiment, and for the specific introduction of the pupil distance measurement method of the head-mounted device involved in the embodiment of the present invention, please refer to the above embodiment, and the present invention will not be repeated here.
[0093] On the basis of the above embodiment, an embodiment of the present invention further provides a pupil distance measurement device for a head mounted device, the device comprising:
[0094] Memory for storing computer programs;
[0095] A processor is used to implement the steps of the pupil distance measurement method of the head-mounted device as described above when executing a computer program.
[0096] Based on the above embodiments, an embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of the pupil distance measurement method of the head-mounted device as described above are implemented.
[0097] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0098] It should also be noted that, in this specification, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "comprise", "include" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the statement "comprises a ..." does not exclude the presence of other identical elements in the process, method, article or device including the element.
[0099] Professionals may further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of the two. In order to clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described in the above description according to function. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professionals and technicians may use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0100] The steps of the method or algorithm described in conjunction with the embodiments disclosed herein may be implemented directly using hardware, a software module executed by a processor, or a combination of the two. The software module may be placed in a random access memory (RAM), a memory, a read-only memory (ROM), an electrically programmable ROM, an electrically erasable programmable ROM, a register, a hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
[0101] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for measuring pupil distance of a head mounted device, characterized in that: include: Acquire a contour image of the first optical module of the head-mounted device to be tested by a macro image acquisition device; Controlling the head-mounted device to be tested to move a preset distance, and acquiring a contour image of the second optical module of the head-mounted device to be tested through the macro image acquisition device; Based on the preset distance, the contour image of the first optical module and the contour image of the second optical module, an actual pupil distance corresponding to the preset position is obtained; The preset position is the position of the distance adjustment end; the distance adjustment end is used to adjust the relative position between the first optical module and the second optical module; wherein: The obtaining of an actual pupil distance corresponding to a preset position based on the preset distance, the contour image of the first optical module, and the contour image of the second optical module comprises: Calculating first centroid coordinates based on the contour image of the first optical module; Calculating the second centroid coordinates based on the contour image of the second optical module; Calculating a centroid pixel difference between the first optical module profile and the second optical module profile based on the first centroid coordinate and the second centroid coordinate; Obtaining a distance difference value according to the centroid pixel difference; According to the preset distance, the distance difference and the preset calculation relationship, an actual pupil distance corresponding to the preset position is obtained; When the preset position is the maximum IPD position, the preset calculation relationship is: ,in, Indicates the actual pupil distance at the maximum IPD position, D indicates the preset distance, Represents the distance difference, Indicates the relative distance from the centroid of the optical module profile to the optical center in the IPD moving direction; When the preset position is the minimum IPD position, the preset calculation relationship is: ,in, Indicates the actual pupil distance at the maximum IPD position, D indicates the preset distance, Indicates the distance difference.
2. The method for measuring pupil distance of a head mounted device according to claim 1, characterized in that: Also includes: Acquire a theoretical pupil distance corresponding to the preset position; The actual pupil distance is compared with the theoretical pupil distance, and a feedback result is generated when the actual pupil distance is inconsistent with the theoretical pupil distance.
3. The method for measuring pupil distance of a head mounted device according to any one of claims 1 to 2, characterized in that: The method also includes calibrating the IPD sensor, wherein the calibration process includes: Obtaining an IPD sensor value corresponding to the head mounted device to be tested when the head mounted device to be tested is at the preset position; The IPD sensor value, the preset position, and the actual pupil distance are stored correspondingly to calibrate the IPD sensor.
4. The method for measuring pupil distance of a head mounted device according to claim 3, characterized in that: Also includes: The optical axis of the macro image acquisition device is calibrated in advance.
5. The method for measuring pupil distance of a head mounted device according to claim 3, characterized in that: Also includes: The head mounted device to be tested is placed on a product tooling in advance, and the product tooling is arranged on a driving module; The controlling the head mounted device to be tested to move a preset distance includes: The driving module is controlled to drive the head mounted device to be tested to move a preset distance.
6. A pupil distance measuring device for a head mounted device, characterized in that: include: An acquisition module, used for acquiring a contour image of the first optical module of the head-mounted device to be tested through a macro image acquisition device; A control module, used for controlling the head-mounted device to be tested to move a preset distance, and obtaining a contour image of the second optical module of the head-mounted device to be tested through the macro image acquisition device; A calculation module, configured to obtain an actual pupil distance corresponding to a preset position based on the preset distance, the contour image of the first optical module, and the contour image of the second optical module; The preset position is the position where the distance adjustment end is located; The distance adjustment end is used to adjust the relative position between the first optical module and the second optical module; wherein: The obtaining of an actual pupil distance corresponding to a preset position based on the preset distance, the contour image of the first optical module, and the contour image of the second optical module comprises: Calculating first centroid coordinates based on the contour image of the first optical module; Calculating the second centroid coordinates based on the contour image of the second optical module; Calculating a centroid pixel difference between the first optical module profile and the second optical module profile based on the first centroid coordinate and the second centroid coordinate; Obtaining a distance difference value according to the centroid pixel difference; According to the preset distance, the distance difference and the preset calculation relationship, an actual pupil distance corresponding to the preset position is obtained; When the preset position is the maximum IPD position, the preset calculation relationship is: ,in, Indicates the actual pupil distance at the maximum IPD position, D indicates the preset distance, Represents the distance difference, Indicates the relative distance from the centroid of the optical module profile to the optical center in the IPD moving direction; When the preset position is the minimum IPD position, the preset calculation relationship is: ,in, Indicates the actual pupil distance at the maximum IPD position, D indicates the preset distance, Indicates the distance difference.
7. A pupil distance measuring device for a head mounted device, characterized in that: include: Memory for storing computer programs; A processor, configured to implement the steps of the pupil distance measurement method for a head mounted device as claimed in any one of claims 1 to 5 when executing the computer program.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the pupil distance measurement method of the head-mounted device according to any one of claims 1 to 5 are implemented.
Citation Information
Patent Citations
Interpupillary distance test method and device of AR glasses
CN108267299A
Variable-visual-axis stereoscopic vision measurement system and method based on active visual distance
CN113446936A