Virtual Image Distance Detection Method for Electronic Devices
By setting the camera in AR and VR devices, detecting clarity and field of view angles, and establishing a virtual image distance relationship curve, the problem of difficulty in virtual image distance detection is solved, the device consistency and user experience are improved, and vision health is protected.
Patent Information
- Application Number
- CN202210500884.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-05-09
- Publication Date
- 2025-07-29
- Estimated Expiration
- 2042-05-09
AI Technical Summary
The existing technology lacks effective virtual image distance adjustment detection methods, resulting in poor consistency in mass production of AR and VR products, and users experience dizziness and vision loss after long-term use.
A virtual image distance detection method for electronic devices is provided. By setting a camera at different positions in front of the target, shooting patterns of standard parts and samples, detecting clarity and field of view angle, establishing a relationship curve between clarity and distance, and determining the virtual image distance.
Improve the processing accuracy of electronic devices, avoid fluctuations in virtual image distances, improve user experience, reduce dizziness, and ensure healthy vision.
Smart Images

Figure CN115103177B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of electronic device detection, and particularly to a method for detecting the virtual image distance of an electronic device. Background Art
[0002] Currently, the AR and VR industries are booming. There are problems with the consistency of virtual image distances in consumer-grade AR and VR products, which can cause users to feel dizzy after long-term use. The main reason for the poor consistency is the lack of effective virtual image distance alignment and detection means in the mass production process. Moreover, there is a lack of professional equipment for measuring virtual image distances on the market, and it is difficult to meet the requirements of rapid mass production detection. Therefore, the quality of such augmented reality electronic devices varies, and virtual image distance fluctuations may occur during use. If the binocular tolerance is too large, it will lead to a too large difference in the left and right focusing distances, affecting the user experience and even causing a decrease in vision in severe cases. Summary of the Invention
[0003] The purpose of the present invention is to overcome the defects of the prior art and provide a method for detecting the virtual image distance of an electronic device, which solves the problem of difficult detection of the virtual image distance of an electronic device. By detecting the virtual image distance of the electronic device, virtual image distance fluctuations can be avoided, the processing accuracy can be improved, the user experience can be enhanced, the dizziness caused by long-term use by users can be avoided as much as possible, and the visual health of users can be guaranteed.
[0004] The technical solution for achieving the above purpose is as follows:
[0005] The present invention provides a method for detecting the virtual image distance of an electronic device, including the following steps:
[0006] Provide a target, a camera, and a standard part. Set the camera at different distances in front of the target in sequence. After focusing the camera, place the standard part in front of the camera lens and use the camera to capture the pattern displayed on the standard part to form an image corresponding to the distance. Detect the clarity of the image, calculate the field of view angle of the camera, and thus obtain the relationship curve between clarity and distance and the relationship curve between field of view angle and distance;
[0007] Among them, the relationship curve between clarity and distance is non-linear;
[0008] Provide a sample, place the sample in front of the camera, focus the camera, lock the focus ring of the camera, and record the field of view angle of the camera. Then remove the sample;
[0009] Place the standard part in front of the camera lens and use the camera to capture the pattern displayed on the standard part to form a corresponding test image. Detect the clarity of the test image;
[0010] Determine the corresponding virtual image distance according to the clarity of the test image, the recorded field of view angle, the relationship curve between clarity and distance, and the relationship curve between the field of view angle and distance, including:
[0011] Obtain two corresponding distances according to the clarity of the test image and the relationship curve between clarity and distance;
[0012] Obtain the corresponding distance from the two corresponding distances as the virtual image distance of the sample according to the recorded field of view angle and the relationship curve between the field of view angle and distance.
[0013] The present invention proposes a method for detecting the virtual image distance of an electronic device. By setting cameras at different positions in front of a target, after focusing the cameras, placing a standard part in front of the camera lenses and using the cameras to capture the patterns displayed by the standard part and detecting the clarity of the captured images, the relationship curve between clarity and distance is obtained. Then, the sample is placed in front of the camera, the camera is focused and the focus ring is locked, and then the sample is removed. The standard part is placed in front of the camera, and the camera is used to capture the pattern displayed by the standard part to form a corresponding test image. The clarity of the test image is detected, and the corresponding distance is obtained according to the relationship curve. This distance is the virtual image distance of the sample, solving the problem of difficult detection of the virtual image distance of the electronic device. By detecting the virtual image distance of the electronic device, the fluctuation of the virtual image distance is avoided, the processing accuracy is improved, the user experience is enhanced, the dizziness feeling caused by long-term use of the user is avoided as much as possible, and the visual health of the user is guaranteed.
[0014] A further improvement of the method for detecting the virtual image distance of the electronic device according to the present invention is that the cameras are sequentially set at different distances in front of the target. After focusing the cameras, the standard part is placed in front of the camera lenses and the cameras are used to capture the patterns displayed by the standard part to form images corresponding to the distances, and the clarity of the images is detected, and the field of view angle of the cameras is calculated, so as to obtain the relationship curve between clarity and distance and the relationship curve between the field of view angle and distance, including:
[0015] S11. Set a number of points at intervals along a straight line perpendicular to the target on the ground, place the camera at the point closest to the target and the camera lens facing the target;
[0016] S12. After focusing the camera, place the standard part in front of the camera lens and capture the pattern displayed by the standard part to form an image corresponding to this point, detect the clarity of the image, and calculate the field of view angle of the camera;
[0017] S13. Move the camera to the next point;
[0018] Loop steps S12 to S13 to obtain the relationship curve between clarity and distance and the relationship curve between the field of view angle and distance.
[0019] A further improvement of the virtual image distance detection method for the electronic device of the present invention is that it further includes:
[0020] Providing a rangefinder, fixing the rangefinder on the top of the camera to detect the distance between the camera and the target.
[0021] A further improvement of the virtual image distance detection method for the electronic device of the present invention is that when the sample is placed in front of the camera and the camera is focused, it further includes:
[0022] Adjusting the focal length of the camera until the clarity of the image formed by the pattern displayed by the sample photographed by the camera is maximized.
[0023] A further improvement of the virtual image distance detection method for the electronic device of the present invention is that when the standard part is placed in front of the lens of the camera and the camera is used to photograph the pattern displayed by the standard part to form a corresponding test image, it includes:
[0024] Adjusting the focal length of the camera until the clarity of the image formed by the pattern displayed by the standard part photographed by the camera is maximized.
[0025] A further improvement of the virtual image distance detection method for the electronic device of the present invention is that the standard part is an AR or VR glasses.
[0026] A further improvement of the virtual image distance detection method for the electronic device of the present invention is that the sample is an AR or VR glasses to be tested.
[0027] A further improvement of the virtual image distance detection method for the electronic device of the present invention is that the clarity of the image is detected by Open CV. Description of the Drawings
[0028] Figure 1 It is a flowchart of the virtual image distance detection method for the electronic device of the present invention.
[0029] Figure 2 It is a schematic diagram of the virtual image distance detection method for the electronic device of the present invention.
[0030] Figure 3 It is a relationship curve graph of clarity and distance in the virtual image distance detection method for the electronic device of the present invention.
[0031] Figure 4 It is a relationship curve graph of field of view angle and distance in the virtual image distance detection method for the electronic device of the present invention. Detailed Embodiments
[0032] The present invention will be further described below in conjunction with the drawings and specific embodiments.
[0033] The present invention provides a method for detecting the virtual image distance of an electronic device, which is achieved by arranging cameras at different positions in front of a target, focusing the camera, placing a standard part in front of the camera lens, using the camera to shoot a pattern displayed by the standard part, and detecting the clarity of the captured image, thereby obtaining a relationship curve between clarity and distance, and then placing a sample in front of the camera, focusing the camera and locking the focus ring, removing the sample, placing the standard part in front of the camera, using the camera to shoot a pattern displayed by the standard part to form a corresponding test image, detecting the clarity of the test image, and obtaining a corresponding distance according to the relationship curve, which is the virtual image distance of the sample, thereby solving the problem of difficulty in detecting the virtual image distance of the electronic device. By detecting the virtual image distance of the electronic device, fluctuations in the virtual image distance are avoided, processing accuracy is improved, user experience is improved, and dizziness caused by long-term use by the user is avoided as much as possible, thereby ensuring the user's vision health. The virtual image distance detection method of the electronic device of the present invention is described below with reference to the accompanying drawings.
[0034] See Figure 1 , Figure 1 Flowchart of the method for detecting virtual image distance of electronic equipment of the present invention. Figure 1 , the virtual image distance detection method of the electronic device of the present invention is described.
[0035] like Figure 1 and Figure 2 As shown, the present invention provides a method for detecting the virtual image distance of an electronic device, comprising the following steps:
[0036] A target 11, a camera 12, and a standard component are provided. The camera 12 is sequentially positioned at different distances in front of the target 11. After focusing the camera 12, the standard component is placed in front of the lens of the camera 12. The camera 12 is used to capture the pattern displayed on the standard component and the target 11 to form an image at the corresponding distance. The clarity of the image is tested, and the field of view angle of the camera 12 is calculated to obtain a curve showing the relationship between clarity and distance and a curve showing the relationship between field of view angle and distance.
[0037] Provide a sample, place the sample in front of the camera 12, focus the camera 12, lock the focus ring of the camera 12, record the field of view of the camera 12, and remove the sample;
[0038] Place the standard part in front of the camera 12, use the camera 12 to shoot the pattern displayed by the standard part to form a corresponding test image, and check the clarity of the test image;
[0039] The corresponding distance is obtained according to the clarity of the test image and the relationship curve, and this distance is the virtual image distance of the sample.
[0040] Preferably, after the relationship curve is obtained, the virtual image of the glasses can be used to replace the target and the standard part, thus avoiding the steps of installing and removing the standard part when testing the sample.
[0041] Specifically, when placing the sample in front of the camera 12 and focusing the camera 12, it further includes:
[0042] Adjust the focal length of the camera 12 until the clarity of the image formed by the pattern displayed by the sample captured by the camera is maximized.
[0043] Specifically, when placing the standard part in front of the lens of the camera 12, it further includes:
[0044] Adjust the focal length of the camera 12 until the clarity of the image formed by the pattern displayed by the standard part captured by the camera 12 is maximized.
[0045] Preferably, the standard part is an AR or VR glasses.
[0046] More preferably, the sample is an AR or VR glasses to be tested.
[0047] Specifically, detect the clarity of the image through Open CV.
[0048] As a preferred embodiment of the present invention, it further includes:
[0049] Record the field of view angles of the camera 12 at different distances in front of the target 11, so as to obtain the relationship curve between the field of view angle and the distance;
[0050] When using the camera 12 to capture the pattern displayed by the sample, record the field of view angle of the camera 12;
[0051] Determine the corresponding virtual image distance according to the clarity of the test image, the field of view angle, the relationship curve between clarity and distance, and the relationship curve between the field of view angle and the distance.
[0052] Specifically, as shown in Figure 3 and Figure 4 , the relationship curve between clarity and distance is non-linear. Therefore, according to the clarity, two corresponding distances are likely to be obtained, that is, the clarity C0 corresponds to the two distances L1 and L2. It further includes:
[0053] Obtain two corresponding distances according to the clarity of the test image and the relationship curve between clarity and distance;
[0054] Obtain the corresponding distance according to the field of view angle of the camera 12 when capturing the pattern displayed by the sample and the relationship curve between the field of view angle and the distance. This distance is the virtual image distance of the sample.
[0055] Furthermore, when obtaining the relationship curve between clarity and distance, it further includes:
[0056] S11. Set a number of points at intervals along a straight line perpendicular to the target 11 on the ground, place the camera 12 at the point closest to the target 11 and the lens of the camera 12 facing the target;
[0057] After focusing the camera 12, place the standard part in front of the lens of the camera 12 and capture the pattern shown on the standard part to form an image corresponding to this point position, detect the clarity of the image, and calculate the field of view angle of the camera 12.
[0058] Move the camera 12 to the next point position.
[0059] Loop through steps S12 - S13 until the camera 12 is at the point position farthest from the target 11, thereby obtaining the relationship curve between clarity and distance and the relationship curve between field of view angle and distance.
[0060] Specifically, it further includes:
[0061] Provide a rangefinder 13, fix the rangefinder 13 on the top of the camera 12 to detect the distance between the camera 12 and the target 11.
[0062] The specific implementation manner of the present invention is as follows:
[0063] Set several point positions at intervals along a straight line perpendicular to the target on the bottom surface. Several point positions can be set within the range of 0 - 5 m in front of the target. Place the camera at the point position closest to the target with the camera lens facing the target. After focusing the camera, place the standard part in front of the camera lens and capture the pattern shown on the standard part to form an image corresponding to this point position, detect the clarity of this image, and calculate the field of view angle of the camera at this time. The rangefinder can be used to measure the distance between the camera and the target at this time, and this distance is the virtual image distance. Move the camera to the next point position, and loop through the above steps until the camera is at the point position farthest from the target, thereby obtaining the relationship curve between clarity and distance, as Figure 3 shown, and obtain the relationship curve between field of view angle and distance, as Figure 4 shown;
[0064] Remove the standard part, place the sample in front of the camera. At this time, the camera can be at any position within 5 m in front of the target. Use the camera to capture the pattern shown on the sample and focus the camera, lock the focus ring of the camera, remove the sample, place the standard part in front of the camera, use the camera to capture the pattern shown on the standard part to form a corresponding test image, detect the clarity of the test image, obtain the clarity C0 of the test image, and calculate the field of view angle FOV of the camera at this time.
[0065] It is possible to find the distance L0 when the clarity is the maximum in the relationship curve between clarity and distance, and find the field of view angle F0 corresponding to the distance L0 in the relationship curve between field of view angle and distance. Since the relationship curve between clarity and distance is non - linear, there are likely two distances corresponding to the clarity C0, which are L1 and L2 respectively. At this time, compare the field of view angle FOV with F0. If FOV is greater than F0, it means that the virtual image distance corresponding to this sample is L2. If FOV is less than F0, it means that the virtual image distance corresponding to this sample is L1;
[0066] That is to say, the distance corresponding to the clarity can be obtained first through the relationship curve between clarity and distance. If there are two corresponding distances, further confirmation can be carried out through the relationship curve between the field of view angle and the distance, and which one of the two distances is determined by the size of the field of view angle. Then the finally obtained distance is the virtual image distance of the sample.
[0067] The present invention has been described in detail above in conjunction with the embodiments with reference to the drawings. Those of ordinary skill in the art can make various variations of the present invention according to the above description. Therefore, certain details in the embodiments should not constitute a limitation to the present invention, and the protection scope of the present invention will be defined by the scope defined in the appended claims.
Claims
1. A method for detecting the virtual image distance of an electronic device, characterized in that, It includes the following steps: Provide a target, a camera and a standard component. Place the camera at different distances in front of the target in sequence. After focusing the camera, place the standard component in front of the camera lens and use the camera to capture the pattern displayed by the standard component to form an image corresponding to the distance. Detect the clarity of the image, calculate the field of view angle of the camera, so as to obtain the relationship curve between clarity and distance and the relationship curve between field of view angle and distance; Among them, the relationship curve between clarity and distance is non-linear; Provide a sample. Place the sample in front of the camera, focus the camera, lock the focus ring of the camera, and record the field of view angle of the camera. Remove the sample; Place the standard component in front of the camera lens and use the camera to capture the pattern displayed by the standard component to form a corresponding test image. Detect the clarity of the test image; Determine the corresponding virtual image distance according to the clarity of the test image, the recorded field of view angle, the relationship curve between clarity and distance, and the relationship curve between field of view angle and distance, including: Obtain two corresponding distances according to the clarity of the test image and the relationship curve between clarity and distance; Obtain the corresponding distance from the two corresponding distances according to the recorded field of view angle and the relationship curve between field of view angle and distance as the virtual image distance of the sample.
2. The virtual image distance detection method for the electronic device according to claim 1, characterized in that, The step of placing the camera at different distances in front of the target in sequence, after focusing the camera, placing the standard component in front of the camera lens and using the camera to capture the pattern displayed by the standard component to form an image corresponding to the distance, detecting the clarity of the image, calculating the field of view angle of the camera, so as to obtain the relationship curve between clarity and distance and the relationship curve between field of view angle and distance, includes: S11. Set several points at intervals along a straight line perpendicular to the target on the ground. Place the camera at the point closest to the target and the camera lens facing the target; S12. After focusing the camera, place the standard component in front of the camera lens and capture the pattern displayed by the standard component to form an image corresponding to the point. Detect the clarity of the image and calculate the field of view angle of the camera; S13. Move the camera to the next point; Loop steps S12 - S13 to obtain the relationship curve between clarity and distance and the relationship curve between field of view angle and distance.
3. The virtual image distance detection method for the electronic device according to claim 1 or 2, characterized in that It also includes: Provide a rangefinder and fix the rangefinder on the top of the camera to detect the distance between the camera and the target.
4. The virtual image distance detection method for the electronic device according to claim 1, wherein, Place the sample in front of the camera and focus the camera. It also includes: Adjust the focal length of the camera until the clarity of the image formed by the camera capturing the pattern displayed by the sample is the maximum.
5. The virtual image distance detection method of the electronic device according to claim 1, characterized in that, Place the standard component in front of the camera lens and use the camera to capture the pattern displayed by the standard component to form a corresponding test image, including: Adjust the focal length of the camera until the clarity of the image formed by the camera capturing the pattern displayed by the standard component is the maximum.
6. The method for detecting the virtual image distance of an electronic device according to claim 1, wherein: The standard component is an AR or VR glasses.
7. The method for detecting the virtual image distance of an electronic device according to claim 1, wherein: The sample is an AR or VR glasses to be tested.
8. The virtual image distance detection method of the electronic device according to claim 1, characterized in that Detect the clarity of the image through Open CV.
Citation Information
Patent Citations
Virtual image distance measuring system and virtual image distance measuring determining method
CN108362479A
Virtual image distance detection tool, calibration method thereof and virtual image distance detection method
CN112326205A