Confocal debugging method for camera lens module
By using confocal debugging equipment to automatically analyze and adjust the pose deviation of the camera lens module, the problems of low debugging efficiency and poor accuracy in the existing technology have been solved, and efficient and accurate lens module debugging has been achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- SHENZHEN IMAGE TECH CO LTD
- Filing Date
- 2026-03-02
- Publication Date
- 2026-06-09
AI Technical Summary
In the existing technology, the debugging efficiency of camera lens modules is low and the calibration accuracy is poor. They rely on manual visual focusing and are inconvenient to operate, which affects the accuracy and reliability of industrial vision systems.
The confocal adjustment equipment includes a fixed platform, an image board, a lifting drive mechanism, and a detection and control device. Through the lifting movement of the image board and the control of the detection and control device, the position and pose deviation of the lens module is automatically analyzed and adjustment parameters are generated to achieve automatic adjustment.
It improves the consistency and reliability of debugging, significantly enhances debugging efficiency and calibration accuracy, reduces reliance on human experience, and ensures high-precision calibration results.
Smart Images

Figure CN122179660A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of camera lens module debugging methods, and particularly to a confocal debugging method for camera lens modules. Background Technology
[0002] In the industrial manufacturing sector, camera lens modules are widely used in machine vision, precision inspection, and automated measurement. Their imaging quality directly affects the measurement accuracy and stability of the entire vision system. In industrial applications, camera lens modules often require calibration to avoid tilting or offset issues caused by assembly errors, which could affect the measurement accuracy and repeatability of the entire system.
[0003] In existing technologies, the confocal adjustment method for camera lens modules mostly relies on manual visual focusing. Furthermore, the camera lens module is pre-installed on the equipment for adjustment, which is very inconvenient. Operators need to repeatedly adjust the relative position and angle between the lens and the sensor until the visual image is clear. This method is highly dependent on personnel experience, has low adjustment efficiency, and makes it difficult to guarantee adjustment accuracy, thus affecting the overall accuracy and reliability of the industrial vision system.
[0004] Therefore, it is necessary to provide a confocal tuning method for camera lens modules to solve the above-mentioned technical problems. Summary of the Invention
[0005] This invention provides a confocal adjustment method for camera lens modules to solve the problems of low adjustment efficiency and poor calibration accuracy in the prior art for camera lens modules.
[0006] To solve the above-mentioned technical problems, the technical solution of the present invention is: a confocal debugging method for a camera lens module, which uses a confocal debugging device to perform confocal debugging on the camera lens module. The confocal debugging device includes: a fixed platform, an image board, a lifting drive mechanism, and a detection and control device. The image board is lifted and mounted at one end of the fixed platform. The image board is connected to the output end of the lifting drive mechanism. A camera lens module is mounted at the other end of the fixed platform. The shooting direction of the camera lens module is towards the image board. The side of the image board closest to the camera lens module is the image surface. The image board has an initial position and an end position on the lifting trajectory. During the process of the image board moving from the initial position to the end position, the distance between the image surface and the camera lens module gradually increases or gradually decreases. The lifting drive mechanism and the camera lens module are both electrically connected to the detection and control device. The confocal adjustment method for the camera lens module includes the following steps: Step S11: The detection and control device controls the image plate to move from the initial position to the termination position, and during the movement of the image plate, the detection and control device controls the camera lens module to continuously capture images of the image surface to obtain the original image; Step S12: The detection and control device analyzes the original image and extracts the target area image with a sharpness evaluation value greater than or equal to a preset threshold; Step S13: The detection and control device compares the target area image with a preset standard comparison image, and calculates the pose deviation data of the camera lens module and the corresponding adjustment parameters based on the comparison results; Step S14: Adjust the pose of the camera lens module according to the adjustment parameters. After the adjustment is completed, jump to step S11 to perform a second test and verification until the pose deviation data falls within the qualified threshold range. Then, the verification is qualified and the debugging is completed.
[0007] In this invention, step S12 further includes: The detection and control device analyzes the original image, extracts the sampling area image, performs gradient calculation on the edge image of the sampling area image, and performs peak centering processing to obtain the target area image.
[0008] In this invention, the camera lens module includes a camera lens body, a support base, an adjustment base plate, a fixing plate, and a rotation adjustment component. On a plane perpendicular to the shooting optical axis of the camera lens module, there are mutually perpendicular X-axis and Y-axis, and the X-axis is parallel to the top surface of the fixing platform. The support base is connected between the camera lens body and the adjustment base plate. The support base and the adjustment base plate are rotatably connected by a connecting column. The adjustment base plate is connected to the fixed plate. The rotation adjustment component is disposed on the adjustment base plate and located on one side of the support base. The rotation adjustment component is used to drive the rotation of the support base relative to the adjustment base plate, thereby adjusting the deflection of the camera lens body along the X-axis. Step S13 further includes: The target region image is a strip image; If the sway angle of the target area image compared to the standard comparison image is less than or equal to a set angle, the operator is prompted that the X-axis of the camera lens module is qualified. If the target area image deflects at an angle greater than a set angle compared to the standard comparison image, and deflects in a clockwise direction, the operator is prompted to operate the rotation adjustment component to drive the camera lens module to adjust the set deflection value in the first direction of the X-axis. If the target area image deflects at an angle greater than a set angle compared to the standard comparison image, and deflects counterclockwise, the operator is prompted to operate the rotation adjustment component to drive the camera lens module to adjust the set deflection value in the second direction along the X-axis.
[0009] Step S13 further includes: A Fourier transform is performed on the target region image to obtain a spectrum. Based on the spectrum, the MTF value at at least a certain spatial frequency along the X-axis is selected to draw a sharpness trend curve. The sharpness trend curve of the target region image is compared with the sharpness trend curve of the standard comparison image, and the skewing angle of the target region image relative to the standard comparison image is calculated.
[0010] Furthermore, the support base includes a first plate and a second plate that are perpendicular to each other and integrally formed. One end of the first plate is connected to the camera lens body, and the other end of the first plate is connected to the second plate. The second plate and the adjustment base plate are rotatably connected through the connecting post. The second plate is fixedly connected to the adjustment base plate by a first fixing screw. An arc-shaped first elongated hole is provided on the second plate corresponding to the position of the first fixing screw. The rotation adjustment assembly includes a connecting block and two adjusting screws threaded onto the connecting block. The two adjusting screws are in contact with the second plate. Step S13 further includes: The camera lens module is adjusted in either a first direction or a second direction along the X-axis by controlling the amount of screwing in or out of the two adjusting screws.
[0011] In addition, the camera lens module also includes adjustment shims. Different positions between the adjustment base plate and the fixing plate are adjusted by setting different numbers of the adjustment shims to adjust the deflection of the camera lens body along the Y-axis. Step S13 further includes: If the width difference between the target area image and the standard comparison image is less than or equal to a set value, the operator will be prompted that the Y-axis of the camera lens module is qualified. If the target area image is wider than the standard comparison image and the width difference is greater than a set value, the operator is prompted to add or remove the adjustment shims so that the camera lens module is adjusted to the set deflection value in the first direction of the Y axis. If the target area image is smaller than the standard comparison image and the width difference is greater than a set value, the operator is prompted to add or remove the adjustment shims to adjust the camera lens module to the second direction along the Y-axis by the set deflection value.
[0012] Furthermore, the adjustment base plate is fixedly connected to the fixing plate by a second fixing screw, and a straight second elongated hole is provided on the adjustment base plate corresponding to the second fixing screw.
[0013] In this invention, the confocal debugging device further includes a support plate and a fixture plate. The fixture plate has handles at both ends and a mounting groove for mounting the fixing plate on one side. The mounting groove contains a mounting block and mounting screws threaded onto the mounting block. The fixing plate is limited and fixed between the mounting screws and the inner wall of the mounting groove. A locking plate is provided at one end of the bearing plate protruding towards the top surface. An open through groove is provided at the top of the locking plate. A locking screw is threaded to one end of the fixture plate. The locking screw passes through the open through groove and forms a limiting fit with the open through groove. The locking screw locks the fixture plate and the locking plate together. The bearing plate is provided with a positioning post, and the fixture plate is provided with a positioning groove for positioning and cooperating with the positioning post. The positioning groove is a long strip-shaped through groove, and the extension direction of the positioning groove is consistent with the axial extension direction of the locking screw. Step S11 further includes: Before controlling the image plate to move, the camera lens module is fixedly installed on the jig plate, and the camera lens module and the jig plate are fixedly installed together on the carrier plate; Step S14 further includes: After verification and debugging are completed, remove the camera lens module and the fixture plate together from the carrier plate, and then remove the camera lens module from the fixture plate.
[0014] In this invention, the image surface is provided with a vertical stripe area, a horizontal stripe area and a scale area. Along the X-axis, a horizontal stripe area is provided on both sides of a vertical stripe area, and a scale area is provided on the side of the horizontal stripe area away from the vertical stripe area.
[0015] In this invention, step S11 further includes: The detection and control device controls the camera lens module to continuously capture images of the image surface to form a pending image. The pending image is compared with a preset inspection image. If the comparison difference is less than or equal to a preset difference threshold, the pending image is used as the original image. If the comparison difference is greater than the preset difference threshold, an abnormality is indicated.
[0016] Compared to existing technologies, the advantages of this invention are as follows: The confocal adjustment method for the camera lens module of this invention controls the lifting and lowering movement of the image plate through a detection and control device, while simultaneously controlling the camera lens module to acquire the original image. Then, it extracts the strip-shaped target area image with the best clarity from the original image. By comparing and analyzing this target image with a preset standard image, the pose deviation of the camera lens module in the X and Y axes can be quickly and accurately quantified and calculated, and corresponding adjustment parameters and operation instructions can be automatically generated. Operators only need to perform the corresponding mechanical adjustments according to the system prompts to complete high-precision calibration, without relying on repeated attempts based on personal experience. This significantly improves the consistency and reliability of the calibration, and greatly enhances the calibration efficiency and accuracy. Attached Figure Description
[0017] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the embodiments are briefly introduced below. The drawings described below are only the corresponding drawings of some embodiments of the present invention.
[0018] Figure 1 This is a schematic diagram of the confocal debugging device in this invention.
[0019] Figure 2 This is a schematic diagram of the structure of the carrier plate, the fixture plate, and the camera lens module in this invention.
[0020] Figure 3 This is an exploded structural diagram of the camera lens body in this invention.
[0021] Figure 4 This is a partial structural diagram of the image surface of the image plate in this invention.
[0022] Figure 5 This is a flowchart of the confocal debugging method for the camera lens module of the present invention.
[0023] Figure 6 This is a schematic diagram showing the state of the camera lens module in this invention when the Y-axis is qualified.
[0024] Figure 7 This is a schematic diagram showing the state of the camera lens module in this invention when it needs to be adjusted in the first direction along the Y-axis.
[0025] Figure 8 This is a schematic diagram showing the state of the camera lens module in this invention when it needs to be adjusted in the second direction along the Y-axis.
[0026] Figure 9 This is a simplified schematic diagram of the preset standard comparison image in this invention.
[0027] Figure 10This is a simplified schematic diagram of the target area image in this invention being tilted clockwise compared to the standard comparison image.
[0028] Figure 11 This is a simplified schematic diagram of the target area image in this invention being tilted counterclockwise compared to the standard comparison image.
[0029] Figure 12 This is a schematic diagram showing the target area image's clarity trend curve feedback when the target area image deflects clockwise compared to the standard comparison image.
[0030] Figure 13 This is a schematic diagram showing the target area image's clarity trend curve feedback when the target area image deflects counterclockwise compared to the standard comparison image.
[0031] Figure 14 This is a schematic diagram showing the clarity trend curve of the target area image in this invention when it reaches the qualified level. Detailed Implementation
[0032] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0033] The directional terms mentioned in this invention, such as "up", "down", "front", "back", "left", "right", "inner", "outer", "side", "top" and "bottom", are only for reference to the orientation of the accompanying drawings. The directional terms used are for the purpose of explaining and understanding this invention, and are not intended to limit this invention.
[0034] The terms "first" and "second" used in the terminology of this invention are for descriptive purposes only and should not be construed as indicating or implying relative importance, nor as limiting the order of events.
[0035] In this invention, unless otherwise explicitly specified and limited, the terms "installation," "connection," "linking," and "fixing," etc., should be interpreted broadly. For example, a connection can be a detachable connection or a connection of an integral structure; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium; it can be a connection within two components or an interaction between two components. Those skilled in the art can understand the specific meaning of the above terms in this invention according to the specific circumstances.
[0036] In the existing technology, the confocal adjustment method of camera lens module mostly relies on manual visual focusing. Moreover, the camera lens module is pre-installed on the equipment for adjustment, which is very inconvenient. Operators need to repeatedly adjust the relative position and angle between the lens and the sensor until the visual image is clear. This method is highly dependent on personnel experience, has low adjustment efficiency, and makes it difficult to guarantee adjustment accuracy, thus affecting the overall accuracy and reliability of the industrial vision system.
[0037] The following is a preferred embodiment of a confocal tuning method for a camera lens module provided by the present invention, which can solve the above-mentioned technical problems.
[0038] Please refer to Figure 1 and Figure 2 ,in Figure 1 This is a schematic diagram of a preferred embodiment of the confocal debugging device in this invention. Figure 2 This is a schematic diagram of the structure of the carrier plate, the fixture plate, and the camera lens module in this invention.
[0039] In the diagram, units with similar structures are represented by the same labels.
[0040] This embodiment provides a method for confocal adjustment of a camera lens module, which uses a confocal adjustment device to perform confocal adjustment on the camera lens module. The confocal adjustment device will be described in detail below: The confocal debugging equipment includes a fixed platform 11, an image board 12, a lifting drive mechanism 13, and a detection and control device 14.
[0041] The image plate 12 is vertically mounted at one end of the fixed platform 11. The image plate 12 is connected to the output end of the lifting drive mechanism 13, which drives the image plate 12 to move up and down. It can be understood that the lifting drive mechanism 13 can be a commonly used device such as a motor screw device or a linear motor.
[0042] A camera lens module 15 is placed at the other end of the fixed platform 11. The shooting direction of the camera lens module 15 is towards the image plate 12. The side of the image plate 12 closest to the camera lens module 15 is the image surface. The image surface is tilted at a set angle to the plane perpendicular to the shooting direction of the camera lens module 15, so that the distance between the image surface and the camera lens module 15 gradually increases or decreases during the lifting and lowering of the image plate 12.
[0043] More specifically, the image plate 12 has an initial position and an ending position on its lifting trajectory. During confocal adjustment, the lifting drive mechanism 13 drives the image plate 12 to move from the initial position to the ending position. During this process, the distance between the image surface and the camera lens module 15 gradually increases or decreases. Simultaneously, the camera lens module 15 continuously captures images of the image surface to form the original image. The distance at which the image surface and the camera lens module 15 are best focused corresponds to the target area image with the best clarity in the original image. By analyzing this target area image, the detection control device 14 can detect whether there is a pose deviation in the camera lens module. Then, the operator adjusts the focus according to the detection results given by the detection control device 14. The operation is convenient, and the adjustment efficiency and accuracy are high.
[0044] The lifting drive mechanism 13 and the camera lens module 15 are both electrically connected to the detection control device 14, so that the detection control device 14 controls the camera lens module 15 to take pictures and simultaneously controls the image plate 12 to rise and fall in coordination. By controlling the rise and fall of the image plate, the object distance between the camera lens module 15 and the image surface is changed, thereby mapping the focus state of the camera lens module 15 at different object distances to different spatial positions on the image plate. It should also be noted that the detection control device 14 may include a display screen to show the operator the detection results and information that needs to be adjusted.
[0045] Please refer to Figure 2 and Figure 3 The camera lens module 15 includes a camera lens body 151, a support base 152, an adjustment base plate 153, a fixing plate 154, a rotation adjustment assembly 155, and adjustment shims. On a plane perpendicular to the optical axis of the camera lens module 15, it includes mutually perpendicular X-axis and Y-axis. The X-axis is parallel to the top surface of the fixing platform 11, i.e., as shown... Figure 1 The X and Y axes are indicated in the text.
[0046] The support base 152 is connected to the camera lens body 151 and the adjustment base plate 153. The support base 152 and the adjustment base plate 153 are rotatably connected by a connecting post 157. The connecting post 157 is perpendicular to the surface of the adjustment base plate 153. The connecting post 157 is the fulcrum for adjusting the angle of the camera lens body 151 along the X-axis, which can improve the rotational stability of the camera lens body 151. At the same time, the support base 152 is fixedly connected to the adjustment base plate 153 by a first fixing screw 1581. The support base 152 has an arc-shaped first elongated hole 1523 at the position corresponding to the first fixing screw 1581.
[0047] After the support base 152 is rotated and adjusted, the connection between the support base 152 and the adjusting base plate 153 is fixed by the first fixing screw 1581. When the relative position of the support base 152 and the adjusting base plate 153 changes, the arc-shaped first elongated hole 1523 can always adapt and cooperate with the first fixing screw 1581.
[0048] The adjustment base plate 153 is fixedly connected to the fixing plate 154 by the second fixing screw 1582. A straight, elongated second hole 1531 is provided on the adjustment base plate 153 corresponding to the second fixing screw 1582. Different positions between the adjustment base plate 153 and the fixing plate 154 are adjusted by setting different numbers of adjustment shims to adjust the deflection of the camera lens body 151 along the Y-axis, thereby achieving fine-tuning of the camera lens body 151's pitch angle. When the relative position of the adjustment base plate 153 and the fixing plate 154 changes, the straight, elongated second hole 1531 always adapts and engages with the second fixing screw 1582.
[0049] It is understandable that different adjusting shims can also have different thicknesses, and the adjusting shims are fitted onto the outer periphery of the second fixing screw 1582. The adjusting shims can be non-closed annular structures. When the adjusting shim is inserted between the adjusting base plate 153 and the fixing plate 154, the non-closed area of the adjusting shim can be offset from the second fixing screw 1582, so that the adjusting shim fits onto the outer periphery of the second fixing screw 1582.
[0050] For more details, please refer to Figure 3 The rotation adjustment assembly 155 is mounted on the adjustment base plate 153 and located on one side of the support base 152. The rotation adjustment assembly 155 includes a connecting block 1551 and two adjusting screws 1552 threaded onto the connecting block 1551. The two adjusting screws 1552 contact the support base 152 to drive the support base 152 to rotate relative to the adjustment base plate 153, thereby adjusting the deflection of the camera lens body 151 along the X-axis. The two adjusting screws 1552 form a fine-tuning mechanism that loosens and pushes, allowing precise and minute rotation of the support base 152 around the connecting post 157 by screwing them in or out, thus achieving fine adjustment of the left and right swing angle of the camera lens body 151.
[0051] It is easy to understand that the connecting post 157 is located between the two adjusting screws 1552 to drive the support base 152 to rotate for adjustment.
[0052] Please refer to Figure 4In this embodiment, the image surface is provided with vertical stripe areas 121, horizontal stripe areas 122, and a scale area 123. Along the X-axis, a horizontal stripe area 122 is provided on each side of a vertical stripe area 121, and a scale area 123 is provided on the side of the horizontal stripe area 122 opposite to the vertical stripe area 121. The arrangement of the vertical stripe areas 121 and horizontal stripe areas 122 enables the detection control device 14 to better analyze the target area image with the best clarity from the original image. The scale area 123 provides an intuitive reference scale for clarity analysis and quantitative evaluation of the sway angle, improving the accuracy and operability of the detection.
[0053] Please refer to Figure 2 In this embodiment, the support base 152 includes a first plate 1521 and a second plate 1522 that are perpendicular to each other and integrally formed. The support base 152 has good rigidity and support stability. One end of the first plate 1521 is connected to the camera lens body 151, and the other end of the first plate 1521 is connected to the second plate 1522. The second plate 1522 and the adjustment base plate 153 are rotatably connected by a connecting post 157. First elongated holes 1523 are provided at the four corners of the second plate 1522, so that the second plate 1522 and the adjustment base plate 153 can be uniformly and stably locked together.
[0054] A mounting adjustment assembly 156 is provided on the fixing plate 154. The mounting adjustment assembly 156 includes fixing blocks 1561 located on both sides of the adjusting base plate 153. Each fixing block 1561 is threaded with a pressing screw 1562. The pressing screw 1562 contacts the adjusting base plate 153 to press and fix the adjusting base plate 153. The axial extension direction of the pressing screw 1562 is consistent with the length direction of the second elongated hole 1531. The mounting adjustment assembly 156 can be used to adjust the horizontal position of the adjusting base plate 153 on the fixing plate 154, and can further firmly press the adjusting base plate 153 onto the fixing plate 154.
[0055] The confocal debugging equipment also includes a jig plate 19, with handles 192 at both ends. By operating the handles 192, the jig plate 19 and the camera lens module 15 can be easily moved onto or off the support plate 18 to place or remove the camera lens module 15, thereby reducing the impact on the normal operation of the confocal debugging equipment and improving efficiency.
[0056] One side of the fixture plate 19 is provided with a mounting groove 191 for mounting the fixing plate 154. The mounting groove 191 is provided with a mounting block 195 and a mounting screw 1951 threadedly connected to the mounting block 195. The fixing plate 154 is limited and fixed between the mounting screw 1951 and the inner wall of the mounting groove 191.
[0057] Furthermore, the confocal debugging equipment also includes a support plate 18. One end of the support plate 18 protrudes upwards and is provided with a locking plate 181. The top of the locking plate 181 is provided with an open through groove 1811. One end of the fixture plate 19 is threadedly connected with a locking screw 194. The locking screw 194 passes through the open through groove 1811 and forms a limiting engagement with the open through groove 1811. The locking screw 194 locks the fixture plate 19 and the locking plate 181 together.
[0058] The support plate 18 is provided with a positioning post 182, and the fixture plate 19 is provided with a positioning groove 193 for positioning and engaging with the positioning post 182. The positioning groove 193 is a long strip-shaped through groove, and the extension direction of the positioning groove 193 is consistent with the axial extension direction of the locking screw 194.
[0059] The structure of the support plate 18 and the locking plate 181 provides a precise and repeatable mounting point for the fixture plate 19 on the fixed platform 11. When the fixture plate 19 is placed, the locking screw 194 can be easily placed into the open through slot 1811, achieving fast and accurate clamping and positioning, and making the operation convenient and efficient.
[0060] Please refer to Figure 2 Furthermore, the second plate 1522, the adjusting base plate 153, and the fixing plate 154 have equal widths, the fixing plate 154 is longer than the adjusting base plate 153, and the adjusting base plate 153 is longer than the second plate 1522. This facilitates the alignment and connection of the second plate 1522, the adjusting base plate 153, and the fixing plate 154, and also facilitates the mounting of the adjusting assembly 156 on the fixing plate 154, and the mounting of the rotating adjusting assembly 155 and the second fixing screw 1582 on the adjusting base plate 153. The overall structure is compact and the functional areas are clearly defined.
[0061] In this embodiment, the confocal adjustment equipment further includes a light supply device 17, which is fixedly connected to the lifting mounting frame 16. The light supply device 17 includes two strip-shaped, parallel lamp bodies that illuminate the same area on the image surface. The shooting path of the camera lens module 15 passes between the two lamp bodies, and the shooting area of the camera lens module 15 is located within the illuminated area of the two lamp bodies. The two lamp bodies provide uniform and sufficient illumination from both sides, effectively eliminating shadows and uneven reflections on the image surface, ensuring that the camera lens module 15 captures high-quality original images.
[0062] Optionally, the lifting trajectory of the image plate 12 is perpendicular to the top surface of the fixed platform 11. Along the lifting direction of the image plate 12, the thickness of the image plate 12 gradually increases or decreases, so that the image surface is tilted at a set angle to the plane perpendicular to the shooting direction of the camera lens module 15. By processing the image plate 12 itself into a wedge shape (gradual thickness), the tilt of the image surface can be achieved while keeping the lifting trajectory of the image plate 12 vertical.
[0063] Optionally, the image plate 12 has a uniform thickness, and the lifting trajectory of the image plate 12 is tilted at a set angle to the plane perpendicular to the shooting direction of the camera lens module 15. As another implementation, by tilting the movement trajectory of the lifting mechanism itself, the tilt of the image surface relative to the optical axis can be achieved even when using an image plate 12 with uniform thickness.
[0064] In this invention, a lifting mounting bracket 16 and a fixed frame 1A are provided at one end of the fixed platform 11. The fixed frame 1A is scissor-connected to the lifting mounting bracket 16. A frame groove is provided on the periphery of the fixed frame 1A near the camera lens module 15, and the image board 12 is detachably inserted into the frame groove. The fixed frame 1A allows the image board 12 to be quickly replaced like a plug-in, facilitating maintenance, cleaning, or replacement with different image boards 12 according to debugging needs, thus improving the versatility and maintenance convenience of the equipment.
[0065] The working principle of the present invention is as follows: When the camera lens module 15 needs to be debugged, the operator first fixes the camera lens module 15 on the jig plate 19, and then places the camera lens module 15 together with its jig plate 19 on the support plate 18. The jig plate 19 is positioned and fixed by locking screws 194 and positioning pins 182.
[0066] Then, the equipment is started, and the detection control device 14 controls the lifting drive mechanism 13 to drive the image plate 12 to rise and fall at a constant speed, while simultaneously controlling the camera lens module 15 to perform continuous shooting. Since the image surface is at a certain tilt angle to the optical axis of the camera lens body 151, during the lifting and lowering process of the image plate 12, the corresponding position on the image plate 12 gradually enters the optimal focusing plane of the camera lens module 15.
[0067] The detection and control device 14 acquires images in real time and calculates the corresponding spectrum using algorithms such as gradient calculation and Fourier transform. Then, it determines the region with the highest clarity in the image captured at a certain moment, which is the target region image. This region corresponds to the actual optimal focal plane position of the lens in the current state.
[0068] The target area image is a strip-shaped image. The detection and control device 14 compares and analyzes the obtained target area image with a preset standard comparison image. The operator can then adjust the X and Y axes based on the analysis results.
[0069] Specifically, by analyzing the tilt angle of the target area image, i.e., the yaw angle compared to the standard comparison image, the lens deflection along the X-axis is determined. If the yaw exceeds the allowable range, the detection control device will prompt the operator and provide adjustment direction and suggested adjustment amount. The operator fine-tunes the rotation of the support base 152 around the connecting column 157 by turning the two adjusting screws 1552 on the rotation adjustment assembly 155, thereby correcting the lens's attitude along the X-axis (left-right direction).
[0070] By comparing the width difference between the target area image and the standard image, the lens deflection along the Y-axis is determined. If the width difference exceeds the allowable range, the detection control device will alert the operator. The operator can loosen the second fixing screw 1582 and add or remove adjusting shims at the corresponding positions between the adjusting base plate 153 and the fixing plate 154 to change the included angle, thereby correcting the lens's orientation along the Y-axis (front-back direction). After adjustment, tighten the second fixing screw 1582, and auxiliary locking can be achieved using the clamping screw 1562 that mounts the adjusting assembly 156.
[0071] Once the offsets in both the left-right and front-back directions are adjusted to within the acceptable range, the debugging is complete. After adjustment, retesting and verification can be performed. The operator can remove the camera lens module 15 and fixture plate 19, which have completed confocal debugging, from the support plate 18. Then, the entire camera lens module 15 (including the camera lens body 151, support base 152, adjustment base plate 153, and fixing plate 154) can be removed from the fixture plate 19 and directly installed into the final equipment without the need for cumbersome on-site adjustments.
[0072] This completes the debugging process for the confocal debugging equipment.
[0073] The following is a detailed explanation of the confocal adjustment method for camera lens modules: Before performing confocal adjustment on the camera lens module, the operator can place the camera lens module 15 on the fixed platform 11. More specifically, the fixing plate 154 is fixed between the mounting screw 1951 and the inner wall of the mounting slot 191, so that the camera lens module 15 is fixedly installed on the jig plate 19. Then, the camera lens module 15 and the jig plate 19 are fixedly installed together on the support plate 18, wherein the locking screw 194 will be positioned and engaged in the open through slot 1811, the positioning post 182 will be positioned and inserted into the positioning slot 193, and finally, the jig plate 19 is fixedly positioned on the support plate 18 by tightening the locking screw 194.
[0074] Please refer to Figure 5 The confocal adjustment method for the camera lens module 15 in this embodiment includes the following steps: Step S11: The detection control device 14 controls the image plate 12 to move from the initial position to the end position, and during the movement of the image plate 12, the detection control device 14 controls the camera lens module 15 to continuously capture the image surface to obtain the original image.
[0075] Step S12: The detection control device 14 analyzes the original image and extracts the target area image 21 with a sharpness evaluation value greater than or equal to a preset threshold. The target area image 21 is a strip image.
[0076] Step S13: The detection control device 14 compares the target area image 21 with the preset standard comparison image, and calculates the pose deviation data of the camera lens module 15 and the corresponding adjustment parameters based on the comparison results.
[0077] Step S14: If the pose deviation data is not within the qualified threshold range, the pose of the camera lens module 15 is adjusted according to the adjustment parameters. After the adjustment is completed, jump to step S11, that is, repeat steps S11 to S14 for re-testing and verification until the pose deviation data falls within the qualified threshold range. Then, it will indicate that the verification is qualified and the debugging is completed.
[0078] In this embodiment, step S12 may further include: The detection control device 14 analyzes the original image, extracts the sampling region image, calculates the gradient of the edge image of the sampling region image, and performs peak centering processing to obtain the target region image 21. Specifically, the edge intensity map can be obtained by first-order differentiation, and the maximum value of the first derivative corresponds to the edge position. However, in discrete images, edges may fall between pixels, and the peak obtained by direct differentiation may appear near integer pixel positions, which is not accurate enough. Then, peak centering processing can be used to fit or interpolate, adjusting the peak position to a more accurate sub-pixel coordinate position, thereby obtaining a more accurate target region image 21.
[0079] Please refer to Figures 9-11 Step S13 may further include: If the yaw angle of the target area image 21 compared to the standard comparison image is less than or equal to the set angle, the operator is prompted that the X-axis of the camera lens module 15 is qualified, meaning that the target area image 21 is close to the standard image. Figure 9 The state shown.
[0080] Please refer to Figure 10 If the target area image 21 deflects at an angle greater than the set angle compared to the standard comparison image, and deflects clockwise, the operator is prompted to use the rotation adjustment component 155 to drive the camera lens module 15 to adjust the set deflection value in the first direction along the X-axis. (Refer to...) Figure 10The orientation can be adjusted by the operator by turning the two adjusting screws 1552 on the rotating adjustment component 155 to fine-tune the rotation of the support base 152 around the connecting column 157, so that the camera lens body 151 deflects to the left to achieve the correction effect.
[0081] Please refer to Figure 11 If the target area image 21 deflects at an angle greater than the set angle compared to the standard comparison image, and deflects counterclockwise, the operator is prompted to use the rotation adjustment component 155 to drive the camera lens module 15 to adjust the set deflection value in the second direction along the X-axis. (Refer to...) Figure 11 The orientation can be determined by the operator turning the two adjusting screws 1552 on the rotating adjustment component 155 to fine-tune the rotation of the support base 152 around the connecting column 157, so that the camera lens body 151 deflects to the right to achieve the correction effect.
[0082] In step S13, the camera lens module 15 is adjusted in either the first direction of the X-axis or the second direction of the X-axis by controlling the amount of screwing in and out of the two adjusting screws.
[0083] Understandably, the detection and control device 14 can calculate the deflection value that the camera lens body 151 needs to be adjusted according to the size of the deflection angle.
[0084] Please refer to Figures 12-4 Specifically, step S13 may further include: A Fourier transform is performed on the target region image 21 to obtain a spectrum. Based on the spectrum, the MTF value at at least a certain spatial frequency along the X-axis is selected to plot a sharpness trend curve. The sharpness trend curve of the target region image 21 is compared with the sharpness trend curve of the standard comparison image to calculate the skewing angle of the target region image 21 compared to the standard comparison image. In other words, the skewing direction and skewing angle of the target region image 21 can be obtained by plotting the sharpness trend curve.
[0085] Figure 12 That is, corresponding Figure 10 The target region image 21 is skewed clockwise compared to the standard comparison image. Figure 13 That is, corresponding Figure 11 The target region image 21 is tilted counterclockwise compared to the standard comparison image. Figure 14 That is, corresponding Figure 9 The state of the standard comparison image.
[0086] Please refer to Figures 6-8 Step S13 further includes: If the width difference between the target area image 21 and the standard comparison image is less than or equal to the set value, the operator is prompted that the Y-axis of the camera lens module 15 is qualified. The width is... Figure 9 The vertical dimension.
[0087] It should be noted that, relative to the tilt angle between the image plane and the optical axis of the camera lens body 151, the offset of the camera lens module 15 in the Y-axis is generally relatively small.
[0088] As the optical axis of the camera lens body 151 tilts relative to the image plate 12 from tilted to perpendicular, the area of the sharpest region in the captured image gradually increases. That is, the state of the camera lens body 151 changes from tilted to perpendicular. Figures 6 to 7 During this process, the width of the target area image 21 will gradually increase. The state of the camera lens body 151 changes from... Figures 6 to 8 During the process, the width of the target area image 21 will gradually decrease. In this embodiment, the camera lens body 151 is in... Figure 6 The camera lens body 151 is only qualified in the state shown.
[0089] Please refer to Figure 7 If the target area image 21 is wider than the standard comparison image, and the width difference is greater than the set value, it indicates that the camera lens module 15 is tilted upwards along the Y-axis. The operator is then prompted to add or remove adjustment shims to adjust the camera lens module 15 to the first direction along the Y-axis by the set deflection value; that is, the camera lens module 15 needs to be adjusted to tilt downwards along the Y-axis.
[0090] Please refer to Figure 8 If the target area image 21 is smaller than the standard comparison image, and the width difference is greater than the set value, it indicates that the camera lens module 15 is tilted downwards along the Y-axis. The operator is then prompted to add or remove adjustment shims to adjust the camera lens module 15 to the second direction along the Y-axis by the set deflection value; that is, the camera lens module 15 needs to be adjusted to tilt upwards along the Y-axis.
[0091] In this embodiment, step S14 further includes: After successful verification and debugging, remove the camera lens module 15 and fixture plate 19 together from the support plate 18, and then remove the camera lens module 15 from the fixture plate 19. The camera lens module 15 can be directly installed into the final equipment without the need for cumbersome on-site adjustments, resulting in high installation precision. Furthermore, after removing the camera lens module 15 and fixture plate 19, another fixture plate 19 with a camera lens module 15 installed can be directly placed on the support plate 18 for debugging, further improving work efficiency.
[0092] In this embodiment, step S11 may further include: The detection control device 14 controls the camera lens module 15 to continuously capture images to form a pending image. This pending image is then compared with a preset inspection image. If the difference is less than or equal to a preset difference threshold, the pending image is used as the original image. If the difference exceeds the preset difference threshold, an anomaly is detected. This effectively improves the ability to identify abnormal conditions and the reliability of the detection results. It eliminates image quality problems caused by abnormal factors such as image plate obstruction, uneven lighting, lens damage, and ambient light interference, preventing these from entering subsequent analysis stages, reducing the risk of misjudgment, and ensuring the consistency of the debugging process and the accuracy of the results.
[0093] The difference threshold can be set comprehensively based on various image quality indicators such as brightness, contrast, structural similarity, and pixel difference.
[0094] The confocal calibration method for the camera lens module in this embodiment controls the lifting and lowering movement of the image plate through a detection and control device, while simultaneously controlling the camera lens module to acquire the original image. Then, the image of the strip-shaped target area with the best clarity is extracted from the original image. By comparing and analyzing this target image with a preset standard image, the pose deviation of the camera lens module in the X and Y axes can be quickly and accurately quantified, and corresponding adjustment parameters and operation instructions are automatically generated. Operators only need to perform the corresponding mechanical adjustments according to the system prompts to complete high-precision calibration, without relying on repeated attempts based on personal experience. This significantly improves the consistency and reliability of calibration, greatly enhancing calibration efficiency and accuracy.
[0095] In summary, although the present invention has been disclosed above with reference to preferred embodiments, the above preferred embodiments are not intended to limit the present invention. Those skilled in the art can make various modifications and refinements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention shall be determined by the scope defined in the claims.
Claims
1. A method for confocal adjustment of a camera lens module, characterized in that, The camera lens module is subjected to confocal debugging using a confocal debugging device, which includes: a fixed platform, an image board, a lifting drive mechanism, and a detection and control device. The image board is lifted and mounted at one end of the fixed platform. The image board is connected to the output end of the lifting drive mechanism. A camera lens module is mounted at the other end of the fixed platform. The shooting direction of the camera lens module is towards the image board. The side of the image board closest to the camera lens module is the image surface. The image board has an initial position and an end position on the lifting trajectory. During the process of the image board moving from the initial position to the end position, the distance between the image surface and the camera lens module gradually increases or gradually decreases. The lifting drive mechanism and the camera lens module are both electrically connected to the detection and control device. The confocal adjustment method for the camera lens module includes the following steps: Step S11: The detection and control device controls the image plate to move from the initial position to the termination position, and during the movement of the image plate, the detection and control device controls the camera lens module to continuously capture images of the image surface to obtain the original image; Step S12: The detection and control device analyzes the original image and extracts the target area image with a sharpness evaluation value greater than or equal to a preset threshold; Step S13: The detection and control device compares the target area image with a preset standard comparison image, and calculates the pose deviation data of the camera lens module and the corresponding adjustment parameters based on the comparison results; Step S14: Adjust the pose of the camera lens module according to the adjustment parameters. After the adjustment is completed, jump to step S11 to perform a second test and verification until the pose deviation data falls within the qualified threshold range. Then, the verification is qualified and the debugging is completed.
2. The confocal adjustment method for a camera lens module according to claim 1, characterized in that, Step S12 further includes: The detection and control device analyzes the original image, extracts the sampling area image, performs gradient calculation on the edge image of the sampling area image, and performs peak centering processing to obtain the target area image.
3. The confocal adjustment method for a camera lens module according to claim 1, characterized in that, The camera lens module includes a camera lens body, a support base, an adjustment base plate, a fixing plate, and a rotation adjustment component. On a plane perpendicular to the shooting optical axis of the camera lens module, there are mutually perpendicular X-axis and Y-axis, with the X-axis parallel to the top surface of the fixing platform. The support base is connected between the camera lens body and the adjustment base plate. The support base and the adjustment base plate are rotatably connected by a connecting column. The adjustment base plate is connected to the fixed plate. The rotation adjustment component is disposed on the adjustment base plate and located on one side of the support base. The rotation adjustment component is used to drive the rotation of the support base relative to the adjustment base plate, thereby adjusting the deflection of the camera lens body along the X-axis. Step S13 further includes: The target region image is a strip image; If the sway angle of the target area image compared to the standard comparison image is less than or equal to a set angle, the operator is prompted that the X-axis of the camera lens module is qualified. If the target area image deflects at an angle greater than a set angle compared to the standard comparison image, and deflects in a clockwise direction, the operator is prompted to operate the rotation adjustment component to drive the camera lens module to adjust the set deflection value in the first direction of the X-axis. If the target area image deflects at an angle greater than a set angle compared to the standard comparison image, and deflects counterclockwise, the operator is prompted to operate the rotation adjustment component to drive the camera lens module to adjust the set deflection value in the second direction along the X-axis.
4. The confocal adjustment method for a camera lens module according to claim 3, characterized in that, Step S13 further includes: A Fourier transform is performed on the target region image to obtain a spectrum. Based on the spectrum, the MTF value at at least a certain spatial frequency along the X-axis is selected to draw a sharpness trend curve. The sharpness trend curve of the target region image is compared with the sharpness trend curve of the standard comparison image, and the skewing angle of the target region image relative to the standard comparison image is calculated.
5. The confocal adjustment method for a camera lens module according to claim 3, characterized in that, The support base includes a first plate and a second plate that are perpendicular to each other and are integrally formed. One end of the first plate is connected to the camera lens body, and the other end of the first plate is connected to the second plate. The second plate and the adjustment base are rotatably connected by the connecting post. The second plate is fixedly connected to the adjustment base by a first fixing screw. An arc-shaped first elongated hole is provided on the second plate corresponding to the position of the first fixing screw. The rotation adjustment assembly includes a connecting block and two adjusting screws threaded onto the connecting block. The two adjusting screws are in contact with the second plate. Step S13 further includes: The camera lens module is adjusted in either a first direction or a second direction along the X-axis by controlling the amount of screwing in or out of the two adjusting screws.
6. The confocal adjustment method for a camera lens module according to claim 3, characterized in that, The camera lens module also includes adjustment shims. Different positions between the adjustment base plate and the fixing plate are adjusted by setting different numbers of the adjustment shims to adjust the deflection of the camera lens body along the Y-axis. Step S13 further includes: If the width difference between the target area image and the standard comparison image is less than or equal to a set value, the operator will be prompted that the Y-axis of the camera lens module is qualified. If the target area image is wider than the standard comparison image and the width difference is greater than a set value, the operator is prompted to add or remove the adjustment shims so that the camera lens module is adjusted to the set deflection value in the first direction of the Y axis. If the target area image is smaller than the standard comparison image and the width difference is greater than a set value, the operator is prompted to add or remove the adjustment shims to adjust the camera lens module to the second direction along the Y-axis by the set deflection value.
7. The confocal adjustment method for a camera lens module according to claim 6, characterized in that, The adjustment base plate is fixedly connected to the fixing plate by a second fixing screw, and a straight second elongated hole is provided on the adjustment base plate corresponding to the second fixing screw.
8. The confocal adjustment method for a camera lens module according to claim 3, characterized in that, The confocal debugging equipment also includes a support plate and a fixture plate. The fixture plate has handles at both ends and a mounting groove for mounting the fixing plate on one side. The mounting groove contains a mounting block and mounting screws threaded onto the mounting block. The fixing plate is limited and fixed between the mounting screws and the inner wall of the mounting groove. A locking plate is provided at one end of the bearing plate protruding towards the top surface. An open through groove is provided at the top of the locking plate. A locking screw is threaded to one end of the fixture plate. The locking screw passes through the open through groove and forms a limiting fit with the open through groove. The locking screw locks the fixture plate and the locking plate together. The bearing plate is provided with a positioning post, and the fixture plate is provided with a positioning groove for positioning and cooperating with the positioning post. The positioning groove is a long strip-shaped through groove, and the extension direction of the positioning groove is consistent with the axial extension direction of the locking screw. Step S11 further includes: Before controlling the image plate to move, the camera lens module is fixedly installed on the jig plate, and the camera lens module and the jig plate are fixedly installed together on the carrier plate; Step S14 further includes: After verification and debugging are completed, remove the camera lens module and the fixture plate together from the carrier plate, and then remove the camera lens module from the fixture plate.
9. The confocal adjustment method for a camera lens module according to claim 1, characterized in that, The image surface is provided with vertical stripe areas, horizontal stripe areas, and scale areas. Along the X-axis, a horizontal stripe area is provided on each side of a vertical stripe area, and a scale area is provided on the side of the horizontal stripe area away from the vertical stripe area.
10. The confocal adjustment method for a camera lens module according to claim 1, characterized in that, Step S11 further includes: The detection and control device controls the camera lens module to continuously capture images of the image surface to form a pending image. The pending image is compared with a preset inspection image. If the comparison difference is less than or equal to a preset difference threshold, the pending image is used as the original image. If the comparison difference is greater than the preset difference threshold, an abnormality is indicated.