A line scan camera module adjustment method and apparatus

By automatically calculating the target position and angle parameters of the light strip, the line scan camera module can be dynamically adjusted online, which solves the problems of high adjustment difficulty and low accuracy of the line scan camera inspection system in aluminum strip production, and improves the stability and production efficiency of the inspection system.

CN121431359BActive Publication Date: 2026-07-24CHINALCO RUIMIN CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
CHINALCO RUIMIN CO LTD
Filing Date
2025-10-27
Publication Date
2026-07-24

Smart Images

  • Figure CN121431359B_ABST
    Figure CN121431359B_ABST
Patent Text Reader

Abstract

The application provides a kind of line scan camera module adjusting method and device, comprising: input the roll diameter value of new table detection roll;Based on the roll diameter value input, the system automatically calculates the light band target position, light source module angle parameter and camera module angle parameter;System according to the calculation result, complete camera module pitch angle and light source module position adjustment automatic pre-adjustment;By controlling system, adjust the inclination of camera module and fine-tune camera module lens pitch angle;Finally, adjust the focal length of camera module, complete the dynamic online adjustment of line scan camera module.The application is reasonable in design, aiming at solving the problem that line scan camera needs to be adjusted manually in existing aluminum plate detection, dynamic operation is easy to deviate and needs to be adjusted repeatedly, realizes dynamic online adjustment of machine train, without stopping, and the adjustment precision is high, can reduce false defects, improve detection efficiency and stability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a method and apparatus for adjusting a line scan camera module. Background Technology

[0002] In the finishing and straightening process of aluminum strip, the strip runs at high speed (usually requiring a high-speed machine train), and a line scanning camera is needed to detect surface defects (such as scratches, indentations, oxide spots, etc.) in real time. However, the existing line scan camera inspection system has the following technical problems: (1) The system integration is complex and the fault tolerance is low: The line scan camera needs to be highly coordinated with the machine train motion control system, and the detection range is small. If there is a slight positional deviation of the camera or light source during the operation of the aluminum strip, it is easy to cause the detection system to fail or misidentify a large number of "false defects", affecting the production judgment; (2) The adjustment is difficult after the replacement of the inspection roller: The inspection roller is a key component that supports the strip and cooperates with the inspection. After the inspection roller is replaced, due to the difference between the old and new roller diameters, the position of the light strip illuminating the surface of the strip will shift. At this time, the position, angle, aperture, focal length and other parameters of the inspection camera need to be adjusted; (3) The adjustment efficiency is low and the accuracy is poor when the machine is stopped: The existing adjustment method requires manual operation when the machine train is stopped. When the machine is stopped, the strip and the inspection roller are in a static state. After the machine train is running dynamically, factors such as the strip tension and roller vibration will cause the actual working state of the camera and the light source to be different from the stop adjustment state. It is often necessary to repeat the stop-adjust-start- The testing cycle not only wastes a lot of production time, but also makes it difficult to guarantee adjustment accuracy, seriously affecting production efficiency and the reliability of product quality testing.

[0003] To address the aforementioned issues, there is an urgent need to design a device and method that enables line scan camera adjustment during the dynamic operation of the machine train, in order to resolve the pain points of adjustment during downtime and repeated adjustments, and improve the stability and accuracy of the detection system. Summary of the Invention

[0004] In view of this, the purpose of the present invention is to overcome the shortcomings of the prior art and provide a method and apparatus for adjusting a line scan camera module.

[0005] This invention is implemented using the following scheme: A method for adjusting a line scan camera module, comprising the following steps:

[0006] S1: After replacing the inspection roller, the operator enters the roller diameter value of the new inspection roller;

[0007] S2: Based on the input roller diameter value, the system automatically calculates the target position of the light strip, the angle parameters of the light source module, and the angle parameters of the camera module;

[0008] S3: Based on the calculation results, the system automatically pre-adjusts the camera module pitch angle and the position of the light source module;

[0009] S4: Close the aluminum strip surface defect acquisition software and start the camera module debugging software;

[0010] S5: Controls the operation of the aluminum strip conveyor train to establish stable tension in the strip;

[0011] S6: Adjust the tilt angle of the camera module through the control system until the brightness of the entire screen displayed in the camera module debugging software is uniform.

[0012] S7: By fine-tuning the tilt angle of the camera module lens, the camera module lens can make the brightest part of the direct light band, and while ensuring that the image grayscale value is between 60-120, adjust to a smaller aperture value to obtain the maximum brightness, so as to ensure the maximum depth of field of the camera module.

[0013] S8: Adjust the focal length of the camera module until the image of the strip surface displayed in the camera module debugging software is clear;

[0014] S9: Start the aluminum plate and strip surface defect acquisition software to complete the dynamic online adjustment of the line scan camera module.

[0015] Furthermore, in step S2, the method by which the system calculates the target position of the light strip, the angle parameters of the light source module, and the angle parameters of the camera module is as follows:

[0016] (1) The initial target position of the light strip is set to ±120° of the outer circle of the standard inspection roller. In order to reduce the mirror glare caused by the high reflectivity of the aluminum strip surface, the initial angle between the camera module and the strip surface is set to 60°, and the initial angle between the light source module and the strip surface is 30°.

[0017] (2) Based on the roll diameter of the standard inspection roll, the equation of the outer circle curve of the roll diameter of the standard inspection roll is derived:

[0018] ;

[0019] Where R is the radius of the standard inspection roller, the axis of the standard inspection roller is the origin of the coordinate system, and x and y are the horizontal and vertical coordinates of the coordinate system.

[0020] Therefore, the position coordinates of the light band at the initial position of ±120° are obtained as follows:

[0021] or ;

[0022] Based on the target position of the light strip and the initial parameters of the light source module, the ray equation of the light source module and the scanning position equation of the camera module are established through existing geometric relationships.

[0023] Light source module ray equation:

[0024] or ;

[0025] Camera module scanning position equation:

[0026] or ;

[0027] When the inspection roller is repaired or replaced, and the roller radius changes from R to r, the set target position of the light strip becomes:

[0028] or ;

[0029] By combining the ray equations of the light source module, the scanning position equation of the camera module, and the target position coordinates of the light band, the slope of the ray equation of the light source module can be calculated using the point-slope formula:

[0030] or ;

[0031] The slope of the camera module's scanning position equation:

[0032] or ;

[0033] (3) Calculate the angle between the light source module and the surface of the aluminum plate strip using the arctangent function. θ 1. Angle between the camera module and the surface of the aluminum strip θ 2:

[0034] ;

[0035] (4) The system will include the angle θ 1. Convert to a light source module, adjust the angle, and adjust the included angle. θ 2. Convert to camera module pitch angle adjustment.

[0036] Furthermore, the projections of the camera module and the light source module on the horizontal plane are respectively located on both sides of the corresponding light strip in the strip conveying direction. Therefore, the projection of the camera module on the horizontal plane is located on the light strip near the exit side in the strip conveying direction, and the projection of the light source module on the horizontal plane is located on the light strip near the entrance side in the strip conveying direction.

[0037] Furthermore, the initial mounting distance between the light source module and the surface of the aluminum plate strip is 300mm, and the initial mounting distance between the camera module and the surface of the aluminum plate strip is 300mm.

[0038] A line scan camera module adjustment device includes a camera module, a light source module, and a control module. The camera module and the light source module are connected to the control module via DP communication. The camera module and the light source module are located above or below the strip. The camera module includes a camera support base, on which a camera component and a tilt adjustment component for adjusting the tilt angle of the camera component are movably connected. A tilt adjustment component for adjusting the pitch angle of the camera support base is provided at the lower part of the camera support base. The light source module includes a light source support base, on which the light source component is rotatably connected. A light source sway motor for driving the sway rotation of the light source component is installed on the side of the light source support base.

[0039] Furthermore, the control module includes an ET200S substation with a stepper module and a counting module. The stepper module is connected to the camera assembly and the tilt adjustment assembly. An encoder is mounted on the motor shaft of the light source swing motor. The counting module is electrically connected to the encoder. A frequency converter for adjusting the light source swing motor is connected to the light source assembly.

[0040] Furthermore, the pitch angle adjustment assembly includes a pitch angle adjustment motor, which is electrically connected to a servo controller and a rotary transformer. The motor shaft of the pitch angle adjustment motor is mounted under the camera support. The pitch angle adjustment motor is mounted above or below the strip. The tilt angle adjustment assembly includes a tilt angle adjustment plate and a tilt angle adjustment motor. A swing base is provided under the tilt angle adjustment plate. The lower part of the swing base is hinged to the camera support. The tilt angle adjustment motor is mounted on the camera support. The end of the motor shaft of the tilt angle adjustment motor is mounted on the rotation center of the lower end of the swing base. The servo controller is connected to the control module via DP communication. The tilt angle adjustment motor is electrically connected to the stepper module.

[0041] Furthermore, the camera assembly includes a camera body, which is mounted on a tilt adjustment plate. On the left and right sides of the camera body, on the tilt adjustment plate, are respectively a focal length adjustment component for adjusting the focal length of the camera body and an aperture adjustment component for adjusting the aperture of the camera body.

[0042] Furthermore, the camera body has a focal length gear fitted around its focusing ring and an aperture gear fitted around its aperture ring. The focal length adjustment assembly includes a focal length adjustment motor mounted on a tilt adjustment plate. A focal length adjustment gear is mounted on the motor rotation shaft of the focal length adjustment motor, and the focal length adjustment gear meshes with the focal length gear. The aperture adjustment assembly includes an aperture adjustment motor mounted on a tilt adjustment plate. An aperture adjustment gear is mounted on the motor rotation shaft of the aperture adjustment motor, and the aperture adjustment gear meshes with the aperture gear. Both the focal length adjustment motor and the aperture adjustment motor are electrically connected to the stepper module. The step angle of the tilt adjustment motor, the focal length adjustment motor, and the aperture adjustment motor is 1.8°.

[0043] Furthermore, the light source assembly includes a light source body, a hinge seat is provided on the rear of the light source body, the hinge seat is hinged to the light source support seat, the motor shaft of the light source swing motor is mounted on the hinge center of the hinge seat, an encoder is installed at the connection between the motor shaft of the light source swing motor and the hinge center, and the light source swing motor is a synchronous motor.

[0044] Compared with the prior art, the present invention has the following advantages: it is reasonably designed to solve the problems of the existing aluminum plate and strip surface defect detection line scanning camera requiring manual adjustment after shutdown, and easy deviation after dynamic operation requiring repeated adjustment. It realizes automatic pre-adjustment of camera and light source after roller diameter change, reduces manual intervention, and improves the adaptability and stability of detection system. Attached Figure Description

[0045] Figure 1 This is a schematic diagram of the light source path of the present invention;

[0046] Figure 2 This is a schematic diagram of the camera module structure of the present invention;

[0047] Figure 3 This is a top view of the camera module structure of the present invention;

[0048] Figure 4 This is a side view of the camera module structure of the present invention;

[0049] Figure 5 This is a schematic diagram of the structure of the light source module of the present invention.

[0050] In the diagram: 1-Inspection roller; 2-Camera module; 3-Light source module; 4-Control module; 6-Strip; 7-Camera support; 8-Camera assembly; 9-Tilt adjustment assembly; 10-Pitch adjustment assembly; 11-Light source support; 12-Light source assembly; 13-Light source swing motor; 14-Frequency converter; 15-Pitch adjustment motor; 16-Servo controller; 17-Tilt adjustment plate; 18-Tilt adjustment motor; 19-Swing seat; 20-Camera body; 21-Focal length adjustment assembly; 22-Aperture adjustment assembly; 23-Focal length gear; 24-Aperture gear; 25-Focal length adjustment motor; 26-Focal length adjustment gear; 27-Aperture adjustment motor; 28-Aperture adjustment gear; 29-Light source body; 30-Hinge seat. Detailed Implementation

[0051] The present invention will be further described below with reference to the accompanying drawings and embodiments.

[0052] It should be noted that the following detailed descriptions are exemplary and intended to provide further explanation of this application. Unless otherwise specified, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains.

[0053] It should be noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the exemplary embodiments according to this application. As used herein, the singular form is intended to include the plural form as well, unless the context clearly indicates otherwise. Furthermore, it should be understood that when the terms "comprising" and / or "including" are used in this specification, they indicate the presence of features, steps, operations, devices, components, and / or combinations thereof.

[0054] like Figure 1-5 As shown, a method for adjusting a line scan camera module includes the following steps:

[0055] S1: After replacing the inspection roller 1, the operator manually inputs the roller diameter value of the new inspection roller into the control system.

[0056] S2: Based on the input roller diameter value, the system automatically calculates the target position of the light strip, the angle parameters of the light source module, and the angle parameters of the camera module;

[0057] S3: Based on the calculation results, the system automatically pre-adjusts the camera module pitch angle and the position of the light source module;

[0058] S4: Close the aluminum strip surface defect acquisition software and start the camera module debugging software;

[0059] S5: Controls the operation of the aluminum sheet and strip train to establish stable tension in the strip;

[0060] S6: Adjust the tilt angle of the camera module through the control system until the brightness of the entire screen displayed in the camera module debugging software is uniform.

[0061] S7: By fine-tuning the tilt angle of the camera module lens, the camera module lens can make the brightest part of the direct light band, and while ensuring that the image grayscale value is between 60-120, adjust to a smaller aperture value to obtain the maximum brightness, so as to ensure the maximum depth of field of the camera module.

[0062] S8: Adjust the focal length of the camera module until the image of the strip surface displayed in the camera module debugging software is clear;

[0063] S9: Start the aluminum strip surface defect acquisition software to complete the dynamic online adjustment of the line scan camera module. This adjustment can be performed while the machine is running to avoid the failure of the surface inspection system adjustment due to the difference between static and dynamic conditions.

[0064] In this embodiment, the method for calculating the target position of the light strip, the angle parameters of the light source module, and the angle parameters of the camera module in step S2 is as follows:

[0065] (1) The initial target position of the light strip is set to ±120° of the outer circle of the standard inspection roller. In order to reduce the mirror glare caused by the high reflectivity of the aluminum strip surface, the initial angle between the camera module and the strip surface is set to 60°, and the initial angle between the light source module and the strip surface is 30°.

[0066] (2) Based on the roll diameter of the standard inspection roll, the equation of the outer circle curve of the roll diameter of the standard inspection roll is derived:

[0067] ;

[0068] Where R is the radius of the standard inspection roller, the axis of the standard inspection roller is the origin of the coordinate system, and x and y are the horizontal and vertical coordinates of the coordinate system.

[0069] Therefore, the position coordinates of the light band at the initial position of ±120° are obtained as follows:

[0070] When inspecting the upper surface: ;

[0071] When inspecting the lower surface: ;

[0072] Based on the target position of the light strip and the initial parameters of the light source module, the ray equation of the light source module and the scanning position equation of the camera module are established through existing geometric relationships.

[0073] Light source module ray equation:

[0074] When inspecting the upper surface: ;

[0075] When inspecting the lower surface: ;

[0076] Camera module scanning position equation:

[0077] When inspecting the upper surface: ;

[0078] When inspecting the lower surface: ;

[0079] When the inspection roller is repaired or replaced, and the roller radius changes from R to r, the set target position of the light strip becomes:

[0080] When inspecting the upper surface: ;

[0081] When inspecting the lower surface: ;

[0082] By combining the ray equations of the light source module, the scanning position equation of the camera module, and the target position coordinates of the light band, the slope of the ray equation of the light source module can be calculated using the point-slope formula:

[0083] When inspecting the upper surface: ;

[0084] When inspecting the lower surface: ;

[0085] The slope of the camera module's scanning position equation:

[0086] When inspecting the upper surface: ;

[0087] When inspecting the lower surface: ;

[0088] (3) Calculate the angle θ1 between the light source module and the surface of the aluminum plate and strip, and the angle θ2 between the camera module and the surface of the aluminum plate and strip using the arctangent function:

[0089] ;

[0090] (4) The system will include the angle θ 1. Convert to a light source module, adjust the angle, and adjust the included angle. θ 2. Convert to camera module pitch angle adjustment.

[0091] In this embodiment, the camera module and the light source module are projected onto the horizontal plane on opposite sides of the corresponding light strip in the strip conveying direction. Therefore, the projection of the camera module on the horizontal plane is located on the light strip near the exit side in the strip conveying direction, and the projection of the light source module on the horizontal plane is located on the light strip near the entrance side in the strip conveying direction.

[0092] In this embodiment, the initial installation distance between the light source module and the surface of the aluminum plate strip is 300mm, and the initial installation distance between the camera module and the surface of the aluminum plate strip is 300mm.

[0093] A line scan camera module adjustment device includes a camera module 2, a light source module 3, and a control module 4. The camera module and the light source module are connected to the control module via DP communication. The camera module and the light source module are located above or below the strip material, corresponding to the detection of the upper surface and the detection of the lower surface of the strip material 6. The camera module includes a camera support base 7, on which a camera component 8 and a tilt adjustment component 9 for adjusting the tilt angle of the camera component are movably connected. A tilt adjustment component 10 for adjusting the tilt angle of the camera support base is provided at the lower part of the camera support base. The tilt adjustment component is mounted above or below the strip material. The light source module includes a light source support base 11, on which a light source component 12 is rotatably connected. A light source sway motor 13 for driving the sway of the light source component is installed on the side of the light source support base.

[0094] In this embodiment, the control module includes an ET200S substation with a stepper module and a counting module. The ET200S substation acts as a distributed I / O station, exchanging data with the main control system via the PROFIBUS-DP protocol. The stepper module and the counting module serve as extended functional modules of the ET200S substation, respectively used to output stepper motor control pulses and receive encoder feedback signals. The stepper module drives the camera assembly and tilt adjustment assembly to move. An encoder is mounted on the motor shaft of the light source swing motor, and the counting module is electrically connected to the encoder. The counting module is used to receive position signals fed back from the encoder. A frequency converter 14 for adjusting the light source swing motor is connected to the light source assembly. The tilt adjustment assembly and the frequency converter are connected to the main control system via DP communication to realize the transmission of command and status data with the main control system.

[0095] In this embodiment, the pitch angle adjustment assembly includes a pitch angle adjustment motor 15, which is electrically connected to a servo controller 16 and a rotary transformer. The motor shaft of the pitch angle adjustment motor is mounted under the camera support. The rotation of the motor shaft of the pitch angle adjustment motor drives the camera support to rotate around the axis. The pitch angle adjustment motor is mounted above or below the strip. The tilt angle adjustment assembly includes a tilt angle adjustment plate 17 and a tilt angle adjustment motor 18. A swing seat 19 is provided under the tilt angle adjustment plate. The lower part of the swing seat is hinged to the camera support. The tilt angle adjustment motor is mounted on the camera support. The end of the motor shaft of the tilt angle adjustment motor is mounted on the rotation center of the lower end of the swing seat. That is, the end of the motor shaft of the tilt angle adjustment motor is fixed to the swing seat. The rotation of the swing seat is achieved by the rotation of the motor shaft of the tilt angle adjustment motor. The servo controller is connected to the control module via DP communication. The tilt angle adjustment motor is electrically connected to the stepper module.

[0096] In this embodiment, the camera assembly includes a camera body 20, which is mounted on a tilt adjustment plate. On the left and right sides of the camera body, on the tilt adjustment plate, a focal length adjustment component 21 for adjusting the focal length of the camera body and an aperture adjustment component 22 for adjusting the aperture of the camera body are respectively mounted.

[0097] In this embodiment, a focal length gear 23 is fitted around the focusing ring of the camera body, and an aperture gear 24 is fitted around the aperture ring of the camera body. The focal length adjustment assembly includes a focal length adjustment motor 25, which is mounted on a tilt adjustment plate. A focal length adjustment gear 26 is mounted on the motor rotation shaft of the focal length adjustment motor, and the focal length adjustment gear meshes with the focal length gear. The aperture adjustment assembly includes an aperture adjustment motor 27, which is mounted on a tilt adjustment plate. An aperture adjustment gear 28 is mounted on the motor rotation shaft of the aperture adjustment motor, and the aperture adjustment gear meshes with the aperture gear. Both the focal length adjustment motor and the aperture adjustment motor are electrically connected to a stepper module. The step angle of the tilt adjustment motor, the focal length adjustment motor, and the aperture adjustment motor is 1.8°. Specifically, the tilt adjustment motor, the focal length adjustment motor, and the aperture adjustment motor are all stepper motors, and the matching stepper driver is set to 200 pulses / revolution, i.e., 1 STEP. The module controls the rotation of the stepper motor by outputting pulse signals. Every 200 pulses output, the stepper motor rotates one revolution (360°), corresponding to a precise adjustment of the step angle of 1.8°.

[0098] In this embodiment, the light source assembly includes a light source body 29, and a hinge seat 30 is provided on the rear of the light source body. The hinge seat is hinged to the light source support seat. The motor shaft of the light source swing motor is mounted on the hinge center of the hinge seat, that is, the motor shaft of the light source swing motor is fixed on the hinge seat. The rotation of the motor shaft of the light source swing motor drives the movement of the hinge seat, thereby realizing the swing of the light source body. An encoder is installed at the connection between the motor shaft of the light source swing motor and the hinge center. The encoder is electrically connected to the counting module and is used to feed back the actual rotation angle of the light source swing motor to the counting module to form a closed-loop control to ensure the accuracy of the swing angle of the light source body. The light source swing motor is a synchronous motor, which is driven by a frequency converter. The frequency converter receives instructions from the control module to control the rotation angle of the synchronous motor.

[0099] In this embodiment, in step S3, the system drives the pitch angle adjustment motor through the servo controller of the pitch angle adjustment component and drives the light source swing motor through the frequency converter of the light source component according to the calculation results, thereby completing the automatic pre-adjustment of the camera pitch angle and the light source.

[0100] In this embodiment, in S7, the aperture adjustment motor is driven by the 1STEP module, and the pitch angle adjustment motor is finely adjusted by the servo controller so that the camera lens directly hits the brightest part of the light band and obtains the maximum brightness within a small aperture range, so as to ensure the maximum depth of field of the camera.

[0101] In this embodiment, in S8, the focal length adjustment motor is driven by the 1STEP module to adjust the focal length of the camera body until the image of the strip surface displayed in the camera debugging software is clear.

[0102] Unless otherwise stated, if any of the technical solutions disclosed in this invention specify a numerical range, then the disclosed numerical range is a preferred numerical range. Anyone skilled in the art should understand that the preferred numerical range is merely one among many feasible numerical values ​​that has a more obvious or representative technical effect. Because there are many numerical values, it is impossible to list them all. Therefore, this invention discloses only some numerical values ​​to illustrate the technical solutions of this invention. Furthermore, the numerical values ​​listed above should not constitute a limitation on the scope of protection of this invention.

[0103] If the terms "first" or "second" are used in this document to specify the components, those skilled in the art should know that the use of "first" or "second" is merely for the purpose of distinguishing the components in the description. Unless otherwise stated, the above terms have no special meaning.

[0104] If this invention discloses or relates to mutually fixedly connected components or structural parts, then, unless otherwise stated, a fixed connection can be understood as: a detachable fixed connection (e.g., using bolts or screws), or a non-detachable fixed connection (e.g., riveting, welding). Of course, mutually fixed connections can also be replaced by an integral structure (e.g., manufactured in one piece using a casting process) (except where it is obviously impossible to use an integral molding process).

[0105] Furthermore, the orientations or positional relationships used in any of the technical solutions disclosed in this invention above to indicate positional relationships, such as "longitudinal," "lateral," "up," "down," "front," "back," "left," "right," "vertical," "horizontal," "top," "bottom," "inner," and "outer," are based on the orientations or positional relationships shown in the accompanying drawings and are only for the convenience of describing this patent. They are not intended to indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on this patent. In addition, unless otherwise stated, the terms used to indicate shape in any of the technical solutions disclosed in this invention above include shapes that are similar to, close to, or approximate with it.

[0106] Any component provided by this invention can be assembled from multiple individual components or can be a single component manufactured by a one-piece molding process.

[0107] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention and not to limit them; although the present invention has been described in detail with reference to preferred embodiments, those skilled in the art should understand that modifications can still be made to the specific implementation of the present invention or equivalent substitutions can be made to some technical features without departing from the spirit of the technical solutions of the present invention, and all such modifications and substitutions should be covered within the scope of the technical solutions claimed in the present invention.

Claims

1. A method for adjusting a line scan camera module, characterized in that: Includes the following steps: S1: After replacing the inspection roller, the operator enters the roller diameter value of the new inspection roller; S2: Based on the input roller diameter value, the system automatically calculates the target position of the light strip, the angle parameters of the light source module, and the angle parameters of the camera module; S3: Based on the calculation results, the system automatically pre-adjusts the camera module pitch angle and the position of the light source module; S4: Close the aluminum strip surface defect acquisition software and start the camera module debugging software; S5: Controls the operation of the aluminum sheet and strip train to establish stable tension in the strip; S6: Adjust the tilt angle of the camera module through the control system until the brightness of the entire screen displayed in the camera module debugging software is uniform. S7: By fine-tuning the tilt angle of the camera module lens, the camera module lens can make the brightest part of the direct light band, and while ensuring that the image grayscale value is between 60-120, adjust to a smaller aperture value to obtain the maximum brightness, so as to ensure the maximum depth of field of the camera module. S8: Adjust the focal length of the camera module until the image of the strip surface displayed in the camera module debugging software is clear; S9: Start the aluminum strip surface defect acquisition software to complete the dynamic online adjustment of the line scan camera module; In step S2, the system calculates the target position of the light strip, the angle parameters of the light source module, and the angle parameters of the camera module as follows: (1) The initial target position of the light strip is set to ±120° of the outer circle of the standard inspection roller. In order to reduce the mirror glare caused by the high reflectivity of the aluminum strip surface, the initial angle between the camera module and the strip surface is set to 60°, and the initial angle between the light source module and the strip surface is 30°. (2) Based on the roll diameter of the standard inspection roll, the equation of the outer circle curve of the roll diameter of the standard inspection roll is derived: ; Where R is the radius of the standard inspection roller, the axis of the standard inspection roller is the origin of the coordinate system, and x and y are the horizontal and vertical coordinates of the coordinate system. Therefore, the position coordinates of the light band at the initial position of ±120° are obtained as follows: or ; Based on the target position of the light strip and the initial parameters of the light source module, the ray equation of the light source module and the scanning position equation of the camera module are established through existing geometric relationships. Light source module ray equation: or ; Camera module scanning position equation: or ; When the inspection roller is repaired or replaced, and the roller radius changes from R to r, the set target position of the light strip becomes: or ; By combining the ray equations of the light source module, the scanning position equation of the camera module, and the target position coordinates of the light band, the slope of the ray equation of the light source module can be calculated using the point-slope formula: or ; The slope of the camera module's scanning position equation: or ; (3) Calculate the angle θ1 between the light source module and the surface of the aluminum plate and strip, and the angle θ2 between the camera module and the surface of the aluminum plate and strip using the arctangent function: ; (4) The system will include the angle θ 1. Convert to a light source module, adjust the angle, and adjust the included angle. θ 2. Convert to camera module pitch angle adjustment.

2. The line scan camera module adjustment method according to claim 1, characterized in that: The camera module and the light source module are projected onto the horizontal plane on opposite sides of the corresponding light strip in the strip conveying direction. Therefore, the projection of the camera module on the horizontal plane is located on the light strip near the exit side in the strip conveying direction, and the projection of the light source module on the horizontal plane is located on the light strip near the entrance side in the strip conveying direction.

3. The line scan camera module adjustment method according to claim 2, characterized in that: The initial installation distance between the light source module and the surface of the aluminum plate strip is 300mm, and the initial installation distance between the camera module and the surface of the aluminum plate strip is 300mm.

4. A line scan camera module adjustment device, employing the line scan camera module adjustment method as described in any one of claims 2-3, characterized in that: The system includes a camera module, a light source module, and a control module. The camera module and the light source module are connected to the control module via DP communication. The camera module and the light source module are located above or below the strip. The camera module includes a camera support base, on which a camera component and a tilt adjustment component for adjusting the tilt angle of the camera component are movably connected. A tilt adjustment component for adjusting the pitch angle of the camera support base is provided at the lower part of the camera support base. The light source module includes a light source support base, on which a light source component is rotatably connected. A light source sway motor for driving the sway of the light source component is installed on the side of the light source support base.

5. The line scan camera module adjustment device according to claim 4, characterized in that: The control module includes an ET200S substation with a stepper module and a counting module. The stepper module is connected to the camera assembly and the tilt adjustment assembly. An encoder is mounted on the motor shaft of the light source swing motor. The counting module is electrically connected to the encoder. A frequency converter for adjusting the light source swing motor is connected to the light source assembly.

6. The line scan camera module adjustment device according to claim 5, characterized in that: The pitch angle adjustment assembly includes a pitch angle adjustment motor, which is electrically connected to a servo controller and a rotary transformer. The motor shaft of the pitch angle adjustment motor is mounted under the camera support. The pitch angle adjustment motor is mounted above or below the strip. The tilt angle adjustment assembly includes a tilt angle adjustment plate and a tilt angle adjustment motor. A swing base is provided under the tilt angle adjustment plate. The lower part of the swing base is hinged to the camera support. The tilt angle adjustment motor is mounted on the camera support. The end of the motor shaft of the tilt angle adjustment motor is mounted on the rotation center of the lower end of the swing base. The servo controller is connected to the control module via DP communication. The tilt angle adjustment motor is electrically connected to the stepper module.

7. The line scan camera module adjustment device according to claim 6, characterized in that: The camera assembly includes a camera body, which is mounted on a tilt adjustment plate. On the left and right sides of the camera body, on the tilt adjustment plate, are respectively a focal length adjustment component for adjusting the focal length of the camera body and an aperture adjustment component for adjusting the aperture of the camera body.

8. The line scan camera module adjustment device according to claim 7, characterized in that: The camera body has a focal length gear fitted around its focusing ring and an aperture gear fitted around its aperture ring. The focal length adjustment assembly includes a focal length adjustment motor mounted on a tilt adjustment plate. A focal length adjustment gear is mounted on the motor's rotating shaft and meshes with the focal length gear. The aperture adjustment assembly includes an aperture adjustment motor mounted on a tilt adjustment plate. An aperture adjustment gear is mounted on the motor's rotating shaft and meshes with the aperture gear. Both the focal length adjustment motor and the aperture adjustment motor are electrically connected to a stepper module. The step angle of the tilt adjustment motor, focal length adjustment motor, and aperture adjustment motor is 1.8°.

9. The line scan camera module adjustment device according to claim 5, characterized in that: The light source assembly includes a light source body, a hinge seat is provided on the rear of the light source body, the hinge seat is hinged to the light source support seat, the motor shaft of the light source swing motor is mounted on the hinge center of the hinge seat, an encoder is installed at the connection between the motor shaft of the light source swing motor and the hinge center, and the light source swing motor is a synchronous motor.

Citation Information

Patent Citations

  • Mobile phone glass cover plate arc edge defect detection device

    CN111443097A

  • Scanning system and scanning method

    CN118413607A