Copper foil defect detection method, device and electronic equipment based on characteristic spectrum
Through the copper foil defect detection method based on characteristic spectrum, HSV and RGB multi-channel detection algorithms are used to solve the problem of low copper foil detection efficiency, achieve efficient and accurate copper foil anomaly detection and processing, and improve the copper plating detection rate. .
Patent Information
- Application Number
- CN202210156040.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-21
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2042-02-21
AI Technical Summary
The detection efficiency of copper foil in the existing technology is low, manual detection is difficult to keep up with the production speed of the copper foil processing machine, and appearance abnormality detection has problems of high subjectivity and small difference, resulting in low detection efficiency and low accuracy.
A copper foil defect detection method based on characteristic spectrum is used to obtain true color pictures through a camera. HSV and RGB multi-channel detection algorithms are used, combined with contour and abnormal point detection algorithms, to determine the quality indicators and abnormal information of the copper foil, and generate control instructions to indicate Copper foil processing machines perform different treatments.
It improves the efficiency and accuracy of copper foil abnormality detection, achieves effective control of copper foils of different qualities, improves the detection rate of copper plating and color abnormalities, reaching more than 95%, and reduces the subjectivity of manual detection.
Smart Images

Figure CN114466183B
Abstract
Description
Technical Field
[0001] The present application relates to the field of image processing, and in particular to a copper foil defect detection method, device and electronic equipment based on characteristic spectrum. Background Art
[0002] With the rapid development of the electronic information industry, the demand for copper foil is increasing. Copper foil is an important material in the manufacture of circuit boards and lithium-ion batteries. In addition, the quality of copper foil is directly related to the service life and performance of the product. It can be seen that the quality inspection of copper foil is very important.
[0003] At present, the quality inspection of copper foil is mainly achieved through the appearance inspection of copper foil. The fewer holes and other abnormalities there are on the appearance of copper foil, the better the quality of copper foil. Among them, the appearance inspection of copper foil can be achieved through manual inspection.
[0004] However, manual inspection on copper foil processing machines has the problem of low inspection efficiency. Summary of the invention
[0005] The present application provides a copper foil defect detection method, device and electronic equipment based on characteristic spectrum, so as to solve the problem of low detection efficiency in the prior art.
[0006] In a first aspect, the present application provides a copper foil defect detection method based on characteristic spectrum, comprising:
[0007] Get a sample picture of the copper foil;
[0008] According to the sampling image and the outlier detection algorithm, the quality index and outlier information of the copper foil are detected and obtained;
[0009] According to the quality index of the copper foil and the abnormal point information, a control instruction is generated, wherein the control instruction is used to instruct the copper foil processing machine to perform different processing on the copper foils of different qualities. Optionally, determining the quality index of the copper foil according to the sampling picture includes:
[0010] Using a contour detection algorithm, cropping the sampled image of the copper foil to obtain a target image of the copper foil;
[0011] Using an abnormal point detection algorithm with different abnormalities, detecting abnormal point information of the copper foil from the target image of the copper foil;
[0012] The quality index of the copper foil is determined according to the abnormal point information of the copper foil.
[0013] Optionally, the using a target detection algorithm to detect abnormal point information of the copper foil from the target image of the copper foil includes:
[0014] According to the HSV color channel and the RGB color channel, obtain the color images of the six channels of the target image;
[0015] Using an abnormal point detection algorithm with different abnormalities, detecting from each of the color images at least one abnormal point of the copper foil corresponding to the abnormal point detection algorithm;
[0016] The outlier points of the plurality of color images of the target image are merged to obtain outlier point information of the target image at the outlier.
[0017] Optionally, the outlier detection algorithm determines the outlier of each color image by performing Prewitt edge detection on the logarithm of the illumination of the color image.
[0018] Optionally, determining the quality index of the copper foil according to the abnormal point information of the copper foil includes:
[0019] Accumulating the areas of each abnormal point in the abnormal point information to obtain the abnormal area of the copper foil;
[0020] Determining the abnormal density of the copper foil according to the abnormal area and the area of the copper foil;
[0021] The quality index of the copper foil is determined according to the abnormal density and the number of abnormal points of the copper foil.
[0022] Optionally, obtaining a sample picture of the copper foil includes:
[0023] According to a preset sampling frequency, sampling from the copper foil processing machine obtains at least one copper foil image of each of the copper foils;
[0024] Using a contour detection algorithm, determining the position information of the copper foil in each of the copper foil images;
[0025] According to the position information of the copper foil, one picture is selected from at least one of the copper foil pictures of the copper foil as a sampling picture of the copper foil.
[0026] In a second aspect, the present application provides a copper foil defect detection device based on characteristic spectrum, comprising:
[0027] An acquisition module is used to acquire a sample image of the copper foil;
[0028] A processing module is used to detect the quality index and abnormal point information of the copper foil according to the sampling image and the abnormal point detection algorithm; and generate a control instruction according to the quality index and the abnormal point information of the copper foil, wherein the control instruction is used to instruct the copper foil processing machine to perform different processing on the copper foil of different qualities.
[0029] Optionally, the processing module is specifically used to:
[0030] Using a contour detection algorithm, cropping the sampled image of the copper foil to obtain a target image of the copper foil;
[0031] Using an abnormal point detection algorithm with different abnormalities, detecting abnormal point information of the copper foil from the target image of the copper foil;
[0032] The quality index of the copper foil is determined according to the abnormal point information of the copper foil.
[0033] Optionally, the processing module is specifically used to:
[0034] According to the HSV color channel and the RGB color channel, obtain the color images of the six channels of the target image;
[0035] Using an abnormal point detection algorithm with different abnormalities, detecting from each of the color images at least one abnormal point of the copper foil corresponding to the abnormal point detection algorithm;
[0036] The outlier points of the plurality of color images of the target image are merged to obtain outlier point information of the target image at the outlier.
[0037] Optionally, the outlier detection algorithm determines the outlier of each color image by performing Prewitt edge detection on the logarithm of the illumination of the color image.
[0038] Optionally, the processing module is specifically used to:
[0039] Accumulating the areas of each abnormal point in the abnormal point information to obtain the abnormal area of the copper foil;
[0040] Determining the abnormal density of the copper foil according to the abnormal area and the area of the copper foil;
[0041] The quality index of the copper foil is determined according to the abnormal density and the number of abnormal points of the copper foil.
[0042] Optionally, the acquisition module is specifically used to:
[0043] According to a preset sampling frequency, sampling from the copper foil processing machine obtains at least one copper foil image of each of the copper foils;
[0044] Using a contour detection algorithm, determining the position information of the copper foil in each of the copper foil images;
[0045] According to the position information of the copper foil, one picture is selected from at least one of the copper foil pictures of the copper foil as a sampling picture of the copper foil.
[0046] In a third aspect, the present application provides an electronic device, including: a memory and a processor;
[0047] The memory is used to store a computer program; the processor is used to execute the copper foil defect detection method based on characteristic spectrum in the first aspect and any possible design of the first aspect according to the computer program stored in the memory.
[0048] In a fourth aspect, the present application provides a copper foil defect detection system based on characteristic spectrum, comprising: a copper foil processing machine, a camera for collecting sampled images of the copper foil, and an electronic device as in the third aspect and any possible design of the third aspect;
[0049] The copper foil processing machine is used to transfer copper foils of different grades to different packaging areas according to control instructions.
[0050] In a fifth aspect, the present application provides a readable storage medium having a computer program stored therein. When at least one processor of an electronic device executes the computer program, the electronic device executes the copper foil defect detection method based on characteristic spectrum in the first aspect and any possible design of the first aspect.
[0051] In a sixth aspect, the present application provides a computer program product, comprising a computer program. When at least one processor of an electronic device executes the computer program, the electronic device executes the copper foil defect detection method based on characteristic spectrum in the first aspect and any possible design of the first aspect.
[0052] The copper foil defect detection method based on characteristic spectrum provided by the present application obtains a sampled picture of each copper foil taken by a camera from a camera; inputs the sampled picture into an abnormal point detection algorithm; implements quality detection of the copper foil through the abnormal point detection algorithm, determines whether the surface of the copper foil includes abnormal points, and thus determines the quality index and abnormal point information of the copper foil; generates control instructions according to the quality index and abnormal point information of the copper foil, and the control instructions are used to instruct a copper foil processing machine to perform different processing on copper foils of different qualities, thereby improving the abnormality detection efficiency of the copper foil and improving the processing efficiency of abnormal copper foil. BRIEF DESCRIPTION OF THE DRAWINGS
[0053] In order to more clearly illustrate the technical solutions in the present application or the prior art, a brief introduction will be given below to the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0054] Figure 1 A schematic diagram of the structure of a copper foil detection component provided in one embodiment of the present application;
[0055] Figure 2 A schematic diagram of a copper foil image acquisition unit structure provided in one embodiment of the present application;
[0056] Figure 3 A color channel schematic diagram provided in one embodiment of the present application;
[0057] Figure 4 A schematic diagram of a defective copper foil image provided in one embodiment of the present application;
[0058] Figure 5 A schematic diagram of a black and white channel provided in an embodiment of the present application;
[0059] Figure 6 A schematic structural diagram of a copper foil defect detection device based on characteristic spectrum provided in one embodiment of the present application;
[0060] Figure 7 A schematic diagram of the hardware structure of an electronic device provided in one embodiment of the present application;
[0061] Figure 8 A schematic structural diagram of a copper foil defect detection system based on characteristic spectrum provided in one embodiment of the present application. DETAILED DESCRIPTION
[0062] In order to make the purpose, technical solutions and advantages of this application clearer, the technical solutions in this application will be clearly and completely described below in conjunction with the drawings in this application. Obviously, the described embodiments are part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0063] The terms "first", "second", "third", "fourth", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances. For example, without departing from the scope of this document, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as the first information.
[0064] The word "if" as used herein may be interpreted as "when" or "when" or "in response to determining," depending on the context.
[0065] Furthermore, as used herein, the singular forms “a”, “an” and “the” are intended to include the plural forms as well, unless the context indicates otherwise.
[0066] It should be further understood that the terms “comprises” and “includes” indicate the existence of features, steps, operations, elements, components, items, types, and / or groups, but do not exclude the existence, occurrence, or addition of one or more other features, steps, operations, elements, components, items, types, and / or groups.
[0067] The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Thus, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". An exception to this definition will only occur when a combination of elements, functions, steps or operations are inherently mutually exclusive in some manner.
[0068] Copper foil is an important material in the manufacture of circuit boards and lithium-ion batteries. With the rapid development of the electronic information industry, the demand for copper foil is increasing. In addition, the quality of copper foil is directly related to the service life and performance of the product. It can be seen that the quality inspection of copper foil is crucial. The quality inspection of copper foil is mainly achieved through the appearance inspection of copper foil. The fewer holes and other abnormalities on the appearance of copper foil, the better the quality of copper foil. At present, most of the detection of copper foil appearance abnormalities at home and abroad relies on manual inspection. However, the production speed of copper foil on the copper foil processing machine is fast. The speed of the vehicle on the copper foil processing machine can reach 25m / min. Manual inspection is likely to have the problem that the detection speed cannot keep up with the speed of the copper foil processing machine, and there are problems of low efficiency and high labor intensity. In addition, there are many types of appearance abnormalities of copper foil, and the differences between the abnormalities of different copper foils are small, and the distinguishing features are not obvious. There is a high degree of subjectivity when performing this appearance inspection manually. The existence of these situations leads to the problem of low detection efficiency of manual inspection on the copper foil processing machine.
[0069] In the prior art, a traditional black-and-white camera can also be used to obtain a black-and-white picture of the copper foil, and the black-and-white picture can be detected through visual technology. However, for some anomalies that are similar in appearance but different in color, it is often impossible to distinguish them through grayscale differences in black-and-white pictures. Different types of anomalies usually have different effects on the function of the copper foil. Failure to detect anomalies may lead to inaccurate judgments on the functional effects of the copper foil caused by the anomalies. Alternatively, when using color pictures, RGB color pictures have a serious problem of imaging distortion when the light source is stroboscopic. In addition, the prior art also has the problem that the anomalies cannot be classified after detection. For example, the anomalies of blue dot copper plating and black line tailing are usually not accurately distinguished by the prior art.
[0070] In view of the above problems, the present application proposes a copper foil defect detection method based on characteristic spectrum. The present application uses a camera that can shoot true color to shoot copper foil pictures. The acquisition of the true color copper foil picture can effectively solve the problem of missed detection of abnormal color differences in traditional black and white pictures. In addition, the present application uses a high-brightness white light linear light source to fill light near the camera, which ensures the quality of image acquisition and avoids the image distortion problem caused by RGB stroboscopic imaging. In the present application, the camera can collect copper foil pictures including the original copper foil appearance picture under the field of view of the quantitative length camera. After the camera collects the copper foil picture, it can upload the copper foil picture to an electronic device. The electronic device can pre-process the copper foil picture so that the copper foil picture can be segmented into standard graphics. The electronic device can also determine the abnormal classification of the copper foil by comparing it with the standard image. The electronic device can also compare the color by HSV spectral color features to determine the abnormal classification of the copper foil. The present application realizes the detection of copper foil pictures by using a true color camera and a multi-channel (RGB HSV six channels) simultaneous detection algorithm based on holcon. Among them, HSV is closer to people's perception of color than RGB. HSV expresses the hue, brightness and brightness of color very intuitively, which is convenient for color comparison. In the HSV color space, it is easier to track objects of a certain color than RGB, and better distinguish color anomalies and copper plating classification. Therefore, the use of the HSV channel greatly improves the detection rate of color anomalies and copper plating, which can reach more than 95%. Effective control of copper foil on the copper foil processing machine is achieved.
[0071] In addition, in addition to being applicable to the surface inspection of copper foil, the present application can also be applied to the surface inspection of products in industries such as aluminum foil and impregnated glass fiber cloth.
[0072] The technical solution of the present application is described in detail with specific embodiments below. The following specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments.
[0073] Figure 1 FIG. 1 shows a schematic diagram of the structure of a copper foil detection component provided by an embodiment of the present application. The copper foil detection component can be arranged on the copper foil processing machine. The copper foil detection component can be as follows: Figure 1 As shown, it includes an image acquisition unit, an acquisition module, a processing module, an intelligent classification module and a memory. Among them, the image acquisition unit is used to periodically take copper foil pictures. The acquisition module is used to collect copper foil pictures for displaying the appearance of copper foil under the field of view of a quantitative length camera. Specifically, in the periodically taken copper foil pictures, each copper foil can correspond to multiple copper foil pictures. The acquisition module can select a copper foil picture from the multiple copper foil pictures as a sampling picture. The processing module is used to pre-process the collected copper foil pictures and stretch the sampling picture into a standard rectangular picture. Specifically, the processing module can detect the position of the copper foil in the sampling picture by contour detection. The processing module can also cut the sampling picture according to the position of the copper foil to obtain a target picture. The intelligent classification module can identify and classify the abnormalities in the target picture after receiving the target picture. Specifically, the accurate classification of the intelligent classification module can obtain an accurate classification image of the copper foil picture through standard image features. And the color is compared by spectral color features to determine the detection result of the copper foil picture. The spectral color is an HSV spectrum.
[0074] The memory may be connected to the intelligent classification module and store the detection result of the intelligent classification module. The detection result may include a classification result. The classification result may include a classification result of whether it is a qualified product and a classification result of an abnormal type. The memory may also be connected to an image acquisition unit to acquire and store a copper foil image.
[0075] like Figure 2 As shown, the image acquisition unit may include a camera and a fill light. The camera may be used to take pictures of the copper foil. Since the speed of the copper foil processing machine can reach 25 m / min, the camera may be a high-frequency camera or a motion camera to capture the fast-moving copper foil. The camera may also be a color smart camera for taking true-color pictures of the copper foil. The light source of the fill light is a high-brightness white light linear light source. The fill light is used to illuminate the surface of the copper foil to improve the clarity of the copper foil picture taken by the camera, making the abnormality in the copper foil picture more obvious.
[0076] In addition, the detection component may also include a fixed frame. The fixed frame is arranged on both sides of the copper foil processing machine before winding. The fixed frame is used to fix the camera and the fill light in the image acquisition unit.
[0077] In the present application, the electronic device is used as the execution subject to execute the copper foil defect detection method based on characteristic spectrum of the following embodiment. Specifically, the execution subject can be a hardware device of the electronic device, or a software application that implements the following embodiment in the electronic device, or a computer-readable storage medium installed with the software application that implements the following embodiment, or a code that implements the software application of the following embodiment.
[0078] exist Figure 1 and Figure 2 Based on the embodiment shown, with the electronic device as the execution subject, the method of this embodiment may include the following steps:
[0079] S101. Obtain a sampling picture of the copper foil.
[0080] In this embodiment, the electronic device can obtain a sampled image of each copper foil captured by the camera from the camera. Alternatively, when the camera has a high shooting frequency, the camera can also obtain multiple copper foil images of each copper foil. The electronic device can select a copper foil image from the multiple copper foil images as the sampled image.
[0081] In one example, the process of obtaining the sampled image may include the following steps:
[0082] Step 1: The electronic device can obtain at least one copper foil image of each copper foil by sampling from the copper foil processing machine according to a preset sampling frequency by a camera. Since the copper foil moves on the copper foil processing machine when the camera is shooting, the position of the copper foil in different copper foil images is different.
[0083] Step 2: The electronic device may use a contour detection algorithm to determine the position information of the copper foil in each copper foil image. Alternatively, the electronic device may also use a target detection algorithm to determine the position information of the copper foil in each copper foil image. The contour detection algorithm or the target detection algorithm may be an existing algorithm or an improved algorithm.
[0084] Step 3. The electronic device can select a picture from at least one copper foil picture of the copper foil as a sampling picture of the copper foil based on the position information of the copper foil. For example, when a copper foil picture usually includes only one copper foil, the electronic device can obtain multiple consecutive copper foil pictures with the same target copper foil by deleting the copper foil pictures containing multiple copper foils. The electronic device can compare these copper foil pictures and select the copper foil picture with the highest clarity. For another example, when a copper foil picture includes multiple copper foils, the electronic device can use the copper foil whose position error with the center point of the copper foil picture is less than a preset value as the target copper foil in the copper foil picture. The electronic device can use the copper foil picture with the target copper foil as a sampling picture.
[0085] S102: Detect and obtain the quality index and abnormal point information of the copper foil according to the sampled image and the abnormal point detection algorithm.
[0086] In this embodiment, after acquiring the sampled image, the electronic device can input the sampled image into the outlier detection algorithm. The electronic device can implement the quality detection of the copper foil through the outlier detection algorithm, determine whether the copper foil surface includes outliers, and thus determine the quality index and outlier information of the copper foil.
[0087] In one example, the specific process of the electronic device obtaining the quality index and abnormal point information of the copper foil according to the sampled image detection may include the following steps:
[0088] Step 1: The electronic device may use a contour detection algorithm to determine the position information of the copper foil in the sampled image. The electronic device may crop the target image of the copper foil from the sampled image according to the position information.
[0089] Step 2: The electronic device can use anomaly detection algorithms with different anomalies to detect and obtain the anomaly information of the copper foil from the target image of the copper foil.
[0090] In this step, the electronic device can obtain three color images according to the three RGB channels of the target image. The electronic device can also convert the RGB target image into a target image in HSV format. The electronic device can split the target image in HSV format to obtain three color images of three channels. The six color images of the six channels can be as follows: Figure 3 As shown. Among them, Figure 3 (a) is the color image of the R channel, Figure 3 (b) is the color image of the G channel. Figure 3 (c) is the color image of the B channel, Figure 3 (d) is the color image of the H channel, Figure 3 (e) is the color image of the S channel, Figure 3 (f) is the color image of the V channel.
[0091] A variety of outlier detection algorithms may be preset in the electronic device. Each outlier detection algorithm may be a detection algorithm generated for one or more anomalies. For example, the outlier detection algorithm may be a trained deep learning algorithm for detecting holes on the surface of the copper foil. For another example, the outlier detection algorithm may be an algorithm based on color anomaly detection for detecting areas where the coating on the surface of the copper foil has fallen off. For another example, the outlier detection algorithm may be a convex point detection algorithm for detecting concave or convex points on the surface of the copper foil. The electronic device may input each color image into each outlier detection algorithm. The electronic device may obtain the detection result of each color image for each anomaly. The detection result includes at least one outlier.
[0092] The electronic device can summarize the detection results of multiple color images input into the same outlier detection algorithm to obtain the outlier information of the anomaly. The outlier merging process includes adding new outliers to the outlier information and merging outliers at the same position into one outlier. Since the outlier is usually intuitively represented by the area on the copper foil surface, when merging multiple outliers at the same position, the electronic device can select the outlier with the largest area as the outlier at that position. Alternatively, the electronic device can merge the two outliers into one outlier when there is an overlapping area between the two outliers.
[0093] Specifically, the outlier detection algorithm may be to perform Prewitt edge detection on the logarithm of the illumination of the color image to determine the outliers of each color image. The calculation formula of the Prewitt edge detection method on the logarithm of the illumination may be:
[0094] A=(log(W(x+1,y-1))+log(W(x+1,y))+log(W(x+1,y+1)))-(log(W(x-1,y-1))+log(W(x-1,y))+log(W(x-1,y+1)));
[0095] B=(log(W(x-1,y+1))+log(W(x,y+1))+log(W(x+1,y+1)))-(log(W(x-1,y-1))+log(W(x,y-1))+log(W(x+1,y-1)));
[0096] C(x,y)=|A|+|B|.
[0097] Specifically, Figure 4 (a) shows a copper foil image with scratch defects and its binary image. Figure 4 (b) is a picture of copper foil with improper cutting defects and its binary image. Figure 4(c) is a copper foil image containing stain-type defects and its binary image. In response to the change in the average light intensity of the production environment, in this application, the electronic device adopts a normalized internal standard grayscale correction algorithm. The algorithm first quantifies the detection target using the local background of the copper foil image as the internal standard. Thereafter, the electronic device uses a fixed grayscale level to normalize the copper foil image. The electronic device can correct images under different light intensities to the same state, thereby making abnormality judgments. The use of this method makes it possible for changes in the average light intensity to no longer affect the detection results, and can adapt to the situation where the average light intensity at the industrial inspection site is unstable. In addition, in response to the problem of uneven light intensity in various parts of the copper foil, this application also uses the logarithm of light (optical density) for Prewitt edge detection when using edge detection to segment the image. The regional boundaries detected by this method are independent of the light intensity of each part of the object to be inspected.
[0098] In order to avoid floating-point operations and improve processing speed, logarithmic operations use a table lookup method to determine their results.
[0099] The electronic device can calculate the three values of A, B, and C according to the above formula. The electronic device can perform binarization processing on the image according to the threshold value, thereby obtaining a more ideal detection effect. Among them, the threshold value can be determined based on experience. The Prewitt edge detection method for the logarithm of the illumination can improve the accuracy of image segmentation, thereby improving the effect of copper foil defect detection.
[0100] Step 3, the electronic device can determine the quality index of the copper foil based on the abnormal point information of the copper foil. The quality index is used to indicate the overall quality of the copper foil. For example, when the copper foil includes only one abnormality, the electronic device can accumulate the area of each abnormal point in the abnormal point information of the abnormality to obtain the abnormal area of the copper foil. The electronic device can determine the abnormal density of the copper foil based on the ratio of the abnormal area to the area of the copper foil. The electronic device can determine the quality index of the copper foil based on the weighted sum of the abnormal density and the number of abnormal points of the copper foil. Among them, the weights of the abnormal density and the number of abnormal points can be determined based on experience. For another example, when the copper foil includes only multiple abnormalities, the electronic device can calculate the quality index of each abnormality separately. The electronic device can use the average of the quality index of each abnormality as the final quality index.
[0101] S103, generating a control instruction according to the quality index and abnormal point information of the copper foil, wherein the control instruction is used to instruct the copper foil processing machine to perform different processing on the copper foils of different qualities.
[0102] In this embodiment, the electronic device can determine whether the copper foil is a qualified product based on the quality index of the copper foil. For example, when the quality index is less than a first threshold, the copper foil can be a qualified product. When the quality index is greater than or equal to the first threshold, the copper foil is a non-qualified product. The first threshold can be determined based on an empirical value. When the copper foil is a qualified product, the electronic device can generate a control instruction. The control instruction can instruct the copper foil processing machine to continue to reel the copper foil.
[0103] When the copper foil is a defective product, the copper foil usually has different processing methods for different abnormalities. Therefore, the electronic device can determine the type of abnormality that occurs in the copper foil based on the abnormal point information of the copper foil. When there is only one abnormality in the copper foil, the electronic device can determine that the copper foil belongs to this type of abnormality. When there are multiple abnormalities in the copper foil, the electronic device can determine that the abnormality corresponding to the largest quality index is the type of abnormality of the copper foil based on the quality index of each abnormality. The largest quality index of this type of abnormality indicates that this type of abnormality occurs most frequently and has the largest area in the copper foil.
[0104] The electronic device can transport the copper foil to different packaging ports for packaging according to the abnormal type of the copper foil, so as to uniformly handle the defective products of this type.
[0105] In one example, the electronic device can also record the abnormal information to facilitate subsequent analysis of the abnormality of the copper foil. For example, after statistics, the main abnormalities of the copper foil of the copper foil processing machine can be determined based on the statistical results. The management personnel can optimize the copper foil processing machine based on the abnormality to improve the qualified rate of the copper foil.
[0106] The copper foil defect detection method based on characteristic spectrum provided in the present application can obtain a sampled picture of each copper foil taken by the camera from the camera. The electronic device can input the sampled picture into the abnormal point detection algorithm. The electronic device can implement the quality detection of the copper foil through the abnormal point detection algorithm, determine whether the surface of the copper foil includes abnormal points, and thus determine the quality index and abnormal point information of the copper foil. The electronic device can generate a control instruction based on the quality index and abnormal point information of the copper foil, and the control instruction is used to instruct the copper foil processing machine to perform different treatments on copper foils of different qualities. In the present application, by obtaining a sampled picture of the copper foil and detecting the copper foil through the sampled picture, the abnormal detection efficiency of the copper foil is improved, and the processing efficiency of abnormal copper foil is improved.
[0107] On the basis of the above embodiments, this embodiment can also obtain black and white pictures taken by a black and white camera and copper foil pictures taken by a color camera. Figure 5 shown.
[0108] The electronic device can use the black and white image and the copper foil image to detect the abnormality on the copper foil surface. In the following embodiment, the detection rate and detection accuracy of copper plating abnormality are compared, and the detection results of three groups of tests can be shown in Table 1.
[0109] Table 1
[0110] The copper foil of group 1 includes 24 copper platings. The experimental data shows that 25 copper platings were detected in the color image. After manual review, 24 of the 25 copper platings were correctly judged and 1 was wrong. Therefore, the copper plating detection rate is 100% and the detection accuracy rate is 96%. 45 copper platings were detected in the black and white image. After manual review, only 3 of them were correctly detected. Therefore, the copper plating detection rate is 12.5% and the copper plating accuracy rate is 6.67%.
[0111] The copper foil of group 2 includes 15 copper platings. The experimental data shows that 15 copper platings were detected in the color image. After manual review, the 15 copper platings were all judged correctly. Therefore, the detection rate of copper plating is 100%, and the detection accuracy is 100%. 38 copper platings were detected in the black and white image. After manual review, only 5 of them were detected correctly. Therefore, the copper plating detection rate is 33.3%, and the copper plating accuracy rate is 13.16%.
[0112] The copper foil of group 3 includes 13 copper platings. The experimental data shows that 13 copper platings were detected in the color image, and after manual review, the 13 copper platings were all judged correctly. Therefore, the detection rate of copper plating is 100%, and the detection accuracy is 100%. 52 copper platings were detected in the black and white image. After manual review, only 4 of them were detected correctly. Therefore, the copper plating detection rate is 30.77%, and the copper plating accuracy rate is 7.67%.
[0113] Through the above comparison, it can be found that the copper foil image obtained by the present application after supplementary lighting with a high-brightness white light linear light source is of high quality. In addition, the accuracy of abnormal copper foil detection achieved by color comparison using HSV spectral color features is high. The present application adopts a color smart camera detection solution, using multi-channel simultaneous detection, which greatly improves the detection rate of color anomalies and copper plating, reaching more than 95%, and can effectively realize the control of the copper foil copper foil processing machine.
[0114] Figure 6 FIG. 1 shows a schematic diagram of the structure of a copper foil defect detection device based on characteristic spectrum provided by an embodiment of the present application. Figure 6 As shown, the copper foil defect detection device 10 based on characteristic spectrum of this embodiment is used to implement the operation corresponding to the electronic device in any of the above method embodiments. The copper foil defect detection device 10 based on characteristic spectrum of this embodiment includes:
[0115] The acquisition module 11 is used to acquire a sample image of the copper foil.
[0116] The processing module 12 is used to detect the quality index and abnormal point information of the copper foil according to the sampling image and the abnormal point detection algorithm; and generate a control instruction according to the quality index and abnormal point information of the copper foil, and the control instruction is used to instruct the copper foil processing machine to perform different processing on copper foils of different qualities.
[0117] In one example, the processing module 12 is specifically configured to:
[0118] Use the contour detection algorithm to crop the target image of the copper foil from the sampled image of the copper foil;
[0119] Use different abnormal point detection algorithms to detect abnormal point information of copper foil from the target image of copper foil;
[0120] According to the abnormal point information of copper foil, the quality index of copper foil is determined.
[0121] In one example, the processing module 12 is specifically configured to:
[0122] According to the color channel, multiple color images of the target image are obtained;
[0123] Using anomaly detection algorithms with different anomalies, at least one anomaly point of the copper foil corresponding to the anomaly detection algorithm is detected from each color image;
[0124] Merge the outliers of multiple color images of the target image to obtain the outlier information of the target image.
[0125] In one example, the processing module 12 is specifically configured to:
[0126] Accumulate the areas of each abnormal point in the abnormal point information to obtain the abnormal area of the copper foil;
[0127] Determine the abnormal density of the copper foil based on the abnormal area and the area of the copper foil;
[0128] The quality index of the copper foil is determined based on the abnormal density and the number of abnormal points of the copper foil.
[0129] In one example, the acquisition module 11 is specifically used for:
[0130] According to the preset sampling frequency, at least one copper foil image of each copper foil is sampled from the copper foil processing machine.
[0131] Use contour detection algorithm to determine the position information of copper foil in each copper foil image.
[0132] According to the position information of the copper foil, one picture is selected from at least one copper foil picture of the copper foil as a sampling picture of the copper foil.
[0133] The copper foil defect detection device 10 based on characteristic spectrum provided in the embodiment of the present application can execute the above method embodiment. Its specific implementation principle and technical effects can be found in the above method embodiment, which will not be described in detail in this embodiment.
[0134] Figure 7 FIG. 1 shows a hardware structure diagram of an electronic device provided in an embodiment of the present application. Figure 7 As shown, the electronic device 20 is used to implement the operations corresponding to the electronic device in any of the above method embodiments. The electronic device 20 of this embodiment may include: a memory 21, a processor 22 and a communication interface 24.
[0135] The memory 21 is used to store computer programs. The memory 21 may include a high-speed random access memory (RAM), and may also include a non-volatile memory (NVM), such as at least one disk memory, and may also be a USB flash drive, a mobile hard disk, a read-only memory, a disk, or an optical disk.
[0136] The processor 22 is used to execute the computer program stored in the memory to implement the copper foil defect detection method based on characteristic spectrum in the above embodiment. For details, please refer to the relevant description in the above method embodiment. The processor 22 can be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), etc. The general-purpose processor can be a microprocessor or the processor can also be any conventional processor, etc. The steps of the method disclosed in the invention can be directly embodied as being executed by a hardware processor, or can be executed by a combination of hardware and software modules in the processor.
[0137] Optionally, the memory 21 may be independent or integrated with the processor 22 .
[0138] When the memory 21 is a device independent of the processor 22, the electronic device 20 may further include a bus 23. The bus 23 is used to connect the memory 21 and the processor 22. The bus 23 may be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus may be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, the bus in the drawings of the present application is not limited to only one bus or one type of bus.
[0139] The communication interface 24 can be connected to the processor 21 through the bus 23. The communication interface 24 can be connected to a camera to obtain the copper foil image taken by the camera. The communication interface 24 can also be connected to a copper foil processor to send control instructions to the copper foil processor.
[0140] The electronic device provided in this embodiment can be used to execute the above-mentioned copper foil defect detection method based on characteristic spectrum. Its implementation method and technical effect are similar, and this embodiment will not be repeated here.
[0141] Figure 8 FIG. 1 is a schematic diagram showing a structure of a copper foil defect detection system based on characteristic spectrum provided in an embodiment of the present application. Figure 8 As shown, the copper foil defect detection system 30 based on characteristic spectrum may include: a copper foil processing machine 31, a camera 32 for collecting sample images of copper foil, and Figure 6 Electronic equipment 33.
[0142] The camera can be fixed on the copper foil processing machine. The copper foil processing machine can include a conveyor belt. The copper foil processing machine can reel in the copper foil so that the copper foil can be conveyed on the conveyor belt of the copper foil processing machine. The conveyor belt can convey the copper foil at a speed of 25m / min. Fixed frames are installed on both sides of the reeling inlet of the copper foil processing machine. The fixed brackets on both sides can be used to fix the camera.
[0143] In one example, a fill light may also be included, which is used to provide a light source for image acquisition.
[0144] The copper foil image acquired by the camera is the original image of the copper foil appearance under the field of view of the quantitative length camera. The camera can upload the copper foil image to the acquisition module in the electronic device. The acquisition module in the electronic device can select a sampled image from at least one copper foil image. The processing module in the electronic device can pre-process the sampled image and cut out the target image including the copper foil in the sampled image. The processing module can also segment the target image to obtain multiple target image fragments of preset length and width. The segmentation can make the target image meet the recognition requirements of the intelligent classification module while ensuring the resolution of the target image. The intelligent classification module in the electronic device is used to detect abnormal points in the target image to realize abnormal judgment and abnormal classification.
[0145] The intelligent classification module in the electronic device can perform color comparison on the target image through the HSV spectrum color feature. The electronic device can determine the area where the copper foil surface has abnormalities through the color comparison, thereby realizing abnormal detection of the copper foil. The abnormal detection can be online detection. The electronic device can upload the detection results to the server in real time. Alternatively, the electronic device can also be connected to a local memory. The electronic device can send the detection results to the memory to realize the storage of the copper foil image and the detection results. The copper foil processor can also transmit copper foils of different grades to different packaging areas according to control instructions.
[0146] The administrator can obtain the stored test results and copper foil images from the storage or from the server, thereby realizing the subsequent statistics and analysis of the test results.
[0147] The electronic device provided in this embodiment can be used to execute the above-mentioned copper foil defect detection method based on characteristic spectrum. Its implementation method and technical effect are similar, and this embodiment will not be repeated here.
[0148] The present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, it is used to implement the methods provided in the various embodiments described above.
[0149] Among them, the computer-readable storage medium can be a computer storage medium or a communication medium. The communication medium includes any medium that is convenient for transmitting a computer program from one place to another. The computer storage medium can be any available medium that can be accessed by a general-purpose or special-purpose computer. For example, a computer-readable storage medium is coupled to a processor so that the processor can read information from the computer-readable storage medium and write information to the computer-readable storage medium. Of course, the computer-readable storage medium can also be a component of the processor. The processor and the computer-readable storage medium can be located in an application-specific integrated circuit (ASIC). In addition, the ASIC can be located in a user device. Of course, the processor and the computer-readable storage medium can also exist in a communication device as discrete components.
[0150] Specifically, the computer-readable storage medium may be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk. The storage medium may be any available medium that can be accessed by a general or special-purpose computer.
[0151] The present application also provides a computer program product, which includes a computer program stored in a computer-readable storage medium. At least one processor of a device can read the computer program from the computer-readable storage medium, and at least one processor executes the computer program so that the device implements the methods provided in the various embodiments described above.
[0152] An embodiment of the present application also provides a chip, which includes a memory and a processor, the memory is used to store computer programs, and the processor is used to call and run the computer programs from the memory, so that a device equipped with the chip executes the methods in various possible implementation modes as described above.
[0153] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of modules is only a logical function division. There may be other division methods in actual implementation. For example, multiple modules can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or modules, which can be electrical, mechanical or other forms.
[0154] Among them, each module can be physically separated, for example, installed in different locations of a device, or installed on different devices, or distributed on multiple network units, or distributed on multiple processors. Each module can also be integrated together, for example, installed in the same device, or integrated in a set of codes. Each module can exist in the form of hardware, or can also exist in the form of software, or can also be implemented in the form of software plus hardware. The present application can select some or all of the modules according to actual needs to achieve the purpose of the present embodiment.
[0155] When each module is implemented as an integrated module in the form of a software function module, it can be stored in a computer-readable storage medium. The above-mentioned software function module is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) or a processor to perform some steps of the methods of each embodiment of the present application.
[0156] It should be understood that, although the various steps in the flowcharts in the above-described embodiments are sequentially displayed according to the indications of the arrows, these steps are not necessarily executed sequentially in the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and they can be executed in other orders. Moreover, at least a portion of the steps in the figure may include a plurality of sub-steps or a plurality of stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and their execution order is not necessarily to be carried out sequentially, but can be executed in turn or alternately with other steps or at least a portion of the sub-steps or stages of other steps.
[0157] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, a person of ordinary skill in the art should understand that the technical solutions described in the above embodiments can still be modified, or some or all of the technical features can be replaced by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A copper foil defect detection method based on characteristic spectrum, characterized in that: The method comprises: Get a sample picture of the copper foil; According to the sampling image and the outlier detection algorithm, the quality index and outlier information of the copper foil are detected and obtained; Generate a control instruction according to the quality index of the copper foil and the abnormal point information, wherein the control instruction is used to instruct a copper foil processing machine to perform different processing on the copper foils of different qualities; The detecting and obtaining the quality index and abnormal point information of the copper foil according to the sampling image and the abnormal point detection algorithm includes: Using a contour detection algorithm, cropping the sampled image of the copper foil to obtain a target image of the copper foil; Using an abnormal point detection algorithm with different abnormalities, detecting abnormal point information of the copper foil from the target image of the copper foil; Determining the quality index of the copper foil according to the abnormal point information of the copper foil; The method of using an abnormal point detection algorithm with different abnormalities to detect abnormal point information of the copper foil from the target image of the copper foil includes: According to the HSV color channel and the RGB color channel, obtain the color images of the six channels of the target image; Using an abnormal point detection algorithm with different abnormalities, detecting from each of the color images at least one abnormal point of the copper foil corresponding to the abnormal point detection algorithm; The outliers of the plurality of color images of the target image using the same outlier detection algorithm are combined to obtain outlier information of the target image at the outlier.
2. The method according to claim 1, characterized in that The outlier detection algorithm specifically determines the outlier of each color image by performing Prewitt edge detection on the logarithm of the illumination of the color image.
3. The method according to claim 1, characterized in that Determining the quality index of the copper foil according to the abnormal point information of the copper foil includes: Accumulating the areas of each abnormal point in the abnormal point information to obtain the abnormal area of the copper foil; Determining the abnormal density of the copper foil according to the abnormal area and the area of the copper foil; The quality index of the copper foil is determined according to the abnormal density and the number of abnormal points of the copper foil.
4. The method according to any one of claims 1 to 3, characterized in that The step of obtaining a sample image of the copper foil includes: According to a preset sampling frequency, sampling from the copper foil processing machine obtains at least one copper foil image of each of the copper foils; Using a contour detection algorithm, determining the position information of the copper foil in each of the copper foil images; According to the position information of the copper foil, one picture is selected from at least one of the copper foil pictures of the copper foil as a sampling picture of the copper foil.
5. A copper foil defect detection device based on characteristic spectrum, characterized in that: The device comprises: An acquisition module is used to acquire a sample image of the copper foil; A processing module, used to detect and obtain the quality index and abnormal point information of the copper foil according to the sampling image and the abnormal point detection algorithm; and generate a control instruction according to the quality index and the abnormal point information of the copper foil, wherein the control instruction is used to instruct a copper foil processing machine to perform different processing on the copper foil of different qualities; The processing module is specifically used for: Using a contour detection algorithm, cropping the sampled image of the copper foil to obtain a target image of the copper foil; Using an abnormal point detection algorithm with different abnormalities, detecting abnormal point information of the copper foil from the target image of the copper foil; Determining the quality index of the copper foil according to the abnormal point information of the copper foil; The method of using an abnormal point detection algorithm with different abnormalities to detect abnormal point information of the copper foil from the target image of the copper foil includes: According to the HSV color channel and the RGB color channel, obtain the color images of the six channels of the target image; Using an abnormal point detection algorithm with different abnormalities, detecting from each of the color images at least one abnormal point of the copper foil corresponding to the abnormal point detection algorithm; The outliers of the plurality of color images of the target image using the same outlier detection algorithm are combined to obtain outlier information of the target image at the outlier.
6. An electronic device, characterized in that: The device comprises: a memory and a processor; The memory is used to store computer programs; the processor is used to implement the copper foil defect detection method based on characteristic spectrum as described in any one of claims 1 to 4 according to the computer programs stored in the memory.
7. A detection system, characterized in that: The system comprises: a copper foil processing machine, a camera for collecting sampling pictures of the copper foil, and the electronic device as claimed in claim 6; The copper foil processing machine is used to transfer copper foils of different grades to different packaging areas according to control instructions.
8. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, it is used to implement the copper foil defect detection method based on characteristic spectrum as described in any one of claims 1 to 4.
9. A computer program product, characterized in that The computer program product comprises a computer program, and when the computer program is executed by a processor, the method for detecting copper foil defects based on characteristic spectrum according to any one of claims 1 to 4 is implemented.
