Virtual image distance testing method, device and system and storage medium

By continuously moving the sampled image in the virtual image distance test system using the moving mechanism and the camera mechanism to continuously move the virtual image distance, the virtual image distance is determined based on the image clarity data, and the problems of low measurement efficiency and poor accuracy in the prior art are solved, and fast and accurate virtual image distance measurement is achieved.

CN119756289AInactive Publication Date: 2025-04-04ZHUHAI BOJAY ELECTRONICS
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202411902340.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-23
Publication Date
2025-04-04
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

In the prior art, virtual image distance measurement is susceptible to noise interference, has low testing efficiency, and is difficult to accurately evaluate virtual image location.

Method used

By introducing a moving mechanism and an imaging mechanism into the virtual image distance testing system, the imaging mechanism is controlled to continuously move and capture a sampled image, and the moving coordinates and virtual image distance are determined based on the image clarity data.

Benefits of technology

Fast and accurate virtual image distance measurement is achieved, testing efficiency is improved, noise interference is reduced, and measurement accuracy is enhanced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119756289A_ABST
    Figure CN119756289A_ABST
Patent Text Reader

Abstract

The invention discloses a virtual image distance testing method, device and system and a storage medium, and the method comprises the steps: controlling a moving mechanism to enable a camera mechanism to continuously move from a first working position to a second working position, and enabling a connection line direction between the first working position and the second working position to point to a target product; in the continuous moving process of the camera shooting mechanism, the camera shooting mechanism is controlled to conduct continuous shooting, sampled images obtained through shooting are stored in a preset data queue frame by frame, and the sampled images comprise images, obtained through the target product, of the test graphic card; when it is detected that the data queue is not empty, definition data of each frame of sampling image in the data queue is determined based on the storage sequence; determining a maximum value or a maximum value of the definition according to the definition data of all the sampling images; and determining at least one of the moving coordinate of the moving mechanism and the virtual image distance of the target product according to the maximum value or the maximum value. According to the invention, virtual image distance measurement can be rapidly and accurately carried out.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automation equipment, and in particular to a virtual image distance testing method, device, system and storage medium. Background Art

[0002] Virtual image distance measurement is a common test method for optical products (such as VR / AR products). In related technologies, virtual image distance measurement usually compares the current round of test data with the existing calibration data. If the two sets of data are consistent, it is considered that the current virtual image distance has been found and used as output. However, since the measurement only makes a data judgment once, it is easily affected by noise, and the virtual image position is difficult to evaluate, resulting in low test efficiency. Summary of the invention

[0003] The present invention aims to solve at least one of the technical problems existing in the prior art. To this end, the present invention provides a virtual image distance testing method, device, system and storage medium, which can quickly and accurately measure the virtual image distance.

[0004] On the one hand, an embodiment of the present invention provides a virtual image distance testing method, which is applied to a virtual image distance testing system having a moving mechanism, a camera mechanism and a test chart, and the virtual image distance testing method includes: Controlling the moving mechanism to continuously move the camera mechanism from a first working position to a second working position, wherein a direction of a line between the first working position and the second working position points to a target product; During the continuous movement of the camera mechanism, the camera mechanism is controlled to continuously shoot, and the sampled images obtained by shooting are stored frame by frame in a preset data queue, wherein the sampled images include images of the test chart obtained through the target product; When it is detected that the data queue is not empty, determining the definition data of each frame of the sampled image in the data queue based on the storage order; Determine the maximum or local value of the clarity according to the clarity data of all the sampled images; At least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product is determined based on the maximum value or the local maximum value.

[0005] According to some embodiments of the present invention, determining the definition data of each frame of the sampled image in the data queue based on the storage order includes: Based on the storage order, taking out a frame of the sampled image from the data queue to obtain a target sampled image; Performing frequency domain conversion on the target sampling image to obtain a frequency domain image; The clarity is calculated according to the frequency domain image to obtain clarity data of a frame of the sampled image.

[0006] According to some embodiments of the present invention, controlling the moving mechanism to continuously move the camera mechanism from the first working position to the second working position includes: The moving mechanism is controlled to continuously move the camera mechanism from the first working position to the second working position, and the moving coordinates of the moving mechanism are acquired and stored in real time to obtain a moving coordinate data set.

[0007] According to some embodiments of the present invention, determining at least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product according to the maximum value or the local maximum value comprises: Determining the shooting time of the sampled image according to the maximum value or the local maximum value; The movement coordinates of the moving mechanism are determined according to the shooting time and the movement coordinate data set.

[0008] According to some embodiments of the present invention, determining at least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product according to the maximum value or the local maximum value further includes: The virtual image distance of the target product is determined according to the moving coordinates of the moving mechanism.

[0009] According to some embodiments of the present invention, determining the maximum or maximum value of clarity based on the clarity data of all the sampled images includes: Performing data fitting according to the clarity data of all the sampled images to obtain clarity fitting data; A maximum value or a maximum value operation is performed on the definition fitting data to determine the maximum value or the maximum value of the definition.

[0010] According to some embodiments of the present invention, determining at least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product according to the maximum value or the local maximum value comprises: Determine an approximate value in the definition data of all the sampled images according to the maximum value or the local maximum value; Determining the shooting time of the sampled image according to the approximate value; The movement coordinates of the moving mechanism are determined according to the shooting time and the movement coordinate data set.

[0011] In a second aspect, an embodiment of the present invention provides a virtual image distance testing device, which is applied to a virtual image distance testing system having a moving mechanism, a camera mechanism and a test chart, comprising: A first control module, used for controlling the moving mechanism to continuously move the camera mechanism from a first working position to a second working position, wherein a direction of a line between the first working position and the second working position points to a target product; A second control module is used to control the camera mechanism to continuously shoot during the continuous movement of the camera mechanism, and store the captured sample images frame by frame into a preset data queue, wherein the sample images include the image of the test chart obtained through the target product; A first determination module, configured to determine the definition data of each frame of the sampled image in the data queue based on a storage order when detecting that the data queue is not empty; A second determination module is used to determine the maximum value or the maximum value of the clarity according to the clarity data of all the sampled images; The third determination module is used to determine at least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product according to the maximum value or the local maximum value.

[0012] In a third aspect, an embodiment of the present invention provides a virtual image distance testing system, comprising a processor, a memory, a moving mechanism, a camera mechanism and a test chart, wherein the memory stores a computer program, and the processor is used to implement the above-mentioned virtual image distance testing method when running the computer program.

[0013] In a fourth aspect, an embodiment of the present invention provides a storage medium, wherein a computer program is stored in the storage medium, and when the computer program is executed, the above-mentioned virtual image distance testing method is implemented.

[0014] The embodiments of the present invention have at least the following beneficial effects: The moving mechanism moves the camera mechanism from the first working position to the second working position, and synchronously triggers the shooting of the camera mechanism, and determines at least one of the moving coordinates and the virtual image distance according to the clarity data of the multi-frame sampled images. Through the parallel operation of the moving mechanism, the camera mechanism and the image processing, the virtual image distance can be measured quickly and accurately, which is conducive to improving the test efficiency.

[0015] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The above and / or additional aspects and advantages of the present invention will become apparent and easily understood from the description of the embodiments in conjunction with the following drawings, in which: Figure 1 is a schematic diagram of a virtual image distance testing system according to an embodiment of the present invention; Figure 2A flowchart of a method for testing virtual image distance according to an embodiment of the present invention; Figure 3 4 is a principle block diagram of a virtual image distance testing device according to an embodiment of the present invention.

[0017] Reference numerals: The target product 10 , the moving mechanism 110 , the camera mechanism 120 , the test chart 130 , the first control module 210 , the second control module 220 , the first determination module 230 , the second determination module 240 and the third determination module 250 . DETAILED DESCRIPTION

[0018] Embodiments of the present invention are described in detail below, examples of which are shown in the accompanying drawings, wherein the same or similar reference numerals throughout represent the same or similar elements or elements having the same or similar functions. The embodiments described below with reference to the accompanying drawings are exemplary and are only used to explain the present invention, and cannot be understood as limiting the present invention.

[0019] In the description of the present invention, it should be understood that descriptions involving orientations, such as up, down, front, back, left, right, etc., and orientations or positional relationships indicated are based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as a limitation on the present invention.

[0020] In the description of the present invention, "several" means one or more, "multiple" means more than two, greater than, less than, and exceeding are understood as not including the number itself, and "above", "below", and "within" are understood as including the number itself. If there is a description of "first", "second", etc., it is only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.

[0021] In the description of the present invention, unless otherwise clearly defined, words such as “setting”, “installation” and “connection” should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above words in the present invention based on the specific content of the technical solution.

[0022] Please refer to Figure 1 and Figure 2This embodiment discloses a virtual image distance test method, which is applied to a virtual image distance test system having a moving mechanism 110, a camera mechanism 120 and a test chart 130. The virtual image distance test method includes steps S100 to S500. It should be noted that the steps in this embodiment are numbered only for the convenience of review and understanding, and do not limit the execution order of the steps. The contents of each step are described in detail below: S100, controlling the moving mechanism 110 to continuously move the imaging mechanism 120 from the first working position to the second working position, with the direction of the line between the first working position and the second working position pointing to the target product 10; For example, please refer to Figure 1 The camera mechanism 120 is mounted on the mobile mechanism 110, and the mobile mechanism 110 can drive the camera mechanism 120 to move in a straight line, and the moving direction is the direction of the line connecting the first working position and the second working position. The first working position can be the initial position of the mobile mechanism 110 (such as Figure 1 The second working position may be the end position of the mobile mechanism 110 (eg, Figure 1 The position indicated by the mark P2 in the figure) can also be one of the positions within the travel range of the moving mechanism 110. It should be noted that the first working position and the second working position do not overlap with each other. The moving mechanism 110 can adopt a conventional linear moving module, and the camera mechanism 120 can adopt a conventional industrial camera, or an industrial camera equipped with a focusing component, wherein the field of view of the camera mechanism 120 (such as Figure 1 The camera mechanism 120 is directed toward the target product 10 (shown by the dashed line in the middle), that is, the field of view of the camera mechanism 120 is directed in the same direction as the line connecting the first working position and the second working position. Driven by the mobile mechanism 110, the camera mechanism 120 can move from a position farther from the target product 10 to a position closer to the target product 10, and can cover the imaging range of most target products 10. It is worth mentioning that, driven by the mobile mechanism 110, the camera mechanism 120 moves continuously, that is, there is no pause during the movement, which saves the acceleration time from static to moving and the deceleration time from moving to static of the mobile mechanism during the movement, which is conducive to improving the test efficiency, and can also avoid the vibration caused by the frequent start and stop of the mobile mechanism 110 affecting the imaging quality of the camera mechanism 120, which is conducive to improving the movement smoothness of the camera mechanism 120 and ensuring the imaging quality. In this embodiment, the distance configuration between the first working position and the second working position can cover the measurement range of 0.1D~10D (diopter, 1D=1m), which meets the test requirements of most target products 10. The target product 10 may be a VR / AR (virtual reality or augmented reality) product.

[0023] S200, during the continuous movement of the camera mechanism 120, the camera mechanism 120 is controlled to continuously shoot, and the sampled images obtained by shooting are stored frame by frame in a preset data queue, where the sampled images include images of the test chart 130 obtained through the target product 10; Exemplarily, by reasonably configuring the parameters of the camera mechanism 120, the camera mechanism 120 can be made to shoot continuously and quickly. For example, by configuring the exposure parameters of the camera mechanism 120 to a lower value, the image acquisition speed of the camera mechanism 120 can reach more than 100 frames within 10 milliseconds. In this way, driven by the moving mechanism 110, the camera mechanism 120 can capture a series of sampled images. In theory, the more image frames per unit time, the more conducive to improving the accuracy of the virtual image distance test. According to the test principle of the virtual image distance, the camera mechanism 120 and the test chart 130 are respectively located on opposite sides of the target product 10, and the target product 10 is an optical product with light transmittance, that is, the camera mechanism 120 can obtain the image of the test chart 130 (i.e., the target image) through the target product 10. Since the virtual image distance of the target product 10 is a parameter to be tested, the virtual image distance of the target product 10 is unknown before the test. The distance between the first working position and the second working position of the mobile mechanism 110 of this embodiment can cover most of the test requirements for the virtual image distance of the target product 10. In the process of the mobile mechanism 110 driving the camera mechanism 120 to move, there must be a position where the clarity of the image captured by the camera mechanism 120 is the highest. Then the distance between this position and the target product 10 can be determined as the virtual image distance of the target product 10.

[0024] S300, when it is detected that the data queue is not empty, determining the definition data of each frame of the sampled image in the data queue based on the storage order; Exemplarily, the moving mechanism 110 and the camera mechanism 120 move synchronously, so that the camera mechanism 120 continuously captures multiple frames of sampled images. In the initial state, the data queue is empty, and the camera mechanism 120 synchronously stores the captured sampled images frame by frame into the data queue during the capture process. When the first frame of the sampled image enters the data queue, the clarity processing flow is triggered, that is, the clarity of each frame of the sampled data is calculated based on the storage order (first in, first out), and the clarity data of each frame of the sampled image is determined. Among them, the evaluation index and calculation method of the clarity can be referred to the relevant technology (such as the gradient-based evaluation method), which will not be described in detail in this embodiment.

[0025] S400, determining a maximum value or a local maximum value of the clarity according to the clarity data of all sampled images; For example, in the process of the camera mechanism 120 moving from the first working position to the second working position, the camera mechanism 120 captures a large number of sampled images. By determining the clarity data of each frame of the sampled image, a clarity data set can be obtained. Moreover, the clarity data set is a data set in which the clarity changes with time or moving coordinates. Among all the clarity data, there must be a maximum clarity value. Of course, based on historical experience, the clarity in the clarity data set usually changes according to a certain rule. For some specific target products 10, part of the clarity data can be intercepted to determine the maximum value. However, in general, the maximum clarity value is equal to the maximum value.

[0026] S500 , determining at least one of the moving coordinates of the moving mechanism 110 and the virtual image distance of the target product 10 according to the maximum value or the local maximum value.

[0027] Exemplarily, the moving coordinates of the mobile mechanism 110 change with time, and the sampling images captured by the camera mechanism 120 are also synchronized with time. In this way, when determining the sampling image with the maximum or maximum value of clarity, the moving coordinates of the mobile mechanism 110 can be determined based on the relationship of time synchronization. In the first working position, the distance between the camera mechanism 120 and the target product 10 is known (manually configured), and the moving speed of the camera mechanism 120 (the running speed of the mobile mechanism 110) is also manually controlled. In this way, when determining the sampling image with the maximum or maximum value of clarity, the distance between the camera mechanism 120 and the target product 10 can be determined based on the relationship of time synchronization, so as to convert the virtual image distance of the target product 10. Of course, based on different reference points, the virtual image distance of the target product 10 can be determined according to the moving coordinates of the mobile mechanism 110. In practical applications, only the moving coordinates of the mobile mechanism 110 can be determined, or only the virtual image distance of the target product 10 can be determined, or both the moving coordinates of the mobile mechanism 110 and the virtual image distance of the target product 10 can be determined.

[0028] The moving mechanism 110 moves the camera mechanism 120 from the first working position to the second working position, and synchronously triggers the shooting of the camera mechanism 120, and determines at least one of the moving coordinates and the virtual image distance according to the clarity data of the multi-frame sampled images. By running the three processes of the moving mechanism 110, the camera mechanism 120 and the image processing in parallel, the waiting time between different processes is saved, and the virtual image distance can be measured quickly and accurately, which is conducive to improving the test efficiency. Moreover, the measurement of the virtual image distance is determined based on the processing of the multi-frame sampled images, the amount of data processed is large, and it is not easily disturbed by noise, which is conducive to improving the accuracy of the test.

[0029] In step S300, the definition data of each frame of the sampled image in the data queue is determined based on the storage order, including: S310, taking out a frame of sampled image from the data queue based on the storage order to obtain a target sampled image; S320, performing frequency domain conversion on the target sampling image to obtain a frequency domain image; S330 , performing definition calculation according to the frequency domain image to obtain definition data of a frame of sampled image.

[0030] Exemplarily, the camera mechanism 120 takes the sampled images at a preset time interval. Each time a frame of the sampled images is taken, the camera mechanism 120 stores the sampled images in a data queue to wait for image processing. The data queue stores the sampled images in chronological order. When image processing is required, the sampled images are first-in-first-out based on the storage order, and image processing is performed on each frame of the sampled images one by one. During the image processing, in order to improve the accuracy of the test and reduce the interference of noise, the target sampled images are converted into the frequency domain to eliminate the interference of inconsistent brightness on the time domain clarity calculation, which is conducive to improving the accuracy of the clarity calculation. Repeat the processing of steps S310 to S330 for all the sampled images in the data queue until the data queue is empty, and the clarity data of each frame of the sampled image in the data queue can be determined.

[0031] In step S100, the mobile mechanism 110 is controlled to move the camera mechanism 120 continuously from the first working position to the second working position, including: controlling the mobile mechanism 110 to move the camera mechanism 120 continuously from the first working position to the second working position, and acquiring and storing the moving coordinates of the mobile mechanism 110 in real time to obtain a moving coordinate data set.

[0032] Exemplarily, the moving mechanism 110 uses a linear moving module with a driving motor, and the camera mechanism 120 is installed on the slider of the linear moving module. The driving motor is used to drive the slider of the linear moving module to move along a preset slide rail, thereby driving the camera mechanism 120 to move. During the movement of the camera mechanism 120, the moving coordinates of the moving mechanism 110 are acquired and stored in real time, which can be understood as real-time access to the driving motor to obtain the moving coordinates of the slider of the linear moving module (usually represented or converted by the position data of the driving motor). Real-time acquisition and storage of the moving coordinates of the moving mechanism 110 can facilitate the subsequent determination of the shooting position of the clearest sampling image.

[0033] In some application examples, step S500, determining at least one of the moving coordinates of the moving mechanism 110 and the virtual image distance of the target product 10 according to the maximum value or the local maximum value, includes: determining the shooting time of the sampling image according to the maximum value or the local maximum value; determining the moving coordinates of the moving mechanism 110 according to the shooting time and the moving coordinate data set.

[0034] Exemplarily, as described above, the actions of the mobile mechanism 110 and the camera mechanism 120 are based on time synchronization. When determining the maximum or maximum value of clarity in the clarity data of all sampled images, the sorting position of the maximum or maximum value of clarity in all clarity data can be determined, and the sorting position is converted into the shooting time (the shooting time interval is preset). As mentioned above, during the action of the mobile mechanism 110, the mobile coordinates are acquired and stored in real time to obtain a mobile coordinate data set, that is, the mobile coordinate data set is a data set of mobile coordinates that change over time. Based on the relationship of time synchronization, the mobile coordinates at the corresponding time can be queried in the mobile coordinate data set according to the shooting time. According to the habits of different users or different application scenarios, the mobile coordinates can be used to characterize the virtual image distance of the target product 10.

[0035] In other application examples, step S500, determining at least one of the moving coordinates of the moving mechanism 110 and the virtual image distance of the target product 10 according to the maximum value or the local value, also includes: determining the virtual image distance of the target product 10 according to the moving coordinates of the moving mechanism 110.

[0036] Exemplarily, during the test process, the positions of the target product 10 and the test chart 130 are fixed, and the moving mechanism 110 drives the camera mechanism 120 to move from far to near toward the target product 10. Therefore, there is a certain position change relationship between the moving position of the camera mechanism 120 and the target product 10, and the moving position of the camera mechanism 120 is usually represented by the moving coordinates of the moving mechanism 110. In this way, the virtual image distance of the target product 10 (which can be simply understood as the distance between the camera mechanism 120 and the target product 10 under the moving coordinates) can be determined through the moving coordinates corresponding to the sampled image with the maximum or maximum clarity.

[0037] In some application examples, step S400, determining the maximum or maximum value of clarity based on the clarity data of all sampled images, includes: performing data fitting based on the clarity data of all sampled images to obtain clarity fitting data; performing maximum or maximum value operation on the clarity fitting data to determine the maximum or maximum value of clarity.

[0038] For example, it is mentioned above that this embodiment can obtain as many sampled images as possible per unit time by reasonably configuring the parameters of the camera mechanism 120. However, the sampled images captured by the camera mechanism 120 are still frames of images, and the clarity data obtained by performing clarity processing on the sampled images is only discrete data. Data fitting by discrete data can make data processing smoother and more reasonable. The maximum value or maximum value of clarity can also be determined by performing maximum or maximum value calculation on the fitted data.

[0039] Correspondingly, step S500, based on the maximum value or the local maximum value, determines at least one of the moving coordinates of the moving mechanism 110 and the virtual image distance of the target product 10, including: based on the maximum value or the local maximum value, determining an approximate value in the clarity data of all sampled images; based on the approximate value, determining the shooting time of the sampled image; based on the shooting time and the moving coordinate data set, determining the moving coordinates of the moving mechanism 110.

[0040] Exemplarily, the maximum value or maximum value obtained by performing the maximum value or maximum value operation on the fitted data may not appear in the original data set (the clarity data of all sampled images), and an approximate value is determined in the original data set according to the maximum value or maximum value, and then the moving coordinates of the moving mechanism 110 or the virtual image distance of the target product 10 are determined according to the approximate value. The approximate value may be taken upward or downward, or may be taken upward and taken downward (i.e., two approximate values).

[0041] The travel of the mobile mechanism 110 (using a linear moving module with a drive motor) of this embodiment covers the virtual image distance test from 0.1D to 10D, that is, one movement can cover the VID measurement of almost all VR / AR products on the market. The full range achieves a repeatability measurement accuracy of ±5%, and within the conventional imaging range of about 1m of VR / AR products, the repeatability measurement accuracy can reach within ±5mm.

[0042] Please refer to Figure 3 This embodiment also provides a virtual image distance testing device, which is applied to a virtual image distance testing system having a moving mechanism 110, a camera mechanism 120 and a test chart 130, and includes a first control module 210, a second control module 220, a first determination module 230, a second determination module 240 and a third determination module 250.

[0043] The first control module 210 is used to control the moving mechanism 110 to continuously move the camera mechanism 120 from the first working position to the second working position, and the connection direction between the first working position and the second working position points to the target product 10; The second control module 220 is used to control the camera mechanism 120 to continuously shoot during the continuous movement of the camera mechanism 120, and store the captured sample images frame by frame into a preset data queue, wherein the sample images include images of the test chart 130 obtained through the target product 10; The first determination module 230 is used to determine the definition data of each frame of the sampled image in the data queue based on the storage order when it is detected that the data queue is not empty; The second determination module 240 is used to determine the maximum value or the maximum value of the clarity according to the clarity data of all sampled images; The third determination module 250 is used to determine at least one of the moving coordinates of the moving mechanism 110 and the virtual image distance of the target product 10 according to the maximum value or the local maximum value.

[0044] The inventive concept of the embodiment of the virtual image distance test device is the same as the inventive concept of the embodiment of the virtual image distance test method described above. The contents not involved in the embodiment of the virtual image distance test device can be referred to the embodiment of the virtual image distance test method described above, and will not be repeated here. The moving mechanism 110 moves the camera mechanism 120 from the first working position to the second working position, and synchronously triggers the shooting of the camera mechanism 120, and determines at least one of the moving coordinates and the virtual image distance according to the clarity data of the multi-frame sampled images. By running the three processes of the moving mechanism 110, the camera mechanism 120 and the image processing in parallel, the waiting time between different processes is saved, and the virtual image distance can be measured quickly and accurately, which is conducive to improving the test efficiency. Moreover, the measurement of the virtual image distance is determined based on the processing of the multi-frame sampled images, and the amount of data processed is large, which is not easily disturbed by noise, which is conducive to improving the accuracy of the test.

[0045] Please refer to Figure 1 This embodiment also provides a virtual image distance test system, including a processor, a memory, a moving mechanism 110, a camera mechanism 120 and a test chart 130. The memory stores a computer program, and the processor is used to implement the above-mentioned virtual image distance test method when running the computer program. The specific content of the virtual image distance test method can be referred to above, and will not be repeated here. The moving mechanism 110 moves the camera mechanism 120 from the first working position to the second working position, and synchronously triggers the shooting of the camera mechanism 120, and determines at least one of the moving coordinates and the virtual image distance according to the clarity data of the multi-frame sampled image. Through the parallel operation of the three processes of the moving mechanism 110, the camera mechanism 120 and the image processing, the waiting time between different processes is saved, and the virtual image distance can be measured quickly and accurately, which is conducive to improving the test efficiency. Moreover, the measurement of the virtual image distance is determined based on the processing of the multi-frame sampled image, and the amount of data processed is large, which is not easily disturbed by noise, which is conducive to improving the accuracy of the test.

[0046] This embodiment also provides a storage medium, in which a computer program is stored, and when the computer program is run, the above-mentioned virtual image distance test method is implemented. The specific content of the virtual image distance test method can be referred to above, and will not be repeated here. The moving mechanism 110 moves the camera mechanism 120 from the first working position to the second working position, and synchronously triggers the shooting of the camera mechanism 120, and determines at least one of the moving coordinates and the virtual image distance according to the clarity data of the multi-frame sampled image. Through the parallel operation of the three processes of the moving mechanism 110, the camera mechanism 120 and the image processing, the waiting time between different processes is saved, and the virtual image distance can be measured quickly and accurately, which is conducive to improving the test efficiency. Moreover, the measurement of the virtual image distance is determined based on the processing of the multi-frame sampled image, and the amount of data processed is large, which is not easily disturbed by noise, which is conducive to improving the accuracy of the test.

[0047] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the relevant technical field without departing from the purpose of the present invention.

Claims

1. A virtual image distance test method, applied to a virtual image distance test system having a moving mechanism, a camera mechanism and a test chart, characterized in that: The virtual image distance testing method comprises: Controlling the moving mechanism to continuously move the camera mechanism from a first working position to a second working position, wherein a direction of a line between the first working position and the second working position points to a target product; During the continuous movement of the camera mechanism, the camera mechanism is controlled to continuously shoot, and the sampled images obtained by shooting are stored frame by frame in a preset data queue, wherein the sampled images include images of the test chart obtained through the target product; When it is detected that the data queue is not empty, determining the definition data of each frame of the sampled image in the data queue based on the storage order; Determine the maximum or local value of the clarity according to the clarity data of all the sampled images; At least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product is determined based on the maximum value or the local maximum value.

2. The virtual image distance testing method according to claim 1, characterized in that: The step of determining the definition data of each frame of the sampled image in the data queue based on the storage order includes: Based on the storage order, taking out a frame of the sampled image from the data queue to obtain a target sampled image; Performing frequency domain conversion on the target sampling image to obtain a frequency domain image; The clarity is calculated according to the frequency domain image to obtain clarity data of a frame of the sampled image.

3. The virtual image distance testing method according to claim 1 or 2, characterized in that: The controlling the moving mechanism to continuously move the camera mechanism from the first working position to the second working position includes: The moving mechanism is controlled to continuously move the camera mechanism from the first working position to the second working position, and the moving coordinates of the moving mechanism are acquired and stored in real time to obtain a moving coordinate data set.

4. The virtual image distance testing method according to claim 3, characterized in that: The step of determining at least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product according to the maximum value or the local maximum value comprises: Determining the shooting time of the sampled image according to the maximum value or the local maximum value; The movement coordinates of the moving mechanism are determined according to the shooting time and the movement coordinate data set.

5. The virtual image distance testing method according to claim 4, characterized in that: The step of determining at least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product according to the maximum value or the local maximum value further comprises: The virtual image distance of the target product is determined according to the moving coordinates of the moving mechanism.

6. The virtual image distance testing method according to claim 3, characterized in that: Determining the maximum or the maximum value of the clarity according to the clarity data of all the sampled images comprises: Performing data fitting according to the clarity data of all the sampled images to obtain clarity fitting data; A maximum value or a maximum value operation is performed on the definition fitting data to determine the maximum value or the maximum value of the definition.

7. The virtual image distance testing method according to claim 6, characterized in that: The step of determining at least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product according to the maximum value or the local maximum value comprises: Determine an approximate value in the definition data of all the sampled images according to the maximum value or the local maximum value; Determining the shooting time of the sampled image according to the approximate value; The movement coordinates of the moving mechanism are determined according to the shooting time and the movement coordinate data set.

8. A virtual image distance test device, applied to a virtual image distance test system having a moving mechanism, a camera mechanism and a test chart, characterized in that: include: A first control module, used for controlling the moving mechanism to continuously move the camera mechanism from a first working position to a second working position, wherein a direction of a line between the first working position and the second working position points to a target product; A second control module is used to control the camera mechanism to continuously shoot during the continuous movement of the camera mechanism, and store the captured sample images frame by frame into a preset data queue, wherein the sample images include the image of the test chart obtained through the target product; A first determination module, configured to determine the definition data of each frame of the sampled image in the data queue based on a storage order when detecting that the data queue is not empty; A second determination module is used to determine the maximum value or the maximum value of the clarity according to the clarity data of all the sampled images; The third determination module is used to determine at least one of the moving coordinates of the moving mechanism and the virtual image distance of the target product according to the maximum value or the local maximum value.

9. A virtual image distance test system, comprising a processor, a memory, a moving mechanism, a camera mechanism and a test chart, wherein a computer program is stored in the memory, characterized in that: When the processor runs the computer program, it is used to implement the virtual image distance testing method according to any one of claims 1 to 7.

10. A storage medium storing a computer program, wherein: When the computer program is executed, the virtual image distance testing method according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • AR imaging system virtual image distance testing method and device

    CN108012147A

  • Virtual image distance detection tool, calibration method thereof and virtual image distance detection method

    CN112326205A

  • Virtual image distance testing device and method based on liquid lens and storage medium

    CN114354136A

  • Deep learning-based video editing method, related device, and storage medium

    US20230049135A1