A method for detecting the number of tab layers based on image recognition

Through image recognition technology, combined with deep learning and traditional pre-processing methods, real-time, efficient and accurate detection of the number of tab layers of lithium batteries is achieved, which solves the potential safety hazards caused by misdetection of the number of tab layers in battery production and improves detection Efficiency and precision.

CN117350993BActive Publication Date: 2024-09-03SHANGHAI BETTERWAY AUTOMATION CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311453317.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-11-02
Publication Date
2024-09-03
Estimated Expiration
2043-11-02

AI Technical Summary

Technical Problem

In the production process of lithium batteries, misdetection of the number of tab layers may lead to battery short circuit, capacity reduction, low-voltage heating and other abnormal conditions. Moreover, existing detection methods are difficult to achieve real-time, efficient and accurate detection in complex environments, posing safety risks. .

Method used

Using a detection method based on image recognition, the deep learning pre-training model is used to segment the polar ear images, combined with the binary label map and Zhang-Suen thinning algorithm, screening and calculating the polar connected domain to determine the number of polar layers, and achieving Automated detection.

Benefits of technology

This method can detect the number of tab layers in real-time, efficiently and accurately in complex environments, reduce manual detection costs, improve detection efficiency, enhance detection accuracy, reduce errors, and ensure battery safety.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117350993B
    Figure CN117350993B
Patent Text Reader

Abstract

The present invention discloses a method for detecting the number of tab layers based on image recognition, and the steps are: A1, performing image segmentation; A2, performing binarization and corrosion preprocessing; A3, using Zhang‑Suen algorithm; A4, selecting a connected domain that meets the conditions; A5, selecting the number of tab layers included; A6, performing summation. The present invention uses a camera device to obtain a tab image to be detected, and then relies on an integrated image recognition algorithm to realize automatic detection of the number of tab layers, which not only reduces the cost of manual detection, but also improves the detection efficiency. When performing tab identification, the method adopts a design idea of ​​combining deep learning with traditional image preprocessing, taking into account the advantages of deep learning in target segmentation, high segmentation accuracy, and traditional preprocessing with low data demand and low computing resource requirements, and can improve the detection accuracy of the number of tab layers under complex environments and low time consumption conditions.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery tab detection, and more specifically, to a method for detecting the number of tab layers based on image recognition. Background Art

[0002] As a highly efficient and environmentally friendly battery, lithium batteries are now widely used in mobile electronic devices, electric vehicles and other fields. The positive and negative electrodes of lithium batteries are composed of lithium ion positive electrode materials and carbon negative electrode materials respectively, and the tabs are important components that connect the battery poles and the external circuit of the battery. In addition, the tabs also have the function of fixing the battery poles and protecting the battery. Therefore, in the design and manufacturing process of lithium batteries, the material, structure and manufacturing process of the tabs need to be carefully designed and optimized to ensure the performance and service life of the battery.

[0003] In the battery production process, due to the thin texture of the tab material, after the tabs are stacked or transported in multiple layers, wrinkles or missing parts that are difficult to distinguish with the naked eye may appear in a certain layer of the tab. The misdetection of the number of tab layers caused by this can easily cause abnormal conditions such as short circuit, capacity reduction, and low-voltage heating during battery production or use. This not only affects the performance and normal use of the battery, but also increases the possibility of battery rework. More seriously, there are safety hazards such as uncontrolled fire. Therefore, how to detect the number of tab layers in real time, efficiently, and accurately in a complex environment is still an inevitable and urgent problem to be solved in the battery production process. Summary of the invention

[0004] In order to overcome the shortcomings of the prior art, the present invention provides a method for detecting the number of tab layers based on image recognition, which has the advantages of real-time, efficient and accurate detection.

[0005] To achieve the above object, the present invention provides the following technical solutions: a method for detecting the number of tab layers based on image recognition,

[0006] The detection method steps are:

[0007] A1: Use the pre-trained model of deep learning to segment the tab image to be inspected. Use a camera to record and collect tab images, annotate and train them, and then use the segmentation model trained by deep learning to segment them to obtain a label image.

[0008] A2, using a method of obtaining the ROI area of ​​the tab from the binarized label image, obtaining the ROI area of ​​the tab from the segmented tab label image for binarization and corrosion preprocessing;

[0009] A3, using the thinning algorithm proposed by Zhang-Suen, the skeleton of the pre-processed tab area is extracted to obtain the required tab lines;

[0010] A4, according to the number of strips obtained after extraction from the skeleton, and according to the method for screening the connected domain of the tab, the connected domain of the tab that meets the conditions is screened out;

[0011] A5, the number of tab layers contained in each connected domain selected according to the method for calculating the number of tab layers contained in a single tab connected domain;

[0012] A6, sum the number of tab layers contained in all connected domains.

[0013] As a preferred technical solution of the present invention,

[0014] The deep learning tool is used to perform image segmentation on the ear piece to be inspected using the segmentation model trained by deep learning.

[0015] As a preferred technical solution of the present invention,

[0016] The method for obtaining the tab ROI area from the binary label map;

[0017] B1, traverse the segmented ear label map to find the coordinate point set whose pixel value is not zero;

[0018] B2, calculate the maximum coordinate value and the minimum coordinate value in the X-axis and Y-axis directions of the coordinate point set. B3, the desired tab ROI area is composed of the area surrounded by the upper left corner point and the lower right corner point.

[0019] As a preferred technical solution of the present invention,

[0020] The method for screening the connected domain of the tab;

[0021] C1, count the number of connected domains in the RO I area of ​​the tab;

[0022] C2, multiply the width by a preset scaling factor;

[0023] C3, get the minimum area threshold and detect it one by one;

[0024] C4, keep those greater than this threshold.

[0025] As a preferred technical solution of the present invention,

[0026] The method for calculating the number of tab layers included in a single tab connected domain;

[0027] D1, the method for obtaining the RO I area of ​​the tab in the binary label map obtains the RO I area;

[0028] D2, based on the preset segment number and interval threshold, the tab ROI area is segmented;

[0029] D3, multiply the width by a preset proportionality factor to get the minimum area threshold;

[0030] D4, respectively calculate the number of connected domains in each segmented area that are greater than the threshold;

[0031] D5, the maximum number of strips is taken as the number of tab layers contained in the current connected domain.

[0032] As a preferred technical solution of the present invention,

[0033] The Zhang-Suen algorithm is an image thinning algorithm for more efficient image processing as a preferred technical solution of the present invention.

[0034] The deep learning model;

[0035] It is a model that has been trained with a large amount of data and has acquired certain general features.

[0036] As a preferred technical solution of the present invention,

[0037] The Zhang-Suen algorithm may produce some detail errors during the thinning process. In order to improve the accuracy of the algorithm, some detail processing methods can be introduced.

[0038] Compared with the prior art, the present invention has the following beneficial effects:

[0039] The present invention uses a camera device to obtain the image of the tab to be detected, and then relies on an integrated image recognition algorithm to realize the automatic detection of the number of tab layers, which not only reduces the cost of manual detection, but also improves the detection efficiency. When performing tab identification, this method adopts a design idea that combines deep learning with traditional image preprocessing, taking into account the advantages of deep learning in target segmentation, high segmentation accuracy, and traditional preprocessing, such as low data requirements and low computing resource requirements, and can improve the detection accuracy of the number of tab layers in complex environments and low time consumption. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 It is a flow chart of the detection steps of the present invention;

[0041] Figure 2 It is a flow chart of the method for obtaining the tab ROI area in the binary label image of the present invention;

[0042] Figure 3 A flow chart of the method for screening the connected domain of the tabs of the present invention;

[0043] Figure 4 The present invention is a flow chart of a method for calculating the number of tab layers included in a single tab connected domain. DETAILED DESCRIPTION

[0044] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0045] like Figures 1 to 4 As shown, the present invention provides a method for detecting the number of tab layers based on image recognition.

[0046] The steps are:

[0047] A1: Use the pre-trained model of deep learning to segment the tab image to be inspected. Use a camera to record and collect tab images, annotate and train them, and then use the segmentation model trained by deep learning to segment them to obtain a label image.

[0048] A2, using a method of obtaining the ROI area of ​​the tab from the binarized label image, obtaining the ROI area of ​​the tab from the segmented tab label image for binarization and corrosion preprocessing;

[0049] A3, using the thinning algorithm proposed by Zhang-Suen, the skeleton of the pre-processed tab area is extracted to obtain the required tab lines;

[0050] A4, according to the number of strips obtained after extraction from the skeleton, and according to the method for screening the connected domain of the tab, the connected domain of the tab that meets the conditions is screened out;

[0051] A5, the number of tab layers contained in each connected domain selected according to the method for calculating the number of tab layers contained in a single tab connected domain;

[0052] A6, sum the number of tab layers contained in all connected domains.

[0053] Use camera equipment to record and collect enough images of the tabs to form a sample set. Use deep learning tools to annotate and train the collected tab sample set, and use the segmentation model trained by deep learning to segment and obtain a label map. Use the method of obtaining the tab ROI area from the binary label map to segment the segmented tab images and obtain the ROI of the tab. I area, and the area is binarized and corroded with a rectangular kernel of × size for preprocessing; the skeleton of the preprocessed lug area is extracted using the thinning algorithm proposed by Zhang-Suen to obtain lug lines of single pixel width; the number of lug connected domains is counted from the area after skeleton extraction, and the lug connected domains that meet the conditions are preliminarily screened out from the detected connected domains according to the method of screening lug connected domains, and the threshold is set as one; according to the threshold one, the method of calculating the number of lug layers contained in a single lug connected domain is used to calculate and screen out the lug connected domains that meet the conditions one by one, and the number of lug layers contained in each screened lug connected domain is set as the threshold two; according to the threshold two, the number of lug layers contained in all connected domains is summed up, which is the number of lug layers finally detected.

[0054] By using camera equipment to obtain the image of the tab to be inspected, and then relying on the integrated image recognition algorithm to realize the automatic detection of the number of tab layers, it not only reduces the cost of manual inspection, but also improves the inspection efficiency. When performing tab identification, this method adopts a design idea that combines deep learning with traditional image preprocessing, taking into account the advantages of deep learning in target segmentation, high segmentation accuracy, and traditional preprocessing, such as low data requirements and low computing resource requirements, and can improve the detection accuracy of the number of tab layers in complex environments and low time-consuming conditions.

[0055] Wherein, the deep learning tool is used to perform image segmentation on the ear piece to be inspected using a segmentation model trained by deep learning.

[0056] By using the segmentation model trained by deep learning to perform image segmentation on the pole ear image to be detected, a label image with background pixel value of 0 and pole ear pixel value of 1 is obtained after segmentation.

[0057] Wherein, the method of obtaining the tab ROI area from the binary label map;

[0058] B1, traverse the segmented ear label map to find the coordinate point set whose pixel value is not zero;

[0059] B2: Calculate the maximum and minimum coordinate values ​​of the coordinate point set in the X-axis and Y-axis directions.

[0060] B3, the desired ear ROI area is composed of the area enclosed by the upper left corner point and the lower right corner point.

[0061] By calculating the maximum coordinate values ​​Xmax and Ymax and the minimum coordinate values ​​Xmin and Ymin in the X-axis and Y-axis directions of the coordinate point set, the desired tab ROI area is composed of the area surrounded by the upper left corner point (Xmin, Ymin) and the lower right corner point X (max, Ymax).

[0062] Wherein, the method for screening the connected domain of the tabs;

[0063] C1, count the number of connected domains in the tab ROI area;

[0064] C2, multiply the width by a preset scaling factor;

[0065] C3, get the minimum area threshold and detect it one by one;

[0066] C4, keep those greater than this threshold.

[0067] First, the number of connected domains contained in the tab ROI area is counted, and the width of the ROI area is multiplied by a preset proportionality coefficient to obtain the minimum area threshold acceptable as a tab, and the detected connected domain area is compared with the threshold one by one, and all tab connected domains larger than the threshold are retained. Preferably, the proportionality coefficient is set in the range of 1 / 20 to 1 / 50.

[0068] Wherein, the method for calculating the number of tab layers included in the connected domain of a single tab;

[0069] D1, the method for obtaining the tab ROI area in the binary label image obtains the ROI area;

[0070] D2, based on the preset segment number and interval threshold, the ear ROI area is segmented;

[0071] D3, multiply the width by a preset proportionality factor to get the minimum area threshold;

[0072] D4, respectively calculate the number of connected domains in each segmented area that are greater than the threshold;

[0073] D5, the maximum number of strips is taken as the number of tab layers contained in the current connected domain.

[0074] The ROI area of ​​a single lug is obtained from the point set of the connected domain of a single lug in the same way as described in the method for obtaining the lug ROI area in the binary label map; a segment number and an interval threshold are pre-set, and then the lug ROI area is segmented. Preferably, the segment number ranges from 20 to 30; the segmentation interval threshold size is determined by 1 / 10 of the width of a single segmented area. The width of a single segmented area is multiplied by a pre-set proportional coefficient to obtain the minimum area threshold that can be accepted as a lug in the area block. Preferably, the proportional coefficient ranges from 0.7 to 0.9; the number of lug connected domains detected in each segmented area whose area is greater than the threshold is calculated respectively, and the maximum number of connected domains detected in all segmented areas is taken as the number of lug layers contained in the current connected domain.

[0075] The Zhang-Suen algorithm is an image thinning algorithm for more efficient image processing.

[0076] The Zhang-Suen algorithm is an image thinning algorithm used to make a binary image thinner for more efficient image processing.

[0077] Wherein, the deep learning model;

[0078] It is a model that has been trained with a large amount of data and has acquired certain general features.

[0079] Models that have been trained with a large amount of data and have learned certain common features. These models can usually be directly applied to new tasks in order to use their trained features for prediction or classification.

[0080] Among them, the Zhang-Suen algorithm may produce some detail errors during the refinement process. In order to improve the accuracy of the algorithm, some detail processing methods can be introduced

[0081] For example, more sophisticated morphological operations can be used to deal with these errors. These processing methods can reduce the errors in the refinement results and improve the accuracy of the algorithm.

[0082] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device.

[0083] Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that various changes, modifications, substitutions and variations may be made to the embodiments without departing from the principles and spirit of the present invention, and that the scope of the present invention is defined by the appended claims and their equivalents.

Claims

1. A method for detecting the number of tab layers based on image recognition. Features: The detection method steps are: A1: Use the pre-trained model of deep learning to segment the tab image to be inspected. Specifically, use a camera to record and collect tab images, annotate and train them, and then use the pre-trained model of deep learning to segment them to obtain a tab label image. A2, using the method of obtaining the tab ROI area from the binarized label image, obtaining the tab ROI area from the obtained tab label image for binarization and corrosion preprocessing; A3, using the Zhang-Suen algorithm to extract the skeleton of the ROI area of ​​the pre-processed tab to obtain the tab line; A4, according to the number of lines obtained after skeleton extraction, and according to the method for screening the connected domain of the tab, the tab connected domain that meets the conditions is screened out; A5, according to the method of calculating the number of tab layers contained in a single tab connected domain, obtain the number of tab layers contained in each connected domain; A6, summing the number of tab layers contained in all connected domains; The method for obtaining the tab ROI area from the binary label map includes: B1, traverse the obtained ear label map to find the coordinate point set whose pixel value is not zero; B2, calculate the maximum coordinate value and the minimum coordinate value in the X-axis and Y-axis directions of the coordinate point set; B3, the desired ear ROI area is composed of the area enclosed by the upper left corner point and the lower right corner point; The method for screening the connected domain of the tabs comprises: C1, count the number of connected domains in the tab ROI area; C2, multiply the width by a preset scaling factor; C3, get the minimum area threshold and detect the connected domains in the ROI area one by one; C4, retain the connected domains larger than the threshold; The method for calculating the number of tab layers included in a single tab connected domain comprises: D1, obtain the ROI area using the method of obtaining the ear ROI area from the binary label image; D2, based on the preset segment number and interval threshold, the ear ROI area is segmented; D3, multiply the width by a preset proportionality factor to get the minimum area threshold; D4, respectively calculate the number of connected domains in each segmented area that are greater than the threshold; D5, the maximum number of strips is taken as the number of tab layers contained in the current connected domain.

2. According to the method for detecting the number of tab layers based on image recognition according to claim 1, Features: The Zhang-Suen algorithm is an image thinning algorithm used to thin a binary image. The deep learning pre-trained model is a model that has been trained with a large amount of data and has learned general features; The Zhang-Suen algorithm will produce some detail errors during the thinning process. In order to improve the accuracy of the algorithm, a fine morphological operation is introduced to handle the errors.