Binocular vision on-line strip steel width measuring method
Through the binocular vision online measurement method and the spatial position difference analysis of the two cameras, the problem of width measurement accuracy caused by strip deviation and vibration is solved, and high-precision strip width detection is achieved.
Patent Information
- Application Number
- CN202310332432.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-31
- Publication Date
- 2024-10-01
AI Technical Summary
The existing machine vision inspection system has poor width measurement accuracy due to strip deviation and vibration during strip surface quality inspection, and is difficult to be directly used for strip width and size control.
The binocular vision online measurement method is used to calculate the width of the strip through simultaneous imaging and analysis of the same material by two cameras, overcoming the principle error when imaging by a single camera, and improving measurement accuracy. Specific steps include arranging the imaging space above the strip, performing imaging calibration, and calculating the width of the strip by describing and analyzing the spatial position differences of the two line scan cameras.
It effectively improves the accuracy of strip width detection, can accurately calculate the strip deviation and deviation caused by vibration, and achieve high-precision measurement.
Smart Images

Figure BDA0004155327340000021 
Figure BDA0004155327340000031 
Figure BDA0004155327340000032
Abstract
Description
Technical Field
[0001] The invention relates to a strip surface quality detection technology based on machine vision, and more specifically to a binocular vision online strip width measurement method. Background Art
[0002] Machine vision inspection technology is widely used in various fields of industrial automation, especially in situations with high inspection speed, high inspection accuracy, and harsh inspection environment. It has the advantages of high inspection efficiency, good inspection accuracy consistency, and strong environmental adaptability. This technology has also been widely studied and applied in the field of strip surface quality inspection, realizing online detection of surface defects and strip size measurement.
[0003] In the strip surface quality inspection system based on machine vision inspection technology, defect position calculation and strip boundary detection are important indicators. Since it is necessary to locate the position of the defect on the strip width and define the strip area to be detected during image processing, the strip boundary is calculated as an auxiliary value, and then the strip width can be obtained. However, in the actual system, due to the deviation and vibration of the strip, the width calculated by the detection system has poor accuracy and is difficult to be directly used for strip width size control. To this end, the present invention proposes a method for measuring the width of the strip with binocular vision, which uses cameras with different position distributions to image the strip from different positions, and accurately calculates the deviation caused by the deviation and vibration of the strip through image comparison and analysis, so as to achieve the purpose of high-precision measurement of the strip width.
[0004] In existing patent applications, such as Chinese patent application No. 200710046375.1, a multifunctional detection system is disclosed that has the function of measuring the width and center line of the strip. The design uses a group of cameras arranged above the strip, and the field of view of multiple cameras covers the width of the strip. While detecting the surface quality, the width and center line of the strip are calculated. However, the solution is not sensitive to the deviation and vibration of the strip, and the measurement accuracy is limited. Summary of the invention
[0005] In view of the defects existing in the prior art, the purpose of the present invention is to provide a method for online measurement of strip width by binocular vision. By synchronously imaging and analyzing the same material with two cameras, the width of the strip can be accurately calculated. This can overcome and avoid the principle errors introduced by strip jitter and strip position offset during single camera imaging, and effectively improve the measurement accuracy.
[0006] To achieve the above object, the present invention adopts the following technical solution:
[0007] A binocular vision online method for measuring the width of a steel strip comprises the following steps:
[0008] S1. Arrange imaging space above the strip;
[0009] S2. Calibrate the imaging of the detection system to obtain basic parameters of the imaging space;
[0010] S3. Calculating the width of the steel strip according to the imaging of the steel strip.
[0011] Preferably, arranging the imaging space in step S1 specifically includes:
[0012] Two cameras are arranged symmetrically on the left and right sides of the upper width of the strip, and the fields of view of the two cameras simultaneously cover the width of the strip. In the imaging plane of the camera, the optical axis of the camera forms an angle θ with the width direction of the strip.
[0013] Preferably, the camera is a line scan camera.
[0014] Preferably, the angle θ is less than 90°.
[0015] Preferably, the calibration of the imaging of the detection system in step S2 specifically includes:
[0016] The width direction of the standard position of the strip is taken as the X-axis direction, and the Y-axis direction is perpendicular to the X-axis direction in the imaging plane of the camera;
[0017] The left and right boundary points of the actual position of the strip are A and B;
[0018] The left and right boundary points of the image of the actual position of the strip by the camera on the left side in the X-axis direction are A2 and B2;
[0019] The left and right boundary points of the image of the actual position of the strip by the camera on the right side in the X-axis direction are A1 and B1;
[0020] The intersection of the left boundary of the field of view of the camera on the left and the X-axis direction is taken as the origin O;
[0021] The axis points of the optical axes of the two cameras on the left and right are C1 and C2 respectively;
[0022] The boundary of the actual position of the steel strip and the imaging boundary of the camera form two triangles, namely △AA1A2 and △BB1B2;
[0023] Among them, the two base angles of △AA1A2 are θ1 and θ2 respectively, and the two base angles of △BB1B2 are θ3 and θ4 respectively.
[0024] Preferably, the calculation of the width of the strip in step S3 specifically includes:
[0025] Calculate the coordinates A of the boundary point A in the X-axis direction and the Y-axis direction x , Ay :
[0026]
[0027] Calculate the coordinates B of the boundary point B in the X-axis direction and the Y-axis direction x , B y :
[0028]
[0029] Calculate the width W of the strip:
[0030]
[0031] Wherein, θ1, θ2, θ3, and θ4 are obtained through C1, C2, A1, A2, B1, and B2 respectively.
[0032] The present invention provides a binocular vision online measurement method for strip width, which uses a group of two line scanning cameras at a certain angle to image the same position of the strip, and describes and expresses the position deviation of the strip through the spatial position difference of the two cameras. By analyzing and calculating the deviation, the width of the strip is accurately calculated. The application and implementation of this patent can effectively improve the detection accuracy of the strip width. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1 It is an imaging schematic diagram of the method for online measurement of strip width using binocular vision of the present invention;
[0034] Figure 2 It is a schematic diagram of the distribution of the imaging boundary points of the left and right cameras in the binocular vision online measurement method of the strip width of the present invention;
[0035] Figure 3 It is a schematic diagram of imaging when the boundaries of the strip steel are all located on the X-axis in the method for online measuring the width of the strip steel by binocular vision of the present invention;
[0036] Figure 4 It is a schematic diagram of imaging when one of the strip boundaries is located on the X-axis in the binocular vision online measurement method of strip width of the present invention. DETAILED DESCRIPTION
[0037] In order to better understand the above technical solution of the present invention, the technical solution of the present invention is further described below in conjunction with the accompanying drawings and embodiments.
[0038] The present invention provides a binocular vision online measurement method for strip width, comprising the following steps:
[0039] S1. Arrange imaging space above the strip;
[0040] S2. Calibrate the imaging of the detection system to obtain basic parameters of the imaging space;
[0041] S3. Calculate the width of the steel strip based on the image of the steel strip.
[0042] Arranging the imaging space in step S1 specifically includes:
[0043] Combination Figure 1 As shown, two cameras 2 and 3 are symmetrically arranged on the left and right sides of the upper width of the steel strip 1. The fields of view of the two cameras 2 and 3 cover the width of the steel strip 1 at the same time, and the imaging positions overlap. In the imaging plane of the camera, the optical axes of the cameras 2 and 3 form an angle θ with the width direction of the steel strip 1, and the angle θ is less than 90°.
[0044] Due to the difference in the spatial arrangement of the cameras 2 and 3, when the actual position of the steel strip 1 is different from its standard position 4, the imaging effects of the two cameras 2 and 3 will deviate, which is specifically reflected in the offset of the left and right boundaries of the steel strip in the image.
[0045] Cameras 2 and 3 are line scan cameras.
[0046] The step S2 of calibrating the imaging of the detection system specifically includes:
[0047] A rectangular coordinate system is established in the overlapping imaging plane of the two cameras 2 and 3, with the width direction of the standard position 4 of the strip 1 as the X-axis direction, and the Y-axis direction perpendicular to the X-axis direction in the imaging plane of the cameras 2 and 3 as the Y-axis direction;
[0048] The left and right boundary points of the actual position of strip 1 are A and B.
[0049] The left camera 2 images the actual position of the strip 1, and the left and right boundary points in the X-axis direction are A2 and B2;
[0050] The left and right boundary points of the image of the actual position of the strip steel 1 by the right camera 3 in the X-axis direction are A1 and B1;
[0051] The intersection of the left edge of the field of view of the left camera 2 and the X-axis direction is taken as the origin O;
[0052] The axis points of the optical axes of the left and right cameras 2 and 3 are C1 and C2 respectively;
[0053] Combination Figure 2 As shown, two triangles are formed by the boundary of the actual position of the strip 1 and the imaging boundary of the cameras 2 and 3, namely △AA1A2 and △BB1B2;
[0054] Among them, the two base angles of △AA1A2 are θ1 and θ2 respectively, and the two base angles of △BB1B2 are θ3 and θ4 respectively.
[0055] According to the mapping principle of the imaging of the cameras 2 and 3, the position change of the strip 1 will cause the boundary imaging position of the two cameras 2 and 3 to change accordingly. This can be reflected by the deviation of the imaging position of the left and right boundaries of the strip 1 by the two cameras 2 and 3, that is, A1A2 and B1B2 will change in position and length.
[0056] Calculating the width of the steel strip in step S3 specifically includes:
[0057] In the coordinate system, the positions of C1 and C2 are fixed, and the positions of points A1, A2, B1, and B2 are obtained through image data analysis.
[0058] In △AA1A2 and △BB1B2, the lengths of the bases A1A2 and B1B2 are obtained by image analysis, wherein the base angles θ1, θ2, θ3, θ4 are obtained by C1, C2, A1, A2, B1, B2 respectively.
[0059] Calculate the coordinates A of the boundary point A in the X-axis direction and the Y-axis direction x , A y :
[0060]
[0061] Calculate the coordinates of the boundary point B in the X-axis direction and the Y-axis direction x , B y :
[0062]
[0063] Calculate the width W of strip 1:
[0064]
[0065] For the calculation of actual strip imaging, the following situations exist:
[0066] (1) The actual strip position is on the X-axis of the coordinate system. At this time, the image effects of the two cameras are consistent, with only a left-right symmetric difference, as shown in the attached figure. Figure 3 As shown, the strip widths calculated from the two camera images are equal, and the strip boundary imaging positions overlap;
[0067] (2) In reality, one of the left and right boundaries of the strip may be on the X-axis. In this case, the two cameras will have one boundary position that overlaps, as shown in the attached figure. Figure 4 As shown;
[0068] (3) When the strip is completely above the X-axis, the boundaries of the left and right cameras are different. It is necessary to calculate the true positions of the two boundaries of the strip according to the method mentioned in this patent, and then calculate the width of the strip, as shown in the attached figure. Figure 1 shown.
[0069] Example
[0070] Two cameras are arranged above the strip with an imaging distance of 1.8m. It is planned to measure strips with a width less than 1.2m. Two line scan cameras are arranged above the strip. The positions of the camera imaging midline points in the spatial coordinate system are: C1 (-241.44, 1537.85), C2 (1641.44, 1537.85). In some cases, the strip surface images of the two cameras are obtained respectively. Through image edge finding, the boundary positions of the two camera imaging are A1 (112.81, 0), B1 (1139.90, 0), A2 (169.16, 0), and B2 (1245.05, 0).
[0071] The two base angles of △AA1A2 are θ1 and θ2, and the two base angles of △BB1B2 are θ3 and θ4, which are obtained by calculating the slopes of the straight lines C2A1, C1A2, C2B1, and C1B2 respectively. The calculation results are:
[0072] θ1=45.17°;
[0073] θ2=75.05°;
[0074] θ3=71.94°;
[0075] θ4=45.97°;
[0076] Substitute into the formula respectively:
[0077]
[0078] The coordinates of point A are calculated (157.19, 44.83);
[0079]
[0080] The coordinates of point B are calculated (1166.19, 81.59);
[0081] Calculate the distance between AB:
[0082]
[0083] We get W = 1009.66;
[0084] This distance is different from the sizes calculated from the two camera images C1 and C2, which are 1075.89 and 1027.08 respectively.
[0085] Those skilled in the art should recognize that the above embodiments are only used to illustrate the present invention, and are not intended to limit the present invention. As long as they are within the spirit of the present invention, any changes or modifications to the above embodiments will fall within the scope of the claims of the present invention.
Claims
1. A binocular vision online measurement method for strip width, characterized in that: The following steps are involved: S1. Arrange imaging space above the strip; S2. Calibrate the imaging of the detection system to obtain basic parameters of the imaging space; S3. Calculating the width of the steel strip according to the imaging of the steel strip.
2. The binocular vision online measurement method for strip width according to claim 1 is characterized in that: Arranging the imaging space in step S1 specifically includes: Two cameras are arranged symmetrically on the left and right sides of the upper width of the strip, and the fields of view of the two cameras simultaneously cover the width of the strip. In the imaging plane of the camera, the optical axis of the camera forms an angle θ with the width direction of the strip.
3. The binocular vision online measurement method for strip width according to claim 2 is characterized in that: The camera is a line scan camera.
4. The binocular vision online measurement method for strip width according to claim 2 is characterized in that: The angle θ is less than 90°.
5. The binocular vision online measurement method for strip width according to claim 2 is characterized in that: The step S2 of calibrating the imaging of the detection system specifically includes: The width direction of the standard position of the strip is taken as the X-axis direction, and the Y-axis direction is perpendicular to the X-axis direction in the imaging plane of the camera; The left and right boundary points of the actual position of the strip are A and B. The left and right boundary points of the image of the actual position of the strip by the camera on the left side in the X-axis direction are A2 and B2; The left and right boundary points of the image of the actual position of the strip by the camera on the right side in the X-axis direction are A1 and B1; The intersection of the left boundary of the field of view of the camera on the left and the X-axis direction is taken as the origin O; The center points of the optical axes of the left and right cameras are C1 and C2 respectively; The boundary of the actual position of the steel strip and the imaging boundary of the camera form two triangles, namely △AA1A2 and △BB1B2; Among them, the two base angles of △AA1A2 are θ1 and θ2 respectively, and the two base angles of △BB1B2 are θ3 and θ4 respectively.
6. The binocular vision online measurement method for strip width according to claim 5 is characterized in that: Calculating the width of the steel strip in step S3 specifically includes: Calculate the coordinates A of the boundary point A in the X-axis direction and the Y-axis direction x , A y : Calculate the coordinates B of the boundary point B in the X-axis direction and the Y-axis direction x , B y : Calculate the width W of the strip: Wherein, θ1, θ2, θ3, and θ4 are obtained through C1, C2, A1, A2, B1, and B2 respectively.
