Contact lens three-dimensional shape measurement method and device and contact lens defect detection system

By measuring and modeling the physical structural parameters of the lens and adjusting the visual component parameters, the problem of inconsistent detection of contact lenses with different processing techniques or powers is solved, and detection accuracy and efficiency are improved.

CN118558618AActive Publication Date: 2024-08-30SIGMA SQUARES (BEIJING) TECH CO LTD

Patent Information

Application Number
CN202410458647.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-04-17
Publication Date
2024-08-30
Estimated Expiration
2044-04-17

AI Technical Summary

Technical Problem

Existing contact lens defect detection equipment cannot effectively distinguish contact lenses with different processing techniques or powers, resulting in inconsistent detection results and frequent over-inspections.

Method used

By measuring the physical structural parameters of the lens, a three-dimensional topography model is established, and based on the mapping relationship between the model and the visual component parameters, the detection configuration is adjusted to ensure that the posture during detection is consistent with the environment.

Benefits of technology

The accuracy and efficiency of contact lens defect detection are improved and over-detection is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118558618A
    Figure CN118558618A
Patent Text Reader

Abstract

The invention relates to the technical field of defect detection, in particular to a contact lens three-dimensional shape measurement method and device and a contact lens defect detection system.The contact lens three-dimensional shape measurement method comprises the following steps that S01, physical structure parameters of a to-be-detected lens are obtained; s02, extracting physical structure characteristic values of the to-be-tested lens according to the physical structure parameters; s03, establishing a mapping relation between the physical structure characteristic value and the visual component parameter; and S04, according to the mapping relation, mapping the physical structure characteristic value to the visual component parameter, and outputting the visual component parameter. According to the method, the three-dimensional morphology represented during defect imaging is pre-detected, so that the posture during detection and the solution environment are kept consistent with the three-dimensional morphology represented during defect imaging, and the detection efficiency and accuracy of lens defect detection equipment are improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of defect detection, and in particular to a contact lens three-dimensional shape measurement method and device, and a contact lens defect detection system. Background Art

[0002] In recent years, general-purpose automated equipment based on machine vision for contact lens defect detection has gradually begun to replace traditional contact lens defect detection that relies on manual operation. Based on a reasonable configuration of visual components, including lighting and imaging optical components, a general-purpose automated equipment can achieve better detection results for contact lens defect detection. For objects to be detected such as contact lenses, the materials, processing technology, focal length, etc. of the incoming materials often have many different specifications or characteristics. However, general-purpose automated equipment does not systematically distinguish the above specifications or characteristics during detection. This type of equipment uses a set or a limited set of visual components based on a limited number of lens materials to perform defect detection on contact lenses.

[0003] This results in inconsistent image features and inconsistent contrast of defect signals when the visual inspection system collects images of contact lenses with different processing types or different focal types. In order to ensure that the production quality of all types of contact lenses meets the requirements, strict detection limits are often set in actual inspection, which leads to a large number of over-inspections.

[0004] Therefore, a detection system with adjustable configuration designed to take into account the differences in imaging images of contact lenses with different processing techniques or different focal lengths will greatly improve the accuracy of contact lens defect detection. Summary of the invention

[0005] In view of the deficiencies in the prior art, the present invention provides a contact lens three-dimensional morphology measurement method, device and contact lens defect detection system. By measuring the physical structural parameters of the lens, the present invention aims to pre-detect the three-dimensional morphology of the lens when defect imaging is performed in the defect detection system, so that its posture during detection and the solution environment in which it is located are consistent with the three-dimensional morphology when defect imaging is performed, thereby improving the detection efficiency and accuracy of the lens defect detection equipment.

[0006] In order to solve the above technical problems, the present invention adopts the following technical solutions:

[0007] The present invention provides a method for measuring the three-dimensional shape of a contact lens, comprising the following steps:

[0008] S01, obtaining the physical structure parameters of the lens to be tested;

[0009] S02, extracting the physical structure characteristic value of the lens to be tested according to the physical structure parameters;

[0010] S03, establishing a mapping relationship between physical structure feature values ​​and visual component parameters;

[0011] S04. Map the physical structure feature values ​​to the visual component parameters according to the mapping relationship, and output the visual component parameters.

[0012] Wherein, in S01, the following steps are included:

[0013] S011, obtaining the diameter and sagittal height of the lens to be tested;

[0014] S012. measuring the thickness of the lens to be tested according to the diameter and sagittal height of the lens to be tested;

[0015] S013. Establish a three-dimensional shape of the lens to be tested according to the diameter, sagittal height and thickness of the lens to be tested, and output the physical structure parameters of the lens to be tested.

[0016] Among them, in S012, the lens segment is cut and taken out of the lens, a plurality of local cross-sectional images of the lens segment are captured, the plurality of local cross-sectional images are spliced ​​to obtain a cross-sectional view of the lens segment, the edge features of the cross-sectional view are extracted to obtain a complete cross-sectional edge line image of the lens segment, and the thickness data of the lens segment is read and measured.

[0017] Wherein, in S03, it includes: establishing a mapping relationship between physical structure characteristic values ​​and continuously adjustable visual component parameters through a numerical model of polynomial fitting;

[0018] The mapping relationship between physical structure feature values ​​and discrete optional visual component parameters is established through a classification model based on type division.

[0019] The method of establishing a mapping relationship between physical structure characteristic values ​​and continuously adjustable visual component parameters through a numerical model of polynomial fitting includes:

[0020] The visual component parameters of various types of lenses to be tested are defined to obtain model parameters;

[0021] Performing polynomial fitting based on model parameters and physical structure characteristic values, obtaining a mapping relationship between the physical structure characteristic values ​​and continuously adjustable visual component parameters;

[0022] Among them, the order of the physical structure eigenvalue is greater than or equal to the first order and less than or equal to the fourth order.

[0023] The method of establishing a mapping relationship between physical structure feature values ​​and discrete optional visual component parameters through a classification model divided by type includes:

[0024] According to the classification boundary, a binary model between the physical structure feature value and the discrete optional visual component parameter is established to establish a mapping relationship between the physical structure feature value and the discrete optional visual component parameter;

[0025] Among them, the order of the physical structure eigenvalue is first order.

[0026] The present invention also provides a contact lens three-dimensional shape measuring device, comprising:

[0027] A measuring module, used to obtain the physical structural parameters of the lens to be tested;

[0028] A feature extraction module is used to extract the physical structure feature value of the lens to be tested according to the physical structure parameters;

[0029] A model building module is used to establish a mapping relationship between physical structure feature values ​​and visual component parameters;

[0030] A visual component parameter output module is used to map the physical structure feature value to the visual component parameter according to the mapping relationship, and output the visual component parameter;

[0031] The measurement modules include:

[0032] The diameter and sagitta measurement module is used to obtain the diameter and sagitta of the lens to be tested;

[0033] A thickness measurement module is used to measure the thickness of the lens to be tested according to the diameter and sagittal height of the lens to be tested;

[0034] The three-dimensional reconstruction module is used to establish the three-dimensional morphology of the lens to be tested according to the diameter, sagittal height and thickness of the lens to be tested, and output the physical structure parameters of the lens to be tested.

[0035] Among them, the diameter vector height measurement module includes a point light source, a plano-convex lens, a flat-bottomed glass container, a lens located in the flat-bottomed glass container, a telecentric lens and an industrial camera arranged in sequence along the direction of the light beam. An optical glass plate is placed on the bottom of the flat-bottomed glass container, the lens is placed on the optical glass plate, a solution is provided in the flat-bottomed glass container, and the lens is located in the solution.

[0036] Wherein, the thickness measurement module includes a cutting module and a shape positioning module;

[0037] The cutting module comprises a cutting base, a straight blade and a cushion block. The surface of the cutting base is flat and smooth. There are two straight blades, which are symmetrically arranged on both sides of the cushion block. The distance between the bottom of the cushion block and the front end of the straight blade is greater than the thickness of the lens.

[0038] The shape positioning module includes a scale piece, a transparent plate and a screw. The scale piece is penetrated by a receiving opening extending along the scale direction. The number of the scale pieces is four. One end of the scale piece is attached to the receiving opening of the adjacent scale piece and is fixed by a screw. Every two adjacent scale pieces are perpendicular to each other. The transparent plate is installed on the inner side of the scale piece.

[0039] The thickness measurement module also includes a stage, a microscope objective lens, an eyepiece and an industrial camera which are directly opposite to and sequentially connected to the stage, the eyepiece is connected to a light source interface, and an imaging glass container is placed on the stage.

[0040] The present invention also provides a contact lens defect detection system, including a contact lens three-dimensional shape measuring device, a contact lens automatic feeding device, a contact lens defect imaging device, a contact lens defect image analyzing device and a contact lens automatic unloading device;

[0041] Sampling the lenses of the batch to be inspected, and sending the samples to the contact lens three-dimensional shape measuring device, the lenses of the batch to be inspected are sent to the contact lens defect imaging device by the contact lens automatic feeding device;

[0042] The contact lens three-dimensional shape measuring device sends the visual component parameters to the contact lens defect imaging device, and the contact lens defect imaging device configures the visual component parameters;

[0043] The contact lens defect image analysis device analyzes the imaging image, determines defective products and good products, and sends the judgment result to the contact lens automatic unloading device;

[0044] The automatic contact lens unloading device grabs the lenses in the contact lens defect imaging device to sort and unload them according to the judgment result of the contact lens defect image analysis device.

[0045] Beneficial effects of the present invention:

[0046] The present invention aims to pre-detect the three-dimensional morphology of the lens when defect imaging is performed in a defect detection system by measuring the physical structural parameters of the lens, so that its posture during detection and the solution environment in which it is located are consistent with the three-dimensional morphology when defect imaging is performed, thereby improving the detection efficiency and accuracy of the lens defect detection equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 Schematic diagram of the lens physical structure parameter measurement scheme.

[0048] Figure 2 This is a schematic diagram of the imaging of the diameter vector height measurement module.

[0049] Figure 3 It is a schematic diagram of the structure of the cutting module.

[0050] Figure 4 This is a schematic diagram of the structure of the shape positioning module.

[0051] Figure 5 Schematic diagram of the thickness measurement module imaging.

[0052] Figure 6 This is the thickness measurement workflow diagram.

[0053] Figure 7 Schematic diagram of the reconstructed three-dimensional morphology of a lens.

[0054] Figure 8 It is a contact lens three-dimensional shape measurement device.

[0055] Fig. 9 It is a contact lens defect detection system.

[0056] Figure numerals: 1. point light source; 2. plano-convex lens; 3. flat-bottomed glass container; 4. optical glass plate; 5. lens; 6. solution; 7. telecentric lens; 8. industrial camera; 9. scale; 10. transparent plate; 11. screw; 12. cutting base; 13. straight blade; 14. spacer; 15. stage; 16. microscope objective lens; 17. light source interface; 18. eyepiece; 19. industrial camera; 100. imaging glass container. DETAILED DESCRIPTION

[0057] To facilitate understanding by those skilled in the art, the present invention is further described below in conjunction with examples and drawings. Specific implementation methods of the present invention will be described below. It should be pointed out that in the specific description of these implementation methods, in order to provide a concise description, this specification cannot provide a detailed description of all features of the actual implementation methods.

[0058] refer to Figures 1 to 9 As shown, the present invention provides a method for measuring the three-dimensional shape of a contact lens, comprising the following steps:

[0059] S011, obtaining the diameter and sagittal height of the lens 5 to be tested;

[0060] In actual application, the diameter and sagitta measurement module is used to perform image analysis on the lens 5 and obtain the diameter and sagitta of the lens 5 to be measured, and then the image processing algorithm is used to process and analyze the obtained image; Figure 2As shown, in this embodiment, the diameter vector height measurement module includes a point light source 1, a plano-convex lens 2, a flat-bottomed glass container 3, a lens 5 located in the flat-bottomed glass container 3, a telecentric lens 7 and an industrial camera 8, which are sequentially arranged along the light beam direction. An optical glass plate 4 is placed on the bottom of the flat-bottomed glass container 3, and the lens 5 is placed on the optical glass plate 4. A solution 6 is provided in the flat-bottomed glass container 3, and the lens 5 is located in the solution 6. In actual application, a collimated light beam is obtained by adjusting the distance between the point light source 1 and the plano-convex lens 2 to better present the edge information of the lens 5. The telecentric lens 7 is used to reduce the influence of the field of view angle and stray light on the edge, while ensuring low distortion imaging. The flat-bottomed glass container 3 is provided with a solution 6, and the lens 5 is located in the solution 6. In actual application, a collimated light beam is obtained by adjusting the distance between the point light source 1 and the plano-convex lens 2 to better present the edge information of the lens 5. The telecentric lens 7 is used to reduce the influence of the field of view angle and stray light on the edge, while ensuring low distortion imaging. An optical glass plate 4 is placed in the container 3 to ensure that the bottom surface is smooth and level, reduce the impact of the rough bottom surface on imaging, and reduce measurement errors at the same time; the diameter and sagitta parameter measurement of the lens 5 is intended to pre-detect the three-dimensional morphology of the lens 5 when defect imaging is performed in the defect detection system, and then the lens 5 is attracted and placed in a specific position in the diameter and sagitta measurement system for diameter and sagitta measurement. Multiple measurements are required to take the average value to reduce measurement errors. The above operations can be completed automatically by the equipment without manual operation. Finally, the obtained image is processed and analyzed by the image processing algorithm to obtain the actual diameter and sagitta parameters of the measured lens 5 and send them to the thickness measurement module of the lens 5 for configuring the parameters of the morphology positioning module;

[0061] The image processing algorithm mainly performs noise reduction preprocessing and threshold processing on the image read in the industry to obtain the clear physical boundary of the lens 5 and reduce the error in the diameter and sagitta measurement process; then the edge feature extraction and pixel measurement of the processed image are performed, and then the actual diameter and sagitta of the measured lens 5 are calculated and output according to the conversion ratio between pixels and actual sizes. The specific steps are as follows:

[0062] 1. Read the grayscale image; 2. Use Gaussian low-pass filter operator to reduce noise (such as K_size = 3×3); 3. Threshold segmentation processing (i.e. binarization); 4. Morphological processing; 5. Extract the contour; 6. Filter the contours that meet the shape and calculate the length and width of the circumscribed rectangle of the contour; 7. Calculate the actual length and width of the rectangle based on the conversion ratio between pixels and actual size; 8. Display the image and output the actual length and width; the length of the circumscribed rectangle obtained is the diameter of the measured lens 5, and the width is the vector height of the measured lens 5.

[0063] like Figure 2 As shown, specifically, during the inspection, the lens 5 is placed in a solution 6, and its posture is to be placed on the optical glass plate 4 with its opening facing upward, wherein the solution 6 is consistent with the solution 6 used when defect imaging is performed in the defect detection system, and can be selected from but not limited to standard saline solution or pure water; the optical glass plate 4 is consistent with the material of the lens 5 carrier when defect imaging is performed in the defect detection system, and can be selected from but not limited to K9 glass; the above arrangement ensures that the measured three-dimensional morphology of the lens 5 is consistent with the three-dimensional morphology displayed when defect imaging is performed.

[0064] like Figure 1 , 8 As shown, the present invention also provides a contact lens three-dimensional shape measurement device, comprising: a measurement module, used to obtain the physical structure parameters of the lens 5 to be measured;

[0065] A feature extraction module, used to extract the physical structure feature value of the lens 5 to be tested according to the physical structure parameters;

[0066] A model building module is used to establish a mapping relationship between physical structure feature values ​​and visual component parameters;

[0067] A visual component parameter output module is used to map the physical structure feature value to the visual component parameter according to the mapping relationship, and output the visual component parameter;

[0068] The measurement modules include:

[0069] A diameter and sagittal height measurement module, used to obtain the diameter and sagittal height of the lens 5 to be tested;

[0070] A thickness measurement module, used to measure the thickness of the lens 5 to be tested according to the diameter and sagittal height of the lens 5 to be tested;

[0071] The three-dimensional reconstruction module is used to establish the three-dimensional morphology of the lens 5 to be tested according to the diameter, sagittal height and thickness of the lens 5 to be tested, and output the physical structure parameters of the lens 5 to be tested.

[0072] S012, using a thickness measurement module to measure the thickness of the lens 5 to be tested according to the diameter and sagittal height of the lens 5 to be tested; Figure 3 , 4 As shown, in this embodiment, the thickness measurement module includes a cutting module and a shape positioning module, the cutting module includes a cutting base 12, a straight blade 13 and a cushion block 14, the surface of the cutting base 12 is flat and smooth, the number of the straight blades 13 is two, the two straight blades 13 are symmetrically arranged on both sides of the cushion block 14, and the distance between the bottom of the cushion block 14 and the front end of the straight blade 13 is greater than the thickness of the lens 5; Figure 3As shown, in actual application, since the surface of the cutting base 12 is flat and smooth, the lens 5 can be placed in a fit. The purpose of this design is to ensure the smoothness of the cutting process. The cut lens segment can be perfectly separated from the uncut part. The surface of the cutting base 12 has a standard eye model that is adapted to the maximum diameter of the lens 5. The purpose of this design is not to affect the cutting of the straight blade 13. The lens 5 is stably fitted on the standard eye model, ensuring that the straight blade 13 can cut off the parallel segment near the diameter of the lens 5 at one time; the pad 14 is sandwiched between the two straight blades 13 to control the width of the obtained lens segment. The pad 14 used in the present invention is 1.2-1.7mm, preferably 1.5mm, that is, the width of the cut lens segment is 1.5mm, and the length of the pad 14 is consistent with the double straight blades 13; since the distance between the bottom of the pad 14 and the front end of the straight blade 13 is greater than the thickness of the lens 5, it is ensured that the cut lens 5 can enter the gap in the middle of the double straight blades 13, ensuring the smooth cutting of the lens 5.

[0073] like Figure 4 As shown, the morphology positioning module includes a scale piece 9, a transparent plate 10 and a screw 11. The transparent plate 10 is an acrylic plate to reduce the influence of the edge of the scale piece 9 on the cross-sectional image acquisition of the lens 5. It should be noted that the selected material is only a schematic illustration and can be replaced by a variety of other materials without limitation. The material of the scale piece 9 is 6061-T6 aluminum-magnesium-silicon alloy, the precision of the scale piece 9 is 0.5mm, and the scale piece 9 is penetrated by a receiving opening extending along the scale direction. Specifically, the number of the scale pieces 9 is four, and one end of the scale piece 9 is attached to the receiving opening of the adjacent scale piece 9 and is fixed by a screw 11, and every two The adjacent scale members 9 are perpendicular to each other, and the transparent plate 10 is installed on the inner side of the scale member 9; in actual application, the operator moves the scale member 9 according to the diameter and sagitta parameters of the lens 5 obtained by the diameter and sagitta measurement module, and forms it into a closed rectangle. The length and width of the rectangle correspond to the diameter and sagitta of the lens 5 respectively, so as to limit the cross-sectional posture of the lens 5 and ensure that the obtained cross-sectional shape of the lens 5 is the shape of the lens 5 itself. Then, the screw 11 is rotated to fix the shape positioning module and place it at the specified position of the thickness measurement module. The above-mentioned operations of size adjustment and fixed placement of the shape positioning module are completed manually, and other operations are completed automatically by the equipment.

[0074] like Figure 5As shown, in this embodiment, the thickness measurement module also includes a stage 15, a microscope objective lens 16, an eyepiece 19 and an industrial camera 20 that are directly opposite to and sequentially connected to the stage 15, the eyepiece 19 is connected to a light source interface 17, and an imaging glass container 100 is placed in the stage 15; the operator takes out the lens segment, places it in the shape positioning module and places it according to regulations. Specifically, the shape positioning module is located in the imaging glass container 100 containing a solution 6 (the same solution 6 used in defect imaging in the defect detection system), and the lens segment is placed in a posture to ensure that its diameter and sagittal height correspond to the length and width of the closed rectangle formed by the shape positioning module; through the light source interface 17, the cross-section of the lens 5 to be measured can be reflected and imaged, reducing the complexity of image processing by the later algorithm; as shown in FIG. Figure 6 As shown, in actual application, after the diameter and arrow height measurement module completes its work, the robot arm absorbs the lens 5 and places it on the standard eye model in the thickness measurement module. Another robot arm fits and centers the lens 5 and then sinks and presses the lens 5 to prevent the lens 5 from moving during the cutting process. The robot arm presses the lens 5 only to fix it vertically on both sides of the lens 5 without pulling the shape of the lens 5. In addition, space is left near the diameter, which does not affect the cutting of the lens 5 near the diameter. The rectangular base is in a mechanically fixed state to ensure the stability of the cutting module. After that, the controller receives the instruction to complete the placement of the lens 5, and the robot arm controls the double straight blade 13 to cut the lens 5 along a specific trajectory. After the cutting is completed, the robot arm rises, and the operator takes out the middle lens segment of the double blade, places it in the rectangular frame formed by the shape positioning module, and arranges it according to the regulations (section facing up, diameter corresponding to the length of the rectangle, arrow height corresponding to the width of the rectangle), clicks to start measuring, and the robot arm receives the instruction to start shooting the cross-sectional image. By moving the stage 15, a complete cross-sectional image of the lens 5 composed of multiple partial images can be obtained. The image processing algorithm performs processing such as splicing and edge extraction on the obtained images, and outputs a complete cross-sectional edge line image of the lens 5. In addition, the obtained complete cross-sectional edge line image of the lens 5 is read and measured, and the thickness information of the lens 5 is output.

[0075] S013, according to the diameter, sagittal height and thickness of the lens 5 to be tested, establish the three-dimensional morphology of the lens 5 to be tested, and output the physical structure parameters of the lens 5 to be tested; use the three-dimensional reconstruction module to obtain the data obtained by the thickness measurement module, reconstruct the three-dimensional morphology of the lens 5, and output the characteristic value of the three-dimensional morphology structure, such as Figure 7 As shown, a reconstructed three-dimensional shape of a lens 5 is obtained. In the above operations, the size adjustment and fixed placement of the shape positioning module and the placement of the lens segments need to be manually operated, and the other operations are automatically completed by the equipment.

[0076] S02, extracting physical structure characteristic values ​​of the lens 5 to be tested according to the physical structure parameters; the characteristic extraction module extracts n characteristic values ​​(k1, k2, ..., k n)Extract them. The characteristic values include, but are not limited to, the size of the optical zone, the curvature of the optical zone near the eye end, the curvature of the optical zone far from the eye end, the size of the non-optical zone, the curvature of the non-optical zone near the eye end, the curvature of the non-optical zone far from the eye end, the size of the edge zone, the slope of the edge zone near the eye end, the slope of the edge zone far from the eye end, etc. The model establishment module establishes the mapping relationship between the physical structure parameters and the visual component parameters for optimal defect detection; the visual component parameter output module maps the extracted physical structure parameters to the visual component parameters. Measuring the physical structure parameters of the lens 5 aims to pre-detect the three-dimensional topography of the lens 5 when imaging defects in the defect detection system, so that its posture and the solution 6 environment during detection are consistent with the three-dimensional topography shown during defect imaging, so as to improve the detection efficiency and accuracy of the lens 5 defect detection equipment.

[0077] Specifically, the diameter r1 of the lens 5 can be extracted as a characteristic value, and a binary classification model between the diameter r1 of the lens 5 and the industrial camera model can be established to define the mapping relationship between the two, and the classification boundary is set as R0. When r1 > R0, an industrial camera with a large target surface is selected, and when r1 < R0, an industrial camera with a small target surface is selected.

[0078] Specifically, the curvature k2 of the non-optical zone near the eye end can also be extracted as a characteristic value, and a binary classification model between the curvature k2 of the non-optical zone near the eye end and the illumination source model can be established to define the mapping relationship between the two, and the classification boundary is set as K0. When k1 > K0, an illumination source with a large incident angle is selected, and when k1 < K0, an illumination source with a small incident angle is selected. The definition of the optimal visual component parameters for the lens 5 is obtained through the results of experimental research and numerical simulation of Monte Carlo optical path tracing. In experimental research and numerical simulation, the optimal visual component parameters can make the defect imaging effect reach the best state; and the optimal visual component parameters obtained in experimental research and numerical simulation should be consistent.

[0079] S03. Establish the mapping relationship between the physical structure characteristic values and the visual component parameters; in practical applications, define the visual component parameters, establish a mathematical model between the physical structure parameters and the visual component parameters. The mathematical model includes a numerical model of polynomial fitting and a classification model of type division. The numerical model of polynomial fitting is used to establish numerically adjustable visual component parameters. The order of the characteristic values in the numerical model of polynomial fitting is greater than or equal to the first order and less than or equal to the fourth order. The classification model of type division is a binary classification model and the order of the characteristic values in it is the first order.

[0080] The numerical model of polynomial regression fitting is mainly used to establish the mapping relationship between the numerically adjustable visual component parameters, such as the distance d between the illumination light source and the sample, and the characteristic values ​​of the three-dimensional morphology structure of the lens 5. The order of the characteristic values ​​in the numerical model of polynomial fitting is usually greater than or equal to the first order and less than or equal to the fourth order. Typically, four characteristic values ​​can be extracted, namely, the curvature k1 of the optical zone near the eye end, the curvature k2 of the non-optical zone near the eye end, the slope k3 of the edge zone near the eye end, and the slope k4 of the edge zone far from the eye end. The mapping relationship between the distance d between the illumination light source and the sample and the characteristic values ​​of the three-dimensional morphology structure of the lens 5 is established by a third-order polynomial fitting relationship: d = (A1k1+B1k2+C1k3+D1k4)+(A2k1 2 +B2k2 2 +C2k3 2 +D2k4 2 )+(3k1 3 +B3k2 3 +C3k3 3 +D3k4 4 )+Q

[0081] Specifically, 13 parameters, such as A1, B1, C1, d1, A2, B2, C2, D2, A3, B3, C3, D3, and Q, are model parameters obtained by least squares regression fitting. In this example, in order to obtain the model parameters, it is necessary to define the distance d between the illumination source and the sample of at least 13 types of lenses 5. Obviously, in order to obtain the optimal model parameters, the more types of lenses 5, the better. Considering the efficiency problem, in actual applications, 20 types of lenses 5 are usually selected to define the distance d between the illumination source and the sample to obtain the model parameters. Then, the model is verified. Three types of lenses 5 are selected, and their characteristic values ​​are brought into the numerical model of polynomial fitting to obtain the recommended distance between the illumination source of the lens 5 and the sample; the distance between the illumination source of the lens 5 and the sample is compared with the optimal visual component parameter of the actual lens 5 of this type, the distance d; if the deviation is less than plus or minus 20%, the model is established; if the deviation is greater than plus or minus 20%, it is necessary to select more types of lenses 5, define their optimal visual component parameters, the distance d, use this larger data set to build the model, and then re-verify the model until the model is established. In experience, the expanded data set will not exceed 40 types of lenses 5. Once it exceeds, it is necessary to consider whether the characteristic value selection of the three-dimensional morphological structure of the lens 5 is appropriate.

[0082] The classification model of type division is mainly used to establish the mapping relationship between the adjustable visual component parameters of the components, such as the type of illumination light source, such as surface light source, annular light source, etc., and the characteristic values ​​of the three-dimensional morphology structure of the lens 5. This classification model is usually a two-classification model, and the order of the characteristic values ​​is usually first order.

[0083] S04, mapping the physical structure feature values ​​to the visual component parameters according to the mapping relationship, and outputting the visual component parameters; Figure 8 , 9 As shown, the present invention also provides a contact lens defect detection system, including a contact lens three-dimensional shape measuring device, a contact lens automatic feeding device, a contact lens defect imaging device, a contact lens defect image analyzing device and a contact lens automatic unloading device;

[0084] A sample is taken from the batch of lenses 5 to be inspected, and the samples are sent to the contact lens three-dimensional shape measuring device, and the batch of lenses 5 to be inspected is sent to the contact lens defect imaging device by the contact lens automatic feeding device; in the development stage of the contact lens defect detection system, the measurement module, feature extraction module and model building module are mainly used, and in the use stage of the contact lens defect detection system, the measurement module, feature extraction module, model building module and visual component parameter output module are mainly used; the working principles of the contact lens automatic feeding device, the contact lens defect imaging device and the contact lens automatic unloading device are existing technologies, so they are not repeated; the contact lens three-dimensional shape measuring device sends the visual component parameters to the contact lens defect imaging device, and the contact lens defect imaging device configures the visual component parameters; the contact lens defect image analysis device analyzes the imaging image, judges defective products and good products, and sends the judgment result to the contact lens automatic unloading device; the contact lens automatic unloading device grabs the lenses 5 in the contact lens defect imaging device according to the judgment result of the contact lens defect image analysis device, and sorts and unloads them.

[0085] The above description is only a preferred embodiment of the present invention and does not limit the present invention in any form. Although the present invention is disclosed as a preferred embodiment as above, it is not used to limit the present invention. Any technician familiar with the profession can make some changes or modifications to equivalent embodiments of equivalent changes by using the technical contents disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modification, equivalent changes and modifications made to the above embodiments according to the technology of the present invention are all within the scope of the technical solution of the present invention without departing from the content of the technical solution of the present invention.

Claims

1. Three-dimensional shape measurement method of contact lenses, It is characterized in that The following steps are involved: S01, obtaining the physical structural parameters of the lens to be tested (5); S02, extracting the physical structure characteristic value of the lens to be tested (5) according to the physical structure parameters; S03, establishing a mapping relationship between physical structure feature values ​​and visual component parameters; S04. Map the physical structure feature values ​​to the visual component parameters according to the mapping relationship, and output the visual component parameters.

2. The method for measuring the three-dimensional shape of a contact lens according to claim 1, It is characterized in that In S01, the following steps are included: S011, obtaining the diameter and sagittal height of the lens to be tested (5); S012, measuring the thickness of the lens (5) to be tested according to the diameter and sagittal height of the lens (5) to be tested; S013. According to the diameter, sagittal height and thickness of the lens (5) to be tested, a three-dimensional topography of the lens (5) to be tested is established, and physical structural parameters of the lens (5) to be tested are output.

3. The method for measuring the three-dimensional shape of a contact lens according to claim 2, It is characterized in that In S012, the lens segment in the lens (5) is cut and taken out, a plurality of local cross-sectional images of the lens segment are photographed and acquired, the plurality of local cross-sectional images are spliced ​​to obtain a cross-sectional view of the lens segment, edge features of the cross-sectional view are extracted to obtain a complete cross-sectional edge line image of the lens segment, and thickness data of the lens segment is read and measured.

4. The method for measuring the three-dimensional shape of a contact lens according to claim 1, It is characterized in that In S03, it includes: establishing a mapping relationship between physical structure characteristic values ​​and continuously adjustable visual component parameters through a numerical model of polynomial fitting; The mapping relationship between physical structure feature values ​​and discrete optional visual component parameters is established through a classification model based on type division.

5. The method for measuring the three-dimensional shape of a contact lens according to claim 4, It is characterized in that The method of establishing the mapping relationship between the physical structure characteristic value and the continuously adjustable visual component parameter through the numerical model of polynomial fitting includes: Defining the visual component parameters of various types of lenses (5) to be tested to obtain model parameters; Performing polynomial fitting based on model parameters and physical structure characteristic values, obtaining a mapping relationship between the physical structure characteristic values ​​and continuously adjustable visual component parameters; Among them, the order of the physical structure eigenvalue is greater than or equal to the first order and less than or equal to the fourth order.

6. The method for measuring the three-dimensional shape of a contact lens according to claim 4, It is characterized in that The method of establishing the mapping relationship between the physical structure feature value and the discrete optional visual component parameter through the classification model of type division includes: According to the classification boundary, a binary model between the physical structure feature value and the discrete optional visual component parameter is established to establish a mapping relationship between the physical structure feature value and the discrete optional visual component parameter; Among them, the order of the physical structure eigenvalue is first order.

7. Contact lens three-dimensional shape measurement device, It is characterized in that include: A measuring module, used for obtaining physical structural parameters of the lens (5) to be tested; A feature extraction module, used for extracting physical structure feature values ​​of the lens to be tested (5) according to the physical structure parameters; A model building module is used to establish a mapping relationship between physical structure feature values ​​and visual component parameters; A visual component parameter output module is used to map the physical structure feature value to the visual component parameter according to the mapping relationship, and output the visual component parameter; The measurement modules include: A diameter and sagittal height measurement module, used for obtaining the diameter and sagittal height of the lens to be tested (5); A thickness measurement module, used for measuring the thickness of the lens to be tested (5) according to the diameter and sagittal height of the lens to be tested (5); The three-dimensional reconstruction module is used to establish the three-dimensional appearance of the lens (5) to be tested according to the diameter, sagittal height and thickness of the lens (5) to be tested, and output the physical structure parameters of the lens (5) to be tested.

8. The contact lens three-dimensional shape measuring device according to claim 7, It is characterized in that The diameter-sagittal measurement module comprises a point light source (1), a plano-convex lens (2), a flat-bottomed glass container (3), a lens (5) located in the flat-bottomed glass container (3), a telecentric lens (7), and an industrial camera (8), wherein an optical glass plate (4) is placed on the bottom surface of the flat-bottomed glass container (3), the lens (5) is placed on the optical glass plate (4), a solution (6) is provided in the flat-bottomed glass container (3), and the lens (5) is located in the solution (6).

9. The contact lens three-dimensional shape measuring device according to claim 8, It is characterized in that The thickness measurement module includes a cutting module and a shape positioning module; The cutting module comprises a cutting base (12), a straight blade (13) and a cushion block (14); the surface of the cutting base (12) is flat and smooth; there are two straight blades (13), which are symmetrically arranged on both sides of the cushion block (14); and the distance between the bottom of the cushion block (14) and the front end of the straight blade (13) is greater than the thickness of the lens (5); The topography positioning module comprises a scale piece (9), a transparent plate (10) and a screw (11); the scale piece (9) is penetrated by a receiving opening extending in the scale direction; the number of the scale pieces (9) is four; one end of the scale piece (9) is attached to the receiving opening of an adjacent scale piece (9) and is fixed by means of a screw (11); every two adjacent scale pieces (9) are perpendicular to each other; and the transparent plate (10) is installed on the inner side of the scale piece (9); The thickness measurement module further comprises a stage (15), a microscope objective lens (16), an eyepiece (18) and an industrial camera (19) which are directly opposite to and sequentially connected to the stage (15), the eyepiece (18) being connected to a light source interface (17), and an imaging glass container (100) being placed on the stage (15).

10. Contact lens defect detection system, It is characterized in that It includes a contact lens three-dimensional shape measuring device, a contact lens automatic feeding device, a contact lens defect imaging device, a contact lens defect image analyzing device and a contact lens automatic unloading device; Sampling the batch of lenses (5) to be inspected and sending the samples to a contact lens three-dimensional shape measuring device; the batch of lenses (5) to be inspected are sent to a contact lens defect imaging device by an automatic contact lens feeding device; The contact lens three-dimensional shape measuring device sends the visual component parameters to the contact lens defect imaging device, and the contact lens defect imaging device configures the visual component parameters; The contact lens defect image analysis device analyzes the imaging image, determines defective products and good products, and sends the judgment result to the contact lens automatic unloading device; The automatic contact lens unloading device grabs the lenses (5) in the contact lens defect imaging device according to the judgment result of the contact lens defect image analysis device, and sorts and unloads them.

Citation Information

Patent Citations

  • Imaging simulation method and system for detecting polaroid internal defects

    CN105136821A

  • Defect detection device and method for optical glasses of multi-vision system

    CN108956645A

  • Germanium lens processing equipment and processing method

    CN115213496A

  • High-precision contact lens edge defect detection method and system based on machine vision

    CN117269179A

  • Dry contact lens focal power detection method and detection system

    CN117825010A

Cited By

  • High-precision multi-light-field contact lens edge defect detection method and device based on polar coordinate system

    CN119338797A