A three-dimensional precision detection method, component and system for metal sheet surface defects

Through the combination of deep learning and coordinate system 1, the three-dimensional topography scanning of surface defects of metal sheets is realized, which solves the problems of low detection accuracy and insufficient efficiency in the existing technology, and improves the accuracy and efficiency of surface defect detection of metal sheets. Suitable for surface quality inspection of various metal sheets.

CN117630010BActive Publication Date: 2024-10-22NUCLEAR POWER INSTITUTE OF CHINA
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311593905.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-27
Publication Date
2024-10-22
Estimated Expiration
2043-11-27

AI Technical Summary

Technical Problem

Existing surface defect detection technology for metal sheets has problems such as low detection accuracy, low efficiency and limited defect information. Especially in the safety testing of special materials such as zirconium sheets, it is difficult to accurately determine the depth and location of fine scratches and pits. , leading to an increase in misjudgments and false defects.

Method used

Using a method that combines deep learning and coordinate system 1, we obtain a two-dimensional plane picture set for defect identification, extract two-dimensional feature sizes, and combine it with a depth detection unit to obtain depth information and calculate three-dimensional feature sizes to achieve three-dimensional detection of surface defects on metal sheets. Topography scanning improves detection accuracy and efficiency.

Benefits of technology

It realizes three-dimensional precision detection of surface defects of metal sheets, improves the reliability and efficiency of detection, can accurately and quantitatively detect harmful defects, reduces the false detection rate, and is suitable for surface quality inspection of various metal sheets.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117630010B_ABST
    Figure CN117630010B_ABST
Patent Text Reader

Abstract

The present invention discloses a three-dimensional precision detection method, component and system for surface defects of metal plates. The detection method proposed in the present invention realizes accurate positioning of defects based on the principles of deep learning and coordinate system one, provides target detection position and measurement trajectory for depth detection, and solves the problem of missing defect position during quality detection of metal plates; uses image processing to calculate the two-dimensional characteristic size of the defect, and calculates the depth characteristic size of the defect based on the depth information obtained by depth detection, thereby completing the detection of the three-dimensional characteristic size of the defect, and at the same time finds the harmful defects on the surface of the tested piece, and completes the scanning of the three-dimensional morphology of a single harmful defect based on the three-dimensional morphology scanning method, thereby realizing quantitative inspection of the three-dimensional morphology of surface defects, greatly improving the inspection efficiency and detection reliability of surface defects of metal plates.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of metal surface quality detection, and specifically relates to a three-dimensional precision detection method, component and system for metal plate surface defects. Background Art

[0002] Sheet metal is a common form of metal material application, widely used across various industries. The production of sheet metal components is complex, involving numerous steps. Surface quality issues such as scratches and pits can occur during testing, rolling, surface treatment, and production flow. For some specialty metal sheets, such as zirconium plate, which serves as a critical component of nuclear fuel assemblies, surface quality issues can significantly impact their safety.

[0003] Existing methods for detecting surface defects in metal sheets mainly include manual inspection, eddy current inspection, and visual inspection, all of which have drawbacks. Among them, manual inspection involves operators using microscopes, magnifying glasses, or test blocks for measurement. This is inefficient, has low detection accuracy, and is highly dependent on the experience and subjective consciousness of the inspector. Its reliability also decreases under long-term working conditions. It is difficult to determine fine scratches and is prone to misjudgment. It cannot achieve quantitative measurement and obtains limited defect information. Eddy current inspection uses the principle of electromagnetic induction, and the inspection object must be a conductive material. Furthermore, the detection depth and detection sensitivity are contradictory, making it difficult to determine the specific location of the defect. Metal surface defect detection technology based on machine vision is limited by surface imaging technology, and the detection equipment has limited access to depth information. This results in a large number of pseudo-defects without surface depth information in the detection results, increasing the false detection rate of defect detection. Summary of the Invention

[0004] In order to solve the problems of low detection accuracy, limited defect information obtained, and low efficiency in existing metal sheet surface detection technologies, the present invention provides a three-dimensional precision detection method, component and system for metal sheet surface defects. The present invention uses a full inspection + individual inspection method to obtain the three-dimensional morphology of harmful scratches, trace the deficiencies of the front-end production process, and improve the reliability and efficiency of defect detection.

[0005] The present invention is achieved through the following technical solutions:

[0006] A three-dimensional precision detection method for surface defects of metal plates, the method comprising:

[0007] Obtain a set of two-dimensional plane images of the surface of the test piece;

[0008] Using a pre-trained defect recognition model to detect the two-dimensional plane image set, and identify the category and location distribution of defects in the image;

[0009] Segmenting defects from the original image to obtain a sub-defect image set, performing contour extraction on the sub-defect image set, and calculating a two-dimensional characteristic size of the defect;

[0010] Determine the target position and measurement trajectory of the depth detection based on the contour extraction result and the principle of the coordinate system, and control the depth detection unit to perform depth detection based on the target position and measurement trajectory;

[0011] Acquire the depth information collected by the depth detection unit, and process the depth information to obtain a depth characteristic size of the defect, wherein the depth characteristic size and the two-dimensional characteristic size of the corresponding defect constitute a three-dimensional characteristic size of the defect;

[0012] Monitor the surface quality of the test piece and identify micro defects based on the identified defect type, location distribution and three-dimensional feature size;

[0013] A three-dimensional scanning trajectory of the defect is planned according to the contour and position distribution of the micro defect, and the depth detection unit is controlled according to the scanning trajectory to perform a three-dimensional morphology scan of the micro defect, thereby obtaining the three-dimensional morphology of the micro defect.

[0014] Existing metal sheet surface defect detection technologies suffer from low detection efficiency and accuracy. The detection method proposed in this invention uses deep learning and the principles of coordinate system 1 to accurately locate defects, providing target detection positions and measurement trajectories for depth detection, thus resolving the issue of missing defect locations during metal sheet quality inspection. Image processing is used to calculate the two-dimensional characteristic dimensions of defects, and based on the depth information obtained through depth detection, the depth characteristic dimensions of defects are calculated, thereby completing the detection of the three-dimensional characteristic dimensions of defects. At the same time, hazardous defects on the surface of the test piece are identified, and based on a three-dimensional morphology scanning method, the three-dimensional morphology of a single hazardous defect is scanned, thereby achieving quantitative inspection of the three-dimensional morphology of surface defects, greatly improving the efficiency and reliability of metal sheet surface defect inspection.

[0015] As a preferred embodiment, the present invention segments defects from the original image to obtain a sub-defect image set, extracts contours of the sub-defect image set, and calculates the two-dimensional feature size of the defect, specifically including:

[0016] Mark defects with end-to-end rectangular boxes and indicate the defect category;

[0017] Using the image cropping method, the defects are segmented from the original image according to the coordinates of the rectangular box marking the defects to obtain a sub-defect image set;

[0018] Contour extraction is performed on the sub-defect image set, and the two-dimensional characteristic size of the defect is calculated based on the contour extraction result.

[0019] As a preferred embodiment, the present invention determines the target position and measurement trajectory of depth detection based on the contour extraction result and in combination with the principle of coordinate system, specifically including:

[0020] According to the results of contour extraction, the position distribution of defects is converted into the real space coordinate system to obtain the distribution of defects in space;

[0021] Based on the distribution of defects in space, the target position and measurement trajectory for depth detection are planned. The measurement trajectory is a straight line segment located at the position with the largest grayscale change rate in the defect area and evenly distributed on both sides of the defect. The end points of the straight line segment are respectively located on the edge contour of the defect.

[0022] As a preferred embodiment, the present invention obtains the depth information collected by the depth detection unit and obtains the depth feature size of the defect based on the depth information, specifically including:

[0023] Convert the collected depth-time curve into a depth-displacement curve to obtain the depth profile of a certain cross-sectional position of the defect;

[0024] The depth characteristic size of the defect is calculated based on the depth profile.

[0025] As a preferred embodiment, the present invention plans a three-dimensional defect scanning trajectory based on the microscopic defect profile and position distribution, specifically including:

[0026] Based on the 3D topography scanning method, the optimal polygon or ellipse covering the defect is established;

[0027] The coverage area is divided unidirectionally to form a scanning trajectory.

[0028] As a preferred embodiment, the optimal polygon or ellipse for covering the defect of the present invention is specifically as follows: a polygon or ellipse is customized in the image coordinate system so that it completely covers the location of the defect;

[0029] The establishment of the optimal polygon or ellipse should ensure that the scratch area accounts for as large a proportion of the coverage area as possible.

[0030] As a preferred embodiment, the unidirectional segmentation coverage area of ​​the present invention specifically includes:

[0031] A sub-coordinate system is established in the image coordinate system, and the optimal polygon or ellipse is divided at equal intervals along the Y axis of the sub-coordinate system; the division spacing is the lateral resolution of the depth detection unit, the division line is parallel to the X axis of the sub-coordinate system, and intersects with the polygon or ellipse to form multiple parallel line segments; the established sub-coordinate system is specifically as follows: in the polygon coverage area, the Y axis is parallel to the tangent direction of the maximum inner angle of the polygon, and the X axis is perpendicular to the Y axis; in the elliptical coverage area, the X axis is parallel to the tangent direction of the maximum point of curvature of the ellipse, and the Y axis is perpendicular to the X axis; the optimal polygon or ellipse is located in the first quadrant of the sub-coordinate system and is tangent to the two coordinate axes.

[0032] As a preferred embodiment, the formation of the scanning trajectory of the present invention specifically refers to starting from the endpoint of the line segment closest to the origin of the sub-coordinate system, connecting the endpoints of each line segment in an "S" shape in sequence until the last line segment is connected to form a scanning trajectory.

[0033] In a second aspect, the present invention provides a three-dimensional precision detection component for surface defects of metal sheets, the component comprising:

[0034] A deep learning module, which obtains a two-dimensional plane image set of the surface of the test piece and uses a pre-trained defect recognition model to detect the two-dimensional plane image set to identify the type and location distribution of defects in the image;

[0035] An image processing module, which segments defects from the original image to obtain a sub-defect image set, performs contour extraction on the sub-defect image set, and calculates a two-dimensional characteristic size of the defect;

[0036] A data processing module, wherein the data processing module obtains the depth information collected by the depth detection unit, and processes the collected depth information to obtain a depth characteristic size of the defect, wherein the depth characteristic size and the two-dimensional characteristic size of the corresponding defect constitute a three-dimensional characteristic size of the defect;

[0037] A surface quality assessment module, which detects the surface quality of the test piece and identifies microscopic defects based on the identified defect types, location distribution, and three-dimensional feature sizes;

[0038] And, a path planning module, which determines the target position and measurement trajectory of depth detection based on the defect contour extraction result and the principle of coordinate system, and controls the depth detection unit to perform depth detection based on the target position and measurement trajectory; the path planning module also plans the three-dimensional scanning trajectory of the defect based on the micro defect contour and position distribution, and controls the depth detection unit to perform three-dimensional morphology scanning of the micro defect based on the scanning trajectory, thereby obtaining the three-dimensional morphology of the micro defect.

[0039] In a third aspect, the present invention provides a three-dimensional precision detection system for surface defects of metal sheets, the system comprising:

[0040] The detection component of the present invention serves as the core of data acquisition, processing and control of the entire system;

[0041] a signal control component, the signal control component being used to receive a control command issued by the detection component to drive the mechanical execution component to perform a corresponding action;

[0042] A data acquisition component, the data acquisition component is used to receive image data of the surface of the test piece and depth information data of the defect and upload them to the detection component;

[0043] and a mechanical execution component, which moves according to the motion path planned by the detection component to achieve corresponding detection.

[0044] As a preferred embodiment, the mechanical execution assembly of the present invention includes:

[0045] A spatial positioning unit, comprising a supporting platform and a positioning angle;

[0046] A three-dimensional motion unit is mounted on the supporting platform and uses a gantry structure to move in two dimensions in the horizontal plane to drive the visual acquisition unit to image the surface of the measured object and move the depth detection unit to the target position. The three-dimensional motion unit moves in the vertical direction to ensure that the depth detection unit is in a safe position and working distance in the vertical direction;

[0047] A visual acquisition unit, wherein the visual acquisition unit images the surface of the test piece and acquires image information of the surface of the test piece;

[0048] and a depth detection unit, wherein the depth detection unit moves according to the planned motion path and collects depth information of the defect in real time during the motion.

[0049] As a preferred embodiment, the supporting platform of the present invention is placed on a horizontal plane, and the positioning angle includes four right-angle blocks, which are respectively installed at the detection limit positions [Xmax, Ymax], [Xmin, Ymax], [Xmax, Ymin], and [Xmin, Ymin] of the detection system on the horizontal plane, and are used to limit the position of the test piece on the supporting platform.

[0050] As a preferred embodiment, the right-angle block of the present invention is made of polytetrafluoroethylene.

[0051] As a preferred embodiment, the three-dimensional motion unit of the present invention includes an X-axis motor displacement axis, a Y-axis motor displacement axis, a Z-axis motor displacement axis and a gantry;

[0052] The X-axis motor displacement axis is composed of two parallel axes, and the two axes have the same stroke, are aligned at both ends, and are installed in parallel on the supporting platform to achieve lateral synchronous movement;

[0053] The bottom end of the gantry is mounted on the bearing platform of the X-axis motor displacement axis;

[0054] The Y-axis motor displacement shaft is placed on the top of the gantry to achieve longitudinal movement;

[0055] The Z-direction motor displacement shaft is vertically mounted on the supporting platform of the Y-direction motor displacement shaft to achieve vertical movement.

[0056] As a preferred embodiment, the visual acquisition unit of the present invention includes an industrial camera, a fixed-focus lens, and a coaxial light source;

[0057] The visual acquisition unit is installed on the supporting platform of the Y-axis motor displacement axis; wherein, the industrial camera is connected to the fixed-focus lens via a C interface, and the coaxial light source is installed directly below the fixed-focus lens, and the center of its light-emitting surface coincides with the center of the optical axis of the industrial camera.

[0058] As a preferred embodiment, the depth detection unit of the present invention includes a micro-displacement platform and a spectral confocal sensor;

[0059] The depth detection unit is mounted on the carrier platform of the Z-axis motor displacement axis; wherein the fine-motion displacement platform is composed of an X-axis fine-motion displacement axis and a Y-axis fine-motion displacement axis, the X-axis fine-motion displacement axis is mounted perpendicular to the Y-axis fine-motion displacement axis, the X-axis fine-motion displacement axis is arranged parallel to the X-axis motor displacement axis, and the Y-axis fine-motion displacement axis is arranged parallel to the Y-axis motor displacement axis; the spectral confocal sensor is mounted on the fine-motion displacement platform through a fixture, and the X-axis fine-motion displacement axis and the Y-axis fine-motion displacement axis realize measurement trajectories at different angles in a plane through velocity vector synthesis.

[0060] Compared with the prior art, the present invention has the following advantages and beneficial effects:

[0061] 1. The present invention images surface defects of the test piece, identifies and locates the defects using deep learning methods, provides a relatively accurate target detection position and measurement trajectory for depth detection, and uses image processing technology to calculate the two-dimensional characteristic size of the defect. Based on the target detection position and measurement trajectory, the depth detection unit is controlled to perform depth detection, and the depth characteristic size is calculated using the depth information obtained from the detection, completing the measurement of the three-dimensional characteristic size of the defect. Based on the defect three-dimensional morphology method, the three-dimensional morphology scanning of hazardous defects is achieved, thereby achieving quantitative detection of the three-dimensional morphology of surface defects of metal plates, thereby improving the efficiency and reliability of metal plate surface detection.

[0062] 2. The technology proposed in this invention can be widely applied to various surface defect quality inspection needs of metal plates, such as plate production and manufacturing, process products and final products involving flat surface quality inspection and control, etc., and has strong market application value. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The drawings described herein are used to provide a further understanding of the embodiments of the present invention, constitute a part of this application, and do not constitute a limitation of the embodiments of the present invention. In the drawings:

[0064] Figure 1 Flowchart of the detection method according to an embodiment of the present invention.

[0065] Figure 2 This is a principle block diagram of the detection component of an embodiment of the present invention.

[0066] Figure 3 Schematic diagram of the detection system architecture according to an embodiment of the present invention.

[0067] Figure 4 Schematic diagram of the working principle of the coaxial light source according to an embodiment of the present invention.

[0068] Figure 5 4 is a flowchart of the detection system of an embodiment of the present invention.

[0069] Figure 6 Schematic diagram of detection unit path planning according to an embodiment of the present invention.

[0070] Figure 7 Schematic diagram comparing the optimal polygon / ellipse and the optimal circumscribed rectangle according to an embodiment of the present invention.

[0071] Figure 8 A schematic diagram of establishing a sub-coordinate system according to an embodiment of the present invention.

[0072] Figure 9 Schematic diagram of defect three-dimensional morphology scanning trajectory planning according to an embodiment of the present invention.

[0073] Figure 10 This is a three-dimensional morphology detection diagram of defects in the zirconium alloy plate according to an embodiment of the present invention.

[0074] Reference numerals and corresponding component names:

[0075] 1-Detection component, 2-Signal control component, 3-Data acquisition component, 4-Mechanical execution component, 5-X-axis motor displacement axis 1, 6-X-axis displacement axis 2, 7-Y-axis displacement axis, 8-Z-axis displacement axis, 9-Industrial camera, 10-Fixed focus lens, 11-Coaxial light source, 12-X-axis micro-displacement axis, 13-Y-axis micro-displacement axis, 14-Spectral confocal sensor, 15-Carrying platform, 16-Positioning angle, 17-Test piece, 18-Gantry, 19-LED light source, 20-Lens, 21-Spectrometer. DETAILED DESCRIPTION

[0076] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with examples and drawings. The exemplary embodiments of the present invention and their descriptions are only used to explain the present invention and are not intended to limit the present invention.

[0077] Example 1

[0078] In sheet metal surface defect detection technology, manual inspection techniques suffer from low efficiency, low detection accuracy, strong reliance on the inspector's experience and subjective awareness, lack of reliability, prone to misjudgment, and inability to achieve quantitative measurement. Eddy current inspection technology struggles to determine the specific location of defects. Machine vision-based inspection techniques are limited by surface imaging technology and limited access to depth information, resulting in a large number of false defects and an increased false detection rate. To address these issues, this embodiment proposes a three-dimensional precision inspection method for sheet metal surface defects.

[0079] Specific as Figure 1 As shown, the detection method proposed in this embodiment specifically includes the following steps:

[0080] Step 1: Obtain a set of two-dimensional plane images of the surface of the test piece.

[0081] Step 2: Use the pre-trained defect recognition model to detect the acquired two-dimensional plane image set and identify the category and location distribution of defects in the image.

[0082] Step 3: Segment the defects from the original image to obtain a sub-defect image set, perform contour extraction on the sub-defect image set, and calculate the two-dimensional feature size of the defect.

[0083] Step 4: Determine the target position and measurement trajectory of depth detection based on the contour extraction result and the principle of coordinate system 1, and control the depth detection unit to perform depth detection based on the target position and measurement trajectory.

[0084] Step 5: Acquire the depth information collected by the depth detection unit, and obtain the depth feature size of the defect based on the collected depth information.

[0085] Step 6: Based on the identified defect types, location distribution, and three-dimensional feature sizes, the surface quality of the test piece is inspected and microscopic defects are identified.

[0086] Step 7: plan a three-dimensional scanning trajectory of the defect according to the contour and position distribution of the micro defect and control the depth detection unit to perform a three-dimensional morphology scan of the micro defect according to the scanning trajectory, thereby obtaining the three-dimensional morphology of the micro defect.

[0087] The detection method proposed in this embodiment first performs a full inspection of the surface defects of the test piece, that is, obtains the three-dimensional characteristic size (that is, the two-dimensional characteristic size and the depth characteristic size) of the surface defects of the test piece. Specifically, based on the principles of deep learning and coordinate system one, it realizes precise positioning of defects, provides a reliable target detection position and measurement trajectory for depth detection, and solves the problem of missing defect position during metal plate quality inspection. At the same time, it uses image processing technology to calculate the two-dimensional characteristic size of the defect, and detects depth information according to the precisely located defect position and measurement trajectory to obtain the depth characteristic size, completing the three-dimensional characteristic size detection of the defect. At the same time, it also performs individual inspections on hazardous defects, that is, obtains the three-dimensional morphology of a single defect, analyzes the cause of the defect, and improves the reliability and efficiency of defect detection.

[0088] Furthermore, a training dataset was constructed using a collection of two-dimensional images of various metal plate surfaces. This dataset was then used to train a deep learning model, resulting in a defect recognition model that identifies defect types and location distribution. It should be noted that this deep learning model utilizes an existing deep learning model architecture, which will not be further elaborated here.

[0089] Furthermore, defects are marked with end-to-end rectangular boxes and their categories are indicated. The image cropping method is used to segment the defects from the original image according to the coordinates of the rectangular boxes to obtain a sub-defect image set. The contours of the sub-defect image set are extracted, and the number of pixels in the contour area and on the contour edge is counted to obtain the two-dimensional characteristic size value of the defect.

[0090] Furthermore, based on the contour extraction results, the defect's position distribution is converted to a real-world coordinate system to determine the spatial distribution of the defect. This allows the target position and measurement trajectory for depth detection to be planned. Specifically, the measurement trajectory is a straight line segment located at the point where the grayscale change rate is the largest in the defect area, evenly distributed on both sides of the defect, with the endpoints of the line segment located on the edge contour of the defect.

[0091] Furthermore, based on the target position and measurement trajectory of the depth detection, the depth detection unit is controlled to move to the target position. Based on the principle of velocity vector synthesis, the depth detection unit is controlled to move along the planned measurement trajectory while simultaneously collecting depth data. The synthesized motion velocity is calculated, and the acquired depth-time curve is converted into a depth-displacement curve using the time-displacement conversion relationship to obtain the depth profile of a certain cross-sectional position of the defect. In this way, the target position information can be determined by the displacement distance, and the depth information of the position point can be determined by the displacement depth function, thereby completing the three-dimensional characteristic size detection of the defect.

[0092] Furthermore, based on the identified defect types, location distribution and three-dimensional characteristic sizes, the surface quality of the tested part is evaluated using surface quality assessment technology, and harmful defects on the surface of the tested part are found.

[0093] Furthermore, based on the three-dimensional morphology scanning method, the optimal polygon / ellipse covering the defect is established, the coverage area is divided unidirectionally, a scanning trajectory is formed, the scanning of the three-dimensional morphology of a single defect is completed, and the obtained three-dimensional discrete points are fitted into a three-dimensional surface, thereby obtaining the three-dimensional morphology of a single defect.

[0094] Specifically, the optimal polygon / ellipse for defect coverage refers to creating a custom polygon / ellipse in the image coordinate system that completely covers the defect location. For directional defects such as scratches, polygonal coverage is used. The principle for creating polygons is to minimize the number of sides, and convex / concave polygons are acceptable. For defects such as pits, ellipses are used. The optimal polygon / ellipse should ensure that the scratch area accounts for as large a proportion of the coverage area as possible.

[0095] The unidirectional segmentation coverage area specifically includes: establishing a sub-coordinate system in the image coordinate system, segmenting the optimal polygon / ellipse at equal intervals along the Y-axis of the sub-coordinate system, with the segmentation spacing being the lateral resolution of the depth detection unit, and the segmentation line being parallel to the X-axis of the sub-coordinate system, intersecting with the polygon / ellipse to form multiple parallel line segments. The sub-coordinate system established specifically means that in the polygon coverage area, the Y-axis is parallel to the tangent direction of the maximum internal angle, and the X-axis is perpendicular to the Y-axis; in the elliptical coverage area, the X-axis is parallel to the tangent direction of the point of maximum curvature, and the Y-axis is perpendicular to the X-axis; the optimal polygon / ellipse is located in the first quadrant of the sub-coordinate system and is tangent to both coordinate axes.

[0096] The formation of the scanning trajectory specifically refers to starting from the endpoint of the line segment closest to the origin of the sub-coordinate system, connecting the endpoints of each line segment in an "S" shape until the last line segment is connected to form a scanning trajectory.

[0097] Based on the same technical concept as above, this embodiment also proposes a three-dimensional precision detection component for surface defects of metal plates, such as Figure 2As shown, the detection component includes:

[0098] A deep learning module obtains a set of two-dimensional plane images of the surface of the test piece and uses a pre-trained defect recognition model to detect the obtained two-dimensional plane image set to identify the category and location distribution of defects in the image.

[0099] The image processing module segments defects from the original image to obtain a sub-defect image set, performs contour extraction on the sub-defect image set, and calculates the two-dimensional characteristic size of the defect.

[0100] The data processing module obtains the depth information collected by the depth detection unit and processes the collected depth information to obtain the depth characteristic size of the defect.

[0101] The surface quality assessment module detects the surface quality of the test piece based on the identified defect type, location distribution and three-dimensional feature size, and determines microscopic defects.

[0102] And, a path planning module, which determines the target position and measurement trajectory of depth detection based on the contour extraction result and the principle of the coordinate system, and controls the depth detection unit to perform depth detection based on the target position and measurement trajectory; the path planning module also plans the three-dimensional scanning trajectory of the defect according to the micro-defect contour and position distribution, and controls the depth detection unit to perform three-dimensional morphology scanning of the micro-defect according to the scanning trajectory, thereby obtaining the three-dimensional morphology of the micro-defect.

[0103] Based on the above-mentioned three-dimensional precision detection component for metal sheet surface defects, this embodiment also proposes a three-dimensional precision detection system for metal sheet surface defects, such as Figure 3 As shown, the detection system mainly includes: the above-mentioned three-dimensional precision detection component 1 as the core of data acquisition, processing and control. The detection component 1 can adopt a computer device with calculation, processing, storage and other functions; a signal control component 2; a data acquisition component 3 and a mechanical execution component 4.

[0104] Among them, the signal control component 2 is used to receive control commands issued by the detection component 1 to drive the mechanical actuator component 4 to perform corresponding actions. The data acquisition component 3 is used to receive relevant image data and upload it to the detection component 1. The mechanical actuator component 3 is used to perform image acquisition and depth information detection of the test object under the control of the detection component 1. It should be noted that both the signal control component 2 and the data acquisition component 3 can adopt existing conventional signal control devices and data acquisition devices, and will not be detailed here.

[0105] The mechanical execution component 4 includes a spatial positioning unit, a three-dimensional motion unit, a visual acquisition unit and a depth detection unit.

[0106] The spatial positioning unit includes a carrier 15 and a positioning angle 16. The carrier 15 is placed on a horizontal plane and is used to carry and install other units of the mechanical actuator. The positioning angle 16 includes four right-angle blocks, which are respectively installed at the detection limit positions [Xmax, Ymax], [Xmin, Ymax], [Xmax, Ymin], and [Xmin, Ymin] of the detection system in the X and Y directions, and are used to limit the position of the test piece 17 on the carrier. The test piece needs to be placed in the area limited by the positioning angle. Polytetrafluoroethylene has the lowest friction coefficient among solid materials, which can avoid secondary damage to the test piece during the detection process. Therefore, in this embodiment, the right-angle block is preferably made of polytetrafluoroethylene. The coordinate system of the detection system is specifically as follows: the XY plane is parallel to the plane where the carrier 15 is located, and the direction perpendicular to the XY plane is the Z direction.

[0107] The three-dimensional motion unit utilizes a gantry structure, enabling two-dimensional horizontal and vertical motion. The two-dimensional horizontal motion drives the visual acquisition unit to image the surface of the test piece while also enabling the depth detection unit to move to the target detection position. Vertical motion simultaneously ensures that the depth detection unit remains in a safe vertical position and working distance. The three-dimensional motion unit specifically comprises precision linear motor displacement axes (X-axis 5, 6; Y-axis 7; Z-axis 8) and a gantry 18. The three-dimensional motion unit is mounted on a support platform 15. The X-axis consists of two parallel axes (i.e., 5 and 6) with identical travel distances, aligned at both ends, and mounted parallel to the support platform 15, achieving synchronous motion in the X direction. The bottom end of the gantry 18 is mounted on the support platform of the X-axis. The Y-axis 7 is positioned laterally on the top of the gantry 18 to enable motion in the Y direction. The Z-axis 8 is mounted vertically on the support platform of the Y-axis to enable motion in the Z direction.

[0108] The visual acquisition unit includes an industrial camera 9, a fixed-focus lens 10 and a coaxial light source 11. The visual acquisition unit is installed on the supporting platform of the Y-axis displacement axis 7; wherein, the industrial camera 9 is connected to the fixed-focus lens 10 with a C interface, and the coaxial light source 11 is installed directly below the fixed-focus lens 10, and the center of its light-emitting surface coincides with the center of the optical axis of the industrial camera 9. The coaxial light source 11 provides more uniform lighting, overcomes the interference of reflections on the surface of metal objects, and improves the imaging quality of the metal surface. Specifically, the coaxial light source 11 can be composed of an LED light source 19, a lens 20 and a spectrometer 21, and its working principle is as follows: Figure 4As shown, the LED light source is a highlight light source. After passing through the lens, it is converted into parallel light. After passing through the 45-degree beam splitter, a portion of the light is reflected onto the surface of the test object, illuminating it. A portion of the light reflected from the test object passes through the beam splitter and enters the lens, forming an image of the object. The light emitted by the coaxial light source is parallel and perpendicular to the surface of the test object, highlighting surface defects and avoiding reflections, thereby improving the imaging quality of the metal surface.

[0109] The depth detection unit includes a micro-displacement platform (X-axis micro-displacement axis 12; Y-axis micro-displacement axis 13) and a spectral confocal sensor 14. The depth detection unit is installed on the support platform of the Z-axis displacement axis 8. Among them, the X-axis micro-displacement axis 12 and the Y-axis micro-displacement axis 13 are installed vertically, the X-axis micro-displacement axis 12 is arranged parallel to the X-axis displacement axis, and the Y-axis micro-displacement axis 13 is arranged parallel to the Y-axis displacement axis 7. The X-axis micro-displacement axis 12 and the Y-axis micro-displacement axis 13 are installed on the support platform of the Z-axis displacement axis 8 through structural parts. The spectral confocal sensor 14 is cylindrical and is installed on the micro-displacement platform through a clamp. In the initial state, the centers of the X-axis micro-displacement axis 12 and the Y-axis micro-displacement axis 13 coincide, and movement in the range of 0 to 360° can be achieved by synthesizing the displacement direction and speed.

[0110] Specifically, the longitudinal resolution of the spectral confocal sensor 14 can reach the nanometer level, and its working distance, that is, the distance between the front end of the probe and the surface of the workpiece, is relatively small, generally not exceeding 10 cm. To ensure the safety of the sensor probe, when the spectral confocal sensor 14 is not working, the Z-axis displacement axis 8 is used to raise the sensor probe to a safe position, and then lower it to the working distance when measuring the scratch depth information.

[0111] like Figure 5As shown, the working process of the above-mentioned detection system proposed in this embodiment is specifically as follows: when the system is initialized, the three-dimensional motion unit returns to the system zero point, that is, each motor displacement axis moves to the mechanical zero point, which is the system origin. Place the test piece. With the positioning angle closest to the mechanical zero point position appearing in the camera field of view as the initial position, the three-dimensional motion unit is moved to the detection zero point, that is, each motor displacement axis moves to the system initial position, which is the detection origin. Under the control of the detection component, the signal control component drives the three-dimensional motion unit to automatically move with the imaging unit as the interval, and stays at each detection unit for 0.1s. During the stay, the visual acquisition unit is controlled to perform static acquisition of the surface image of the test piece to obtain a picture set of the surface of the test piece; the picture set is transmitted to the detection component through the data acquisition component for processing to obtain the type, position distribution and two-dimensional feature size of the defect, and according to the position distribution of the defect in the picture, it is converted into the real space coordinate system to provide the target position and measurement trajectory of the depth detection; the signal control component drives the three-dimensional motion unit to move the sensor in the depth detection unit to the target position The micro-displacement platform in the depth detection unit is positioned at its initial position. Velocity vector synthesis is used to move along the provided measurement trajectory, and depth data is collected during the movement to obtain the depth information of the defect. After the acquisition is completed, the micro-displacement platform returns to its initial position, and the obtained depth information is stored in a one-to-one correspondence with the two-dimensional characteristic size, thereby obtaining the three-dimensional characteristic size of the defect. The three-dimensional motion unit drives the depth detection unit to measure sequentially according to the measurement trajectory until the depth information of all defects is measured, thereby completing the full inspection of the surface defects of the test piece and obtaining the type, position distribution, and three-dimensional characteristic size of the surface defects in the two-dimensional plane. The surface quality of the test piece is assessed based on the type, position distribution, and three-dimensional characteristic size of the surface defects in the two-dimensional plane, and harmful scratches are marked. Find the defect contour and position corresponding to the hazardous scratch, customize the optimal coverage polygon / ellipse in the image coordinate system, plan the three-dimensional scanning trajectory, and obtain the scanning starting point and trajectory; based on the principle of coordinate system one, form the moving trajectory of the micro-displacement platform, drive the three-dimensional motion unit to align the origin of the micro-displacement platform with the scanning starting point, and start moving according to the moving trajectory. During the movement, the sensor collects depth data in real time, and finally obtains the three-dimensional discrete data of the coverage area. The three-dimensional discrete points are fitted to obtain the three-dimensional morphology of the defect. According to the above process, complete the individual inspection of all hazardous scratches, and finally the three-dimensional motion unit returns to the system zero point, remove the test piece, and the measurement is completed. The surface image file of the test piece and the defect depth data are saved in the local file, and the measurement results can be exported as a report for easy reference.

[0112] The motion path planning of the mechanical actuator 4 in the system proposed in this embodiment mainly includes the path planning of the visual detection unit and the path planning of the depth detection unit. Among them, the visual detection unit is used to image the surface of the test piece, and the path planning is used to image the surface of the test piece in small areas of rows, columns, and faces, such as Figure 6 As shown, a detection unit is formed. During the measurement process, each test piece's surface is divided into multiple detection units. Reducing the number of detection units within the same detection area can avoid reciprocating motion of the detection equipment, thereby reducing measurement time and improving measurement efficiency. The depth detection unit measures the depth of defects. Path planning optimizes the detection order of each defect to improve detection efficiency. Specifically, within each detection unit, the position of the 3D motion unit when the first image is taken is used as the detection origin for that unit. Following the path plan, the 3D motion unit drives the visual acquisition unit to image the test piece in the order 1 → 2 → 3 → … → n, stopping at the last detection unit n. The movement of the displacement axis reveals the position of each image in the coordinate system. The image captured by each detection unit is transmitted to the detection component for processing, determining the defect distribution and target detection position set within that unit. The resulting target detection position set is the absolute position coordinate set relative to the detection origin of that unit. The mobile depth detection unit begins measurement at the defect identified in the nth image. Defects within an image are measured sequentially according to a preset priority. After the defect measurement in the nth image is completed, the defects identified in the n-1th image are measured in reverse order until the defect measurement in the 1st image is completed.

[0113] like Figure 7 As shown in the figure, for directional strip defects such as scratches, the optimal circumscribed polygon is used to cover the defect area; for defects such as pits, the optimal ellipse is used to cover the defect area. Compared with the circumscribed rectangle, the optimal polygon / ellipse coverage method has a higher area coverage. Therefore, when planning the scanning path, it effectively avoids collecting depth information in non-defect areas, improving the efficiency of 3D topography acquisition.

[0114] like Figure 8 As shown, the maximum interior angle of the optimal polygon is α, the dashed line is the tangent to angle α, the Y axis is parallel to the dashed line, and the X axis is perpendicular to the Y axis. The point of maximum curvature of the optimal ellipse is point A, the dashed line is the tangent to point A, the X axis is parallel to the dashed line, and the Y axis is perpendicular to the X axis. The optimal polygon / ellipse is located in the first quadrant of the sub-coordinate system and is tangent to both coordinate axes.

[0115] like Figure 9 As shown in the figure, the optimal polygon / ellipse is divided into equal intervals along the Y axis in the sub-coordinate system. The dividing lines are parallel to the X axis and intersect with the optimal polygon / ellipse to form multiple parallel line segments. The endpoint of the line segment closest to the origin of the sub-coordinate system is used as the scanning starting point S, and the parallel line segments are connected in an "S" shape to form a three-dimensional topography scanning trajectory, as shown in the figure. Figure 10 The figure shows a three-dimensional morphology detection diagram of defects in a zirconium alloy plate.

[0116] The detection technology proposed in this embodiment can realize automatic detection of surface defects and precise measurement of three-dimensional morphology of zirconium alloy plates. Its main technical indicators include: (1) two-dimensional image recognition of small surface defects: resolution 10μm, recognition rate 1s (10mm×10mm); (2) three-dimensional morphology detection of small surface defects: longitudinal resolution 0.1μm, longitudinal accuracy 2μm, longitudinal measurement range 300μm; lateral resolution 15μm.

[0117] The specific implementation methods described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific implementation method of the present invention and is not intended to limit the scope of protection of the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the scope of protection of the present invention.

Claims

1. A three-dimensional precision detection method for metal sheet surface defects, characterized in that: The method comprises: Obtain a set of two-dimensional plane images of the surface of the test piece; Using a pre-trained defect recognition model to detect the two-dimensional plane image set, and identifying the category and location distribution of defects in the image; Segmenting defects from the original image to obtain a sub-defect image set, performing contour extraction on the sub-defect image set, and calculating a two-dimensional feature size of the defect; According to the contour extraction result, the target position and measurement trajectory of the depth detection are determined in combination with the principle of the coordinate system, and the depth detection unit is controlled to perform depth detection according to the target position and measurement trajectory; Acquire the depth information collected by the depth detection unit, and obtain the depth characteristic size of the defect according to the depth information, wherein the depth characteristic size and the two-dimensional characteristic size of the corresponding defect constitute the three-dimensional characteristic size of the defect; Monitor the surface quality of the tested part and identify microscopic defects based on the identified defect type, location distribution and three-dimensional feature size; Planning a three-dimensional defect scanning trajectory according to the micro defect contour and position distribution, and controlling the depth detection unit to perform a three-dimensional morphology scan of the micro defect according to the scanning trajectory, so as to obtain the three-dimensional morphology of the micro defect; According to the contour extraction results, combined with the principle of coordinate system, the target position and measurement trajectory of depth detection are determined, including: According to the result of contour extraction, the position distribution of defects is converted into the real space coordinate system to obtain the distribution of defects in space; According to the distribution of defects in space, the target position and measurement trajectory of depth detection are planned; wherein the measurement trajectory is a straight line segment, which is located at the position where the grayscale change rate of the defect area is the largest and is evenly distributed on both sides of the defect, and the two end points of the straight line segment are respectively located on the edge contour of the defect; Planning the defect three-dimensional scanning trajectory according to the microscopic defect contour and position distribution specifically includes: Based on the 3D topography scanning method, the optimal polygon or ellipse covering the defect is established; Unidirectional segmentation of the coverage area to form a scanning track; The optimal polygon or ellipse that covers the defect, specifically: customizing the polygon or ellipse in the image coordinate system so that it completely covers the location of the defect; Among them, the establishment of the optimal polygon or ellipse should follow the principle that the scratch area accounts for as large a proportion of the coverage area as possible; One-way segmentation coverage area, including: A sub-coordinate system is established in the image coordinate system, and the optimal polygon or ellipse is divided at equal intervals along the Y axis of the sub-coordinate system; the division interval is the lateral resolution of the depth detection unit, and the division line is parallel to the X axis of the sub-coordinate system, and intersects with the polygon or ellipse to form multiple parallel line segments; the sub-coordinate system established is specifically as follows: in the polygon coverage area, the Y axis is parallel to the tangent direction of the maximum inner angle of the polygon, and the X axis is perpendicular to the Y axis; in the elliptical coverage area, the X axis is parallel to the tangent direction of the maximum point of curvature of the ellipse, and the Y axis is perpendicular to the X axis; the optimal polygon or ellipse is located in the first quadrant of the sub-coordinate system and is tangent to the two coordinate axes; The formation of the scanning trajectory specifically refers to taking the endpoint of the line segment closest to the origin of the sub-coordinate system as the starting point, and connecting the endpoints of each line segment in sequence in an "S" shape until the last line segment is connected to form a scanning trajectory.

2. A three-dimensional precision detection method for metal sheet surface defects according to claim 1, characterized in that: Defects are segmented from the original image to obtain a sub-defect image set, contours are extracted from the sub-defect image set, and the two-dimensional feature size of the defect is calculated, specifically including: Mark defects with end-to-end rectangular boxes and indicate the defect category; Using the image cropping method, the defects are segmented from the original image according to the coordinates of the rectangular box marking the defects to obtain a sub-defect image set; Contour extraction is performed on the sub-defect image set, and the two-dimensional characteristic size of the defect is calculated based on the contour extraction result.

3. A three-dimensional precision detection method for metal sheet surface defects according to claim 1, characterized in that: Acquiring the depth information collected by the depth detection unit, and obtaining the depth feature size of the defect according to the depth information, specifically includes: The collected depth-time curve is converted into a depth-displacement curve to obtain the depth profile of a certain cross-sectional position of the defect; The depth feature size of the defect is calculated based on the depth profile.

4. A three-dimensional precision detection component for metal sheet surface defects, characterized in that: The components include: A deep learning module, wherein the deep learning module obtains a two-dimensional plane image set of the surface of the test piece and detects the two-dimensional plane image set using a pre-trained defect recognition model to identify the category and position distribution of defects in the image; An image processing module, wherein the image processing module segments defects from the original image to obtain a sub-defect image set, performs contour extraction on the sub-defect image set, and calculates a two-dimensional feature size of the defect; A data processing module, wherein the data processing module obtains the depth information collected by the depth detection unit, and processes the collected depth information to obtain a depth characteristic size of the defect, wherein the depth characteristic size and the two-dimensional characteristic size of the corresponding defect constitute a three-dimensional characteristic size of the defect; A surface quality assessment module, which detects the surface quality of the tested piece and identifies microscopic defects based on the identified defect categories, location distribution and three-dimensional feature sizes; and, a path planning module, wherein the path planning module determines the target position and measurement trajectory of the depth detection according to the defect contour extraction result and in combination with the principle of a coordinate system, and controls the depth detection unit to perform the depth detection according to the target position and the measurement trajectory; the path planning module also plans the defect three-dimensional scanning trajectory according to the micro defect contour and position distribution, and controls the depth detection unit to perform the three-dimensional morphology scanning of the micro defect according to the scanning trajectory, thereby obtaining the three-dimensional morphology of the micro defect; According to the contour extraction results, combined with the principle of coordinate system, the target position and measurement trajectory of depth detection are determined, including: According to the result of contour extraction, the position distribution of defects is converted into the real space coordinate system to obtain the distribution of defects in space; According to the distribution of defects in space, the target position and measurement trajectory of depth detection are planned; wherein the measurement trajectory is a straight line segment, which is located at the position where the grayscale change rate of the defect area is the largest and is evenly distributed on both sides of the defect, and the two end points of the straight line segment are respectively located on the edge contour of the defect; Planning the defect three-dimensional scanning trajectory according to the microscopic defect contour and position distribution specifically includes: Based on the 3D topography scanning method, the optimal polygon or ellipse covering the defect is established; Unidirectional segmentation of the coverage area to form a scanning track; The optimal polygon or ellipse that covers the defect, specifically: customizing the polygon or ellipse in the image coordinate system so that it completely covers the location of the defect; Among them, the establishment of the optimal polygon or ellipse should follow the principle that the scratch area accounts for as large a proportion of the coverage area as possible; One-way segmentation coverage area, including: A sub-coordinate system is established in the image coordinate system, and the optimal polygon or ellipse is divided at equal intervals along the Y axis of the sub-coordinate system; the division interval is the lateral resolution of the depth detection unit, and the division line is parallel to the X axis of the sub-coordinate system, and intersects with the polygon or ellipse to form multiple parallel line segments; the sub-coordinate system established is specifically as follows: in the polygon coverage area, the Y axis is parallel to the tangent direction of the maximum inner angle of the polygon, and the X axis is perpendicular to the Y axis; in the elliptical coverage area, the X axis is parallel to the tangent direction of the maximum point of curvature of the ellipse, and the Y axis is perpendicular to the X axis; the optimal polygon or ellipse is located in the first quadrant of the sub-coordinate system and is tangent to the two coordinate axes; The formation of the scanning trajectory specifically refers to taking the endpoint of the line segment closest to the origin of the sub-coordinate system as the starting point, and connecting the endpoints of each line segment in sequence in an "S" shape until the last line segment is connected to form a scanning trajectory.

5. A three-dimensional precision detection system for metal sheet surface defects, characterized in that: The system comprises: The detection component of claim 4, which serves as the core of data acquisition, processing and control of the entire system; A signal control component, the signal control component is used to receive the control command sent by the detection component to drive the mechanical execution component to perform a corresponding action; A data acquisition component, the data acquisition component is used to receive image data of the surface of the test piece and depth information data of the defect and upload them to the detection component; and a mechanical execution component, wherein the mechanical execution component acts according to the motion path planned by the detection component to achieve corresponding detection.

6. A three-dimensional precision detection system for metal sheet surface defects according to claim 5, characterized in that: The mechanical execution component comprises: A spatial positioning unit, the spatial positioning unit comprising a bearing platform and a positioning angle; A three-dimensional motion unit, which is mounted on the carrier platform and uses a gantry structure to move in two dimensions in the horizontal plane to drive the visual acquisition unit to image the surface of the measured object and move the depth detection unit to the target position, and moves in the vertical direction to ensure that the depth detection unit is in a safe position and working distance in the vertical direction; A visual acquisition unit, wherein the visual acquisition unit images the surface of the measured object and acquires image information of the surface of the measured object; And, a depth detection unit, wherein the depth detection unit moves according to the planned movement path and collects depth information of the defect in real time during the movement.

7. A three-dimensional precision detection system for metal sheet surface defects according to claim 6, characterized in that: The supporting platform is placed on a horizontal plane, and the positioning angle includes four right-angle blocks, which are respectively installed at the detection limit positions [Xmax, Ymax], [Xmin, Ymax], [Xmax, Ymin], and [Xmin, Ymin] of the detection system on the horizontal plane to limit the position of the test piece on the supporting platform.

8. A three-dimensional precision detection system for metal sheet surface defects according to claim 7, characterized in that: The right-angle block is made of polytetrafluoroethylene.

9. A three-dimensional precision detection system for metal sheet surface defects according to claim 6, characterized in that: The three-dimensional motion unit includes an X-axis motor displacement axis, a Y-axis motor displacement axis, a Z-axis motor displacement axis and a gantry; The X-axis motor displacement axis is composed of two parallel axes, and the two axes have the same stroke, are aligned at both ends, and are installed in parallel on the bearing platform to achieve lateral synchronous movement; The bottom end of the gantry is mounted on the bearing platform of the X-axis motor displacement axis; The Y-axis motor displacement shaft is placed on the top of the gantry to achieve longitudinal movement; The Z-axis motor displacement axis is vertically mounted on the bearing platform of the Y-axis motor displacement axis to achieve vertical movement.

10. A three-dimensional precision detection system for metal sheet surface defects according to claim 9, characterized in that: The visual acquisition unit includes an industrial camera, a fixed-focus lens and a coaxial light source; The visual acquisition unit is installed on the supporting platform of the Y-axis motor displacement axis; wherein, the industrial camera is connected to the fixed-focus lens via a C interface, and the coaxial light source is installed directly below the fixed-focus lens, and the center of its light-emitting surface coincides with the center of the optical axis of the industrial camera.

11. A three-dimensional precision detection system for metal sheet surface defects according to claim 9, characterized in that: The depth detection unit includes a micro-displacement platform and a spectral confocal sensor; The depth detection unit is installed on the bearing platform of the Z-direction motor displacement axis; wherein the fine-motion displacement platform is composed of an X-direction fine-motion displacement axis and a Y-direction fine-motion displacement axis, the X-direction fine-motion displacement axis is vertically installed to the Y-direction fine-motion displacement axis, the X-direction fine-motion displacement axis is parallel to the X-direction motor displacement axis, and the Y-direction fine-motion displacement axis is parallel to the Y-direction motor displacement axis; the spectral confocal sensor is installed on the fine-motion displacement platform through a fixture, and the X-direction fine-motion displacement axis and the Y-direction fine-motion displacement axis realize measurement trajectories at different angles in a plane through velocity vector synthesis.