Battery cell detection method, device, electronic equipment and storage medium
Through radiography and image processing technology, the battery core area is extracted and the gray value distribution is determined, which solves the problem of overlapping cathode and anode material entry positions in battery core detection, improves the accuracy and credibility of the detection results, and enhances detection efficiency.
Patent Information
- Application Number
- CN202410518413.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-28
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2044-04-28
AI Technical Summary
The existing technology cannot accurately determine whether the cathode and anode feeding positions of the finished battery core overlap during battery core detection, which affects the accuracy and reliability of the detection results. Moreover, the detection method needs to be carried out during the battery core winding process, which affects production efficiency. .
Obtain the battery core image through radiography, extract the battery core area and determine whether the cathode and anode feeding positions overlap according to the pixel gray value distribution. Binarization processing, image enhancement and preset models are used for detection to improve the accuracy of the detection results.
It improves the accuracy and credibility of battery core detection results, avoids detection limitations during the battery core winding process, and enhances detection efficiency and accuracy.
Smart Images

Figure CN118096765B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of battery technology, and in particular to a battery cell detection method, device, electronic device and storage medium. Background Art
[0002] In the structure of the battery, the battery cell is an important component. In order to improve the safety of the battery, it is usually necessary to test the internal structure of the battery cell.
[0003] In the related art, the method for testing the internal structure of the battery cell is to test the battery cell during the battery cell winding process to determine whether there are defects in the feeding position of the finished battery cell. However, this method requires testing during the battery cell winding process. If the battery cell is not disassembled for verification, it is impossible to determine whether the test result is applicable to the finished battery cell, which affects the accuracy and credibility of the battery cell test result. Summary of the invention
[0004] In view of the above problems, the present application provides a battery cell detection method, device, electronic device and storage medium, which can improve the accuracy and credibility of battery cell detection results.
[0005] In a first aspect, an embodiment of the present application provides a battery cell detection method, the method comprising: extracting a battery cell area from a battery cell image obtained by X-ray imaging; and obtaining a battery cell feeding position detection result based on the gray value distribution of pixels in the battery cell area.
[0006] In the technical solution of the embodiment of the present application, the cell area is extracted from the cell image obtained by radiographic imaging to determine the cell feeding position detection result according to the grayscale distribution of pixels in the cell area. When the cathode feeding position overlaps with the anode feeding position, the number of cell layers in the overlapping part increases, resulting in more layers that need to be penetrated during radiographic imaging. At this time, the pixel grayscale value of the overlapping part in the cell area is low; and if the cathode feeding position does not overlap with the anode feeding position, the number of cell layers between the cathode feeding position and the anode feeding position is small, resulting in fewer layers that need to be penetrated during radiographic imaging. At this time, the pixel grayscale value between the cathode feeding position and the anode feeding position is high. Therefore, by detecting the grayscale value distribution of pixels in the cell area, it is possible to determine whether the cathode feeding position and the anode feeding position of the finished cell overlap, thereby improving the accuracy and credibility of the cell detection results.
[0007] In some embodiments, extracting a cell region from a cell image obtained by radiographic imaging includes: binarizing the cell image according to the grayscale value of each pixel in the cell image to obtain a binary cell image of the cell image; and obtaining a cell region in the cell image according to a connected region corresponding to the cell in the binary cell image. Thus, the cell image noise can be effectively removed by binarization, and the connected region in the binary image can be used to accurately extract the cell region from the cell image, thereby improving the accuracy of cell region recognition.
[0008] In some embodiments, the cell image is binarized according to the gray value of each pixel in the cell image to obtain a binary cell image of the cell image, including: binarizing the cell image according to the gray value of each pixel in the cell image to obtain an initial binary image of the cell image; and performing image corrosion and image expansion on the initial binary image in sequence to obtain a binary cell image of the cell image. Thus, the binary image of the cell image can be effectively denoised, the clarity and readability of the acquired binary image can be improved, and the accuracy of the cell area subsequently extracted using the binary image can be improved.
[0009] In some embodiments, a cell area in the cell image is obtained based on a connected area corresponding to the cell in the binary cell image, including: obtaining a target area in the cell image based on the connected area; performing image enhancement processing on the target area to obtain the cell area; wherein the image enhancement processing includes filtering each column of pixels in the target area located in a vertical direction of the feed position to highlight or enhance the features in the vertical direction, so that the features of the anode and cathode feed positions in the obtained cell area are more prominent, and the cathode feed position and the anode feed position can be observed more clearly, which is convenient for subsequent cell detection.
[0010] In some embodiments, obtaining the input position detection result of the battery cell according to the gray value distribution of pixels in the battery cell area includes: obtaining the input position detection result of the battery cell according to the gray value of each column of pixels in the battery cell area in the vertical direction of the input position. When detecting the battery cell, the input position characteristics of the battery cell can be effectively used for detection, thereby improving the accuracy of the input position detection result of the battery cell.
[0011] In some embodiments, according to the grayscale values of each column of pixels in the vertical direction of the feeding position in the cell area, obtaining the feeding position detection result of the cell includes: comparing the grayscale values of each column of pixels with a preset grayscale value to obtain the feeding position detection result of the cell; wherein the preset grayscale value is the minimum grayscale value detected from the cell area of the abnormal cell with overlapping feeding positions. In this way, by comparing the grayscale values of each column of pixels with the preset grayscale value, it is possible to quickly determine whether the feeding positions of the cell overlap, thereby improving the detection efficiency of the cell.
[0012] In some embodiments, the input position detection result of the battery cell is obtained according to the grayscale values of each column of pixels in the battery cell region located in the vertical direction of the input position, including: obtaining the grayscale values of each column of pixels in the battery cell region located in the vertical direction of the input position; obtaining the grayscale change data of the battery cell region according to the grayscale values of each adjacent column of pixels; and obtaining the input position detection result of the battery cell according to the grayscale change data. Therefore, when judging the input position detection result of the battery cell, the overall distribution of each column of pixels in the vertical direction of the input position is taken into account, thereby improving the accuracy of the input position detection result.
[0013] In some embodiments, obtaining the input position detection result of the battery cell according to the grayscale change data includes: determining the anode input position and cathode input position of the battery cell according to the grayscale difference of adjacent grayscale values in the grayscale change data; and obtaining the overlap distance between the anode input position and the cathode input position of the battery cell according to the anode input position and the cathode input position. Thus, the obtained input position detection result is more accurate, which is convenient for subsequent adjustment of the battery cell.
[0014] In some embodiments, based on the grayscale change data, a detection result of the battery cell's feeding position is obtained, including: using a pre-trained preset model to detect the grayscale change data to obtain the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell; wherein the preset model is trained by the grayscale change data corresponding to each battery cell area sample, and each of the battery cell area samples includes a battery cell area of a normal battery cell and a battery cell area of an abnormal battery cell.
[0015] In a second aspect, the present application provides a battery cell detection device, comprising:
[0016] The area extraction module is used to extract the battery cell area from the battery cell image obtained by radiographic imaging; the battery cell detection module is used to obtain the battery cell feeding position detection result according to the gray value distribution of the pixels in the battery cell area.
[0017] In the technical solution of the embodiment of the present application, the cell area is extracted from the cell image obtained by X-ray imaging to determine the cell feeding position detection result according to the grayscale distribution of pixels in the cell area, thereby improving the accuracy and credibility of the cell detection result.
[0018] In some embodiments, the region extraction module is specifically used to: binarize the battery cell image according to the grayscale value of each pixel in the battery cell image to obtain a binary battery cell image of the battery cell image; and obtain a battery cell region in the battery cell image according to a connected region corresponding to the battery cell in the binary battery cell image.
[0019] In some embodiments, the region extraction module is specifically used to: binarize the battery cell image according to the grayscale value of each pixel in the battery cell image to obtain an initial binary image of the battery cell image; and perform image corrosion and image expansion on the initial binary image in sequence to obtain a binary battery cell image of the battery cell image.
[0020] In some embodiments, the region extraction module is specifically used to: obtain a target region in the battery cell image based on the connected region; perform image enhancement processing on the target region to obtain the battery cell region; wherein the image enhancement processing includes filtering each column of pixels in the target region in a vertical direction of the feeding position.
[0021] In some embodiments, the battery cell detection module is specifically used to obtain a battery cell feeding position detection result according to the grayscale value of each column of pixels in the battery cell area located in a vertical direction of the feeding position.
[0022] In some embodiments, the battery cell detection module is specifically used to: compare the grayscale value of each column of pixels with a preset grayscale value to obtain a battery cell feeding position detection result; wherein the preset grayscale value is the minimum grayscale value detected from the battery cell area of the abnormal battery cell with overlapping feeding positions.
[0023] In some embodiments, the battery cell detection module is specifically used to: obtain the grayscale values of each column of pixels in the battery cell area located in the vertical direction of the feeding position; obtain the grayscale change data of the battery cell area according to the grayscale values of each adjacent column of pixels; and obtain the feeding position detection result of the battery cell according to the grayscale change data.
[0024] In some embodiments, the battery cell detection module is specifically used to: determine the anode input position and the cathode input position of the battery cell according to the grayscale difference between adjacent grayscale values in the grayscale change data; and obtain the overlapping distance between the anode input position and the cathode input position of the battery cell according to the anode input position and the cathode input position.
[0025] In some embodiments, the battery cell detection module is specifically used to: use a pre-trained preset model to detect the grayscale change data to obtain the overlapping distance between the anode feed position and the cathode feed position of the battery cell; wherein the preset model is trained by the grayscale change data corresponding to each battery cell area sample, and each of the battery cell area samples includes a battery cell area of a normal battery cell and a battery cell area of an abnormal battery cell.
[0026] In a third aspect, the present application provides an electronic device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor executes the method in the implementation of the first aspect when executing the computer program.
[0027] In a fourth aspect, the present application provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, performs the method in the implementation of the first aspect.
[0028] In a fifth aspect, the present application provides a computer program product, which, when running on a computer, enables the computer to execute the method in the first aspect or any optional implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0029] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below. The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings:
[0030] Figure 1 A first flow chart of a battery cell detection method according to some embodiments of the present application;
[0031] Figure 2 Schematic diagram of battery cells in some embodiments of the present application;
[0032] Figure 3 A schematic diagram of a cell area in some embodiments of the present application;
[0033] Figure 4a This is a schematic diagram of a battery cell structure with a normal feeding position in some embodiments of the present application;
[0034] Figure 4b This is a schematic diagram of a battery cell structure with abnormal feeding position in some embodiments of the present application;
[0035] Figure 5a A schematic diagram of pixel distribution in a cell area of a normal cell in some embodiments of the present application;
[0036] Figure 5bA schematic diagram of pixel distribution in a cell area of abnormal cells in some embodiments of the present application;
[0037] Figure 6 A second flow chart of a battery cell detection method according to some embodiments of the present application;
[0038] Figure 7 This is a schematic diagram of grayscale change data of a normal battery cell in some embodiments of the present application;
[0039] Figure 8 A schematic diagram of grayscale change data of abnormal cells in some embodiments of the present application;
[0040] Fig. 9 A third flow chart of a battery cell detection method according to some embodiments of the present application;
[0041] Fig.10 This is a schematic diagram of the structure of a battery cell detection device according to some embodiments of the present application;
[0042] Fig.11 This is a schematic diagram of the structure of an electronic device according to some embodiments of the present application.
[0043] The reference numerals in the specific implementation manner are as follows:
[0044] 401 -region extraction module; 402 -cell detection module; 5 -electronic device; 501 -processor; 502 -memory; 503 -communication bus. DETAILED DESCRIPTION
[0045] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.
[0046] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.
[0047] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.
[0048] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0049] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.
[0050] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0051] In the battery structure, the cell is an important component. During the production process of the cell, due to the influence of the environment, process or other accidental factors, the internal structure of the produced cell may have the defect of overlapping feeding positions of the anode and cathode. Therefore, in order to improve the yield rate of the cell, it is necessary to detect the internal structure of the cell.
[0052] At present, the internal structure of the battery cell is detected by disassembling the battery cell to detect whether there are defects in the feeding position of the anode and cathode of the battery cell. However, this method will damage the battery cell and has poor safety. To this end, in the related art, the battery cell can be inspected by obtaining the winding image of the battery cell during the winding process of the battery cell to determine whether there are defects in the feeding position of the finished battery cell. However, this method requires detection during the winding process of the battery cell, which affects the production efficiency of the battery cell, and after the battery cell is made into a finished product, if the disassembly verification is not performed, it is impossible to determine whether the detection result is applicable to the battery cell after it is made into a finished product. At the same time, affected by the environment, process or other accidental factors, the final finished battery cell may be different from the structure of the theoretical finished battery cell made using the winding process, resulting in the accuracy and credibility of the battery cell detection results.
[0053] In response to the above technical problems, the embodiments of the present application extract the cell area from the cell image obtained by radiographic imaging to determine the cell feeding position detection result according to the grayscale distribution of pixels in the cell area. When the cathode feeding position overlaps with the anode feeding position, the number of cell layers in the overlapping part increases, resulting in more layers that need to be penetrated during radiographic imaging. At this time, the pixel grayscale value of the overlapping part in the cell area is low; and if the cathode feeding position does not overlap with the anode feeding position, the number of cell layers between the cathode feeding position and the anode feeding position is small, resulting in fewer layers that need to be penetrated during radiographic imaging. At this time, the pixel grayscale value between the cathode feeding position and the anode feeding position is high. Therefore, by detecting the grayscale value distribution of pixels in the cell area, it is possible to determine whether the cathode feeding position and the anode feeding position of the finished cell overlap, thereby improving the accuracy and credibility of the cell detection results.
[0054] The cell detection method, device, electronic device and storage medium disclosed in the embodiments of the present application can be applied to a server to detect whether the anode and cathode feeding positions of the finished cell overlap. The server can be an independent server or a server cluster composed of multiple servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence sampling point equipment.
[0055] According to some embodiments of the present application, a battery cell detection method is provided, which can be applied to the aforementioned server. Figure 1 As shown, the battery cell detection method includes:
[0056] S101, extracting a cell area from a cell image obtained by radiographic imaging;
[0057] S102, obtaining a test result of a feeding position of the battery cell according to the gray value distribution of pixels in the battery cell area.
[0058] Among them, radiographic imaging refers to an imaging technology that uses a beam of rays to pass through the object to be measured to obtain its projection, such as X-Ray imaging. The internal structure of the battery cell has multiple battery cell layers, and traditional planar imaging, such as using CCD (charge coupled device) and other camera equipment to obtain battery cell images, can only obtain the surface image of the battery cell because it does not have penetration, and cannot be used to determine the number of battery cell layers. However, rays, such as X-rays, can penetrate the battery cell, so the image obtained will form pixel points with corresponding grayscale values according to the number of battery cell layers penetrated by the rays. If the number of battery cell layers penetrated by the rays is small, the grayscale value of the pixel point formed is low; conversely, the grayscale value of the pixel point formed is high. In this way, the grayscale image of the battery cell can be obtained through radiographic imaging, that is, the battery cell image that characterizes the structure of the battery cell layer, so that the grayscale value of the pixel in the battery cell image can be used to detect the battery cell later.
[0059] When it is necessary to inspect the battery cell, the battery cell can be first subjected to X-ray imaging to obtain a grayscale image of the battery cell, which is the battery cell image. For example, a 16-bit grayscale image of the battery cell can be obtained through an X-Ray device as the battery cell image. Figure 2 shown.
[0060] After obtaining the cell image of the cell, the cell image may be preprocessed, such as ROI (Region of Interest) extraction, to extract the cell region from the cell image, such as Figure 3 shown.
[0061] As a possible implementation manner, for extracting the cell region, edge extraction may be performed on the cell image to obtain an edge image of the cell image, so as to extract the cell region from the cell image according to the edge image.
[0062] Among them, edge extraction refers to the processing of image contours in digital image processing. The place where the grayscale change rate of the image is the largest is defined as the edge, that is, the inflection point. The inflection point refers to the point where the function undergoes a concave-convex change and the second-order derivative is zero. To extract the edge of the battery cell image, an edge detection operator can be used to perform edge detection on the battery cell image to extract the contours of all objects from the battery cell image to form an edge image. The edge detection operator can be any one of the edge operators such as the gradient edge operator, the Roberts edge operator, the Laplace edge operator, and the Sobel edge operator.
[0063] After the edge image is acquired, the edge image may be subjected to cell boundary detection to extract the cell region from the cell image based on the detected cell boundary. Exemplarily, an edge line corresponding to the outline of the cell may be identified from the cell image as the cell boundary to extract the cell region of the cell from the cell image using the identified cell boundary. Alternatively, the cell boundary may be identified from the edge image based on a preset grayscale value. The preset grayscale value may be the grayscale value of the boundary pixel of the cell. For example, by using the preset grayscale value, each edge line in the edge image is traversed to find an edge line from the edge image whose grayscale value is the same as the preset grayscale value, or whose grayscale value is less than the preset grayscale value. All the edge lines found are used to extract the cell region from the cell image.
[0064] In addition, the cell area can also be extracted from the cell image through other conventional ROI extraction methods, such as image segmentation models based on OpenCV or pre-trained models.
[0065] Since the battery cell is formed by winding the cathode electrode sheet, the anode electrode sheet and the separator, when the starting position of the winding of the cathode electrode sheet of the battery cell and the starting position of the winding of the anode electrode sheet, that is, the cathode feeding position and the anode feeding position do not overlap, the number of battery cell layers in the area between the two is less than the number of battery cell layers on both sides of the area, such as Figure 4a If the cathode feed position overlaps with the anode feed position, the number of cell layers in the area between the two will be greater than the number of cell layers on both sides of the area, as shown in Figure 4b shown.
[0066] If the cathode feeding position and the anode feeding position do not overlap, since the number of battery cell layers in the area between the cathode feeding position and the anode feeding position is less than the number of battery cell layers on both sides of the area, after X-ray imaging, the grayscale value of the area between the cathode feeding position and the anode feeding position will be greater than the grayscale value of the areas on both sides. Figure 5a Similarly, if the cathode material input position overlaps with the anode material input position, then after X-ray imaging, the grayscale value of the area between the cathode material input position and the anode material input position will be smaller than the grayscale value of the areas on both sides, as shown in Figure 2. Figure 5b Based on this, after extracting the cell area from the cell image, the grayscale value distribution of the pixels in the cell area can be detected to determine whether the cathode and anode material input positions of the cell overlap based on the grayscale value distribution.
[0067] Exemplarily, after extracting the cell area, the adjacent pixels can be clustered according to the grayscale value of each pixel in the cell area, such as clustering by the KNN algorithm to obtain multiple sub-areas, and then the grayscale value distribution between the sub-areas is detected. If it is detected that the average grayscale value of a certain sub-area is greater than the average grayscale value of the sub-areas on both sides, it can be determined that the feed position detection result of the cell is that the positive and negative electrode feed positions of the cell do not overlap, so as to determine that the cell is a normal cell; if it is detected that the average grayscale value of a certain sub-area is less than the average grayscale value of the sub-areas on both sides, it can be determined that the feed position detection result of the cell is that the positive and negative electrode feed positions of the cell overlap, so as to determine that the cell is an abnormal cell. Alternatively, the area of a sub-area whose average grayscale value is less than the average grayscale value of the sub-areas on both sides can be detected; if the area of the sub-area is greater than 0, it means that there is an overlap of the positive and negative electrode feed positions, and the cell can be determined to be an abnormal cell; otherwise, the cell can be determined to be a normal cell.
[0068] In addition, the feed position detection result can also include the feed position overlap distance. For example, the distance between the two side boundaries of the sub-region whose average gray value is less than the average gray value of the sub-regions on both sides in the battery cell area can be used as the anode and cathode feed position overlap distance of the battery cell to obtain the specific abnormal situation of the battery cell, which is convenient for subsequent classification and interception of abnormal batteries. Among them, the boundary of the sub-region refers to the boundary between the sub-region and its adjacent sub-region.
[0069] By extracting the cell area from the cell image obtained by radiographic imaging, the cell feeding position detection result is determined according to the grayscale distribution of pixels in the cell area. When the cathode feeding position overlaps with the anode feeding position, the number of cell layers in the overlapping part increases, resulting in more layers that need to be penetrated during radiographic imaging. At this time, the pixel grayscale value of the overlapping part in the cell area is low; if the cathode feeding position does not overlap with the anode feeding position, the number of cell layers between the cathode feeding position and the anode feeding position is small, resulting in fewer layers that need to be penetrated during radiographic imaging. At this time, the pixel grayscale value between the cathode feeding position and the anode feeding position is high. Therefore, by detecting the grayscale value distribution of pixels in the cell area, it is possible to determine whether the cathode feeding position and the anode feeding position of the finished cell overlap, thereby improving the accuracy and credibility of the cell detection results.
[0070] When extracting the battery cell area, in order to reduce the amount of data for image processing and reduce noise interference during battery cell area identification, in some embodiments, the battery cell area is extracted from a battery cell image obtained by X-ray imaging, including: binarizing the battery cell image according to the grayscale value of each pixel in the battery cell image to obtain a binary battery cell image of the battery cell image; and obtaining the battery cell area in the battery cell image according to the connected area in the binary battery cell image corresponding to the battery cell.
[0071] As a possible implementation, when it is necessary to extract the cell area from the cell image, the grayscale value of each pixel in the cell image can be first subjected to a binarization algorithm to determine the corresponding threshold value, so as to binarize the cell image using the threshold value, such as adaptive binarization, to obtain a binary cell image of the cell image. The binary cell image obtained at this time includes the cell area as the foreground and other areas as the background. The binarization algorithm can be any binarization algorithm such as the bimodal method, the P parameter method, the iterative method, and the OTSU method.
[0072] Taking the OTSU binarization algorithm as an example, when the threshold is t, P(t) is the probability that the pixel in the battery cell image is assigned to the foreground pixel, and the average grayscale of the pixel assigned to the foreground is , is the probability that the pixel in the cell image is classified as the background, and its average grayscale is , the cumulative mean of gray level t is , the gray value of the entire battery cell image is , then:
[0073] (1)
[0074] According to the concept of variance, the expression can be expressed as:
[0075] (2)
[0076] Substituting formula (1) into formula (2), we have:
[0077] (3)
[0078] Finally, it can be written as the following formula, where , , :
[0079] (4)
[0080] After solving the optimal threshold using the OTSU algorithm, the battery cell image can be binarized according to the optimal threshold:
[0081] (5)
[0082] in, Indicates the coordinates of the pixel in the cell image.
[0083] In order to further improve the clarity of the binarized cell image, the image may be subjected to secondary denoising after the adaptive binarization, such as performing secondary denoising on the image after the adaptive binarization through an opening operation to obtain a binarized cell image of the cell image.
[0084] After the binary cell image is obtained, the connected region corresponding to the cell can be extracted from the binary cell image, so as to extract the region corresponding to the connected region from the cell image as the cell region.
[0085] Exemplarily, a connected region analysis may be performed on the binary cell image first, that is, each pixel in the binary cell image is assigned a new label according to the labels of its adjacent pixels, specifically:
[0086]
[0087] in, It's pixels New Tags , It's pixels The label set of the neighboring pixels of . The label includes foreground or background, and the initial label of the pixel is determined by the above binarization.
[0088] Then, the area, bounding rectangle and other information of each connected region are counted, specifically:
[0089]
[0090] in, Indicates the area of the label region.
[0091] After the connected regions are obtained, the region with the largest area among the connected regions can be determined as the connected region corresponding to the battery cell, so as to extract the region corresponding to the connected region from the battery cell image as the battery cell region.
[0092] By binarizing the battery cell image, a binary battery cell image of the battery cell image is obtained, and the battery cell region in the battery cell image is obtained based on the connected region corresponding to the battery cell in the binary battery cell image, so that the noise of the battery cell image can be effectively removed by binarization, and the connected region in the binary image can be used to accurately extract the battery cell region from the battery cell image, thereby improving the accuracy of battery cell region recognition.
[0093] In order to further improve the accuracy of battery cell area identification, in some embodiments, the battery cell image is binarized according to the grayscale value of each pixel in the battery cell image to obtain a binary battery cell image of the battery cell image, including: binarizing the battery cell image according to the grayscale value of each pixel in the battery cell image to obtain an initial binary image of the battery cell image; and performing image corrosion and image expansion on the initial binary image in sequence to obtain a binary battery cell image of the battery cell image.
[0094] In some embodiments, after binarizing the cell image according to the grayscale value of each pixel in the cell image, an initial binarized image of the cell image can be obtained. After obtaining the initial binarized image, the initial binarized image can be eroded and then expanded to effectively remove small objects, isolated areas, and fine edges while maintaining the shape of larger connected areas in the image.
[0095] For example, after the initial binary cell image is obtained through binarization, a small kernel called a structure element can be used to slide and convolve on the initial binary cell image. For each pixel in the initial binary cell image, the pixels in the area covered by the structure element are updated according to certain rules, such as taking the minimum pixel value as the new value of the center pixel. Let the input image, that is, the initial binary cell image, be A, the structure element be B, and the corrosion operation be The calculation formula is as follows:
[0096]
[0097] in, represents the pixel coordinates in image A, Represents the element coordinates in the structural element B. The above formula means that within the range of the structural element, the minimum value of all covered pixels is taken as the new pixel value.
[0098] Then, the initial binary image after the image erosion operation is dilated. Image dilation can expand or expand the objects in the image by sliding the structural elements. The calculation formula is as follows:
[0099]
[0100] The calculation formula for opening operation is as follows:
[0101]
[0102] In this way, after image corrosion and image expansion, the binary image of the battery cell image can be obtained. , thereby being able to effectively denoise the binary image of the battery cell image, improve the clarity and readability of the acquired binary image, and further improve the accuracy of the battery cell area subsequently extracted using the binary image.
[0103] After the binary cell image is obtained, the cell region corresponding to the connected region in the binary cell image may be extracted from the cell image according to the connected region corresponding to the cell in the binary cell image.
[0104] In order to improve the clarity and readability of the battery cell area extracted from the battery cell image and to improve the accuracy of detecting the battery cell area, in some embodiments, the battery cell area in the battery cell image is obtained based on the connected area corresponding to the battery cell in the binary battery cell image, including: obtaining a target area in the battery cell image based on the connected area; performing image enhancement processing on the target area to obtain the battery cell area; wherein the image enhancement processing includes filtering each column of pixels in the target area in the vertical direction of the feeding position.
[0105] In some embodiments, after obtaining the connected region corresponding to the battery cell in the binary battery cell image, the region corresponding to the connected region may be extracted from the battery cell image as the target region based on the connected region.
[0106] After obtaining the target area, since the feeding position characteristics of the battery cell are reflected in the vertical direction of the anode and cathode feeding positions in the battery cell image acquired by X-ray imaging, at least each column of pixels in the vertical direction of the anode and cathode feeding positions of the battery cell in the target area can be filtered to highlight or enhance the characteristics in the vertical direction, so as to make the characteristics of the anode and cathode feeding positions in the obtained battery cell area more prominent, and the cathode feeding position and the anode feeding position can be observed more clearly, which is convenient for subsequent battery cell detection.
[0107] In addition to filtering each column of pixels in the target area in the vertical direction of the feeding position, at least one image enhancement processing method such as global contrast stretching, Laplace filtering and Gaussian filtering can be used to enhance the image of the target area.
[0108] As a possible implementation method, image enhancement processing is performed on the target area, and global contrast stretching can be used to adjust the grayscale distribution of the target area; filtering is performed on each column of pixels in the target area in the vertical direction of the feed position to highlight or enhance the pixel features of each column of pixels in the vertical direction of the feed position; Laplace filtering is used on the target area to highlight the edges and details in the target area to enhance the image features; after Laplace filtering, Gaussian filtering is performed on the target area to reduce some high-frequency noise introduced in Laplace filtering, smooth the image, improve the overall image contrast, and reduce the image edge discontinuity that may occur after Laplace filtering, thereby obtaining the battery cell area.
[0109] For example, after obtaining the target area, the pixel value range of the target area can be adjusted to enhance the image contrast of the target area. Expanding to new areas ,in is the pixel value of the target area, is the pixel value after contrast stretching, is the minimum pixel value of the target area, is the maximum pixel value of the target area.
[0110]
[0111] After completing the global contrast stretching of the target area, the target area with the global contrast stretched can be vertically filtered, that is, filtering is performed on each column of pixels in the vertical direction of the feed position. For example, a one-dimensional vertical filter is defined, and the one-dimensional filter (kernel) is , and its length is L, It indicates the position offset of the filter in the vertical direction of the feed position relative to the input image, i.e. the target area. is the pixel value of the target area, is the pixel value of the target area after longitudinal filtering.
[0112]
[0113] After completing the longitudinal filtering of the target area, Laplace filtering can be performed on the target area after the longitudinal filtering, such as performing a second differential on the target area, thereby detecting edges and details in the target area.
[0114]
[0115]
[0116]
[0117]
[0118] The Laplace operator calculation formula is as follows:
[0119]
[0120] After the Laplacian operator is used to complete the Laplacian filtering of the target area, the Gaussian filtering can be performed on the target area after the Laplacian filtering is completed. For example, the pixel values of the target area are weighted and averaged, the target area is smoothed and noise is removed, and the image details and edges are retained.
[0121] The Gaussian function is as follows:
[0122]
[0123] After the target area has completed the above-mentioned image enhancement processing, the region of interest can be extracted again for the target area after the image enhancement processing, so as to obtain the battery cell area. For example, the target area after the above-mentioned image enhancement processing is determined as the battery cell area. The finally extracted battery cell area can be as follows Figure 5a or Figure 5b In this way, the characteristics of the cathode and anode material input positions in the obtained battery cell area can be made more prominent, which is convenient for subsequent battery cell detection and improves the accuracy of battery cell detection.
[0124] After the cell area is extracted, the cell feeding detection result can be determined based on the grayscale value distribution of the pixels in the cell area. Considering that in the cell image acquired by radiographic imaging, the cell feeding position characteristics are reflected in the vertical direction of the anode and cathode feeding positions, in some embodiments, the cell feeding position detection result is obtained based on the grayscale value distribution of the pixels in the cell area, including: obtaining the cell feeding position detection result based on the grayscale values of each column of pixels in the cell area located in the vertical direction of the feeding position.
[0125] The grayscale value of any column of pixels may be the average grayscale value of each pixel in the column, or the mode value of the grayscale values of each pixel in the column. For example, for any column of pixels, the grayscale values of each pixel in the column may be added together to obtain the average value, and finally the pixel average value of the column of pixels is obtained, which is the grayscale value of the column of pixels. For example:
[0126]
[0127] in, Indicates the cell area. Indicates the height of the cell area, For the cell area i Line j The grayscale value of the pixel in the column, For the j The pixel mean of the column pixels, i.e. j Grayscale value of the column pixels.
[0128] When the cathode material feeding position does not overlap with the anode material feeding position, the number of layers penetrated by the ray at the anode and cathode material feeding positions is reduced by two layers, such as Figure 4a As shown in the figure, the higher the brightness after imaging, the higher the grayscale value of the pixels between the feeding positions of the cathode and cathode. On the contrary, between the feeding positions of the cathode and cathode, the number of layers penetrated by the rays increases by two layers, as shown in the figure. Figure 4bAs shown, the lower the brightness after imaging, the lower the grayscale value of the pixels between the feeding positions of the cathode and cathode. Therefore, after obtaining the grayscale values of each column of pixels in the vertical direction of the feeding position, each column of pixels can be traversed from left to right or from right to left to obtain the grayscale value change trend of each column of pixels. If there are some columns of pixels in each column of pixels whose grayscale value change trend is from small to large and then to small, it can be determined that the cathode feeding position and the anode feeding position do not overlap; if there are some columns of pixels in each column of pixels whose grayscale value change trend is from large to small and then to large, it can be determined that the cathode feeding position and the anode feeding position overlap.
[0129] Alternatively, the minimum grayscale value of each pixel in the cell area of the abnormal battery cell with overlapping anode and cathode feeding positions can be obtained as the preset grayscale value. Among them, the specifications and models of the abnormal battery cell are the same as those of the battery cell to be detected. It can be understood that the method of obtaining the cell area of the abnormal battery cell is the same as the method of obtaining the cell area of the battery cell to be detected, and both can be obtained in the above-mentioned recorded manner. However, when the cathode feeding position overlaps with the anode feeding position, the number of layers that the ray needs to penetrate between the cathode feeding position and the anode feeding position is the largest, resulting in the grayscale value of the pixel point between the cathode feeding position and the anode feeding position being the smallest, so the preset grayscale value can represent the grayscale value when the anode and cathode feeding positions overlap.
[0130] After obtaining the grayscale values of each column of pixels, multiple boundaries can be determined from each column of pixels according to the grayscale value differences of adjacent columns of pixels. If the grayscale value difference of two adjacent columns of pixels reaches a preset value, a column of pixels with a smaller or larger grayscale value can be extracted as a boundary. Among them, the preset value can be set according to the actual situation. After extracting multiple boundaries, the grayscale values of each column of pixels between any two boundaries can be detected to see whether they match the preset grayscale value, such as whether the difference with the preset grayscale value is within a preset range. If the grayscale values of each column of pixels between the two boundaries match the preset grayscale value, such as the grayscale values of each column of pixels between the two boundaries, and the difference with the preset grayscale value are all less than the preset threshold, then it can be determined that the feed position detection result of the battery cell is that there is a feed position overlap; otherwise, it can be determined that the feed position detection result of the battery cell is that there is no feed position overlap. Among them, the preset threshold can be set according to the actual situation. Exemplarily, a plurality of preset grayscale values corresponding to a plurality of abnormal battery cells having the same specifications and models as the battery cells to be detected may be obtained, and then the difference between the maximum value and the minimum value of each preset grayscale value may be used as the preset threshold.
[0131] The feeding position detection result of the battery cell is determined by the grayscale value of each column of pixels in the vertical direction of the feeding position in the battery cell area, so that when the battery cell is detected, the feeding position characteristics of the battery cell can be effectively used for detection, thereby improving the accuracy of the feeding position detection result of the battery cell.
[0132] In order to detect the battery cells more efficiently, in some embodiments, the input position detection result of the battery cells is obtained according to the grayscale values of each column of pixels in the vertical direction of the input position in the battery cell area, including:
[0133] The grayscale value of each column of pixels is compared with a preset grayscale value to obtain a test result of the feeding position of the battery cell; wherein the preset grayscale value is the minimum grayscale value detected from the battery cell area of the abnormal battery cell with overlapping feeding positions.
[0134] In some embodiments, for an abnormal cell with overlapping anode and cathode material feeding positions, the minimum grayscale value of each pixel in the cell area can be obtained as a preset grayscale value. The abnormal cell has the same specifications and model as the cell to be detected.
[0135] After obtaining the grayscale values of each column of pixels, the grayscale values of each column of pixels can be compared with the preset grayscale values. If there is a column of pixels whose grayscale value is less than or equal to the preset grayscale value, or there is a column of pixels whose difference between the grayscale value and the preset grayscale value is less than the preset threshold value, then it can be determined that the result of the battery cell feeding position detection is that there is a feed position overlap; if the grayscale values of each column of pixels are greater than the preset grayscale value, or the grayscale values of each column of pixels are greater than the preset grayscale value, and the difference between the grayscale value of each column of pixels and the preset grayscale value is greater than the preset threshold value, then it can be determined that the result of the battery cell feeding position detection is that there is no feed position overlap. In this way, by comparing the grayscale values of each column of pixels with the preset grayscale value, it is possible to quickly determine whether the battery cell feeding position overlaps, thereby improving the battery cell detection efficiency.
[0136] In order to make the cell feeding position detection result more accurate, in addition to obtaining the cell feeding position detection result by comparing the grayscale value of each column of pixels with the preset grayscale value, in some embodiments, Figure 6 As shown, according to the grayscale values of each column of pixels in the battery cell area in the vertical direction of the feeding position, the feeding position detection result of the battery cell is obtained, including:
[0137] S201, obtaining the grayscale value of each column of pixels in the battery cell area in a vertical direction of the feeding position;
[0138] S202, obtaining grayscale change data of the cell area according to the grayscale values of the adjacent columns of pixels;
[0139] S203, obtaining a test result of the battery cell's feeding position according to the grayscale change data.
[0140] In some embodiments, after obtaining the cell area, the grayscale values of each column of pixels can be extracted in sequence from left to right or from right to left in the vertical direction at the feeding position, and then the grayscale values of each adjacent column of pixels are arranged in sequence to obtain the grayscale change data of the cell area. Alternatively, taking the left side of the cell area as the starting position, the grayscale values of each adjacent column of pixels are converted into a grayscale value change curve representing the corresponding relationship between the grayscale value and the cell position, and the grayscale value change curve is the grayscale change data of the cell area.
[0141] If the battery cell is a normal battery cell whose cathode and anode feed positions do not overlap, based on the principle of radiation imaging, such as the principle of X-ray imaging, the number of radiation penetration layers decreases between the cathode and anode feed positions. Therefore, the grayscale change data of the normal battery cell will suddenly rise to form a peak, and then suddenly drop, such as Figure 7 If the battery cell is an abnormal battery cell with the cathode and anode feed positions overlapping, based on the principle of radiographic imaging, the number of radiation penetration layers increases between the cathode and anode feed positions, so the grayscale change data of the abnormal battery cell will suddenly drop to a trough, and then suddenly rise, as shown in Figure 2. Figure 8 shown.
[0142] Therefore, after obtaining the grayscale change data of the battery cell area, the change trend of the grayscale change data of the battery cell area can be detected. For example, the grayscale change data of the battery cell area is matched with the grayscale change data of the normal battery cell for similarity. If the grayscale change data of the battery cell area is consistent with the change trend of the grayscale change data of the normal battery cell, if the similarity between the two is greater than the preset similarity, such as 80%, it can be determined that the feed position detection result of the battery cell corresponding to the battery cell area is that the feed position does not overlap; otherwise, it can be determined that the feed position detection result of the battery cell corresponding to the battery cell area is that the feed position overlaps. Alternatively, the grayscale change data of the battery cell area is matched with the grayscale change data of the abnormal battery cell for similarity. If the grayscale change data of the battery cell area is consistent with the change trend of the grayscale change data of the abnormal battery cell, if the similarity between the two is greater than the preset similarity, it can be determined that the feed position detection result of the battery cell corresponding to the battery cell area is that the feed position overlaps; otherwise, it can be determined that the feed position detection result of the battery cell corresponding to the battery cell area is that the feed position does not overlap.
[0143] Alternatively, a pre-trained preset model may be used to detect the grayscale change data to obtain the input position detection result of the battery cell. The preset model may be a SVM classifier or other lightweight AI detection model.
[0144] For the training of the preset model, it can be to first extract cell areas from a large number of normal cells and abnormal cells as cell area samples, and then determine the grayscale change data of each cell area sample through the above method, and then input the grayscale change data of each cell area sample into the preset model for training to obtain a pre-trained preset model.
[0145] As a possible implementation method, the grayscale change data of each battery cell area sample can be input into the preset model in sequence. After obtaining the predicted feed position detection result of whether the preset model output overlaps each time, the feed position prediction result is matched with the preset feed position detection result corresponding to the grayscale change data input this time.
[0146] In the case of a mismatch between the two, the gradient descent method is used to adjust the network parameters of the preset model through error back propagation, and then the next training is carried out until the predicted feed position detection result obtained after each input of the grayscale change data of the battery area sample matches the preset feed position detection result corresponding to the grayscale change data input this time, indicating that the training of the preset model is completed and the pre-trained preset model is obtained.
[0147] In this way, when judging the test result of the feeding position of the battery cell, the overall distribution of the pixels in each column in the vertical direction of the feeding position is taken into consideration, thereby improving the accuracy of the test result of the feeding position.
[0148] In some embodiments, in addition to determining whether the cathode feeding position and the anode feeding position of the battery cell overlap, the feeding position detection result may also include the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell. Wherein, obtaining the feeding position detection result of the battery cell according to the grayscale change data includes: determining the anode feeding position and the cathode feeding position of the battery cell according to the grayscale difference of adjacent grayscale values in the grayscale change data; obtaining the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell according to the anode feeding position and the cathode feeding position.
[0149] In some embodiments, after obtaining the grayscale change data of the battery cell area, the grayscale difference of adjacent grayscale values in the grayscale change data can be obtained first. The grayscale difference is the absolute value of the difference between adjacent grayscale values. Then, one of the two columns of pixels corresponding to the highest grayscale difference in each grayscale difference, and one of the two columns of pixels corresponding to the second highest grayscale difference in each grayscale difference, are respectively determined as the anode feeding position and the cathode feeding position of the battery cell.
[0150] After determining the anode feeding position and the cathode feeding position of the battery cell, if the grayscale change data of the battery cell area matches the grayscale change data of the normal battery cell, or does not match the grayscale change data of the abnormal battery cell, then it can be determined that the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell is 0; if the grayscale change data of the battery cell area matches the grayscale change data of the abnormal battery cell, or does not match the grayscale change data of the normal battery cell, then the distance between the anode feeding position and the cathode feeding position is determined as the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell.
[0151] Alternatively, after determining that the grayscale change data of the battery cell area matches the grayscale change data of the abnormal battery cell, or does not match the grayscale change data of the normal battery cell, one of the two columns of pixels corresponding to the highest grayscale difference in each grayscale difference, and one of the two columns of pixels corresponding to the second highest grayscale difference in each grayscale difference, may be respectively determined as the anode feeding position and the cathode feeding position of the battery cell, so that the distance between the anode feeding position and the cathode feeding position may be determined as the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell.
[0152] Alternatively, after determining the anode feeding position and cathode feeding position of the battery cell, it is possible to detect in the grayscale change data whether the grayscale values of each column of pixels located between the anode feeding position and the cathode feeding position are smaller than the grayscale values of each column of pixels located outside the anode feeding position and the cathode feeding position; if so, the distance between the anode feeding position and the cathode feeding position is determined as the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell; otherwise, the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell is determined to be 0.
[0153] The anode feeding position and cathode feeding position of the battery cell are determined by the grayscale difference of adjacent grayscale values in the grayscale change data, so as to obtain the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell based on the anode feeding position and the cathode feeding position, so as to make the obtained feeding position detection result more accurate and facilitate the subsequent adjustment of the battery cell.
[0154] In addition, in some embodiments, after obtaining the grayscale change data of the battery cell area, a pre-trained preset model can be used to detect the grayscale change data to obtain the overlapping distance between the anode feed position and the cathode feed position of the battery cell; wherein the preset model is trained by the grayscale change data corresponding to each battery cell area sample, and each of the battery cell area samples includes a battery cell area of a normal battery cell and a battery cell area of an abnormal battery cell.
[0155] As a possible implementation method, the grayscale change data corresponding to each battery cell area sample may be input into the preset model in sequence. After obtaining the predicted overlapping distance between the anode feed position and the cathode feed position output by the preset model, each input is matched with the preset overlapping distance corresponding to the grayscale change data input this time.
[0156] When the two do not match, the gradient descent method is used to adjust the network parameters of the preset model through error back propagation, and then the next training is carried out until the predicted overlapping distance obtained after each input of grayscale change data matches the preset overlapping distance corresponding to the training sample input this time, which means that the training of the preset model is completed and the pre-trained preset model is obtained.
[0157] After obtaining the pre-trained preset model, the grayscale change data of the battery cell area can be input into the pre-trained preset model to identify the overlapping distance between the anode feeding position and the cathode feeding position of the battery cell through the pre-trained preset model.
[0158] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution in the present application will be described clearly and completely below. In some embodiments, Fig. 9 As shown, the battery cell detection method includes:
[0159] S301, obtaining a cell image generated by radiographic imaging of the cell;
[0160] S302, performing binarization processing on the battery cell image according to the gray value of each pixel in the battery cell image to obtain an initial binarized image of the battery cell image;
[0161] S303, performing an erosion operation and a dilation operation on the initial binary image in sequence to obtain a binary cell image of the cell image;
[0162] S304, performing connected region analysis on the binary battery cell image, extracting a region with the largest connected region area as a region of interest, and determining a target region in the battery cell image based on the region of interest;
[0163] S305, using global contrast stretching to adjust the grayscale distribution of the target area, and performing longitudinal filtering, Laplace filtering and Gaussian filtering on the target area after global contrast stretching to obtain a battery cell area;
[0164] S306, obtaining grayscale change data of the cell area according to the grayscale values of each column of pixels adjacent to each other in the vertical direction of the feeding position in the cell area;
[0165] S307, inputting the grayscale change data of the battery cell area into a pre-trained SVM classifier for detection, and obtaining the overlapping distance between the anode material input position and the cathode material input position of the battery cell.
[0166] Fig.10 A schematic structural block diagram of a battery cell detection device provided in an embodiment of the present application is shown. It should be understood that the device and Figure 1 , Figure 6 as well as Fig. 9 Corresponding to the method embodiment executed in, the steps involved in the aforementioned method can be executed. The specific functions of the device can be found in the description above. To avoid repetition, the detailed description is appropriately omitted here. The device includes at least one software function module that can be stored in a memory in the form of software or firmware or solidified in the operating system (OS) of the device. Specifically, the device includes: a region extraction module 401, which is used to extract a cell region from a cell image obtained by radiographic imaging; a cell detection module 402, which is used to obtain a cell feeding position detection result according to the gray value distribution of pixels in the cell region.
[0167] In the technical solution of the embodiment of the present application, the cell area is extracted from the cell image obtained by radiographic imaging to determine the cell feeding position detection result according to the grayscale distribution of pixels in the cell area. When the cathode feeding position overlaps with the anode feeding position, the number of cell layers in the overlapping part increases, resulting in more layers that need to be penetrated during radiographic imaging. At this time, the pixel grayscale value of the overlapping part in the cell area is low; and if the cathode feeding position does not overlap with the anode feeding position, the number of cell layers between the cathode feeding position and the anode feeding position is small, resulting in fewer layers that need to be penetrated during radiographic imaging. At this time, the pixel grayscale value between the cathode feeding position and the anode feeding position is high. Therefore, by detecting the grayscale value distribution of pixels in the cell area, it is possible to determine whether the cathode feeding position and the anode feeding position of the finished cell overlap, thereby improving the accuracy and credibility of the cell detection results.
[0168] According to some embodiments of the present application, the region extraction module 401 is specifically used to: binarize the battery cell image according to the grayscale value of each pixel in the battery cell image to obtain a binary battery cell image of the battery cell image; and obtain a battery cell region in the battery cell image according to a connected region corresponding to the battery cell in the binary battery cell image.
[0169] According to some embodiments of the present application, the region extraction module 401 is specifically used to: binarize the battery cell image according to the grayscale value of each pixel in the battery cell image to obtain an initial binary image of the battery cell image; and sequentially perform image corrosion and image expansion on the initial binary image to obtain a binary battery cell image of the battery cell image.
[0170] According to some embodiments of the present application, the region extraction module 401 is specifically used to: obtain a target region in the battery cell image based on the connected region; perform image enhancement processing on the target region to obtain the battery cell region; wherein the image enhancement processing includes filtering each column of pixels in the target region located in a vertical direction of the feeding position.
[0171] According to some embodiments of the present application, the battery cell detection module 402 is specifically used for:
[0172] The result of the feeding position detection of the battery cell is obtained according to the grayscale value of each column of pixels located in the vertical direction of the feeding position in the battery cell area.
[0173] According to some embodiments of the present application, the battery cell detection module 402 is specifically used for:
[0174] The grayscale value of each column of pixels is compared with a preset grayscale value to obtain a test result of the feeding position of the battery cell; wherein the preset grayscale value is the minimum grayscale value detected from the battery cell area of the abnormal battery cell with overlapping feeding positions.
[0175] According to some embodiments of the present application, the battery cell detection module 402 is specifically used for:
[0176] The grayscale values of each column of pixels in the battery cell area in the vertical direction of the feeding position are obtained; the grayscale change data of the battery cell area is obtained according to the grayscale values of each adjacent column of pixels; and the feeding position detection result of the battery cell is obtained according to the grayscale change data.
[0177] According to some embodiments of the present application, the battery cell detection module 402 is specifically used to: determine the anode input position and the cathode input position of the battery cell according to the grayscale difference between adjacent grayscale values in the grayscale change data; and obtain the overlapping distance between the anode input position and the cathode input position of the battery cell according to the anode input position and the cathode input position.
[0178] According to some embodiments of the present application, the battery cell detection module 402 is specifically used to: use a pre-trained preset model to detect the grayscale change data to obtain the overlapping distance between the anode feed position and the cathode feed position of the battery cell; wherein the preset model is trained by the grayscale change data corresponding to each battery cell area sample, and each of the battery cell area samples includes a battery cell area of a normal battery cell and a battery cell area of an abnormal battery cell.
[0179] According to some embodiments of the present application, Fig.11As shown, an embodiment of the present application provides an electronic device 5, including: a processor 501 and a memory 502, the processor 501 and the memory 502 are interconnected and communicate with each other through a communication bus 503 and / or other forms of connection mechanisms (not marked), the memory 502 stores a computer program executable by the processor 501, and when the computing device is running, the processor 501 executes the computer program to execute a method executed by an external terminal in any optional implementation method, for example: extracting a cell area from a cell image obtained by X-ray imaging; obtaining a cell feeding position detection result according to the gray value distribution of pixels in the cell area.
[0180] The present application provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the method in any of the aforementioned optional implementations is executed.
[0181] Among them, the storage medium can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable red-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk or optical disk.
[0182] The present application provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the method in any optional implementation manner.
[0183] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them; although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the scope of the technical solutions of the embodiments of the present application, and they should all be included in the scope of the claims and specification of the present application. In particular, as long as there is no structural conflict, the various technical features mentioned in the various embodiments can be combined in any way. The present application is not limited to the specific embodiments disclosed herein, but includes all technical solutions that fall within the scope of the claims.
Claims
1. A battery cell detection method, characterized in that: The method comprises: Extracting a cell region from a cell image obtained by radiographic imaging; Obtaining a test result of the feeding position of the battery cell according to the gray value distribution of pixels in the battery cell area; The step of obtaining the input position detection result of the battery cell according to the gray value distribution of the pixels in the battery cell area comprises: Clustering adjacent pixels according to the grayscale value of each pixel in the cell area to obtain a plurality of sub-areas; Detecting the average grayscale value of each of the sub-regions, and when the average grayscale value of one of the sub-regions is less than the average grayscale value of the sub-regions on both sides thereof, determining that the feeding position detection result of the battery cell is that the feeding positions of the cathode and anode of the battery cell overlap; Among them, the anode and cathode feeding positions include a cathode feeding position and an anode feeding position, the cathode feeding position includes the starting position for winding the cathode electrode sheet of the battery cell, and the anode feeding position includes the starting position for winding the anode electrode sheet of the battery cell.
2. The method according to claim 1, characterized in that Extract the cell area from the cell image obtained by radiographic imaging, including: According to the gray value of each pixel in the battery cell image, binarization processing is performed on the battery cell image to obtain a binary battery cell image of the battery cell image; A cell region in the cell image is obtained according to a connected region corresponding to the cell in the binary cell image.
3. The method according to claim 2, characterized in that According to the gray value of each pixel in the cell image, binarization processing is performed on the cell image to obtain a binarized cell image of the cell image, including: According to the gray value of each pixel in the battery cell image, binarization processing is performed on the battery cell image to obtain an initial binarization image of the battery cell image; The initial binary image is sequentially subjected to image corrosion and image expansion to obtain a binary cell image of the cell image.
4. The method according to claim 2 or 3, characterized in that: Obtaining a cell region in the cell image according to a connected region corresponding to the cell in the binary cell image includes: Obtaining a target area in the cell image according to the connected area; Performing image enhancement processing on the target area to obtain the battery cell area; The image enhancement process includes filtering each column of pixels in the target area in the vertical direction of the material feeding position.
5. The method according to any one of claims 1 to 3, characterized in that: According to the gray value distribution of pixels in the battery cell area, a battery cell feeding position detection result is obtained, including: The result of the feeding position detection of the battery cell is obtained according to the grayscale value of each column of pixels located in the vertical direction of the feeding position in the battery cell area.
6. The method according to claim 5, characterized in that According to the grayscale values of each column of pixels in the battery cell area and located in the vertical direction of the feeding position, the feeding position detection result of the battery cell is obtained, including: Compare the grayscale value of each column of pixels with the preset grayscale value to obtain the feeding position detection result of the battery cell; The preset grayscale value is the minimum grayscale value detected from the cell area of the abnormal cells with overlapping feeding positions.
7. The method according to claim 5, characterized in that According to the grayscale values of each column of pixels in the battery cell area and located in the vertical direction of the feeding position, the feeding position detection result of the battery cell is obtained, including: Acquire the grayscale value of each column of pixels in the battery cell area in the vertical direction of the feeding position; Obtaining grayscale change data of the cell area according to the grayscale values of adjacent columns of pixels; According to the grayscale change data, the input position detection result of the battery cell is obtained.
8. The method according to claim 7, characterized in that According to the grayscale change data, the input position detection result of the battery cell is obtained, including: Determining an anode material input position and a cathode material input position of the battery cell according to a grayscale difference between adjacent grayscale values in the grayscale change data; According to the anode material entry position and the cathode material entry position, an overlapping distance between the anode material entry position and the cathode material entry position of the battery cell is obtained.
9. The method according to claim 8, characterized in that According to the grayscale change data, the input position detection result of the battery cell is obtained, including: Using a pre-trained preset model to detect the grayscale change data, and obtain the overlapping distance between the anode material input position and the cathode material input position of the battery cell; The preset model is obtained by training the grayscale change data corresponding to each battery cell area sample, and each of the battery cell area samples includes a battery cell area of a normal battery cell and a battery cell area of an abnormal battery cell.
10. A battery cell detection device, characterized in that: For implementing the method according to any one of claims 1 to 9, the device comprises: A region extraction module, used for extracting a cell region from a cell image obtained by radiographic imaging; The battery cell detection module is used to obtain the battery cell feeding position detection result according to the gray value distribution of the pixels in the battery cell area.
11. An electronic device comprising a processor and a memory storing a computer program, characterized in that: When the processor executes the computer program, the method according to any one of claims 1 to 9 is implemented.
12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.
Citation Information
Patent Citations
Quality detection method of battery cells
CN103925893A
Battery cell quality detection method
CN107941805A
Battery cell detection method and device and equipment
CN112577421A
Battery cell positioning method, controller and computer readable storage medium
CN115797440A
Gap detection device and gap detection method
CN115839684A
