Adjustment system and adjustment method for coaxial adjustment of image sensor and lens
By using an internal focusing and collimating device and a lens device in the image sensor and optical lens assembly and adjustment system, the reference optical axis is provided and the attitude of the image sensor and lens is adjusted, thereby solving the problem of poor assembly and alignment coaxiality in the existing technology. Achieving efficient and precise installation and adjustment effects.
Patent Information
- Application Number
- CN202410751304.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-11
- Publication Date
- 2024-08-30
AI Technical Summary
In the prior art, there is a coaxiality difference in the assembly and adjustment of the image sensor and the optical lens, resulting in low assembly and adjustment efficiency and high errors.
An assembly and adjustment system including an optical platform, an internal focusing and collimating device and a lens device is adopted. The internal focusing and collimating device provides a reference optical axis, the sensor device is used to adjust the posture of the image sensor, and the lens device is used to adjust the posture of the optical lens. Achieve high coaxiality between the image sensor and the optical lens.
It achieves high coaxiality, high precision, and high efficiency assembly and adjustment between the image sensor and the optical lens, reducing errors and the risk of manual adjustment during the assembly and adjustment process.
Smart Images

Figure CN118567119A
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of camera alignment, and in particular to an alignment system and an alignment method for coaxial alignment of an image sensor and a lens. Background Art
[0002] When industrial cameras are used as detection systems for distance, contour, plane defects, etc. in the field of machine vision, their optical axes are generally used as reference to adjust the relative position of the detection target and the detection system.
[0003] The commonly used adjustment method for zoom lens imaging systems is to image the same target by changing the focal length of the lens, and to determine the offset between the lens optical axis and the image sensor optical axis by the focus position and the position of the target imaged on the sensor. Since industrial zoom lenses are generally manually zoomed, the current adjustment method is inefficient, and there is a high risk of changing the relative position of the lens during manual focusing. The adjustment method for fixed-focus lens imaging systems is generally to determine the uniformity of the imaging quality of the lens and sensor at different viewing angles. A high uniformity indicates that the current lens and sensor are relatively parallel. However, due to the focal depth of the lens, that is, the optical axis of the lens and the image sensor is offset at a certain angle without affecting the imaging quality, the offset of the optical axis of the lens and the image sensor cannot be corrected, resulting in a certain error in the adjustment result.
[0004] That is to say, in the prior art, there is a problem of poor coaxiality in the assembly and adjustment of the image sensor and the optical lens. Summary of the invention
[0005] The main purpose of the present invention is to provide an alignment system and an alignment method for coaxial alignment of an image sensor and a lens, so as to solve the problem of alignment coaxiality difference between an image sensor and an optical lens in the prior art.
[0006] In order to achieve the above-mentioned purpose, according to one aspect of the present invention, there is provided an adjustment system for coaxial adjustment of an image sensor and a lens, comprising: an optical platform; an internal focusing and collimating device, at least a portion of which is fixed to one end of the optical platform, the internal focusing and collimating device comprising an internal focusing collimator, the internal focusing collimator being able to generate a variety of targets with different focal lengths to provide a reference optical axis; a lens device, at least a portion of which is fixed to the optical platform, the lens device being used to connect the optical lens, the optical lens being movably arranged relative to the internal focusing and collimating device; a sensor device, at least a portion of which is fixed to a side of the lens device away from the internal focusing and collimating device, the sensor device comprising a displacement stage, the displacement stage being used to drive the image sensor to approach or move away from the internal focusing and collimating device, the image sensor being movably arranged relative to the displacement stage so that the optical axis of the image sensor is adjusted close to the reference optical axis.
[0007] Furthermore, the internal focusing collimation device also includes a collimation stage, the collimation stage is fixed on the optical platform, and the internal focusing collimator is fixed on the collimation stage.
[0008] Furthermore, the lens device also includes a lens stage, which is fixed on the optical platform, and the optical lens is movably arranged on the lens stage, and the lens stage can adjust the relative position of the optical lens and the internal focusing and collimating device.
[0009] Furthermore, the sensor device also includes: a sensor carrier, the image sensor is fixed on the sensor carrier, and the sensor carrier can be movably arranged on the displacement stage so that the displacement stage drives the image sensor to move closer to or away from the internal focusing and collimation device; a platform carrier, the platform carrier is fixed on the optical platform, and the displacement stage can be movably arranged on the platform carrier.
[0010] According to another aspect of the present invention, there is provided an alignment method for coaxially aligning an image sensor and a lens. The alignment method adopts the above-mentioned alignment system to coaxially align an image sensor and an optical lens. The alignment method comprises: mounting the image sensor on a sensor stage of a sensor device of the alignment system; determining a sensor deflection state of an optical axis of the image sensor relative to an optical axis of an internal focusing collimator; controlling the sensor device to adjust the posture of the image sensor according to the sensor deflection state so that the image sensor is coaxial with the internal focusing collimator; mounting the optical lens on a lens stage of a lens device of the alignment system; determining a lens deflection state of an optical axis of the optical lens relative to an optical axis of the image sensor; controlling the lens device to adjust the posture of the optical lens according to the lens deflection state so that the optical lens is coaxial with the image sensor.
[0011] Furthermore, the process of determining the sensor deflection state of the optical axis of the image sensor relative to the optical axis of the inner focusing collimator includes: establishing a coordinate system with the light outlet of the inner focusing collimator as the origin, the straight line where the optical axis of the inner focusing collimator is located as the Z axis, the straight line perpendicular to the optical platform as the Y axis, and the straight line perpendicular to the Z axis and the Y axis as the X axis; measuring the sensor deflection direction and sensor deflection angle of the optical axis of the image sensor relative to the optical axis of the inner focusing collimator; and measuring the sensor offset direction and sensor offset amount of the optical axis of the image sensor relative to the XY plane.
[0012] Furthermore, the process of measuring the sensor deflection direction and sensor deflection angle of the optical axis of the image sensor relative to the optical axis of the internal focusing collimator includes: step S31: controlling the displacement stage of the sensor device of the mounting system to D0 (x0, y0); step S32: controlling the internal focusing collimator to focus on F0, so that the target of the internal focusing collimator is focused on the image sensor, and the center pixel coordinates of the target on the image sensor are (x0, y0); step S33: controlling the displacement stage of the sensor device of the mounting system to D1 (x1, y1), D1 is away from the internal focusing collimator relative to D0 in the Z-axis direction, and the center pixel coordinates of the target on the image sensor are (x1, y1); step S34: judging the sensor deflection direction and sensor deflection angle according to the change from D0 to D1.
[0013] Further, according to the change from D0 to D1, the process of determining the sensor deflection direction and the sensor deflection angle includes: defining delta x =x 0 -x 1 ; If delta x is less than 0, the deflection of the optical axis of the image sensor along the Y axis relative to the optical axis of the internal focusing collimator is clockwise; if delta x is greater than 0, the deflection of the optical axis of the image sensor along the Y axis relative to the optical axis of the internal focusing collimator is counterclockwise; if delta x If is equal to 0, the optical axis of the image sensor is not deflected relative to the optical axis of the inner focusing collimator relative to the Y axis.
[0014] Furthermore, according to the change from D0 to D1, the process of determining the sensor deflection direction and the sensor deflection angle also includes: defining delta y =y 0 -y 1 ; If delta y is less than 0, the optical axis of the image sensor is deflected clockwise along the X-axis relative to the optical axis of the internal focusing collimator. y is greater than 0, the optical axis of the image sensor is deflected counterclockwise along the X-axis relative to the optical axis of the internal focusing collimator; if delta y If is equal to 0, the optical axis of the image sensor is not deflected relative to the optical axis of the inner focusing collimator relative to the X-axis.
[0015] Furthermore, the deflection angle tilt of the optical axis of the image sensor relative to the optical axis of the inner focusing collimator along the Y axis is x satisfy:
[0016]
[0017] Where m is the size of a single pixel of the image sensor.
[0018] Furthermore, the deflection angle tilt of the optical axis of the image sensor relative to the optical axis of the inner focusing collimator along the X-axis is y satisfy:
[0019]
[0020] Where m is the size of a single pixel of the image sensor.
[0021] Further, according to the sensor deflection state, the sensor device is controlled to adjust the posture of the image sensor so that the image sensor and the internal focusing collimator are coaxial, including: rotating the image sensor according to the sensor deflection direction and the sensor deflection angle, and repeating steps S31 to S34 until delta x =0 and delta y =0.
[0022] Furthermore, the process of measuring the sensor offset direction and sensor offset amount of the optical axis of the image sensor relative to the XY plane includes: determining the center pixel coordinates (xc, yc) of the image sensor; defining delta xcen =(x 0 -x c )*m; if delta xcen If it is less than 0, the optical axis of the image sensor is offset by delta in the negative direction of the X axis relative to the optical axis of the internal focusing collimator. xcen ; If delta xcen If it is greater than 0, the optical axis of the image sensor is offset by delta along the positive direction of the X axis relative to the optical axis of the internal focusing collimator. xcen ; If delta xcen If is equal to 0, the optical axis of the image sensor has no offset along the X-axis direction relative to the optical axis of the inner focusing collimator.
[0023] Furthermore, the process of measuring the sensor offset direction and sensor offset amount of the optical axis of the image sensor relative to the XY plane also includes: defining delta ycen =(y 0 -y c )*m; if delta ycen If it is less than 0, the optical axis of the image sensor is offset by delta in the negative direction of the Y axis relative to the optical axis of the internal focusing collimator. ycen ; If delta ycen If it is greater than 0, the optical axis of the image sensor is offset by delta along the positive direction of the Y axis relative to the optical axis of the internal focusing collimator. ycen ; If delta ycen If y is equal to 0, the optical axis of the image sensor has no offset along the Y-axis relative to the optical axis of the inner focusing collimator.
[0024] Further, according to the sensor deflection state, the sensor device is controlled to adjust the posture of the image sensor so that the image sensor and the internal focusing collimator are coaxial, including: translating the image sensor according to the sensor offset direction and the sensor offset, and repeating steps S31 to S33 until delta xcen =0 and delta ycen =0.
[0025] Furthermore, before determining the sensor deflection state of the optical axis of the image sensor relative to the optical axis of the inner focusing collimator, the process also includes: controlling the sensor device to drive the image sensor to face the light outlet of the inner focusing collimator of the inner focusing collimator of the mounting system.
[0026] Furthermore, the process of determining the lens deflection state of the optical axis of the optical lens relative to the optical axis of the image sensor includes: establishing a coordinate system with the light outlet of the inner focusing collimator as the origin, the straight line where the optical axis of the inner focusing collimator is located as the Z axis, the straight line perpendicular to the optical platform as the Y axis, and the straight line perpendicular to the Z axis and the Y axis as the X axis; measuring the lens deflection direction and lens deflection angle of the optical axis of the optical lens relative to the optical axis of the image sensor; and measuring the lens offset direction and lens offset amount of the optical axis of the optical lens relative to the XY plane.
[0027] Furthermore, the process of measuring the lens deflection direction and lens deflection angle of the optical axis of the optical lens relative to the optical axis of the image sensor includes: step S51: controlling the internal focusing collimator to focus on F2, where F2 is less than 0; step S52: moving the displacement stage of the adjustment system to D2 (x2, y2) so that the center pixel coordinates of the target imaged on the image sensor are (x2, y2); step S53: controlling the internal focusing collimator to focus on F3, where F3 is infinity; step S54: moving the displacement stage to D3 (x3, y3) so that the center pixel coordinates of the target imaged on the image sensor are (x3, y3); step S55: judging the lens deflection direction and lens deflection angle according to the change from D2 to D3.
[0028] Furthermore, according to the change from D2 to D3, the process of determining the lens deflection direction and the lens deflection angle includes: defining delta x' =x 2 -x 3 ; If delta x' is less than 0, the optical axis of the optical lens is deflected clockwise along the Y axis relative to the optical axis of the image sensor; if delta x' is greater than 0, the optical axis of the optical lens is deflected counterclockwise along the Y axis relative to the optical axis of the image sensor; if delta x'If it is equal to 0, the optical axis of the optical lens has no deflection along the Y-axis direction relative to the optical axis of the image sensor.
[0029] Furthermore, according to the change from D2 to D3, the process of determining the lens deflection direction and the lens deflection angle includes: defining delta y' =y 2 -y 3 ; If delta y' If delta is less than 0, the optical axis of the optical lens is deflected clockwise along the X-axis relative to the optical axis of the image sensor. y' If delta is greater than 0, the optical axis of the optical lens is deflected counterclockwise along the X-axis relative to the optical axis of the image sensor. y' If it is equal to 0, the optical axis of the optical lens has no deflection along the X-axis direction relative to the optical axis of the image sensor.
[0030] Furthermore, the deflection angle tilt of the optical axis of the optical lens relative to the optical axis of the image sensor along the Y axis is x' satisfy:
[0031]
[0032] Where m is the size of a single pixel of the image sensor.
[0033] Furthermore, the deflection angle tilt of the optical axis of the optical lens relative to the optical axis of the image sensor along the X-axis is x' satisfy:
[0034]
[0035] Where m is the size of a single pixel of the image sensor.
[0036] Further, according to the lens deflection state, the lens device is controlled to adjust the posture of the optical lens so that the optical lens and the image sensor are coaxial, including: rotating the optical lens according to the lens deflection direction and the lens deflection angle, and repeating steps S51 to S55 until delta x' =0 and delta y' =0.
[0037] Furthermore, the process of measuring the lens deflection direction and lens deflection angle of the optical axis of the optical lens relative to the optical axis of the image sensor includes: determining the center pixel coordinates (xc, yc) of the image sensor; defining delta xcen' =(x 3 -x c )*m; if delta xcen' If it is less than 0, the optical axis of the optical lens is offset by delta along the negative direction of the X axis relative to the optical axis of the image sensor.xcen' ; If delta xcen' If it is greater than 0, the optical axis of the optical lens is offset by delta along the negative direction of the X axis relative to the optical axis of the image sensor. xcen' ; If delta xcen' If it is equal to 0, the optical axis of the optical lens has no offset along the X-axis relative to the optical axis of the image sensor.
[0038] Furthermore, the process of measuring the lens deflection direction and lens deflection angle of the optical axis of the optical lens relative to the optical axis of the image sensor includes: determining the center pixel coordinates (xc, yc) of the image sensor; defining delta ycen' =(y 3 -y c )*m; if delta ycen' If it is less than 0, the optical axis of the optical lens is offset by delta along the negative direction of the X axis relative to the optical axis of the image sensor. ycen' ; If delta ycen' If it is greater than 0, the optical axis of the optical lens is offset by delta along the negative direction of the X axis relative to the optical axis of the image sensor. ycen' ; If delta ycen' If it is equal to 0, the optical axis of the optical lens has no offset along the X-axis relative to the optical axis of the image sensor.
[0039] Further, according to the lens deflection state, the lens device is controlled to adjust the posture of the optical lens so that the optical lens and the image sensor are coaxial, including: according to the lens offset direction and the lens offset amount, the optical lens is translated, and steps S51 to S54 are repeated until delta xcen' =0 and delta ycen' =0.
[0040] Furthermore, before determining the lens deflection state of the optical axis of the optical lens relative to the optical axis of the image sensor, the process also includes: controlling the lens stage to drive the optical lens to face the light outlet of the internal focusing collimator.
[0041] By applying the technical solution of the present invention, an adjustment system for coaxial adjustment of an image sensor and a lens comprises an optical platform, an internal focusing collimation device, a lens device and a sensor device, wherein at least a portion of the internal focusing collimation device is fixed at one end of the optical platform, the internal focusing collimation device comprises an internal focusing collimator, and the internal focusing collimator can generate a variety of targets with different focal lengths to provide a reference optical axis; at least a portion of the lens device is fixed on the optical platform, the lens device is used to connect the optical lens, and the optical lens is movably arranged relative to the internal focusing collimation device; at least a portion of the sensor device is fixed on a side of the lens device away from the internal focusing collimation device, the sensor device comprises a displacement stage, the displacement stage is used to drive the image sensor to approach or move away from the internal focusing collimation device, and the image sensor is movably arranged relative to the displacement stage so that the optical axis of the image sensor is adjusted close to the reference optical axis.
[0042] By using an internal focusing collimator to provide a reference optical axis, and installing the image sensor on the sensor device, and adjusting the posture of the image sensor using the sensor device, the image sensor and the internal focusing collimator can have high coaxiality. Since the internal focusing device can provide targets of various focal lengths, the offset of the image sensor and the optical lens can be accurately measured by the difference in the imaging position of targets of different focal lengths on the image sensor, and accurate adjustments can be made in combination with a translation stage that has high requirements for positioning accuracy, motion parallelism, and up and down\left and right deflection. In addition, the posture of the optical lens is adjusted by the lens device, and the optical lens and the image sensor are further adjusted with high coaxiality. In this process, the offset of the image sensor and the optical lens can be detected and calculated in real time, and more timely and accurate adjustments can be made using automated devices, achieving high coaxiality, high precision, and high efficiency adjustment. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] The drawings constituting a part of the present application are used to provide a further understanding of the present invention. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0044] Figure 1 A schematic structural diagram of an alignment system for coaxial alignment of an image sensor and a lens according to an optional embodiment of the present invention is shown;
[0045] Figure 2 Shows Figure 1 Schematic diagram of the XYZ coordinate system established in the assembly and adjustment system;
[0046] Figure 3 Shows Figure 1 Schematic diagram of a 2D image pixel coordinate system in an image sensor of an adjustment system;
[0047] Figure 4A flow chart of a method for coaxially aligning an image sensor and a lens according to an optional embodiment of the present invention is shown.
[0048] The above drawings include the following reference numerals:
[0049] 1. Optical platform; 2. Collimation stage; 3. Internal focusing collimator; 4. Lens stage; 5. Platform stage; 6. Translation stage; 7. Sensor stage; 8. Image sensor; 9. Optical lens. DETAILED DESCRIPTION
[0050] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present invention will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0051] It should be noted that, unless otherwise specified, all technical and scientific terms used in this application have the same meanings as commonly understood by ordinary technicians in the technical field to which this application belongs.
[0052] In the present invention, unless otherwise specified, the directional words used, such as "up, down, top, bottom", usually refer to the directions shown in the drawings, or to the components themselves in the vertical, perpendicular or gravity directions; similarly, for ease of understanding and description, "inside and outside" refer to the inside and outside relative to the outline of each component itself, but the above-mentioned directional words are not used to limit the present invention.
[0053] In order to solve the problem of poor coaxiality between the image sensor 8 and the optical lens 9 in the prior art, the present invention provides an alignment system and an alignment method for coaxial alignment of the image sensor 8 and the lens.
[0054] like Figures 1 to 4 As shown, the alignment system for coaxial alignment of the image sensor 8 and the lens comprises an optical platform 1, an internal focusing collimation device, a lens device and a sensor device. At least a portion of the internal focusing collimation device is fixed to one end of the optical platform 1. The internal focusing collimation device comprises an internal focusing collimator 3. The internal focusing collimator 3 can generate a variety of targets with different focal lengths to provide a reference optical axis. At least a portion of the lens device is fixed to the optical platform 1. The lens device is used to connect the optical lens 9. The optical lens 9 is movably arranged relative to the internal focusing collimation device. At least a portion of the sensor device is fixed to a side of the lens device away from the internal focusing collimation device. The sensor device comprises a displacement stage 6. The displacement stage 6 is used to drive the image sensor 8 to approach or move away from the internal focusing collimation device. The image sensor 8 is movably arranged relative to the displacement stage 6 so that the optical axis of the image sensor 8 is adjusted close to the reference optical axis.
[0055] By adopting an internal focusing collimator to provide a reference optical axis, and installing the image sensor 8 on the sensor device, and adjusting the posture of the image sensor 8 by using the sensor device, the image sensor 8 and the internal focusing collimator 3 can have high coaxiality. Since the internal focusing device can provide a variety of targets with different focal lengths, the offset of the image sensor 8 and the optical lens 9 can be accurately measured by the difference in the imaging position of the targets with different focal lengths on the image sensor 8, and accurate adjustment can be made in combination with the translation stage with high requirements for positioning accuracy, motion parallelism, and up and down\left and right deflection. In addition, the posture of the optical lens 9 is adjusted by using the lens device, and the high coaxiality between the optical lens 9 and the image sensor 8 is further adjusted. In this process, the offset of the image sensor 8 and the optical lens 9 can be detected and calculated in real time, and more timely and accurate adjustments can be made by using an automated device, thereby achieving high coaxiality, high precision, and high efficiency adjustment.
[0056] like Figure 1 As shown, the internal focusing collimation device further includes a collimation stage 2, the collimation stage 2 is fixed on the optical platform 1, and the internal focusing collimator 3 is fixed on the collimation stage 2. Since the optical platform 1 provides a relatively horizontal and stable plane, the collimation stage 2 is fixed on the optical platform 1, so that the stability of the internal focusing collimator 3 on the collimation stage 2 can be ensured, so as to provide a more stable reference optical axis as a reference.
[0057] like Figure 1 As shown, the lens device also includes a lens stage 4, which is fixed on the optical platform 1, and the optical lens 9 is movably arranged on the lens stage 4, and the lens stage 4 can adjust the relative position of the optical lens 9 and the internal focusing collimation device. Since the optical platform 1 provides a relatively horizontal and stable plane, the lens stage 4 is arranged on the optical platform 1, which can stably carry the optical lens 9 and facilitate the adjustment of the posture of the optical lens 9.
[0058] like Figure 1 As shown, the sensor device further includes a sensor stage 7 and a platform stage 5, the image sensor 8 is fixed on the sensor stage 7, and the sensor stage 7 is movably arranged on the displacement stage 6, so that the displacement stage 6 drives the image sensor 8 to approach or move away from the internal focusing collimation device; the platform stage 5 is fixed on the optical platform 1, and the displacement stage 6 is movably arranged on the platform stage 5. Since the optical platform 1 provides a relatively horizontal and stable plane, the platform stage 5 is arranged on the optical platform 1 to be more stably supported, so that the displacement stage 6 and the sensor stage 7 are more stable during the activity.
[0059] like Figures 2 to 4As shown, the present invention also provides an adjustment method for coaxial adjustment of an image sensor 8 and a lens, the adjustment method adopts the above-mentioned adjustment system to coaxially adjust the image sensor 8 and the optical lens 9, and the adjustment method comprises: step S10: installing the image sensor 8 on the sensor stage 7 of the sensor device of the adjustment system; step S20: determining the sensor deflection state of the optical axis of the image sensor 8 relative to the optical axis of the internal focusing collimator 3; step S30: according to the sensor deflection state, controlling the sensor device to adjust the posture of the image sensor 8 so that the image sensor 8 is coaxial with the internal focusing collimator 3; step S40: installing the optical lens 9 on the lens stage 4 of the lens device of the adjustment system; step S50: determining the lens deflection state of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8; step S60: according to the lens deflection state, controlling the lens device to adjust the posture of the optical lens 9 so that the optical lens 9 is coaxial with the image sensor 8.
[0060] After the image sensor 8 is installed on the sensor carrier 7 through step S10, the offset state of the image sensor 8 relative to the internal focusing collimator 3 is determined through step S20, and then the posture of the image sensor 8 is adjusted using the sensor device through step S30 to achieve coaxiality between the image sensor 8 and the internal focusing collimator 3. Subsequently, the optical lens 9 is installed on the lens carrier 4 through step S40, and the deflection state of the optical lens 9 relative to the image sensor 8 is confirmed through step S50. Since the image sensor 8 has been installed and adjusted, the optical lens 9 adjusts its posture relative to the image sensor 8 through step S60, so that high-precision coaxial installation of the optical lens 9 and the image sensor 8 can be achieved.
[0061] Specifically, step S10 to step S60 can be implemented through the following process.
[0062] like Figure 2 As shown, the process of determining the sensor deflection state of the optical axis of the image sensor 8 relative to the optical axis of the inner focusing collimator 3 includes: establishing a coordinate system with the light outlet of the inner focusing collimator 3 as the origin, the straight line where the optical axis of the inner focusing collimator 3 is located as the Z axis, the straight line perpendicular to the optical platform 1 as the Y axis, and the straight line perpendicular to the Z axis and the Y axis as the X axis; measuring the sensor deflection direction and sensor deflection angle of the optical axis of the image sensor 8 relative to the optical axis of the inner focusing collimator 3; measuring the sensor offset direction and sensor offset of the optical axis of the image sensor 8 relative to the XY plane. By establishing the XYZ coordinate system, it is convenient to accurately measure the deflection angle and deflection direction of the optical axis of the image sensor 8 relative to the optical axis of the inner focusing collimator 3 and the XY plane in the subsequent process, so as to make accurate adjustments.
[0063] like Figure 3As shown, the process of measuring the sensor deflection direction and sensor deflection angle of the optical axis of the image sensor 8 relative to the optical axis of the inner focusing collimator 3 includes: step S31: controlling the displacement stage 6 of the sensor device of the adjustment system to D0 (x0, y0); step S32: controlling the inner focusing collimator 3 to focus on F0, so that the target of the inner focusing collimator 3 is focused on the image sensor 8, and the center pixel coordinates of the target on the image sensor 8 are (x0, y0); step S33: controlling the displacement stage 6 of the sensor device of the adjustment system to D1 (x1, y1), D1 is away from the inner focusing collimator 3 relative to D0 in the Z-axis direction, and the center pixel coordinates of the target on the image sensor 8 are (x1, y1); step S34: judging the sensor deflection direction and sensor deflection angle according to the change from D0 to D1. By adjusting the image sensor 8 to two different positions through steps S31 to S33, the sensor deflection direction and sensor deflection angle can be judged by using the change of the position where the target is focused on the image sensor 8.
[0064] Specifically, according to the change from D0 to D1, the process of determining the sensor deflection direction and the sensor deflection angle includes: defining delta x =x 0 -x 1 ; If delta x is less than 0, the deflection of the optical axis of the image sensor 8 relative to the optical axis of the internal focusing collimator 3 along the Y axis is clockwise; if delta x is greater than 0, the deflection of the optical axis of the image sensor 8 relative to the optical axis of the inner focusing collimator 3 along the Y axis is counterclockwise; if delta x If it is equal to 0, the optical axis of the image sensor 8 is not deflected relative to the optical axis of the inner focusing collimator 3 relative to the Y axis.
[0065] Specifically, the process of determining the sensor deflection direction and the sensor deflection angle according to the change from D0 to D1 also includes: defining delta y =y 0 -y 1 ; If delta y is less than 0, the optical axis of the image sensor 8 is deflected clockwise along the X-axis relative to the optical axis of the internal focusing collimator 3. y is greater than 0, the optical axis of the image sensor 8 is deflected counterclockwise along the X-axis relative to the optical axis of the internal focusing collimator 3; if delta y is equal to 0, then the optical axis of the image sensor 8 is not deflected relative to the optical axis of the inner focusing collimator 3 relative to the X axis.
[0066] Specifically, the deflection angle tilt of the optical axis of the image sensor 8 relative to the optical axis of the inner focusing collimator 3 along the Y axis is xsatisfy:
[0067]
[0068] Here, m is the size of a single pixel of the image sensor 8 .
[0069] Specifically, the deflection angle tilt of the optical axis of the image sensor 8 relative to the optical axis of the inner focusing collimator 3 along the X-axis is y satisfy:
[0070]
[0071] Here, m is the size of a single pixel of the image sensor 8 .
[0072] Specifically, according to the sensor deflection state, the sensor device is controlled to adjust the posture of the image sensor 8 so that the image sensor 8 is coaxial with the internal focusing collimator 3, including: rotating the image sensor 8 according to the sensor deflection direction and the sensor deflection angle, and repeating steps S31 to S34 until delta x =0 and delta y = 0. Through the above steps, the sensor deflection direction and the sensor deflection angle are determined and calculated, and the image sensor 8 posture is adjusted according to the results. Steps S31 to S34 are repeated to achieve delta x =0 and delta y =0, and finally the optical axis of the image sensor 8 is corrected relative to the optical axis of the inner focusing collimator 3.
[0073] Specifically, the process of measuring the sensor offset direction and sensor offset amount of the optical axis of the image sensor 8 relative to the XY plane includes: determining the center pixel coordinates (xc, yc) of the image sensor 8; defining delta xcen =(x 0 -x c )*m; if delta xcen If it is less than 0, the optical axis of the image sensor 8 is offset by delta in the negative direction of the X axis relative to the optical axis of the internal focusing collimator 3. xcen ; If delta xcen is greater than 0, the optical axis of the image sensor 8 is offset by delta along the positive direction of the X axis relative to the optical axis of the internal focusing collimator 3 xcen ; If delta xcen If φ is equal to 0, the optical axis of the image sensor 8 has no offset relative to the optical axis of the inner focusing collimator 3 along the X-axis direction.
[0074] Specifically, the process of measuring the sensor offset direction and sensor offset amount of the optical axis of the image sensor 8 relative to the XY plane also includes: defining delta ycen =(y0 -y c )*m; if delta ycen If it is less than 0, the optical axis of the image sensor 8 is offset by delta along the negative direction of the Y axis relative to the optical axis of the internal focusing collimator 3. ycen ; If delta ycen If it is greater than 0, the optical axis of the image sensor 8 is offset by delta along the positive direction of the Y axis relative to the optical axis of the internal focusing collimator 3. ycen ; If delta ycen If y is equal to 0, the optical axis of the image sensor 8 has no offset relative to the optical axis of the inner focusing collimator 3 along the Y-axis direction.
[0075] Specifically, according to the sensor deflection state, the sensor device is controlled to adjust the posture of the image sensor 8 so that the image sensor 8 is coaxial with the internal focusing collimator 3, including: translating the image sensor 8 according to the sensor offset direction and the sensor offset, and repeating steps S31 to S33 until delta xcen =0 and delta ycen = 0. By determining and measuring the offset direction and value of the optical axis of the image sensor 8 relative to the XY plane, steps S31 to S33 are repeated, and finally the coaxial adjustment of the image sensor 8 relative to the inner focusing collimator 3 can be achieved.
[0076] Specifically, before determining the sensor deflection state of the optical axis of the image sensor 8 relative to the optical axis of the inner focusing collimator 3, the process further includes: controlling the sensor device to drive the image sensor 8 to face the light outlet of the inner focusing collimator 3 of the inner focusing collimator device of the installation system. When the image sensor 8 is installed, it is directly facing the light outlet of the inner focusing collimator 3, which can greatly reduce the adjustment amount of the image sensor 8 and improve the installation efficiency.
[0077] Specifically, the process of determining the lens deflection state of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8 includes: establishing a coordinate system with the light outlet of the inner focusing collimator 3 as the origin, the straight line where the optical axis of the inner focusing collimator 3 is located as the Z axis, the straight line perpendicular to the optical platform 1 as the Y axis, and the straight line perpendicular to the Z axis and the Y axis as the X axis; measuring the lens deflection direction and lens deflection angle of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8; measuring the lens offset direction and lens offset amount of the optical axis of the optical lens 9 relative to the XY plane. Based on the above XYZ coordinate system, the deflection angle and deflection direction of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8 and the XY plane can be further accurately calculated, so as to make accurate adjustments.
[0078] Specifically, the process of measuring the lens deflection direction and lens deflection angle of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8 includes: step S51: controlling the internal focusing collimator 3 to focus on F2, where F2 is less than 0; step S52: moving the displacement stage 6 of the adjustment system to D2 (x2, y2) so that the center pixel coordinates of the target imaged on the image sensor 8 are (x2, y2); step S53: controlling the internal focusing collimator 3 to focus on F3, where F3 is infinity; step S54: moving the displacement stage 6 to D3 (x3, y3) so that the center pixel coordinates of the target imaged on the image sensor 8 are (x3, y3); step S55: judging the lens deflection direction and lens deflection angle according to the change from D2 to D3. Through steps S51 to S55, the internal focusing collimator 3 is adjusted to two different focal lengths. When F2 is less than 0, the focus is on the negative direction of the Z axis so that the virtual image of the target is imaged on the image sensor 8. When F3 is infinity, the target directly emits parallel light, and the optical axis of the optical lens 9 is adjusted by changing the imaging position.
[0079] Specifically, according to the change from D2 to D3, the process of determining the lens deflection direction and the lens deflection angle includes: defining delta x' =x 2 -x 3 ; If delta x' is less than 0, the optical axis of the optical lens 9 is deflected clockwise along the Y axis relative to the optical axis of the image sensor 8; if delta x' is greater than 0, the optical axis of the optical lens 9 is deflected counterclockwise along the Y axis relative to the optical axis of the image sensor 8; if delta x' If it is equal to 0, the optical axis of the optical lens 9 is not deflected along the Y-axis direction relative to the optical axis of the image sensor 8.
[0080] Specifically, according to the change from D2 to D3, the process of determining the lens deflection direction and the lens deflection angle includes: defining delta y' =y 2 -y 3 ; If delta y' is less than 0, the optical axis of the optical lens 9 is deflected clockwise along the X-axis relative to the optical axis of the image sensor 8; if delta y' is greater than 0, the optical axis of the optical lens 9 is deflected counterclockwise along the X-axis relative to the optical axis of the image sensor 8; if delta y' If it is equal to 0, the optical axis of the optical lens 9 is not deflected along the X-axis direction relative to the optical axis of the image sensor 8.
[0081] Specifically, the deflection angle tilt along the Y axis of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8 is x'satisfy:
[0082] in,
[0083] m is the size of a single pixel of the image sensor 8 .
[0084] Specifically, the deflection angle tilt along the X-axis of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8 is x' satisfy:
[0085] Here, m is the size of a single pixel of the image sensor 8 .
[0086] Specifically, according to the lens deflection state, the lens device is controlled to adjust the posture of the optical lens 9 so that the optical lens 9 and the image sensor 8 are coaxial, including: rotating the optical lens 9 according to the lens deflection direction and the lens deflection angle, and repeating steps S51 to S55 until delta x' =0 and delta y' = 0. By obtaining the specific values of the deflection direction and angle of the optical lens 9 through the above steps, and repeating steps S51 to S55 after adjusting the posture of the optical lens 9 accordingly, the optical axis of the optical lens 9 can be corrected relative to the optical axis of the image sensor 8.
[0087] Specifically, the process of measuring the lens deflection direction and lens deflection angle of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8 includes: determining the center pixel coordinates (xc, yc) of the image sensor 8; defining delta xcen' =(x 3 -x c )*m; if delta xcen' If it is less than 0, the optical axis of the optical lens 9 is offset by delta along the negative direction of the X axis relative to the optical axis of the image sensor 8. xcen' ; If delta xcen' If it is greater than 0, the optical axis of the optical lens 9 is offset by delta along the negative direction of the X axis relative to the optical axis of the image sensor 8. xcen' ; If delta xcen' If it is equal to 0, the optical axis of the optical lens 9 has no offset relative to the optical axis of the image sensor 8 along the X-axis direction.
[0088] Specifically, the process of measuring the lens deflection direction and lens deflection angle of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8 includes: determining the center pixel coordinates (xc, yc) of the image sensor 8; defining delta ycen' =(y 3 -y c )*m; if delta ycen'If it is less than 0, the optical axis of the optical lens 9 is offset by delta along the negative direction of the X axis relative to the optical axis of the image sensor 8. ycen' ; If delta ycen' If it is greater than 0, the optical axis of the optical lens 9 is offset by delta along the negative direction of the X axis relative to the optical axis of the image sensor 8. ycen' ; If delta ycen' If it is equal to 0, the optical axis of the optical lens 9 has no offset relative to the optical axis of the image sensor 8 along the X-axis direction.
[0089] Specifically, according to the lens deflection state, the lens device is controlled to adjust the posture of the optical lens 9 so that the optical lens 9 is coaxial with the image sensor 8, including: according to the lens offset direction and the lens offset amount, the optical lens 9 is translated, and steps S51 to S54 are repeated until delta xcen' =0 and delta ycen' = 0. By specifically measuring the offset direction and distance of the optical axis of the optical lens 9 relative to the XY plane, the optical lens 9 is adjusted multiple times and steps S51 to S54 are repeated, and finally high-precision coaxial adjustment between the optical lens 9 and the image sensor 8 can be achieved.
[0090] Specifically, before determining the lens deflection state of the optical axis of the optical lens 9 relative to the optical axis of the image sensor 8, the process further includes: controlling the lens stage 4 to drive the optical lens 9 to face the light outlet of the inner focusing collimator 3. When the optical lens 9 is installed, directly aligning it with the light outlet of the inner focusing collimator 3 can greatly reduce the adjustment workload of the optical lens 9 and improve the efficiency of installation and adjustment.
[0091] By using the image sensor and lens adjustment system and method of the present application, the adjustment of the current lens and image sensor is completed after the above process is completed. The industrial camera structure is designed according to actual needs, and the relative position of the current lens and image sensor is fixed, so that a high coaxial industrial camera can be obtained. The image acquisition of the sensor, the control of the electric axis, and the detection of the degree of optical axis deflection can all be achieved through algorithm design and software control, completing automated detection and adjustment.
[0092] Obviously, the above-described embodiments are only a part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0093] It should be noted that the terms used herein are only for describing specific embodiments and are not intended to limit the exemplary embodiments according to the present application. As used herein, unless the context clearly indicates otherwise, the singular form is also intended to include the plural form. In addition, it should be understood that when the terms "comprise" and / or "include" are used in this specification, it indicates the presence of features, steps, operations, devices, components and / or combinations thereof.
[0094] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the numbers used in this way can be interchanged where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein.
[0095] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. For those skilled in the art, the present invention may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A system for coaxially aligning an image sensor and a lens, characterized in that: include: Optical platform (1); An internal focusing collimation device, at least a portion of which is fixed to one end of the optical platform (1), the internal focusing collimation device comprising an internal focusing collimator (3), the internal focusing collimator (3) being capable of generating a plurality of targets with different focal lengths to provide a reference optical axis; A lens device, at least a portion of which is fixed on the optical platform (1), the lens device being used to connect an optical lens (9), the optical lens (9) being movably arranged relative to the internal focusing and collimating device; A sensor device, at least a portion of which is fixed to a side of the lens device away from the inner focusing collimation device, the sensor device comprising a displacement stage (6), the displacement stage (6) being used to drive an image sensor (8) to move closer to or farther away from the inner focusing collimation device, the image sensor (8) being movably arranged relative to the displacement stage (6) so that the optical axis of the image sensor (8) is adjusted to be close to the reference optical axis.
2. The adjustment system according to claim 1, characterized in that: The internal focusing collimation device also includes a collimation platform (2), the collimation platform (2) is fixed on the optical platform (1), and the internal focusing collimator (3) is fixed on the collimation platform (2).
3. The adjustment system according to claim 1, characterized in that: The lens device also includes a lens carrier (4), the lens carrier (4) being fixed on the optical platform (1), the optical lens (9) being movably arranged on the lens carrier (4), and the lens carrier (4) being capable of adjusting the relative position of the optical lens (9) and the internal focusing collimation device.
4. The adjustment system according to claim 1, characterized in that: The sensor device further comprises: a sensor carrier (7), the image sensor (8) being fixed on the sensor carrier (7), and the sensor carrier (7) being movably arranged on the displacement stage (6) so that the displacement stage (6) drives the image sensor (8) to move closer to or farther away from the internal focusing collimation device; A platform carrier (5), wherein the platform carrier (5) is fixed on the optical platform (1), and the displacement platform (6) is movably arranged on the platform carrier (5).
5. A method for coaxially aligning an image sensor and a lens, characterized in that: The adjustment method adopts the adjustment system according to any one of claims 1 to 4 to coaxially adjust the image sensor (8) and the optical lens (9), and the adjustment method comprises: Mounting the image sensor (8) on a sensor carrier (7) of a sensor device of the adjustment system; Determining a sensor deflection state of an optical axis of the image sensor (8) relative to an optical axis of the inner focusing collimator (3); According to the sensor deflection state, controlling the sensor device to adjust the posture of the image sensor (8) so that the image sensor (8) is coaxial with the inner focusing collimator (3); Mounting the optical lens (9) on a lens carrier (4) of a lens device of the adjustment system; Determining a lens deflection state of an optical axis of the optical lens (9) relative to an optical axis of the image sensor (8); According to the lens deflection state, the lens device is controlled to adjust the posture of the optical lens (9) so that the optical lens (9) and the image sensor (8) are coaxial.
6. The adjustment method according to claim 5, characterized in that: The process of determining the sensor deflection state of the optical axis of the image sensor (8) relative to the optical axis of the inner focusing collimator (3) comprises: A coordinate system is established with the light outlet of the inner focusing collimator (3) as the origin, the straight line where the optical axis of the inner focusing collimator (3) is located as the Z axis, the straight line perpendicular to the optical platform (1) as the Y axis, and the straight line perpendicular to the Z axis and the Y axis as the X axis; measuring a sensor deflection direction and a sensor deflection angle of an optical axis of the image sensor (8) relative to an optical axis of the inner focusing collimator (3); The sensor offset direction and sensor offset amount of the optical axis of the image sensor (8) relative to the XY plane are measured.
7. The adjustment method according to claim 6, characterized in that: The process of measuring the sensor deflection direction and the sensor deflection angle of the optical axis of the image sensor (8) relative to the optical axis of the inner focusing collimator (3) comprises: Step S31: Control the displacement stage (6) of the sensor device of the adjustment system to D0 (x0, y0); Step S32: controlling the inner focusing collimator (3) to focus on F0, so that the target of the inner focusing collimator (3) is focused on the image sensor (8), and the center pixel coordinates of the target on the image sensor (8) are (x0, y0); Step S33: controlling the displacement stage (6) of the sensor device of the adjustment system to D1 (x1, y1), wherein D1 is away from the inner focusing collimator (3) relative to D0 in the Z-axis direction, and the center pixel coordinate of the target on the image sensor (8) is (x1, y1); Step S34: judging the sensor deflection direction and the sensor deflection angle according to the change from D0 to D1.
8. The adjustment method according to claim 7, characterized in that: The process of determining the sensor deflection direction and the sensor deflection angle according to the change from D0 to D1 includes: Defining delta x =x0-x1; If delta x is less than 0, then the deflection of the optical axis of the image sensor (8) relative to the optical axis of the internal focusing collimator (3) along the Y axis is in a clockwise direction; If delta x is greater than 0, then the deflection of the optical axis of the image sensor (8) relative to the optical axis of the internal focusing collimator (3) along the Y axis is counterclockwise; If delta x If it is equal to 0, the optical axis of the image sensor (8) is not deflected relative to the optical axis of the inner focusing collimator (3) relative to the Y axis.
9. The adjustment method according to claim 8, characterized in that: The process of determining the sensor deflection direction and the sensor deflection angle according to the change from D0 to D1 further includes: Defining delta y =y0-y1; If delta y is less than 0, the deflection of the optical axis of the image sensor (8) relative to the optical axis of the internal focusing collimator (3) along the X-axis is in the clockwise direction, If delta y is greater than 0, then the deflection of the optical axis of the image sensor (8) relative to the optical axis of the internal focusing collimator (3) along the X-axis is counterclockwise; If delta y If it is equal to 0, the optical axis of the image sensor (8) is not deflected relative to the optical axis of the inner focusing collimator (3) relative to the X axis.
10. The adjustment method according to claim 9, characterized in that: The deflection angle tilt along the Y axis of the optical axis of the image sensor (8) relative to the optical axis of the internal focusing collimator (3) x satisfy: Wherein, m is the size of a single pixel of the image sensor (8).
