WO2023168972A1 - Linear array camera-based copper surface defect detection method and apparatus - Google Patents

Linear array camera-based copper surface defect detection method and apparatus Download PDF

Info

Publication number
WO2023168972A1
WO2023168972A1 PCT/CN2022/130842 CN2022130842W WO2023168972A1 WO 2023168972 A1 WO2023168972 A1 WO 2023168972A1 CN 2022130842 W CN2022130842 W CN 2022130842W WO 2023168972 A1 WO2023168972 A1 WO 2023168972A1
Authority
WO
WIPO (PCT)
Prior art keywords
defect
copper
image
array camera
line array
Prior art date
Application number
PCT/CN2022/130842
Other languages
French (fr)
Chinese (zh)
Inventor
吴俊义
张弛
顾献代
方明
吴家乐
任禹桥
梅值
Original Assignee
三门三友科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 三门三友科技股份有限公司 filed Critical 三门三友科技股份有限公司
Publication of WO2023168972A1 publication Critical patent/WO2023168972A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B07SEPARATING SOLIDS FROM SOLIDS; SORTING
    • B07CPOSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
    • B07C5/00Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
    • B07C5/04Sorting according to size
    • B07C5/10Sorting according to size measured by light-responsive means
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B07SEPARATING SOLIDS FROM SOLIDS; SORTING
    • B07CPOSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
    • B07C5/00Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
    • B07C5/34Sorting according to other particular properties
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B07SEPARATING SOLIDS FROM SOLIDS; SORTING
    • B07CPOSTAL SORTING; SORTING INDIVIDUAL ARTICLES, OR BULK MATERIAL FIT TO BE SORTED PIECE-MEAL, e.g. BY PICKING
    • B07C5/00Sorting according to a characteristic or feature of the articles or material being sorted, e.g. by control effected by devices which detect or measure such characteristic or feature; Sorting by manually actuated devices, e.g. switches
    • B07C5/34Sorting according to other particular properties
    • B07C5/342Sorting according to other particular properties according to optical properties, e.g. colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/21Design or setup of recognition systems or techniques; Extraction of features in feature space; Blind source separation
    • G06F18/214Generating training patterns; Bootstrap methods, e.g. bagging or boosting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F18/00Pattern recognition
    • G06F18/20Analysing
    • G06F18/24Classification techniques
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/04Architecture, e.g. interconnection topology
    • G06N3/045Combinations of networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06NCOMPUTING ARRANGEMENTS BASED ON SPECIFIC COMPUTATIONAL MODELS
    • G06N3/00Computing arrangements based on biological models
    • G06N3/02Neural networks
    • G06N3/08Learning methods
    • G06N3/084Backpropagation, e.g. using gradient descent
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20021Dividing image into blocks, subimages or windows
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20084Artificial neural networks [ANN]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30136Metal
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P10/00Technologies related to metal processing
    • Y02P10/20Recycling

Definitions

  • the invention relates to the technical field of cathode copper quality detection, and in particular to a copper surface defect detection method and device based on a line array camera.
  • the surface condition of cathode copper can basically reflect the quality of cathode copper, including surface texture, defects, color, etc.
  • a method, device and system for detecting verticality of copper electrolytic cathode plates disclosed in Chinese patent documents, its publication number is CN106066169A, and the publication date is 2016-11-02, including obtaining each preset detection point on the cathode plate The center position of Find the highest point and the lowest point of the preset detection point surface, and calculate the preset detection point surface difference based on the highest point and the lowest point; determine the maximum value from the center position difference and the preset detection point surface difference, and determine the The maximum value of is determined as the cathode plate verticality.
  • the verticality of the cathode plate can be quickly obtained.
  • the obtained verticality of the cathode plate is very accurate, which greatly improves the detection efficiency. and the accuracy of detection data.
  • this technology detects the overall verticality by sampling multiple points on the surface of the cathode plate. When it comes to detecting defects at local locations on the surface, the defect data on the surface of the cathode copper plate cannot be accurately obtained, and there may even be omissions. Therefore improvements are still needed.
  • the present invention is to overcome the problems in the prior art of using manual methods to detect the quality of cathode copper plates, such as high labor intensity, high risk of missed inspections, cumbersome detection process and increased cost due to different judgment standards, and provides a method based on a line array camera.
  • the copper surface defect detection method and device can automate the entire cathode copper surface defect detection process, reduce the impact of human factors on defect detection results, and at the same time improve the accuracy and precision of detection results by setting unified defect judgment standards for defect thresholds in advance. Spend.
  • a copper surface defect detection method based on a line array camera including:
  • the line array camera collects and synthesizes surface images including the front and back sides of the cathode copper plate;
  • the copper particle detection system trained by deep learning performs defect identification on the preprocessed image blocks, and synthesizes the identification results of each image block into a surface defect distribution map of the cathode copper plate;
  • a line array camera is used to continuously collect linear image data of the copper cathode surface and synthesize a complete two-dimensional
  • a copper particle detection system trained by deep learning is used for defect identification, which can more accurately identify and analyze defect data, and can set different defect parameter thresholds according to actual needs to classify cathode copper quality, so that it can Flexibly meet the differentiated requirements of different users for cathode copper.
  • the process of preprocessing the surface image of the cathode copper plate in S2 includes: identifying and intercepting the image of the area where the copper plate is located; dividing the image into image blocks of m rows and n columns; performing Gaussian filtering on each image block to obtain mn Each image block is the preprocessed image.
  • the complete cathode copper plate image in the present invention is generally a large image in meters. After the image is divided into multiple small image blocks through preprocessing, it can be individually classified, labeled, learned and identified according to the types of defects existing in the image blocks. Classification and identification are carried out according to the external light conditions when collecting different image blocks, which solves the problem of inconsistent picture quality in different areas of large-size images and tries to ensure the uniformity of picture quality in a single image block.
  • the deep learning training process of the copper particle detection system in S3 includes:
  • the training is completed when the copper particle identification pixel accuracy of the copper particle detection system reaches the specified value.
  • the copper particle defect data set in the present invention includes pre-processed images that have completed defect detection and their corresponding annotated images.
  • the annotated images refer to images that are reversely selected after defect annotation and graffiti on the pre-processed images.
  • the preprocessed image is used as the input value, and the annotated image is used as the theoretical output value.
  • the copper particle detection system is trained for image recognition. Different groups of preprocessed images and annotated images are selected for repeated training until the results recognized by the copper particle detection system are consistent with Training is completed when the difference between the labeled images converges or is less than a fixed value.
  • the annotation information of the annotated image in the copper particle defect data set includes defect type, defect shape and size, copper particle color depth and particle aggregation degree.
  • defect type defect shape and size
  • copper particle color depth copper particle color depth and particle aggregation degree.
  • the image recognition training process includes:
  • the copper particle detection system in the present invention is mainly divided into two parts: a convolutional neural network module and a pyramid pooling module.
  • the characteristic map of the image is obtained through convolution operation, and then the image is subjected to multi-resolution convolution processing through the pyramid pooling module.
  • the detection system can segment the background pixels and different copper particle pixels in the image, and then compare the actual identified copper particle output results with the theoretically output results to learn and train the copper particle detection system, and finally obtain a consistent Required detection system.
  • the defective part image is separated through the defect parameter threshold set in advance; the regional characteristics of the defective part image are extracted, and the basic parameters of the defect are calculated according to the pixels in the area.
  • the defect threshold can be set in advance. Each pre-processed image will have an actual output value after recognition. After normalization processing, , if the actual output value is greater than the set defect threshold, the part can be considered to be a defect, otherwise it is considered to belong to the normal background.
  • a copper surface defect detection device based on a line array camera including:
  • Transfer module used to transfer cathode copper plates
  • Line array camera acquisition module including line array camera and light source, used to collect cathode copper plate surface images
  • Industrial computer used to receive the collected surface image data of the cathode copper plate and conduct defect identification and analysis
  • the control module is used to receive the identification and analysis results of the industrial computer and control the work of the entire device.
  • the transmission module is responsible for transmitting the cathode copper plate from the production site to different locations according to the quality of the cathode copper plate after defect detection; the line array camera and the light source cooperate to clearly collect the image of the surface of the cathode copper plate.
  • the industrial computer and the line The array camera is connected to receive the image data collected by the line array camera. At the same time, the industrial computer will transmit the results of image data analysis and identification to the connected control module.
  • the control module controls the transmission module to transmit cathode copper plates of different qualities to different place.
  • the line array camera acquisition module is provided with light sources and line array cameras in sequence according to the direction of transmission of the cathode copper plate; the light source illuminates the surface of the cathode copper plate at a certain incident angle, and the direction facing the line array camera lens is vertical on the surface of the cathode copper plate.
  • the frequency of the line array camera shooting and collecting images according to the transmission speed of the cathode copper plate, so that the continuously collected images can completely synthesize the surface image of the cathode copper plate; the relative positions of the line array camera and the light source are set to ensure the collection The clarity of each frame of image; at the same time, the line array camera acquisition module composed of a line array camera and a light source can be flexibly set at different positions of the transmission module according to actual needs.
  • the invention has the following beneficial effects: using a line array camera for image collection, there is no need to find a specific position where the entire surface of the cathode copper plate can be completely seen, making the position setting of the collection device more flexible and convenient; the entire detection process is performed by traditional manual detection Switching to automatic detection reduces the impact of human factors on defect detection results, reduces the missed detection rate, makes defect detection standards more unified, and results are more accurate; different defect parameter thresholds can be set according to actual needs, and different judgment standards can be used to detect defects.
  • the surface defects of the cathode copper plate are detected to meet the differentiated requirements of customers.
  • Figure 1 is a flow chart of the defect detection method of the present invention
  • Figure 2 is a schematic diagram of the surface image acquisition device in Embodiment 1 of the present invention.
  • Figure 3 is a schematic diagram of the surface image acquisition device in Embodiment 2 of the present invention.
  • Figure 4 is a schematic diagram of deep learning training in an embodiment of the present invention.
  • a copper surface defect detection method based on a line array camera includes:
  • the line array camera collects and synthesizes surface images including the front and back sides of the cathode copper plate.
  • the process of preprocessing the surface image of the cathode copper plate in S2 includes: identifying and intercepting the image of the area where the copper plate is located; dividing the image into m rows and n columns. image blocks; the mn image blocks obtained by performing Gaussian filtering on each image block are the preprocessed images.
  • the copper particle detection system trained by deep learning performs defect identification on the preprocessed image blocks, and synthesizes the recognition results of each image block into a surface defect distribution map of the cathode copper plate; deep learning training of the copper particle detection system
  • the process includes:
  • the training is completed when the copper particle identification pixel accuracy of the copper particle detection system reaches the specified value.
  • S4 Set the defect parameter threshold according to the cathode copper quality requirements, and classify the cathode copper plates based on the surface defect distribution map of the cathode copper plate.
  • the defective parts are separated through the defect parameter threshold set in advance. Image; extract the regional features of the defective part of the image, and calculate the basic parameters of the defect based on the pixels in the area.
  • the annotation information of the annotated images in the copper particle defect data set includes defect types, defect shapes and sizes, copper particle color depth and particle aggregation degree.
  • the image recognition training process includes: selecting a set of samples containing input data and theoretical output values from the copper particle defect data set; inputting the input data into the copper particle detection system to obtain the corresponding actual output value; comparing and calculating the theoretical output value and the actual output value The difference; adjust the parameters in the copper particle detection system by minimizing the error until the difference converges.
  • a line array camera is used to continuously collect linear image data of the copper cathode surface and synthesize a complete two-dimensional
  • a copper particle detection system trained by deep learning is used for defect identification, which can more accurately identify and analyze defect data, and can set different defect parameter thresholds according to actual needs to classify cathode copper quality, so that it can Flexibly meet the differentiated requirements of different users for cathode copper.
  • the complete cathode copper plate image in the present invention is generally a large image in meters. After the image is divided into multiple small image blocks through preprocessing, it can be individually classified, labeled, learned and identified according to the types of defects existing in the image blocks. Classification and identification are carried out according to the external light conditions when collecting different image blocks, which solves the problem of inconsistent picture quality in different areas of large-size images and tries to ensure the uniformity of picture quality in a single image block.
  • the copper particle defect data set in the present invention includes pre-processed images with existing defect detection results and their corresponding annotated images.
  • the annotated image refers to an image that is reversely selected after defect annotation and graffiti on the pre-processed image.
  • the copper particle detection system is trained for image recognition. Different groups of preprocessed images and annotated images are selected for repeated training until the results are recognized by the copper particle detection system. When the difference from the annotated image converges or is less than a fixed value, the training is completed.
  • the more complete types of defects are included in the copper particle defect data set in the present invention and the richer the various defect data, the better the recognition effect of the copper particle detection system after training is completed and the higher the accuracy.
  • the copper particle detection system in the present invention is mainly divided into two parts: a convolutional neural network module and a pyramid pooling module.
  • the characteristic map of the image is obtained through convolution operation, and then the image is subjected to multi-resolution convolution processing through the pyramid pooling module.
  • the detection system can segment the background pixels and different copper particle pixels in the image, and then compare the actual identified copper particle output results with the theoretically output results to learn and train the copper particle detection system, and finally obtain a consistent Required detection system.
  • the defect threshold can be set in advance. Each pre-processed image will have an actual output value after recognition. After normalization processing, , if the actual output value is greater than the set defect threshold, the part can be considered to be a defect, otherwise it is considered to belong to the normal background.
  • the quality of the cathode copper plate is determined based on the customer's quality evaluation standards for copper. For example, a cathode copper plate with more than 10 single defects per unit area and an area greater than 100 square millimeters belongs to Class B copper. If each customer's quality assessment level is not exactly the same, the assessment standards can be adjusted according to the actual needs of the customer. Then, the images collected during the detection process are in color. The patina is green and the crystal is blue. Statistics can be distinguished by color, the results can be analyzed, and they can be classified according to the different conditions they meet.
  • a copper surface defect detection device based on a line array camera including: a transmission module for transmitting a cathode copper plate; a line array camera acquisition module composed of a line array camera and a light source, for collecting cathode copper plate surface images; an industrial computer, with It is used to receive the collected surface image data of the cathode copper plate and perform defect identification and analysis; the control module is used to receive the identification and analysis results of the industrial computer and control the work of the entire device.
  • the light source and line array camera are arranged in sequence according to the transmission direction of the cathode copper plate; the light source illuminates the surface of the cathode copper plate at a certain incident angle, and the direction facing the line array camera lens is perpendicular to the surface of the cathode copper plate.
  • the transmission module is responsible for transmitting the cathode copper plate from the production site to different locations according to the quality of the cathode copper plate after defect detection; the line array camera and the light source cooperate to clearly collect the image of the surface of the cathode copper plate.
  • the industrial computer and the line The array camera is connected to receive the image data collected by the line array camera. At the same time, the industrial computer will transmit the results of image data analysis and identification to the connected control module.
  • the control module controls the transmission module to transmit cathode copper plates of different qualities to different place.
  • the frequency of the line array camera shooting and collecting images according to the transmission speed of the cathode copper plate, so that the continuously collected images can completely synthesize the surface image of the cathode copper plate; the relative positions of the line array camera and the light source are set to ensure the collection The clarity of each frame of image; at the same time, the line array camera acquisition module composed of a line array camera and a light source can be flexibly set at different positions of the transmission module according to actual needs.
  • images of the front and back sides of the cathode copper plate are first collected through a line array camera.
  • Embodiment 1 is a robot unit-type image acquisition mechanism.
  • the back light source 1 illuminates the vertical part of the transmission module at a certain tilt angle.
  • the back camera 2 is set below the back light source.
  • the back camera 2 The lens faces the vertical part of the transmission module; the front light source 4 illuminates the horizontal part of the transmission module at a certain tilt angle, the front camera 5 is set on the right side of the front light source, and the lens of the front camera faces the horizontal part of the transmission module.
  • Both the front camera and the back camera are connected to the industrial computer 6 for data transmission, and the industrial computer is connected to the control module 7 for data transmission.
  • the cathode copper plate 3 is first transported vertically downward from the transmission module.
  • the reverse camera collects images of the reverse side of the cathode copper plate and synthesizes it to obtain a complete reverse image of the cathode copper plate.
  • the connecting fork drives the cathode copper plate to reverse 90 degrees to the right, so that the front side of the cathode copper plate is vertically upward, and then the cathode copper plate is separated from the connecting fork and continues to be conveyed.
  • the module is transmitted to the right.
  • the front camera collects images of the front of the cathode copper plate and synthesizes it to obtain a complete front image of the cathode copper plate.
  • the reverse camera and the front camera respectively transmit the reverse image and the front image to the industrial computer for identification and analysis of the images.
  • the obtained results are then transmitted to the control module.
  • the control module controls the transmission module to transmit the cathode copper plate to the computer based on the defect results detected. different locations.
  • Embodiment 2 is an image acquisition mechanism of a chain unit.
  • the cathode copper plate 3 is suspended vertically for transmission.
  • the transmission direction of the cathode copper plate is from left to right, and is set on the front side of the cathode copper plate.
  • the front light source illuminates the front of the cathode copper plate at a certain angle.
  • the lens of the front camera faces the front of the cathode copper plate to collect the front image.
  • a reverse camera 2 and a reverse light source 1 are provided on the reverse side of the cathode copper plate.
  • the arrangement of the reverse light source and the reverse camera and the front camera and the front light source are symmetrical with respect to the cathode copper plate.
  • the reverse camera collects reverse images of the cathode copper plate.
  • the reverse camera and the front camera are connected to the industrial computer 6, and the reverse image and the front image are transmitted to the industrial computer. After the industrial computer identifies and analyzes the image data, the result is transmitted to the control module 7 connected to the industrial computer.
  • the control module The transfer module is controlled to transfer the cathode copper plate to different locations according to the recognition results.
  • the industrial computer After completing the collection of the front image and the back image of the cathode copper plate through Embodiment 1 or 2, the industrial computer performs data analysis on the collected images.
  • two-dimensional image preprocessing is first carried out, the image is converted into HSV color space, the area where the copper plate is located is identified through the color recognition algorithm, the image of the area where the copper plate is located is intercepted, and divided into 6 ⁇ 8 image blocks according to size , perform Gaussian filtering on each image block, and the 48 processed image blocks are the preprocessed images.
  • the deep learning training process for the copper particle detection system is as follows:
  • the first step is to generate a copper particle defect data set.
  • the copper particle defect data set includes the preprocessed image obtained by performing the same preprocessing procedure on the images collected in the historical inspection data and the annotated image corresponding to the image.
  • the annotated image here It is generated after defect annotation of the preprocessed image.
  • the annotated image is the ideal data result obtained by defect detection.
  • the preprocessed image is the input image, and the annotated image is also shown in the figure;
  • the copper particle detection system in the intermediate link is learned and trained when both the input image data and the annotated image data are known.
  • the second step is to build a copper particle detection system and apply the pyramid scene analysis network.
  • the copper particle detection system consists of a convolutional neural network module and a pyramid pooling module.
  • the convolutional neural network module performs convolution operations on the preprocessed images.
  • the pyramid pooling module convolves the image with multi-channel different templates and then fuses it.
  • the image can be segmented and identified based on the background pixels and different copper particle pixels.
  • the picture shows two convolution kernels performing convolution operations on four ARGB channels. When generating the corresponding map, this convolution kernel corresponds to 4 convolution templates. The four templates corresponding to this convolution kernel are different.
  • the value of the corresponding position of the feature map is obtained by adding the convolution results of the four-core convolution template at the corresponding positions of the four channels and then taking the activation function. Therefore, in the process of obtaining two channels from four channels, the number of parameters It is 4 ⁇ 2 ⁇ 4, where the first 4 represents 4 channels, 2 represents the generation of 2 convolution kernels, and the last 4 represents the convolution kernel size.
  • the third step is to use the copper particle defect data set to train the copper particle detection system.
  • Training using the defect data set is mainly divided into two processes.
  • the first process is the forward propagation process: selecting a sample from the copper particle defect data set ( x, Yp), where x is the input image data, and Yp is the annotated image data, that is, the ideal output value; input the input image data represented by x into the copper particle detection system, and calculate the corresponding actual output value Op at this time.
  • the second process is the backward propagation process: compare and calculate the difference between the actual output Op and the corresponding ideal output value Yp; according to the difference result, adjust the weight matrix by back propagation by minimizing the error, and repeatedly select copper particle defects. Different samples in the data set are trained until the differences converge. This completes the deep learning training of the copper particle detection system.
  • the trained copper particle detection system is stored in the industrial computer, and then the formal detection of surface defects of the cathode copper plate is carried out.
  • the front and back images collected by the front and back cameras are transmitted to the industrial computer.
  • the images are first pre-processed, and the pre-processed images are input into the copper particle detection system for identification. Different defect recognition results can be obtained, thereby obtaining a surface defect distribution map.
  • Each corresponding part of the pixel in the picture has a corresponding output value.
  • the defect threshold By setting the defect threshold, the defective part and the normal part of the image are judged, and the segmentation process is In the result image of the deep learning detection, the defect part image is separated, and then through the connected domain label, the discrete defect connected domain is found, and the basic parameters such as area, length, and width of each connected domain are calculated based on pixels, so as to obtain the basic attributes of the defect. , which facilitates the setting of defect definition standards.
  • the definition of defects and the quality judgment of the cathode copper plate can be freely combined according to the shape, size, and quantity of the defects, or can be defined by a combination of parameters such as convexity coefficient or ambiguity or aspect ratio through the operation of the basic attributes of the defects.
  • the quality of the inspected cathode copper plate is assessed according to the customer's quality assessment standards for the cathode copper plate.
  • the control module transmits the cathode copper plate to different locations according to the quality of the cathode copper plate.
  • a kind of robot unit type transfer module can place cathode copper plates in different positions according to different quality classifications.
  • cathode copper plates that do not meet the quality requirements are rejected and separated in the later stage. Perform peeling.

Abstract

Disclosed is a linear array camera-based copper surface defect detection method, comprising: a linear array camera collecting and synthesizing surface images which comprise the front side and the back side of a copper cathode plate; preprocessing and partitioning the surface images into several image blocks; a copper particle detection system, which has undergone deep learning training, performing defect recognition on the preprocessed image blocks, and synthesizing the recognition results into a surface defect distribution map of the copper cathode plate; and setting a defect parameter threshold according to quality requirements for copper cathode, and classifying the copper cathode plate according to the surface defect distribution map of the copper cathode plate. Further disclosed is an apparatus, comprising a transport module; a linear array camera collection module; and an industrial computer and a control module. For the entire detection process of the present invention, conventional manual detection is changed into automatic detection, which reduces the impact of man-made factors on a defect detection result, reduces the missed detection rate, further unifies a defect detection standard, and yields a more accurate result. In addition, a linear array camera is used to collect images, so that setting a position for image collection is more flexible and convenient.

Description

一种基于线阵相机的铜表面缺陷检测方法及装置A copper surface defect detection method and device based on a line array camera 技术领域Technical field
本发明涉及阴极铜质量检测技术领域,尤其是涉及一种基于线阵相机的铜表面缺陷检测方法及装置。The invention relates to the technical field of cathode copper quality detection, and in particular to a copper surface defect detection method and device based on a line array camera.
背景技术Background technique
冶金精炼阴极铜由于其电解工艺的特殊性,所以阴极铜的表面情况能基本反映出阴极铜的品质,包括表面纹理、缺陷情况、色泽等。在整个阴极铜表面质量检测过程中都存在有一定的问题:取图,现有阴极铜表面质量主要依靠人工检测,人工在机组剥片环节逐一检测;数据分析,阴极铜在剥片机组流水线中高速运行,人工无法精确计算阴极铜粒子大小与分布,只能根据经验主观判断;判定输出,发现有问题的阴极铜时需要人工点击剔除,且不同人会给出不同的结果,劳动强度大,发生漏检风险大;后续还需要有质检人员复检,复检发现有问题阴极铜需要拆包处理,拆包后人工叉车处理再重新打包。过程繁琐,加大生产成本。Due to the particularity of the electrolysis process of metallurgical refining of cathode copper, the surface condition of cathode copper can basically reflect the quality of cathode copper, including surface texture, defects, color, etc. There are certain problems in the entire cathode copper surface quality inspection process: taking pictures, the existing cathode copper surface quality mainly relies on manual inspection, which is manually inspected one by one in the stripping process of the unit; data analysis, the cathode copper runs at high speed in the stripping unit assembly line , it is impossible to accurately calculate the size and distribution of copper cathode particles manually, and can only be judged subjectively based on experience; to determine the output, when a problematic cathode copper is found, it needs to be manually clicked to eliminate, and different people will give different results, which is labor-intensive and leakage occurs. The risk of inspection is high; subsequent re-inspection by quality inspectors is required. If the re-inspection finds that there is a problem with the cathode copper, it needs to be unpacked and processed. After unpacking, it will be handled manually by a forklift and then repacked. The process is cumbersome and increases production costs.
在中国专利文献中公开的“一种铜电解阴极板垂直度的检测方法、装置及系统”,其公开号为CN106066169A,公开日期为2016-11-02,包括获取阴极板上各个预设检测点的中心位置;从所有预设检测点的中心位置中获取最大的中心位置与最小的中心位置,并计算中心位置差值;根据所有预设检测点的中心位置拟合预设检测点曲面;确定出预设检测点曲面的最高点与最低点,根据最高点和最低点计算预设检测点曲面差值;从中心位置差值及预设检测点曲面差值中确定出最大值,将确定出的最大值确定为阴极板垂直度。通过实时、自动采集铜电解过程中阴极板的动态测距数据,通过对动态测距数据进行处理,可 以快速得到阴极板垂直度,得到的阴极板垂直度准确性很高,大大提高了检测效率和检测数据的准确性。但是该技术是通过采样阴极板表面多个点来对整体的垂直度的检测,当涉及到对表面局部位置的缺陷的检测时,无法精确地得到阴极铜板表面的缺陷数据,甚至会有遗漏,因此仍然需要改进。"A method, device and system for detecting verticality of copper electrolytic cathode plates" disclosed in Chinese patent documents, its publication number is CN106066169A, and the publication date is 2016-11-02, including obtaining each preset detection point on the cathode plate The center position of Find the highest point and the lowest point of the preset detection point surface, and calculate the preset detection point surface difference based on the highest point and the lowest point; determine the maximum value from the center position difference and the preset detection point surface difference, and determine the The maximum value of is determined as the cathode plate verticality. Through real-time and automatic collection of the dynamic ranging data of the cathode plate during the copper electrolysis process, and by processing the dynamic ranging data, the verticality of the cathode plate can be quickly obtained. The obtained verticality of the cathode plate is very accurate, which greatly improves the detection efficiency. and the accuracy of detection data. However, this technology detects the overall verticality by sampling multiple points on the surface of the cathode plate. When it comes to detecting defects at local locations on the surface, the defect data on the surface of the cathode copper plate cannot be accurately obtained, and there may even be omissions. Therefore improvements are still needed.
发明内容Contents of the invention
本发明是为了克服现有技术中利用人工检测阴极铜板质量时劳动强度大、漏检风险高、判断标准因人而异导致的检测过程繁琐以及成本增加的问题,提供了一种基于线阵相机的铜表面缺陷检测方法及装置,使整个阴极铜表面缺陷检测过程自动化,减少人为因素对缺陷检测结果的影响,同时通过对缺陷阈值的提前设置统一缺陷判断标准来提高检测结果的准确性和精确度。The present invention is to overcome the problems in the prior art of using manual methods to detect the quality of cathode copper plates, such as high labor intensity, high risk of missed inspections, cumbersome detection process and increased cost due to different judgment standards, and provides a method based on a line array camera. The copper surface defect detection method and device can automate the entire cathode copper surface defect detection process, reduce the impact of human factors on defect detection results, and at the same time improve the accuracy and precision of detection results by setting unified defect judgment standards for defect thresholds in advance. Spend.
为了实现上述目的,本发明采用以下技术方案:In order to achieve the above objects, the present invention adopts the following technical solutions:
一种基于线阵相机的铜表面缺陷检测方法,包括:A copper surface defect detection method based on a line array camera, including:
S1、线阵相机采集并合成包括阴极铜板正面和反面的表面图像;S1. The line array camera collects and synthesizes surface images including the front and back sides of the cathode copper plate;
S2、对采集到的阴极铜板表面图像进行预处理分割成若干个图像块;S2. Preprocess the collected surface image of the cathode copper plate and divide it into several image blocks;
S3、经过深度学习训练后的铜粒子检测系统对预处理后的图像块进行缺陷识别,并将每个图像块的识别结果合成为阴极铜板表面缺陷分布图;S3. The copper particle detection system trained by deep learning performs defect identification on the preprocessed image blocks, and synthesizes the identification results of each image block into a surface defect distribution map of the cathode copper plate;
S4、根据阴极铜品质要求设定缺陷参数阈值,并以阴极铜板表面缺陷分布图对阴极铜板进行分类。S4. Set the defect parameter threshold according to the cathode copper quality requirements, and classify the cathode copper plates based on the surface defect distribution map of the cathode copper plates.
本发明中,在阴极铜传输的过程中会存在设备遮挡等问题,使得无法一次性拍摄得到整个阴极铜表面,因此采用线阵相机来连续采集阴极铜表面的线性图像数据并合成完整的二维图像,不需要寻找特定的位置来采集完整图像,图像采集点设置的位置更灵活。同时采用经过深度学习训练后的铜粒子检测系统 来进行缺陷识别,能更精确地识别分析缺陷数据,并且能根据实际需求来设定不同的缺陷参数阈值,来将阴极铜质量进行划分,从而可以灵活地满足不同用户对阴极铜的差异化要求。In the present invention, there will be problems such as equipment blocking during the transmission of copper cathode, making it impossible to capture the entire copper cathode surface at one time. Therefore, a line array camera is used to continuously collect linear image data of the copper cathode surface and synthesize a complete two-dimensional For images, there is no need to find a specific location to collect a complete image, and the location of the image collection point is more flexible. At the same time, a copper particle detection system trained by deep learning is used for defect identification, which can more accurately identify and analyze defect data, and can set different defect parameter thresholds according to actual needs to classify cathode copper quality, so that it can Flexibly meet the differentiated requirements of different users for cathode copper.
作为优选,所述S2中对阴极铜板表面图像进行预处理的过程包括:识别并截取铜板所在区域图像;将图像分割成m行n列的图像块;对每个图像块进行高斯滤波得到的mn个图像块即为预处理后的图像。Preferably, the process of preprocessing the surface image of the cathode copper plate in S2 includes: identifying and intercepting the image of the area where the copper plate is located; dividing the image into image blocks of m rows and n columns; performing Gaussian filtering on each image block to obtain mn Each image block is the preprocessed image.
本发明中完整的阴极铜板图像一般是以米为单位的大图像,将图像经过预处理分割成多个小的图像块后,可以按照图像块中存在的缺陷种类单独分类标注学习和识别,可以按照不同图像块采集时的外界光线情况进行分类识别,解决了大尺寸图像不同区域图片质量不同意的问题,尽量保证单一图像块中图片质量的统一。The complete cathode copper plate image in the present invention is generally a large image in meters. After the image is divided into multiple small image blocks through preprocessing, it can be individually classified, labeled, learned and identified according to the types of defects existing in the image blocks. Classification and identification are carried out according to the external light conditions when collecting different image blocks, which solves the problem of inconsistent picture quality in different areas of large-size images and tries to ensure the uniformity of picture quality in a single image block.
作为优选,所述S3中对铜粒子检测系统的深度学习训练过程包括:Preferably, the deep learning training process of the copper particle detection system in S3 includes:
S31、对已有缺陷检测结果的预处理后的图像块进行缺陷标注生成标注图像,并共同组成铜粒子缺陷数据集;S31. Perform defect annotation on the preprocessed image blocks with existing defect detection results to generate annotation images, and together form a copper particle defect data set;
S32、以卷积神经网络模块和金字塔池化模块构建铜粒子检测系统;S32. Construct a copper particle detection system using the convolutional neural network module and the pyramid pooling module;
S33、以铜粒子缺陷数据集重复对铜粒子检测系统进行图像识别训练;S33. Repeat the image recognition training of the copper particle detection system using the copper particle defect data set;
S34、当铜粒子检测系统的铜粒子识别像素精度达到规定值后完成训练。S34. The training is completed when the copper particle identification pixel accuracy of the copper particle detection system reaches the specified value.
本发明中铜粒子缺陷数据集包括已经完成缺陷检测的预处理后的图像和其对应的标注图像,标注图像是指对预处理后的图像进行缺陷标注和涂鸦后进行反向选取的图像,以预处理后的图像作为输入值,标注图像作为理论输出值,对铜粒子检测系统进行图像识别训练,选取不同组预处理后的图像和标注图像进行重复训练直到经过铜粒子检测系统识别的结果与标注图像的差值收敛或小 于一个定值就能说明完成训练。The copper particle defect data set in the present invention includes pre-processed images that have completed defect detection and their corresponding annotated images. The annotated images refer to images that are reversely selected after defect annotation and graffiti on the pre-processed images. The preprocessed image is used as the input value, and the annotated image is used as the theoretical output value. The copper particle detection system is trained for image recognition. Different groups of preprocessed images and annotated images are selected for repeated training until the results recognized by the copper particle detection system are consistent with Training is completed when the difference between the labeled images converges or is less than a fixed value.
作为优选,所述铜粒子缺陷数据集中标注图像的标注信息包括有缺陷种类、缺陷形状和尺寸、铜粒子颜色深度和粒子聚集度。本发明中铜粒子缺陷数据集中涵盖的缺陷种类越全,各项缺陷数据越丰富,则完成训练后铜粒子检测系统的识别效果越好,准确率越高。Preferably, the annotation information of the annotated image in the copper particle defect data set includes defect type, defect shape and size, copper particle color depth and particle aggregation degree. The more complete types of defects are included in the copper particle defect data set in the present invention and the richer the various defect data, the better the recognition effect of the copper particle detection system after training is completed and the higher the accuracy.
作为优选,图像识别训练的过程包括:Preferably, the image recognition training process includes:
从铜粒子缺陷数据集中选择一组包含输入数据和理论输出值的样本;Select a set of samples from the copper particle defect data set containing input data and theoretical output values;
将输入数据输入铜粒子检测系统得到对应的实际输出值;Input the input data into the copper particle detection system to obtain the corresponding actual output value;
比较计算理论输出值和实际输出值的差值;Compare and calculate the difference between the theoretical output value and the actual output value;
按极小化误差的方法调整铜粒子检测系统中的参数,直到差值收敛。Adjust the parameters in the copper particle detection system in a manner that minimizes the error until the difference converges.
本发明中的铜粒子检测系统主要分为卷积神经网络模块和金字塔池化模块两个部分,通过卷积运算获取图像的特征图谱,然后将图像通过金字塔池化模块进行多分辨率卷积处理并融合后,使得检测系统可以分割出图像中的背景像素和不同的铜粒子像素,然后比较实际识别的铜粒子输出结果和理论上应该输出的结果对铜粒子检测系统进行学习训练,最后得到符合要求的检测系统。The copper particle detection system in the present invention is mainly divided into two parts: a convolutional neural network module and a pyramid pooling module. The characteristic map of the image is obtained through convolution operation, and then the image is subjected to multi-resolution convolution processing through the pyramid pooling module. After fusion, the detection system can segment the background pixels and different copper particle pixels in the image, and then compare the actual identified copper particle output results with the theoretically output results to learn and train the copper particle detection system, and finally obtain a consistent Required detection system.
作为优选,所述S4中,对于阴极铜板表面缺陷分布图,通过提前设定的缺陷参数阈值分离出缺陷部分图像;提取缺陷部分图像的区域特征,按区域内的像素计算缺陷的基本参数。Preferably, in S4, for the surface defect distribution map of the cathode copper plate, the defective part image is separated through the defect parameter threshold set in advance; the regional characteristics of the defective part image are extracted, and the basic parameters of the defect are calculated according to the pixels in the area.
本发明中铜粒子检测系统在对预处理后的图像进行识别时,可以先提前设定缺陷阈值,每一个预处理后的图像经过识别后都会有一个实际输出值,在进行归一化处理后,若该实际输出值大于设定的缺陷阈值则可以认为该部分是缺陷,反之则认为是属于正常背景。When the copper particle detection system of the present invention identifies pre-processed images, the defect threshold can be set in advance. Each pre-processed image will have an actual output value after recognition. After normalization processing, , if the actual output value is greater than the set defect threshold, the part can be considered to be a defect, otherwise it is considered to belong to the normal background.
一种基于线阵相机的铜表面缺陷检测装置,包括:A copper surface defect detection device based on a line array camera, including:
传送模块,用于传输阴极铜板;Transfer module, used to transfer cathode copper plates;
线阵相机采集模块,包括线阵相机和光源,用于采集阴极铜板表面图像;Line array camera acquisition module, including line array camera and light source, used to collect cathode copper plate surface images;
工控机,用于接收采集到的阴极铜板表面图像数据并进行缺陷识别和分析;Industrial computer, used to receive the collected surface image data of the cathode copper plate and conduct defect identification and analysis;
控制模块,用于接收工控机的识别和分析结果并控制整个装置的工作。The control module is used to receive the identification and analysis results of the industrial computer and control the work of the entire device.
本发明中传送模块负责将阴极铜板从生产处经过缺陷检测后,依据阴极铜板质量的不同传输到不同的位置;线阵相机和光源配合,可以清晰地采集阴极铜板表面的图像,工控机与线阵相机相连,接收线阵相机采集到的图像数据,同时工控机将对图像数据分析识别后的结果传送到相连的控制模块中,有控制模块控制传送模块将不同质量的阴极铜板传送到不同的地方。In the present invention, the transmission module is responsible for transmitting the cathode copper plate from the production site to different locations according to the quality of the cathode copper plate after defect detection; the line array camera and the light source cooperate to clearly collect the image of the surface of the cathode copper plate. The industrial computer and the line The array camera is connected to receive the image data collected by the line array camera. At the same time, the industrial computer will transmit the results of image data analysis and identification to the connected control module. The control module controls the transmission module to transmit cathode copper plates of different qualities to different place.
作为优选,所述线阵相机采集模块中按照阴极铜板传输的方向依次设置光源和线阵相机;所述光源以一定的入射角照射到阴极铜板表面,所述线阵相机镜头正对的方向垂直于阴极铜板表面。Preferably, the line array camera acquisition module is provided with light sources and line array cameras in sequence according to the direction of transmission of the cathode copper plate; the light source illuminates the surface of the cathode copper plate at a certain incident angle, and the direction facing the line array camera lens is vertical on the surface of the cathode copper plate.
本发明中需要根据阴极铜板的传输速度来控制线阵相机拍摄采集图像的频率,使得连续采集后的图像可以完整的合成阴极铜板的表面图像;线阵相机和光源的相对位置设置是为了保证采集的每一帧图像的清晰度;同时线阵相机和光源组成的线阵相机采集模块可以根据实际需要灵活地设置在传送模块的不同位置。In the present invention, it is necessary to control the frequency of the line array camera shooting and collecting images according to the transmission speed of the cathode copper plate, so that the continuously collected images can completely synthesize the surface image of the cathode copper plate; the relative positions of the line array camera and the light source are set to ensure the collection The clarity of each frame of image; at the same time, the line array camera acquisition module composed of a line array camera and a light source can be flexibly set at different positions of the transmission module according to actual needs.
本发明具有如下有益效果:使用线阵相机进行图像采集,不需要寻找特定的能够完全看到整个阴极铜板表面的位置,使得采集装置的位置设定更加灵活方便;整个检测过程由传统的人工检测改为自动检测,减少了人为因素对缺陷检测结果的影响,降低漏检率,缺陷检测标准更统一,结果更准确;可以根据 实际需求设定不同的缺陷参数阈值,以不同的判定标准来对阴极铜板表面缺陷进行检测,可以符合客户的差异性要求。The invention has the following beneficial effects: using a line array camera for image collection, there is no need to find a specific position where the entire surface of the cathode copper plate can be completely seen, making the position setting of the collection device more flexible and convenient; the entire detection process is performed by traditional manual detection Switching to automatic detection reduces the impact of human factors on defect detection results, reduces the missed detection rate, makes defect detection standards more unified, and results are more accurate; different defect parameter thresholds can be set according to actual needs, and different judgment standards can be used to detect defects. The surface defects of the cathode copper plate are detected to meet the differentiated requirements of customers.
附图说明Description of the drawings
图1是本发明的缺陷检测方法流程图;Figure 1 is a flow chart of the defect detection method of the present invention;
图2是本发明实施例一中的表面图像采集装置示意图;Figure 2 is a schematic diagram of the surface image acquisition device in Embodiment 1 of the present invention;
图3是本发明实施例二中的表面图像采集装置示意图;Figure 3 is a schematic diagram of the surface image acquisition device in Embodiment 2 of the present invention;
图4是本发明实施例中深度学习训练的示意图;Figure 4 is a schematic diagram of deep learning training in an embodiment of the present invention;
图中:1、反面光源;2、反面相机;3、阴极铜板;4、正面光源;5、正面相机;6、工控机;7、控制模块;8、接板叉。In the picture: 1. Reverse light source; 2. Reverse camera; 3. Cathode copper plate; 4. Front light source; 5. Front camera; 6. Industrial computer; 7. Control module; 8. Board fork.
具体实施方式Detailed ways
下面结合附图与具体实施方式对本发明做进一步的描述。The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.
如图1所示,一种基于线阵相机的铜表面缺陷检测方法,包括:As shown in Figure 1, a copper surface defect detection method based on a line array camera includes:
S1、线阵相机采集并合成包括阴极铜板正面和反面的表面图像。S1. The line array camera collects and synthesizes surface images including the front and back sides of the cathode copper plate.
S2、对采集到的阴极铜板表面图像进行预处理分割成若干个图像块;S2中对阴极铜板表面图像进行预处理的过程包括:识别并截取铜板所在区域图像;将图像分割成m行n列的图像块;对每个图像块进行高斯滤波得到的mn个图像块即为预处理后的图像。S2. Preprocess the collected surface image of the cathode copper plate and divide it into several image blocks. The process of preprocessing the surface image of the cathode copper plate in S2 includes: identifying and intercepting the image of the area where the copper plate is located; dividing the image into m rows and n columns. image blocks; the mn image blocks obtained by performing Gaussian filtering on each image block are the preprocessed images.
S3、经过深度学习训练后的铜粒子检测系统对预处理后的图像块进行缺陷识别,并将每个图像块的识别结果合成为阴极铜板表面缺陷分布图;对铜粒子检测系统的深度学习训练过程包括:S3. The copper particle detection system trained by deep learning performs defect identification on the preprocessed image blocks, and synthesizes the recognition results of each image block into a surface defect distribution map of the cathode copper plate; deep learning training of the copper particle detection system The process includes:
S31、对已有缺陷检测结果的预处理后的图像块进行缺陷标注生成标注图像,并共同组成铜粒子缺陷数据集;S31. Perform defect annotation on the preprocessed image blocks with existing defect detection results to generate annotation images, and together form a copper particle defect data set;
S32、以卷积神经网络模块和金字塔池化模块构建铜粒子检测系统;S32. Construct a copper particle detection system using the convolutional neural network module and the pyramid pooling module;
S33、以铜粒子缺陷数据集重复对铜粒子检测系统进行图像识别训练;S33. Repeat the image recognition training of the copper particle detection system using the copper particle defect data set;
S34、当铜粒子检测系统的铜粒子识别像素精度达到规定值后完成训练。S34. The training is completed when the copper particle identification pixel accuracy of the copper particle detection system reaches the specified value.
S4、根据阴极铜品质要求设定缺陷参数阈值,并以阴极铜板表面缺陷分布图对阴极铜板进行分类;S4中,对于阴极铜板表面缺陷分布图,通过提前设定的缺陷参数阈值分离出缺陷部分图像;提取缺陷部分图像的区域特征,按区域内的像素计算缺陷的基本参数。S4. Set the defect parameter threshold according to the cathode copper quality requirements, and classify the cathode copper plates based on the surface defect distribution map of the cathode copper plate. In S4, for the surface defect distribution map of the cathode copper plate, the defective parts are separated through the defect parameter threshold set in advance. Image; extract the regional features of the defective part of the image, and calculate the basic parameters of the defect based on the pixels in the area.
铜粒子缺陷数据集中标注图像的标注信息包括有缺陷种类、缺陷形状和尺寸、铜粒子颜色深度和粒子聚集度。The annotation information of the annotated images in the copper particle defect data set includes defect types, defect shapes and sizes, copper particle color depth and particle aggregation degree.
图像识别训练的过程包括:从铜粒子缺陷数据集中选择一组包含输入数据和理论输出值的样本;将输入数据输入铜粒子检测系统得到对应的实际输出值;比较计算理论输出值和实际输出值的差值;按极小化误差的方法调整铜粒子检测系统中的参数,直到差值收敛。The image recognition training process includes: selecting a set of samples containing input data and theoretical output values from the copper particle defect data set; inputting the input data into the copper particle detection system to obtain the corresponding actual output value; comparing and calculating the theoretical output value and the actual output value The difference; adjust the parameters in the copper particle detection system by minimizing the error until the difference converges.
本发明中,在阴极铜传输的过程中会存在设备遮挡等问题,使得无法一次性拍摄得到整个阴极铜表面,因此采用线阵相机来连续采集阴极铜表面的线性图像数据并合成完整的二维图像,不需要寻找特定的位置来采集完整图像,图像采集点设置的位置更灵活。同时采用经过深度学习训练后的铜粒子检测系统来进行缺陷识别,能更精确地识别分析缺陷数据,并且能根据实际需求来设定不同的缺陷参数阈值,来将阴极铜质量进行划分,从而可以灵活地满足不同用户对阴极铜的差异化要求。In the present invention, there will be problems such as equipment blocking during the transmission of copper cathode, making it impossible to capture the entire copper cathode surface at one time. Therefore, a line array camera is used to continuously collect linear image data of the copper cathode surface and synthesize a complete two-dimensional For images, there is no need to find a specific location to collect a complete image, and the location of the image collection point is more flexible. At the same time, a copper particle detection system trained by deep learning is used for defect identification, which can more accurately identify and analyze defect data, and can set different defect parameter thresholds according to actual needs to classify cathode copper quality, so that it can Flexibly meet the differentiated requirements of different users for cathode copper.
本发明中完整的阴极铜板图像一般是以米为单位的大图像,将图像经过预处理分割成多个小的图像块后,可以按照图像块中存在的缺陷种类单独分类标 注学习和识别,可以按照不同图像块采集时的外界光线情况进行分类识别,解决了大尺寸图像不同区域图片质量不同意的问题,尽量保证单一图像块中图片质量的统一。The complete cathode copper plate image in the present invention is generally a large image in meters. After the image is divided into multiple small image blocks through preprocessing, it can be individually classified, labeled, learned and identified according to the types of defects existing in the image blocks. Classification and identification are carried out according to the external light conditions when collecting different image blocks, which solves the problem of inconsistent picture quality in different areas of large-size images and tries to ensure the uniformity of picture quality in a single image block.
本发明中铜粒子缺陷数据集包括已有缺陷检测结果的预处理后的图像和其对应的标注图像,标注图像是指对预处理后的图像进行缺陷标注和涂鸦后进行反向选取的图像,以预处理后的图像作为输入值,标注图像作为理论输出值,对铜粒子检测系统进行图像识别训练,选取不同组预处理后的图像和标注图像进行重复训练直到经过铜粒子检测系统识别的结果与标注图像的差值收敛或小于一个定值就能说明完成训练。The copper particle defect data set in the present invention includes pre-processed images with existing defect detection results and their corresponding annotated images. The annotated image refers to an image that is reversely selected after defect annotation and graffiti on the pre-processed image. Using the preprocessed image as the input value and the annotated image as the theoretical output value, the copper particle detection system is trained for image recognition. Different groups of preprocessed images and annotated images are selected for repeated training until the results are recognized by the copper particle detection system. When the difference from the annotated image converges or is less than a fixed value, the training is completed.
本发明中铜粒子缺陷数据集中涵盖的缺陷种类越全,各项缺陷数据越丰富,则完成训练后铜粒子检测系统的识别效果越好,准确率越高。The more complete types of defects are included in the copper particle defect data set in the present invention and the richer the various defect data, the better the recognition effect of the copper particle detection system after training is completed and the higher the accuracy.
本发明中的铜粒子检测系统主要分为卷积神经网络模块和金字塔池化模块两个部分,通过卷积运算获取图像的特征图谱,然后将图像通过金字塔池化模块进行多分辨率卷积处理并融合后,使得检测系统可以分割出图像中的背景像素和不同的铜粒子像素,然后比较实际识别的铜粒子输出结果和理论上应该输出的结果对铜粒子检测系统进行学习训练,最后得到符合要求的检测系统。The copper particle detection system in the present invention is mainly divided into two parts: a convolutional neural network module and a pyramid pooling module. The characteristic map of the image is obtained through convolution operation, and then the image is subjected to multi-resolution convolution processing through the pyramid pooling module. After fusion, the detection system can segment the background pixels and different copper particle pixels in the image, and then compare the actual identified copper particle output results with the theoretically output results to learn and train the copper particle detection system, and finally obtain a consistent Required detection system.
本发明中铜粒子检测系统在对预处理后的图像进行识别时,可以先提前设定缺陷阈值,每一个预处理后的图像经过识别后都会有一个实际输出值,在进行归一化处理后,若该实际输出值大于设定的缺陷阈值则可以认为该部分是缺陷,反之则认为是属于正常背景。本发明中判定阴极铜板的质量是根据客户对铜的质量评估标准进行判定的,例如:在单位面积中存在10个以上单个缺陷面积大于100平方毫米的阴极铜板属于B级铜。每个客户对质量的评估等级不完 全相同的,可以根据客户的实际需求对评定标准进行调整。然后在检测过程中采集的图像有彩色的,铜绿是绿色、结晶是蓝色,可以通过颜色进行区分统计,对结果进行分析,根据满足的条件不同将其进行归类划分。When the copper particle detection system of the present invention identifies pre-processed images, the defect threshold can be set in advance. Each pre-processed image will have an actual output value after recognition. After normalization processing, , if the actual output value is greater than the set defect threshold, the part can be considered to be a defect, otherwise it is considered to belong to the normal background. In the present invention, the quality of the cathode copper plate is determined based on the customer's quality evaluation standards for copper. For example, a cathode copper plate with more than 10 single defects per unit area and an area greater than 100 square millimeters belongs to Class B copper. If each customer's quality assessment level is not exactly the same, the assessment standards can be adjusted according to the actual needs of the customer. Then, the images collected during the detection process are in color. The patina is green and the crystal is blue. Statistics can be distinguished by color, the results can be analyzed, and they can be classified according to the different conditions they meet.
一种基于线阵相机的铜表面缺陷检测装置,包括:用于传送阴极铜板的传送模块;由线阵相机和光源组成的线阵相机采集模块,用于采集阴极铜板表面图像;工控机,用于接收采集到的阴极铜板表面图像数据并进行缺陷识别和分析;控制模块,用于接收工控机的识别和分析结果并控制整个装置的工作。A copper surface defect detection device based on a line array camera, including: a transmission module for transmitting a cathode copper plate; a line array camera acquisition module composed of a line array camera and a light source, for collecting cathode copper plate surface images; an industrial computer, with It is used to receive the collected surface image data of the cathode copper plate and perform defect identification and analysis; the control module is used to receive the identification and analysis results of the industrial computer and control the work of the entire device.
线阵相机采集模块中按照阴极铜板传输的方向依次设置光源和线阵相机;光源以一定的入射角照射到阴极铜板表面,线阵相机镜头正对的方向垂直于阴极铜板表面。In the line array camera acquisition module, the light source and line array camera are arranged in sequence according to the transmission direction of the cathode copper plate; the light source illuminates the surface of the cathode copper plate at a certain incident angle, and the direction facing the line array camera lens is perpendicular to the surface of the cathode copper plate.
本发明中传送模块负责将阴极铜板从生产处经过缺陷检测后,依据阴极铜板质量的不同传输到不同的位置;线阵相机和光源配合,可以清晰地采集阴极铜板表面的图像,工控机与线阵相机相连,接收线阵相机采集到的图像数据,同时工控机将对图像数据分析识别后的结果传送到相连的控制模块中,有控制模块控制传送模块将不同质量的阴极铜板传送到不同的地方。In the present invention, the transmission module is responsible for transmitting the cathode copper plate from the production site to different locations according to the quality of the cathode copper plate after defect detection; the line array camera and the light source cooperate to clearly collect the image of the surface of the cathode copper plate. The industrial computer and the line The array camera is connected to receive the image data collected by the line array camera. At the same time, the industrial computer will transmit the results of image data analysis and identification to the connected control module. The control module controls the transmission module to transmit cathode copper plates of different qualities to different place.
本发明中需要根据阴极铜板的传输速度来控制线阵相机拍摄采集图像的频率,使得连续采集后的图像可以完整的合成阴极铜板的表面图像;线阵相机和光源的相对位置设置是为了保证采集的每一帧图像的清晰度;同时线阵相机和光源组成的线阵相机采集模块可以根据实际需要灵活地设置在传送模块的不同位置。In the present invention, it is necessary to control the frequency of the line array camera shooting and collecting images according to the transmission speed of the cathode copper plate, so that the continuously collected images can completely synthesize the surface image of the cathode copper plate; the relative positions of the line array camera and the light source are set to ensure the collection The clarity of each frame of image; at the same time, the line array camera acquisition module composed of a line array camera and a light source can be flexibly set at different positions of the transmission module according to actual needs.
在本发明的实施过程中,首先通过线阵相机采集阴极铜板的正反两面的图像,对于阴极铜板表面图像的采集有两种结构可以使用。During the implementation of the present invention, images of the front and back sides of the cathode copper plate are first collected through a line array camera. There are two structures available for collecting images on the surface of the cathode copper plate.
实施例一,如图2所示,是一种机器人机组式的图像采集机构,反面光源1以一定的倾斜角度照射到传送模块的竖直部分,反面相机2设置在反面光源下方,反面相机的镜头正对传送模块的竖直部分;正面光源4以一定的倾斜角度照射到传送模块的水平部分,正面相机5设置在正面光源的右侧,正面相机的镜头正对传送模块的水平部分。正面相机和反面相机都与工控机6连接进行数据传输,工控机与控制模块7相连进行数据传输。阴极铜板3首先从传送模块中竖直向下传送,在此过程中反面相机对阴极铜板的反面进行图像采集并合成得到完整的阴极铜板反面图像。当阴极铜板下降到与接板叉8相遇并固定后,接板叉带动阴极铜板向右侧反转九十度,使阴极铜板正面竖直朝上,然后阴极铜板与接板叉脱离继续由传送模块向右侧传送,在此过程中,正面相机对阴极铜板的正面进行图像采集并合成得到完整的阴极铜板正面图像。反面相机和正面相机分别将反面图像和正面图像传输到工控机中对图像进行识别分析,得到的结果再传输到控制模块中,有控制模块控制传送模块将阴极铜板根据其检测的缺陷结果传送到不同的位置。Embodiment 1, as shown in Figure 2, is a robot unit-type image acquisition mechanism. The back light source 1 illuminates the vertical part of the transmission module at a certain tilt angle. The back camera 2 is set below the back light source. The back camera 2 The lens faces the vertical part of the transmission module; the front light source 4 illuminates the horizontal part of the transmission module at a certain tilt angle, the front camera 5 is set on the right side of the front light source, and the lens of the front camera faces the horizontal part of the transmission module. Both the front camera and the back camera are connected to the industrial computer 6 for data transmission, and the industrial computer is connected to the control module 7 for data transmission. The cathode copper plate 3 is first transported vertically downward from the transmission module. During this process, the reverse camera collects images of the reverse side of the cathode copper plate and synthesizes it to obtain a complete reverse image of the cathode copper plate. When the cathode copper plate is lowered to meet the connecting fork 8 and is fixed, the connecting fork drives the cathode copper plate to reverse 90 degrees to the right, so that the front side of the cathode copper plate is vertically upward, and then the cathode copper plate is separated from the connecting fork and continues to be conveyed. The module is transmitted to the right. During this process, the front camera collects images of the front of the cathode copper plate and synthesizes it to obtain a complete front image of the cathode copper plate. The reverse camera and the front camera respectively transmit the reverse image and the front image to the industrial computer for identification and analysis of the images. The obtained results are then transmitted to the control module. The control module controls the transmission module to transmit the cathode copper plate to the computer based on the defect results detected. different locations.
实施例二,如图3所示,是一种链式机组的图像采集机构,阴极铜板3竖直悬挂进行传送,在图中阴极铜板的传送方向由左向右,在阴极铜板的正面侧设置有正面相机5和正面光源4,正面光源以一定角度照射到阴极铜板的正面,正面相机的镜头正对阴极铜板的正面进行正面图像的采集。在阴极铜板的反面侧设置有反面相机2和反面光源1,反面光源、反面相机的设置和正面相机、正面光源相对于阴极铜板对称,反面相机对阴极铜板进行反面图像的采集。反面相机和正面相机与工控机6连接,将反面图像和正面图像传输到工控机中,工控机将图像数据进行识别分析后,将结果传输到与工控机连接的控制模块7中, 由控制模块根据识别结果控制传送模块将阴极铜板传送到不同的位置。Embodiment 2, as shown in Figure 3, is an image acquisition mechanism of a chain unit. The cathode copper plate 3 is suspended vertically for transmission. In the figure, the transmission direction of the cathode copper plate is from left to right, and is set on the front side of the cathode copper plate. There is a front camera 5 and a front light source 4. The front light source illuminates the front of the cathode copper plate at a certain angle. The lens of the front camera faces the front of the cathode copper plate to collect the front image. A reverse camera 2 and a reverse light source 1 are provided on the reverse side of the cathode copper plate. The arrangement of the reverse light source and the reverse camera and the front camera and the front light source are symmetrical with respect to the cathode copper plate. The reverse camera collects reverse images of the cathode copper plate. The reverse camera and the front camera are connected to the industrial computer 6, and the reverse image and the front image are transmitted to the industrial computer. After the industrial computer identifies and analyzes the image data, the result is transmitted to the control module 7 connected to the industrial computer. The control module The transfer module is controlled to transfer the cathode copper plate to different locations according to the recognition results.
在通过实施例一或实施例二完成阴极铜板的正面图像和反面图像的采集后,由工控机对采集到的图像进行数据分析。数据分析的过程中首先进行二维图像预处理,将图像转换到HSV颜色空间中,通过颜色识别算法识别出铜板所在的区域,截取铜板所在的区域图像,按尺寸分割成6×8个图像块,对每个图像块做高斯滤波,处理后的48个图像块即为预处理后的图像。After completing the collection of the front image and the back image of the cathode copper plate through Embodiment 1 or 2, the industrial computer performs data analysis on the collected images. In the process of data analysis, two-dimensional image preprocessing is first carried out, the image is converted into HSV color space, the area where the copper plate is located is identified through the color recognition algorithm, the image of the area where the copper plate is located is intercepted, and divided into 6×8 image blocks according to size , perform Gaussian filtering on each image block, and the 48 processed image blocks are the preprocessed images.
在对预处理后的图像进行缺陷识别之前,需要对缺陷识别工具即铜粒子检测系统进行深度学习训练,使得铜粒子检测系统的识别精度达到要求。如图4所示,对于铜粒子检测系统的深度学习训练过程如下:Before performing defect identification on preprocessed images, it is necessary to conduct deep learning training on the defect identification tool, namely the copper particle detection system, so that the identification accuracy of the copper particle detection system meets the requirements. As shown in Figure 4, the deep learning training process for the copper particle detection system is as follows:
第一步是生成铜粒子缺陷数据集,铜粒子缺陷数据集包括历史检测数据中采集的图像进行相同的预处理程序得到的预处理后的图像和与该图像对应的标注图像,这里的标注图像是对预处理后的图像进行缺陷标注后生成的,该标注图像是已经经过缺陷检测得到的理想数据结果,在图4中预处理后的图像即为输入图像,标注图像也如图所示;在输入图像数据和标注图像数据都已知的情况下对处于中间环节的铜粒子检测系统进行学习训练。The first step is to generate a copper particle defect data set. The copper particle defect data set includes the preprocessed image obtained by performing the same preprocessing procedure on the images collected in the historical inspection data and the annotated image corresponding to the image. The annotated image here It is generated after defect annotation of the preprocessed image. The annotated image is the ideal data result obtained by defect detection. In Figure 4, the preprocessed image is the input image, and the annotated image is also shown in the figure; The copper particle detection system in the intermediate link is learned and trained when both the input image data and the annotated image data are known.
第二步是构建铜粒子检测系统,应用金字塔场景解析网络,由卷积神经网络模块和金字塔池化模块两部分构成铜粒子检测系统,卷积神经网络模块对预处理后的图像进行卷积运算来提取其特征图谱,金字塔池化模块则是对图像采取多通道不同模板的卷积后进行融合,最后能够使得图像能够根据背景像素和不同的铜粒子像素进行分割识别。图中为两个卷积核在ARGB四通道上进行卷积操作,在生成对应的图谱时,这个卷积核对应4个卷积模板,这一个卷积核对应的四个模板都不一样,特征图对应的位置的值是由四核卷积模板分别作用在4 个通道的对应位置处的卷积结果相加然后取激活函数得到的,所以在四通道得到2通道的过程中,参数数目为4×2×4个,其中第一个4表示4个通道,2表示生成2个卷积核,最后的4表示卷积核大小。The second step is to build a copper particle detection system and apply the pyramid scene analysis network. The copper particle detection system consists of a convolutional neural network module and a pyramid pooling module. The convolutional neural network module performs convolution operations on the preprocessed images. To extract its characteristic map, the pyramid pooling module convolves the image with multi-channel different templates and then fuses it. Finally, the image can be segmented and identified based on the background pixels and different copper particle pixels. The picture shows two convolution kernels performing convolution operations on four ARGB channels. When generating the corresponding map, this convolution kernel corresponds to 4 convolution templates. The four templates corresponding to this convolution kernel are different. The value of the corresponding position of the feature map is obtained by adding the convolution results of the four-core convolution template at the corresponding positions of the four channels and then taking the activation function. Therefore, in the process of obtaining two channels from four channels, the number of parameters It is 4×2×4, where the first 4 represents 4 channels, 2 represents the generation of 2 convolution kernels, and the last 4 represents the convolution kernel size.
第三步是用铜粒子缺陷数据集对铜粒子检测系统进行训练,使用缺陷数据集进行训练主要分两个过程,第一个过程是向前传播过程:从铜粒子缺陷数据集中选取一个样本(x,Yp),其中x为输入图像数据,Yp为标注图像数据即理想输出值;将x代表的输入图像数据输入铜粒子检测系统中,计算此时相应的实际输出值Op。第二过程是向后传播过程:比较计算实际输出Op和相应的理想输出值Yp的差值;根据差值结果按极小化误差的方法反向传播调整权值矩阵,并重复选取铜粒子缺陷数据集中不同的样本进行训练,直至差值收敛。从而完成对铜粒子检测系统的深度学习训练。The third step is to use the copper particle defect data set to train the copper particle detection system. Training using the defect data set is mainly divided into two processes. The first process is the forward propagation process: selecting a sample from the copper particle defect data set ( x, Yp), where x is the input image data, and Yp is the annotated image data, that is, the ideal output value; input the input image data represented by x into the copper particle detection system, and calculate the corresponding actual output value Op at this time. The second process is the backward propagation process: compare and calculate the difference between the actual output Op and the corresponding ideal output value Yp; according to the difference result, adjust the weight matrix by back propagation by minimizing the error, and repeatedly select copper particle defects. Different samples in the data set are trained until the differences converge. This completes the deep learning training of the copper particle detection system.
在完成对铜粒子检测系统的训练后,将训练完成的铜粒子检测系统存放到工控机,然后进行正式的阴极铜板表面缺陷的检测。将正面相机和反面相机采集得到的正面图像和反面图像都传输到工控机中,首先对图像进行预处理,将预处理后的图像输入到铜粒子检测系统中进行识别。可以得到不同的缺陷识别结果,从而得到一张表面缺陷分布图,图中的每个像素对应部分都有相应的输出值,通过设定缺陷阈值对图像缺陷部分和正常部分进行判定,并分割经过深度学习检测的结果图像,分离出缺陷部分图像,再通过连通域标记,找出离散的缺陷连通域,按照像素计算每个连通域的面积、长、宽等基本参数,从而得到缺陷的基本属性,便于设置缺陷定义标准。对于缺陷定义以及阴极铜板的质量判定可以根据缺陷的形状、尺寸、数量进行自由组合定义,也可以通过对缺陷基本属性的运算得到凸系数或模糊度或纵横比等参数的组合来定义。After completing the training of the copper particle detection system, the trained copper particle detection system is stored in the industrial computer, and then the formal detection of surface defects of the cathode copper plate is carried out. The front and back images collected by the front and back cameras are transmitted to the industrial computer. The images are first pre-processed, and the pre-processed images are input into the copper particle detection system for identification. Different defect recognition results can be obtained, thereby obtaining a surface defect distribution map. Each corresponding part of the pixel in the picture has a corresponding output value. By setting the defect threshold, the defective part and the normal part of the image are judged, and the segmentation process is In the result image of the deep learning detection, the defect part image is separated, and then through the connected domain label, the discrete defect connected domain is found, and the basic parameters such as area, length, and width of each connected domain are calculated based on pixels, so as to obtain the basic attributes of the defect. , which facilitates the setting of defect definition standards. The definition of defects and the quality judgment of the cathode copper plate can be freely combined according to the shape, size, and quantity of the defects, or can be defined by a combination of parameters such as convexity coefficient or ambiguity or aspect ratio through the operation of the basic attributes of the defects.
在完成对阴极铜板表面缺陷的识别后,根据客户对阴极铜板的质量评估标准将检测完成的阴极铜板进行质量评定,控制模块根据阴极铜板的质量不同将阴极铜板传输到不同的位置,对于实施例一种的机器人机组式传送模块,可以将阴极铜板依据质量不同分类摆放到不同的位置,对于实施例二中的链式机组传送模块,对不符合质量要求的阴极铜板拒收,在后期单独进行剥离。After the identification of surface defects of the cathode copper plate is completed, the quality of the inspected cathode copper plate is assessed according to the customer's quality assessment standards for the cathode copper plate. The control module transmits the cathode copper plate to different locations according to the quality of the cathode copper plate. For the embodiment A kind of robot unit type transfer module can place cathode copper plates in different positions according to different quality classifications. For the chain unit transfer module in the second embodiment, cathode copper plates that do not meet the quality requirements are rejected and separated in the later stage. Perform peeling.
上述实施例是对本发明的进一步阐述和说明,以便于理解,并不是对本发明的任何限制,凡在本发明的精神和原则之内所作的任何修改、等同替换和改进等,均应包含在本发明的保护范围之内。The above embodiments are further elaborations and explanations of the present invention to facilitate understanding, and are not intended to limit the present invention in any way. Any modifications, equivalent substitutions, and improvements made within the spirit and principles of the present invention shall be included in the present invention. within the scope of protection of the invention.

Claims (8)

  1. 一种基于线阵相机的铜表面缺陷检测方法,其特征在于,包括:A copper surface defect detection method based on a line array camera, which is characterized by including:
    S1、线阵相机采集并合成包括阴极铜板正面和反面的表面图像;S1. The line array camera collects and synthesizes surface images including the front and back sides of the cathode copper plate;
    S2、对采集到的阴极铜板表面图像进行预处理分割成若干个图像块;S2. Preprocess the collected surface image of the cathode copper plate and divide it into several image blocks;
    S3、经过深度学习训练后的铜粒子检测系统对预处理后的图像块进行缺陷识别,并将每个图像块的识别结果合成为阴极铜板表面缺陷分布图;S3. The copper particle detection system trained by deep learning performs defect identification on the preprocessed image blocks, and synthesizes the identification results of each image block into a surface defect distribution map of the cathode copper plate;
    S4、根据阴极铜品质要求设定缺陷参数阈值,并以阴极铜板表面缺陷分布图对阴极铜板进行分类。S4. Set the defect parameter threshold according to the cathode copper quality requirements, and classify the cathode copper plates based on the surface defect distribution map of the cathode copper plates.
  2. 根据权利要求1所述的一种基于线阵相机的铜表面缺陷检测方法,其特征在于,所述S2中对阴极铜板表面图像进行预处理的过程包括:识别并截取铜板所在区域图像;将图像分割成m行n列相同大小的图像块;对每个图像块进行高斯滤波得到的mn个预处理后的图像块。A copper surface defect detection method based on a line array camera according to claim 1, characterized in that the process of preprocessing the surface image of the cathode copper plate in S2 includes: identifying and intercepting the image of the area where the copper plate is located; Divide it into m rows and n columns of image blocks of the same size; perform Gaussian filtering on each image block to obtain mn preprocessed image blocks.
  3. 根据权利要求1或2所述的一种基于线阵相机的铜表面缺陷检测方法,其特征在于,所述S3中对铜粒子检测系统的深度学习训练过程包括:A copper surface defect detection method based on a line array camera according to claim 1 or 2, characterized in that the deep learning training process of the copper particle detection system in S3 includes:
    S31、对已有缺陷检测结果的预处理后的图像块进行缺陷标注生成标注图像,并共同组成铜粒子缺陷数据集;S31. Perform defect annotation on the preprocessed image blocks with existing defect detection results to generate annotation images, and together form a copper particle defect data set;
    S32、以卷积神经网络模块和金字塔池化模块构建铜粒子检测系统;S32. Construct a copper particle detection system using the convolutional neural network module and the pyramid pooling module;
    S33、以铜粒子缺陷数据集重复对铜粒子检测系统进行图像识别训练;S33. Repeat the image recognition training of the copper particle detection system using the copper particle defect data set;
    S34、当铜粒子检测系统的铜粒子识别像素精度达到规定值后完成训练。S34. The training is completed when the copper particle identification pixel accuracy of the copper particle detection system reaches the specified value.
  4. 根据权利要求3所述的一种基于线阵相机的铜表面缺陷检测方法,其特征在于,所述铜粒子缺陷数据集中标注图像的标注信息包括有缺陷种类、缺陷形状和尺寸、铜粒子颜色深度和粒子聚集度。A copper surface defect detection method based on a line array camera according to claim 3, characterized in that the annotation information of the annotated image in the copper particle defect data set includes defect type, defect shape and size, copper particle color depth and particle aggregation.
  5. 根据权利要求3所述的一种基于线阵相机的铜表面缺陷检测方法,其特征在于,图像识别训练的过程包括:A copper surface defect detection method based on a line array camera according to claim 3, characterized in that the image recognition training process includes:
    从铜粒子缺陷数据集中选择一组包含输入数据和理论输出值的样本;Select a set of samples from the copper particle defect data set containing input data and theoretical output values;
    将输入数据输入铜粒子检测系统得到对应的实际输出值;Input the input data into the copper particle detection system to obtain the corresponding actual output value;
    比较计算理论输出值和实际输出值的差值;Compare and calculate the difference between the theoretical output value and the actual output value;
    按极小化误差的方法调整铜粒子检测系统中的参数,直到差值收敛。Adjust the parameters in the copper particle detection system in a manner that minimizes the error until the difference converges.
  6. 根据权利要求1或2或4或5所述的一种基于线阵相机的铜表面缺陷检测方法,其特征在于,所述S4中,对于阴极铜板表面缺陷分布图,通过提前设定的缺陷参数阈值分离出缺陷部分图像;提取缺陷部分图像的区域特征,按区域内的像素计算缺陷的基本参数。A copper surface defect detection method based on a line array camera according to claim 1 or 2 or 4 or 5, characterized in that in said S4, for the surface defect distribution map of the cathode copper plate, the defect parameters are set in advance The threshold separates the defective part of the image; extracts the regional features of the defective part of the image, and calculates the basic parameters of the defect based on the pixels in the area.
  7. 一种基于线阵相机的铜表面缺陷检测装置,适用于如权利要求1-6任一项所述的一种方法,其特征在于,包括:A copper surface defect detection device based on a line array camera, suitable for a method according to any one of claims 1 to 6, characterized in that it includes:
    传送模块,用于传输阴极铜板;Transfer module, used to transfer cathode copper plates;
    线阵相机采集模块,包括线阵相机和光源,用于采集阴极铜板表面图像;Line array camera acquisition module, including line array camera and light source, used to collect cathode copper plate surface images;
    工控机,用于接收采集到的阴极铜板表面图像数据并进行缺陷识别和分析;Industrial computer, used to receive the collected surface image data of the cathode copper plate and conduct defect identification and analysis;
    控制模块,用于接收工控机的识别和分析结果并控制整个装置的工作。The control module is used to receive the identification and analysis results of the industrial computer and control the work of the entire device.
  8. 根据权利要求7所述的一种基于线阵相机的铜表面缺陷检测装置,其特征在于,所述线阵相机采集模块中按照阴极铜板传输的方向依次设置光源和线阵相机;所述光源以一定的入射角照射到阴极铜板表面,所述线阵相机镜头正对的方向垂直于阴极铜板表面。A copper surface defect detection device based on a line array camera according to claim 7, characterized in that the line array camera acquisition module is provided with a light source and a line array camera in sequence according to the direction of transmission of the cathode copper plate; the light source is A certain incident angle illuminates the surface of the cathode copper plate, and the direction facing the lens of the line array camera is perpendicular to the surface of the cathode copper plate.
PCT/CN2022/130842 2022-03-09 2022-11-09 Linear array camera-based copper surface defect detection method and apparatus WO2023168972A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210225275.XA CN114638797A (en) 2022-03-09 2022-03-09 Method and device for detecting copper surface defects based on linear array camera
CN202210225275.X 2022-03-09

Publications (1)

Publication Number Publication Date
WO2023168972A1 true WO2023168972A1 (en) 2023-09-14

Family

ID=81947408

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/130842 WO2023168972A1 (en) 2022-03-09 2022-11-09 Linear array camera-based copper surface defect detection method and apparatus

Country Status (2)

Country Link
CN (1) CN114638797A (en)
WO (1) WO2023168972A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117152161A (en) * 2023-11-01 2023-12-01 山东迪特智联信息科技有限责任公司 Shaving board quality detection method and system based on image recognition
CN117218097A (en) * 2023-09-23 2023-12-12 宁波江北骏欣密封件有限公司 Method and device for detecting surface defects of shaft sleeve type silk screen gasket part
CN117237310A (en) * 2023-09-26 2023-12-15 日照鼎立钢构股份有限公司 Image recognition-based steel structure defect detection method and system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114638797A (en) * 2022-03-09 2022-06-17 三门三友科技股份有限公司 Method and device for detecting copper surface defects based on linear array camera
CN115343293A (en) * 2022-08-10 2022-11-15 北京东土科技股份有限公司 Negative plate detection control system and production line based on machine vision

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112964732A (en) * 2021-02-04 2021-06-15 科大智能物联技术有限公司 Spinning cake defect visual detection system and method based on deep learning
JP2021157735A (en) * 2020-03-30 2021-10-07 三菱ケミカル株式会社 Image identification system, image identification device, program, and trained model
CN114638797A (en) * 2022-03-09 2022-06-17 三门三友科技股份有限公司 Method and device for detecting copper surface defects based on linear array camera

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2021157735A (en) * 2020-03-30 2021-10-07 三菱ケミカル株式会社 Image identification system, image identification device, program, and trained model
CN112964732A (en) * 2021-02-04 2021-06-15 科大智能物联技术有限公司 Spinning cake defect visual detection system and method based on deep learning
CN114638797A (en) * 2022-03-09 2022-06-17 三门三友科技股份有限公司 Method and device for detecting copper surface defects based on linear array camera

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
MASCI JONATHAN; MEIER UELI; FRICOUT GABRIEL; SCHMIDHUBER JURGEN: "Multi-scale pyramidal pooling network for generic steel defect classification", THE 2013 INTERNATIONAL JOINT CONFERENCE ON NEURAL NETWORKS (IJCNN), IEEE, 4 August 2013 (2013-08-04), pages 1 - 8, XP032542082, ISSN: 2161-4393, DOI: 10.1109/IJCNN.2013.6706920 *
MEI, SHUANG ET AL.: "An Unsupervised-Learning-Based Approach for Automated Defect Inspection on Textured Surfaces", IEEE, vol. 67, no. 6, 30 June 2018 (2018-06-30), XP055863485, DOI: 10.1109/TIM.2018.2795178 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117218097A (en) * 2023-09-23 2023-12-12 宁波江北骏欣密封件有限公司 Method and device for detecting surface defects of shaft sleeve type silk screen gasket part
CN117218097B (en) * 2023-09-23 2024-04-12 宁波江北骏欣密封件有限公司 Method and device for detecting surface defects of shaft sleeve type silk screen gasket part
CN117237310A (en) * 2023-09-26 2023-12-15 日照鼎立钢构股份有限公司 Image recognition-based steel structure defect detection method and system
CN117237310B (en) * 2023-09-26 2024-03-12 日照鼎立钢构股份有限公司 Image recognition-based steel structure defect detection method and system
CN117152161A (en) * 2023-11-01 2023-12-01 山东迪特智联信息科技有限责任公司 Shaving board quality detection method and system based on image recognition
CN117152161B (en) * 2023-11-01 2024-03-01 山东迪特智联信息科技有限责任公司 Shaving board quality detection method and system based on image recognition

Also Published As

Publication number Publication date
CN114638797A (en) 2022-06-17

Similar Documents

Publication Publication Date Title
WO2023168972A1 (en) Linear array camera-based copper surface defect detection method and apparatus
CN104992449B (en) Information identification and surface defect online test method based on machine vision
CN107966454A (en) A kind of end plug defect detecting device and detection method based on FPGA
CN110490842B (en) Strip steel surface defect detection method based on deep learning
CN110490866B (en) Metal additive forming size real-time prediction method based on depth feature fusion
CN111275679A (en) Solar cell defect detection system and method based on image
CN105044122A (en) Copper part surface defect visual inspection system and inspection method based on semi-supervised learning model
WO2023134286A1 (en) Online automatic quality testing and classification method for cathode copper
WO2023168984A1 (en) Area-array camera-based quality inspection method and system for cathode copper
CN112184648A (en) Piston surface defect detection method and system based on deep learning
CN104198497A (en) Surface defect detection method based on visual saliency map and support vector machine
CN113222938A (en) Chip defect detection method and system and computer readable storage medium
CN106645180A (en) Method for checking defects of substrate glass, field terminal and server
CN113688817A (en) Instrument identification method and system for automatic inspection
CN116071315A (en) Product visual defect detection method and system based on machine vision
CN114881987A (en) Improved YOLOv 5-based hot-pressing light guide plate defect visual detection method
CN117152161B (en) Shaving board quality detection method and system based on image recognition
CN116091506B (en) Machine vision defect quality inspection method based on YOLOV5
CN113962929A (en) Photovoltaic cell assembly defect detection method and system and photovoltaic cell assembly production line
CN113820322B (en) Detection device and method for appearance quality of seeds
CN113642473A (en) Mining coal machine state identification method based on computer vision
CN108593660A (en) A kind of punching press aluminium sheet automatic defect detecting device and method
CN113487570A (en) High-temperature continuous casting billet surface defect detection method based on improved yolov5x network model
CN117409332B (en) Long wood shaving appearance data detection system and method based on big data processing
CN112257514B (en) Infrared vision intelligent detection shooting method for equipment fault inspection

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 22930595

Country of ref document: EP

Kind code of ref document: A1