A diopter detection method, device, host computer and system

By combining a host computer with an imaging device, the refractive power of the liquid lens is automatically identified and calculated, solving the problems of high cost or low accuracy of existing detection methods and realizing efficient and low-cost refractive power detection.

CN116439652BActive Publication Date: 2026-05-01BEIJING LUSTER LIGHTTECH
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
BEIJING LUSTER LIGHTTECH
Filing Date
2023-04-23
Publication Date
2026-05-01

AI Technical Summary

Technical Problem

Existing methods for measuring the refractive power of liquid lenses suffer from high costs or low accuracy, especially due to the high price of focal length measuring instruments and the significant need for manual intervention.

Method used

By combining a host computer with an imaging device, images of the liquid lens are captured using a marker plate. The target marker is automatically identified and the refractive power is determined based on the three-dimensional spatial position. The refractive power is calculated using the target formula, and the detection accuracy is improved through periodic detection and repeatability analysis.

Benefits of technology

It reduces the cost of refractive power measurement, decreases manual intervention, and improves the accuracy and efficiency of measurement. It is suitable for simultaneous measurement of multiple liquid lenses.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116439652B_ABST
    Figure CN116439652B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a diopter detection method, device, host computer and system. The method is applied to the host computer. An imaging device connected to the host computer includes a liquid lens to be detected. The imaging device is configured to capture an image of a mark board by the liquid lens. Different positions of the mark board are provided with different marks. The method receives an image captured by the imaging device when the liquid lens is at different adjustment parameters. Then, a target mark in the image is determined. The clarity of the target mark is greater than that of other marks in the image. The diopter of the liquid lens at different adjustment parameters is determined based on the position of the target mark in the three-dimensional space. The method does not need to additionally configure a focal length instrument, thereby reducing the cost required for diopter detection. The method is implemented by the host computer, thereby reducing the manual participation link and improving the accuracy of diopter detection.
Need to check novelty before this filing date? Find Prior Art

Description

A method, apparatus, host computer and system for measuring refractive power Technical Field

[0001] This application relates to the field of machine vision technology, and in particular to a method, device, host computer and system for measuring refractive power. Background Technology

[0002] With the development of machine vision technology, the requirements for imaging lenses are becoming increasingly demanding. For example, in some scenarios, imaging lenses need to meet the imaging requirements of different depths of field and working distances. To meet this requirement, liquid lenses have emerged. A liquid lens is a small component containing optical-grade liquid. When different currents or voltages are applied to it, the optical-grade liquid causes deformation on the surface of the liquid lens, resulting in changes in optical power. This allows the depth of field and working distance of the liquid lens to be changed within milliseconds, and it is widely used in fields such as mobile phones, industrial inspection, and autonomous driving.

[0003] However, under prolonged use, the refractive power of liquid lenses may change due to wear and tear, even at the same current or voltage. Therefore, it is necessary to test the refractive power of liquid lenses. Currently, there are two commonly used methods for refractive power testing: Method 1 involves testing with a focal length meter and a host computer. In this method, the host computer acquires the image of the liquid lens through the focal length meter, and then processes the image to determine the refractive power of the liquid lens. Method 2 uses parallel light for testing. This method involves incident parallel light onto the liquid lens, then manually observing the smallest spot formed by the liquid lens and recording the relative distance between this smallest spot and the liquid lens. This relative distance is used as the focal length of the liquid lens, and the refractive power is further determined based on this focal length.

[0004] However, the focal length meter used in the first method of refractive power measurement is expensive, resulting in a high cost for the method. The second method requires manual observation of the smallest spot and recording of the relative distance, which involves more manual intervention and leads to lower accuracy. Summary of the Invention

[0005] This application provides a method, apparatus, and system for detecting the refractive power of a liquid lens, in order to solve the problem of high cost when using the existing first method for refractive power detection, and the problem of low accuracy when using the existing second method for refractive power detection.

[0006] In a first aspect, embodiments of this application provide a method for detecting refractive power, applied to a host computer. An imaging device connected to the host computer includes a liquid lens to be detected. The imaging device is used to photograph a marker plate through the liquid lens. Different markers are set at different positions on the marker plate. The method includes:

[0007] The imaging device captures images of the marker plate when the liquid lens is under different adjustment parameters, wherein the adjustment parameters include at least one parameter for adjusting the diopter of the liquid lens;

[0008] Identify a target marker in the image, wherein the sharpness of the target marker is greater than that of other markers in the image;

[0009] Based on the position of the target marker in three-dimensional space, the diopter of the liquid lens under different adjustment parameters is determined.

[0010] In one optional design, determining the diopter of the liquid lens under different adjustment parameters based on the position of the target marker in three-dimensional space includes:

[0011] Based on the position of the target marker in three-dimensional space and the position of the liquid lens in three-dimensional space, the working distance of the liquid lens is determined, wherein the working distance is the relative distance between the target marker and the liquid lens;

[0012] Based on the working distance of the liquid lens, the diopter of the liquid lens under different adjustment parameters is calculated.

[0013] In one optional design, calculating the diopter of the liquid lens under different adjustment parameters based on the working distance of the liquid lens includes:

[0014] If the refractive power of the liquid lens is periodically detected, based on the first distance in the working distance and the first refractive power of the liquid lens at the first distance detected in the first detection period, the coefficient in the target formula is calculated, wherein the first distance is the working distance of the liquid lens under at least two different adjustment parameters in the first detection period, and the target formula is used to characterize the relationship between the refractive power of the liquid lens and the working distance.

[0015] By substituting the second distance and the calculated coefficient into the target formula, the second diopter under the adjustment parameters corresponding to the second distance is calculated within the first detection cycle, wherein the second distance is other working distances of the liquid lens under different adjustment parameters within the first detection cycle.

[0016] In one optional design, the target formula is:

[0017] WD n =Kφ n (dpt)+C;

[0018] Wherein, the coefficients include a first coefficient and a second coefficient, K is the first coefficient, C is the second coefficient, and WD n For the nth working distance, φ n (dpt) represents the diopter under the adjustment parameters corresponding to the nth working distance.

[0019] In an alternative design, after determining the diopter of the liquid lens under different adjustment parameters, the method further includes:

[0020] The dynamic repeatability of the refractive power of the liquid lens is determined based on the offset of the coefficients of the target formula calculated in different detection cycles.

[0021] or,

[0022] Based on the diopter of the liquid lens under different adjustment parameters in different detection cycles, a diopter detection curve corresponding to each detection cycle is generated. The diopter detection curve is used to characterize the correspondence between the position of the target mark in the image and the diopter.

[0023] The dynamic repeatability of the refractive power of the liquid lens is determined based on the translation between the refractive power detection curves corresponding to each detection cycle.

[0024] In an alternative design, after determining the diopter of the liquid lens under different adjustment parameters, the method further includes:

[0025] Compare the diopter of the liquid lens under the same adjustment parameters during different detection cycles;

[0026] Based on the comparison results, the static repeatability of the refractive power of the liquid lens was determined.

[0027] In one alternative design, determining the target marker in the image includes:

[0028] Based on the grayscale values ​​of the pixels of each marker in the image, a grayscale curve is generated, which is used to characterize the correspondence between the position of the pixel in the marker and the grayscale value;

[0029] Determine the centroid position of the grayscale curve;

[0030] The marker corresponding to the centroid position is determined to be the target marker.

[0031] Secondly, embodiments of this application provide a refractive power detection device, applied to a host computer. An imaging device connected to the host computer includes a liquid lens to be detected. The imaging device is used to photograph a marker plate through the liquid lens. Different marks are set at different positions on the marker plate. The device includes:

[0032] An image receiving module is used to receive images of the marker plate captured by the imaging device when the liquid lens is under different adjustment parameters, wherein the adjustment parameters include at least one parameter for adjusting the diopter of the liquid lens;

[0033] A marker determination module is used to determine a target marker in the image, wherein the sharpness of the target marker is greater than that of other markers in the image;

[0034] The diopter determination module is used to determine the diopter of the liquid lens under different adjustment parameters based on the position of the target mark in three-dimensional space.

[0035] Thirdly, embodiments of this application provide a host computer, and an imaging device connected to the host computer includes a liquid lens to be detected. The imaging device is used to photograph a marker plate through the liquid lens. Different markers are set at different positions on the marker plate. The host computer includes:

[0036] A memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the method described in the first aspect.

[0037] Fourthly, embodiments of this application provide a refractive power detection system, comprising:

[0038] A marking board, wherein different markings are set at different positions on the marking board;

[0039] An imaging device including a liquid lens to be tested, wherein the imaging device captures images of a marker plate when the liquid lens is under different adjustment parameters, the adjustment parameters including at least one parameter for adjusting the diopter of the liquid lens;

[0040] The host computer as described in the third aspect.

[0041] The solution provided in this application embodiment enables the determination of the refractive power of a liquid lens based on an image captured by the liquid lens. Furthermore, this method eliminates the need for an additional focal length meter, thus reducing the cost of refractive power detection compared to the first prior art method. Additionally, since this method is implemented by a host computer, it reduces manual intervention and improves the accuracy of refractive power detection compared to the second prior art method.

[0042] Furthermore, in the existing method one, a single focal length sensor can only detect the refractive power of one liquid lens at a time. If it is necessary to detect the refractive power of multiple liquid lenses, each liquid lens needs to be detected sequentially using the focal length sensor, resulting in low detection efficiency. Moreover, in the existing method two, it is necessary to manually observe the smallest light spot formed by the liquid lens and record the relative distance between the smallest light spot and the liquid lens, which also leads to low detection efficiency. In contrast, in the solution of this application, a single host computer can acquire images captured by multiple imaging devices through liquid lenses within the same time period, enabling the detection of the refractive power of multiple liquid lenses, thus improving the detection efficiency of refractive power. Attached Figure Description

[0043] Figure 1 is a schematic diagram of an application scenario of a refractive power detection method disclosed in an embodiment of this application;

[0044] Figure 2 is a schematic diagram of the workflow of a refractive power detection method disclosed in an embodiment of this application;

[0045] Figure 3 is a schematic diagram of the workflow for determining target markers in a refractive power detection method disclosed in an embodiment of this application;

[0046] Figure 4 is a schematic diagram of the grayscale curve in a refractive power detection method disclosed in an embodiment of this application;

[0047] Figure 5 is a schematic diagram of the workflow of another refractive power detection method disclosed in the embodiments of this application;

[0048] Figure 6 is a schematic diagram of the workflow of another refractive power detection method disclosed in the embodiments of this application;

[0049] Figure 7 is a schematic diagram of the refractive error detection curve in a refractive error detection method disclosed in an embodiment of this application;

[0050] Figure 8 is a schematic diagram of the workflow of another refractive power detection method disclosed in the embodiments of this application;

[0051] Figure 9 is a schematic diagram of the structure of a refractive power detection method device disclosed in an embodiment of this application;

[0052] Figure 10 is a schematic diagram of the structure of the host computer disclosed in the embodiment of this application. Detailed Implementation

[0053] To make the objectives, implementation methods and advantages of this application clearer, the exemplary implementation methods of this application will be clearly and completely described below with reference to the accompanying drawings of the exemplary embodiments of this application. Obviously, the described exemplary embodiments are only some embodiments of this application, and not all embodiments.

[0054] It should be noted that the brief descriptions of terms in this application are only for the convenience of understanding the embodiments described below, and are not intended to limit the embodiments of this application. Unless otherwise stated, these terms should be understood in their ordinary and common meaning.

[0055] The terms "first," "second," "third," etc., used in the specification, claims, and accompanying drawings of this application are used to distinguish similar or related objects or entities, and do not necessarily imply a specific order or sequence, unless otherwise specified. It should be understood that such terms are interchangeable where appropriate.

[0056] The terms “comprising” and “having”, and any variations thereof, are intended to cover but not exclude inclusion, for example, a product or device that includes a range of components is not necessarily limited to all of the components that are clearly listed, but may include other components that are not clearly listed or that are inherent to such product or device.

[0057] This application provides a method, apparatus, and system for detecting the refractive power of a liquid lens, in order to solve the problem of high cost when using the existing first method for refractive power detection, and the problem of low accuracy when using the existing second method for refractive power detection.

[0058] This application provides a method for measuring refractive power, which is applied to a host computer. The host computer can be a tablet computer (PAD), a personal digital assistant (PDA), a laptop computer, a handheld device with wireless communication capabilities, a computing device, or a wearable device, etc. The form of the host computer is not specifically limited in the embodiments of this application.

[0059] Referring to the scene diagram shown in Figure 1, the host computer 100 is connected to the imaging device 200, which includes a liquid lens 300 to be detected. The imaging device 200 is used to take pictures of the marking plate 400 through the liquid lens 300, and different marks are set at different positions on the marking plate 400.

[0060] The marking plate 400 can also be placed at an angle to the horizontal plane; for example, the angle between the marking plate and the horizontal plane can be between 0 degrees and 60 degrees. In Figure 1, the angle between the marking plate 400 and the horizontal plane is 45 degrees.

[0061] Furthermore, in order to improve the imaging effect of the imaging device 200, a light source 500 can be set between the liquid lens 300 and the marker plate 400 to provide sufficient illumination for the imaging device 200 during the imaging process.

[0062] During refractive power measurement, the adjustment parameters of the liquid lens can be adjusted. These adjustment parameters include at least one parameter used to adjust the refractive power of the liquid lens, such as current or voltage. When the adjustment parameters of the liquid lens change, the optical-grade liquid inside the liquid lens causes deformation of the liquid lens surface, and the refractive power of the liquid lens changes accordingly.

[0063] In one feasible design, the refractive power of the liquid lens can be measured through multiple detection cycles. In this case, the duration of the detection cycle can be preset, and the refractive power can be measured periodically according to the duration of the detection cycle. For example, if the duration of the detection cycle is T, the refractive power can be measured every T or a time interval greater than T.

[0064] Within a single testing cycle, the adjustment parameters change at least twice. For example, within the same testing cycle, the adjustment parameters may change multiple times, and the adjustment parameters may increase or decrease sequentially according to a preset adjustment step size. Correspondingly, within the same testing cycle, the diopter of the liquid lens changes multiple times.

[0065] In this application, different marks are set at different positions on the marking plate. In this case, if the clearest mark in the image captured by the imaging device is set as the target mark, the target mark in the image captured by the imaging device will be different when the refractive power of the liquid lens is different. Therefore, the target mark contained in the image can reflect the change in the refractive power of the liquid lens.

[0066] In one feasible design, the marking board can be a depth of field (DOF) test board, with multiple equally spaced scribe lines that serve as markers on the board. In this case, the host computer can determine the location of the target marker based on the scribe lines included in the image.

[0067] Alternatively, the marker board can be set with different objects (such as line segments of different colors, dotted lines with different degrees of discontinuity, etc.) at different locations. In this case, the markers on the marker board are the objects set on the marker board. The host computer can pre-store the correspondence between different objects and their locations, and then determine the location of the target marker based on the correspondence.

[0068] Of course, the marking plate may also take other forms, and this application does not limit it.

[0069] Referring to Figure 2, the refractive power detection method provided in the embodiments of this application includes the following steps:

[0070] Step S11: Receive images of the marker plate captured by the imaging device when the liquid lens is under different adjustment parameters.

[0071] The adjustment parameters include at least one parameter used to adjust the diopter of the liquid lens, such as current or voltage.

[0072] When the liquid lens is adjusted to different parameters, its refractive power is different, and correspondingly, the clear marks contained in the image captured by the imaging device are located at different positions on the marker plate.

[0073] Step S12: Determine the target marker in the image, where the sharpness of the target marker is greater than that of other markers in the image.

[0074] In other words, the target marker is the sharpest marker in the image. If the marker board is a depth-of-field test board, and the marker is the scale line displayed on the depth-of-field test board, then the target marker is the sharpest scale line in the image. If the marker board has different objects placed at different locations, and the marker is the object placed on the marker board, then the target marker is the sharpest object in the image.

[0075] Step S13: Based on the position of the target marker in three-dimensional space, determine the diopter of the liquid lens under different adjustment parameters.

[0076] Since the diopter of a liquid lens is equal to 1 / focal length, a change in the diopter of the liquid lens will also change its focal length, meaning the working distance of the liquid lens will change accordingly. The working distance of a liquid lens refers to the relative distance in three-dimensional space between the object in sharp focus and the liquid lens itself. Therefore, a change in the position of a target marker in three-dimensional space reflects a change in the diopter of the liquid lens.

[0077] In view of this, embodiments of this application can determine the diopter of the liquid lens under different adjustment parameters based on the position of the target marker in three-dimensional space.

[0078] To determine the position of a target marker in three-dimensional space, the position of the target marker within the marking board can be determined first. If the marking board is a depth-of-field testing board, and the target marker is a line within that board, the position of the target marker within the board can be determined based on the positions of the lines within the board. If different objects are placed at different locations on the marking board, and the target marker is an object within the board, the position of the target marker within the board can be determined based on the correspondence between the different objects and their positions. Then, based on the target marker's position on the marking board, as well as the board's position, height, and tilt angle, the target marker's position in three-dimensional space can be determined.

[0079] This application provides a method for detecting refractive power. The method is applied to a host computer, and an imaging device connected to the host computer includes a liquid lens to be detected. This imaging device is used to photograph a marker plate through the liquid lens, and different marks are set at different positions on the marker plate. In this method, firstly, images of the marker plate captured by the imaging device at different adjustment parameters of the liquid lens are received; then, a target mark in the image is identified, the sharpness of which is greater than the sharpness of other marks in the image; finally, based on the position of the target mark in three-dimensional space, the refractive power of the liquid lens under different adjustment parameters is determined.

[0080] The solution provided in this application embodiment enables the determination of the refractive power of a liquid lens based on an image captured by the liquid lens. Furthermore, this method eliminates the need for an additional focal length meter, thus reducing the cost of refractive power detection compared to the first prior art method. Additionally, since this method is implemented by a host computer, it reduces manual intervention and improves the accuracy of refractive power detection compared to the second prior art method.

[0081] Furthermore, in the existing method one, a single focal length sensor can only detect the refractive power of one liquid lens at a time. If the refractive power of multiple liquid lenses needs to be detected, each liquid lens must be detected sequentially using the focal length sensor, resulting in low detection efficiency. Moreover, in the existing method two, it is necessary to manually observe the smallest light spot formed by the liquid lens and record the relative distance between the smallest light spot and the liquid lens, which also leads to low detection efficiency. In the solution of this application, the host computer can acquire images captured by multiple imaging devices through the liquid lenses within the same time period, realizing the detection of the refractive power of multiple liquid lenses, thus improving the detection efficiency of refractive power.

[0082] In step S12 of this application, an operation for determining target markers in an image is disclosed. In a feasible design, referring to the flowchart shown in Figure 3, this operation can be implemented through the following steps:

[0083] Step S121: Generate a grayscale curve based on the grayscale values ​​of the pixels of each marker in the image. The grayscale curve is used to characterize the correspondence between the position of the pixel in the marker and the grayscale value.

[0084] For example, the horizontal axis of the coordinate system containing the grayscale curve can represent the position of the pixel, and the vertical axis can represent the grayscale value of the pixel. Specifically, when generating the grayscale curve, several rows of pixels in the area where the marker is located in the image can be determined, and then the average grayscale value of the several rows of pixels in the same column can be determined. The column number of a certain pixel is taken as the position of the pixel, and the average grayscale value of the column is taken as the grayscale value of the pixel.

[0085] For example, the grayscale curve can be shown in Figure 4. In Figure 4, the horizontal axis represents the pixel position from 0 to 2500, corresponding to the pixels from column 0 to column 2500 respectively, and the vertical axis represents the grayscale value from 10 to 110, which means that the grayscale value can be from 10 to 110.

[0086] Step S122: Determine the centroid position of the grayscale curve.

[0087] The centroid of an image can also be called its center of gravity. The location of the vertical dashed line in Figure 4 is the position of this centroid.

[0088] Step S123: Determine the marker corresponding to the centroid position as the target marker.

[0089] Through the operations of steps S121 to S123, a grayscale curve can be generated based on the grayscale values ​​of the pixels of each marker in the image, and the target marker can be determined based on the centroid position of the grayscale curve.

[0090] Alternatively, in another feasible design, the average grayscale value of the pixels contained in each marker in the image can be calculated, and this average value can be used as a parameter to characterize the sharpness of each marker, and the marker with the highest average value can be determined as the target marker.

[0091] Of course, target markers in the image can also be determined by other means during the refractive power measurement process, and this application does not limit this.

[0092] In step S13, the operation of determining the refractive power of the liquid lens under different adjustment parameters based on the position of the target marker in three-dimensional space is disclosed. To clarify the implementation of this operation, this application discloses another embodiment. This operation includes the following steps:

[0093] First, based on the position of the target marker in three-dimensional space and the position of the liquid lens in three-dimensional space, the working distance of the liquid lens is determined. This working distance is the relative distance between the target marker and the liquid lens.

[0094] Then, based on the working distance of the liquid lens, the diopter of the liquid lens under different adjustment parameters is calculated.

[0095] Since the working distance of a liquid lens changes accordingly when its diopter changes, the diopter of the liquid lens under different adjustment parameters can be determined based on the working distance of the liquid lens.

[0096] If the refractive power of the liquid lens is periodically measured, and the refractive power of the liquid lens under different adjustment parameters is calculated based on the working distance of the liquid lens, this can be achieved through the following steps:

[0097] First, based on the first distance in the working distance and the first diopter of the liquid lens at the first distance detected in the first detection cycle, the coefficient in the target formula is calculated.

[0098] The first distance refers to the working distance of the liquid lens under at least two different adjustment parameters within the first detection cycle. In other words, the first distance is the working distance within the same detection cycle, and the first distance includes at least two parameters. Furthermore, the adjustment parameters change at least twice within a detection cycle. For example, within a detection cycle, the adjustment parameters can change incrementally or incrementally according to a preset step size.

[0099] The target formula is used to characterize the relationship between the refractive power and working distance of a liquid lens. In a feasible design, the target formula can be:

[0100] WD n =Kφ n (dpt)+C Formula (1);

[0101] In this design, the coefficients in the target formula include a first coefficient and a second coefficient, where K is the first coefficient, C is the second coefficient, and WD... n For the nth working distance, φ n (dpt) represents the diopter under the adjustment parameters corresponding to the nth working distance.

[0102] Within the same detection cycle, the first and second coefficients in the target formula are usually relatively stable and remain unchanged. In this case, the first and second coefficients in the target formula can be obtained using the least binary method based on the first diopter of the liquid lens at the first distance detected within the first detection cycle.

[0103] Then, by substituting the second distance and the calculated coefficient into the target formula, the second diopter under the adjustment parameters corresponding to the second distance is calculated within the first detection cycle.

[0104] The second distance refers to the other working distances of the liquid lens under different adjustment parameters during the first detection cycle. In other words, the working distances of the liquid lens during the first detection cycle include the first distance and the second distance. Furthermore, the first diopter of the liquid lens at each first distance is pre-detected. In this case, the coefficients in the target formula can be calculated based on the first distance and the first diopter. Then, based on the calculated coefficients and the second distance, the second diopter corresponding to the second distance is calculated, thus achieving the detection of the diopter at the second distance.

[0105] In this embodiment, the principle that the coefficients in the target formula are relatively stable and usually remain unchanged within the same detection cycle is utilized. By pre-detecting a small number of first diopter values ​​at a first distance, the coefficients in the target formula are calculated, thereby determining the target formula. Furthermore, based on the target formula, the second diopter value corresponding to the second distance can be calculated, thus realizing the detection of diopter.

[0106] The above embodiments enable the detection of the refractive power of a liquid lens, obtaining the refractive power of the liquid lens under various adjustment parameters. However, during prolonged use, the refractive power of the liquid lens may change even with the same adjustment parameters. Consequently, the coefficients in the target formula may change under different detection cycles.

[0107] To address this issue, after completing the refractive power test of the liquid lens, the repeatability of the liquid lens's refractive power can be determined based on the refractive power of the liquid lens in each testing cycle. This repeatability characterizes the similarity of the liquid lens's refractive power in different testing cycles. The better the repeatability, the higher the similarity, indicating better performance of the liquid lens; conversely, the worse the repeatability, the lower the similarity, indicating worse performance of the liquid lens.

[0108] Furthermore, the refractive power repeatability of a liquid lens includes dynamic repeatability and static repeatability. Dynamic repeatability refers to the range of diopter fluctuation of the liquid lens when its adjustment parameters are changed continuously from maximum to minimum or from minimum to maximum multiple times. Static repeatability refers to the range of diopter fluctuation of the liquid lens when its adjustment parameters are kept at the same level multiple times.

[0109] To detect the dynamic repeatability of the refractive power of the liquid lens, referring to Figure 5, this application provides another embodiment, which, after step S13, further includes the following operation:

[0110] Step S14: Determine the dynamic repeatability of the refractive power of the liquid lens based on the offset of the coefficients of the target formula calculated in different detection cycles.

[0111] Generally, the larger the offset of this coefficient, the worse the dynamic repeatability of the refractive power of the liquid lens.

[0112] In a feasible design, if the target formula is as shown in formula (1), the offset of the coefficients can be determined by the following formula:

[0113]

[0114] C max =max([C1......Cm ])-min([C1......C m ]) Formula (3);

[0115] Δφ=C max Formula (4) / K'

[0116] Where K' represents the offset of the first coefficient, m represents the number of detection cycles, and K m C represents the first coefficient corresponding to the m-th detection period, and C1 represents the second coefficient corresponding to the first detection period. m Δφ represents the second coefficient corresponding to the m-th detection cycle, and Δφ represents the offset of the second coefficient.

[0117] By using formulas (2) to (4), the offset of the first coefficient in the detection cycle and the offset of the second coefficient in different detection cycles can be obtained, and the dynamic repeatability of the refractive power of the liquid lens can be determined by the offset.

[0118] In addition, the first coefficient usually changes less under different detection cycles, while the second coefficient changes more. Therefore, the dynamic repeatability of refractive power can be determined by the offset of the second coefficient alone, thereby improving the accuracy of determining the dynamic repeatability.

[0119] Alternatively, the dynamic repeatability of refractive power can be determined using another method. Referring to Figure 6, this application provides another embodiment, which, after step S13, further includes the following operation:

[0120] Step S15: Based on the diopter of the liquid lens under different adjustment parameters in different detection cycles, generate diopter detection curves corresponding to each detection cycle. The diopter detection curves are used to characterize the correspondence between the position of the target mark in the image and the diopter.

[0121] In one feasible design, as shown in the example diagram in Figure 7, the horizontal axis of the coordinate system containing the diopter detection curve can be diopter, and the vertical axis can be the position of the pixel in the target mark in the image.

[0122] Step S16: Determine the dynamic repeatability of the refractive power of the liquid lens based on the translation amount between the refractive power detection curves corresponding to each detection cycle.

[0123] Normally, the refractive error measurement curve is a sloping straight line. The greater the shift between the refractive error measurement curves corresponding to different measurement cycles, the worse the dynamic repeatability of the refractive error.

[0124] Through the above embodiments, the dynamic repeatability of the refractive power of the liquid lens can be determined, thereby enabling the determination of the performance of the liquid lens through the dynamic repeatability of the refractive power.

[0125] To detect the static repeatability of the refractive power of the liquid lens, referring to Figure 8, this application provides another embodiment, which, after step S13, further includes the following operation:

[0126] Step S17: Compare the diopter of the liquid lens under the same adjustment parameters during different detection cycles;

[0127] Step S18: Based on the comparison results, determine the static repeatability of the refractive power of the liquid lens.

[0128] Specifically, the smaller the difference in refractive power of the liquid lens under the same adjustment parameters within different detection cycles, the better the static repeatability of the refractive power; conversely, the larger the difference, the worse the static repeatability of the refractive power. For example, the refractive power of the liquid lens under the same current within different detection cycles can be compared, and the static repeatability of the refractive power can be determined based on this comparison result.

[0129] Corresponding to the aforementioned embodiments of the refractive power measurement method, this application also provides a refractive power measurement device. The following are embodiments of the refractive power measurement device, which can be used to execute the method embodiments of this application. For details not disclosed in these device embodiments, please refer to the method embodiments of this application.

[0130] Referring to Figure 9, this application provides a refractive power detection device. The device is applied to a host computer, and the imaging device connected to the host computer includes a liquid lens to be detected. The imaging device is used to photograph a marker plate through the liquid lens. Different marks are set at different positions on the marker plate. The device includes: an image receiving module 110, a mark determination module 210, and a refractive power determination module 310.

[0131] The image receiving module 110 is used to receive images of the marker plate captured by the imaging device when the liquid lens is under different adjustment parameters, wherein the adjustment parameters include at least one parameter for adjusting the diopter of the liquid lens;

[0132] The marker determination module 210 is used to determine a target marker in the image, wherein the clarity of the target marker is greater than that of other markers in the image;

[0133] The diopter determination module 310 is used to determine the diopter of the liquid lens under different adjustment parameters based on the position of the target mark in three-dimensional space.

[0134] In one feasible design, the diopter determination module 310 can determine the diopter of the liquid lens under different adjustment parameters in the following manner:

[0135] Based on the position of the target marker in three-dimensional space and the position of the liquid lens in three-dimensional space, the working distance of the liquid lens is determined, wherein the working distance is the relative distance between the target marker and the liquid lens;

[0136] Based on the working distance of the liquid lens, the diopter of the liquid lens under different adjustment parameters is calculated.

[0137] For example, the diopter determination module 310 is used to calculate a coefficient in a target formula if the diopter of the liquid lens is periodically detected, based on a first distance in the working distance and a first diopter of the liquid lens at the first distance detected in the first detection period, wherein the first distance is the working distance of the liquid lens under at least two different adjustment parameters in the first detection period, and the target formula is used to characterize the relationship between the diopter of the liquid lens and the working distance;

[0138] By substituting the second distance and the calculated coefficient into the target formula, the second diopter under the adjustment parameters corresponding to the second distance is calculated within the first detection cycle, wherein the second distance is other working distances of the liquid lens under different adjustment parameters within the first detection cycle.

[0139] In a feasible design, the target formula is:

[0140] WD n =Kφ n (dpt)+C;

[0141] Wherein, the coefficients include a first coefficient and a second coefficient, K is the first coefficient, C is the second coefficient, and WD n For the nth working distance, φ n (dpt) represents the diopter under the adjustment parameters corresponding to the nth working distance.

[0142] Furthermore, the diopter detection device is also used to determine the dynamic repeatability of the diopter of the liquid lens based on the offset of the coefficients of the target formula calculated in different detection cycles after determining the diopter of the liquid lens under different adjustment parameters.

[0143] Alternatively, based on the diopter of the liquid lens under different adjustment parameters in different detection cycles, a diopter detection curve corresponding to each detection cycle is generated. The diopter detection curve is used to characterize the correspondence between the position of the target mark in the image and the diopter.

[0144] The dynamic repeatability of the refractive power of the liquid lens is determined based on the translation between the refractive power detection curves corresponding to each detection cycle.

[0145] Furthermore, the diopter detection device is also used to, after determining the diopter of the liquid lens under different adjustment parameters, compare the diopter of the liquid lens under the same adjustment parameters in different detection cycles; and based on the comparison results, determine the static repeatability of the diopter of the liquid lens.

[0146] In one feasible design, the marker determination module 210 can determine the target marker in the following manner:

[0147] Based on the grayscale values ​​of the pixels of each marker in the image, a grayscale curve is generated, which is used to characterize the correspondence between the position of the pixel in the marker and the grayscale value;

[0148] Determine the centroid position of the grayscale curve;

[0149] The marker corresponding to the centroid position is determined to be the target marker.

[0150] The apparatus provided in this application embodiment can determine the refractive power of a liquid lens based on an image captured by the liquid lens. Furthermore, this apparatus does not require an additional focal length meter, thus reducing the cost of refractive power detection compared to the first method of the prior art. Moreover, since the apparatus is applied to a host computer for refractive power detection, it reduces the need for manual intervention and improves the accuracy of refractive power detection compared to the second method of the prior art.

[0151] Furthermore, in the existing method one, a single focal length sensor can only detect the refractive power of one liquid lens at a time. If it is necessary to detect the refractive power of multiple liquid lenses, each liquid lens needs to be detected sequentially using the focal length sensor, resulting in low detection efficiency. Moreover, in the existing method two, it is necessary to manually observe the smallest light spot formed by the liquid lens and record the relative distance between the smallest light spot and the liquid lens, which also leads to low detection efficiency. In contrast, in the solution of this application, a single host computer can acquire images captured by multiple imaging devices through liquid lenses within the same time period, enabling the detection of the refractive power of multiple liquid lenses, thus improving the detection efficiency of refractive power.

[0152] Accordingly, this application discloses a host computer, and an imaging device connected to the host computer includes a liquid lens to be detected. The imaging device is used to photograph a marker plate through the liquid lens, and different marks are set at different positions on the marker plate. Referring to the structural schematic diagram shown in Figure 10, the host computer includes:

[0153] Processor 1101 and memory,

[0154] The memory is used to store computer programs;

[0155] The processor 1101 is used to call and execute the computer program stored in the memory. When the computer program stored in the memory is executed by the processor 1101, the host computer executes all or part of the steps in the embodiments corresponding to Figures 2, 3, 5, 6 and 8.

[0156] Furthermore, the host computer may also include a transceiver 1102 and a bus 1103, and the memory includes a random access memory 1104 and a read-only memory 1105.

[0157] The host computer in this embodiment of the invention can correspond to the host computer in the embodiments corresponding to Figures 2, 3, 5, 6 and 8 above. Furthermore, the processor and storage in the host computer can implement the functions and / or various steps and methods implemented by the host computer in the embodiments corresponding to Figures 2, 3, 5, 6 and 8. For the sake of brevity, these will not be described in detail here.

[0158] Accordingly, embodiments of this application provide a refractive power measurement system, which includes:

[0159] A marking board, wherein different markings are set at different positions on the marking board;

[0160] An imaging device including a liquid lens to be tested, wherein the imaging device captures images of a marker plate when the liquid lens is under different adjustment parameters, the adjustment parameters including at least one parameter for adjusting the diopter of the liquid lens;

[0161] The host computer as described in the above embodiments of this application.

[0162] In this application, different marks are set at different positions on the marking plate. In this case, when the refractive power of the liquid lens is different, the high-resolution marks in the image captured by the imaging device are different. Therefore, the high-resolution marks in the image captured by the imaging device reflect the change in the refractive power of the liquid lens.

[0163] In one feasible design, the marking plate can be a depth-of-field test plate, the tilt angle between the depth-of-field test plate and the horizontal plane being between 0 degrees and 60 degrees. The depth-of-field test plate has multiple equally spaced etched lines, which can serve as markers on the marking plate.

[0164] Alternatively, the marker board can be set with different objects (such as line segments of different colors, dotted lines with different degrees of discontinuity, etc.) at different locations. In this case, the host computer can pre-store the correspondence between different objects and their locations.

[0165] Of course, the marking plate may also take other forms, and this application does not limit it.

[0166] The refractive power detection system provided in this application embodiment can detect the refractive power of liquid lenses. Furthermore, since the system does not require a focal length meter and reduces the need for manual intervention, it can reduce the cost of refractive power detection and improve the accuracy of refractive power detection.

[0167] Furthermore, the host computer in this system can acquire images captured by multiple imaging devices through liquid lenses within the same time period, thereby enabling the detection of the refractive power of multiple liquid lenses and thus improving the detection efficiency of refractive power.

[0168] The various illustrative logic units and circuits described in the embodiments of this application can be implemented or operate the described functions using a general-purpose processor, digital information processor, application-specific integrated circuit (ASIC), field-programmable gate array (FPGA) or other programmable logic device, discrete gate or transistor logic, discrete hardware components, or any combination thereof. The general-purpose processor can be a microprocessor; alternatively, it can be any conventional processor, controller, microcontroller, or state machine. The processor can also be implemented using a combination of computing devices, such as a digital information processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital information processor core, or any other similar configuration.

[0169] The steps of the methods or algorithms described in the embodiments of this application can be directly embedded in hardware, software units executed by a processor, or a combination of both. The software unit can be stored in random access memory (RAM), flash memory, read-only memory (ROM), erasable programmable read-only memory (EPROM), registers, hard disks, removable disks, compact disc read-only memory (CD-ROM), or any other form of storage medium in the art. Exemplarily, the storage medium can be connected to the processor so that the processor can read information from the storage medium and write information to the storage medium. Optionally, the storage medium can also be integrated into the processor. The processor and storage medium can be disposed in an ASIC, which can be disposed in a user equipment (UE). Optionally, the processor and storage medium can also be disposed in different components within the UE.

[0170] It should be understood that in the various embodiments of this application, the sequence number of each process does not imply the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0171] In the above embodiments, implementation can be achieved entirely or partially through software, hardware, firmware, or any combination thereof. When implemented using software, it can be implemented entirely or partially in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this application are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that integrates one or more available media. The available medium can be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium, or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0172] The same or similar parts between the various embodiments in this specification can be referred to interchangeably. Each embodiment focuses on the differences from other embodiments. In particular, the device and system embodiments are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to in the description of the method embodiments section.

[0173] Those skilled in the art will clearly understand that the techniques in the embodiments of the present invention can be implemented using software plus necessary general-purpose hardware platforms. Based on this understanding, the technical solutions in the embodiments of the present invention, or the parts that contribute to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in various embodiments or certain parts of the embodiments of the present invention.

[0174] The same or similar parts between the various embodiments in this specification can be referred to mutually. In particular, the embodiments of the road constraint determination device disclosed in this application are basically similar to the method embodiments, so the description is relatively simple, and the relevant parts can be referred to the description in the method embodiments.

[0175] The embodiments of the present invention described above do not constitute a limitation on the scope of protection of the present invention.

Claims

1. A method for measuring refractive power, characterized in that, An imaging device connected to a host computer, used in conjunction with a liquid lens to be detected, is used to photograph a marker plate through the liquid lens. Different markers are set at different positions on the marker plate. The method includes: receiving images of the marker plate captured by the imaging device when the liquid lens is under different adjustment parameters, the adjustment parameters including at least one parameter for adjusting the refractive power of the liquid lens; identifying a target marker in the image, the sharpness of which is greater than the sharpness of other markers in the image; determining the refractive power of the liquid lens under different adjustment parameters based on the position of the target marker in three-dimensional space; the determination of the refractive power of the liquid lens under different adjustment parameters based on the position of the target marker in three-dimensional space includes: determining the working distance of the liquid lens based on the position of the target marker in three-dimensional space and the position of the liquid lens in three-dimensional space, the working distance being the relative distance between the target marker and the liquid lens; based on the... The working distance of the liquid lens is used to calculate the refractive power of the liquid lens under different adjustment parameters. The calculation of the refractive power of the liquid lens under different adjustment parameters based on the working distance of the liquid lens includes: if the refractive power of the liquid lens is periodically detected, based on a first distance in the working distance and a first refractive power of the liquid lens at the first distance detected within a first detection period, a coefficient in a target formula is calculated, wherein the first distance is the working distance of the liquid lens under at least two different adjustment parameters within the first detection period, and the target formula is used to characterize the relationship between the refractive power of the liquid lens and the working distance; by substituting a second distance and the calculated coefficient into the target formula, a second refractive power under the adjustment parameters corresponding to the second distance is calculated within the first detection period, wherein the second distance is other working distances of the liquid lens under different adjustment parameters within the first detection period; the target formula is: Wherein, the coefficients include a first coefficient and a second coefficient, K is the first coefficient, and C is the second coefficient. For the nth working distance, The diopter is the diopter under the adjustment parameters corresponding to the nth working distance.

2. The method according to claim 1, characterized in that, After determining the refractive power of the liquid lens under different adjustment parameters, the method further includes: determining the dynamic repeatability of the refractive power of the liquid lens based on the offset of the coefficients of the target formula calculated in different detection cycles; or, generating refractive power detection curves corresponding to each detection cycle based on the refractive power of the liquid lens under different adjustment parameters in different detection cycles, wherein the refractive power detection curves are used to characterize the correspondence between the position of the target mark in the image and the refractive power; and determining the dynamic repeatability of the refractive power of the liquid lens based on the translation between the refractive power detection curves corresponding to each detection cycle.

3. The method according to claim 1, characterized in that, After determining the refractive power of the liquid lens under different adjustment parameters, the method further includes: comparing the refractive power of the liquid lens under the same adjustment parameters in different detection cycles; and determining the static repeatability of the refractive power of the liquid lens based on the comparison results.

4. The method according to any one of claims 1 to 3, characterized in that, Determining the target marker in the image includes: generating a grayscale curve based on the grayscale values ​​of the pixels of each marker in the image, the grayscale curve being used to characterize the correspondence between the position of the pixel in the marker and the grayscale value; determining the centroid position of the grayscale curve; and determining the marker corresponding to the centroid position as the target marker.

5. A refractive power detection device, characterized in that, An imaging device connected to a host computer includes a liquid lens to be detected. The imaging device is used to photograph a marker plate through the liquid lens. Different markers are set at different positions on the marker plate. The device includes: an image receiving module for receiving images of the marker plate captured by the imaging device when the liquid lens is under different adjustment parameters, the adjustment parameters including at least one parameter for adjusting the refractive power of the liquid lens; a marker determination module for determining a target marker in the image, the target marker having a higher sharpness than other markers in the image; and a refractive power determination module for determining the refractive power of the liquid lens under different adjustment parameters based on the position of the target marker in three-dimensional space. Determining the refractive power of the liquid lens under different adjustment parameters based on the position of the target marker in three-dimensional space includes: determining the working distance of the liquid lens based on the position of the target marker and the position of the liquid lens in three-dimensional space, the working distance being the distance between the target marker and the liquid lens. The relative distance between lenses; calculating the diopter of the liquid lens under different adjustment parameters based on the working distance of the liquid lens; the calculation of the diopter of the liquid lens under different adjustment parameters based on the working distance of the liquid lens includes: if the diopter of the liquid lens is periodically detected, calculating a coefficient in a target formula based on a first distance in the working distance and a first diopter of the liquid lens at the first distance detected in a first detection period, wherein the first distance is the working distance of the liquid lens under at least two different adjustment parameters in the first detection period, and the target formula is used to characterize the relationship between the diopter of the liquid lens and the working distance; calculating the second diopter under the adjustment parameters corresponding to the second distance in the first detection period by substituting the second distance and the calculated coefficient into the target formula, wherein the second distance is other working distances of the liquid lens under different adjustment parameters in the first detection period; the target formula is: Wherein, the coefficients include a first coefficient and a second coefficient, K is the first coefficient, and C is the second coefficient. For the nth working distance, The diopter is the diopter under the adjustment parameters corresponding to the nth working distance.

6. A host computer, characterized in that, The imaging device connected to the host computer includes a liquid lens to be detected. The imaging device is used to photograph the marker plate through the liquid lens. Different marks are set at different positions on the marker plate. The host computer includes a memory and a processor. The memory stores a computer program. When the processor executes the computer program, it implements the method of any one of claims 1 to 4.

7. A refractive power measurement system, characterized in that, include: A marking board, wherein different markings are set at different positions on the marking board; An imaging device including a liquid lens to be detected, wherein the imaging device captures images of the marker plate when the liquid lens is under different adjustment parameters, the adjustment parameters including at least one parameter for adjusting the diopter of the liquid lens; the host computer as described in claim 6.

Citation Information

Patent Citations

  • Detecting system for diopter of progressive multi-focal lens

    CN104605810A

  • Image Processing Device

    JP6693627B1