Detection method for near-eye display device, and electronic device
By acquiring images with multiple virtual image distances in a near-eye display device and calculating sharpness and offset angle using the frequency domain modulation transfer function, the problems of low detection efficiency and error are solved, achieving efficient and accurate device calibration and improved imaging quality.
Patent Information
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- INTERFACE ADVANCED TECH (CHENGDU) CO LTD
- Filing Date
- 2024-11-08
- Publication Date
- 2026-05-15
AI Technical Summary
Existing near-eye display devices suffer from low detection efficiency and detection errors, and cannot be calibrated at optimal optical performance, thus affecting user experience.
By acquiring test point images of near-eye display devices based on multiple preset virtual image distances, the sharpness is calculated using the frequency domain modulation transfer function, the standard position and offset angle are determined, and calibration is performed to improve detection accuracy and efficiency.
It achieves efficient detection without human intervention, accurately reflects the offset of near-eye display devices, and improves imaging quality and user experience.
Smart Images

Figure CN2024130877_15052026_PF_FP_ABST
Abstract
Description
Testing methods and electronic equipment for near-eye display devices Technical Field
[0001] This application relates to the field of optical inspection technology, specifically to a method and electronic device for detecting near-eye display devices. Background Technology
[0002] With the development of information display technology, near-eye display (NED) devices can be used in virtual reality (VR) and augmented reality (AR). To ensure the quality of NED devices and avoid problems such as poor image quality during use, quality inspection is usually required. Currently, related technologies rely on manual judgment for quality inspection, which is not only inefficient but also prone to errors.
[0003] Summary of the Invention
[0004] This application provides a detection method and electronic device for near-eye display devices to solve the technical problems of low detection efficiency and detection errors in near-eye display devices.
[0005] The first aspect of this application provides a method for detecting a near-eye display device. The method includes: acquiring a first image of a test point displayed on the near-eye display device based on multiple preset virtual image distances; determining a second image from the first image based on the clarity of the first image; determining a standard position of the test point in the second image based on the preset virtual image distance corresponding to the second image; and determining the detection result of the near-eye display device based on the measurement position of the test point in the second image and the standard position.
[0006] According to an embodiment of this application, the method further includes: determining an interpolated virtual image distance based on the plurality of preset virtual image distances and a preset distance; determining a target virtual image distance adjacent to the interpolated virtual image distance from the plurality of preset virtual image distances; and obtaining an enhanced image based on a first captured image corresponding to the target virtual image distance and the interpolated virtual image distance.
[0007] According to an embodiment of this application, determining a second captured image from the first captured image based on the sharpness of the first captured image includes: calculating the sharpness of the first captured image using a frequency domain modulation transfer function; and determining the first captured image corresponding to the highest sharpness as the second captured image.
[0008] According to an embodiment of this application, the detection result includes a first offset angle. Determining the detection result of the near-eye display device based on the measurement position of the test point in the second captured image and the standard position includes: determining a first offset amount of the test point in a first preset direction and a second offset amount in a second preset direction based on the measurement position and the standard position; and calculating the first offset angle based on the first offset amount and the second offset amount.
[0009] According to an embodiment of this application, the method further includes: calibrating the near-eye display device by rotating the display screen in the near-eye display device based on the first offset angle in the detection result.
[0010] According to an embodiment of this application, the near-eye display device includes a lens and a display screen. The method further includes: acquiring a third image of a test point displayed by a near-eye display device with different preset object distances using an imaging device, wherein the preset object distance indicates the distance between the lens and the display screen; determining a fourth image from the third image based on the clarity of the third image; and determining a second offset angle of the near-eye display device having the target object distance based on the target object distance corresponding to the fourth image and the field of view of the imaging device corresponding to the fourth image.
[0011] According to an embodiment of this application, determining the second offset angle of the near-eye display device having the target object distance based on the target object distance corresponding to the fourth captured image and the field of view of the capturing device corresponding to the fourth captured image includes: performing a weighted fitting on the target object distance based on the field of view to obtain a fitting plane; determining the plane vector of the fitting plane; and calculating the second offset angle based on the plane vector.
[0012] According to an embodiment of this application, the method further includes: calibrating the near-eye display device based on the second offset angle and the target object distance.
[0013] According to an embodiment of this application, the method further includes: determining the virtual image distance of the calibrated near-eye display device; if the virtual image distance of the calibrated near-eye display device meets a preset requirement, generating a prompt message, the prompt message being used to indicate that the calibrated near-eye display device meets the assembly requirements.
[0014] A second aspect of this application provides a detection apparatus for a near-eye display device. The apparatus includes: an acquisition unit, configured to acquire a first captured image of a test point displayed on the near-eye display device based on a plurality of preset virtual image distances; a determination unit, configured to determine a second captured image from the first captured image based on the clarity of the first captured image; the determination unit is further configured to determine a standard position of the test point in the second captured image based on the preset virtual image distance corresponding to the second captured image; and the determination unit is further configured to determine a detection result of the near-eye display device based on the measurement position of the test point in the second captured image and the standard position.
[0015] A third aspect of this application provides an electronic device, the electronic device comprising: a memory for storing computer-readable instructions; and a processor for executing the computer-readable instructions stored in the memory to implement the detection method for the near-eye display device.
[0016] A fourth aspect of this application provides a computer-readable storage medium storing computer-readable instructions, which are executed by a processor in an electronic device to implement the detection method for the near-eye display device.
[0017] In several embodiments of this application, a first image of the test point displayed on the near-eye display device is acquired using multiple preset virtual image distances. Based on the clarity of the first image, a second image is determined, thus obtaining the second image corresponding to the near-eye display device under optimal optical performance. The preset virtual image distance corresponding to the second image allows determination of the standard position of the test point within the second image. By combining the standard position and the measured position, the offset of the near-eye display device under optimal optical performance can be determined, thereby facilitating the calibration of the near-eye display device and improving the user experience. Furthermore, since manual quality inspection is unnecessary, the problems of detection errors and low efficiency caused by manual judgment can be avoided. Attached Figure Description
[0018] Figure 1 is an application scenario diagram of the detection method for near-eye display devices provided in the embodiments of this application.
[0019] Figure 2 is a flowchart of the detection method for near-eye display devices provided in an embodiment of this application.
[0020] Figure 3 is a schematic diagram of the initial alignment of the imaging device and the display screen in the near-eye display device provided in the embodiment of this application.
[0021] Figure 4 is a schematic diagram showing the distribution of multiple shooting devices provided in the embodiments of this application.
[0022] Figure 5 is a schematic diagram of the first captured image obtained by the imaging device provided in the embodiment of this application.
[0023] Figure 6 is a schematic diagram of the standard position and measurement position according to an embodiment of this application.
[0024] Figure 7 is a schematic diagram of the rotation of the display screen in the near-eye display device provided in an embodiment of this application.
[0025] Figure 8 is a flowchart of a detection method for a near-eye display device provided in another embodiment of this application.
[0026] Figure 9 is a flowchart of a detection method for a near-eye display device provided in another embodiment of this application.
[0027] Figure 10 is a schematic diagram of the movement of the display screen in the near-eye display device provided in an embodiment of this application.
[0028] Figure 11 is a schematic diagram of the fitting plane provided in an embodiment of this application.
[0029] Figure 12 is a schematic diagram of the second offset angle provided in an embodiment of this application.
[0030] Figure 13 is a flowchart of a detection method for a near-eye display device provided in another embodiment of this application.
[0031] Figure 14 is a functional block diagram of the detection device for near-eye display devices provided in an embodiment of this application.
[0032] Figure 15 is a schematic diagram of the structure of an electronic device that implements a detection method for near-eye display devices according to an embodiment of this application. Detailed Implementation
[0033] To make the objectives, technical solutions, and advantages of this application clearer, the application will be described in detail below with reference to the accompanying drawings and specific embodiments.
[0034] It should be noted that in this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The terms "first," "second," "third," "fourth," etc. (if present) in the specification, claims, and drawings of this application are used to distinguish similar objects, not to describe a specific order or sequence.
[0035] In the embodiments of this application, the terms "exemplary" or "for example" are used to indicate examples, illustrations, or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a specific manner. Unless otherwise specified, the following embodiments and features described herein can be combined with each other.
[0036] Currently, near-eye display devices are mainly assembled using mechanical positioning. However, this assembly method still cannot guarantee that the imaging center of the near-eye display device can be aligned with the optical axis center, resulting in problems such as poor imaging quality when the near-eye display device is in use. Therefore, quality testing of near-eye display devices has become an urgent problem to be solved.
[0037] In existing testing methods for near-eye display devices, quality inspection is performed to obtain test results. However, this method requires manual judgment for quality inspection, resulting in low efficiency and accuracy. Furthermore, because the test results obtained from these methods cannot reflect the near-eye display device's deviation under optimal optical performance, subsequent calibration cannot be directly based on the test results, which is detrimental to user experience.
[0038] To address the aforementioned issues, this application provides a method for detecting near-eye display devices. Since it eliminates the need for manual quality inspection, it avoids the detection errors and low efficiency associated with manual judgment. Furthermore, the detection results determined by this application reflect the deviation of the near-eye display device under optimal optical performance. Therefore, the detection results determined by this application can be used to calibrate the near-eye display device, improving the user experience.
[0039] Figure 1 shows an application scenario diagram of the detection method for near-eye display devices provided in the embodiments of this application.
[0040] In this embodiment, the detection method for near-eye display devices can be applied to one or more electronic devices 10. The electronic devices 10 control the imaging device 20 to capture information displayed on the near-eye display device 30, and also detect the quality of the near-eye display device 30. The imaging device 20 includes a main unit and a lens, with the lens mounted on the main unit. The near-eye display device 30 includes a lens and a display screen. The application scenario diagram provided in this embodiment also includes a virtual image space 40, which displays images captured by the imaging device 20, such as image 50 in Figure 1.
[0041] Referring to Figure 1, the imaging device 20 and the near-eye display device 30 are coaxial. When the near-eye display device 30 is in the state of optimal optical performance, the imaging center of the near-eye display device 30 (e.g., the center of the image 50) is aligned with the optical axis center (e.g., the axis of the imaging device 20 and the near-eye display device 30).
[0042] Electronic device 10 can be any electronic product that can interact with a user, such as personal computer, tablet computer, smartphone, personal digital assistant (PDA), game console, interactive network television (IPTV), smart wearable device, etc.
[0043] Electronic device 10 may include network devices and / or user devices. Among them, network devices include, but are not limited to, a single network electronic device, a group of electronic devices consisting of multiple network electronic devices, or a cloud based on cloud computing consisting of a large number of hosts or network electronic devices.
[0044] The network where electronic device 10 is located may include, but is not limited to: the Internet, wide area network, metropolitan area network, local area network, and virtual private network (VPN).
[0045] Figure 2 shows a flowchart of a near-eye display device detection method provided in an embodiment of this application. The near-eye display device detection method is applied to electronic devices, such as the electronic device 10 in Figure 1. Depending on different requirements, the order of the steps in this flowchart can be changed, and some steps can be omitted.
[0046] S201, based on multiple preset virtual image distances, acquire the first captured image of the test point displayed on the near-eye display device.
[0047] In at least one embodiment of this application, a test point is displayed on the display screen of a near-eye display device. The test point can be any point in the image displayed on the display screen, for example, the test point can be the center point in the image displayed on the display screen.
[0048] In at least one embodiment of this application, before the imaging device captures the test points displayed on the screen of the near-eye display device, the imaging device and the screen are initially aligned to ensure that the lens of the imaging device is parallel to the screen. Please refer to Figure 3, which is a schematic diagram of the initial alignment of the imaging device and the screen in the near-eye display device according to an embodiment of this application. Figure 3 shows the lenses of three imaging devices and the screen in the near-eye display device, with the lenses of the three imaging devices respectively parallel to the screen in the near-eye display device. This embodiment, by initially aligning the imaging device and the screen, can avoid the lens of the imaging device being misaligned with the screen, thus preventing the capture of the test points from being affected, and thereby preventing the obtained first captured image from being affected.
[0049] In at least one embodiment of this application, each preset virtual image distance can be used to indicate the distance from the human eye to the virtual image space 40. For example, assuming the lens of the imaging device 20 is represented as the human eye, each preset virtual image distance can be used to indicate the distance from the lens of the imaging device 20 to the virtual image space 40. Multiple preset virtual image distances can be set based on a first preset value and a second preset value. The first and second preset values can be set and adjusted according to actual needs. The first preset value can be any preset virtual image distance, and the second preset value can be the minimum value selected from the absolute value of the difference between any two preset virtual image distances. For example, if the first preset value is 1 meter and the second preset value is 50 millimeters, and 19 preset virtual image distances need to be set, then the multiple preset virtual image distances can be 0.955 meters, 0.960 meters, 0.965 meters, 0.970 meters, 0.975 meters, 0.980 meters, 0.985 meters, 0.990 meters, 0.995 meters, 1 meter, 1.005 meters, 1.010 meters, 1.015 meters, 1.020 meters, 1.025 meters, 1.030 meters, 1.035 meters, 1.040 meters, and 1.045 meters respectively.
[0050] In at least one embodiment of this application, the electronic device can be connected to multiple imaging devices. At any preset virtual image distance, each imaging device can capture the test point displayed on the screen of the near-eye display device, thereby obtaining the first image of the test point captured by each imaging device.
[0051] Figure 4 is a schematic diagram showing the distribution of multiple shooting devices provided in the embodiments of this application. As shown in Figure 4, Figure 4 shows the distribution of 13 shooting devices, which are shooting device "1", shooting device "2", shooting device "3", shooting device "4", shooting device "5", shooting device "6", shooting device "7", shooting device "8", shooting device "9", shooting device "10", shooting device "11", shooting device "12", and shooting device "13".
[0052] The distances between camera "2" and camera "1", the distances between camera "3" and camera "1", the distances between camera "4" and camera "1", and the distances between camera "5" and camera "1" are the same. The distances between camera "6", camera "7", camera "8", and camera "1" are the same. The distances between camera "10", camera "11", camera "12", and camera "13" are the same. The distance between camera "2" and camera "1" is less than the distance between camera "6" and camera "1", and the distance between camera "6" and camera "1" is less than the distance between camera "10" and camera "1".
[0053] The angle between the shooting device "1" and the near-eye display device in the vertical direction is 0 degrees; the angles between the shooting devices "2", "3", "4", and "5" and the near-eye display device in the vertical direction are the same. For example, the angle between the shooting device "2" and the near-eye display device in the vertical direction is 10°, the angle between the shooting device "3" and the near-eye display device in the vertical direction is 10°, the angle between the shooting device "4" and the near-eye display device in the vertical direction is 10°, and the angle between the shooting device "5" and the near-eye display device in the vertical direction is 10°.
[0054] The shooting devices "6", "7", "8", and "9" each have the same vertical angle with the near-eye display device. For example, the vertical angle between shooting device "6", shooting device "7", shooting device "8", and shooting device "9" is 15°.
[0055] The shooting devices “10”, “11”, “12” and “13” each have the same vertical angle with the near-eye display device. For example, the vertical angle between shooting device “10” and the near-eye display device is 22°, the vertical angle between shooting device “11” and the near-eye display device is 22°, the vertical angle between shooting device “12” and the near-eye display device is 22°, and the vertical angle between shooting device “13” and the near-eye display device is 22°.
[0056] Figure 5 is a schematic diagram of the first captured image obtained by the imaging device provided in the embodiment of this application. Referring to Figure 5, imaging devices "1", "2", "4", "10", and "12" respectively capture images of the test points displayed on the screen of the near-eye display device, obtaining the first captured image corresponding to each imaging device. For example, if the preset virtual image distance includes 19 virtual image distances, then imaging device "1" sequentially captures the test points displayed on the screen of the near-eye display device at each of the 19 virtual image distances, obtaining 19 first captured images corresponding to imaging device "1". At the 19 virtual image distances, if the test points displayed on the screen of the near-eye display device are captured using the 13 imaging devices shown in Figure 4, then according to 13*19=247, 247 first captured images can be obtained.
[0057] In at least one embodiment of this application, before the capturing device captures the test points displayed on the screen of the near-eye display device, the capturing device can also be calibrated. This embodiment, by calibrating the capturing device, can avoid the influence of the installation quality of the capturing device on the first captured image, thereby obtaining an accurate and realistic image.
[0058] In at least one embodiment of this application, upon detecting that the imaging device has completed capturing a test point displayed on the screen of the near-eye display device, the electronic device acquires a first captured image from the imaging device.
[0059] S202, determine the second image from the first image based on the clarity of the first image.
[0060] In at least one embodiment of this application, the sharpness of the first captured image can be calculated using a frequency domain modulation transfer function (MTF). In one embodiment, the first captured image with the highest sharpness can be selected as the second captured image from a plurality of first captured images. For example, with 19 virtual image distances, the 13 capturing devices in Figure 4 capture images of the test points displayed on the screen, resulting in 13*19=247 first captured images. The first captured image with the highest sharpness is then selected as the second captured image from these 247 images. As another example, with 19 virtual image distances, the 13 capturing devices in Figure 4 capture images of the test points displayed on the screen, resulting in 19 first captured images corresponding to each capturing device. The first captured image with the highest sharpness is then selected as the second captured image corresponding to each capturing device from these 19 first captured images.
[0061] In at least one embodiment of this application, an electronic device determines a second captured image from a first captured image based on the sharpness of the first captured image, including: calculating the sharpness of the first captured image using a frequency domain modulation transfer function, and determining the first captured image corresponding to the highest sharpness as the second captured image.
[0062] The calculation process for the sharpness of the first captured image can be as follows: A first signal is determined based on the image characteristics of the first captured image; the first signal is converted using optical simulation software to obtain a second signal; the sharpness of the first captured image is determined based on the maximum and minimum amplitude values in the second signal. The formula for calculating the sharpness of the first captured image can be MTF = (A... max -A min ) / (A max +A min MTF can represent the sharpness of the first captured image, A max A can represent the maximum amplitude value in the second signal. min It can represent the minimum amplitude value in the second signal.
[0063] The image features of the first captured image can be extracted using a preset model, which can be trained using training images. The convergence conditions of the preset model include, but are not limited to, the number of training iterations and the loss value of the preset model reaching a preset range. The electronic device encodes the first captured image based on its pixel values to obtain an encoded vector. The encoded vector is then convolved using the preset model to obtain the image features of the first captured image. The image features can be represented in vector or matrix form.
[0064] The method for determining the first signal includes: the electronic device maps the image features of the first captured image to the parameter space of a sinusoidal signal using a mapping function to obtain the first signal. Optical simulation software may include, but is not limited to, ZEMAX software and CODEV software.
[0065] This embodiment can accurately map the first signal using the image features of the first captured image, thereby improving the accuracy of the sharpness of the first captured image. Optical simulation software can quickly convert the first signal into a second signal, improving the determination efficiency of the second signal, and thus improving the determination efficiency of the sharpness of the first captured image.
[0066] S203, determine the standard position of the test point in the second captured image based on the preset virtual image distance corresponding to the second captured image.
[0067] In at least one embodiment of this application, the standard position can represent the coordinate information of the test point in the second captured image when the imaging center of the near-eye display device 30 is aligned with the optical axis center. The standard position corresponds to the horizontal and vertical coordinate information of the test point. The standard position is determined by: matching a corresponding standard image from a database based on a preset virtual image distance corresponding to the second captured image; and determining the pixel position of the test point in the standard image based on the display position of the test point on the screen, which is then used as the standard position of the test point in the second captured image. The database stores the correspondence between multiple preset virtual image distances and multiple images. For example, Figure 6 is a schematic diagram of the standard position and measurement position according to an embodiment of this application. Referring to Figure 6, the coordinate system in Figure 6 can be constructed based on the distance between any two pixels in the second captured image. If the display position of the test point on the screen is (0, 0), the pixel position of the test point in the standard image can be (0, 0). Therefore, the standard position of the test point in the second captured image can be (0, 0).
[0068] S204. Determine the detection result of the near-eye display device based on the measurement position and standard position of the test point in the second captured image.
[0069] In at least one embodiment of this application, the measurement position can be determined based on the pixel position of the test point in the second captured image. The measurement position corresponds to the coordinate information of the test point in the horizontal direction and the coordinate information in the vertical direction. The detection result includes a first offset angle, which is used to indicate the offset of the display screen in the near-eye display device.
[0070] In at least one embodiment of this application, the electronic device determines the detection result of the near-eye display device based on the measurement position and standard position corresponding to the test point in the second captured image, including: the electronic device determines a first offset of the test point in a first preset direction and a second offset in a second preset direction based on the measurement position and standard position, and calculates a first offset angle based on the first offset and the second offset.
[0071] The first preset direction can represent the horizontal direction, and the second preset direction can represent the vertical direction. The first offset can be determined based on the measurement position and standard position of the test point in the horizontal direction, and the second offset can be determined based on the measurement position and standard position of the test point in the vertical direction. For example, as shown in Figure 6, ΔX can represent the first offset, and ΔY can represent the second offset. The formula for calculating the first offset angle is: in, ΔX can represent the first offset angle, ΔY can represent the first offset amount, and ΔY can represent the second offset amount.
[0072] This embodiment can accurately quantify the offset of the display screen in a near-eye display device by combining the measurement position and standard position of the test point in the second captured image.
[0073] In another embodiment, if the second captured image includes second captured images corresponding to each of the multiple capturing devices, the electronic device can determine the initial offset angle of the near-eye display device for each capturing device based on the measurement position and standard position of the test point in each second captured image, and perform a weighted sum calculation on the initial offset angles to obtain the first offset angle. The calculation formula for the initial offset angle is the same as the calculation formula for the first offset angle described above, and will not be repeated in this embodiment. This embodiment, by combining the initial offset angles of multiple capturing devices, can to a certain extent eliminate the influence of the performance of the capturing devices on the first offset angle, thereby improving the accuracy of the first offset angle.
[0074] In at least one embodiment of this application, the electronic device calibrates the near-eye display device by rotating the display screen in the near-eye display device based on a first offset angle in the detection result. For example, Figure 7 is a schematic diagram of the rotation of the display screen in the near-eye display device provided in an embodiment of this application. Referring to Figure 7, the solid rectangle represents the display screen in the near-eye display device before calibration, the virtual rectangle represents the display screen in the near-eye display device after calibration, and the arrows indicate the rotation direction of the display screen. This embodiment calibrates the display screen in the near-eye display device by using a first offset angle, which can ensure the imaging clarity of the calibrated near-eye display device and improve the performance of the near-eye display device.
[0075] In several embodiments of this application, a first image of the test point displayed on the near-eye display device is acquired using multiple preset virtual image distances. Based on the clarity of the first image, a second image is determined, thus obtaining the second image corresponding to the near-eye display device under optimal optical performance. The preset virtual image distance corresponding to the second image allows determination of the standard position of the test point within the second image. By combining the standard position and the measured position, the offset of the near-eye display device under optimal optical performance can be determined, thereby facilitating the calibration of the near-eye display device and improving the user experience. Furthermore, since manual quality inspection is unnecessary, the problems of detection errors and low efficiency caused by manual judgment can be avoided.
[0076] Figure 8 shows a flowchart of a detection method for a near-eye display device according to another embodiment of this application, including the following steps:
[0077] S801 acquires the first captured image of the test point displayed on the near-eye display device based on multiple preset virtual image distances.
[0078] For details of step S801, please refer to the detailed description of step S201 in Figure 2 above, which will not be repeated here.
[0079] S802 determines the interpolated virtual image distance based on multiple preset virtual image distances and preset distances.
[0080] In at least one embodiment of this application, multiple preset virtual image distances and preset distances can be set and adjusted according to actual needs. The interpolated virtual image distance includes a first interpolated virtual image distance and a second interpolated virtual image distance. The first interpolated virtual image distance can be the sum of the smallest preset virtual image distance and the preset distance among multiple preset virtual image distances. The second interpolated virtual image distance can be the sum of the first interpolated virtual image distance and the preset distance. The difference between two adjacent interpolated virtual image distances is equal to the preset distance. For example, if the multiple preset virtual image distances include 0.995 meters and 1 meter, the preset distance is 10 millimeters, and the smallest preset virtual image distance is 0.99... The first interpolated virtual image distance can be the sum of the minimum preset virtual image distance and the preset distance, i.e., the first interpolated virtual image distance can be 0.995 + 0.001 = 0.996 meters. The second interpolated virtual image distance can be the sum of the first interpolated virtual image distance and the preset distance, i.e., the second interpolated virtual image distance can be 0.996 + 0.001 = 0.997 meters. The difference between two adjacent interpolated virtual image distances is equal to the preset distance. The second interpolated virtual image distance can also include 0.997 + 0.001 = 0.998 meters and 0.998 + 0.001 = 0.999 meters.
[0081] In another embodiment, the first interpolated virtual image distance can be the difference between the largest preset virtual image distance and a preset distance among a plurality of preset virtual image distances, and the second interpolated virtual image distance can be the difference between the first interpolated virtual image distance and the preset distance. The difference between two adjacent interpolated virtual image distances is equal to the preset distance. For example, if the plurality of preset virtual image distances include 0.995 meters, 1 meter, and the preset distance is 10 millimeters, and the largest preset virtual image distance is 1 meter, the first interpolated virtual image distance can be the difference between the largest preset virtual image distance and the preset distance. The first interpolated virtual image distance can be 1 - 0.001 = 0.999 meters, and the second interpolated virtual image distance can be the difference between the first interpolated virtual image distance and the preset distance, i.e., the second interpolated virtual image distance can be 0.999 - 0.001 = 0.998 meters. The difference between two adjacent interpolated virtual image distances is equal to the preset distance. The second interpolated virtual image distance can also include 0.998 - 0.001 = 0.997 meters and 0.997 - 0.001 = 0.996 meters.
[0082] S803, determine the target virtual image distance that is adjacent to the interpolated virtual image distance from multiple preset virtual image distances.
[0083] In at least one embodiment of this application, the number of target virtual image distances is greater than or equal to a preset number. The preset number can be set and adjusted according to actual needs; for example, the preset number can be set to 2. The target virtual image distance may include a preset virtual image distance whose absolute value of the difference between it and the interpolated virtual image distance is less than a preset difference. For example, if multiple preset virtual image distances include 0.990 meters, 0.995 meters, 1 meter, 1.005 meters, and 1.010 meters, and the interpolated virtual image distance is 0.996 meters, with a preset difference of 0.005 meters, the electronic device calculates the absolute value of the difference between each virtual image distance and the interpolated virtual image distance. The results show that the absolute value of the difference for a preset virtual image distance of 0.990 meters is 0.006, for 0.995 meters it is 0.001, for 1 meter it is 0.004, for 1.005 meters it is 0.009, and for 1.010 meters it is 0.014. Therefore, the target virtual image distances include 0.995 meters and 1 meter.
[0084] S804: Based on the first captured image corresponding to the target virtual image distance and the interpolated virtual image distance, an enhanced image is obtained.
[0085] In at least one embodiment of this application, the electronic device determines the weighted pixel value corresponding to each pixel point based on the pixel value of each pixel point in the first captured image corresponding to the target virtual image distance and the absolute value of the difference between the target virtual image distance and the interpolated virtual image distance. Based on the weighted pixel value corresponding to each pixel point, a simulated image corresponding to the interpolated virtual image distance is obtained, and the first captured image and the simulated image are determined as the enhanced image.
[0086] The weighted pixel value can be the weighted sum of the pixel values of corresponding pixels in the first captured image corresponding to multiple target virtual image distances. The weight of the first captured image corresponding to each target virtual image distance can be determined based on the absolute value of the difference between the target virtual image distance and the interpolated virtual image distance. The absolute value of the difference between the target virtual image distance and the interpolated virtual image distance is inversely proportional to the weight of the first captured image corresponding to the target virtual image distance. For example, the larger the weight of the first captured image corresponding to the target virtual image distance, the smaller the weight of the first captured image corresponding to the target virtual image distance.
[0087] For example, the target virtual image distance includes 0.995 meters and 1 meter, and the interpolated virtual image distance is 0.997 meters. The first captured image corresponding to a target virtual image distance of 0.995 meters includes 4 pixels: pixel a1, pixel b1, pixel c1, and pixel d1. The pixel value of pixel a1 is 0, the pixel value of pixel b1 is 1, the pixel value of pixel c1 is 1, and the pixel value of pixel d1 is 0. The weight of the first captured image corresponding to a target virtual image distance of 0.995 meters is 0.6. The first captured image corresponding to a target virtual image distance of 1 meter includes 4 pixels: pixel a2, pixel b2, pixel c2, and pixel d2. The pixel value of pixel a2 is 0, the pixel value of pixel b2 is 0, the pixel value of pixel c2 is 1, and the pixel value of pixel d2 is 1. The weight of the first captured image corresponding to a target virtual image distance of 0.997 meters is 0. The weight of each pixel is 0.4. Pixels a1 and a2 correspond, as do b1 and b2, c1 and c2, and d1 and d2. Therefore, the weighted pixel value of pixel a3 in the simulated image can be determined by weighting the pixel values of a1 and a2. The weighted pixel value of pixel a3 in the simulated image is: 0*0.6 + 0*0.4 = 0. Similarly, the weighted pixel values of pixel b3, c3, and d3 are: 1*0.6 + 0*0.4 = 0.6, 1*0.6 + 1*0.4 = 1, and 0*0.6 + 1*0.4 = 0.4.
[0088] This embodiment uses the pixel value of each pixel in the first captured image corresponding to the target virtual image distance to reasonably determine the weighted pixel value corresponding to each pixel. Based on the weighted pixel value corresponding to each pixel, a simulated image corresponding to the interpolated virtual image distance can be quickly obtained, thereby increasing the number of enhanced images.
[0089] S805 determines a second captured image from the enhanced image based on the sharpness of the enhanced image.
[0090] In at least one embodiment of this application, the way in which the electronic device determines the second captured image from the enhanced image based on the sharpness of the enhanced image is similar to the way in which the electronic device determines the second captured image from the first captured image based on the sharpness of the first captured image, and this will not be described again in the embodiments of this application.
[0091] S806, determine the standard position of the test point in the second captured image based on the preset virtual image distance corresponding to the second captured image.
[0092] S807 determines the detection result of the near-eye display device based on the measurement position and standard position of the test point in the second captured image.
[0093] For details of steps S806-S807, please refer to the detailed explanation of steps S203-S204 in Figure 2 above, which will not be repeated here.
[0094] This embodiment of the application, by combining the first captured image corresponding to the target virtual image distance and the interpolated virtual image distance, can accurately and quickly obtain enhanced images, thereby increasing the number of enhanced images. Since it does not require calling more imaging devices to acquire images, it can save on the performance overhead of the imaging devices. Because the number of enhanced images is greater than the number of first captured images, analyzing the enhanced images can improve the accuracy of the detection results, which is beneficial for more accurate calibration of near-eye display devices.
[0095] Figure 9 shows a flowchart of a detection method for a near-eye display device according to another embodiment of this application, including the following steps:
[0096] S901 uses an imaging device to acquire a third image of a test point displayed on a near-eye display device with different preset object distances.
[0097] In at least one embodiment of this application, the preset object distance indicates the distance between the lens and the display screen in the near-eye display device. An electronic device determines the position of the lens in the near-eye display device, and based on the lens position and the preset object distance, determines the target position corresponding to the display screen in the near-eye display device. It then controls the display screen in the near-eye display device to move to the target position, where the distance between the target position and the lens position is equal to the preset distance. The electronic device controls an imaging device to capture images of the test points displayed on the near-eye display device with the preset object distance, obtaining a third captured image. Please refer to Figure 10, which is a schematic diagram of the movement of the display screen in the near-eye display device provided in an embodiment of this application. The arrows shown in Figure 10 can represent the direction of movement of the display screen in the near-eye display device. If the display screen in the near-eye display device is moved according to the direction of movement in Figure 10, the preset object distance corresponding to the near-eye display device increases.
[0098] In at least one embodiment of this application, upon detecting that the imaging device has completed capturing a test point displayed on the screen of a near-eye display device with a preset object distance, the electronic device acquires a third captured image from the imaging device.
[0099] S902, based on the sharpness of the third captured image, determines the fourth captured image from the third captured image.
[0100] In at least one embodiment of this application, the way in which the electronic device determines the fourth image from the third image based on the clarity of the third image is similar to the way in which the electronic device determines the second image from the first image based on the clarity of the first image, and will not be described again in this application.
[0101] In at least one embodiment of this application, the electronic device may perform enhancement processing on the fourth captured image. The way the electronic device performs enhancement processing on the fourth captured image is similar to the way the electronic device obtains the enhanced image, and this application will not repeat the description.
[0102] S903, based on the target distance corresponding to the fourth captured image and the field of view of the capturing device corresponding to the fourth captured image, determine the second offset angle of the near-eye display device with the target distance.
[0103] In at least one embodiment of this application, the second offset angle is used to indicate the offset of the display screen in the near-eye display device. The first offset angle and the second offset angle respectively indicate the offset of the display screen in different directions.
[0104] In at least one embodiment of this application, the electronic device determines a second offset angle of the near-eye display device with the target object distance based on the target object distance corresponding to the fourth captured image and the field of view of the capturing device corresponding to the fourth captured image. This includes: the electronic device performing a weighted fitting on the target object distance based on the field of view to obtain a fitting plane, determining the plane vector of the fitting plane, and calculating the second offset angle based on the plane vector.
[0105] The fitting plane is obtained by using methods such as least squares analysis, principal component analysis (PCA), support vector machine (SVM), and Gaussian process regression (GPR) to perform weighted fitting of the target object distance using the field of view angle. Please refer to Figure 11, which is a schematic diagram of the fitting plane provided in this embodiment of the application. Figure 11 shows the fitting plane obtained by fitting the target object distance using the field of view angle and the target object distance.
[0106] The plane vector of the fitted plane can be the normal vector of the fitted plane, and the plane vector of the fitted plane can be a vector perpendicular to the fitted plane.
[0107] The formula for calculating the second offset angle is as follows: Where, θ x This can represent the second offset angle in the X-axis direction, θ. y It can represent the second offset angle in the Y-axis direction, a can represent the value of the plane vector in the X-axis direction, and b can represent the value of the plane vector in the X-axis direction.
[0108] This embodiment can quickly obtain the fitting plane by combining the field of view and the target distance, and then determine the second offset angle by the plane vector of the fitting plane.
[0109] In at least one embodiment of this application, the electronic device calibrates the near-eye display device based on a second offset angle and a target object distance. Specifically, the electronic device rotates the display screen in the near-eye display device using the second offset angle and moves the display screen or lens in the near-eye display device using the target object distance. Please refer to Figure 12, which is a schematic diagram of the second offset angle provided in this embodiment. Figure 12 shows the positional relationship between the lens and the display screen in the near-eye display device, and also shows the second offset angle of the display screen in the X-axis direction. This embodiment calibrates the near-eye display device using the second offset angle and the target object distance, ensuring that the imaging center of the calibrated near-eye display device is aligned with the optical axis center, and also ensuring the image clarity of the calibrated near-eye display device.
[0110] This embodiment utilizes an imaging device to acquire third images of test points displayed by near-eye display devices with different preset object distances. Based on the clarity of the third images, a fourth image is determined from them, thus obtaining the fourth image corresponding to the near-eye display device under optimal optical performance. By determining the target object distance corresponding to the fourth image and the field of view of the imaging device corresponding to the fourth image, the offset of the near-eye display device under optimal optical performance can be determined, which is beneficial for the calibration of the near-eye display device and improves the user experience. Furthermore, since no manual quality inspection is required, the problems of detection errors and low detection efficiency caused by manual judgment can be avoided.
[0111] Figure 13 shows a flowchart of a detection method for a near-eye display device according to another embodiment of this application, which includes the following steps:
[0112] S1301, based on multiple preset virtual image distances, acquires the first captured image of the test point displayed on the near-eye display device.
[0113] S1302, determine the second image from the first image based on the clarity of the first image.
[0114] S1303, determine the standard position of the test point in the second captured image based on the preset virtual image distance corresponding to the second captured image.
[0115] S1304. Determine the detection result of the near-eye display device based on the measurement position and standard position of the test point in the second captured image.
[0116] S1305 calibrates the near-eye display device by rotating the display screen in the near-eye display device based on the first offset angle in the detection result.
[0117] For details of steps S1301-S1305, please refer to the detailed description of steps S201-S204 in Figure 2 above, which will not be repeated here.
[0118] After step S1305 is completed, the electronic device executes steps S1306 and S1310.
[0119] S1306, using an imaging device to acquire a third image of a test point displayed on a near-eye display device with different preset object distances.
[0120] In at least one embodiment of this application, the near-eye display device with a different preset object distance can be the near-eye display device in step S1301. The near-eye display device with a different preset object distance can also be the calibrated near-eye display device in S1305.
[0121] S1307, determine the fourth image from the third image based on the clarity of the third image.
[0122] S1308, based on the target distance corresponding to the fourth captured image and the field of view of the capturing device corresponding to the fourth captured image, determine the second offset angle of the near-eye display device with the target distance.
[0123] S1309 calibrates the near-eye display device based on the second offset angle and the target object distance.
[0124] For details of steps S1306-S1309, please refer to the detailed description of steps S901-S903 in Figure 9 above. They will not be repeated here.
[0125] S1310, Determine the virtual image distance of the calibrated near-eye display device.
[0126] In at least one embodiment of this application, the calibrated near-eye display device can be the near-eye display device that has been calibrated in step S1305, and the calibrated near-eye display device can also be the near-eye display device that has been calibrated in step S1309.
[0127] In at least one embodiment of this application, the electronic device can determine the virtual image distance of the calibrated near-eye display device using autofocus technology. The electronic device can also determine the virtual image distance of the calibrated near-eye display device using temperature compensation technology. The electronic device can also determine the virtual image distance of the calibrated near-eye display device using other methods.
[0128] S1311, determine whether the virtual image distance of the calibrated near-eye display device meets the preset requirements.
[0129] In at least one embodiment of this application, the preset requirement may include a preset range, which can be set and adjusted according to actual needs. For example, the preset range may be [0.999 meters, 1.001 meters]. If the virtual image distance of the calibrated near-eye display device is within the preset range, it is determined that the virtual image distance of the calibrated near-eye display device meets the preset requirement, and step S1312 is executed; if the virtual image distance of the calibrated near-eye display device is not within the preset range, it is determined that the virtual image distance of the calibrated near-eye display device does not meet the preset requirement, and step S1301 or step S1306 is executed.
[0130] S1312, Generate prompt message.
[0131] In at least one embodiment of this application, a prompt message is used to indicate that the calibrated near-eye display device meets the assembly requirements.
[0132] This embodiment enables optical inspection of the near-eye display device before assembly by detecting the virtual image distance of the calibrated near-eye display device. This ensures that the assembled near-eye display device meets factory requirements and improves the user experience.
[0133] Figure 14 shows a functional block diagram of the detection device for a near-eye display device provided in an embodiment of this application. The detection device 11 for the near-eye display device includes an acquisition unit 110, a determination unit 111, a calibration unit 112, and a generation unit 113. The module / unit referred to in this application refers to a series of computer-readable instruction segments that can be acquired by a processor (e.g., processor 1501 shown in Figure 15) and can perform a fixed function, and which are stored in a memory (e.g., memory 1502 shown in Figure 15).
[0134] The acquisition unit 110 is used to acquire a first captured image of the test point displayed on the near-eye display device based on multiple preset virtual image distances; the determination unit 111 is used to determine a second captured image from the first captured image based on the clarity of the first captured image; the determination unit 111 is also used to determine the standard position of the test point in the second captured image based on the preset virtual image distance corresponding to the second captured image; the determination unit 111 is also used to determine the detection result of the near-eye display device based on the measurement position and standard position of the test point in the second captured image.
[0135] In one embodiment, the determining unit 111 is further configured to determine an interpolated virtual image distance based on a plurality of preset virtual image distances and a preset distance; the determining unit 111 is further configured to determine a target virtual image distance adjacent to the interpolated virtual image distance from the plurality of preset virtual image distances; the determining unit 111 is further configured to obtain an enhanced image based on a first captured image corresponding to the target virtual image distance and the interpolated virtual image distance.
[0136] In one embodiment, the determining unit 111 is specifically used to: calculate the sharpness of the first captured image through a frequency domain modulation transfer function; and determine the first captured image corresponding to the highest sharpness as the second captured image.
[0137] In one embodiment, the detection result includes a first offset angle. The determining unit 111 is specifically used to: determine a first offset of the test point in a first preset direction and a second offset in a second preset direction based on the measurement position and the standard position; and calculate the first offset angle based on the first offset and the second offset.
[0138] In one embodiment, the calibration unit 112 is used to calibrate the near-eye display device by rotating the display screen in the near-eye display device based on a first offset angle in the detection result.
[0139] In one embodiment, the near-eye display device includes a lens and a display screen. The acquisition unit 110 is further configured to acquire a third captured image of a test point displayed by the near-eye display device with different preset object distances using an imaging device. The preset object distance indicates the distance between the lens and the display screen. The determination unit 111 is further configured to determine a fourth captured image from the third captured image based on the clarity of the third captured image. The determination unit 111 is further configured to determine a second offset angle of the near-eye display device with the target object distance based on the target object distance corresponding to the fourth captured image and the field of view angle of the imaging device corresponding to the fourth captured image.
[0140] In one embodiment, the determining unit 111 is specifically used for: performing a weighted fitting of the target object distance based on the field of view angle to obtain a fitting plane; determining the plane vector of the fitting plane; and calculating the second offset angle based on the plane vector.
[0141] In one embodiment, the calibration unit 112 is also used to calibrate the near-eye display device based on the second offset angle and the target object distance.
[0142] In one embodiment, the determining unit 111 is further configured to determine the virtual image distance of the calibrated near-eye display device; the generating unit 113 is configured to generate a prompt message if the virtual image distance of the calibrated near-eye display device meets the preset requirements, the prompt message being used to prompt that the calibrated near-eye display device meets the assembly requirements.
[0143] In several embodiments of this application, a first image of the test point displayed on the near-eye display device is acquired using multiple preset virtual image distances. Based on the clarity of the first image, a second image is determined, thus obtaining the second image corresponding to the near-eye display device under optimal optical performance. The preset virtual image distance corresponding to the second image allows determination of the standard position of the test point within the second image. By combining the standard position and the measured position, the offset of the near-eye display device under optimal optical performance can be determined, thereby facilitating the calibration of the near-eye display device and improving the user experience. Furthermore, since manual quality inspection is unnecessary, the problems of detection errors and low efficiency caused by manual judgment can be avoided.
[0144] Figure 15 shows a schematic diagram of the structure of an electronic device that implements the detection method for near-eye display devices according to the present application.
[0145] In one embodiment of this application, the electronic device 10 includes, but is not limited to, a memory 1502, a processor 1501, and a computer program stored in the memory 1502 and executable on the processor 1501, such as a detection program for a near-eye display device.
[0146] Those skilled in the art will understand that the schematic diagram is merely an example of the electronic device 10 and does not constitute a limitation on the electronic device 10. It may include more or fewer components than shown, or combine certain components, or different components. For example, the electronic device 10 may also include input / output devices, network access devices, buses, etc.
[0147] Processor 1501 can be a Central Processing Unit (CPU), or other general-purpose processors, digital signal processors (DSPs), application-specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor or any conventional processor. Processor 1501 is the computational core and control center of electronic device 10, connecting various parts of electronic device 10 through various interfaces and lines, and acquiring the operating system of electronic device 10 and various installed application programs and program code.
[0148] The processor 1501 acquires the operating system and various installed applications of the electronic device 10. The processor 1501 acquires the applications to implement the steps in the various near-eye display device detection method embodiments described above, such as the steps shown in FIG2.
[0149] For example, a computer program may be divided into one or more modules / units, one or more of which are stored in memory 1502 and retrieved by processor 1501 to complete this application. One or more modules / units may be a series of computer program instruction segments capable of performing a specific function, which describe the process of retrieving the computer program from electronic device 10.
[0150] The memory 1502 can be used to store computer programs and / or modules. The processor 1501 implements various functions of the electronic device 10 by running or retrieving the computer programs and / or modules stored in the memory 1502, and by calling the data stored in the memory 1502. The memory 1502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 1502 may include non-volatile memory, such as hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other non-volatile solid-state storage device.
[0151] The memory 1502 can be the external memory and / or internal memory of the electronic device 10. Furthermore, the memory 1502 can be a memory in physical form, such as a memory stick, a TF card (Trans-flash Card), etc.
[0152] If the modules / units integrated in the electronic device 10 are implemented as software functional units and sold or used as independent workpieces, they can be stored in a computer-readable storage medium. Based on this understanding, all or part of the processes in the methods of the above embodiments can also be implemented by instructing related hardware through computer-readable instructions. The computer-readable instructions can be stored in a computer-readable storage medium, and when executed by a processor, they can implement the steps of the various method embodiments described above.
[0153] Computer-readable instructions include computer-readable instruction code, which can be in the form of source code, object code, executable files, or certain intermediate forms. Computer-readable media can include: any entity or device capable of carrying computer-readable instruction code, recording media, USB flash drives, portable hard drives, magnetic disks, optical disks, computer memory, read-only memory (ROM), and random access memory (RAM).
[0154] The memory 1502 can be used to store computer-readable instructions and / or modules. The processor 1501 implements various functions of the electronic device 10 by running or executing the computer-readable instructions and / or modules stored in the memory 1502 and by calling the data stored in the memory 1502. The memory 1502 may mainly include a program storage area and a data storage area. The program storage area may store the operating system, application programs required for at least one function (such as sound playback function, image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. The memory 1502 may include non-volatile and volatile memory, such as: hard disk, memory, plug-in hard disk, smart media card (SMC), secure digital (SD) card, flash card, at least one disk storage device, flash memory device, or other storage devices.
[0155] For example, computer-readable instructions can be divided into one or more modules / units, one or more of which are stored in memory 1502 and executed by processor 1501 to complete this application. One or more modules / units can be a series of computer-readable instruction segments capable of performing a specific function, which describe the execution process of the computer-readable instructions in electronic device 10. For example, the computer-readable instructions can be divided into an acquisition unit 110, a determination unit 111, a calibration unit 112, and a generation unit 113.
[0156] For detailed information on the functions of each module / unit, please refer to the detailed descriptions in Figures 2, 8, 9, and 13 above. They will not be repeated here.
[0157] In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods can be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative; for instance, the division of modules is only a logical functional division, and other division methods may be used in actual implementation.
[0158] The modules described as separate components may or may not be physically separate. The components shown as modules may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs.
[0159] Furthermore, the functional modules in the various embodiments of this application can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or in the form of hardware plus software functional modules.
[0160] Therefore, the embodiments should be considered exemplary and non-limiting in all respects, and the scope of this application is defined by the appended claims rather than the foregoing description. Thus, all variations falling within the meaning and scope of equivalents of the claims are intended to be embraced within this application. No appended diagram markings in the claims should be construed as limiting the scope of the claims.
[0161] Furthermore, it is clear that the word "including" does not exclude other units or steps, and the singular does not exclude the plural. Multiple units or devices can also be implemented by a single unit or device through software or hardware. Terms such as "first," "second," etc., are used to indicate names and do not indicate any specific order.
[0162] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application and are not intended to limit it. Although this application has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications or equivalent substitutions can be made to the technical solutions of this application without departing from the spirit and scope of the technical solutions of this application.
Claims
1. A method for detecting near-eye display devices, characterized in that, The method includes: Based on multiple preset virtual image distances, the first captured image of the test point displayed on the near-eye display device is obtained; Based on the clarity of the first captured image, a second captured image is determined from the first captured image; Based on the preset virtual image distance corresponding to the second captured image, determine the standard position of the test point in the second captured image; The detection result of the near-eye display device is determined based on the measurement position of the test point in the second captured image and the standard position.
2. The detection method for near-eye display devices as described in claim 1, characterized in that, The method further includes: The interpolated virtual image distance is determined based on the multiple preset virtual image distances and preset distances; Determine the target virtual image distance that is adjacent to the interpolated virtual image distance from the plurality of preset virtual image distances; An enhanced image is obtained based on the first captured image corresponding to the target virtual image distance and the interpolated virtual image distance.
3. The detection method for near-eye display devices as described in claim 1, characterized in that, Determining the second image from the first captured image based on the clarity of the first captured image includes: The sharpness of the first captured image is calculated using the frequency domain modulation transfer function; The first image with the highest resolution is selected as the second image.
4. The detection method for near-eye display devices as described in claim 1, characterized in that, The detection result includes a first offset angle. Determining the detection result of the near-eye display device based on the measurement position of the test point in the second captured image and the standard position includes: Based on the measurement position and the standard position, determine the first offset of the test point in the first preset direction and the second offset in the second preset direction; The first offset angle is calculated based on the first offset and the second offset.
5. The detection method for near-eye display devices as described in claim 1, characterized in that, The method further includes: Based on the first offset angle in the detection result, the near-eye display device is calibrated by rotating the display screen in the near-eye display device.
6. The detection method for a near-eye display device as described in claim 1 or 5, characterized in that, The near-eye display device includes a lens and a display screen, and the method further includes: A third image of a test point displayed on a near-eye display device with different preset object distances is acquired using an imaging device, wherein the preset object distance indicates the distance between the lens and the display screen; Based on the clarity of the third captured image, a fourth captured image is determined from the third captured image; Based on the target distance corresponding to the fourth captured image and the field of view of the capturing device corresponding to the fourth captured image, the second offset angle of the near-eye display device with the target distance is determined.
7. The detection method for near-eye display devices as described in claim 6, characterized in that, The step of determining the second offset angle of the near-eye display device having the target object distance based on the target object distance corresponding to the fourth captured image and the field of view of the capturing device corresponding to the fourth captured image includes: Based on the field of view, a weighted fit is performed on the target object distance to obtain the fitting plane; Determine the plane vector of the fitted plane; The second offset angle is calculated based on the plane vector.
8. The detection method for near-eye display devices as described in claim 6, characterized in that, The method further includes: The near-eye display device is calibrated based on the second offset angle and the target object distance.
9. The detection method for a near-eye display device as described in claim 5 or 8, characterized in that, The method further includes: Determine the virtual image distance of the calibrated near-eye display device; If the virtual image distance of the calibrated near-eye display device meets the preset requirements, a prompt message is generated. The prompt message is used to indicate that the calibrated near-eye display device meets the assembly requirements.
10. An electronic device, characterized in that, include: Memory, which stores computer-readable instructions; and The processor executes computer-readable instructions stored in the memory to implement the detection method for a near-eye display device as described in any one of claims 1 to 9.