Metal finished workpiece appearance defect detection method, continuous assembly line and medium

Through inspection model comparison and data calculation, the process of appearance defect inspection of finished metal workpieces is simplified, the problem of low efficiency in the existing technology is solved, and a more efficient inspection effect is achieved.

CN118731053APending Publication Date: 2024-10-01HANGZHOU ZHUOXI INST OF BRAIN & INTELLIGENCE
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411014889.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-26
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing methods for detecting appearance defects of finished metal workpieces are inefficient in complex detection environments, and a simpler and more efficient detection method needs to be designed.

Method used

The detection model is used to compare the appearance images of the finished metal workpiece. The detection model is generated through data enhancement and defect annotation, and the calculation is performed based on the reference parameter information. If the image coincides with the model, it is a defect. Otherwise, the data is calculated and compared to simplify the detection process.

Benefits of technology

It improves the detection efficiency, simplifies the detection process, eliminates the need for direct data comparison, and can more accurately detect appearance defects of metal finished workpieces.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118731053A_ABST
    Figure CN118731053A_ABST
Patent Text Reader

Abstract

The invention provides a metal finished product workpiece appearance defect detection method, a continuous assembly line and a medium, an image acquisition module acquires appearance images of a metal finished product workpiece, and a detection server compares the acquired appearance images of the metal finished product workpiece in a coincidence comparison mode to obtain a detection result; and the detection equipment calculates the reference parameter information and the measured data in the defect picture, and the position of the data difference is the position of the appearance defect and is finally displayed through the computer terminal. According to the method, the detection model is firstly used for comparing the obtained appearance image of the metal finished workpiece, if the appearance image coincides with the detection model, the metal finished workpiece to be detected is an appearance defect product, the defect position is the same as the position of the coincided detection model, and if the appearance image of the metal finished workpiece does not coincide with the detection model, the defect position is the same as the position of the coincided detection model. According to the mode, direct data comparison is not needed, the detection process is simpler, and the detection efficiency can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of metal detection devices, and in particular to a method for detecting appearance defects of a finished metal workpiece, a continuous assembly line and a medium. Background Art

[0002] Metal workpieces refer to metal blocks, metal bars, metal tubes, etc. of various specifications and shapes made of metal materials. When metal workpieces are produced, the appearance defects of the processed finished products will be detected. For example, the application number is CN109544506B, and the announcement date is 2021.03.09. A method and device for detecting appearance defects of workpieces, the method comprising: obtaining the grayscale value of each pixel of the image corresponding to the workpiece from the workpiece detection image; determining the maximum grayscale value and the median grayscale value from the grayscale values ​​of each pixel, wherein the median grayscale value is the grayscale value corresponding to the largest number of pixels with the same grayscale value; determining the grayscale value threshold corresponding to the defective point according to the maximum grayscale value and the median grayscale value; determining from the grayscale values ​​of each pixel whether there is a pixel whose grayscale value is less than the grayscale value threshold; in the case of a pixel whose grayscale value is less than the grayscale value threshold, determining that there is a defect in the appearance of the workpiece, and taking the pixel whose grayscale value is less than the grayscale value threshold as the defective point.

[0003] However, in the above scheme and in the prior art, the appearance data parameters are usually directly used to calculate the data after the metal finished workpiece image is calculated, and the detection environment is relatively complex, which reduces the detection efficiency. Therefore, it is urgent to design a method for detecting appearance defects of metal finished workpieces, a continuous assembly line and a medium to solve the above problems. Summary of the invention

[0004] The purpose of the present invention is to provide a method, a continuous production line and a medium for detecting appearance defects of finished metal workpieces, which do not require direct data comparison, make the detection process simpler and improve the detection efficiency.

[0005] According to one object of the present invention, the present invention provides a method for detecting appearance defects of a finished metal workpiece, comprising the following steps:

[0006] S1: Image acquisition of the appearance of all metal finished workpieces that have had multiple defects in the same position in the past;

[0007] S2: Perform data enhancement on the collected appearance defect photos to obtain defect images that are multiple times larger than the original defect photos;

[0008] S3: labelimg software is used to mark the defective parts of the image obtained in S2, and the marked image is uploaded to a computer terminal to obtain a detection model;

[0009] S4: Upload the reference parameter information of the metal workpiece to be inspected of the model and specification to the computer terminal;

[0010] S5: The conveying mechanism of the continuous assembly line conveys the finished metal workpiece to the defect detection point on the continuous assembly line;

[0011] S6: The appearance image of the finished metal workpiece is collected through the image acquisition module, and the appearance image is preprocessed. After the preprocessing is completed, the image is saved to the detection server. The detection server extracts the trained detection model and reference parameter information in advance. The detection server compares the acquired appearance image of the finished metal workpiece through the overlap comparison mode, obtains the detection result, and displays it through the computer terminal;

[0012] S7: If the collected appearance image of the finished metal workpiece does not coincide with any of the detection models in the detection model, the data of the finished metal workpiece in the defect photo is measured, and the detection equipment calculates the reference parameter information and the measured data in the defect photo. The position of the data difference is the position of the appearance defect, which is finally displayed on the computer terminal.

[0013] Furthermore, in S2, the method of performing data enhancement on the image includes: performing data enhancement on the acquired defect image, mainly including rotation, translation, flipping, symmetry, and contrast changes of the image.

[0014] Furthermore, in S3, the specific method of marking defects on the image includes: enclosing the defective part in the image with a rectangular frame, and saving the position of the defect.

[0015] Further, in S4, the defect image and the reference parameter information are classified and stored, the defect image is the first detection option, and the reference parameter information is the second detection option.

[0016] Furthermore, in S6, the image of the finished metal workpiece is overlapped and compared with the detection model. If there is overlap with the detection model, the finished metal workpiece to be inspected is a product with appearance defects, and the position of the defect is the same as the position of the overlapped detection model.

[0017] Furthermore, in S7, the specific steps of calculation are:

[0018] a. Extract imaging parameters according to the acquired image information to obtain imaging parameters;

[0019] b. According to the input requirements of the computing engine, the imaging parameters are converted into speech matching the reference parameter information to determine the final image parameters;

[0020] c. Compare the image parameters with the reference parameters. Positions that are smaller than the reference parameter information or larger than the reference parameter information are defect positions.

[0021] Furthermore, in S6, the image acquisition module is located after the last cleaning process of the metal finished workpiece in the continuous assembly line, ensuring that the picture taken of the metal finished workpiece has higher clarity, and the clarity of the appearance image of the metal finished workpiece is processed in S6 to obtain the best image. The image acquisition module in S6 includes a visual acquisition camera and a light source, and the light source is evenly arranged around the metal finished workpiece to be inspected.

[0022] Furthermore, in S6, the light source needs to be pre-detected before the appearance image of the finished metal workpiece is obtained through the image acquisition module. The specific steps include first photographing and adjusting the appearance of the finished metal workpiece, and uploading it to the computer terminal. The computer terminal uses whether the photographed image can be clearly captured as the basis for adjusting the light source, until the angle of the light source is adjusted to ensure that appropriate lighting conditions can be provided for the detection process.

[0023] According to another object of the present invention, the present invention provides a continuous production line for detecting appearance defects of finished metal workpieces, including a conveyor frame for conveying finished metal workpieces, and the conveyor frame implements the above-mentioned detection method when executed by a transmission structure.

[0024] According to the third purpose of the present invention, the present invention provides a metal finished workpiece appearance defect detection medium, including a computer-storable medium and a detection retrieval and calculation medium, and a method for detecting appearance defects of the metal finished workpiece is implemented when the computer-readable storage medium and the detection retrieval and calculation medium are executed by a processor.

[0025] The technical solution of the present invention first uses the detection model to compare the appearance image of the acquired metal finished workpiece. If there is overlap with the detection model, the metal finished workpiece to be detected is an appearance defective product, and the position of the defect is the same as the position of the overlapping detection model. When the appearance image of the metal finished workpiece does not overlap with the detection model, data calculation and comparison are performed again. This method does not require direct data comparison, the detection process is simpler, and the detection efficiency can be improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0027] Figure 1is a flowchart of an embodiment of the present invention; DETAILED DESCRIPTION

[0028] The technical solution of the present invention will be clearly and completely described below in conjunction with the embodiments. Obviously, the described embodiments are part of the embodiments of the present invention, rather than all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0029] In the description of the present invention, it should be understood that the terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise" and the like indicate orientations or positional relationships based on the orientations or positional relationships shown in the accompanying drawings, and are only for the convenience of describing the present invention and simplifying the description, and do not indicate or imply that the referred device or element must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be understood as limiting the present invention.

[0030] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the present invention, "multiple" means two or more, unless otherwise clearly and specifically defined. In addition, the terms "installed", "connected" and "connected" should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be indirectly connected through an intermediate medium, or it can be the internal connection of two components. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0031] Example 1

[0032] like Figure 1 As shown, a method for detecting appearance defects of a finished metal workpiece provided by an embodiment of the present invention comprises the following steps:

[0033] S1: Image acquisition of the appearance of all metal finished workpieces that have had multiple defects in the same position in the past;

[0034] S2: Data enhancement is performed on the collected appearance defect photos. The specific enhancement method is to perform data enhancement on the acquired defect pictures, mainly including rotation, translation, flipping, symmetry, and contrast changes of the image to obtain defect pictures that are multiple times of the original defect pictures;

[0035] S3: labelimg software is used to label the defective parts of the defective image obtained in S2, and the defective parts in the image are framed with a rectangular frame. At the same time, the position and category information of the defect are saved as the true value, and the labeled image is uploaded to the storage of the computer terminal to obtain the detection model;

[0036] S4: uploading the reference parameter information of the metal workpiece to be inspected of the model and specification to the storage of the computer terminal, and storing the defect image and the reference parameter information in categories, the defect image is the first inspection option, and the reference parameter information is the second inspection option;

[0037] S5: The conveying mechanism of the continuous assembly line conveys the finished metal workpiece to the defect detection point on the continuous assembly line;

[0038] S6: The appearance image of the finished metal workpiece is collected through the image acquisition module, and the appearance image is preprocessed. After the preprocessing is completed, the image is saved to the detection server. The detection server extracts the trained detection model and reference parameter information in advance. The detection server compares the acquired appearance picture of the finished metal workpiece through the overlap comparison mode, and overlaps the image of the finished metal workpiece with the detection model. If there is overlap with the detection model, the finished metal workpiece to be detected is a product with appearance defects, and the position of the defect is the same as the position of the overlapped detection model. The detection result is obtained and displayed on the computer terminal;

[0039] S7: If the collected appearance image of the finished metal workpiece does not coincide with any of the detection models, the data of the finished metal workpiece in the defect photo is measured, and the detection equipment calculates the reference parameter information and the measured data in the defect photo. The specific steps of the calculation are:

[0040] a. Extract imaging parameters according to the acquired image information to obtain imaging parameters;

[0041] b. According to the input requirements of the computing engine, the imaging parameters are converted into speech matching the reference parameter information to determine the final image parameters;

[0042] c. Compare the image parameters with the reference parameters. The positions that are smaller than the reference parameter information or larger than the reference parameter information are the defect positions; the positions where the data differ are the positions of the appearance defects, and finally displayed on the computer terminal.

[0043] In one embodiment provided by the present invention, the image acquisition module in S6 is located after the last cleaning process of the metal finished workpiece in the continuous assembly line, ensuring that the picture taken of the metal finished workpiece has higher clarity, and the clarity of the appearance image of the metal finished workpiece is processed in S6 to obtain the best image. The image acquisition module in S6 includes a visual acquisition camera and a light source, and the light source is evenly arranged around the metal finished workpiece to be inspected.

[0044] In another embodiment provided by the present invention, in S6, before obtaining the appearance image of the finished metal workpiece through the image acquisition module, it is necessary to pre-detect the light source. The specific steps include first photographing and adjusting the appearance of the finished metal workpiece, and uploading it to the computer terminal. The computer terminal uses whether the photographed image can be clearly captured as the basis for adjusting the light source, until the angle of the light source is adjusted to ensure that appropriate lighting conditions can be provided for the detection process.

[0045] A continuous assembly line for detecting appearance defects of finished metal workpieces, comprising a conveying frame for conveying the finished metal workpieces, wherein the conveying frame implements an industrial welding defect detection method when being executed by a transmission structure.

[0046] A medium for detecting appearance defects of a finished metal workpiece comprises a computer storable medium and a detection, retrieval and calculation medium. When the computer readable storage medium and the detection, retrieval and calculation medium are executed by a processor, a method for detecting appearance defects of the finished metal workpiece is implemented.

[0047] Computer storable media can adopt any combination of one or more readable media. The readable medium can be a readable signal medium or a readable storage medium. The readable storage medium can include, for example, but is not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples of readable storage media include: a static random access memory (SRAM) with one or more wires electrically connected, an electrically erasable programmable read-only memory (EEPROM), an erasable programmable read-only memory (EPROM), a programmable read-only memory (PROM), a read-only memory (ROM), a magnetic storage, a flash memory, a magnetic disk or an optical disk, or any suitable combination of the above.

[0048] The detection retrieval and computing medium include computer program instructions, which can be executed by a processor to implement all or part of the steps described in the above-mentioned method for detecting appearance defects of finished metal workpieces. The computer program instructions can be written in any combination of one or more programming languages ​​to perform program codes for the operation of the embodiments of the present application. The programming languages ​​include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as "C" language or similar programming languages ​​and scripting languages ​​(such as Python). The program code can be executed entirely on the user computing device, partially on the user device, as an independent software package, partially on the user computing device, partially on the remote computing device, or completely on the remote computing device or server.

[0049] The present invention first uses the detection model to compare the appearance image of the acquired metal finished workpiece. If there is overlap with the detection model, the metal finished workpiece to be detected is an appearance defective product, and the position of the defect is the same as the position of the overlapping detection model. When the appearance image of the metal finished workpiece does not overlap with the detection model, data calculation and comparison are performed again. This method does not require direct data comparison, and the detection process is simpler, which can improve the detection efficiency.

[0050] The present invention performs a preliminary detection of the light source before acquiring the appearance image of the finished metal workpiece through the image acquisition module, until the angle of the light source is adjusted to ensure that appropriate lighting conditions can be provided for the detection process, which can avoid the clarity of the acquired appearance image of the finished metal workpiece and can avoid the situation of having to acquire images multiple times; the present invention can display the multi-point positions of the finished metal workpiece by performing rotation, translation, flipping, symmetry, and contrast change data enhancement on the defect image, and can make the detection result more accurate during detection.

[0051] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.

Claims

1. A method for detecting appearance defects of a finished metal workpiece, characterized in that: The following steps are involved: S1: Image acquisition of the appearance of all metal finished workpieces that have had multiple defects in the same position in the past; S2: Perform data enhancement on the collected appearance defect photos to obtain defect images that are multiple times larger than the original defect photos; S3: labelimg software is used to mark the defective parts of the image obtained in S2, and the marked image is uploaded to a computer terminal to obtain a detection model; S4: Upload the reference parameter information of the metal workpiece to be inspected to the computer terminal; S5: The conveying mechanism of the continuous assembly line conveys the finished metal workpiece to the defect detection point on the continuous assembly line; S6: The appearance image of the finished metal workpiece is collected through the image acquisition module, and the appearance image is preprocessed. After the preprocessing is completed, the image is saved to the detection server. The detection server extracts the trained detection model and reference parameter information in advance. The detection server compares the acquired appearance image of the finished metal workpiece through the overlap comparison mode, obtains the detection result, and displays it through the computer terminal; S7: If the collected appearance image of the finished metal workpiece does not coincide with any of the detection models in the detection model, the data of the finished metal workpiece in the defect photo is measured, and the detection equipment calculates the reference parameter information and the measured data in the defect photo. The position of the data difference is the position of the appearance defect, which is finally displayed on the computer terminal.

2. The method for detecting appearance defects of a finished metal workpiece according to claim 1, characterized in that: In S2, the method of performing data enhancement on the image includes: performing data enhancement on the acquired defect image, mainly including rotation, translation, flipping, symmetry, and contrast changes of the image.

3. The method for detecting appearance defects of a finished metal workpiece according to claim 1, characterized in that: In S3, a specific method of marking defects on the image includes: enclosing the defective part in the image with a rectangular frame, and saving the position of the defect.

4. The method for detecting appearance defects of a finished metal workpiece according to claim 1, characterized in that: In S4, the defect image and the reference parameter information are classified and stored, the defect image is the first detection option, and the reference parameter information is the second detection option.

5. The method for detecting appearance defects of a finished metal workpiece according to claim 1, characterized in that: In S6, the image of the finished metal workpiece is overlapped and compared with the detection model. If there is overlap with the detection model, the finished metal workpiece to be inspected is a product with appearance defects, and the position of the defect is the same as the position of the overlapped detection model.

6. The method for detecting appearance defects of a finished metal workpiece according to claim 1, characterized in that: In S7, the specific steps of calculation are: a. Extract imaging parameters according to the acquired image information to obtain imaging parameters; b. According to the input requirements of the computing engine, the imaging parameters are converted into speech matching the reference parameter information to determine the final image parameters; c. Compare the image parameters with the reference parameters. Positions that are smaller than the reference parameter information or larger than the reference parameter information are defect positions.

7. The method for detecting appearance defects of a finished metal workpiece according to claim 1, characterized in that: In S6, the image acquisition module is located after the last cleaning process of the metal finished workpiece of the continuous assembly line, ensuring that the picture taken of the metal finished workpiece has higher clarity, and the clarity of the appearance image of the metal finished workpiece is processed in S6 to obtain the best image. The image acquisition module in S6 includes a visual acquisition camera and a light source, and the light source is evenly arranged around the metal finished workpiece to be inspected.

8. The method for detecting appearance defects of a finished metal workpiece according to claim 1, characterized in that: In S6, the light source needs to be pre-detected before the appearance image of the finished metal workpiece is obtained through the image acquisition module. The specific steps include first photographing and adjusting the appearance of the finished metal workpiece, and uploading it to the computer terminal. The computer terminal uses whether the photographed image can be clearly captured as the basis for adjusting the light source, until the angle of the light source is adjusted to ensure that appropriate lighting conditions can be provided for the detection process.

9. A continuous production line for detecting appearance defects of finished metal workpieces, characterized in that: It comprises a conveying frame for conveying finished metal workpieces, and the conveying frame implements the detection method described in any one of claims 1-8 when being executed by the transmission structure.

10. A metal finished workpiece appearance defect detection medium, characterized in that: It includes a computer storable medium and a detection, retrieval and calculation medium. When the computer readable storage medium and the detection, retrieval and calculation medium are executed by a processor, the detection method described in any one of claims 1 to 8 is implemented.

Citation Information

Patent Citations

  • Methods and apparatus for detecting surface defects in workpieces

    CN109544506B