A full-inspection vision system and alignment method for contact lenses

Through the imaging adjustment component and the spot alignment algorithm, the concentric alignment of optical components in the full-examination vision system of contact lenses is achieved, solving the problem of inaccurate installation of optical components and improving imaging accuracy and equipment stability.

CN118362289BActive Publication Date: 2025-07-29SIGMA SQUARES (BEIJING) TECH CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202410425585.5
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-10
Publication Date
2025-07-29
Estimated Expiration
2044-04-10

AI Technical Summary

Technical Problem

In the prior art, it is difficult to ensure the center alignment of the optical components in the full-examination vision system of the contact lens, resulting in insufficient imaging accuracy and stability.

Method used

The imaging adjustment component and the spot alignment algorithm are used to adjust the positions of the camera body and the light source body, so that the spot of the optical element is located in the center of the image, and the optical axis is concentric alignment using the XYZ three-axis sliding table module and the servo motor.

Benefits of technology

It improves the installation and adjustment accuracy and equipment stability of the visual system, reduces the difficulty of installation and adjustment operation, and ensures the concentric alignment of optical components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118362289B_ABST
    Figure CN118362289B_ABST
Patent Text Reader

Abstract

The present invention relates to the field of vision detection technology, in particular to a full-inspection vision system and alignment method for contact lenses, which includes a chassis, a camera body, a light source body, and an optical element located between the camera body and the light source body; an imaging adjustment assembly for adjusting the camera body and the light source body is provided on the chassis so that the optical axis of the light source body is coaxially corresponding to the image center on the camera body. The optical axis forms a corresponding light spot on the optical element. The optical element is mounted on the chassis through an alignment assembly, and the alignment assembly is used to adjust the position of the optical element so that the light spot is located at the image center. The present invention enables stable coaxial alignment along the optical axis after the device is installed, so as to reduce the difficulty of installation and adjustment operations, improve the installation and alignment accuracy of the vision system, and improve the stability and reliability of the equipment.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of vision detection, and in particular to a full-inspection vision system for contact lenses and an alignment method thereof. Background Art

[0002] The full-inspection vision system for contact lenses has requirements for imaging accuracy and stability. The optical components in the illumination and imaging optical paths need to ensure that their respective installation centers are located on the optical axis of the optical path, that is, it is required that the installation of the optical components needs to ensure central alignment to obtain an imaging effect that meets the design requirements.

[0003] However, due to assembly errors and unclear subjective judgment criteria during manual installation and adjustment, it is difficult to ensure the alignment accuracy, resulting in the inability to well ensure the concentric alignment of the optical components after direct assembly. Summary of the Invention

[0004] Aiming at the deficiencies of the prior art, the present invention provides a full-inspection vision system for contact lenses and an alignment method thereof. After the devices in the full-inspection vision system are installed, they can stably achieve concentric alignment along the optical axis, so as to reduce the difficulty of installation and adjustment operations, improve the installation and alignment accuracy of the vision system, and improve the stability and reliability of the equipment.

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

[0006] The present invention provides a full-inspection vision system for contact lenses, including a chassis, a camera body, a light source body, and an optical element located between the camera body and the light source body;

[0007] An imaging adjustment assembly for adjusting the camera body and the light source body and making the optical axis of the light source body coaxially correspond to the image center on the camera body is provided on the chassis. The optical axis forms a corresponding light spot on the optical element. The optical element is installed on the chassis through an alignment assembly, and the alignment assembly is used to adjust the position of the optical element so that the light spot is located at the image center.

[0008] Wherein, the alignment assembly includes an element installation part for installing the optical element and an element adjustment part connected to the element installation part. The element adjustment part is installed on the chassis and is used to adjust the horizontal position of the optical element;

[0009] The element installation part includes an element installation plate. An element through hole is penetrated through the element installation plate. The optical element is detachably connected to the element installation plate, and the optical element corresponds to the element through hole.

[0010] Among them, the component adjustment part includes a component adjustment plate, a first adjustment member, and a second adjustment member. The component adjustment plate is installed on the chassis. The component installation plate abuts against the top surface of the component adjustment plate. The first adjustment member is installed on the component adjustment plate and acts on two opposite sides of the component installation plate. The second adjustment member is installed on the component adjustment plate and acts on the other two opposite sides of the component installation plate. The component adjustment plate is penetrated by a light-transmitting channel, and the light-transmitting channel is communicated with the component through-hole.

[0011] Among them, a component installation plate is installed on the chassis. An optical component is detachably connected to the component installation plate. At least three of the optical components are arranged along the Y-axis direction, and the number of the optical components is at least two and is arranged along the Y-axis direction.

[0012] Among them, a storage box is installed on the chassis. The component adjustment plate is installed on the top surface of the storage box. A detection port is provided at the top end of the storage box, and the detection port is communicated with the light-transmitting channel;

[0013] The imaging adjustment assembly includes a light source slide plate for installing the light source body, a device slide frame, and a linear module. The light source slide plate slides up and down in the storage box. The device slide frame is slidably connected to the light source slide plate along the Y-axis. The component installation plate is installed on the device slide frame. The linear module is installed on the light source slide plate and is drivingly connected to the device slide frame. The linear module is arranged along the Y-axis.

[0014] Among them, the light source body is detachably connected to the light source slide plate. A light-shielding plate is provided on the front end cover of the light source body. The light-shielding plate is provided with a light-passing optical component. The component adjustment plate and the light-shielding plate are respectively located on the upper and lower sides of the component installation plate;

[0015] The imaging adjustment assembly further includes an XYZ three-axis slide table module, an X-axis fine adjustment member, and a Y-axis fine adjustment member. The XYZ three-axis slide table module is installed on the chassis and the output end is connected to the installation end of the X-axis fine adjustment member. The output end of the X-axis fine adjustment member is connected to the installation end of the Y-axis fine adjustment member. The camera body is installed on the output end of the Y-axis fine adjustment member.

[0016] Among them, a turntable is rotatably connected to the chassis. A servo motor is provided on the chassis. The output end of the servo motor is coaxially drivingly connected to the turntable. A uniformly distributed carrier is installed on the circumference of the turntable. A placement hole for placing a test object is penetrated through the carrier. A placement channel is provided on the turntable, and the placement channel is communicated with the placement hole. When the turntable rotates in place, the optical axis passes through the placement hole.

[0017] The present invention also provides a method for full inspection and visual alignment of contact lenses, including the following steps:

[0018] S01. Calculate the deviation between the spot shape on the light-passing optical component and the image center through the spot alignment algorithm, and adjust the position of the camera body to align the camera body with the light-passing optical component on the light-shielding plate;

[0019] S02. Move the optical component along the Y-axis. Calculate the deviation between the spot shape on one of the optical components and the image center through the spot alignment algorithm, and adjust the position of this optical component to align it with the camera body;

[0020] S03. Calculate the deviation between the spot shape on the optical element and the image center through the spot alignment algorithm, and adjust the position of the optical element to align the optical element with the camera body;

[0021] S04. Align the remaining optical components with the camera body one by one to verify the alignment degree between the optical element and the camera body.

[0022] Among them, the spot alignment algorithm includes the following steps:

[0023] 1) The camera body collects images in real time;

[0024] 2) Preprocess the image through Gaussian filtering;

[0025] 3) Binarize the image through adaptive threshold segmentation to extract the spot contour;

[0026] 4) Select the reference contour for evaluating the alignment between the spot and the image according to the input spot shape;

[0027] 5) Calculate the contour center through the centroid method:

[0028] Among them: M 00 = ∑ i ∑ j f(i, j), M 10 = ∑ i ∑ j if(i, j), M 01 = ∑ i ∑ j jf(i, j);

[0029] X and Y are the positions of the spot center in the image;

[0030] 6) Calculate the deviation between the contour center and the image center;

[0031] X_dis = X - X0; Y_dis = Y - Y0;

[0032] X0 and Y0 are the image center.

[0033] Among them, in S01, the center of the outer contour of the light spot on the light-passing optics is detected in real time, and the deviations X_dis and Y_dis of the image center are calculated. If X_dis and Y_dis exceed the allowable range, the XYZ three-axis slide table module is manually adjusted to align the camera body with the light-passing optical component on the light-shielding plate, that is, the values of X_dis and Y_dis are less than ±20. If the camera body exceeds the allowable range, the X_dis value is adjusted by the X-axis fine adjustment component and the Y_dis value is adjusted by the Y-axis fine adjustment component, so that the X_dis and Y_dis values of the camera body are both less than ±20, and the position of the camera body is initially located.

[0034] In S02, one of the optical components is selected as a reference to align with the camera body to determine the debugging position. Since the optical components are arranged along the Y-axis, only by moving the optical component along the Y direction, the remaining optical components can be aligned with the camera body, which is convenient for automatically switching the optical components.

[0035] In S03, first, the debugging position is determined by one of the aforementioned optical components, the deviation between the optical component and the camera body is detected by the light spot alignment algorithm, and the position of the optical component is corrected by the first adjustment component and the second adjustment component to align the optical component with the camera.

[0036] S05: The turntable is driven to rotate by the servo motor. When the carrier is in the initial position and the object to be tested is placed in the placement hole, the object to be tested is within the image center of the camera body. The optical axis of the light source body smoothly passes through the placement channel and forms a light spot on the object to be tested. The deviation between the carrier and the camera body is detected by the light spot alignment algorithm, and the imaging adjustment component and the alignment component are adjusted to make the optical axis, the light-passing optical component, the optical component, the optical element, the carrier and the camera body coaxially aligned.

[0037] Advantages of the present invention:

[0038] The present invention enables the components in the full-inspection vision system to stably achieve concentric alignment along the optical axis after installation, so as to reduce the difficulty of installation and adjustment operations, improve the installation and alignment accuracy of the vision system, and improve the stability and reliability of the equipment. Description of the drawings

[0039] Figure 1 It is a three-dimensional structure schematic diagram of the full-inspection vision system for contact lenses of the present invention.

[0040] Figure 2 It is a structural sectional view of the full-inspection vision system for contact lenses of the present invention.

[0041] Figure 3 It is an exploded schematic diagram of a partial structure of the turntable.

[0042] Figure 4 It is a three-dimensional structure schematic diagram of the present invention without a turntable.

[0043] Figure 5 Schematic diagram of the installation structure of the camera body

[0044] Figure 6 Exploded structure schematic of the component adjustment part Figure 1 .

[0045] Figure 7 Exploded structure schematic of the component adjustment part Figure 2 .

[0046] Figure 8 Schematic diagram of the installation structure of the device carriage and the component mounting board

[0047] Figure 9 Schematic diagram of the structure when the component mounting board is separated from the light shielding board and the device carriage

[0048] 01. Camera body; 02. Light source body; 03. Optical element; 04. Optical components; 05. Carrier; 051. Placement hole

[0049] 1. Chassis; 201. Component mounting part; 2011. Component through hole; 202. Component adjustment part; 2021. Component adjustment plate; 20211. Light transmission channel; 2022. First adjustment member; 2023. Second adjustment member

[0050] 3. Component mounting board; 4. Storage box; 401. Detection port

[0051] 501. Light source slide plate; 502. Device carriage; 503. Linear module; 504. XYZ three-axis slide table module; 505. X-axis fine adjustment member; 506. Y-axis fine adjustment member

[0052] 6. Light shielding board; 7. Light transmitting optical element; 8. Turntable; 801. Placement channel; 9. Servo motor Detailed implementation manners

[0053] For the convenience of those skilled in the art to understand, the present invention will be further described below in conjunction with embodiments and the accompanying drawings. The content mentioned in the implementation manners does not limit the present invention. The present invention will be described in detail below with reference to the accompanying drawings.

[0054] Refer to Figures 1 to 9As shown in the figure, the present invention provides a full-inspection vision system for contact lenses, which includes a chassis 1, a camera body 01, a light source body 02, and an optical element 03 located between the camera body 01 and the light source body 02; an imaging adjustment assembly for adjusting the camera body 01 and the light source body 02 is provided on the chassis 1, so that the optical axis of the light source body 02 is coaxially corresponding to the image center on the camera body 01. The optical axis forms a corresponding light spot on the optical element 03. The optical element 03 is installed on the chassis 1 through an alignment assembly, and the alignment assembly is used to adjust the position of the optical element 03 so that the light spot is located at the image center.

[0055] In this embodiment, the alignment assembly includes an element mounting part 201 for mounting the optical element 03 and an element adjustment part 202 connected to the element mounting part 201. The element adjustment part 202 is installed on the chassis 1 and is used to adjust the horizontal position of the optical element 03; the element mounting part 201 includes an element mounting plate, and an element through-hole 2011 penetrates through the element mounting plate. The optical element 03 is detachably connected to the element mounting plate, and the optical element 03 corresponds to the element through-hole 2011.

[0056] Reference Figure 6 、 7 As shown in the figure, in this embodiment, the element adjustment part 202 includes an element adjustment plate 2021, a first adjustment member 2022, and a second adjustment member 2023. The element adjustment plate 2021 is installed on the chassis 1, and the element mounting plate abuts against the top surface of the element adjustment plate 2021. The first adjustment member 2022 is installed on the element adjustment plate 2021 and acts on two opposite sides of the element mounting plate. The second adjustment member 2023 is installed on the element adjustment plate 2021 and acts on the other two opposite sides of the element mounting plate. A light-transmitting channel 20211 penetrates through the element adjustment plate 2021, and the light-transmitting channel 20211 communicates with the element through-hole 2011; both the first adjustment member 2022 and the second adjustment member 2023 are adjustment screws. During actual adjustment, the screws are rotated, and the element adjustment plate 2021 is pushed to move in the horizontal direction, thereby adjusting the horizontal position; specifically, the optical element 03 is a lens.

[0057] Reference Figure 4 、 7 As shown in the figure, in this embodiment, a component mounting plate 3 is installed on the chassis 1, and an optical component 04 is detachably connected to the component mounting plate 3. At least three of the optical components 04 are arranged along the Y-axis direction, and the number of the optical elements 03 is at least two and is arranged along the Y-axis direction; reference Figure 7 、 9As shown, in actual application, first align the optical element 03 with the camera body 01 to determine the position of the camera body 01. The optical component 04 is specifically a diaphragm. One of the diaphragms is used as the debugging diaphragm. Adjust the debugging diaphragm through the deviation between the camera body 01 and the debugging diaphragm. Take the debugging diaphragm as the alignment reference, and select the other two diaphragms as the first working diaphragm and the second working diaphragm. Since the diaphragms are arranged along the Y-axis direction, during use, the diaphragm to be used can be moved along the Y-axis, which is convenient to select.

[0058] Reference Figure 4 、 7 、8 As shown, in this embodiment, a storage box 4 is installed on the chassis 1. The component adjustment plate 2021 is installed on the top surface of the storage box 4. A detection port 401 is provided at the top end of the storage box 4, and the detection port 401 is communicated with the light transmission channel 20211. The imaging adjustment assembly includes a light source slide plate 501 for installing the light source body 02, a device slide carriage 502, and a linear module 503. The light source slide plate 501 slides up and down in the storage box 4. The device slide carriage 502 is slidably connected to the light source slide plate 501 along the Y-axis. The component mounting plate 3 is installed on the device slide carriage 502. The linear module 503 is installed on the light source slide plate 501 and is drivingly connected to the device slide carriage 502. The linear module 503 is arranged along the Y-axis; Reference Figure 8 As shown, drive the optical component 04 to move along the Y-axis through the linear module 503. Specifically, a lead screw motor module can be installed on the storage box 4. The lead screw motor module is a prior art, so it will not be elaborated. Connect the output end of the lead screw motor module to the light source slide plate 501 to facilitate driving the light source slide plate 501 to move up and down, effectively adjusting the height of the light source body 02.

[0059] Reference Figure 4 、 7 、9 As shown, in this embodiment, the light source body 02 is detachably connected to the light source slide plate 501. A light shielding plate 6 is provided on the front end cover of the light source body 02. The light shielding plate 6 is provided with a light passing optical element 7. The light passing optical element 7 is a light passing diaphragm, which is convenient to form a light spot through the optical axis. The component adjustment plate 2021 and the light shielding plate 6 are respectively located on the upper and lower sides of the component mounting plate 3. The imaging adjustment assembly further includes an XYZ three-axis slide table module 504, an X-axis fine adjustment member 505, and a Y-axis fine adjustment member 506. The XYZ three-axis slide table module 504 is installed on the chassis 1 and the output end is connected to the installation end of the X-axis fine adjustment member 505. The output end of the X-axis fine adjustment member 505 is connected to the installation end of the Y-axis fine adjustment member 506. The camera body 01 is installed on the output end of the Y-axis fine adjustment member 506; Reference Figure 4 、 5As shown in Figures 6, 7, and 9, in actual application, the optical axis is emitted from the light source body 02 and passes through the light-transmitting optical part 7, the optical component 04, the detection port 401, the light-transmitting channel 20211, the component through-hole 2011, and the optical component 03 in sequence before being emitted to the camera body 01, ensuring the smooth illumination of the light source body 02; the position of the camera body 01 is preliminarily adjusted through the XYZ three-axis slide module 504, and the position of the camera body 01 is accurately adjusted through the Y-axis fine-tuning part 506 and the X-axis fine-tuning part 505 to improve the adjustment accuracy.

[0060] refer to Figure 1 、 2 As shown in Figure 3, in this embodiment, a turntable 8 is rotatably connected to the base frame 1, and a servo motor 9 is provided on the base frame 1. The output end of the servo motor 9 is coaxially driven and connected to the turntable 8. The turntable 8 is circumferentially installed with evenly distributed carriers 05, and the carriers 05 are penetrated by placement holes 051 for placing objects to be measured. A placement channel 801 is provided on the turntable 8, and the placement channel 801 is connected to the placement hole 051. When the turntable 8 is rotated into place, the optical axis passes through the placement hole 051.

[0061] refer to Figures 1 to 9 As shown, the present invention also provides a contact lens full inspection visual alignment method, comprising the following steps:

[0062] S01. Calculate the deviation between the light spot shape on the transparent optical element 7 and the image center using a light spot alignment algorithm, and adjust the position of the camera body 01 so that the camera body 01 is aligned with the light-transmitting optical element 7 on the light shield 6.

[0063] S02, moving the optical component 04 along the Y axis, calculating the deviation between the light spot shape on one of the optical components 04 and the image center using a light spot alignment algorithm, and adjusting the position of the optical component 04 so that the optical component 04 is aligned with the camera body 01;

[0064] S03, using a light spot alignment algorithm, calculating the deviation between the light spot shape on the optical element 03 and the image center, and adjusting the position of the optical element 03 so that the optical element 03 is aligned with the camera body 01;

[0065] S04 , align the remaining optical components 04 with the camera body 01 one by one, and verify the alignment between the optical element 03 and the camera body 01 .

[0066] In this embodiment, the light spot alignment algorithm includes the following steps:

[0067] 1) The camera body 01 collects images in real time;

[0068] 2) Preprocess the image by Gaussian filtering;

[0069] 3) Binarize the image through adaptive threshold segmentation to extract the spot contour;

[0070] 4) Select a reference contour for evaluating the alignment between the spot and the image according to the input spot morphology;

[0071] 5) Calculate the contour center by the centroid method:

[0072] Where: M 00 = ∑ i ∑ j f(i, j), M 10 = ∑ i ∑ j if(i, j), M 01 = ∑ i ∑ j jf(i, j);

[0073] X and Y are the positions of the spot center in the image;

[0074] 6) Calculate the deviation between the contour center and the image center;

[0075] X_dis = X - X0; Y_dis = Y - Y0;

[0076] X0 and Y0 are the image center.

[0077] In this embodiment, in S01, the center of the outer contour of the spot on the light-passing optics is detected in real time, and the deviations X_dis and Y_dis of the image center are calculated. If X_dis and Y_dis exceed the allowable range, the XYZ three-axis slide table module 504 is manually adjusted to align the camera body 01 with the light-passing optical component 7 on the light-shielding plate 6, that is, the values of X_dis and Y_dis are less than ±20. If the camera body 01 exceeds the allowable range, the X_dis value is adjusted by the X-axis fine-tuning component 505 and the Y_dis value is adjusted by the Y-axis fine-tuning component 506 to make the X_dis and Y_dis values of the camera body 01 both less than ±20, and the position of the camera body 01 is initially located;

[0078] In S02, one of the optical components 04 is selected as a reference to align with the camera body 01 to determine the debugging position. Since the optical component 04 is arranged along the Y-axis, only by moving the optical component 04 along the Y direction, the remaining optical components 04 can be aligned with the camera body 01, which is convenient for automatically switching the optical component 04;

[0079] In S03, first, the debugging position is determined through one of the foregoing optical components 04, the deviation between the optical element 03 and the camera body 01 is detected through the spot alignment algorithm, and the position of the optical element 03 is corrected by the first adjusting member 2022 and the second adjusting member 2023 to align the optical element 03 with the camera;

[0080] S05. The turntable 8 is driven to rotate by the servo motor 9. When the carrier 05 is in the initial position and the object to be measured is placed in the placement hole 051, the object to be measured is located in the image center of the camera body 01. The optical axis of the light source body 02 smoothly passes through the placement channel 801 and forms a light spot on the object to be measured. The deviation between the carrier 05 and the camera body 01 is detected by the light spot alignment algorithm, and the imaging adjustment component and the alignment component are adjusted so that the optical axis, the light-transmitting optical component 7, the optical component 04, the optical element 03, the carrier 05 and the camera body 01 are coaxially aligned.

[0081] In actual application, the distance between the light spot corresponding to the transparent optical component 7, optical component 04 and optical element 03 and the center of the image on the camera body 01 is displayed in real time through the camera body 01. The specific deviation adjustment part adopts automatic adjustment and part adopts manual adjustment. After adjustment, the deviation is displayed in real time through the camera body 01 to ensure the adjustment accuracy and improve the alignment accuracy; then the light spot alignment algorithm determines the deviation between the light spot on the object to be measured and the camera body 01, locates the optical axis, the transparent optical component 7, the optical component 04 and the optical element 03, so that the camera body 01, the light source body 02, the optical component 04, the optical element 03 and the carrier 05 are aligned, so that the components in the full inspection vision system can be stably concentrically aligned along the optical axis after installation, so as to reduce the difficulty of installation and adjustment operation, improve the installation and alignment accuracy of the vision system, and improve the stability and reliability of the equipment.

[0082] 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 this profession can make some changes or modifications to equivalent embodiments of equivalent changes by using the technical content disclosed above without departing from the scope of the technical solution of the present invention. However, any simple modifications, 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. An all-inspection vision system for contact lenses, characterized in that: It includes a chassis (1), a camera body (01), a light source body (02), and an optical element (03) located between the camera body (01) and the light source body (02); An imaging adjustment assembly for adjusting the camera body (01) and the light source body (02) is provided on the chassis (1) so that the optical axis of the light source body (02) is coaxially corresponding to the image center on the camera body (01). The optical axis forms a corresponding light spot on the optical element (03). The optical element (03) is mounted on the chassis (1) through an alignment assembly. The alignment assembly is used to adjust the position of the optical element (03) so that the light spot is located at the image center; The alignment assembly includes an element mounting part (201) for mounting the optical element (03) and an element adjustment part (202) connected to the element mounting part (201). The element adjustment part (202) is mounted on the chassis (1) and is used to adjust the horizontal position of the optical element (03); The element mounting part (201) includes an element mounting plate. An element through-hole (2011) penetrates through the element mounting plate. The optical element (03) is detachably connected to the element mounting plate, and the optical element (03) corresponds to the element through-hole (2011); The element adjustment part (202) includes an element adjustment plate (2021), a first adjustment member (2022), and a second adjustment member (2023). The element adjustment plate (2021) is mounted on the chassis (1). The element mounting plate abuts against the top surface of the element adjustment plate (2021). The first adjustment member (2022) is mounted on the element adjustment plate (2021) and acts on two opposite sides of the element mounting plate. The second adjustment member (2023) is mounted on the element adjustment plate (2021) and acts on the other two opposite sides of the element mounting plate. A light-transmitting channel (20211) penetrates through the element adjustment plate (2021), and the light-transmitting channel (20211) is communicated with the element through-hole (2011); An electronic component mounting plate (3) is mounted on the chassis (1). An optical electronic component (04) is detachably connected to the electronic component mounting plate (3). At least three optical electronic components (04) are arranged along the Y-axis direction, and the number of optical elements (03) is at least two and is arranged along the Y-axis direction; It also includes the full inspection visual alignment method for contact lenses, including the following steps: S01. Through a light spot alignment algorithm, calculate the deviation between the light spot shape on the light-passing optical part (7) and the image center, and adjust the position of the camera body (01) so that the camera body (01) is aligned with the light-passing optical part (7) on the light-shielding plate (6); S02. Move the optical electronic component (04) along the Y-axis. Through the light spot alignment algorithm, calculate the deviation between the light spot shape on one of the optical electronic components (04) and the image center, and adjust the position of the optical electronic component (04) so that the optical electronic component (04) is aligned with the camera body (01); S03. Calculate the deviation between the spot pattern on the optical element (03) and the image center through the spot alignment algorithm, and adjust the position of the optical element (03) to align the optical element (03) with the camera body (01). S04. Align the remaining optical components (04) with the camera body (01) one by one to verify the alignment between the optical element (03) and the camera body (01). The spot alignment algorithm includes the following steps: 1) The camera body (01) captures images in real time. 2) Preprocess the images through Gaussian filtering. 3) Segment the binary image through adaptive thresholding to extract the spot contour. 4) Select the reference contour for evaluating the alignment between the spot and the image according to the input spot pattern. 5) Calculate the contour center through the centroid method: where: M 00 = ∑ i ∑ j f(i, j), M 10 = ∑ i ∑ j if(i, j), M 01 = ∑ i ∑ j jf(i, j); X and Y are the positions of the spot center in the image. 6) Calculate the deviation between the contour center and the image center. X_dis = X - X0; Y_dis = Y - Y0; X0 and Y0 are the image center.

2. The full-inspection vision system for contact lenses according to claim 1, wherein: A storage box (4) is installed on the chassis (1). The component adjustment plate (2021) is installed on the top surface of the storage box (4). A detection port (401) is provided at the top of the storage box (4), and the detection port (401) is communicated with the light transmission channel (20211). The imaging adjustment assembly includes a light source slide plate (501) for installing the light source body (02), a device slide carriage (502), and a linear module (503). The light source slide plate (501) slides up and down in the storage box (4). The device slide carriage (502) is slidably connected to the light source slide plate (501) along the Y-axis. The component mounting plate (3) is installed on the device slide carriage (502). The linear module (503) is installed on the light source slide plate (501) and is drivingly connected to the device slide carriage (502). The linear module (503) is arranged along the Y-axis.

3. The full-inspection vision system for contact lenses according to claim 2, characterized in that: The light source body (02) is detachably connected to the light source slide plate (501). A light shielding plate (6) is provided on the front end cover of the light source body (02). The light shielding plate (6) is provided with a light passing optical element (7). The component adjustment plate (2021) and the light shielding plate (6) are respectively located on the upper and lower sides of the component mounting plate (3). The imaging adjustment assembly further includes an XYZ three-axis slide table module (504), an X-axis fine adjustment component (505), and a Y-axis fine adjustment component (506). The XYZ three-axis slide table module (504) is installed on the chassis (1) and the output end is connected to the installation end of the X-axis fine adjustment component (505). The output end of the X-axis fine adjustment component (505) is connected to the installation end of the Y-axis fine adjustment component (506). The camera body (01) is installed on the output end of the Y-axis fine adjustment component (506).

4. The full-inspection vision system for contact lenses according to claim 1, characterized in that: A turntable (8) is rotatably connected to the chassis (1). A servo motor (9) is provided on the chassis (1). The output end of the servo motor (9) is coaxially drivingly connected to the turntable (8). Uniformly distributed carriers (05) are circumferentially installed on the turntable (8). A placement hole (051) for placing a test object is penetrated through the carrier (05). A placement channel (801) is provided on the turntable (8). The placement channel (801) communicates with the placement hole (051). When the turntable (8) rotates to the in-place position, the optical axis passes through the placement hole (051).

5. The full-inspection vision system for contact lenses according to claim 1, characterized in that ; In S01, the center of the outer contour of the light spot in the optical path is detected in real time, and the deviations X_dis and Y_dis of the image center are calculated. If X_dis and Y_dis exceed the allowable range, the XYZ three-axis slide table module (504) is manually adjusted to align the camera body (01) with the optical element (7) on the light-shielding plate (6), that is, the values of X_dis and Y_dis are less than ±20. If the camera body (01) exceeds the allowable range, the X_dis value is adjusted by the X-axis fine adjustment part (505) and the Y_dis value is adjusted by the Y-axis fine adjustment part (506) so that the X_dis and Y_dis values of the camera body (01) are both less than ±20, and the position of the camera body (01) is initially positioned; In S02, one of the optical components (04) is selected as a reference to be aligned with the camera body (01) to determine the debugging position. Since the optical components (04) are arranged along the Y axis, only by moving the optical components (04) along the Y direction, the remaining optical components (04) can be aligned with the camera body (01), which is convenient for automatically switching the optical components (04); In S03, first, the debugging position is determined by one of the aforementioned optical components (04). The deviation between the optical element (03) and the camera body (01) is detected by the light spot alignment algorithm. The position of the optical element (03) is corrected by the first adjustment part (2022) and the second adjustment part (2023) so that the optical element (03) is aligned with the camera; S05: The servo motor (9) drives the turntable (8) to rotate. When the carrier (05) is in the initial position and the test object is placed in the placement hole (051), the test object is within the image center of the camera body (01). The optical axis of the light source body (02) smoothly passes through the placement channel (801) and forms a light spot on the test object. The deviation between the carrier (05) and the camera body (01) is detected by the light spot alignment algorithm, and the imaging adjustment component and the alignment component are adjusted to make the optical axis, the optical element (7), the optical component (04), the optical element (03), the carrier (05) and the camera body (01) coaxially aligned.

Citation Information

Patent Citations

  • Optical axis calibration system and method of lens measurement equipment

    CN113551879A

  • Optical lens surface defect detection device based on dark field microscopic imaging principle

    CN113686786A

  • Virtual image-based VR optical lens small defect detection method and equipment

    CN117110297A

  • Optical calibration device for assisting optical path alignment

    CN213812818U

  • Warp measuring device

    CN218673533U