Solid-state lithium ion battery surface defect detection method and system

Using image processing technology to identify and analyze defects on the surface of solid-state lithium-ion batteries solves the problem of existing detection methods being insensitive to tiny defects and improves detection accuracy.

CN118735867AInactive Publication Date: 2024-10-01YING NUO BEI SEN NENG YUAN KE JI (SHEN ZHEN) YOU XIAN GONG SI
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202410771733.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-15
Publication Date
2024-10-01
Estimated Expiration
Not applicable · inactive patent

AI Technical Summary

Technical Problem

Existing surface defect detection methods for solid-state lithium-ion batteries are insensitive to tiny defects, resulting in reduced detection accuracy.

Method used

Through image acquisition, grayscale processing, image segmentation, contour point extraction, matrix tilt angle correction, traversal window processing, image resolution analysis and other steps, defect images are identified and generated, defect features are extracted, and then the defect types on the battery surface are analyzed.

Benefits of technology

The accuracy of surface defect detection of solid-state lithium-ion batteries is improved, and tiny defects on the battery surface can be more effectively identified and analyzed.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118735867A_ABST
    Figure CN118735867A_ABST
Patent Text Reader

Abstract

The invention relates to the technical field of battery defect detection, and provides a solid-state lithium ion battery surface defect detection method and system, and the method comprises the steps: carrying out the gray processing of a battery visual image, obtaining a gray visual image, carrying out the image segmentation of the gray visual image, and obtaining a target visual image; extracting a contour point set in the target visual image, searching an external matrix corresponding to the contour point set, and correcting the target visual image to obtain a corrected visual image; performing traversal processing on the corrected visual image to obtain traversal image blocks, and identifying defect image blocks in the traversal image blocks; calculating average brightness intensity corresponding to the target visual image, performing block processing on the target visual image to obtain block sub-images, and identifying defect sub-images in the block sub-images; and generating a defect image corresponding to the solid-state lithium ion battery, and analyzing the defect type of the solid-state lithium ion battery. The invention aims to improve the accuracy of surface defect detection of the solid-state lithium ion battery.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of battery defect detection, and in particular to a method and system for detecting surface defects of solid-state lithium-ion batteries. Background Art

[0002] Solid-state lithium-ion battery is a new type of lithium-ion battery technology. Compared with traditional liquid lithium-ion batteries, it uses solid electrolyte instead of liquid electrolyte. Solid electrolyte is a solid substance with high ion conductivity and good stability. Solid-state lithium-ion battery has the characteristics of safety and longer cycle life compared with traditional liquid batteries. In order to improve the safety of solid-state lithium-ion batteries, it is necessary to perform defect detection on the surface of solid-state lithium-ion batteries.

[0003] The existing surface defect detection method for solid-state lithium-ion batteries mainly adopts the optical microscope detection method, which uses an optical microscope to observe the battery surface and detects defects by magnifying and analyzing the image. This method is simple and easy, but can only detect larger surface defects and is insensitive to tiny defects, which reduces the accuracy of surface defect detection of solid-state lithium-ion batteries. Summary of the invention

[0004] The present invention provides a solid-state lithium-ion battery surface defect detection method and system, the main purpose of which is to improve the accuracy of solid-state lithium-ion battery surface defect detection.

[0005] To achieve the above object, the present invention provides a method for detecting surface defects of a solid-state lithium-ion battery, comprising: Capturing an image of a solid-state lithium-ion battery to obtain a battery visual image, performing grayscale processing on the battery visual image to obtain a grayscale visual image, calculating a grayscale histogram corresponding to the grayscale visual image, and performing image segmentation processing on the grayscale visual image according to the grayscale histogram to obtain a target visual image; Extracting a set of contour points in the target visual image, finding an external matrix corresponding to the set of contour points, calculating a matrix tilt angle corresponding to the external matrix, and performing correction processing on the target visual image according to the matrix tilt angle to obtain a corrected visual image; Setting a traversal window corresponding to the corrected visual image, performing traversal processing on the corrected visual image according to the traversal window to obtain a traversed image block, calculating an extreme value of the number of pixels corresponding to a preset grayscale interval in the traversed image block, and identifying a defective image block in the traversed image block according to the extreme value of the number of pixels; Detecting the image resolution corresponding to the target visual image, calculating the average brightness intensity corresponding to the target visual image according to the image resolution, performing block processing on the target visual image to obtain block sub-images, calculating the brightness intensity values ​​corresponding to the block sub-images, and identifying the defective sub-images in the block sub-images by combining the brightness intensity values ​​and the average brightness intensity; The defect image block and the defect sub-image are combined to generate a defect image corresponding to the solid-state lithium-ion battery, defect features corresponding to the defect image are extracted, and the defect type of the solid-state lithium-ion battery is analyzed according to the defect features.

[0006] Optionally, performing image segmentation processing on the grayscale visual image according to the grayscale histogram to obtain a target visual image includes: Normalizing the grayscale histogram to obtain a target histogram; Identify the peak value and the valley value in the target histogram, and calculate the grayscale threshold in the target histogram according to the peak value and the valley value; identifying a background visual image in the grayscale visual image according to the grayscale threshold; The background visual image is segmented using a preset background segmentation algorithm to obtain a target visual image.

[0007] Optionally, calculating the grayscale threshold in the target histogram according to the peak value and the valley value includes: The grayscale threshold in the target histogram is calculated by the following formula: ; Among them, A represents the grayscale threshold in the target histogram, represents the peak value, d represents the threshold factor, Indicates the bottom value.

[0008] Optionally, calculating the matrix tilt angle corresponding to the circumscribed matrix includes: Extracting matrix vertex coordinates corresponding to the circumscribed matrix; Calculate the matrix width and matrix length corresponding to the external matrix according to the matrix vertex coordinates; Calculate the geometric center corresponding to the circumscribed matrix, and calculate the matrix area corresponding to the circumscribed matrix according to the matrix width value and the matrix length value; According to the area of ​​the matrix, matrix screening is performed on the external matrix to obtain a target external matrix; Calculating a difference between the matrix width value and the matrix length value, and determining a tilt matrix in the target circumscribed matrix according to the difference; The matrix tilt angle corresponding to the tilt matrix is ​​calculated by combining the matrix width value, the matrix length value and the geometric center.

[0009] Optionally, calculating the matrix width value and the matrix length value corresponding to the circumscribed matrix according to the matrix vertex coordinates includes: The matrix width and matrix length corresponding to the external matrix are calculated by the following formula: ; Among them, E represents the matrix width value corresponding to the external matrix, and F represents the matrix length value corresponding to the external matrix. ( , )、( , )and( , ) represent the specific coordinate values ​​of each vertex in the matrix vertex coordinates.

[0010] Optionally, the calculating the extreme value of the number of pixels corresponding to the preset grayscale interval in the traversed image block includes: Measure the amount of grayscale pixels in the traversed image block within the preset grayscale range; Calculating the grayscale pixel mean of the traversed image block in the preset grayscale interval according to the grayscale pixel quantity; The grayscale pixel mean and the preset grayscale interval are used to calculate the pixel standard deviation corresponding to the traversed image block; Calculating the maximum value and the minimum value of the pixel quantity of the traversed image block in the preset grayscale interval according to the pixel standard deviation and the grayscale pixel mean; The maximum pixel amount value and the minimum pixel amount value are combined to obtain the pixel number extreme value corresponding to the preset grayscale interval in the traversed image block.

[0011] Optionally, calculating the pixel standard deviation corresponding to the traversed image block according to the grayscale pixel mean and the preset grayscale interval includes: The pixel standard deviation corresponding to the traversed image block is calculated by the following formula: Among them, G represents the standard deviation of the pixels corresponding to the traversed image block, e represents the starting sequence number of the grayscale value in the preset grayscale interval, Represents the total number of grayscale values ​​in the preset grayscale interval. Indicates the number of pixels corresponding to the e-th grayscale value in the preset grayscale interval, Represents the mean value of grayscale pixels.

[0012] Optionally, the calculating, according to the pixel standard deviation and the grayscale pixel mean, the maximum value and the minimum value of the pixel quantity of the traversed image block in the preset grayscale interval includes: The maximum value and minimum value of the pixel quantity of the traversed image block in the preset grayscale interval are calculated by the following formula: ; in, and They represent the maximum and minimum pixel values ​​of the traversed image block in the preset grayscale interval, represents the grayscale pixel mean, G represents the pixel standard deviation, Represents the variance scaling factor.

[0013] Optionally, extracting defect features corresponding to the defect image includes: Extracting image features corresponding to the defect image; Performing feature dimensionality reduction processing on the image features to obtain reduced-dimensional image features; Querying defect evaluation indicators corresponding to the solid-state lithium-ion battery; Calculating the correlation coefficient between the dimension-reduced image feature and the defect evaluation index; According to the correlation coefficient, feature selection is performed on the dimension reduction image features to obtain defect features corresponding to the defect image.

[0014] A solid-state lithium-ion battery surface defect detection system, characterized in that the system comprises: An image segmentation module is used to collect images of solid-state lithium-ion batteries to obtain a battery visual image, perform grayscale processing on the battery visual image to obtain a grayscale visual image, calculate a grayscale histogram corresponding to the grayscale visual image, and perform image segmentation processing on the grayscale visual image according to the grayscale histogram to obtain a target visual image; An image correction module is used to extract a set of contour points in the target visual image, find an external matrix corresponding to the set of contour points, calculate a matrix tilt angle corresponding to the external matrix, and perform correction processing on the target visual image according to the matrix tilt angle to obtain a corrected visual image; A first defect recognition module is used to set a traversal window corresponding to the corrected visual image, perform traversal processing on the corrected visual image according to the traversal window to obtain a traversal image block, calculate the pixel number extreme value corresponding to a preset grayscale interval in the traversal image block, and identify a defective image block in the traversal image block according to the pixel number extreme value; A second defect recognition module is used to detect the image resolution corresponding to the target visual image, calculate the average brightness intensity corresponding to the target visual image according to the image resolution, perform block processing on the target visual image to obtain block sub-images, calculate the brightness intensity value corresponding to the block sub-images, and identify the defect sub-image in the block sub-image by combining the brightness intensity value and the average brightness intensity; The defect analysis module is used to combine the defect image block and the defect sub-image to generate a defect image corresponding to the solid-state lithium-ion battery, extract defect features corresponding to the defect image, and analyze the defect type of the solid-state lithium-ion battery according to the defect features.

[0015] The present invention calculates the grayscale histogram corresponding to the grayscale visual image, and can understand the grayscale level frequency in the grayscale visual image. According to the grayscale histogram, the grayscale visual image is segmented, and the foreground image in the grayscale visual image can be removed, thereby reducing the interference factors of the subsequent defect analysis of the grayscale visual image. The present invention can obtain the bounding box corresponding to the contour point set by finding the external matrix corresponding to the contour point set, which provides a basis for the subsequent calculation of the matrix inclination angle, thereby facilitating the subsequent correction processing of the target visual image. According to the traversal window, the present invention traverses the corrected visual image, and can extract from the corrected visual image. The image block of the local area is used to facilitate the analysis and processing of the corrected visual image, thereby improving the recognition accuracy of subsequent defective image blocks. The present invention calculates the average brightness intensity corresponding to the target visual image according to the image resolution, and can obtain the overall brightness level of the target visual image, so as to facilitate the recognition and processing of subsequent defective sub-images. The present invention generates a defective image corresponding to the solid-state lithium-ion battery by combining the defective image block and the defective sub-image, thereby obtaining a complete defective image of the solid-state lithium-ion battery. By extracting the defective features corresponding to the defective image, the defective representation corresponding to the defective image can be obtained, thereby improving the accuracy of surface defect detection of solid-state lithium-ion batteries. Therefore, a solid-state lithium-ion battery surface defect detection method and system provided in an embodiment of the present invention can improve the accuracy of surface defect detection of solid-state lithium-ion batteries. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 A schematic diagram of a process for detecting surface defects of a solid-state lithium-ion battery provided by an embodiment of the present invention; Figure 2 A functional module diagram of a solid-state lithium-ion battery surface defect detection system provided by one embodiment of the present invention.

[0017] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0018] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0019] The embodiment of the present application provides a method for detecting surface defects of a solid-state lithium-ion battery. In the embodiment of the present application, the execution subject of the method for detecting surface defects of a solid-state lithium-ion battery includes but is not limited to at least one of the electronic devices such as a server, a terminal, etc. that can be configured to execute the method provided in the embodiment of the present application. In other words, the method for detecting surface defects of a solid-state lithium-ion battery can be executed by software or hardware installed on a terminal device or a server device, and the software can be a blockchain platform. The server includes but is not limited to: a single server, a server cluster, a cloud server or a cloud server cluster, etc. The server can be an independent server, or it can be 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, content delivery networks (Content Delivery Network, CDN), and big data and artificial intelligence platforms.

[0020] Reference Figure 1 FIG. 1 is a flow chart of a method for detecting surface defects of a solid-state lithium-ion battery provided by an embodiment of the present invention. In this embodiment, the method for detecting surface defects of a solid-state lithium-ion battery includes steps S1 to S5.

[0021] S1. Capture an image of a solid-state lithium-ion battery to obtain a battery visual image, perform grayscale processing on the battery visual image to obtain a grayscale visual image, calculate a grayscale histogram corresponding to the grayscale visual image, and perform image segmentation processing on the grayscale visual image according to the grayscale histogram to obtain a target visual image.

[0022] The present invention calculates the grayscale histogram corresponding to the grayscale visual image, and can understand the grayscale level frequency in the grayscale visual image. According to the grayscale histogram, the grayscale visual image is segmented and processed, and the foreground image in the grayscale visual image can be removed, thereby reducing the interference factors of the subsequent defect analysis of the grayscale visual image. The battery visual image is an image obtained by photographing the solid-state lithium-ion battery with a camera device, and the grayscale visual image is an image in which the battery visual image is expressed in a single color. The grayscale histogram is a statistical result of the grayscale levels in the grayscale visual image. Optionally, the grayscale processing of the battery visual image can be performed by averaging the values ​​of the RGB three channels of the battery visual image (R + G + B) / 3 to obtain a grayscale value, and a grayscale visual image is obtained according to the grayscale value. Calculation of the grayscale histogram corresponding to the grayscale visual image can be achieved by OpenCV and Matplotlib libraries in Python.

[0023] As an embodiment of the present invention, the grayscale visual image is subjected to image segmentation processing according to the grayscale histogram to obtain a target visual image, including: normalizing the grayscale histogram to obtain a target histogram, identifying peak values ​​and valley values ​​in the target histogram, calculating a grayscale threshold in the target histogram according to the peak values ​​and the valley values, identifying a background visual image in the grayscale visual image according to the grayscale threshold, and performing segmentation processing on the background visual image using a preset background segmentation algorithm to obtain a target visual image.

[0024] Among them, the target histogram is a histogram obtained by mapping the range of the grayscale histogram to a specified range, the peak value and the valley value are the maximum value and the minimum value in the target histogram, the grayscale threshold is the intermediate grayscale value corresponding to the target histogram, the background visual image is the background part image in the grayscale visual image, and the background segmentation algorithm is an algorithm for removing the background of an image, such as a watershed algorithm.

[0025] Optionally, normalization of the grayscale histogram may be achieved by a normalization function, which is compiled by a scripting language; identification of peak values ​​and valley values ​​in the target histogram may be achieved by a recognition algorithm, which is compiled by a programming language; a grayscale threshold in the target histogram is calculated based on the peak value and the valley value; a background visual image in the grayscale visual image is identified based on the grayscale threshold; the background visual image is segmented using a preset background segmentation algorithm to obtain a target visual image.

[0026] Optionally, as an optional embodiment of the present invention, calculating the grayscale threshold in the target histogram according to the peak value and the valley value includes: The grayscale threshold in the target histogram is calculated by the following formula: ; Among them, A represents the grayscale threshold in the target histogram, represents the peak value, d represents the threshold factor, Indicates the bottom value.

[0027] Optionally, the threshold factor can be determined in an adaptive manner according to the characteristics of the image. For example, the threshold factor can be dynamically adjusted by considering local grayscale statistics of the target histogram. Common adaptive methods include Otsu's method, local adaptive threshold, etc.

[0028] S2. Extract the contour point set in the target visual image, find the circumscribed matrix corresponding to the contour point set, calculate the matrix tilt angle corresponding to the circumscribed matrix, and perform correction processing on the target visual image according to the matrix tilt angle to obtain a corrected visual image.

[0029] The present invention can obtain the bounding box corresponding to the contour point set by finding the circumscribed matrix corresponding to the contour point set, which provides a basis for the subsequent calculation of the matrix tilt angle, thereby facilitating the subsequent correction processing of the target visual image, wherein the contour point set is a set of contour pixel points in the target visual image, and the circumscribed matrix is ​​the minimum rectangle that can completely surround the contour point set, also called a bounding box or a bounding box. Optionally, the contour point set in the target visual image is obtained by performing edge detection and contour extraction on the target in the target visual image, and the minimum circumscribed rectangle or minimum circumscribed circle of the contour point set is calculated to obtain the circumscribed matrix corresponding to the contour point set.

[0030] The present invention calculates the matrix tilt angle corresponding to the external matrix, and thus can understand the tilt degree corresponding to the external matrix, thereby obtaining the tilt angle of the target visual image, so as to facilitate subsequent image correction processing, wherein the matrix tilt angle represents the tilt angle corresponding to the external matrix, and the corrected visual image is the image obtained after the target visual image is corrected according to the matrix tilt angle. Optionally, the target visual image is subjected to angle correction processing according to the matrix tilt angle to obtain the corrected visual image.

[0031] As an embodiment of the present invention, the calculation of the matrix tilt angle corresponding to the external matrix includes: extracting the matrix vertex coordinates corresponding to the external matrix, calculating the matrix width value and the matrix length value corresponding to the external matrix according to the matrix vertex coordinates, and calculating the geometric center corresponding to the external matrix, calculating the matrix area corresponding to the external matrix according to the matrix width value and the matrix length value, performing matrix screening on the external matrix according to the matrix area to obtain a target external matrix, calculating the difference between the matrix width value and the matrix length value, determining the tilt matrix in the target external matrix according to the difference, and calculating the matrix tilt angle corresponding to the tilt matrix in combination with the matrix width value, the matrix length value and the geometric center.

[0032] Among them, the matrix vertex coordinates are the coordinate values ​​corresponding to the external matrix, the matrix length value and the matrix width value are the corresponding length and width in the external matrix respectively, the matrix area represents the plane area corresponding to the external matrix, and the tilt matrix is ​​the tilted matrix in the target external matrix.

[0033] Optionally, a matrix coordinate system corresponding to the circumscribed matrix is ​​constructed, matrix vertex coordinates corresponding to the circumscribed matrix are extracted in the matrix coordinate system, and the geometric center formula corresponding to the circumscribed matrix is ​​calculated as follows: xcenter = ( + + + ) / 4, ycenter = ( + + + ) / 4, the matrix area = matrix width value * matrix length value, compare the matrix area with the preset area threshold, if the matrix area is less than the preset area threshold, delete the corresponding external matrix to obtain the target external matrix, if the matrix length value is greater than the matrix width value, it means that the rectangle is placed vertically and no tilt adjustment is required, if the matrix length value is less than the matrix width value, it means that the rectangle is placed horizontally and a tilt adjustment is required, so as to determine the tilt matrix in the target external matrix, the matrix tilt angle = atan (matrix length value - geometric center horizontal coordinate / matrix width value - geometric center vertical coordinate).

[0034] Optionally, as an optional embodiment of the present invention, calculating the matrix width value and the matrix length value corresponding to the circumscribed matrix according to the matrix vertex coordinates includes: The matrix width and matrix length corresponding to the external matrix are calculated by the following formula: ; Among them, E represents the matrix width value corresponding to the external matrix, and F represents the matrix length value corresponding to the external matrix. ( , )、( , )and( , ) represent the specific coordinate values ​​of each vertex in the matrix vertex coordinates.

[0035] S3. Set a traversal window corresponding to the corrected visual image, perform traversal processing on the corrected visual image according to the traversal window to obtain a traversal image block, calculate the pixel number extreme value corresponding to a preset grayscale interval in the traversal image block, and identify the defective image block in the traversal image block according to the pixel number extreme value.

[0036] The present invention performs traversal processing on the corrected visual image according to the traversal window, and can extract image blocks of local areas from the corrected visual image to facilitate the analysis and processing of the corrected visual image, thereby improving the recognition accuracy of subsequent defective image blocks, wherein the traversal window is a sliding window for image acquisition of the corrected visual image, and the traversal image block is an image block acquired by sliding the corrected visual image according to the size of the traversal window with a corresponding step size, and the step size can be equal to 1 / 4 or 1 / 2 of the window size. Optionally, the traversal window can be set according to the number of pixels of the corrected visual image, and the number of pixels contained in each window is consistent. The specific setting can be based on the actual application scenario.

[0037] The present invention can obtain useful information about the content and characteristics of the traversed image block by calculating the extreme value of the number of pixels corresponding to the preset grayscale interval in the traversed image block, thereby providing a basis for the subsequent identification of defective image blocks, wherein the preset grayscale interval is an image grayscale value range set according to a standard grayscale image of a solid-state lithium-ion battery, and the extreme value of the number of pixels represents the limit value of the number of pixels in the preset grayscale interval of the pixel grayscale in the traversed image block.

[0038] As an embodiment of the present invention, the calculation of the extreme value of the number of pixels corresponding to the preset grayscale interval in the traversed image block includes: measuring the amount of grayscale pixels in the traversed image block in the preset grayscale interval, calculating the mean value of grayscale pixels of the traversed image block in the preset grayscale interval based on the grayscale pixel amount, calculating the pixel standard deviation corresponding to the traversed image block based on the grayscale pixel mean and the preset grayscale interval, calculating the maximum value and minimum value of the pixel amount of the traversed image block in the preset grayscale interval based on the pixel standard deviation and the grayscale pixel mean, and combining the maximum value and the minimum value to obtain the extreme value of the number of pixels corresponding to the preset grayscale interval in the traversed image block.

[0039] Among them, the grayscale pixel quantity is the number of pixels whose grayscale values ​​in the traversed image block are within the preset grayscale interval, the grayscale pixel mean represents the average number of pixels in the traversed image block in the preset grayscale interval, the pixel standard deviation represents the degree of discreteness of the pixel quantity values ​​of the traversed image block in the preset grayscale interval, and the maximum pixel quantity value and the minimum pixel quantity value respectively represent the maximum number and the minimum number of pixels in the traversed image block in the preset grayscale interval.

[0040] Optionally, measuring the amount of grayscale pixels in the traversed image block in the preset grayscale range can be achieved by a direct statistical method, which directly counts each pixel of the traversed image block, calculates the number of pixels that meet specific conditions, and sums the grayscale pixel amounts to obtain a total pixel amount, which is then divided by the total number of image pixels in the traversed image block to obtain the grayscale pixel mean.

[0041] Optionally, as an optional embodiment of the present invention, the step of calculating the pixel standard deviation corresponding to the traversed image block according to the grayscale pixel mean and the preset grayscale interval includes: The pixel standard deviation corresponding to the traversed image block is calculated by the following formula: ; Among them, G represents the standard deviation of the pixels corresponding to the traversed image block, e represents the starting sequence number of the grayscale value in the preset grayscale interval, Represents the total number of grayscale values ​​in the preset grayscale interval. Indicates the number of pixels corresponding to the e-th grayscale value in the preset grayscale interval, Represents the mean value of grayscale pixels.

[0042] Optionally, as an optional embodiment of the present invention, calculating the maximum value and the minimum value of the pixel quantity of the traversed image block in the preset grayscale interval according to the pixel standard deviation and the grayscale pixel mean value includes: The maximum value and minimum value of the pixel quantity of the traversed image block in the preset grayscale interval are calculated by the following formula: ; in, and They represent the maximum and minimum pixel values ​​of the traversed image block in the preset grayscale interval, represents the grayscale pixel mean, G represents the pixel standard deviation, Represents the variance scaling factor.

[0043] Optionally, the setting of the variance scaling factor can be achieved through an adaptive algorithm, that is, using an adaptive algorithm (such as an iterative-based algorithm or a genetic algorithm) to determine the optimal variance scaling factor value. This method can automatically optimize the scaling factor according to the characteristics of the traversed image blocks and the objective function, and achieve the optimal pixel number threshold setting.

[0044] Optionally, according to the extreme value of the number of pixels, the step of identifying the defective image block in the traversed image block is: traversing the traversed image block in sequence in a selected gray value range to see whether the number of pixels exceeds a threshold; if so, it is determined that the traversed image block has defects and is a defective image block; otherwise, it is determined to be a good area.

[0045] S4. Detect the image resolution corresponding to the target visual image, calculate the average brightness intensity corresponding to the target visual image according to the image resolution, divide the target visual image into blocks to obtain block sub-images, calculate the brightness intensity values ​​corresponding to the block sub-images, and identify the defective sub-images in the block sub-images by combining the brightness intensity values ​​and the average brightness intensity.

[0046] The present invention calculates the average brightness intensity corresponding to the target visual image based on the image resolution, and can obtain the overall brightness level of the target visual image to facilitate the subsequent recognition and processing of defective sub-images, wherein the image resolution represents the image resolution corresponding to the target visual image, the average brightness intensity represents the overall average brightness corresponding to the target visual image, and the system resources are the computing resources corresponding to the task function system. Optionally, detecting the image resolution corresponding to the target visual image can be achieved through an MTF detection method.

[0047] As an embodiment of the present invention, calculating the average brightness intensity corresponding to the target visual image according to the image resolution includes: The average brightness intensity corresponding to the target visual image is calculated by the following formula: ; Where L represents the average brightness intensity corresponding to the target visual image, Indicates the image resolution, Indicates that the coordinate point in the target visual image is The gray value corresponding to the pixel point, x and y represent the starting coordinates of the target visual image.

[0048] The present invention identifies the defective sub-image in the block sub-image by combining the brightness intensity value and the average brightness intensity, and can improve the recognition accuracy of the defective sub-image, wherein the brightness intensity value represents the brightness value corresponding to the block sub-image, and the defective sub-image is an image with defects in the block sub-image. Optionally, the calculation principle of the brightness intensity value is the same as that of the average brightness intensity, which will not be elaborated herein. The brightness difference between the brightness intensity value and the average brightness intensity is calculated. If the absolute value of the brightness difference is greater than a preset brightness value, the block sub-image is a defective sub-image, otherwise it indicates that the block sub-image is a complete image. The preset brightness value can be set according to actual conditions, and the threshold can be determined by empirical values, statistical analysis or other methods.

[0049] S5. Combining the defect image block and the defect sub-image, generating a defect image corresponding to the solid-state lithium-ion battery, extracting defect features corresponding to the defect image, and analyzing the defect type of the solid-state lithium-ion battery according to the defect features.

[0050] The present invention generates a defect image corresponding to the solid-state lithium-ion battery by combining the defect image block and the defect sub-image, thereby obtaining a complete defect image of the solid-state lithium-ion battery. By extracting the defect features corresponding to the defect image, the defect representation corresponding to the defect image can be obtained, thereby improving the accuracy of surface defect detection of solid-state lithium-ion batteries. Optionally, the defect image corresponding to the solid-state lithium-ion battery can be generated by fusing the defect image block and the defect sub-image, matching the defect features with features in a feature library, and determining the defect type of the solid-state lithium-ion battery based on the matching results. The feature library is a database constructed by collecting a large number of defect features.

[0051] As an embodiment of the present invention, the extracting defect features corresponding to the defect image includes: extracting image features corresponding to the defect image, performing feature dimensionality reduction processing on the image features to obtain reduced dimensionality image features, querying the defect evaluation index corresponding to the solid-state lithium-ion battery, calculating the correlation coefficient between the reduced dimensionality image features and the defect evaluation index, and performing feature selection on the reduced dimensionality image features according to the correlation coefficient to obtain the defect features corresponding to the defect image.

[0052] Among them, the image feature is the image representation in the defect image, such as texture feature and color feature, the reduced dimension image feature is the feature of the image feature after being reduced from a high dimension to a low dimension, the defect evaluation index is the defect evaluation standard of the solid-state lithium-ion battery, such as color or surface flatness, and the correlation coefficient represents the degree of correlation between the reduced dimension image feature and the defect evaluation index.

[0053] Optionally, extracting image features corresponding to the defective image can be achieved through corresponding feature extraction methods, such as grayscale co-occurrence matrix and HSV color model, feature dimensionality reduction processing of the image features can be achieved through principal component analysis method, querying the defect evaluation index corresponding to the solid-state lithium-ion battery can be achieved through human-computer interaction, such as querying from the Internet, and calculating the correlation coefficient between the reduced dimensionality image features and the defect evaluation index can be achieved through the Pearson correlation coefficient.

[0054] The present invention calculates the grayscale histogram corresponding to the grayscale visual image, and can understand the grayscale level frequency in the grayscale visual image. According to the grayscale histogram, the grayscale visual image is segmented, and the foreground image in the grayscale visual image can be removed, thereby reducing the interference factors of the subsequent defect analysis of the grayscale visual image. The present invention can obtain the bounding box corresponding to the contour point set by finding the external matrix corresponding to the contour point set, which provides a basis for the subsequent calculation of the matrix inclination angle, thereby facilitating the subsequent correction processing of the target visual image. According to the traversal window, the present invention traverses the corrected visual image, and can extract from the corrected visual image. The image block of the local area is used to facilitate the analysis and processing of the corrected visual image, thereby improving the recognition accuracy of subsequent defective image blocks. The present invention calculates the average brightness intensity corresponding to the target visual image according to the image resolution, and can obtain the overall brightness level of the target visual image, so as to facilitate the recognition and processing of subsequent defective sub-images. The present invention generates a defective image corresponding to the solid-state lithium-ion battery by combining the defective image block and the defective sub-image, thereby obtaining a complete defective image of the solid-state lithium-ion battery. By extracting the defective features corresponding to the defective image, the defective representation corresponding to the defective image can be obtained, thereby improving the accuracy of surface defect detection of solid-state lithium-ion batteries. Therefore, a surface defect detection method for solid-state lithium-ion batteries provided in an embodiment of the present invention can improve the accuracy of surface defect detection of solid-state lithium-ion batteries.

[0055] like Figure 2 , is a functional module diagram of a solid-state lithium-ion battery surface defect detection system provided by an embodiment of the present invention.

[0056] The solid-state lithium-ion battery surface defect detection system 100 of the present invention can be installed in an electronic device. According to the functions to be implemented, the solid-state lithium-ion battery surface defect detection system 100 can include an image segmentation module 101, an image correction module 102, a first defect recognition module 103, a second defect recognition module 104 and a defect analysis module 105. The module of the present invention can also be referred to as a unit, which refers to a series of computer program segments that can be executed by an electronic device processor and can complete fixed functions, which are stored in the memory of the electronic device.

[0057] In this embodiment, the functions of each module / unit are as follows: The image segmentation module 101 is used to collect images of solid-state lithium-ion batteries to obtain a battery visual image, perform grayscale processing on the battery visual image to obtain a grayscale visual image, calculate a grayscale histogram corresponding to the grayscale visual image, and perform image segmentation processing on the grayscale visual image according to the grayscale histogram to obtain a target visual image; The image correction module 102 is used to extract the contour point set in the target visual image, find the circumscribed matrix corresponding to the contour point set, calculate the matrix tilt angle corresponding to the circumscribed matrix, and perform correction processing on the target visual image according to the matrix tilt angle to obtain a corrected visual image; The first defect recognition module 103 is used to set a traversal window corresponding to the corrected visual image, perform traversal processing on the corrected visual image according to the traversal window to obtain a traversed image block, calculate the pixel number extreme value corresponding to a preset grayscale interval in the traversed image block, and identify a defective image block in the traversed image block according to the pixel number extreme value; The second defect recognition module 104 is used to detect the image resolution corresponding to the target visual image, calculate the average brightness intensity corresponding to the target visual image according to the image resolution, divide the target visual image into blocks to obtain block sub-images, calculate the brightness intensity value corresponding to the block sub-images, and identify the defect sub-image in the block sub-image by combining the brightness intensity value and the average brightness intensity; The defect analysis module 105 is used to combine the defect image block and the defect sub-image to generate a defect image corresponding to the solid-state lithium-ion battery, extract defect features corresponding to the defect image, and analyze the defect type of the solid-state lithium-ion battery according to the defect features.

[0058] In detail, each module described in a solid-state lithium-ion battery surface defect detection system 100 described in the embodiment of the present application is used in the same manner as described above. Figure 1The same technical means are used as the solid-state lithium-ion battery surface defect detection method described in and can produce the same technical effects, which will not be repeated here.

[0059] In the several embodiments provided by the present invention, it should be understood that the provided methods and systems can be implemented in other ways. For example, the method embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation.

[0060] Finally, it should be noted that the above embodiments are only used to illustrate the technical solution of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the preferred embodiments, those skilled in the art should understand that the technical solution of the present invention can be modified or replaced by equivalents without departing from the spirit and scope of the technical solution of the present invention.

Claims

1. A method for detecting surface defects of solid-state lithium-ion batteries, It is characterized in that The method comprises: Capturing an image of a solid-state lithium-ion battery to obtain a battery visual image, performing grayscale processing on the battery visual image to obtain a grayscale visual image, calculating a grayscale histogram corresponding to the grayscale visual image, and performing image segmentation processing on the grayscale visual image according to the grayscale histogram to obtain a target visual image; Extracting a set of contour points in the target visual image, finding an external matrix corresponding to the set of contour points, calculating a matrix tilt angle corresponding to the external matrix, and performing correction processing on the target visual image according to the matrix tilt angle to obtain a corrected visual image; Setting a traversal window corresponding to the corrected visual image, performing traversal processing on the corrected visual image according to the traversal window to obtain a traversed image block, calculating an extreme value of the number of pixels corresponding to a preset grayscale interval in the traversed image block, and identifying a defective image block in the traversed image block according to the extreme value of the number of pixels; Detecting the image resolution corresponding to the target visual image, calculating the average brightness intensity corresponding to the target visual image according to the image resolution, performing block processing on the target visual image to obtain block sub-images, calculating the brightness intensity values ​​corresponding to the block sub-images, and identifying the defective sub-images in the block sub-images by combining the brightness intensity values ​​and the average brightness intensity; The defect image block and the defect sub-image are combined to generate a defect image corresponding to the solid-state lithium-ion battery, defect features corresponding to the defect image are extracted, and the defect type of the solid-state lithium-ion battery is analyzed according to the defect features.

2. A method for detecting surface defects of a solid-state lithium-ion battery as claimed in claim 1, It is characterized in that The step of performing image segmentation processing on the grayscale visual image according to the grayscale histogram to obtain a target visual image includes: Normalizing the grayscale histogram to obtain a target histogram; Identify the peak value and the valley value in the target histogram, and calculate the grayscale threshold in the target histogram according to the peak value and the valley value; identifying a background visual image in the grayscale visual image according to the grayscale threshold; The background visual image is segmented using a preset background segmentation algorithm to obtain a target visual image.

3. A method for detecting surface defects of a solid-state lithium-ion battery as claimed in claim 2, It is characterized in that The step of calculating the grayscale threshold in the target histogram according to the peak value and the valley value includes: The grayscale threshold in the target histogram is calculated by the following formula: ; Among them, A represents the grayscale threshold in the target histogram, represents the peak value, d represents the threshold factor, Indicates the bottom value.

4. A method for detecting surface defects of a solid-state lithium-ion battery as claimed in claim 1, It is characterized in that The calculating the matrix tilt angle corresponding to the circumscribed matrix includes: Extracting matrix vertex coordinates corresponding to the circumscribed matrix; Calculate the matrix width and matrix length corresponding to the external matrix according to the matrix vertex coordinates; Calculate the geometric center corresponding to the circumscribed matrix, and calculate the matrix area corresponding to the circumscribed matrix according to the matrix width value and the matrix length value; According to the area of ​​the matrix, matrix screening is performed on the external matrix to obtain a target external matrix; Calculating a difference between the matrix width value and the matrix length value, and determining a tilt matrix in the target circumscribed matrix according to the difference; The matrix tilt angle corresponding to the tilt matrix is ​​calculated by combining the matrix width value, the matrix length value and the geometric center.

5. A method for detecting surface defects of a solid-state lithium-ion battery as claimed in claim 4, It is characterized in that The step of calculating the matrix width value and the matrix length value corresponding to the external matrix according to the matrix vertex coordinates includes: The matrix width and matrix length corresponding to the external matrix are calculated by the following formula: ; Among them, E represents the matrix width value corresponding to the external matrix, and F represents the matrix length value corresponding to the external matrix. ( , )、( , )and( , ) represent the specific coordinate values ​​of each vertex in the matrix vertex coordinates.

6. A method for detecting surface defects of a solid-state lithium-ion battery as claimed in claim 1, It is characterized in that The calculating the extreme value of the number of pixels corresponding to the preset grayscale interval in the traversed image block includes: Measure the amount of grayscale pixels in the traversed image block within the preset grayscale range; Calculating the grayscale pixel mean of the traversed image block in the preset grayscale interval according to the grayscale pixel quantity; The grayscale pixel mean and the preset grayscale interval are used to calculate the pixel standard deviation corresponding to the traversed image block; Calculating the maximum value and the minimum value of the pixel quantity of the traversed image block in the preset grayscale interval according to the pixel standard deviation and the grayscale pixel mean; The maximum pixel amount value and the minimum pixel amount value are combined to obtain the pixel number extreme value corresponding to the preset grayscale interval in the traversed image block.

7. A method for detecting surface defects of a solid-state lithium-ion battery as claimed in claim 6, It is characterized in that The calculating, according to the grayscale pixel mean and the preset grayscale interval, the pixel standard deviation corresponding to the traversed image block comprises: The pixel standard deviation corresponding to the traversed image block is calculated by the following formula: ; Among them, G represents the standard deviation of the pixels corresponding to the traversed image block, e represents the starting sequence number of the grayscale value in the preset grayscale interval, Represents the total number of grayscale values ​​in the preset grayscale interval. Indicates the number of pixels corresponding to the e-th grayscale value in the preset grayscale interval, Represents the mean value of grayscale pixels.

8. A method for detecting surface defects of a solid-state lithium-ion battery as claimed in claim 7, It is characterized in that The step of calculating the maximum value and the minimum value of the pixel quantity of the traversed image block in the preset grayscale interval according to the pixel standard deviation and the grayscale pixel mean value includes: The maximum value and minimum value of the pixel quantity of the traversed image block in the preset grayscale interval are calculated by the following formula: ; in, and They represent the maximum and minimum pixel values ​​of the traversed image block in the preset grayscale interval, represents the grayscale pixel mean, G represents the pixel standard deviation, Represents the variance scaling factor.

9. A method for detecting surface defects of a solid-state lithium-ion battery as claimed in claim 1, It is characterized in that The extracting defect features corresponding to the defect image includes: Extracting image features corresponding to the defect image; Performing feature dimensionality reduction processing on the image features to obtain reduced-dimensional image features; Querying defect evaluation indicators corresponding to the solid-state lithium-ion battery; Calculating the correlation coefficient between the dimension-reduced image feature and the defect evaluation index; According to the correlation coefficient, feature selection is performed on the dimension reduction image features to obtain defect features corresponding to the defect image.

10. A solid-state lithium-ion battery surface defect detection system, It is characterized in that The system comprises: An image segmentation module is used to collect images of solid-state lithium-ion batteries to obtain a battery visual image, perform grayscale processing on the battery visual image to obtain a grayscale visual image, calculate a grayscale histogram corresponding to the grayscale visual image, and perform image segmentation processing on the grayscale visual image according to the grayscale histogram to obtain a target visual image; An image correction module is used to extract a set of contour points in the target visual image, find an external matrix corresponding to the set of contour points, calculate a matrix tilt angle corresponding to the external matrix, and perform correction processing on the target visual image according to the matrix tilt angle to obtain a corrected visual image; A first defect recognition module is used to set a traversal window corresponding to the corrected visual image, perform traversal processing on the corrected visual image according to the traversal window to obtain a traversal image block, calculate the pixel number extreme value corresponding to a preset grayscale interval in the traversal image block, and identify a defective image block in the traversal image block according to the pixel number extreme value; A second defect recognition module is used to detect the image resolution corresponding to the target visual image, calculate the average brightness intensity corresponding to the target visual image according to the image resolution, perform block processing on the target visual image to obtain block sub-images, calculate the brightness intensity value corresponding to the block sub-images, and identify the defect sub-image in the block sub-image by combining the brightness intensity value and the average brightness intensity; The defect analysis module is used to combine the defect image block and the defect sub-image to generate a defect image corresponding to the solid-state lithium-ion battery, extract defect features corresponding to the defect image, and analyze the defect type of the solid-state lithium-ion battery according to the defect features.

Citation Information

Cited By

  • Lithium ion battery defect detection method and system

    CN121074468A