Detection method and detection system for cell top cap, and electronic device and readable storage medium

By acquiring two images of the battery cell top cover and using a 3D camera to obtain depth information, combined with identification and correction technology, the problem of low detection accuracy in the existing battery cell top cover detection method is solved, and the battery cell top cover is realized Comprehensive and accurate detection.

WO2024239626A1PCT designated stage expired Publication Date: 2024-11-28CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
PCT/CN2023/139631
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-05-23
Filing Date
2023-12-18
Publication Date
2024-11-28

AI Technical Summary

Technical Problem

In the existing battery cell top cover detection methods, images are acquired by stop shooting, resulting in low detection accuracy and the inability to fully capture all areas of the battery cell top cover, resulting in missed detection and inaccurate detection.

Method used

By obtaining two images containing all areas of the battery cap, using a 3D camera to obtain depth information and plane information, identify and correct the areas to be detected, and conduct defect detection combined with the trained detection model to ensure detection accuracy and comprehensiveness.

Benefits of technology

Accurate detection of all areas of the battery cell top cover is achieved, detection accuracy and reliability are improved, missed detection and misjudgment are reduced, and production rhythm needs are met.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2023139631_28112024_PF_FP_ABST
    Figure CN2023139631_28112024_PF_FP_ABST
Patent Text Reader

Abstract

A detection method and detection system for a cell top cap, and an electronic device and a readable storage medium. The detection method for a cell top cap comprises: acquiring a first image and a second image of a cell top cap to be subjected to detection; identifying the first image and the second image to obtain a first area to be subjected to detection, which is in the first image, and a second area to be subjected to detection, which corresponds to said first area, in the second image; and obtaining a detection result of the cell top cap according to said first area and said second area. The detection method for a cell top cap effectively improves the detection accuracy of the cell top cap.
Need to check novelty before this filing date? Find Prior Art

Description

Battery cell top cover detection method, detection system, electronic device and readable storage medium

[0001] This application claims priority to the Chinese patent application filed with the China Patent Office on May 23, 2023, with application number 202310588166.9 and invention name “Battery cell top cover detection method, detection system, electronic device and readable storage medium”, the entire contents of which are incorporated by reference into this application. Technical Field

[0002] The present application relates to the field of battery detection, and in particular to a battery cell top cover detection method, detection system, electronic equipment and readable storage medium. Background Art

[0003] The top cover of the battery cell includes multiple areas such as the explosion-proof valve, top patch, and pole. Currently, the stop-shooting method is usually adopted to obtain the shooting image of the battery cell top cover, that is, the battery cell is controlled to reach different shooting stations in turn, and the camera at each shooting station is controlled to shoot the battery cell top cover. In this way, the camera at each shooting station can only shoot part of the area of ​​the battery cell top cover. In order to meet the needs of production rhythm, it is usually necessary to reduce the number of shooting stations, which will miss some areas of the battery cell top cover, resulting in low accuracy of battery cell top cover detection. Technical issues

[0004] One of the purposes of the embodiments of the present application is to provide a battery cell top cover detection method, detection system, electronic device and readable storage medium, which solve the problem of low accuracy in battery cell top cover defect detection. Technical Solutions

[0005] To solve the above technical problems, the technical solutions adopted in the embodiments of the present application are:

[0006] In a first aspect, a method for detecting a battery cell top cover is provided, comprising:

[0007] Acquire a first image and a second image of a top cover of a battery cell to be tested;

[0008] Identify the first image and the second image to obtain a first area to be detected in the first image and a second area to be detected corresponding to the first area to be detected in the second image;

[0009] A detection result of the battery cell top cover is obtained according to the first area to be detected and the second area to be detected.

[0010] In this embodiment of the present application, a first image and a second image are captured that encompass all areas of the cell cover. The areas to be inspected in the first and second images correspond to each other, and each area on the cell cover is inspected based on the corresponding areas to be inspected in the first and second images. This method captures all areas of the cell cover in both images, eliminating the need for multiple capture stations and meeting production cycle requirements. Furthermore, using two images for inspection ensures accuracy.

[0011] In an implementation of the first aspect, the component types of the battery cell top cover include a top patch, a pole, and an explosion-proof valve, and the recognizing the first image to obtain a first area to be detected in the first image includes:

[0012] Recognizing the first image to obtain at least one first target area within the first image;

[0013] The first area to be inspected is confirmed according to the component type corresponding to each of the first target areas; wherein, at least one of the first areas to be inspected includes the first top patch area, the first pole area, the first explosion-proof valve area, and the position information of each of the first areas to be inspected on the top cover of the battery cell.

[0014] In an implementation of the first aspect, the component types of the battery cell top cover include a top patch, a pole, and an explosion-proof valve, and the recognizing the second image to obtain a second area to be detected corresponding to the first area to be detected in the second image includes:

[0015] Recognizing the second image to obtain at least one second target area;

[0016] The second area to be inspected is confirmed according to the component type corresponding to each second target area; wherein, at least one second area to be inspected includes a second top patch area, a second pole area, a second explosion-proof valve area, and depth information of each second area to be inspected.

[0017] Through the method in the above embodiment, the corresponding areas to be detected in the first image and the second image can be accurately determined, providing a reliable data basis for subsequent defect detection and helping to improve detection accuracy.

[0018] In an implementation of the first aspect, the step of confirming the second area to be inspected according to the component type corresponding to each second target area includes:

[0019] Correcting each of the second target areas to obtain a corrected second target area;

[0020] The second area to be inspected is confirmed according to the component type corresponding to each second target area and the corrected second target area.

[0021] By correcting the second target area using the above method, the error in depth information caused by the distortion of the second image can be eliminated, thereby providing a reliable data basis for subsequent defect detection.

[0022] In an implementation of the first aspect, correcting each second target area to obtain a corrected second target area includes:

[0023] Performing plane deformation correction on the second image to obtain a corrected second image; wherein the corrected second image includes a horizontal second top patch area, a horizontal second pole area, and a horizontal second explosion-proof valve area.

[0024] By performing plane deformation correction on the second image using the above method, the error in depth information caused by the plane distortion of the second image can be eliminated, thereby providing a reliable data basis for subsequent defect detection.

[0025] In an implementation of the first aspect, when the component type corresponding to the second target area is a top patch or a pole, performing plane deformation correction on the second image to obtain a corrected second image includes:

[0026] performing plane fitting on the second image according to the least squares method to obtain a fitting result;

[0027] The depth value of each pixel in the second image is adjusted according to the fitting result to obtain a corrected second image.

[0028] In an implementation of the first aspect, when the component type corresponding to the second target area is an explosion-proof valve, performing plane deformation correction on the second image to obtain a corrected second image includes:

[0029] Calculating an average of depth values ​​of a preset area corresponding to the second explosion-proof valve area in the second image, wherein the preset area is adjacent to or spaced apart from the second explosion-proof valve area, and the spacing distance when spaced apart is within a preset distance range;

[0030] Determine the reference plane of the battery cell top cover according to the average value;

[0031] The depth value of each pixel in the second image is adjusted according to the reference plane of the battery cell top cover to obtain a corrected second image.

[0032] In the embodiments of the present application, different plane deformation correction methods can be used for the second target areas of different component types. First, the depth information of the second target area is corrected, and then defect detection is performed based on the corrected depth information of the second target area. This can effectively eliminate the interference caused by the overall tilt of the battery cell top cover on the detection results, thereby improving detection accuracy.

[0033] In an implementation of the first aspect, obtaining the detection result of the battery cell top cover according to the first area to be detected and the second area to be detected includes:

[0034] According to the first top patch area, the first pole area and / or the first explosion-proof valve area, and the horizontal second top patch area, the horizontal second pole area and / or the horizontal second explosion-proof valve area, defect detection results of the top patch, the pole and / or the explosion-proof valve are obtained.

[0035] In the embodiment of the present application, different detection methods can be used for different component types, thereby improving the detection accuracy of each component type.

[0036] In an implementation of the first aspect, the step of obtaining a defect detection result of the top patch according to the first top patch area and the horizontal second top patch area includes:

[0037] Detecting the first top patch area to obtain a first defect position in the first top patch area;

[0038] Verifying the first defect position according to the horizontal second top patch area to obtain a defect detection result of the top patch;

[0039] The step of obtaining a defect detection result of the pole according to the first pole region and the horizontal second pole region includes:

[0040] Detecting the first pole region to obtain a second defect position in the first pole region;

[0041] The second defect position is verified according to the horizontal second pole area to obtain a defect detection result of the pole.

[0042] In an implementation of the first aspect, verifying the first defect position according to the horizontal second top patch area to obtain a defect detection result of the top patch includes:

[0043] Obtaining depth information corresponding to the first defect position from the horizontal second top patch area;

[0044] Obtaining a defect detection result of the top patch according to the depth information corresponding to the first defect position;

[0045] The verifying the second defect position according to the horizontal second pole region to obtain the pole defect detection result includes:

[0046] Obtaining depth information corresponding to the second defect position from the horizontal second pole region;

[0047] A defect detection result of the pole is obtained according to the depth information corresponding to the second defect position.

[0048] In the embodiment of the present application, the plane information of the area to be detected is first used for detection, and then the depth information of the area to be detected is used for re-judgment, which can effectively reduce the probability of misjudgment and thus effectively improve the accuracy of defect detection.

[0049] In an implementation of the first aspect, the step of obtaining a defect detection result of the explosion-proof valve according to the first explosion-proof valve area and the horizontal second explosion-proof valve area includes:

[0050] Detecting the horizontal second explosion-proof valve area to obtain a third defect position of the explosion-proof valve;

[0051] A defect detection result of the explosion-proof valve is obtained according to the third defect position.

[0052] In an implementation of the first aspect, obtaining a defect detection result of the explosion-proof valve according to the third defect position includes:

[0053] Counting the number of the third defect positions to obtain the number of the third defect positions;

[0054] If the number of the third defect positions exceeds a preset number, detecting the third image of the explosion-proof valve to obtain the defect area of ​​the explosion-proof valve;

[0055] A defect detection result of the explosion-proof valve is obtained according to the third defect position and the defect area.

[0056] In the embodiment of the present application, the defect location is first detected based on the depth information, and then the plane information (two-dimensional image) is used for auxiliary judgment. It can fully utilize the depth information of the area to be detected to explore deformation defects at height, effectively reducing the probability of missed detection; using plane information to assist in judgment improves the comprehensiveness of detection, thereby improving the reliability of the detection results. In addition, considering the two dimensions of defect degree and defect area, this method can effectively avoid misjudgment and help improve detection accuracy.

[0057] In an implementation of the first aspect, detecting a third defect position of the explosion-proof valve according to the horizontal second explosion-proof valve area includes:

[0058] determining reference plane information of the explosion-proof valve according to the horizontal second explosion-proof valve area;

[0059] A third defect position of the explosion-proof valve is obtained according to the reference plane information of the explosion-proof valve.

[0060] In the embodiment of the present application, the reference plane of the explosion-proof valve is determined according to the depth information of the target area itself, which can reduce false detection caused by the overall tilt of the explosion-proof valve area and effectively improve the detection accuracy.

[0061] In an implementation of the first aspect, determining the reference plane information of the explosion-proof valve according to the horizontal second explosion-proof valve area includes:

[0062] Performing statistics on the depth information in the horizontal second explosion-proof valve region to obtain statistical data on the depth information in the horizontal second explosion-proof valve region;

[0063] The reference plane of the explosion-proof valve is determined according to the statistical data of the depth information of the horizontal second explosion-proof valve area.

[0064] In the embodiment of the present application, the statistical data can reflect the values ​​of a group of data having an obvious central trend point. Therefore, the reference plane of the explosion-proof valve area determined based on the statistical data is relatively accurate.

[0065] In an implementation of the first aspect, the performing statistics on the depth information in the horizontal second explosion-proof valve region to obtain statistical data on the depth information in the horizontal second explosion-proof valve region includes:

[0066] Performing statistics on depth information in the horizontal second explosion-proof valve region to obtain a histogram;

[0067] Statistical data of depth information of the horizontal second explosion-proof valve area is obtained according to the histogram.

[0068] In an implementation of the first aspect, the explosion-proof valve includes a protective film, and the second explosion-proof valve region includes a first protective film region, wherein the protective film is a film covering the explosion-proof valve; and the method further includes:

[0069] A defect detection result of the protective film is determined according to a positional relationship between the first protective film region and the second pole region in the second image.

[0070] In the embodiments of the present application, the positional relationship between the protective film and the pole is used to determine whether the protective film is offset. This detection method can not only detect offset defects of the protective film, but also detect the offset of the pole position as a protective film offset, effectively reducing the probability of missed detection and thus improving detection reliability.

[0071] In an implementation of the first aspect, determining a defect detection result of the protective film according to a positional relationship between the first protective film region and the second pole region in the second image includes:

[0072] A defect detection result of the protective film region is determined according to a positional relationship between a center position of the first protective film region and a center position of the second pole region.

[0073] In an implementation of the first aspect, determining a defect detection result of the protective film region based on a positional relationship between a center position of the first protective film region and a center position of the second pole region includes:

[0074] Obtaining an offset distance between the protective film and the pole according to a center position of the first protective film region and a center position of the second pole region;

[0075] A defect detection result of the protective film is determined according to an offset distance between the protective film and the pole.

[0076] In the embodiment of the present application, the offset angle between the center of the protective film and the reference point at the center of the reference line is used to determine whether the protective film is offset. This detection method can not only detect offset defects of the protective film, but also detect the offset of the protective film when the pole position is offset, effectively reducing the probability of missed detection and thus improving detection reliability.

[0077] In an implementation of the first aspect, recognizing the first image to obtain at least one first target area within the first image includes:

[0078] Acquire a trained detection model, where the detection model is used to segment at least one first target region from the first image;

[0079] Image detection is performed on the first image according to the trained detection model to obtain at least one first target area in the first image.

[0080] In an implementation of the first aspect, the method further includes:

[0081] Acquire a sample data set, wherein the sample data set includes a region sample corresponding to the first target region;

[0082] The detection model is trained according to the sample data set to obtain the trained detection model.

[0083] In the embodiment of the present application, a pre-trained detection model can be used to quickly and accurately identify the target area in the first image or the second image, thereby improving the efficiency of defect detection.

[0084] In a second aspect, a method for detecting a battery cell top cover is provided, comprising:

[0085] Acquire a fourth image of the top cover of the battery cell to be tested;

[0086] Recognizing the fourth image to obtain a third area to be detected in the fourth image;

[0087] A detection result of the battery cell top cover is obtained according to the third area to be detected.

[0088] In an implementation of the second aspect, the component types of the battery cell top cover include poles and protective films, and the protective film is a film of an explosion-proof valve covering the battery cell top cover;

[0089] The identifying the fourth image to obtain a third area to be detected in the fourth image includes:

[0090] recognizing the fourth image to obtain at least one third target area within the fourth image;

[0091] The third area to be detected is confirmed according to the component type corresponding to each of the third target areas; wherein, at least one of the third areas to be detected includes a third pole area, a second protective film area, and depth information of each of the third areas to be detected on the battery cell top cover.

[0092] In an implementation of the second aspect, the step of confirming the third area to be inspected according to the component type corresponding to each of the third target areas includes:

[0093] Correcting each of the third target areas to obtain the corrected third target areas;

[0094] The third area to be inspected is confirmed according to the component type corresponding to each of the third target areas and the corrected third target area.

[0095] In an implementation of the second aspect, correcting each of the third target areas to obtain the corrected third target areas includes:

[0096] Performing plane deformation correction on the fourth image to obtain a corrected fourth image; wherein the corrected fourth image includes a horizontal third pole region and a horizontal second protective film region.

[0097] In an implementation of the second aspect, obtaining the detection result of the battery cell top cover according to the third area to be detected includes:

[0098] A defect detection result of the protective film is obtained according to the horizontal third pole region and the horizontal second protective film region.

[0099] In an implementation of the second aspect, the step of obtaining a defect detection result of the protective film according to the horizontal third pole region and the horizontal second protective film region includes:

[0100] A defect detection result of the protective film is determined according to a positional relationship between the horizontal third pole region and the horizontal second protective film region.

[0101] In an implementation of the second aspect, determining the defect detection result of the protective film according to the positional relationship between the horizontal third pole region and the horizontal third protective film region includes:

[0102] A defect detection result of the protective film region is determined according to a positional relationship between a center position of the horizontal second protective film region and a center position of the horizontal third pole region.

[0103] In an implementation of the second aspect, determining the defect detection result of the protective film region according to the positional relationship between the center position of the horizontal second protective film region and the center position of the horizontal third pole region includes:

[0104] Obtaining an offset distance between the protective film and the pole according to a center position of the horizontal second protective film region and a center position of the horizontal third pole region;

[0105] A defect detection result of the protective film is determined according to an offset distance between the protective film and the pole.

[0106] In a third aspect, a battery cell top cover detection device is provided, comprising:

[0107] The acquisition unit is used to acquire a first image and a second image of the top cover of the battery cell to be tested.

[0108] The recognition unit is used to recognize the first image and the second image to obtain a first area to be detected in the first image and a second area to be detected corresponding to the first area to be detected in the second image.

[0109] The detection unit is used to obtain the detection result of the battery cell top cover according to the first area to be detected and the second area to be detected.

[0110] In a third aspect, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, the battery cell top cover detection method as described in any one of the first aspect or the battery cell top cover detection method as described in any one of the second aspect is implemented.

[0111] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the battery cell top cover detection method as described in any one of the first aspect or the battery cell top cover detection method as described in any one of the second aspect is implemented.

[0112] In a fifth aspect, a detection system is provided, comprising a carrying device, an imaging device and an electronic device; the carrying device is used to carry the battery cell to be tested; the imaging device is used to photograph the battery cell top cover of the battery cell to be tested on the carrying device; and the electronic device is used to perform defect detection on the battery cell top cover of the battery cell to be tested based on the image photographed by the imaging device.

[0113] In an implementation of the fifth aspect, the imaging device includes a first camera, configured to acquire the first image, the second image, or the fourth image of the battery cell top cover.

[0114] In an implementation of the fifth aspect, the imaging device includes a second camera for acquiring a third image of the battery cell top cover.

[0115] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.

[0116] It can be understood that the beneficial effects of the second to fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0117] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference numerals are used throughout the drawings to represent the same components. In the drawings:

[0118] FIG1 is a schematic diagram of a battery cell top cover provided in an embodiment of the present application;

[0119] FIG2 is a schematic diagram of a detection system provided in an embodiment of the present application;

[0120] FIG3 is a schematic diagram of a 3D camera detection principle provided by an embodiment of the present application;

[0121] FIG4 is a schematic diagram of line scan photography provided by an embodiment of the present application;

[0122] FIG5 is a schematic diagram of a flow chart of a cell top cover detection method provided in an embodiment of the present application;

[0123] FIG6 is a schematic diagram of plane correction of the explosion-proof valve area provided in an embodiment of the present application;

[0124] FIG7 is a schematic diagram of a top patch defect detection process provided by an embodiment of the present application;

[0125] FIG8 is a schematic diagram of a histogram provided in an embodiment of the present application;

[0126] FIG9 is a schematic diagram of an explosion-proof valve defect detection process provided in an embodiment of the present application;

[0127] FIG10 is a schematic diagram of a protective film offset defect detection method according to an embodiment of the present application;

[0128] FIG11 is a schematic diagram of a protective film defect detection process provided by an embodiment of the present application;

[0129] FIG12 is a structural block diagram of a battery cell top cover detection device provided in an embodiment of the present application;

[0130] FIG13 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. Modes for Carrying Out the Invention

[0131] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art 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" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.

[0132] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.

[0133] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0134] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent the following three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.

[0135] 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).

[0136] background

[0137] The battery cell top cover includes multiple areas. See Figure 1, which is a schematic diagram of the battery cell top cover provided in an embodiment of the present application. As shown in Figure 1, the battery cell top cover includes a top patch area 111, an explosion-proof valve area 112 and a pole area 113. There is a height difference between these areas. For example, with the top patch as the reference horizontal plane, the top surface of the pole is higher than the top patch, and the aluminum foil surface of the explosion-proof valve is lower than the top patch. Among them, the battery cell top cover also includes a protective film area. A layer of protective film is usually provided on the surface of the explosion-proof valve to protect the explosion-proof valve. The protective film can be a PP film (a film made of polypropylene as raw material).

[0138] Currently, a stop-and-go approach is typically used to capture images of the cell top cover. This involves sequentially moving the battery cells to different imaging stations, with the camera at each station capturing the cell top cover. This approach allows the camera at each station to capture only a portion of the cell top cover. To meet production schedules, the number of imaging stations is often reduced, which can lead to missed inspections of some areas of the cell top cover, resulting in lower accuracy in cell top cover inspection.

[0139] In order to solve the above problems, an embodiment of the present application provides a method for detecting the top cover of a battery cell. In the embodiment of the present application, a first image and a second image containing all areas of the top cover of the battery cell can be obtained, and the areas to be detected in the first image and the second image correspond to each other. The various areas on the top cover of the battery cell are detected based on the corresponding areas to be detected in the first image and the second image. Through the above method, both images captured contain all areas of the top cover of the battery cell, and there is no need to set up multiple shooting stations, which meets the requirements of production rhythm; at the same time, the use of two images for detection ensures detection accuracy.

[0140] First, the detection system is introduced.

[0141] Refer to Figure 2, which is a schematic diagram of a detection system provided in an embodiment of the present application. As shown in Figure 2, the detection system may include a carrier 21, an imaging device 22, and an electronic device 23. The carrier 21 is used to support the battery cell to be tested; the imaging device 22 is used to photograph the cell top cover of the battery cell to be tested on the carrier 21; and the electronic device 23 is used to perform defect detection on the cell top cover of the battery cell to be tested based on the image captured by the imaging device 22.

[0142] The imaging device 22 and the electronic device 23 may exchange data in a wired or wireless manner.

[0143] In one implementation, a conveyor belt may be provided on the carrying device 21, and the battery cell to be tested is placed on the conveyor belt and is conveyed to the shooting station as the conveyor belt moves. An imaging device 22 is provided at the shooting station. When the battery cell to be tested arrives at the shooting station, the imaging device 22 shoots the battery cell top cover of the battery cell to be tested on the shooting station, obtains a first image and a second image, and then sends the first image and the second image to the electronic device 23. After receiving the first image and the second image, the electronic device 23 performs defect detection on the battery cell top cover of the battery cell to be tested using the battery cell top cover detection method provided in the following embodiment of the present application.

[0144] In some embodiments, the imaging device 22 includes a first camera for acquiring the first image, the second image, or the fourth image of the battery cell top cover.

[0145] There are height differences between various areas of the cell top cover. For example, using the top patch as the reference horizontal plane, the top surface of the pole is higher than the top patch, while the aluminum foil surface of the explosion-proof valve is lower than the top patch. Therefore, defects in the cell top cover include deformation defects based on height. However, related technologies can only detect deformation defects based on area, not all defects in the cell top cover. This incomplete detection results in low reliability.

[0146] To address the above issues, in one embodiment, the first camera can be a 3D camera. A 3D camera, also known as a depth camera, can detect the depth of field of the captured space, that is, it can obtain the distance between each point on the captured object and the camera. See Figure 3, which is a schematic diagram of the 3D camera detection principle provided by an embodiment of the present application. As shown in Figure 3, the 3D camera 31 reconstructs the surface contour of the object 32 by capturing the laser line information projected by the built-in laser generator onto the surface of the object being measured.

[0147] The scanned image captured by a 3D camera includes not only the planar information of the object being photographed (the x- and y-axis coordinates shown in Figure 3), but also its depth information (the z-axis coordinate shown in Figure 3). Each set of planar information corresponds to a depth value. For example, each (x, y) coordinate corresponds to a z-coordinate, meaning that (x, y, z) constitutes the three-dimensional information of a point on the object being measured. In practical applications, the scanned image can be represented as a grayscale image or a pseudo-color image, where each pixel in the grayscale or pseudo-color image corresponds to a depth value.

[0148] In the embodiment of the present application, the first image can be a grayscale image or pseudo-color image captured by a 3D camera, and the second image and the fourth image can be depth images (such as point cloud images) captured by the 3D camera. In other words, the first image contains the position information of each area on the battery cell top cover, and the second image and the fourth image contain the depth information (such as depth values) of each area on the battery cell top cover.

[0149] In an embodiment of the present application, depth information of the object being tested is obtained through a 3D camera, which not only can detect deformation defects on the top cover of the battery cell based on area, but also can detect deformation defects based on height. The detection is more comprehensive and effectively improves the reliability of the detection results.

[0150] In one implementation, the first camera can capture the top cover of the battery cell using a linear scan method. The linear scan method involves constant motion between the camera and the object being captured, as in scanning. FIG4 is a schematic diagram of a line scan method according to an embodiment of the present application. As shown in FIG4 , the movement direction 44 of the battery cell 42 is perpendicular to the shooting direction 43 of the camera 41. During the movement of the battery cell, the camera acquires a two-dimensional image line by line through continuous single-line scanning.

[0151] Compared to area array imaging, linear scanning offers both faster acquisition speeds and higher resolution. Therefore, linear scanning can meet production cycle demands while ensuring image clarity and, consequently, inspection accuracy.

[0152] Optionally, in an embodiment of the present application, the first camera may be a charge coupled device (CCD) camera. A CCD is a semiconductor device that converts optical images into digital signals. CCD cameras are compact, lightweight, unaffected by magnetic fields, and resistant to vibration and impact.

[0153] In some other embodiments, the imaging device 22 includes a second camera for acquiring a third image of the battery cell top cover.

[0154] In the embodiment of the present application, the second camera may be a 2D camera, and the third image may be a two-dimensional image captured by the 2D camera, such as an RGB image.

[0155] The image captured by the first camera may ignore some two-dimensional information of the battery cell top cover (such as RGB information). Using the image captured by the second camera to assist in detection is equivalent to more comprehensively considering the characteristic information of the battery cell top cover, which is conducive to improving detection accuracy.

[0156] Based on the above detection system, the electronic device 23 can obtain the first image and the second image of the battery cell top cover to be tested, and perform defect detection on the battery cell top cover based on the first image and the second image. The following describes the battery cell top cover detection method.

[0157] See Figure 5, which is a flow chart of a method for detecting a cell top cover provided by an embodiment of the present application. As an example and not a limitation, as shown in Figure 5, the method for detecting a cell top cover may include the following steps:

[0158] S501 , obtaining a first image and a second image of a top cover of a battery cell to be tested.

[0159] As described in the embodiment of Figure 2, the first image is a grayscale image or pseudo-color image obtained by the first camera, and the second image is a depth map obtained by the first camera. Wherein, a grayscale image refers to an image represented by grayscale, and grayscale is divided into 256 grayscales. For example, pixels with the same depth value in a grayscale image are represented as the same grayscale. A pseudo-color image refers to a monochrome image represented by a color image, and each pixel value in the pseudo-color image corresponds to an index value or code. For example, pixels with the same depth value in a pseudo-color image appear as the same color, and the depth of each pixel can be distinguished by the color in the pseudo-color image. Each pixel in the grayscale image or pseudo-color image corresponds to a pixel in the depth map. In other words, each pixel of the battery cell top cover taken by the first camera has its corresponding position information (such as (x, y) coordinates) in the grayscale image and a particularly corresponding depth value (such as z coordinate) in the depth map. In this way, the three-dimensional coordinate information of each pixel on the battery cell top cover can be obtained by the first camera.

[0160] S502 : Identify the first image and the second image to obtain a first area to be detected in the first image and a second area to be detected corresponding to the first area to be detected in the second image.

[0161] As shown in the embodiment of Figure 1, the cell top cover includes the top patch area, the explosion-proof valve area, and the pole area. Correspondingly, in the embodiment of the present application, the area to be inspected includes the top patch area, the explosion-proof valve area, and the pole area.

[0162] In some embodiments, the step of identifying the first image in S502 to obtain the first area to be detected in the first image includes: identifying the first image to obtain at least one first target area within the first image; confirming the first area to be detected based on the corresponding component type of each first target area; wherein, at least one first area to be detected includes the first top patch area, the first pole area, the first explosion-proof valve area, and the position information of each first area to be detected on the top cover of the battery cell.

[0163] The step of identifying the second image in S502 to obtain the second area to be inspected in the second image includes: identifying the second image to obtain at least one second target area; confirming the second area to be inspected based on the component type corresponding to each second target area; wherein the at least one second area to be inspected includes a second top patch area, a second pole area, a second explosion-proof valve area, and depth information of each second area to be inspected.

[0164] Component types include top patch, explosion-proof valve, and pole. Accordingly, the at least one first target area identified from the first image may include the top patch area, explosion-proof valve area, and pole area, and the at least one second target area identified from the second image may include the top patch area, explosion-proof valve area, and pole area. Because the battery cell top cover includes multiple areas, in order to ensure the accuracy of subsequent testing, in this embodiment of the present application, the corresponding first and second areas to be tested are determined based on the component type of each target area.

[0165] For example, three first target areas, A, B, and C, are identified from the first image, and three second target areas, a, b, and c, are identified from the second image. A and a have the same component type: top mounts; B and b have the same component type: explosion-proof valves; and C and c have the same component type: poles. A and a are then identified as the corresponding first and second areas to be inspected, B and b are identified as the corresponding first and second areas to be inspected, and C and c are identified as the corresponding first and second areas to be inspected.

[0166] Of course, it is also possible to perform defect detection on only one of the identified target areas. In this case, a corresponding set of first and second areas to be detected is identified. Continuing with the above example, assuming that defect detection is required for the top patch, A is identified as the first area to be detected, and a is identified as the second area to be detected.

[0167] Through the method in the above embodiment, the corresponding areas to be detected in the first image and the second image can be accurately determined, providing a reliable data basis for subsequent defect detection and helping to improve detection accuracy.

[0168] In some embodiments, a method of identifying the first image to obtain the first target area, or identifying the second image to obtain the second target area may include:

[0169] Obtain a trained detection model, which is used to segment at least one first target area from the first image, or segment at least one second target area from the second image; perform image detection on the first image or the second image according to the trained detection model to obtain at least one first target area in the first image or at least one second target area in the second image.

[0170] It can be understood that the detection model can be used to identify only one of the first image or the second image, or can be used to identify both the first image and the second image.

[0171] Accordingly, the method further includes:

[0172] A sample data set is obtained, wherein the sample data set includes area samples corresponding to the first target area; and the detection model is trained according to the sample data set to obtain the trained detection model.

[0173] For example, when the detection model is used to identify the first image, the sample dataset includes regional samples of the top patch area, the explosion-proof valve area, and the pole area, and the regional samples are grayscale images or pseudo-color images. When the detection model is used to identify the second image, the sample dataset includes regional samples of the top patch area, the explosion-proof valve area, and the pole area, and the regional samples are depth images.

[0174] Through the pre-trained detection model, the target area in the first image or the second image can be identified quickly and accurately, which is conducive to improving the efficiency of defect detection.

[0175] In other embodiments, a method of identifying the first image to obtain the first target area, or identifying the second image to obtain the second target area may include:

[0176] A preset template may be used to compare with the first image or the second image, and an area matching the template may be identified from the first image or the second image and recorded as a target area.

[0177] In some embodiments, according to the component type corresponding to each second target area, the step of confirming the second area to be inspected may include:

[0178] Correcting each of the second target areas to obtain a corrected second target area;

[0179] The second area to be inspected is confirmed according to the component type corresponding to each second target area and the corrected second target area.

[0180] By correcting the second target area using the above method, the error in depth information caused by the distortion of the second image can be eliminated, thereby providing a reliable data basis for subsequent defect detection.

[0181] In actual applications, due to certain installation errors in the shooting device, the shooting direction of the shooting device is not perpendicular to the plane where the battery cell top cover is located, resulting in planar distortion of the second image captured, thereby affecting the accuracy of the depth information of each pixel point in the second image.

[0182] The correction step includes: performing plane deformation correction on the second image to obtain a corrected second image; wherein the corrected second image includes a horizontal second top patch area, a horizontal second pole area, and a horizontal second explosion-proof valve area.

[0183] By performing plane deformation correction on the second image using the above method, the error in depth information caused by the plane distortion of the second image can be eliminated, thereby providing a reliable data basis for subsequent defect detection.

[0184] In the embodiment of the present application, different plane deformation correction methods can be used for the second target areas of different component types.

[0185] In one implementation, when the component type corresponding to the second target area is a top patch or a pole, plane fitting is performed on the second image according to the least squares method to obtain a fitting result; the depth value of each pixel point in the second image is adjusted according to the fitting result to obtain a corrected second image.

[0186] Optionally, calibration can be performed using HALCON machine vision software. HALCON is a comprehensive suite of standard machine vision algorithms and a widely used integrated development environment for machine vision. Specifically, surface fitting is performed using the fit_surface_first_order operator (based on the least squares method) in HALCON, followed by adjustment of the z-value (depth value) using the scale_image operator. This implementation is applicable when the second target area is a top patch or a pole area.

[0187] In another implementation, when the component type corresponding to the second target area is an explosion-proof valve, the average value of the depth value of the preset area corresponding to the second explosion-proof valve area in the second image is calculated, wherein the preset area is connected to or spaced apart from the second explosion-proof valve area, and the spacing distance when the spacing is set is within a preset distance range; the reference plane of the battery cell top cover is determined based on the average value; the depth value of each pixel point in the second image is adjusted based on the reference plane of the battery cell top cover to obtain the corrected second image.

[0188] This method can be applied when the second target area is an explosion-proof valve area. For example, see Figure 6, which is a schematic diagram of the plane correction of the explosion-proof valve area provided by an embodiment of the present application. As shown in Figure 6, the average depth value of the top patch area 62 (the area within the dashed box) surrounding the explosion-proof valve area 61 is first calculated. This average value is then subtracted from the depth value of each pixel within the explosion-proof valve area 61 to obtain the corrected depth information of the explosion-proof valve area 61.

[0189] In an embodiment of the present application, the depth information of the second target area is first corrected, and then defect detection is performed based on the corrected depth information of the second target area. This can effectively eliminate the interference of the overall tilt of the battery cell top cover on the detection result, thereby improving the detection accuracy.

[0190] S503: Obtain a detection result of the battery cell top cover according to the first area to be detected and the second area to be detected.

[0191] As described in step S502, the second target area is first calibrated. Accordingly, step S503 includes:

[0192] According to the first top patch area, the first pole area and / or the first explosion-proof valve area, and the horizontal second top patch area, the horizontal second pole area and / or the horizontal second explosion-proof valve area, defect detection results of the top patch, the pole and / or the explosion-proof valve are obtained.

[0193] In this embodiment of the present application, a first image and a second image are captured that encompass all areas of the cell cover. The areas to be inspected in the first and second images correspond to each other, and each area on the cell cover is inspected based on the corresponding areas to be inspected in the first and second images. This method captures all areas of the cell cover in both images, eliminating the need for multiple capture stations and meeting production cycle requirements. Furthermore, using two images for inspection ensures accuracy.

[0194] In the embodiment of the present application, different detection methods can be used for different component types. The following describes them separately according to component type.

[0195] 1. Top patch or pole

[0196] In some embodiments, the step of obtaining a defect detection result of the top patch according to the first top patch area and the horizontal second top patch area includes:

[0197] The first top patch area is detected to obtain a first defect position in the first top patch area; the first defect position is verified according to the horizontal second top patch area to obtain a defect detection result of the top patch.

[0198] In embodiments of the present application, an image detection method can be used to obtain the first defect location. In one implementation, the first top patch region is input into a trained image detection model, which outputs the first defect location in the first top patch region. The image detection model is an algorithmic model capable of performing image detection functions, such as a semantic segmentation model or a deep learning model capable of performing image detection functions, and is not specifically limited here.

[0199] Optionally, a method of verifying the first defect location may include:

[0200] Depth information corresponding to the first defect position is obtained from the horizontal second top patch area; and a defect detection result of the top patch is obtained according to the depth information corresponding to the first defect position.

[0201] Exemplarily, a depth value corresponding to the first defect location is obtained from the horizontal second top patch region; if the depth value corresponding to the first defect location is greater than a first threshold, the detection result is determined to be a top patch defect; if the depth value corresponding to the first defect location is less than or equal to the first threshold, the detection result is determined to be a top patch normal. The first threshold can be pre-set based on actual production requirements.

[0202] Typically, the first defect location corresponds to multiple pixels. In one implementation, the average depth value of the multiple pixels corresponding to the first defect location is calculated, and the average depth value corresponding to the first defect location is determined as the average depth value. In another implementation, the mode of the depth values ​​of the multiple pixels corresponding to the first defect location is counted, and the mode depth value corresponding to the first defect location is determined as the mode depth value. Of course, in actual applications, other calculation methods can also be used. The above are just two examples of calculation and are not intended to be specific limitations.

[0203] For example, see Figure 7, which is a schematic diagram of a top patch defect detection process provided by an embodiment of the present application. As shown in Figure 7, as an example and not a limitation, the top patch defect detection process may include the following steps:

[0204] 7-1. Acquire a first image and a second image of the top cover of the battery cell to be tested.

[0205] 7-2. Perform plane deformation correction on the second image to obtain a horizontal second top patch area.

[0206] The details of steps 7-1 to 7-2 can be found in the description of S501-S502 above, which will not be repeated here.

[0207] 7-3. Detect the first top patch area in the first image to obtain a first defect position in the first top patch area.

[0208] 7-4. Verify the first defect position based on the horizontal second top patch area.

[0209] 7-5. If the depth value corresponding to the first defect position is greater than the first threshold, it is determined that the detection result is that the top patch has a defect.

[0210] 7-6. If the depth value corresponding to the first defect position is less than or equal to the first threshold, the detection result is determined to be that the top patch is normal.

[0211] Similarly, for the pole, the step of obtaining a defect detection result of the pole according to the first pole region and the horizontal second pole region includes:

[0212] The first pole region is detected to obtain a second defect position in the first pole region; the second defect position is verified based on the horizontal second pole region to obtain a defect detection result of the pole.

[0213] The verifying the second defect position according to the horizontal second pole region to obtain the pole defect detection result includes:

[0214] Depth information corresponding to the second defect position is obtained from the horizontal second pole region; and a defect detection result of the pole is obtained based on the depth information corresponding to the second defect position.

[0215] The method of detecting pole defects is the same as the method of detecting top patch defects described above. For details, please refer to the above-mentioned top patch defect detection method, which will not be repeated here.

[0216] In the embodiment of the present application, the plane information of the area to be detected is first used for detection, and then the depth information of the area to be detected is used for re-judgment, which can effectively reduce the probability of misjudgment and thus effectively improve the accuracy of defect detection.

[0217] The detection method in the above embodiment is suitable for detecting target areas with large areas or obvious planar features, such as the top patch area or the pole area. However, for target areas with small areas or less obvious planar features, the detection accuracy of the method in the above embodiment is low.

[0218] 2. Explosion-proof valve

[0219] In some embodiments, the step of obtaining a defect detection result of the explosion-proof valve according to the first explosion-proof valve area and the horizontal second explosion-proof valve area includes:

[0220] I. Detect the horizontal second explosion-proof valve area to obtain a third defect position of the explosion-proof valve.

[0221] II. Obtain a defect detection result of the explosion-proof valve according to the third defect position.

[0222] In one implementation, step I may include:

[0223] The reference plane information of the explosion-proof valve is determined according to the horizontal second explosion-proof valve area; and the third defect position of the explosion-proof valve is obtained according to the reference plane information of the explosion-proof valve.

[0224] In the embodiment of the present application, the reference plane of the explosion-proof valve area is determined according to the depth information of the explosion-proof valve area itself, which can reduce false detection caused by the overall tilt of the explosion-proof valve area and effectively improve the detection accuracy.

[0225] A method for determining the reference plane of the explosion-proof valve includes: performing statistics on the depth information in the horizontal second explosion-proof valve area to obtain statistical data on the depth information of the horizontal second explosion-proof valve area; and determining the reference plane of the explosion-proof valve based on the statistical data on the depth information of the horizontal second explosion-proof valve area.

[0226] Optionally, the statistic may be mode or median, etc.

[0227] Specifically, the statistical data is obtained by: performing statistics on the depth information in the horizontal second explosion-proof valve area to obtain a histogram; and obtaining statistical data of the depth information in the horizontal second explosion-proof valve area according to the histogram.

[0228] Taking the mode as an example, see Figure 8, which is a schematic diagram of a histogram provided in an embodiment of the present application. As shown in Figure 8, the horizontal axis is the depth value (in μm) and the vertical axis is the number of position points. As can be seen from the figure, the depth value of -250 corresponds to the largest number of position points, so -250 is the mode of the histogram.

[0229] In practical applications, the reference plane is determined based on the mode and actual needs. For example, the plane corresponding to the mode can be determined as the reference plane for the explosion-proof valve area. For example, as shown in the example of Figure 8, the plane corresponding to -250 can be determined as the reference plane for the explosion-proof valve area. For another example, the plane corresponding to the sum of the mode and a preset value can be determined as the reference plane for the explosion-proof valve area. For example, as shown in the example of Figure 8, the plane corresponding to -250 + (-150) = -400 can be determined as the reference plane for the explosion-proof valve area.

[0230] In the embodiment of the present application, since the mode can reflect the value of a group of data with an obvious central trend point, the reference plane of the explosion-proof valve area determined according to the mode is relatively accurate.

[0231] In one implementation of the detection method for the third defect position, the depth value of each pixel point in the explosion-proof valve area is compared with the depth value of the reference plane of the explosion-proof valve area; if the depth value of the pixel point is less than the depth value of the reference plane, the position of the pixel point is determined to be the third defect position; if the depth value of the pixel point is greater than or equal to the depth value of the reference plane, the pixel point is determined to be normal.

[0232] Exemplarily, continuing with the example in FIG8 , if the depth value of the reference plane is -400, then if the depth value of the pixel point in the explosion-proof valve area is less than -400, it indicates that the position of the pixel point is the second defect position; if the depth value of the pixel point in the explosion-proof valve area is greater than -400, it indicates that the pixel point is normal.

[0233] In some other implementations of the third defect position detection, the depth value of each pixel point in the explosion-proof valve area is compared with the depth value of the reference plane of the explosion-proof valve area; the number of pixel points whose depth values ​​are less than the depth value of the reference plane is counted; if the number reaches a preset number, the position of the pixel point whose depth value is less than the depth value of the reference plane is determined to be the third defect position; if the number does not reach the preset number, the explosion-proof valve area is determined to be normal, that is, there is no third defect position.

[0234] Compared to the first implementation, the second implementation determines the presence of a third defect only when the number of pixels whose depth values ​​are less than the depth value of the reference surface reaches a preset number. This method effectively avoids misjudgments caused by inaccurate detection or the influence of individual points, improving detection accuracy.

[0235] In one implementation of step II, as long as the number of the third defect positions exceeds a preset number, it is determined that the explosion-proof valve has a defect. However, this method is likely to ignore the situation where the explosion-proof valve area is entirely concave or convex.

[0236] In one implementation, step II includes:

[0237] The number of the third defect positions is counted to obtain the number of the third defect positions; if the number of the third defect positions exceeds a preset number, the third image of the explosion-proof valve is detected to obtain the defect area of ​​the explosion-proof valve; and a defect detection result of the explosion-proof valve is obtained based on the third defect positions and the defect area.

[0238] Among them, the third image can be an RGB image or a two-dimensional grayscale image. The use of RGB images can more accurately and clearly reflect the planar features of the area to be detected. As described in the embodiment of Figure 2, the third image can be taken by the second camera. Unlike the first camera, the first camera's shooting object is the entire area of ​​the battery cell top cover, while the second camera's shooting object is the area to be detected (such as the explosion-proof valve area). In other words, the second camera has a smaller shooting range and is more targeted. In addition, since the second camera only shoots the area to be detected, there is no need to have excessively high requirements on the shooting accuracy of the second camera under the premise of meeting the production rhythm, which reduces the detection cost.

[0239] Optionally, in step II, the defect area in the third image can be detected using existing image detection methods. In one implementation, the third image is input into a trained image detection model, and the defect area in the third image is output. In another implementation, the third image is input into a trained image detection model, the defect location in the third image is output, and the defect area is calculated based on the defect location. The image detection model is an algorithmic model that can implement image detection functions, such as a semantic segmentation model, a deep learning model that can implement image detection functions, etc., and is not specifically limited here.

[0240] Optionally, obtaining a defect detection result for the explosion-proof valve based on the third defect location and the defect area may include: if the defect degree satisfies a first condition and the defect area satisfies a second condition, determining that a defect exists in the explosion-proof valve region; and if the defect degree does not satisfy the first condition and / or the defect area does not satisfy the second condition, determining that the explosion-proof valve region is normal, i.e., does not have a defect. The first condition is that the number of pixels contained in the third defect location reaches a preset number, and the second condition is that the defect area reaches a preset area.

[0241] In the embodiment of the present application, considering the two dimensions of defect degree and defect area, this method can effectively avoid misjudgment and help improve detection accuracy.

[0242] For example, see Figure 9, which is a schematic diagram of the explosion-proof valve defect detection process provided by an embodiment of the present application. As shown in Figure 9, the detection process may include the following steps:

[0243] 9-1. Acquire a first image and a second image of the top cover of the battery cell to be tested.

[0244] 9-2. Perform plane deformation correction on the second image to obtain a horizontal second explosion-proof valve area.

[0245] The details of steps 9-1 to 9-2 can be found in the description of S501-S502 above, which will not be repeated here.

[0246] 9-3. Determine a reference plane of the explosion-proof valve according to the horizontal second explosion-proof valve area.

[0247] 9-4. Detect the third defect position of the horizontal second explosion-proof valve area based on the reference plane of the explosion-proof valve.

[0248] 9-5. Detect the third image of the explosion-proof valve to obtain the defect area of ​​the explosion-proof valve.

[0249] 9-6. According to the third defect position and defect area, the defect detection result of the explosion-proof valve is obtained.

[0250] 9-7, if the degree of defect meets the first condition and the area of ​​defect meets the second condition, it is determined that the explosion-proof valve has defects.

[0251] 9-8, if the defect degree does not meet the first condition, and / or the defect area does not meet the second condition, it is determined that the explosion-proof valve is normal.

[0252] The details of steps 9-3 to 9-8 can be found in the description of the above explosion-proof valve embodiment, which will not be repeated here.

[0253] The detection method in the above embodiment is suitable for detecting a target area with a relatively small detection area or unclear planar features, such as an explosion-proof valve area.

[0254] In the detection method shown in the embodiment of Figure 7, the defect position is first detected based on the plane information (grayscale image or pseudo-color image), and then the defect position is re-judged using the depth information. The difference from the detection method shown in the embodiment of Figure 7 is that the detection method in the embodiment of Figure 9 first detects the defect position based on the depth information, and then uses the plane information (two-dimensional image) for auxiliary judgment. In the embodiment of the present application, different detection methods are used for different areas on the top cover of the battery cell, which is more targeted. Specifically, for target areas with larger areas or more obvious plane features, such as the top patch area or the pole area, the detection method in the embodiment of Figure 7 is used. Since the top patch area is larger and the top patch area may be engraved with information such as a QR code, if the histogram statistics method is used, the defect cannot be accurately located, and false detection is likely to occur; for the pole area, the center of its top surface is concave and the material itself is not smooth. In other words, the height of the pole cannot be unified by a reference plane. Therefore, if the histogram statistics method is used, the defect cannot be accurately located, and false detection is likely to occur. The detection method in the embodiment of FIG7 can make full use of the plane information of the top patch area or the pole area to detect deformation defects in area; in addition, the plane information is used to detect the defect position, and the depth information is used to re-judge the defect, which is conducive to improving the detection efficiency. For target areas with smaller areas or less obvious plane features, such as the explosion-proof valve area, the detection method in the embodiment of FIG9 is used. Since the explosion-proof valve area is small and its concave surface is relatively smooth, it is more difficult to detect area deformation. The detection method in the embodiment of FIG9 can make full use of the depth information of the area to be detected, and detect deformation defects in height, effectively reducing the probability of missed detection; using plane information to assist in judgment improves the comprehensiveness of detection, thereby improving the reliability of the detection results.

[0255] 3. Protective film

[0256] As shown in the embodiment of Figure 1, a protective film, such as a PP film, is provided on the surface of the explosion-proof valve to protect the explosion-proof valve. In the actual production process, the protective film may have deviation defects, which will result in the protective film being unable to protect the explosion-proof valve well.

[0257] In some embodiments, the first image further includes a first protective film area.

[0258] The method further comprises:

[0259] A defect detection result of the protective film is determined according to a positional relationship between the first protective film region and the second pole region in the second image.

[0260] In one implementation, the positional relationship is a positional relationship between a center position of the first protective film region and a center position of the second pole region.

[0261] Of course, other position points can also be used to calculate the position relationship, such as boundary points, etc. However, in practical applications, the detection of the center position is relatively simple and helps to improve the detection efficiency.

[0262] The determining of the defect detection result of the protective film region according to the positional relationship between the center position of the first protective film region and the center position of the second pole region includes:

[0263] According to the center position of the first protective film area and the center position of the second pole area, the offset distance between the protective film and the pole is obtained; according to the offset distance between the protective film and the pole, the defect detection result of the protective film is determined.

[0264] In one implementation, according to the formula and Calculate the center position of the first protective film area, where (x c ,y c ) represents the coordinates of the center position of the first protective film area, M 10 represents the sum of the x-coordinates of each pixel in the first protective film area, M 01 represents the sum of the y coordinates of each pixel in the first protective film area, M 00 Represents the area of ​​the first protective film region.

[0265] Typically, the center of the pole top surface is concave. In one implementation, image detection can be performed using the planar information of the pole top surface to obtain the center position of the second pole region. For example, the second pole region can be segmented from the second image, and then image detection can be performed based on the planar information of the second pole region (such as a grayscale image or a pseudo-color image).

[0266] Optionally, determining the defect detection result of the protective film based on the offset distance between the protective film and the pole may include: calculating the connecting line segment between the center positions of the two second pole areas; calculating the center of the connecting line segment as a reference point; calculating the offset distance between the center position of the first protective film area and the reference point; if the offset distance is within a preset distance range, it is determined that the protective film is normal, that is, there is no defect; if the offset distance exceeds the preset distance range, it is determined that the protective film has a defect.

[0267] For example, see Figure 10, which is a schematic diagram of protective film deflection defect detection according to an embodiment of the present application. The protective film is typically a transparent layer covering the explosion-proof valve area. As shown in Figure 10, the edge of protective film 101 is a black ring, and the area covered by protective film 101 is the explosion-proof valve. Center point 102 is the center point of pole 113, and center point 103 is the center point of explosion-proof valve 112. Point 104 is the reference point.

[0268] For example, see Figure 11, which is a schematic diagram of a protective film defect detection process provided by an embodiment of the present application. As shown in Figure 11, the detection process may include the following steps:

[0269] 11-1, obtaining a first image and a second image of a top cover of a battery cell to be tested.

[0270] 11-2, perform plane deformation correction on the second image to obtain a horizontal second pole region and a horizontal first protective film region.

[0271] The details of steps 11-1 to 11-2 can be found in the description of S501-S502 above, which will not be repeated here.

[0272] 11-3, according to the center position of the first protective film area and the center position of the second pole area, the offset distance between the protective film and the pole is obtained.

[0273] 11-4, if the offset distance is within the preset distance range, the protective film is determined to be normal.

[0274] 11-5, if the offset distance exceeds the preset distance range, it is determined that the protective film has defects.

[0275] In the embodiment of the present application, the offset angle between the center of the protective film and the reference point at the center of the reference line is used to determine whether the protective film is offset. This detection method can not only detect offset defects of the protective film, but also detect the offset of the protective film when the pole position is offset, effectively reducing the probability of missed detection and thus improving detection reliability.

[0276] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.

[0277] Corresponding to the battery cell top cover detection method described in the above embodiment, FIG12 is a structural block diagram of the battery cell top cover detection device provided in the embodiment of the present application. For the sake of convenience, only the parts related to the embodiment of the present application are shown.

[0278] 12 , the device 12 includes:

[0279] The acquisition unit 121 is configured to acquire a first image and a second image of the top cover of the battery cell to be tested.

[0280] The recognition unit 122 is configured to recognize the first image and the second image to obtain a first area to be detected in the first image and a second area to be detected corresponding to the first area to be detected in the second image.

[0281] The detection unit 123 is configured to obtain a detection result of the battery cell top cover according to the first area to be detected and the second area to be detected.

[0282] Optionally, the component types of the battery cell top cover include a top patch, a pole, and an explosion-proof valve, and the identification unit 122 is further configured to:

[0283] Recognizing the first image to obtain at least one first target area within the first image;

[0284] The first area to be inspected is confirmed according to the component type corresponding to each of the first target areas; wherein, at least one of the first areas to be inspected includes the first top patch area, the first pole area, the first explosion-proof valve area, and the position information of each of the first areas to be inspected on the top cover of the battery cell.

[0285] Optionally, the component types of the battery cell top cover include a top patch, a pole, and an explosion-proof valve, and the identification unit 122 is further configured to:

[0286] Recognizing the second image to obtain at least one second target area;

[0287] The second area to be inspected is confirmed according to the component type corresponding to each second target area; wherein, at least one second area to be inspected includes a second top patch area, a second pole area, a second explosion-proof valve area, and depth information of each second area to be inspected.

[0288] Optionally, the identification unit 122 is further configured to:

[0289] Correcting each of the second target areas to obtain a corrected second target area;

[0290] The second area to be inspected is confirmed according to the component type corresponding to each second target area and the corrected second target area.

[0291] Optionally, the identification unit 122 is further configured to:

[0292] Performing plane deformation correction on the second image to obtain a corrected second image; wherein the corrected second image includes a horizontal second top patch area, a horizontal second pole area, and a horizontal second explosion-proof valve area.

[0293] Optionally, the identification unit 122 is further configured to:

[0294] When the component type corresponding to the second target area is a top patch or a pole, performing plane fitting on the second image according to a least squares method to obtain a fitting result;

[0295] The depth value of each pixel in the second image is adjusted according to the fitting result to obtain a corrected second image.

[0296] Optionally, the identification unit 122 is further configured to:

[0297] When the component type corresponding to the second target area is an explosion-proof valve, calculating an average of depth values ​​of a preset area corresponding to the second explosion-proof valve area in the second image, wherein the preset area is adjacent to or spaced apart from the second explosion-proof valve area, and the spacing distance when the spacing is spaced apart is within a preset distance range;

[0298] Determine the reference plane of the battery cell top cover according to the average value;

[0299] The depth value of each pixel in the second image is adjusted according to the reference plane of the battery cell top cover to obtain a corrected second image.

[0300] Optionally, the detection unit 123 is further configured to:

[0301] According to the first top patch area, the first pole area and / or the first explosion-proof valve area, and the horizontal second top patch area, the horizontal second pole area and / or the horizontal second explosion-proof valve area, defect detection results of the top patch, the pole and / or the explosion-proof valve are obtained.

[0302] Optionally, the detection unit 123 is further configured to:

[0303] Detecting the first top patch area to obtain a first defect position in the first top patch area;

[0304] Verifying the first defect position according to the horizontal second top patch area to obtain a defect detection result of the top patch;

[0305] Detecting the first pole region to obtain a second defect position in the first pole region;

[0306] The second defect position is verified according to the horizontal second pole area to obtain a defect detection result of the pole.

[0307] Optionally, the detection unit 123 is further configured to:

[0308] Obtaining depth information corresponding to the first defect position from the horizontal second top patch area;

[0309] Obtaining a defect detection result of the top patch according to the depth information corresponding to the first defect position;

[0310] Obtaining depth information corresponding to the second defect position from the horizontal second pole region;

[0311] A defect detection result of the pole is obtained according to the depth information corresponding to the second defect position.

[0312] Optionally, the detection unit 123 is further configured to:

[0313] Detecting the horizontal second explosion-proof valve area to obtain a third defect position of the explosion-proof valve;

[0314] A defect detection result of the explosion-proof valve is obtained according to the third defect position.

[0315] Optionally, the detection unit 123 is further configured to:

[0316] Counting the number of the third defect positions to obtain the number of the third defect positions;

[0317] If the number of the third defect positions exceeds a preset number, detecting the third image of the explosion-proof valve to obtain the defect area of ​​the explosion-proof valve;

[0318] A defect detection result of the explosion-proof valve is obtained according to the third defect position and the defect area.

[0319] Optionally, the detection unit 123 is further configured to:

[0320] determining reference plane information of the explosion-proof valve according to the horizontal second explosion-proof valve area;

[0321] A third defect position of the explosion-proof valve is obtained according to the reference plane information of the explosion-proof valve.

[0322] Optionally, the detection unit 123 is further configured to:

[0323] Performing statistics on the depth information in the horizontal second explosion-proof valve region to obtain statistical data on the depth information in the horizontal second explosion-proof valve region;

[0324] The reference plane of the explosion-proof valve is determined according to the statistical data of the depth information of the horizontal second explosion-proof valve area.

[0325] Optionally, the detection unit 123 is further configured to:

[0326] Performing statistics on depth information in the horizontal second explosion-proof valve region to obtain a histogram;

[0327] Statistical data of depth information of the horizontal second explosion-proof valve area is obtained according to the histogram.

[0328] Optionally, the explosion-proof valve includes a protective film, and the second explosion-proof valve area includes a first protective film area, wherein the protective film is a film covering the explosion-proof valve; the detection unit 123 is also used to: determine the defect detection result of the protective film based on the positional relationship between the first protective film area and the second pole area in the second image.

[0329] Optionally, the detection unit 123 is further configured to:

[0330] A defect detection result of the protective film region is determined according to a positional relationship between a center position of the first protective film region and a center position of the second pole region.

[0331] Optionally, the detection unit 123 is further configured to:

[0332] Obtaining an offset distance between the protective film and the pole according to a center position of the first protective film region and a center position of the second pole region;

[0333] A defect detection result of the protective film is determined according to an offset distance between the protective film and the pole.

[0334] Optionally, the identification unit 122 is further configured to:

[0335] Acquire a trained detection model, where the detection model is used to segment at least one first target region from the first image;

[0336] Image detection is performed on the first image according to the trained detection model to obtain at least one first target area in the first image.

[0337] Optionally, the identification unit 122 is further configured to:

[0338] Acquire a sample data set, wherein the sample data set includes a region sample corresponding to the first target region;

[0339] The detection model is trained according to the sample data set to obtain the trained detection model.

[0340] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.

[0341] In addition, the cell top cover detection device shown in FIG12 can be a software unit, a hardware unit, or a combination of software and hardware units built into an existing terminal device, or can be integrated into the terminal device as an independent pendant, or can exist as an independent terminal device.

[0342] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.

[0343] Figure 13 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. As shown in Figure 13, the electronic device 13 of this embodiment includes: at least one processor 130 (only one is shown in Figure 13), a memory 131, and a computer program 132 stored in the memory 131 and executable on the at least one processor 130. When the processor 130 executes the computer program 132, it implements the steps of any of the above-mentioned battery cell top cover detection method embodiments.

[0344] The electronic device may be a computing device such as a desktop computer, a laptop, a PDA, or a cloud server. The electronic device may include, but is not limited to, a processor and a memory. Those skilled in the art will appreciate that FIG13 is merely an example of an electronic device 13 and does not limit the electronic device 13. The electronic device may include more or fewer components than shown, or a combination of certain components, or different components. For example, it may also include input / output devices, network access devices, etc.

[0345] The processor 130 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. A general-purpose processor may be a microprocessor or any conventional processor.

[0346] In some embodiments, the memory 131 may be an internal storage unit of the electronic device 13, such as a hard disk or memory of the electronic device 13. In other embodiments, the memory 131 may also be an external storage device of the electronic device 13, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 13. Furthermore, the memory 131 may also include both an internal storage unit of the electronic device 13 and an external storage device. The memory 131 is used to store an operating system, an application program, a boot loader, data, and other programs, such as the program code of the computer program. The memory 131 may also be used to temporarily store data that has been output or is to be output.

[0347] An embodiment of the present application further provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in the above-mentioned various method embodiments can be implemented.

[0348] An embodiment of the present application provides a computer program product. When the computer program product is run on a terminal device, the terminal device can implement the steps in the above-mentioned method embodiments when executing the computer program product.

[0349] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and when the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the device / terminal device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electric carrier signal, a telecommunication signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk. In some jurisdictions, according to legislation and patent practice, computer-readable media cannot be electric carrier signals and telecommunication signals.

[0350] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.

[0351] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.

[0352] In the embodiments provided in this application, it should be understood that the disclosed devices / terminal equipment and methods can be implemented in other ways. For example, the device / terminal equipment embodiments described above are merely illustrative. For example, the division of the modules or units is merely a logical function division. In actual implementation, there may be other division methods, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0353] The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed across multiple network units. Some or all of these units may be selected to achieve the purpose of this embodiment according to actual needs.

[0354] The above-described 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 make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.

Claims

1. A method for detecting a battery cell top cover, characterized in that: include: Acquire a first image and a second image of a top cover of a battery cell to be tested; Identify the first image and the second image to obtain a first area to be detected in the first image and a second area to be detected corresponding to the first area to be detected in the second image; A detection result of the battery cell top cover is obtained according to the first area to be detected and the second area to be detected.

2. The battery cell top cover detection method according to claim 1, characterized in that: The component types of the battery cell top cover include a top patch, a pole and an explosion-proof valve. The first image is identified to obtain a first area to be detected in the first image, including: Recognize the first image to obtain at least one first target area in the first image; The first area to be inspected is confirmed according to the corresponding component type of each first target area; wherein, at least one of the first areas to be inspected includes a first top patch area, a first pole area, a first explosion-proof valve area, and position information of each of the first areas to be inspected on the top cover of the battery cell.

3. The battery cell top cover detection method according to claim 1 or 2, characterized in that: The component types of the battery cell top cover include a top patch, a pole and an explosion-proof valve, and the identifying the second image to obtain the second area to be detected corresponding to the first area to be detected in the second image includes: recognizing the second image to obtain at least one second target area; The second area to be inspected is confirmed according to the corresponding component type of each second target area; wherein at least one of the second areas to be inspected includes a second top patch area, a second pole area, a second explosion-proof valve area, and depth information of each second area to be inspected.

4. The battery cell top cover detection method according to claim 3, characterized in that: The step of confirming the second area to be detected according to the component type corresponding to each of the second target areas includes: Correcting each of the second target areas to obtain a corrected second target area; The second area to be inspected is confirmed according to the component type corresponding to each of the second target areas and the corrected second target areas.

5. The battery cell top cover detection method according to claim 4, characterized in that: The step of correcting each of the second target regions to obtain a corrected second target region includes: Performing plane deformation correction on the second image to obtain a corrected second image; wherein the corrected second image includes a horizontal second top patch area, a horizontal second pole area, and a horizontal second explosion-proof valve area.

6. The battery cell top cover detection method according to claim 5, characterized in that: In a case where the component type corresponding to the second target area is a top patch or a pole, performing plane deformation correction on the second image to obtain a corrected second image includes: Performing plane fitting on the second image according to the least squares method to obtain a fitting result; The depth value of each pixel in the second image is adjusted according to the fitting result to obtain a corrected second image.

7. The battery cell top cover detection method according to claim 5, characterized in that: In a case where the component type corresponding to the second target area is an explosion-proof valve, performing plane deformation correction on the second image to obtain a corrected second image includes: Calculating an average value of depth values ​​of a preset area corresponding to the second explosion-proof valve area in the second image, wherein the preset area is connected to or spaced from the second explosion-proof valve area, and the spacing distance when spaced is within a preset distance range; Determine the reference plane of the battery cell top cover according to the average value; The depth value of each pixel in the second image is adjusted according to the reference plane of the battery cell top cover to obtain a corrected second image.

8. The battery cell top cover detection method according to claim 5, characterized in that: The step of obtaining the detection result of the battery cell top cover according to the first area to be detected and the second area to be detected includes: According to the first top patch area, the first pole area and / or the first explosion-proof valve area, and the horizontal second top patch area, the horizontal second pole area and / or the horizontal second explosion-proof valve area, defect detection results of the top patch, the pole and / or the explosion-proof valve are obtained.

9. The battery cell top cover detection method according to claim 8, characterized in that: The step of obtaining a defect detection result of the top patch according to the first top patch area and the horizontal second top patch area comprises: Detecting the first top patch area to obtain a first defect position in the first top patch area; Verifying the first defect position according to the horizontal second top patch area to obtain a defect detection result of the top patch; The step of obtaining a defect detection result of the pole according to the first pole region and the horizontal second pole region comprises: Detecting the first pole region to obtain a second defect position in the first pole region; The second defect position is verified according to the horizontal second pole area to obtain a defect detection result of the pole.

10. The battery cell top cover detection method according to claim 9, characterized in that: The verifying the first defect position according to the horizontal second top patch area to obtain the defect detection result of the top patch includes: Obtaining depth information corresponding to the first defect position from the horizontal second top patch area; Obtaining a defect detection result of the top patch according to the depth information corresponding to the first defect position; The verifying the second defect position according to the horizontal second pole area to obtain the pole defect detection result includes: Obtaining depth information corresponding to the second defect position from the horizontal second pole region; A defect detection result of the pole is obtained according to the depth information corresponding to the second defect position.

11. The battery cell top cover detection method according to claim 8, characterized in that: The step of obtaining a defect detection result of the explosion-proof valve according to the first explosion-proof valve area and the horizontal second explosion-proof valve area comprises: Detecting the horizontal second explosion-proof valve area to obtain a third defect position of the explosion-proof valve; According to the third defect position, a defect detection result of the explosion-proof valve is obtained.

12. The battery cell top cover detection method according to claim 11, characterized in that: The step of obtaining a defect detection result of the explosion-proof valve according to the third defect position includes: Counting the number of the third defect positions to obtain the number of the third defect positions; If the number of the third defect positions exceeds a preset number, detecting the third image of the explosion-proof valve to obtain the defect area of ​​the explosion-proof valve; A defect detection result of the explosion-proof valve is obtained according to the third defect position and the defect area.

13. The battery cell top cover detection method according to claim 11, characterized in that: The detecting a third defect position of the explosion-proof valve according to the horizontal second explosion-proof valve area comprises: Determining reference plane information of the explosion-proof valve according to the horizontal second explosion-proof valve area; A third defect position of the explosion-proof valve is obtained according to the reference plane information of the explosion-proof valve.

14. The battery cell top cover detection method according to claim 13, characterized in that: The step of determining the reference plane information of the explosion-proof valve according to the horizontal second explosion-proof valve area comprises: Performing statistics on the depth information in the horizontal second explosion-proof valve area to obtain statistical data on the depth information in the horizontal second explosion-proof valve area; The reference plane of the explosion-proof valve is determined according to the statistical data of the depth information of the horizontal second explosion-proof valve area.

15. The battery cell top cover detection method according to claim 14, characterized in that: The step of collecting statistics on the depth information in the horizontal second explosion-proof valve region to obtain statistical data on the depth information in the horizontal second explosion-proof valve region includes: Performing statistics on depth information in the horizontal second explosion-proof valve region to obtain a histogram; The statistical data of the depth information of the horizontal second explosion-proof valve area is obtained according to the histogram.

16. The battery cell top cover detection method according to claim 3, characterized in that: The explosion-proof valve includes a protective film, and the second explosion-proof valve area includes a first protective film area, wherein the protective film is a film covering the explosion-proof valve; The method further comprises: The defect detection result of the protective film is determined according to the positional relationship between the first protective film region and the second pole region in the second image.

17. The battery cell top cover detection method according to claim 16, characterized in that: The step of determining the defect detection result of the protective film according to the positional relationship between the first protective film region and the second pole region in the second image includes: The defect detection result of the protective film region is determined according to the positional relationship between the center position of the first protective film region and the center position of the second pole region.

18. The battery cell top cover detection method according to claim 17, characterized in that: The step of determining the defect detection result of the protective film region according to the positional relationship between the center position of the first protective film region and the center position of the second pole region comprises: Obtaining an offset distance between the protective film and the pole according to a center position of the first protective film region and a center position of the second pole region; A defect detection result of the protective film is determined according to an offset distance between the protective film and the pole.

19. The battery cell top cover detection method according to any one of claims 2 to 18, characterized in that: The identifying the first image to obtain at least one first target area in the first image includes: Acquire a trained detection model, where the detection model is used to segment at least one first target area from the first image; Image detection is performed on the first image according to the trained detection model to obtain at least one first target area in the first image.

20. The battery cell top cover detection method according to claim 19, characterized in that: The method further comprises: Acquire a sample data set, wherein the sample data set includes a region sample corresponding to the first target region; The detection model is trained according to the sample data set to obtain the trained detection model.

21. A method for detecting a battery cell top cover, characterized in that: The method comprises: Acquire a fourth image of the top cover of the battery cell to be tested; Recognize the fourth image to obtain a third area to be detected in the fourth image; According to the third area to be inspected, a detection result of the battery cell top cover is obtained.

22. The battery cell top cover detection method according to claim 21, characterized in that: The component types of the battery cell top cover include poles and protective films, and the protective film is a film of an explosion-proof valve covered on the battery cell top cover; The step of identifying the fourth image to obtain a third area to be detected in the fourth image includes: recognizing the fourth image to obtain at least one third target area in the fourth image; The third area to be detected is confirmed according to the component type corresponding to each of the third target areas; wherein at least one of the third areas to be detected includes a third pole area, a second protective film area, and depth information of each of the third areas to be detected on the top cover of the battery cell.

23. The battery cell top cover detection method according to claim 22, characterized in that: The step of confirming the third area to be detected according to the component type corresponding to each of the third target areas includes: Correcting each of the third target areas to obtain the corrected third target areas; The third area to be inspected is confirmed according to the component type corresponding to each of the third target areas and the corrected third target area.

24. The battery cell top cover detection method according to claim 23, characterized in that: The step of correcting each of the third target regions to obtain the corrected third target regions includes: Performing plane deformation correction on the fourth image to obtain a corrected fourth image; wherein the corrected fourth image includes a horizontal third pole region and a horizontal second protective film region.

25. The battery cell top cover detection method according to claim 24, characterized in that: The step of obtaining the detection result of the battery cell top cover according to the third area to be detected includes: A defect detection result of the protective film is obtained according to the horizontal third pole region and the horizontal second protective film region.

26. The battery cell top cover detection method according to claim 25, characterized in that: The step of obtaining a defect detection result of the protective film according to the horizontal third pole region and the horizontal second protective film region comprises: The defect detection result of the protective film is determined according to the positional relationship between the horizontal third pole region and the horizontal second protective film region.

27. The battery cell top cover detection method according to claim 26, characterized in that: The step of determining the defect detection result of the protective film according to the positional relationship between the horizontal third pole region and the horizontal third protective film region comprises: The defect detection result of the protective film region is determined according to the positional relationship between the center position of the horizontal second protective film region and the center position of the horizontal third pole region.

28. The battery cell top cover detection method according to claim 27, characterized in that: The step of determining the defect detection result of the protective film region according to the positional relationship between the center position of the horizontal second protective film region and the center position of the horizontal third pole region comprises: Obtaining an offset distance between the protective film and the pole according to the center position of the horizontal second protective film area and the center position of the horizontal third pole area; A defect detection result of the protective film is determined according to an offset distance between the protective film and the pole.

29. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, it implements the battery cell top cover detection method as described in any one of claims 1 to 20, or implements the battery cell top cover detection method as described in any one of claims 21 to 28.

30. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, it implements the battery cell top cover detection method as described in any one of claims 1 to 20, or implements the battery cell top cover detection method as described in any one of claims 21 to 28.

31. A detection system, characterized in that: It includes a carrying device, an imaging device and an electronic device; The carrying device is used to carry the battery cell to be tested; The imaging device is used to photograph the cell top cover of the cell to be tested on the carrying device; The electronic device is used to perform defect detection on the cell top cover of the cell to be tested according to the image taken by the imaging device.

32. The detection system according to any one of claims 31, characterized in that: The imaging device comprises a first camera, which is used to obtain a first image, a second image or a fourth image of the top cover of the battery cell.

33. The detection system according to claim 31 or 32, characterized in that: The imaging device includes a second camera for acquiring a third image of the battery cell top cover.

Citation Information

Patent Citations

  • High-precision defect detection method and device for annular weld joint

    CN114088738A

  • Welding seam detection method and device

    CN115601359A

  • Automatic lens inspection system

    CN1285910A

  • Appearance detection equipment for battery cell

    CN218917227U

  • Machine vision systems, illumination sources for use in machine vision systems, and components for use in the illumination sources

    US20200134773A1