Tab folding detection method and device, electronic equipment and storage medium

By performing skeleton extraction and connected component merging on the cross-sectional image of the electrode, the problem of inaccurate electrode folding detection was solved, and more accurate electrode number counting was achieved.

CN119731527BActive Publication Date: 2026-02-03CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202280006690.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-29
Publication Date
2026-02-03
Estimated Expiration
2042-08-29

AI Technical Summary

Technical Problem

In the existing technology, the detection of electrode folding is inaccurate, resulting in inaccurate counting of electrode numbers.

Method used

By extracting the skeleton from the cross-sectional image of the multilayer electrode, merging broken connected components, and combining them with unbroken connected components, the number of targets in the multilayer electrode is counted, and accurate detection is performed using the merged connected components and the unbroken connected components.

Benefits of technology

This improves the accuracy of electrode folding detection, ensuring a more accurate count of electrodes and avoiding inaccurate counting due to factors such as burrs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119731527B_ABST
    Figure CN119731527B_ABST
Patent Text Reader

Abstract

The application provides a tab folding detection method and device, electronic equipment and storage medium. The method comprises: performing skeleton extraction processing on a cross-sectional image of a multi-layer tab to obtain a skeleton image of the multi-layer tab; performing merging processing on a broken connected domain in the skeleton image to obtain a merged connected domain, the broken connected domain being a connected domain that is broken in the same tab cross section; according to the merged connected domain and a non-broken connected domain, counting a target number of the multi-layer tab; and according to the target number and a preset number, detecting whether a tab in the multi-layer tab is in a folded state. The broken connected domain is merged to obtain the merged connected domain, and according to the merged connected domain and the non-broken connected domain, the target number of the multi-layer tab is more accurate, thereby making the tab folding detection more accurate.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of battery technology, and in particular to a method, apparatus, electronic device and storage medium for detecting tab folding. Background Technology

[0002] With the rapid development of new energy vehicles, power batteries have also been widely used. One method for manufacturing bare battery cells is winding. In winding, only the portion of the metal foil that needs to carry current is retained on the cell electrode sheet; this portion of the metal foil is called the electrode tab. Because the metal foil is extremely thin, the electrode tab is prone to folding during the winding process. Therefore, detecting electrode folding has become a research hotspot.

[0003] In related technologies, when performing folding detection on the tabs, a line graph corresponding to the tab region is obtained, the number of lines on the vertical cross section of the image corresponding to each sampling point is counted, and the maximum line value is taken as the actual number of tabs.

[0004] However, in related technologies, there is a problem of inaccurate counting of electrode tabs, which leads to inaccurate detection of electrode tab folding. Summary of the Invention

[0005] This application aims to at least address one of the technical problems existing in the prior art. Therefore, one objective of this application is to provide a method, apparatus, electronic device, and storage medium for detecting tab folding, in order to solve the problem of inaccurate tab folding detection.

[0006] An embodiment of the first aspect of this application provides a method for detecting tab folding, comprising:

[0007] Skeleton extraction is performed on the cross-sectional image of the multi-layer electrode to obtain the skeleton image of the multi-layer electrode. Broken connected components in the skeleton image are merged to obtain merged connected components, where broken connected components are those that have broken within the same electrode cross-section. Based on the merged connected components and the unbroken connected components, the target number of multi-layer electrodes is counted. Based on the target number and a preset number, it is detected whether any electrode in the multi-layer electrode is in a folded state. The count of the target number of multi-layer electrodes is more accurate based on the merged connected components and the unbroken connected components, thus making the detection of electrode folding more accurate.

[0008] In some implementations, merging broken connected components in the skeleton image to obtain a processed connected component further includes: if the endpoints of the connected components are within a preset region of the skeleton image, determining a first foreground point and a second foreground point adjacent to the endpoints, wherein the endpoints, the first foreground point, and the second foreground point are located in different connected components; and performing a merging process based on the connected components where the endpoints are located, the first connected component where the first foreground point is located, and the second connected component where the second foreground point is located, to obtain the processed connected component. If the endpoints of the connected components are within a preset region of the skeleton image, performing the merging process based on the endpoints and the first and second foreground points adjacent to the endpoints makes the merging result more reasonable and accurate.

[0009] In some implementations, a merging process is performed based on the connected component containing the endpoint, the first connected component containing the first foreground point, and the second connected component containing the second foreground point to obtain a processed connected component. This includes: determining a first distance between the endpoint and the first foreground point, and a second distance between the endpoint and the second foreground point; if the first distance is less than the second distance, the first connected component containing the first foreground point and the connected component containing the endpoint are merged to obtain a merged connected component; if the second distance is less than the first distance, the second connected component containing the second foreground point and the connected component containing the endpoint are merged to obtain a merged connected component. This method can accurately determine the first and second connected components that need to be merged with the connected component containing the endpoint, enabling accurate merging of connected components.

[0010] In some implementations, the target number of multilayer electrodes is counted based on the merged connected components and the unbroken connected components. This includes: traversing each third connected component in the merged and unbroken connected components, and counting the number of electrodes in each third connected component; summing the number of electrodes in each third connected component to obtain a first target number; and determining the target number of multilayer electrodes based on the first target number, the number of endpoints in the preset regions of the merged and unbroken connected components. In addition to the first target number, the target number is further determined by combining the number of endpoints in the preset regions of the merged and unbroken connected components, making the determined target number more accurate.

[0011] In some implementations, the target number of multilayer tabs is determined based on a first target number, the merged connected components, and the number of endpoints of preset regions within the unbroken connected components. This includes: if the number of endpoints of the preset regions is the same as a preset number, then the number of endpoints of the preset regions is taken as the target number; if the number of endpoints of the preset regions is different from the preset number, then the maximum value between the number of endpoints of the preset regions and the first target number is determined; and the target number is determined based on the maximum value and the preset number. Determining the target number based on the maximum value between the number of endpoints of the preset regions and the first target number, along with the preset number, results in a more accurate target number, which in turn makes the detection of tab folding more accurate.

[0012] In some implementations, determining the target quantity based on the maximum value and a preset quantity includes: if the maximum value is less than or equal to the preset quantity, then using the maximum value as the target quantity; if the maximum value is greater than the preset quantity, then traversing each fourth connected component in both broken and unbroken connected components, counting the number of poles in each fourth connected component; summing the number of poles in each fourth connected component to obtain a second target quantity; and using the second target quantity as the target quantity. Using the maximum value as the target quantity, or using the second target quantity obtained based on the fourth connected components as the target quantity, makes the determination of the target quantity more reasonable and accurate.

[0013] In some implementations, counting the number of electrodes in each third connected region includes: determining the sampling points of each third connected region; sorting the sampling points of each third connected region according to their position in a preset horizontal direction to obtain a sorting result; and determining the number of electrodes in each third connected region based on the sorting result and a preset threshold. Determining the number of electrodes in each third connected region based on the sorting result and the preset threshold makes the determined number of electrodes in each third connected region more accurate.

[0014] In some implementations, the number of electrodes in each third connected region is determined based on the sorting results and a preset threshold. This includes: determining whether the distance between two adjacent sampling points is greater than a preset threshold based on the sorting results; if so, determining the number of electrodes on the vertical cross-section between two adjacent sampling points; and determining the number of electrodes in each third connected region based on the number of electrodes on the vertical cross-section between two adjacent sampling points. By fully considering the distance between sampling points, the determination of the number of electrodes in the third connected region becomes more reasonable.

[0015] In some implementations, determining the sampling points for each third connected component includes: determining the intersections, first-type endpoints, and second-type endpoints in each third connected component; removing spurs from the first-type and second-type endpoints to obtain processed endpoints; and using the processed endpoints and intersections as sampling points. Removing spurs from the first-type and second-type endpoints makes the determined endpoints more accurate and avoids the problem of inaccurate tab counting caused by spurs.

[0016] An embodiment of the second aspect of this application provides a tab folding detection device, comprising:

[0017] The extraction and processing module is used to perform skeleton extraction processing on the cross-sectional image of the multilayer electrode to obtain the skeleton image of the multilayer electrode.

[0018] The merging processing module is used to merge the broken connected components in the skeleton image to obtain the merged connected components. The broken connected components are multiple connected components belonging to the same tab cross section.

[0019] The statistics module is used to count the target number of multilayer electrodes based on the merged connected components and the unbroken connected components.

[0020] The detection module is used to detect whether any tabs in the multi-layer tabs are in a folded state, based on the target quantity and the preset quantity.

[0021] In some implementations, the merging processing module is specifically used to determine a first foreground point and a second foreground point adjacent to the endpoint if the endpoint of the connected region is within a preset area of ​​the skeleton image, wherein the endpoint, the first foreground point, and the second foreground point are in different connected regions; and to perform merging processing based on the connected region where the endpoint is located, the first connected region where the first foreground point is located, and the second connected region where the second foreground point is located, to obtain the processed connected region.

[0022] In some implementations, the merging processing module is specifically used to determine a first distance between the endpoint and the first foreground point, and a second distance between the endpoint and the second foreground point; if the first distance is less than the second distance, the first connected component where the first foreground point is located and the connected component where the endpoint is located are merged to obtain a merged connected component; if the second distance is less than the first distance, the second connected component where the second foreground point is located and the connected component where the endpoint is located are merged to obtain a merged connected component.

[0023] In some implementations, the statistics module is specifically used to traverse each third connected region in the merged connected region and the unbroken connected region, count the number of electrodes in each third connected region; add the number of electrodes in each third connected region to obtain a first target number; and determine the target number of multilayer electrodes based on the first target number, the number of endpoints in the preset region in the merged connected region and the unbroken connected region.

[0024] In some implementations, the statistics module is specifically used to: if the number of endpoints in the preset region is the same as the preset number, then take the number of endpoints in the preset region as the target number; if the number of endpoints in the preset region is different from the preset number, then determine the maximum value between the number of endpoints in the preset region and the first target number; and determine the target number based on the maximum value and the preset number.

[0025] In some implementations, the statistics module is specifically used to: if the maximum value is less than or equal to a preset number, then take the maximum value as the target number; if the maximum value is greater than the preset number, then traverse each fourth connected component in the broken connected components and the unbroken connected components, count the number of poles in each fourth connected component; add the number of poles in each fourth connected component to obtain a second target number; and take the second target number as the target number.

[0026] In some implementations, the statistics module is specifically used to determine the sampling points of each third connected region; sort the sampling points of each third connected region according to the position of each third connected region in a preset horizontal direction to obtain a sorting result; and determine the number of electrodes in each third connected region according to the sorting result and a preset threshold.

[0027] In some implementations, the statistics module is specifically used to determine whether the distance between two adjacent sampling points is greater than a preset threshold based on the sorting results; if so, it determines the number of tabs on the vertical cross section between two adjacent sampling points; and based on the number of tabs on the vertical cross section between two adjacent sampling points, it determines the number of tabs in each third connected region.

[0028] In some implementations, the statistics module is specifically used to determine the intersections, first-type endpoints, and second-type endpoints in each third connected component; to remove spurs from the first-type and second-type endpoints to obtain processed endpoints; and to use the processed endpoints and intersections as sampling points.

[0029] An embodiment of the third aspect of this application provides an electronic device, comprising: a memory and a processor, the memory storing a computer program executable by the processor, the processor executing the computer program to implement the method of any of the first aspects described above.

[0030] An embodiment of the fourth aspect of this application provides a computer-readable storage medium, wherein a computer program is stored on the storage medium, and when the computer program is read and executed, it implements the method of any one of the first aspects described above.

[0031] An embodiment of the fifth aspect of this application provides a computer program product, wherein the computer program product includes a computer program, which, when executed by a processor, is used to implement the method of any one of the first aspects.

[0032] The above description is only an overview of the technical solution of this application. In order to better understand the technical means of this application and to implement it in accordance with the contents of the specification, and to make the above and other objects, features and advantages of this application more obvious and understandable, the following are specific embodiments of this application. Attached Figure Description

[0033] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments disclosed in this application and should not be construed as limiting the scope of this application.

[0034] Figure 1 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0035] Figure 2 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0036] Figure 3 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0037] Figure 4 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0038] Figure 5 A schematic diagram illustrating a broken tab connection domain as provided in an embodiment of this application;

[0039] Figure 6 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0040] Figure 7 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0041] Figure 8 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0042] Figure 9A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0043] Figure 10 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0044] Figure 11 A schematic flowchart illustrating a method for detecting tab folding provided in an embodiment of this application;

[0045] Figure 12 This is a schematic diagram of the structure of a tab folding detection device provided in an embodiment of this application;

[0046] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0047] The embodiments of the technical solution of this application will now be described in detail with reference to the accompanying drawings. These embodiments are only used to more clearly illustrate the technical solution of this application and are therefore merely examples, and should not be used to limit the scope of protection of this application.

[0048] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application pertains; the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the application; the terms “comprising” and “having”, and any variations thereof, in the specification, claims, and foregoing description of the drawings are intended to cover non-exclusive inclusion.

[0049] In the description of the embodiments of this application, technical terms such as "first" and "second" are used only to distinguish different objects and should not be construed as indicating or implying relative importance or implicitly specifying the number, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, "multiple" means two or more, unless otherwise explicitly defined.

[0050] In this document, the term "embodiment" means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places throughout the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0051] In the description of the embodiments in this application, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Additionally, the character " / " in this document generally indicates that the preceding and following related objects have an "or" relationship.

[0052] In the description of the embodiments of this application, the term "multiple" refers to two or more (including two), similarly, "multiple sets" refers to two or more (including two sets), and "multiple pieces" refers to two or more (including two pieces).

[0053] In the description of the embodiments of this application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicate the orientation or positional relationship based on the orientation or positional relationship shown in the accompanying drawings. They are only for the convenience of describing the embodiments of this application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, or be constructed and operated in a specific orientation. Therefore, they should not be construed as limitations on the embodiments of this application.

[0054] In the description of the embodiments of this application, unless otherwise expressly specified and limited, the technical terms such as "installation," "connection," "joining," and "fixing" should be interpreted broadly. For example, they can refer to a fixed connection, a detachable connection, or an integral part; they can refer to a mechanical connection or an electrical connection; they can refer to a direct connection or an indirect connection through an intermediate medium; they can refer to the internal communication of two components or the interaction between two components. For those skilled in the art, the specific meaning of the above terms in the embodiments of this application can be understood according to the specific circumstances.

[0055] With the rapid development of new energy vehicles, power batteries have also been widely used. One method for manufacturing bare power battery cells is winding. In winding, only the portion of the metal foil that needs to carry current is retained on the cell electrode sheet; this portion of the metal foil is called the tab. Because the metal foil is extremely thin, the tab is prone to folding during the winding process. Therefore, detecting tab folding has become a research hotspot.

[0056] In related technologies, when performing folding detection on the tabs, a line graph corresponding to the tab region is obtained, the number of lines on the vertical cross section of the image corresponding to each sampling point is counted, and the maximum line value is taken as the actual number of tabs.

[0057] However, in related technologies, the number of lines on the vertical cross section of the image corresponding to each sampling point is counted independently. The statistical process is relatively isolated and is prone to inaccurate counting of the number of tabs, which leads to inaccurate detection of tab folding.

[0058] To address at least one of the aforementioned problems, this application provides a method for detecting tab folding. This method merges broken connected domains to obtain merged connected domains. Based on the merged connected domains and unbroken connected domains, the target number of multi-layer tabs is statistically calculated using these connected domains. This fully considers the correlation between multi-layer tabs, making the calculated target number more accurate, and consequently, making the detection of tab folding more accurate.

[0059] The tab folding detection method disclosed in this application can acquire cross-sectional images of the sides of multiple tabs using an image acquisition device, which can be located on the sides of the multi-layer tabs. The image acquisition device is communicatively connected to an electronic device, which can send the cross-sectional images of the multi-layer tabs to the electronic device. The electronic device can receive the cross-sectional images of the multi-layer tabs and execute the tab folding detection method provided in this application to determine whether any tabs in the multi-layer tabs are in a folded state.

[0060] The communication connection method can be either a wired communication connection or a wireless communication connection.

[0061] It should be noted that the image acquisition device can be a camera, a webcam, or other devices with image acquisition capabilities; this application does not impose specific limitations on this. The electronic device can be a terminal or a server, and the terminal can be any of the following: desktop computer, laptop computer, tablet computer, smartphone, etc.

[0062] According to some embodiments of this application, Figure 1 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 1 As shown, the electrode flap folding detection method may include:

[0063] S101. Perform skeleton extraction processing on the cross-sectional image of the multilayer electrode to obtain the skeleton image of the multilayer electrode.

[0064] S102. Merge the broken connected components in the skeleton image to obtain the merged connected components. The broken connected components are the connected components that are broken in the same tab cross section.

[0065] S103. Based on the merged connected domain and the unbroken connected domain, count the number of target multilayer electrodes.

[0066] S104. Based on the target quantity and the preset quantity, detect whether any electrode tabs in the multi-layer electrode tabs are in a folded state.

[0067] Among them, the cross-sectional image of the multilayer electrode can be a segmented image of the cross-sectional region of the multilayer electrode.

[0068] In some implementations, the cross-sectional image of the multilayer electrode is preprocessed to obtain a preprocessed image; skeleton extraction is then performed on the preprocessed image to obtain a skeleton image of the multilayer electrode. The skeleton image is a single-pixel wide skeleton image.

[0069] Optionally, the preprocessing of the cross-sectional image of the multilayer electrode may include: binarizing the cross-sectional image of the multilayer electrode to obtain a binarized image, detecting holes in the binarized image, and filling the holes if the size of the holes meets the preset conditions.

[0070] It should be noted that in the binarized image, the background pixels and the foreground pixels have different pixel values. For example, the pixel value of the background pixel can be 0, and the pixel value of the foreground pixel can be 1.

[0071] Additionally, broken connected components in the skeleton image can be identified, and then these broken connected components can be merged to obtain merged connected components. Based on the merged connected components and the unbroken connected components, the number of targets in the multilayer electrode can be counted. For example, the sum of the values ​​of each connected component can be used as the number of targets in the multilayer electrode.

[0072] In this embodiment of the application, if the target number is less than the preset number, it is determined that some tabs in the multilayer electrode are in a folded state; if the target number is less than the preset number, it is determined that no tabs in the multilayer electrode are in a folded state.

[0073] The broken connected components are merged to obtain the merged connected components. Based on the merged connected components and the unbroken connected components, the number of target multilayer tabs is more accurate, which in turn makes the detection of tab folding more accurate.

[0074] According to some embodiments of this application, Figure 2 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 2 As shown, the process of merging broken connected components in the skeleton image in S102 to obtain the processed connected components includes:

[0075] S201. If the endpoints of a connected component are within a preset area of ​​the skeleton image, then determine the first foreground point and the second foreground point adjacent to the endpoints based on the endpoints.

[0076] S202. Merge the connected components of the endpoints, the first connected component of the first foreground point, and the second connected component of the second foreground point to obtain the processed connected components.

[0077] It is worth noting that if the endpoint of a connected component lies within a preset area of ​​the skeleton image, the connected component is determined to be a suspected broken connected component, the endpoint is identified as break point A, and the vertical cross-section of the endpoint is determined. Based on the connected components on the vertical cross-section, the first foreground point and the second foreground point are determined. The first foreground point can be called the uppermost foreground point A1, and the second foreground point A2 can be called the lowermost foreground point.

[0078] It should be noted that if the connected domain of the break has only one branch, then the first foreground, the second foreground point, and the break point are the same point, and the first foreground and the second foreground point are both break point A.

[0079] In this embodiment of the application, the first connected domain where the first foreground point is located and the connected domain to be merged in the second connected domain where the second foreground point is located can be determined. The connected domain where the endpoint is located and the connected domain to be merged are merged to obtain the processed connected domain.

[0080] If the endpoints of a connected component are within a preset area of ​​the skeleton image, merging is performed based on the endpoints and the first and second foreground points adjacent to the endpoints, making the merging result more reasonable and accurate.

[0081] According to some embodiments of this application, Figure 3 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 3 As shown, the process in S202 above, which involves merging the connected components of the endpoints, the first connected component of the first foreground point, and the second connected component of the second foreground point to obtain the processed connected component, may include:

[0082] S301. Determine the first distance between the endpoint and the first foreground point, and the second distance between the endpoint and the second foreground point;

[0083] S302. If the first distance is less than the second distance, then the first connected component where the first foreground point is located and the connected component where the endpoint is located are merged to obtain the merged connected component.

[0084] S303. If the second distance is less than the first distance, then the second connected component where the second foreground point is located and the connected component where the endpoint is located are merged to obtain the merged connected component.

[0085] Here, the first foreground point is the uppermost foreground point that is closest to the endpoint, and the second foreground point is the lowermost foreground point that is closest to the endpoint. The first connected component containing the first foreground point can be the upper adjacent connected component, and the second connected component containing the second foreground point can be the lower adjacent connected component.

[0086] In this embodiment, the connected component containing the endpoint is merged with either the first connected component containing the first foreground point or the second connected component containing the second foreground point to obtain a merged connected component. Additionally, the independent connected components before the merge need to be deleted. Specifically, if merging the first connected component and the connected component containing the endpoint is performed, the independent first connected component and the connected component containing the endpoint are deleted, and the second connected component is retained. If merging the second connected component and the connected component containing the endpoint is performed, the independent second connected component and the connected component containing the endpoint are deleted, and the first connected component is retained.

[0087] Figure 4 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 4 As shown, if endpoint A of connected component 2 is within a preset area of ​​the skeleton image, then connected component 2 is considered a suspected broken connected component. The upper foreground point B and the lower foreground point C of the other connected component closest to point A are determined, thereby finding the upper adjacent connected component 1 and the lower adjacent connected component 3. The upper adjacent connected component 1 and connected component 2 are the closest. Broken connected components 1 and 2 are merged, and the originally independent broken connected components 1 and 2 are deleted.

[0088] The merged connected components are counted using the multi-section counting method of the previous connected component sampling points, which will count 3 electrodes, and the count is correct; however, if they are divided into 3 independent connected components and counted separately, 4 electrodes will be detected, and 1 electrode will be counted too many times.

[0089] in addition, Figure 5 A schematic diagram of a broken tab connection region provided in an embodiment of this application is shown below. Figure 5 As shown, Figure 5 (a), (b), and (c) in the figure show three different cases of pole ear connectivity breaks.

[0090] The first distance between the endpoint and the first foreground point, and the second distance between the endpoint and the second foreground point, can accurately determine the first and second connected components that need to be merged with the connected component containing the endpoint, thus enabling accurate merging of connected components.

[0091] According to some embodiments of this application, Figure 6 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 6As shown, the process of counting the target number of multilayer electrodes in S103 above, based on the merged connected components and the unbroken connected components, may include:

[0092] S601. Traverse each third connected component in the merged connected component and the unbroken connected component, and count the number of poles in each third connected component.

[0093] S602. Add the number of poles in each third connected region to obtain the first target quantity;

[0094] S603. Determine the target number of multilayer electrodes based on the first target number, the merged connected domain, and the number of endpoints of the preset region in the unbroken connected domain.

[0095] The third connected component can be any of the merged connected components or the unbroken connected components. The number of poles in each third connected component can be calculated separately, and then summed to obtain the first target quantity.

[0096] It should be noted that the preset area can be the left area, the number of endpoints in the preset area can be the number of left endpoints within the left area, the number of endpoints in the preset area can be b, and the number of the first target can be a.

[0097] Specifically, by fully utilizing the information from the skeleton endpoints and considering the characteristic that the cross-sectional skeleton image of the electrode tabs unfolds horizontally, a strategy was designed to distinguish between the left and right endpoints. Furthermore, since the leftmost endpoint of each connected component skeleton is generally located at the root of the electrode tab, this left-hand region is usually clearly imaged. Therefore, the number of left endpoints within a certain area on the left side of the image can often accurately reflect the actual number of electrodes in the image.

[0098] For example, the target point P1 and its 8 neighboring pixels are defined as follows:

[0099] P9 P2 P3 P8 P1 P4 P7 P6 P5

[0100] Left endpoint: Pixels P2, P9, P8, P7, and P6 have a value of 0, meaning they are background pixels. Among pixels P3, P4, and P5, only one pixel has a value of 1, and the other two are background pixels. Right endpoint: Pixels P2, P3, P4, P5, and P6 have a value of 0, meaning they are background pixels. Among pixels P9, P8, and P7, only one pixel has a value of 1, and the other two are background pixels.

[0101] The first target quantity is obtained based on the counts of the merged connected components and the unbroken connected components. Based on the first target quantity, the target quantity is further determined by combining the number of endpoints of the preset regions in the merged connected components and the unbroken connected components, making the determined target quantity more accurate.

[0102] According to some embodiments of this application, Figure 7 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 7 As shown, the process of determining the target number of multilayer electrodes in S603 above based on the first target number, the merged connected components, and the number of endpoints of the preset region in the unbroken connected components may include:

[0103] S701. If the number of endpoints in the preset area is the same as the preset number, then the number of endpoints in the preset area shall be taken as the target number.

[0104] S702. If the number of endpoints in the preset area is different from the preset number, then determine the maximum value between the number of endpoints in the preset area and the number of the first target.

[0105] S703. Determine the target quantity based on the maximum value and the preset quantity.

[0106] In cases where the number of endpoints in the preset area differs from the preset number, if the number of endpoints in the preset area is greater than the first target number, the maximum value is the number of endpoints in the preset area; if the number of endpoints in the preset area is less than the first target number, the maximum value is the first target number.

[0107] The target quantity can be called checkNum. If the number of endpoints b in the preset region is equal to the preset quantity normalNum, then checkNum = b. If the number of endpoints b in the preset region is not equal to the preset quantity normalNum, then the maximum value between the number of endpoints b in the preset region and the first target quantity a is determined. This process is represented as: max(a,b).

[0108] The target number is determined based on the maximum value of the number of endpoints in the preset area and the number of the first target, as well as the preset number. The determined target number is more accurate, which in turn makes the detection of the tab fold more accurate.

[0109] According to some embodiments of this application, Figure 8 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 8 As shown, the process of determining the target quantity based on the maximum value and the preset quantity in S703 above may include:

[0110] S801. If the maximum value is less than or equal to the preset quantity, then the maximum value shall be used as the target quantity.

[0111] S802. If the maximum value is greater than the preset number, then traverse each fourth connected region in the broken connected regions and the unbroken connected regions, and count the number of poles in each fourth connected region.

[0112] S803. Add the number of poles in each fourth connected domain to obtain the second target number;

[0113] S804. Take the second target quantity as the target quantity.

[0114] If the maximum value of the number of endpoints in the preset area and the number of the first target is less than or equal to the preset number normalNum, then the target number checkNum = the maximum value max(a,b); if max(a,b) is greater than the preset number normalNum, then the target number checkNum = the second target number c.

[0115] In addition, the fourth connected region can be any connected region that is broken or unbroken. The number of poles in each fourth connected region is determined sequentially or simultaneously. The number of poles in each fourth connected region is added together to obtain the second target quantity c.

[0116] Using the maximum value as the target quantity, or using the second target quantity obtained based on the fourth connected component as the target quantity, makes the determination of the target quantity more reasonable and accurate.

[0117] According to some embodiments of this application, Figure 9 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 9 As shown, the process of counting the number of poles in each third connected region in S601 above can include:

[0118] S901. Determine the sampling points for each third connected component;

[0119] S902. In the preset horizontal direction, sort the sampling points of each third connected component according to the position of each third connected component to obtain the sorting result;

[0120] S903. Based on the sorting results and the preset threshold, determine the number of poles in each third connected region.

[0121] The preset horizontal direction can be the X-axis direction in the coordinate system.

[0122] In some implementations, along the X-axis, for each third connected component, the sampling points are sorted according to their coordinate values ​​to obtain a sorting result. The sorting can be from smallest to largest or from largest to smallest; this application does not impose a specific limitation on this.

[0123] In addition, the preset threshold can be an empirical value or can be set according to actual needs. This application embodiment does not impose specific restrictions on this.

[0124] Based on the sorting results and preset thresholds, the number of poles in each third connected region is determined, making the determined number of poles in each third connected region more accurate.

[0125] According to some embodiments of this application, wherein, Figure 10 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 10 As shown, the process of determining the number of poles in each third connected component based on the sorting results and a preset threshold in S903 above may include:

[0126] S1001. Based on the sorting results, determine whether the distance between two adjacent sampling points is greater than a preset threshold.

[0127] S1002. If so, determine the number of tabs on the vertical cross section between two adjacent sampling points;

[0128] S1003. Determine the number of electrodes in each third connected domain based on the number of electrodes on the vertical cross section between two adjacent sampling points.

[0129] In this embodiment of the application, if the distance between two adjacent sampling points is greater than a preset threshold, the number of tabs on the vertical cross section between the two adjacent sampling points is determined; based on the number of tabs on the vertical cross section between the two adjacent sampling points, the maximum value is taken as the number of tabs in each third connected region.

[0130] The number of electrodes in each third connected region is determined based on the number of electrodes on the vertical cross section between two adjacent sampling points, taking into full account the distance between sampling points, making the determination of the number of electrodes in the third connected region more reasonable.

[0131] According to some embodiments of this application, Figure 11 This is a flowchart illustrating a method for detecting tab folding provided in an embodiment of this application, as shown below. Figure 11 As shown, the process of determining the sampling points of each third connected component in S901 above may include:

[0132] S1101. Determine the intersections, first-type endpoints, and second-type endpoints in each third connected component;

[0133] S1102. Remove the burrs from the first type of endpoints and the second type of endpoints to obtain the processed endpoints;

[0134] S1103. Use the processed endpoints and intersections as sampling points.

[0135] Among them, the first type of endpoint can be the left endpoint, and the second type of endpoint can be the right endpoint.

[0136] In some implementations, the intersections and endpoints of each connected component are extracted, and the endpoints are classified as left endpoints and right endpoints. The burrs in the skeleton are removed, that is, the burr points in the first type of endpoints and the second type of endpoints are removed to obtain the processed endpoints. The sampling points may include the processed endpoints and intersections.

[0137] Removing burrs from the first and second types of endpoints can make the determined endpoints more accurate and avoid the problem of inaccurate tab counting caused by burrs.

[0138] A flowchart illustrating a method for detecting tab folding provided in this application embodiment may include:

[0139] S1001. Perform skeleton extraction processing on the cross-sectional image of the multilayer electrode to obtain the skeleton image of the multilayer electrode.

[0140] S1002. If the endpoint of a connected component is within a preset area of ​​the skeleton image, then the first foreground point and the second foreground point adjacent to the endpoint are determined based on the endpoint. The endpoint, the first foreground point, and the second foreground point are on different connected components.

[0141] S1003. Determine the first distance between the endpoint and the first foreground point, and the second distance between the endpoint and the second foreground point;

[0142] S1004. If the first distance is less than the second distance, then the first connected component where the first foreground point is located and the connected component where the endpoint is located are merged to obtain the merged connected component.

[0143] S1005. If the second distance is less than the first distance, then the second connected component where the second foreground point is located and the connected component where the endpoint is located are merged to obtain the merged connected component.

[0144] S1006. Traverse each third connected component in the merged connected component and the unbroken connected component, and determine the intersection points, first-type endpoints and second-type endpoints in each third connected component.

[0145] S1007. Remove the burrs from the first type of endpoints and the second type of endpoints to obtain the processed endpoints;

[0146] S1008. Use the processed endpoints and intersections as sampling points.

[0147] S1009. In the preset horizontal direction, sort the sampling points of each third connected component according to the position of each third connected component to obtain the sorting result;

[0148] S1010. Based on the sorting results, determine whether the distance between two adjacent sampling points is greater than a preset threshold.

[0149] S1011. If so, determine the number of tabs on the vertical cross section between two adjacent sampling points;

[0150] S1012. Determine the number of electrodes in each third connected region based on the number of electrodes on the vertical cross section between two adjacent sampling points.

[0151] S1013. Add the number of poles in each third connected region to obtain the first target quantity;

[0152] S1014. If the number of endpoints in the preset area is the same as the preset number, then the number of endpoints in the preset area shall be taken as the target number.

[0153] S1015. If the number of endpoints in the preset area is different from the preset number, then determine the maximum value between the number of endpoints in the preset area and the number of the first target.

[0154] S1016. If the maximum value is less than or equal to the preset quantity, then the maximum value shall be used as the target quantity.

[0155] S1017. If the maximum value is greater than the preset number, then traverse each fourth connected component in the broken connected components and the unbroken connected components, and count the number of poles in each fourth connected component.

[0156] S1018. Add the number of poles in each fourth connected region to obtain the second target number;

[0157] S1019. Take the second target quantity as the target quantity.

[0158] Figure 12 This is a schematic diagram of the structure of a tab folding detection device provided in an embodiment of this application, as shown below. Figure 12 As shown, the device may include:

[0159] The extraction and processing module 1201 is used to perform skeleton extraction processing on the cross-sectional image of the multilayer electrode to obtain the skeleton image of the multilayer electrode.

[0160] The merging processing module 1202 is used to merge the broken connected components in the skeleton image to obtain the merged connected components. The broken connected components are the connected components that are broken in the same tab cross section.

[0161] The statistics module 1203 is used to count the number of target multilayer electrodes based on the merged connected components and the unbroken connected components.

[0162] The detection module 1204 is used to detect whether any tabs in the multi-layer tabs are in a folded state, based on the target quantity and the preset quantity.

[0163] In some implementations, the merging processing module 1202 is specifically used to determine, if the endpoint of a connected region is within a preset area of ​​the skeleton image, a first foreground point and a second foreground point adjacent to the endpoint, wherein the endpoint, the first foreground point, and the second foreground point are in different connected regions; and to perform merging processing based on the connected region where the endpoint is located, the first connected region where the first foreground point is located, and the second connected region where the second foreground point is located, to obtain the processed connected region.

[0164] In some implementations, the merging processing module 1202 is specifically used to determine a first distance between the endpoint and the first foreground point, and a second distance between the endpoint and the second foreground point; if the first distance is less than the second distance, the first connected component where the first foreground point is located and the connected component where the endpoint is located are merged to obtain a merged connected component; if the second distance is less than the first distance, the second connected component where the second foreground point is located and the connected component where the endpoint is located are merged to obtain a merged connected component.

[0165] In some implementations, the statistics module 1203 is specifically used to traverse each third connected region in the merged connected region and the unbroken connected region, count the number of electrodes in each third connected region; add the number of electrodes in each third connected region to obtain a first target number; and determine the target number of multilayer electrodes based on the first target number, the number of endpoints of the preset region in the merged connected region and the unbroken connected region.

[0166] In some implementations, the statistics module 1203 is specifically used to: if the number of endpoints in the preset area is the same as the preset number, then take the number of endpoints in the preset area as the target number; if the number of endpoints in the preset area is different from the preset number, then determine the maximum value between the number of endpoints in the preset area and the first target number; and determine the target number based on the maximum value and the preset number.

[0167] In some implementations, the statistics module 1203 is specifically used to: if the maximum value is less than or equal to a preset number, then take the maximum value as the target number; if the maximum value is greater than the preset number, then traverse each fourth connected component in the broken connected components and the unbroken connected components, count the number of poles in each fourth connected component; add the number of poles in each fourth connected component to obtain a second target number; and take the second target number as the target number.

[0168] In some implementations, the statistics module 1203 is specifically used to determine the sampling points of each third connected region; sort the sampling points of each third connected region according to the position of each third connected region in a preset horizontal direction to obtain a sorting result; and determine the number of electrodes in each third connected region according to the sorting result and a preset threshold.

[0169] In some implementations, the statistics module 1203 is specifically used to determine whether the distance between two adjacent sampling points is greater than a preset threshold based on the sorting result; if so, to determine the number of tabs on the vertical cross section between two adjacent sampling points; and to determine the number of tabs in each third connected region based on the number of tabs on the vertical cross section between two adjacent sampling points.

[0170] In some implementations, the statistics module 1203 is specifically used to determine the intersection points, first-type endpoints, and second-type endpoints in each third connected component; remove spurious points in the first-type endpoints and second-type endpoints to obtain processed endpoints; and use the processed endpoints and intersection points as sampling points.

[0171] Figure 13 This is a schematic diagram of the structure of an electronic device provided in an embodiment of this application, such as... Figure 13 As shown, the electronic device may include a processor 1301 and a memory 1302. The memory 1302 stores programs, and the processor 1301 calls the programs stored in the memory 1302 to execute the above-described method embodiments. The specific implementation and technical effects are similar and will not be repeated here.

[0172] Electronic devices can be of various types, such as a service provider's server, a device associated with a client (e.g., a client device), a system-on-a-chip, and / or any other suitable electronic device. Examples of electronic devices include, but are not limited to: desktop computers, server computers, laptop or netbook computers, mobile devices (e.g., tablets, cellular or other wireless phones (e.g., smartphones), notebook computers, mobile stations), wearable devices (e.g., glasses, watches), entertainment devices (e.g., entertainment appliances, set-top boxes communicatively coupled to a display device, game consoles), televisions or other display devices, automotive computers, and so on.

[0173] The processor 1301 may be implemented as one or more microprocessors, microcomputers, microcontrollers, digital signal processors, central processing units, state machines, logic circuits and / or any device that manipulates signals based on operating instructions.

[0174] This application also provides a computer-readable storage medium storing a computer program. When the computer program is read and executed, it implements the above-described method embodiments. The computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, or optical data storage device, etc.

[0175] This application also provides a computer program product, such as a computer-readable storage medium, including a computer program that, when executed by a processor, is used to perform the above-described method embodiments.

[0176] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and not to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some or all of the technical features therein. These modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application, and they should all be covered within the scope of the claims and specification of this application. In particular, as long as there is no structural conflict, the various technical features mentioned in the embodiments can be combined in any way. This application is not limited to the specific embodiments disclosed herein, but includes all technical solutions falling within the scope of the claims.

Claims

1. A method for detecting tab folding, comprising: Skeleton extraction processing is performed on the cross-sectional image of the multilayer electrode to obtain the skeleton image of the multilayer electrode; The broken connected components in the skeleton image are merged to obtain merged connected components. The broken connected components are connected components that are broken in the same tab cross section. Based on the merged connected domain and the unbroken connected domain, the target number of the multilayer electrode is counted. Based on the target quantity and the preset quantity, detect whether any electrode tabs in the multi-layer electrode tabs are in a folded state; The step of merging the broken connected components in the skeleton image to obtain the merged connected components includes: If the endpoint of a connected region is within a preset area of ​​the skeleton image, then a first foreground point and a second foreground point adjacent to the endpoint are determined based on the endpoint, wherein the endpoint, the first foreground point, and the second foreground point are on different connected regions; The merged connected component is obtained by merging the connected component where the endpoint is located, the first connected component where the first foreground point is located, and the second connected component where the second foreground point is located.

2. The method according to claim 1, wherein, The merging process based on the connected component where the endpoint is located, the first connected component where the first foreground point is located, and the second connected component where the second foreground point is located, to obtain the merged connected component, includes: Determine a first distance between the endpoint and the first foreground point, and a second distance between the endpoint and the second foreground point; If the first distance is less than the second distance, then the first connected component where the first foreground point is located and the connected component where the endpoint is located are merged to obtain the merged connected component. If the second distance is less than the first distance, then the second connected component where the second foreground point is located and the connected component where the endpoint is located are merged to obtain the merged connected component.

3. The method according to claim 1, wherein, The step of counting the target number of the multilayer electrodes based on the merged connected components and the unbroken connected components includes: Traverse each third connected component in the merged connected component and the unbroken connected component, and count the number of poles in each third connected component; The number of poles in each of the third connected regions is added together to obtain the first target number; The target number of the multilayer electrodes is determined based on the first target number, the merged connected domain, and the number of endpoints of the preset region in the unbroken connected domain.

4. The method according to claim 3, wherein, Determining the target number of the multilayer electrodes based on the first target number, the merged connected components, and the number of endpoints of the preset region in the unbroken connected components includes: If the number of endpoints in the preset region is the same as the preset number, then the number of endpoints in the preset region is taken as the target number; If the number of endpoints in the preset region is different from the preset number, then the maximum value between the number of endpoints in the preset region and the first target number is determined; The target quantity is determined based on the maximum value and the preset quantity.

5. The method according to claim 4, wherein, Determining the target quantity based on the maximum value and the preset quantity includes: If the maximum value is less than or equal to the preset quantity, then the maximum value is taken as the target quantity; If the maximum value is greater than the preset number, then traverse each fourth connected region in the broken connected regions and the unbroken connected regions, and count the number of tabs in each fourth connected region. The number of poles in each of the fourth connected regions is added together to obtain the second target number; The second target quantity is taken as the target quantity.

6. The method according to claim 3, wherein, The counting of poles in each third connected component includes: Determine the sampling points for each of the third connected components; In a preset horizontal direction, the sampling points of each third connected component are sorted according to their positions to obtain a sorting result; Based on the sorting results and a preset threshold, the number of electrodes in each third connected region is determined.

7. The method according to claim 6, wherein, The step of determining the number of poles in each third connected component based on the sorting result and a preset threshold includes: Based on the sorting results, determine whether the distance between two adjacent sampling points is greater than the preset threshold. If so, then determine the number of tabs on the vertical cross section between the two adjacent sampling points; The number of electrodes in each third connected region is determined based on the number of electrodes on the vertical cross section between two adjacent sampling points.

8. The method according to claim 6, wherein, Determining the sampling points for each third connected component includes: Determine the intersection points, first-type endpoints, and second-type endpoints in each of the third connected components; The burrs in the first type of endpoints and the second type of endpoints are removed to obtain the processed endpoints. The processed endpoints and the intersection points are used as the sampling points.

9. A device for detecting tab folding, wherein, include: The extraction and processing module is used to perform skeleton extraction processing on the cross-sectional image of the multilayer electrode to obtain the skeleton image of the multilayer electrode. A merging module is used to merge broken connected components in the skeleton image to obtain merged connected components. The broken connected components are multiple connected components belonging to the same tab cross-section. The merging of broken connected components in the skeleton image to obtain merged connected components includes: if the endpoint of a connected component is within a preset area of ​​the skeleton image, determining a first foreground point and a second foreground point adjacent to the endpoint, wherein the endpoint, the first foreground point, and the second foreground point are located in different connected components; and performing merging processing based on the connected component where the endpoint is located, the first connected component where the first foreground point is located, and the second connected component where the second foreground point is located to obtain the merged connected components. The statistics module is used to count the target number of the multilayer electrodes based on the merged connected components and the unbroken connected components. The detection module is used to detect whether any tabs in the multi-layer tabs are in a folded state, based on the target quantity and the preset quantity.

10. An electronic device, wherein, include: A memory and a processor, the memory storing a computer program executable by the processor, the processor executing the computer program to implement the method according to any one of claims 1-8.

11. A computer-readable storage medium, wherein, The storage medium stores a computer program, which, when read and executed, implements the method described in any one of claims 1-8.

12. A computer program product, wherein, The computer program product includes a computer program that, when executed by a processor, is used to implement the method described in any one of claims 1-8.

Citation Information

Patent Citations

  • Method for detecting bending of laminated battery electrode lugs

    CN108375544A

  • Visual online detection method for laser welding spot of lithium battery tab

    CN111307818A