Contact lens detection system and method
Through the design of the contact lens detection system, the problem of low manual detection efficiency and insufficient accuracy is solved through the design of the contact lens detection system, and efficient identification and detection of lens defects is achieved.
Patent Information
- Application Number
- CN202411204878.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-03
AI Technical Summary
During the manufacturing process of existing contact lenses, artificial lens defect detection efficiency is low and not accurate enough to effectively detect defective lenses.
A contact lens detection system is designed, including lighting module, imaging module, image acquisition module and processing module. Through the light beam, the image is collected, and the image is converted into grayscale images, and divided into multiple To calculate the brightness average value, compare it with the preset value, mark the abnormal area.
It improves the efficiency and accuracy of contact lens detection, and can effectively identify abnormal areas of the lens, including defects such as bubbles, to ensure quality.
Smart Images

Figure CN119064354A_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of contact lens detection technology, and in particular, relates to a contact lens detection system and method. Background Art
[0002] In recent years, contact lenses have become one of the indispensable daily necessities in people's lives. In order to meet the huge demand, related manufacturers must use machines to mass-produce contact lenses.
[0003] In the process of manufacturing contact lenses, machines often damage the contact lens during steps such as forming, trimming or demoulding, thus causing lens defects.
[0004] In order to ensure that defective lenses do not enter the market, relevant manufacturers will conduct checks during the manufacturing process to maintain quality, such as through testing. Generally speaking, the current testing method is mainly done manually.
[0005] The disadvantage of the above manual inspection is that the efficiency of confirming lens defects is too low, and the standards of manual judgment are often inconsistent, which makes the inspection inaccurate, and thus causes the problem of being unable to effectively detect defective contact lenses. Summary of the invention
[0006] In view of this, the main purpose of the present application is to provide a contact lens detection system and method.
[0007] As one aspect of the present application, the technical solution adopted is as follows: a contact lens detection system, the detection system comprising:
[0008] An illumination module, used to provide the light source required for contact lens detection;
[0009] A carrier, used for carrying the contact lens to be tested;
[0010] An imaging module, used for imaging the light beam from the lighting module through the contact lens;
[0011] Wherein, the imaging module comprises switchable bright and dark imaging surfaces, and the light beam of the illumination module through the contact lens forms corresponding first and second images on the bright and dark imaging surfaces;
[0012] An image acquisition module is used to acquire the first imaged and the second imaged spot images after imaging by the imaging module, and is configured as a first detection image and a second detection image;
[0013] A processing module, the processing module is coupled to the image acquisition module; the processing module includes a processor and a memory electrically connected to the processor, the memory stores a calculation program for the processor to execute, and when the processor executes the calculation program, the following steps are performed:
[0014] Reading the first detection image and the second detection image captured by the image acquisition module;
[0015] Convert the first detection image and the second detection image into grayscale images, and divide the first detection image and the second detection image into a plurality of equal regions, respectively, calculate the brightness of the equal image regions, and obtain the average brightness of the equal regions corresponding to the first detection image and the second detection image;
[0016] The brightness average values of the equal areas corresponding to the first detection image and the second detection image are compared with the corresponding preset average values. If there are abnormal comparison values in the comparison values of the two images, and the areas corresponding to the abnormal comparison values in the two images overlap, it is an abnormal area of the contact lens, and the processor marks the abnormal area.
[0017] Further to the first aspect, a beam splitter is arranged in front of the contact lens to combine the light sources to form a composite beam, the composite beam is transmitted to the contact lens and passes through the contact lens, and the composite beam passing through the contact lens is imaged by an imaging module.
[0018] Further to the first aspect, the imaging portion in the imaging module is arc-shaped.
[0019] Further to the first aspect, the light source is ultraviolet light or red light.
[0020] Further to the first aspect, the light source is combined by a beam splitter to form a composite light beam, the composite light beam passes through a contact lens, the imaging module is switched to a bright imaging surface, the composite light beam forms a first image on the bright imaging surface, and the image acquisition module acquires a spot image of the first image and configures it as a first detection image;
[0021] The light source is combined by a beam splitter to form a composite light beam. The composite light beam passes through a contact lens, and the imaging module is switched to a dark imaging surface. The composite light beam forms a second image on the dark imaging surface. The image acquisition module acquires the spot image of the second image and configures it as a second detection image.
[0022] The processor reads the first detection image and the second detection image;
[0023] Convert the first detection image and the second detection image into grayscale images, and divide the first detection image and the second detection image into a plurality of equal regions, respectively, calculate the brightness of the equal image regions, and obtain the average brightness of the equal regions corresponding to the first detection image and the second detection image;
[0024] The brightness average values of the equal areas corresponding to the first detection image and the second detection image are compared with the corresponding preset average values. If there are abnormal comparison values in the comparison values of the two images, and the areas corresponding to the abnormal comparison values in the two images overlap, it is an abnormal area of the contact lens, and the processor marks the abnormal area.
[0025] Further to the first aspect, the light source is a ring-shaped array of light emitting diodes, and the ring-shaped array of light emitting diodes has a tilt angle.
[0026] Further, one or more beam splitters are provided.
[0027] Furthermore, it also includes a filter, which is arranged behind the contact lens and allows the light beam of the lighting module to pass through the contact lens.
[0028] As another aspect of the present application, a contact lens detection method is applied to the contact lens detection system, which is as follows:
[0029] s1, placing the contact lens to be tested on the carrier, setting the lighting module and the contact lens at the same level, and allowing the light source of the lighting module to pass through the contact lens;
[0030] s2, switching the imaging module between the bright and dark imaging planes, so that the light beam from the light source passing through the contact lens forms a corresponding first image and a second image on the bright and dark imaging planes;
[0031] s3. The image acquisition module acquires the first imaging and second imaging spot images after the imaging module is imaged, and configures them as the first detection image and the second detection image;
[0032] s4. The processor in the processing module reads the first detection image and the second detection image acquired by the image acquisition module; converts the first detection image and the second detection image into grayscale images, and divides the first detection image and the second detection image into a plurality of equal regions, respectively, calculates the brightness of the equal image regions, and obtains the average brightness value of the equal regions corresponding to the first detection image and the second detection image; compares the average brightness value of the equal regions corresponding to the first detection image and the second detection image with the corresponding preset average value; if there is an abnormal comparison value in the comparison values of the two images, and the regions corresponding to the abnormal comparison values in the two images overlap, it is an abnormal region of the contact lens, and the processor marks the abnormal region.
[0033] Compared with the prior art, the present application has the beneficial effect of converting the two collected detection images into grayscale images and then dividing them into multiple equally divided areas, calculating the average brightness value in the equally divided areas and comparing the average brightness value with the corresponding preset average value, if there is an abnormal comparison value in the comparison values of the two images, and the areas corresponding to the abnormal comparison values in the two images overlap, then it is an abnormal area of the contact lens. BRIEF DESCRIPTION OF THE DRAWINGS
[0034] The following drawings are only used to illustrate and explain the present application, and are not used to limit the scope of the present application, wherein:
[0035] Figure 1 A schematic diagram of the detection system used in this application;
[0036] Figure 2 is a schematic block diagram of the detection system in this application;
[0037] Figure 3 It is a schematic block diagram of the detection method in this application. DETAILED DESCRIPTION
[0038] In order to make the purpose, technical solution, design method and advantages of this application more clear, the following is a further detailed description of this application through specific embodiments in conjunction with the accompanying drawings. It should be understood that the specific embodiments described here are only used to explain this application and are not used to limit this application.
[0039] The appearance of bubbles in the manufacturing process of contact lenses is an issue that needs to be taken seriously, because it may affect the quality and use effect of the lenses. The main reasons for the generation of bubbles are as follows: 1. Improper injection process - During the lens injection process, if the injection speed is too fast or the injection volume is too large, the liquid may form bubbles on the surface or inside the lens; if the air is not fully removed during the injection, bubbles will also remain in the lens; 2. Problems in the mold closing between the mold and the mold shell after injection - During the mold closing process between the mold and the mold shell after injection, if the operation is improper or the mold temperature, pressure and other conditions are not suitable, bubbles may also be generated; 3. Material problems - During the processing of the contact lens material, if it is affected by uneven radiation dose or temperature, bubbles may also be generated inside the material; 4. Incomplete cleaning - If the lens is not thoroughly cleaned before injection, impurities or moisture remain on the surface, bubbles may also be formed during the injection process. This application is aimed at the detection of contact lenses with bubbles, and its specific implementation method is as follows:
[0040] Reference Figures 1 to 3 , the present application provides a contact lens detection system, the detection system comprising: an illumination module 10, for providing a light source required for contact lens detection;
[0041] A carrier 20, used for carrying a contact lens 30 to be tested;
[0042] An imaging module 40, used for imaging the light beam of the lighting module 10 through the contact lens 30; wherein the imaging module 40 comprises switchable bright and dark imaging surfaces, and the light beam of the lighting module 10 through the contact lens forms corresponding first and second images on the bright and dark imaging surfaces;
[0043] An image acquisition module 50, used for acquiring the first imaging and the second imaging spot images after imaging by the imaging module, configured as the first detection image and the second detection image;
[0044] A processing module, the processing module is coupled to the image acquisition module 50; the processing module includes a processor and a memory electrically connected to the processor, the memory stores a calculation program for the processor to execute, and when the processor executes the calculation program, the following steps are performed:
[0045] Reading the first detection image and the second detection image captured by the image acquisition module 50;
[0046] Convert the first detection image and the second detection image into grayscale images, and divide the first detection image and the second detection image into a plurality of equal regions, respectively, calculate the brightness of the equal image regions, and obtain the average brightness of the equal regions corresponding to the first detection image and the second detection image;
[0047] If the first detection image and the second detection image are divided into 5 equal parts, the average brightness values of the equal parts in the first detection image are compared with the preset average values corresponding to the first detection image, and the comparison values in the first detection image are recorded as: a1, a2, a3, a4, a5;
[0048] Compare the average brightness values of the equal areas in the second detection image with the preset average values corresponding to the second detection image, and record the comparison values in the second detection image as: A1, A2, A3, A4, A5;
[0049] If one of the five values a1-a5 is lower than the other four, the region where it is located is marked as as;
[0050] If one of the five values A1-A5 is lower than the other four, the area where it is located is marked and recorded as As;
[0051] Check whether the area where as and As are located overlaps. If so, the area is an abnormal area of the contact lens, and the processor marks the abnormal area and records it as the presence of bubbles in the area on the contact lens.
[0052] In the above embodiment, if there is a bubble in a certain area on the contact lens, when the light source is activated and the light beam of the light source passes through the contact lens, the refractive index of the area where the bubble exists is different from that of other areas. Therefore, when the light beam passes through the bubble area, the light beam is dispersed, and the image at the corresponding imaging module is darker, which will reduce the average brightness of the area.
[0053] It should be noted that the two preset average values corresponding to the first detection image and the second detection image are preset in advance, and their calculation process is consistent with the calculation process of the brightness average values in the equal parts of the first detection image and the second detection image.
[0054] Reference Figures 1 to 3 A beam splitter is arranged in front of the contact lens 30 to combine the light sources to form a composite light beam, and the composite light beam is transmitted to the contact lens 30 and passes through the contact lens 30. The composite light beam passing through the contact lens 30 is imaged by the imaging module 40; the forming portion in the imaging module 40 is arc-shaped.
[0055] Reference Figures 1 to 3 The light source is ultraviolet light or red light, or other light is selected, which is compatible with the imaging module 40, and are all products in the prior art, so as to be able to pass through the contact lens and present the transmitted light as.
[0056] Reference Figures 1 to 3 As an embodiment of the present application, a light source is combined by a beam splitter (not shown) to form a composite light beam. The beam splitter is configured according to the requirements and is a product in the prior art. The composite light beam formed by the beam splitter passes through the contact lens, and the imaging module is switched to the bright imaging surface. The composite light beam forms a first image on the bright imaging surface. The image acquisition module acquires the spot image of the first image and configures it as a first detection image.
[0057] The light source is combined by a beam splitter to form a composite light beam. The composite light beam passes through a contact lens, and the imaging module is switched to a dark imaging surface. The composite light beam forms a first image on the dark imaging surface. The image acquisition module acquires a spot image of a second image and configures it as a second detection image.
[0058] The processor reads the first detection image and the second detection image;
[0059] Convert the first detection image and the second detection image into grayscale images, and divide the first detection image and the second detection image into a plurality of equal regions, respectively, calculate the brightness of the equal image regions, and obtain the average brightness of the equal regions corresponding to the first detection image and the second detection image;
[0060] If the first detection image and the second detection image are divided into 5 equal parts, the average brightness values of the equal parts in the first detection image are compared with the preset average values corresponding to the first detection image, and the comparison values in the first detection image are recorded as: a1, a2, a3, a4, a5;
[0061] Compare the average brightness values of the equal areas in the second detection image with the preset average values corresponding to the second detection image, and record the comparison values in the second detection image as: A1, A2, A3, A4, A5;
[0062] If one of the five values a1-a5 is lower than the other four, the region where it is located is marked as as;
[0063] If one of the five values A1-A5 is lower than the other four, the area where it is located is marked and recorded as As;
[0064] Check whether the areas where as and As are located overlap. If they overlap, the area is an abnormal area of the contact lens, and the processor marks the abnormal area and records it as the presence of bubbles in the area on the contact lens.
[0065] In the above, the light source is a ring array of light emitting diodes, and the ring array of light emitting diodes has a tilt angle;
[0066] In the above, one or more beam splitters are provided, and the number of the beam splitters may be the same as the number of the light emitting diodes.
[0067] As another embodiment of the present application, refer to Figures 1 to 3 The filter 60 is disposed behind the contact lens, and the filter 60 allows the light beam of the lighting module 10 to pass through the contact lens 30 .
[0068] The contact lens detection method is as follows, which is applied to the detection system mentioned above, refer to Figure 3 As shown, there are the following steps:
[0069] s1, placing the contact lens to be tested on the carrier, setting the lighting module and the contact lens at the same level, and allowing the light source of the lighting module to pass through the contact lens;
[0070] s2, switching the imaging module between the bright and dark imaging planes, so that the light beam from the light source passing through the contact lens forms a corresponding first image and a second image on the bright and dark imaging planes;
[0071] s3. The image acquisition module acquires the first imaging and second imaging spot images after the imaging module is imaged, and configures them as the first detection image and the second detection image;
[0072] s4. Compare the average brightness value of the equal areas in the first detection image with the preset average value corresponding to the first detection image, and compare the average brightness value of the equal areas in the second detection image with the preset average value corresponding to the second detection image; if there is an abnormal comparison value in the comparison values of the two images, and the areas corresponding to the abnormal comparison values in the two images overlap, it is an abnormal area of the contact lens, and the processor marks the abnormal area.
[0073] It should be noted that the components involved in this application are all products in the prior art, and they only need to be able to detect contact lenses, so they will not be elaborated here.
[0074] The embodiments of the present application have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The selection of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. Contact lens detection system, It is characterized in that The detection system includes: An illumination module, used to provide the light source required for contact lens detection; A carrier, used for carrying the contact lens to be tested; An imaging module, used for imaging the light beam of the illumination module through the contact lens; wherein the imaging module comprises switchable bright and dark imaging surfaces, and the light beam of the illumination module through the contact lens forms corresponding first and second images on the bright and dark imaging surfaces; An image acquisition module is used to acquire the first imaged and the second imaged spot images after imaging by the imaging module, and is configured as a first detection image and a second detection image; A processing module, the processing module is coupled to the image acquisition module; the processing module includes a processor and a memory electrically connected to the processor, the memory stores a calculation program for the processor to execute, and when the processor executes the calculation program, the following steps are performed: Reading the first detection image and the second detection image captured by the image acquisition module; Convert the first detection image and the second detection image into grayscale images, and divide the first detection image and the second detection image into a plurality of equal regions, respectively, calculate the brightness of the equal image regions, and obtain the average brightness of the equal regions corresponding to the first detection image and the second detection image; The brightness average values of the equal areas corresponding to the first detection image and the second detection image are compared with the corresponding preset average values. If there are abnormal comparison values in the comparison values of the two images, and the areas corresponding to the abnormal comparison values in the two images overlap, it is an abnormal area of the contact lens, and the processor marks the abnormal area.
2. The contact lens detection system according to claim 1, It is characterized in that A beam splitter is arranged in front of the contact lens to combine the light sources to form a composite beam, which is then transmitted to the contact lens and passes through the contact lens. The composite beam passing through the contact lens is imaged by an imaging module.
3. The contact lens detection system according to claim 2, It is characterized in that The imaging part in the imaging module is in an arc shape.
4. The contact lens detection system according to claim 2, It is characterized in that The light source is ultraviolet light or red light.
5. The contact lens detection system according to claim 2, It is characterized in that The light source is combined by a beam splitter to form a composite light beam. The composite light beam passes through a contact lens, and the imaging module is switched to a bright imaging surface. The composite light beam forms a first image on the bright imaging surface. The image acquisition module acquires the spot image of the first image and configures it as a first detection image. The light source is combined by a beam splitter to form a composite light beam. The composite light beam passes through a contact lens, and the imaging module is switched to a dark imaging surface. The composite light beam forms a second image on the dark imaging surface. The image acquisition module acquires the spot image of the second image and configures it as a second detection image. The processor reads the first detection image and the second detection image; Convert the first detection image and the second detection image into grayscale images, and divide the first detection image and the second detection image into a plurality of equal regions, respectively, calculate the brightness of the equal image regions, and obtain the average brightness of the equal regions corresponding to the first detection image and the second detection image; The brightness average values of the equal areas corresponding to the first detection image and the second detection image are compared with the corresponding preset average values. The area where the difference after comparison is smaller than the difference of other equal areas and the overlap is the abnormal area of the contact lens, and the abnormal area is marked.
6. The contact lens detection system according to claim 4, It is characterized in that The light source is a circular array of light emitting diodes, and the circular array of light emitting diodes has a tilt angle.
7. The contact lens detection system according to claim 6, It is characterized in that One or more beam splitters are provided.
8. The contact lens detection system according to claim 4, It is characterized in that The invention also comprises a filter, which is arranged behind the contact lens and allows the light beam of the lighting module to pass through the contact lens.
9. A method for detecting contact lenses, applied to the contact lens detection system according to claim 1, It is characterized in that The details are as follows: s1, placing the contact lens to be tested on the carrier, setting the lighting module and the contact lens at the same level, and allowing the light source of the lighting module to pass through the contact lens; s2, switching the imaging module between the bright and dark imaging planes, so that the light beam from the light source passing through the contact lens forms a corresponding first image and a second image on the bright and dark imaging planes; s3. The image acquisition module acquires the first imaging and second imaging spot images after the imaging module is imaged, and configures them as the first detection image and the second detection image; s4. The processor in the processing module reads the first detection image and the second detection image acquired by the image acquisition module; The first detection image and the second detection image are converted into grayscale images, and the first detection image and the second detection image are respectively divided into a plurality of equal areas, the brightness of the equal image areas is calculated, and the average brightness value of the equal areas corresponding to the first detection image and the second detection image is obtained; the average brightness value of the equal areas corresponding to the first detection image and the second detection image is compared with the corresponding preset average value. If there is an abnormal comparison value in the comparison values of the two images, and the areas corresponding to the abnormal comparison values in the two images overlap, it is an abnormal area of the contact lens, and the processor marks the abnormal area.
Citation Information
Patent Citations
Image comparison method and image comparison system based on gray value
CN109508722A
Contact lens defect detection method and system
CN118275443A
Method in the preparation of samples for microscopic examination, and apparatus for checking the coverslipping quality of samples
US20130217065A1
Optical method and system for defects detection in three-dimensional structures
US20170138868A1
Multi-optic vision device utilizing area-scanning for detecting defects
US20170221193A1
