Detection method, device, storage medium and program product

By using the target detection model on the battery production line to detect the insulation protection and placement orientation of the battery cells, the automation problem of reworked battery core detection is solved and the intelligence and efficiency of battery production are improved.

CN118314141BActive Publication Date: 2024-10-22CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410739791.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-07
Publication Date
2024-10-22
Estimated Expiration
2044-06-07

AI Technical Summary

Technical Problem

In the cell testing process, when unqualified products need to be reworked, real-time automatic detection of the reworked cells, including consistency detection of insulation protection duration and orientation, cannot be achieved, resulting in low production intelligence and efficiency.

Method used

By obtaining the image information of the battery production line, the trained target detection model is used to detect whether the battery cells have completed insulation protection, and the operating procedures are tested, including the detection of insulation protection duration and placement orientation, to achieve independent real-time detection of battery cells in the rework area. Monitoring and automatic detection.

Benefits of technology

It improves the intelligence and efficiency of battery production, and can automatically detect the insulation protection and orientation consistency of reworked cells, reducing the reliance on manual inspection and improving the automation level of production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118314141B_ABST
    Figure CN118314141B_ABST
Patent Text Reader

Abstract

The present application discloses a detection method, device, storage medium and program product. The detection device can obtain first image information of a rework area on a battery production line; use a trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result; based on the first detection result, each battery cell is tested for operating procedures to obtain a second detection result; wherein the detection of operating procedures includes the detection of the length of time that the battery cell has not been insulated and protected, and the detection of the orientation of the battery cell; based on the above scheme, autonomous detection of the battery cells in the rework area can be achieved, thereby improving the intelligence of battery production.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a detection method, device, storage medium and program product. Background Art

[0002] During the cell testing process, when the number of defective coated products reaches a certain amount, they will be sent to the rework area for manual rework. Currently, during the rework process, relevant inspectors inspect the cell products as required, but are unable to autonomously perform real-time detection of the reworked cells on each pull line, including automatic detection of whether the reworked cells on each pull line have not been insulated for a certain period of time, and whether the orientation of the cells is consistent. It can be seen that how to achieve autonomous detection of cells in the rework area and improve the intelligence of battery production is a technical problem that needs to be solved urgently. Summary of the invention

[0003] The embodiments of the present application provide a detection method, device, storage medium and program product, which can realize autonomous detection of battery cells in a rework area, thereby improving the intelligence of battery production.

[0004] The technical solution of the embodiment of the present application is implemented as follows:

[0005] In a first aspect, an embodiment of the present application provides a detection method, the method comprising:

[0006] Acquire first image information of a rework area on a battery production line;

[0007] Using the trained target detection model, detect whether each battery cell in the first image information has been insulated and protected, and obtain a first detection result;

[0008] Based on the first detection result, the operating procedure of each battery cell is tested to obtain a second detection result; wherein the testing of the operating procedure includes the testing of the length of time the battery cell is not insulated and the testing of the orientation of the battery cell.

[0009] In this embodiment, the detection device can obtain the first image information of the rework area corresponding to different battery production lines, and then use the trained target detection model to detect the first image information, so as to determine whether the battery cells in the current rework area have been insulated and protected, and realize autonomous real-time monitoring of whether the battery cells in the rework area have completed insulation protection; then the detection device can perform an operating procedure detection based on the first detection result to determine whether the battery cells in the rework area comply with the standard operating procedures, mainly including the detection of the length of time that the battery cells are not insulated and the detection of the direction of the battery cells, so as to automatically detect whether the reworked battery cells on each production line have not been insulated for more than a certain period of time, and whether the direction of the battery cells is consistent; thereby, comprehensive detection of battery production in the rework area can be achieved, which greatly improves the intelligence of battery production, thereby improving battery production efficiency.

[0010] In some embodiments of the present application, the second detection result includes a duration detection result and a direction detection result; and the second detection result is obtained by performing an operation procedure detection on each battery cell based on the first detection result, including:

[0011] When the first detection result indicates that there is a first battery cell without insulation protection among the battery cells, obtaining a first time duration for which the first battery cell is not insulation protected, so as to determine the time duration detection result according to the first time duration;

[0012] When the first detection result indicates that there is a second battery cell with insulation protection in each battery cell, the second battery cell is placed in an orientation detection manner to obtain an orientation detection result; wherein the orientation detection result is used to indicate whether the placement orientation of the second battery cell in the foam box in the rework area is consistent.

[0013] In this embodiment, when the operating procedure is detected, when it is determined based on the first detection result that there is a first battery cell without insulation protection, a first time duration without insulation protection is detected for the first battery cell; and when it is determined based on the first detection result that there is a second battery cell with insulation protection, a placement orientation detection is performed on the second battery cell to determine whether the placement orientations of the second battery cells in each foam box are consistent, thereby achieving intelligent detection of whether the reworked battery cells on each production line have not been insulated for more than a certain period of time and whether the placement orientations of the battery cells are consistent.

[0014] In some embodiments of the present application, the trained target detection model is used to detect whether each battery cell in the first image information has been insulated and protected, and a first detection result is obtained, including:

[0015] Using the trained target detection model, detect whether the negative electrode column of each battery cell in the first image information is covered with a rubber cap, and determine the battery cell with the detected negative electrode column covered with the rubber cap as the second battery cell, and determine the battery cell without the negative electrode column covered with the rubber cap as the first battery cell;

[0016] A first detection result is generated based on the second battery cell and / or the first battery cell; wherein the first detection result represents image information in which each battery cell in the first image information is marked as the first battery cell or the second battery cell.

[0017] In the present embodiment, when determining whether each battery cell has been insulated and protected, it is achieved by detecting the negative electrode column rubber cap of each battery cell in the first image information; if it is detected that the negative electrode column of the battery cell is covered with a rubber cap, it is determined that insulation protection has been provided; and if the negative electrode column has no rubber cap, it is determined that insulation protection has not been provided, thereby completing the insulation protection detection; and, the detection device can also mark the first battery cell and the second battery cell to generate a first detection result, so that when the first detection result is displayed, it can intuitively reflect whether each battery cell has been insulated and protected, thereby improving the intelligence of battery production.

[0018] In some embodiments of the present application, the placement orientation of the second battery cell is detected to obtain an orientation detection result, including:

[0019] Performing clustering processing on the second battery cell to obtain a clustering result;

[0020] The second battery cell classified into the same cluster in the clustering result is determined to be a battery cell in a foam box;

[0021] Based on the second image information corresponding to each of the second battery cells in the foam box, it is determined whether the placement orientations of the second battery cells in the foam box are consistent, and an orientation detection result is obtained.

[0022] In this embodiment, when the detection device detects the orientation of the second battery cells, it clusters the second battery cells, and thus uses the second battery cells classified into the same cluster in the clustering results as the battery cells in the same foam box for placement orientation detection, to determine whether the second battery cells in the foam box are placed in the same orientation, thereby achieving effective detection of the placement orientation of the second battery cells.

[0023] In some embodiments of the present application, determining whether the placement orientations of the second batteries in the foam box are consistent based on the second image information corresponding to each of the second batteries in the foam box, before obtaining the orientation detection result, the method further includes:

[0024] Determine the regional image corresponding to each second battery cell according to the first detection result; wherein the regional image represents the image of the minimum circumscribed rectangular area corresponding to the second battery cell in the detection result;

[0025] Performing direction adjustment processing on the regional image to obtain a direction-adjusted regional image;

[0026] The direction-adjusted regional image is binarized to obtain second image information corresponding to each second battery cell.

[0027] In this embodiment, before detecting the placement orientation of the second battery cells based on the second image information corresponding to each of the second battery cells, it is necessary to first obtain the second image information corresponding to each of the second battery cells, including first obtaining the area image corresponding to the second battery cell, and then performing direction adjustment processing and binarization processing on each area image to obtain the second image information, so that the placement orientation of the battery cells can be accurately detected based on the second image information.

[0028] In some embodiments of the present application, determining whether the placement orientations of the second batteries in the foam box are consistent based on the second image information corresponding to each of the second batteries in the foam box includes:

[0029] Determine images corresponding to the two poles of the second battery cell according to the second image information;

[0030] Determine the negative pole of the two poles according to the proportion of pixel blocks in the images corresponding to the two poles, and determine the placement direction of the second battery cell based on the negative pole;

[0031] Whether the placement orientations of the second battery cells in each foam box are consistent is determined according to the placement orientations of the second battery cells in the foam box.

[0032] In this embodiment, the second image information is used to determine the images corresponding to the two poles of the second battery cell, and then based on the images corresponding to the two poles, it is determined which pole is the negative pole. Therefore, the orientation of the battery cell can be determined based on the determined position of the negative pole, thereby achieving accurate detection of the orientation of the battery cell.

[0033] In some embodiments of the present application, after determining whether the placement orientations of the second batteries in the foam box are consistent based on the second image information corresponding to each of the second batteries in the foam box, and obtaining the orientation detection result, the method further includes:

[0034] When the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent, determine the third battery cell in the foam box and the first orientation of the third battery cell; wherein the third battery cell represents a battery cell whose placement orientation is inconsistent with the total orientation of the second battery cells in the foam box, and the total orientation is determined based on the placement orientations of a first number of second battery cells in the foam box, and the first number is greater than the number of the third battery cells;

[0035] Prompt information is generated according to the third battery cell and the first orientation; wherein the prompt information represents information for prompting the third battery cell and the first orientation in the foam box.

[0036] In this embodiment, when it is determined that the placement orientation of the second battery cell in a foam box is inconsistent, it is also necessary to determine the third battery cell in the foam box that is inconsistent with the placement orientation of most battery cells, and the orientation of the third battery cell, that is, the first orientation, so as to generate prompt information that can prompt the third battery cell and its first orientation, thereby improving the intelligence of battery production.

[0037] In some embodiments of the present application, the method further comprises:

[0038] When the duration detection result is that the first duration reaches the preset duration, and / or when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent, obtaining first alarm time information; wherein the first alarm time information represents the time information of the last execution of alarm processing;

[0039] Determine the time interval information according to the first alarm time information and the current time information;

[0040] When the time interval information is greater than the preset time interval, an alarm is processed.

[0041] In this embodiment, if the first time period during which the first battery cell is not insulated reaches a preset time period, and / or the placement orientation of the second battery cell in a foam box is inconsistent, the time information of the last alarm can be obtained, and the time interval between the current time and the time information of the last alarm can be determined. If the time interval is greater than the preset time interval, an alarm is processed to indicate the abnormal situation of production in the current rework area, thereby improving the intelligence of battery production.

[0042] In some embodiments of the present application, before obtaining the first detection result, the method further includes:

[0043] Acquire first video data in a rework area in different battery production lines; wherein the first video data includes video information of a battery cell that does not comply with standard operating procedures during the rework process;

[0044] Extract image information from video data and construct a training data set based on the extracted image information;

[0045] The initial target detection model is trained using the training data set to obtain a trained target detection model.

[0046] In this embodiment, the first video data in the rework area of ​​different battery production lines is used to extract image information, so as to construct a training data set to train the initial target detection model to obtain a trained target detection model, which can effectively improve the detection effect of the trained target detection model on whether the battery cell has completed insulation protection detection.

[0047] In a second aspect, an embodiment of the present application provides a detection device, including an acquisition unit and a detection unit;

[0048] An acquisition unit, used to acquire first image information of a rework area on a battery production line;

[0049] The detection unit is used to use the trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result; and based on the first detection result, the operating procedure detection of each battery cell is performed to obtain a second detection result; wherein the detection of the operating procedure includes the detection of the length of time that the battery cell is not insulated and protected, and the detection of the orientation of the battery cell.

[0050] In a third aspect, an embodiment of the present application provides a detection device, which includes a processor and a memory storing processor-executable instructions; when the executable instructions are executed by the processor, the above-mentioned detection method is implemented.

[0051] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which implements the above-mentioned detection method when executed by a processor.

[0052] In a fifth aspect, an embodiment of the present application provides a computer program product, including a computer program or instructions, which, when executed by a processor, implements the steps in the above-mentioned detection method. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the preferred embodiments below.The accompanying drawings are only for the purpose of illustrating the preferred embodiments and are not to be considered as limiting the present application.

[0054] Figure 1 Schematic diagram of the implementation process of the detection method proposed in the embodiment of the present application Figure 1 ;

[0055] Figure 2 Schematic diagram of the implementation process of the detection method proposed in the embodiment of the present application Figure 2 ;

[0056] Figure 3 A schematic diagram of a method for determining a preset distance value proposed in an embodiment of the present application;

[0057] Figure 4 A schematic diagram of the direction adjustment process proposed in an embodiment of the present application;

[0058] Figure 5 Schematic diagram of the implementation process of the detection method proposed in the embodiment of the present application Figure 3 ;

[0059] Figure 6 Schematic diagram of the implementation process of the detection method proposed in the embodiment of the present application Figure 4 ;

[0060] Figure 7 Schematic diagram of the structure of the detection device proposed in the embodiment of the present application Figure 1 ;

[0061] Figure 8 Schematic diagram of the structure of the detection device proposed in the embodiment of the present application Figure 2 . DETAILED DESCRIPTION

[0062] The following will be combined with the accompanying drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. It is understood that the specific embodiments described herein are only used to explain the related applications, rather than to limit the applications. It should also be noted that, for ease of description, only the parts related to the related applications are shown in the accompanying drawings.

[0063] New energy batteries are increasingly used in life and industry. For example, new energy vehicles equipped with batteries have been widely used. In addition, batteries are increasingly used in energy storage, etc. New energy batteries are not only used in energy storage power systems such as hydropower, thermal power, wind power and solar power stations, but also widely used in electric vehicles such as electric bicycles, electric motorcycles, electric cars, as well as aerospace and other fields. With the continuous expansion of the application field of power batteries, the market demand is also constantly expanding.

[0064] In the battery production process, when the number of defective coating products reaches a certain level, they will be sent to the rework area for manual rework, mainly in accordance with the requirements of the Standard Operation Procedure (SOP). The rework process and results need to be controlled by quality inspectors and final visual inspectors, and it is impossible to monitor in real time whether the rework process is standardized. This includes automatically detecting whether the reworked cells on each pull line have not been insulated for a certain period of time, and whether the orientation of the cells is consistent. It can be seen that how to achieve autonomous detection of cells in the rework area and improve the intelligence of battery production is a technical problem that needs to be solved urgently.

[0065] In order to solve the problems existing in the current detection methods, the detection device in the present application can obtain first image information of the rework area on the battery production line; use the trained target detection model to detect whether each battery cell in the first image information has been insulated and protected, and obtain a first detection result; based on the first detection result, each battery cell is tested for operating procedures to obtain a second detection result; wherein the detection of operating procedures includes the detection of the length of time that the battery cell is not insulated and the detection of the orientation of the battery cell. It can be seen that the detection device in the application can obtain the first image information of the rework area corresponding to different battery production lines, and then use the trained target detection model to detect the first image information, so as to determine whether the various battery cells in the current rework area have been insulated and protected, and realize autonomous real-time monitoring of whether the battery cells in the rework area have completed insulation protection; then the detection device can perform an operating procedure detection based on the first detection result to determine whether the various battery cells in the rework area comply with the standard operating procedures, mainly including the detection of the length of time that the battery cells are not insulated and the detection of the direction of the battery cells, so as to automatically detect whether the reworked battery cells on each production line have not been insulated for more than a certain period of time, and whether the direction of the battery cells is consistent; thereby, comprehensive detection of battery production in the rework area can be achieved, which greatly improves the intelligence of battery production, thereby improving battery production efficiency.

[0066] The technical solutions in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.

[0067] An embodiment of the present application provides a detection method, such as Figure 1 As shown, the detection method of the detection device may include the following steps:

[0068] Step 101: Acquire first image information of a rework area on a battery production line.

[0069] In an embodiment of the present application, the detection device may first obtain first image information of a rework area on a battery production line.

[0070] In an embodiment of the present application, a battery production line may include a battery module production line and a battery pack production line.

[0071] In an embodiment of the present application, different battery production lines may have corresponding rework areas for reworking the battery cells on the production line; that is, only the battery cells entering the rework area need to be reworked.

[0072] In an embodiment of the present application, a video acquisition device may be provided in the rework area on the battery production line. For example, respective cameras may be provided in different rework areas to take real-time photos of the rework area and obtain real-time video data of the rework area.

[0073] In the embodiments of the present application, the detection device may be any electronic device having communication and storage functions, for example, the detection device may be an electronic device such as a host computer or a computer.

[0074] In some embodiments of the present application, the first image information may be obtained based on real-time video data of the rework area; the detection device may acquire real-time video data of the rework area, thereby extracting the first image information based on the real-time video data of the rework area.

[0075] In some embodiments of the present application, the detection device may receive the real-time video data of the rework area sent by the video acquisition device of each rework area based on the Real Time Streaming Protocol (RTSP).

[0076] It should be noted that in the embodiments of the present application, the battery can be assembled from one or more battery cells; the battery can be a battery cell. A battery cell refers to a basic unit that can realize the mutual conversion of chemical energy and electrical energy, and can be used to make a battery module or a battery pack, so as to supply power to an electrical device. A battery cell can be a secondary battery, which refers to a battery cell that can be activated by charging the active material after the battery cell is discharged and can continue to be used. The battery cell can be a lithium-ion battery, a sodium-ion battery, a sodium-lithium-ion battery, a lithium metal battery, a sodium metal battery, a lithium-sulfur battery, a magnesium-ion battery, a nickel-hydrogen battery, a nickel-cadmium battery, a lead-acid battery, etc., and the embodiments of the present application are not limited to this.

[0077] In the embodiment of the present application, the battery may also be a single physical module including one or more battery cells to provide higher voltage and capacity. When there are multiple battery cells, the multiple battery cells are connected in series, in parallel or in hybrid connection through a busbar component.

[0078] Step 102: Use the trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result.

[0079] In an embodiment of the present application, after acquiring first image information of a rework area on a battery production line, the detection device can use a trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result.

[0080] It should be noted that, in the embodiments of the present application, the target detection algorithm may be any algorithm that can be used for target detection, and the specific algorithm is not limited in the present application.

[0081] In some embodiments of the present application, the target detection algorithm may adopt the YOLOv5 algorithm, which can achieve real-time target detection or recognition through a single neural network model while optimizing accuracy and speed.

[0082] It should be noted that in the embodiments of the present application, the trained target detection algorithm is obtained by training the initial target detection algorithm using the training data set, and the model structure and parameters of the initial target detection algorithm are not limited in this application.

[0083] Exemplarily, the initial target detection algorithm is the YOLOv5 algorithm, whose structure can be divided into a model body and some additional modules. The model body can use CSPDarknet53 as the backbone network, which is a lightweight network structure with high performance and efficiency; some enhancement modules and technologies can be used as additional modules, such as using Spatial Pyramid Pooling (SPP) to increase the size of the receptive field and improve the detection capability of the target.

[0084] It should be noted that, in an embodiment of the present application, the first detection result can show whether each detected battery cell has been insulated. For example, in the first detection result, a mask can be used to indicate the battery cells that have not been insulated or have been insulated; wherein the mask is a binary image in which pixel values ​​are 0 or 1, and areas with pixel values ​​of 1 represent areas that should be processed, and areas with pixel values ​​of 0 represent areas that do not need to be processed; for example, in the first detection result, the pixel value of the area of ​​the battery cells that have not been insulated and those that have been insulated is 1; and the first detection result may also include label information indicating whether each battery cell is an insulated cell or a non-insulated cell.

[0085] In an embodiment of the present application, the mask in the first detection result may correspond to the area of ​​the minimum circumscribed rectangle of each battery cell; and the detection device may obtain the area image of the minimum circumscribed rectangle of each battery cell based on the first detection result.

[0086] In some embodiments of the present application, in addition to determining the area image of the minimum circumscribed rectangle of each battery cell, the detection device can also determine the coordinate information of the area image; when determining the coordinate information of the area image, the mask can be normalized first, and then the normalized mask points can be converted into coordinate points that match the size of the original picture captured by the camera, and then the size information of the area image of the minimum circumscribed rectangle can be obtained based on the first function tool and the coordinate points, for example, the first function can be the cv2.minAreaRect function; wherein the size information includes center point information, width information, height information and rotation angle information; then the second function tool and The size information determines the vertex coordinate information of the area image of the minimum enclosing rectangle, for example, the second function tool can be the cv2.boxPoints function; wherein the vertex coordinate information represents the coordinates of the four vertices of the area image of the minimum enclosing rectangle, and the coordinates of the four vertices are arranged in a clockwise direction of the minimum enclosing rectangle, that is, the first vertex coordinate among the four vertices is the vertex coordinate of the upper left corner of the minimum enclosing rectangle, the second vertex coordinate is the vertex coordinate of the upper right corner of the minimum enclosing rectangle, the third vertex coordinate is the vertex coordinate of the lower left corner of the minimum enclosing rectangle, and the fourth vertex coordinate is the vertex coordinate of the lower right corner of the minimum enclosing rectangle.

[0087] In an embodiment of the present application, when the trained target detection algorithm detects whether the first image information is a battery cell with insulation protection, it can determine whether the battery cell is insulation protected based on the confidence level of each battery cell as being insulation protected or not insulation protected; for example, if the confidence level of a certain battery cell in the first image information being matched as not being insulation protected is 100, it can be determined that the battery cell is not insulation protected, and in addition to indicating the area through a mask, the label information of the battery cell can also be marked in the first detection result as not being insulation protected; in addition, the confidence level of each battery cell can also be marked in the first detection result.

[0088] It should be noted that, in the embodiments of the present application, whether the battery cell has been insulated is detected mainly by detecting whether a rubber cap is covered on the negative electrode column of the battery cell.

[0089] In some embodiments of the present application, before the detection device uses the trained target detection model to detect whether each battery cell in the first image information has been insulated and protected, and obtains the first video data in the rework area of ​​different battery production lines before obtaining the first detection result; wherein the first video data includes video information of the battery cells that do not comply with standard operating procedures during the rework process; then, the image information in the video data is extracted, and a training data set is constructed based on the extracted image information; thereby, the initial target detection model is trained using the training data set to obtain a trained target detection model.

[0090] In some embodiments of the present application, the first video data may include video data of battery cells in different states or situations in each foam box in the rework area; for example, it may include video data of the consistent and inconsistent orientations of the battery cells in each foam box when the top patch of the battery cells is not removed; and, video data of the consistent and inconsistent orientations of the battery cells when the top patch of the battery cells is removed and the negative pole is not covered with a rubber cap (no insulation protection is provided); and, video data of the consistent and inconsistent orientations of the battery cells when the blue film of the battery cells is torn off and the top patch is not covered with a rubber cap; video data of the consistent and inconsistent orientations of the battery cells when the top patch of the battery cells is removed and the negative pole is covered with a rubber cap (insulation protection is provided); wherein, in the same rework area, the color of the rubber caps on the negative poles of the battery cells are all consistent.

[0091] In some embodiments of the present application, a verification data set and a test data set can also be constructed based on the extracted image information; and then the initial target detection model can be trained using the training data set and the verification data set, including using the training data set to train the initial target detection model, and after obtaining the first target detection model, using the verification data set to tune the first target detection model, that is, iteratively optimizing and adjusting the model parameters on the basis of the first target detection model until the convergence conditions are met or the training objectives are reached, thereby obtaining a trained target detection model.

[0092] In some embodiments of the present application, after obtaining the trained target detection model, the trained target detection model can also be tested using a test data set, that is, testing whether the detection effect of the trained target detection model meets the accuracy requirements when detecting whether the battery cell has been insulated; that is, testing the detection effect of the trained target detection model when detecting whether there is a rubber cap on the negative electrode of the battery cell.

[0093] In some embodiments of the present application, when constructing a training data set based on the extracted image information, the image information can be cropped to obtain cropped image information; wherein the cropping process is used to crop out image information that matches the workbench in the rework area; and then the cropped image information is filtered to obtain filtered image information; wherein the repetition between the filtered image information meets a preset repetition condition; thereby, the battery cells with negative electrode caps and the battery cells without negative electrode caps in the filtered image information are labeled to obtain labeled image information, and a training data set is constructed based on the labeled image information.

[0094] It should be noted that, in the embodiments of the present application, filtering processing is mainly used to delete images with high repetition in the cropped image information; the preset repetition condition represents the repetition requirement for the image; the repetition between the filtered image information meets the preset repetition condition, which means that the repetition between the filtered image information is low and can meet the repetition requirement for the image.

[0095] In some embodiments of the present application, a verification data set may also be constructed based on the annotated image information.

[0096] It should be noted that in the embodiments of the present application, in the process of constructing the training data set and the verification data set, the labelme annotation software can be used to annotate the battery cells with the negative electrode caps and the battery cells without the negative electrode caps in the filtered image information.

[0097] In some embodiments of the present application, the initial target detection algorithm may be a YOLOv5-seg algorithm.

[0098] In some embodiments of the present application, when the detection device uses the training data set to train the initial target detection algorithm to obtain the trained target detection algorithm, the detection device can use the initial target detection algorithm to identify the battery cells with negative electrode caps and the battery cells without negative electrode caps in the training data set to obtain a first result; calculate a first loss function value between the first result and the label information; wherein the label information represents the information that the battery cells in each image in the pre-labeled training data set are battery cells with negative electrode caps or battery cells without negative electrode caps; based on the first loss function value, update the initial target detection algorithm. , and use the updated target detection algorithm to identify the battery cells with the middle negative pole capped and the battery cells without the negative pole capped to obtain a second result; calculate the second loss function value between the second result and the label information, and when the second loss function value is less than or equal to a preset value, determine the updated target detection algorithm as the trained target detection algorithm; otherwise, update the updated target detection algorithm based on the second loss function value to obtain the second target detection algorithm, until the third loss function value obtained based on the second target detection algorithm is less than or equal to the preset value, then obtain the trained target detection algorithm.

[0099] It can be understood that in the embodiments of the present application, the loss function value can measure the difference between the result output by the target detection algorithm and the actual label information. When the loss function value is smaller, it means that the result output by the target detection algorithm is closer to the actual label information; the loss function is used to continuously adjust the parameters in the target detection algorithm to minimize the error, so that the target detection algorithm can better fit the training data and improve the generalization ability; the present application does not limit the loss function, for example, the loss function can use mean squared error (MSE), cross entropy loss (CrossEntropy Error) and logarithmic loss (Log Loss), etc.

[0100] It can also be understood that in an embodiment of the present application, when the loss function value is less than or equal to a preset value, it indicates that the difference between the result of the current iterative update of the target detection algorithm input and the actual label information has reached the requirement and meets the convergence condition, then the training can be stopped to obtain the trained target detection algorithm; wherein, the numerical value of the preset value is not limited in this application.

[0101] In some embodiments of the present application, when the detection device uses the trained target detection model to detect whether each battery cell in the first image information has been insulated and protected, and obtains the first detection result, it can use the trained target detection model to detect whether the negative electrode column of each battery cell in the first image information is covered with a rubber cap, and determine the battery cell with the detected negative electrode column covered with a rubber cap as the second battery cell, and determine the battery cell with the negative electrode column not covered with a rubber cap as the first battery cell; and then generate the first detection result based on the second battery cell and / or the first battery cell.

[0102] It can be understood that in the embodiments of the present application, the first battery cell refers to the battery cell that has not been insulated in the rework area, that is, the battery cell whose negative electrode column is not covered with a rubber cap; the second battery cell refers to the battery cell that has been insulated in the rework area, that is, the battery cell whose negative electrode column is covered with a rubber cap.

[0103] It can also be understood that in the embodiments of the present application, since the first detection result may include label information indicating whether each battery cell is an insulated battery cell or an uninsulated battery cell, the first detection result may represent image information in which each battery cell in the first image information is marked as a first battery cell or a second battery cell.

[0104] Step 103: Based on the first detection result, the operating procedure of each battery cell is detected to obtain a second detection result; wherein the detection of the operating procedure includes the detection of the length of time that the battery cell is not insulated and the detection of the orientation of the battery cell.

[0105] In an embodiment of the present application, the detection device uses a trained target detection model to detect whether each battery cell in the first image information has been insulated and protected. After obtaining a first detection result, the detection device can perform an operating procedure detection on each battery cell based on the first detection result to obtain a second detection result; wherein the detection of the operating procedure includes the detection of the length of time that the battery cell has not been insulated and protected, and the detection of the orientation of the battery cell.

[0106] It should be noted that in the embodiments of the present application, the requirements for battery cells during the rework process can be determined based on the Standard Operating Procedure (SOP); in the manufacturing process of the battery cells, the SOP can provide a unified standard operation, thereby improving production efficiency and ensuring stable battery cell quality; therefore, the present application can greatly improve the stability and intelligence of battery cell manufacturing by independently testing the standard operating procedures of the battery cells.

[0107] It should be noted that, in the embodiments of the present application, the detection of the time that the battery cell is not insulated is used to determine the time that the battery cell is in the uninsulated state in the rework area, so as to determine whether the time without insulation protection reaches the preset time; the detection of the battery cell placement orientation is used to determine whether the placement orientations of the battery cells in each foam box are consistent.

[0108] In the embodiments of the present application, Figure 2 As shown, when the detection device detects the operating procedures of the respective battery cells based on the first detection result and obtains the second detection result, that is, step 103 may include the following steps:

[0109] Step 103a: when the first detection result indicates that there is a first battery cell without insulation protection among the battery cells, obtain a first time duration for which the first battery cell is not insulation protected, and determine a time duration detection result according to the first time duration.

[0110] In an embodiment of the present application, when the detection device detects the operating procedures of each battery cell based on the first detection result and obtains the second detection result, when the first detection result is that there is a first battery cell without insulation protection among the battery cells, the detection device can obtain the first time duration that the first battery cell is not insulated protected, so as to determine the time duration detection result based on the first time duration.

[0111] It can be understood that, in the embodiment of the present application, the detection of the time period during which the battery cells are not insulated is performed only when there are battery cells without insulation protection among the battery cells in the rework area.

[0112] In some embodiments of the present application, when it is detected that there is a first battery cell whose negative electrode column is not covered with a rubber cap among the battery cells, the time length for which the negative electrode column of the first battery cell remains without a rubber cap can be recorded, and this time length is the first time length. If it is determined that the first time length has not reached the preset time length, the monitoring time length can continue without any other processing. If the first time length reaches the preset time length, defective (NG) production information is recorded once. If it is detected that the negative electrode column of the first battery cell is covered with a rubber cap and the insulation protection is completed before the first time length reaches the preset time length, the battery cell will no longer be monitored for the first time length.

[0113] In some embodiments of the present application, when determining the duration detection result according to the first duration, the first duration and the preset duration may be compared to obtain the duration detection result.

[0114] In some embodiments of the present application, the duration detection result may be that the first duration does not reach the preset duration, or that the first duration reaches the preset duration.

[0115] It should be noted that in the embodiments of the present application, the specific value of the preset time length is not limited in this application; the preset time length can be set according to the needs of the actual production process. For example, it can be set according to the maximum time that the battery cell is not insulated during the actual normal rework process. Whenever the detection device is started, the set preset time length can be read, thereby completing the detection of the time length of the battery cell without insulation protection according to the preset time length.

[0116] In some embodiments of the present application, alarm processing can be performed while recording bad production information once; or after recording the bad production information, the first alarm time information of the last alarm processing can be obtained, and the alarm processing can be performed again if the time interval information between the first alarm time information and the current time information is greater than the preset time interval.

[0117] Step 103b: When the first detection result indicates that there is a second battery cell with insulation protection in each battery cell, the second battery cell is placed in an orientation detection manner to obtain an orientation detection result; wherein the orientation detection result is used to indicate whether the second battery cell in the foam box in the rework area is placed in a consistent orientation.

[0118] In an embodiment of the present application, when the detection device detects the operating procedures of each battery cell based on the first detection result and obtains the second detection result, when the first detection result is that there is a second battery cell with insulation protection among each battery cell, the second battery cell can be detected for placement orientation to obtain an orientation detection result; wherein the orientation detection result is used to indicate whether the placement orientation of the second battery cell in the foam box in the rework area is consistent.

[0119] In some embodiments of the present application, when the detection device detects the placement orientation of the second battery cells and obtains the orientation detection result, the second battery cells can be clustered to obtain a clustering result; then the second battery cells classified into the same cluster in the clustering result can be determined as battery cells in a foam box; finally, based on the second image information corresponding to each of the second battery cells in the foam box, it is determined whether the placement orientations of the second battery cells in the foam box are consistent to obtain an orientation detection result.

[0120] It should be noted that, in an embodiment of the present application, in the orientation detection result, the second battery cells in different foam boxes can be marked with different colors to distinguish the second battery cells in different foam boxes. Numbers corresponding to different foam boxes can also be generated, and the placement orientations of the second battery cells in different foam boxes can be marked. When the detection device displays the orientation detection result, the placement orientation of the second battery cells in each foam box can be intuitively displayed.

[0121] It should be noted that in an embodiment of the present application, when the second battery cells are clustered to obtain a clustering result, the distance information between each second battery cell can be determined based on the first detection result, and then the distance information is compared with the preset distance value. When the distance information is less than or equal to the preset distance value, it can be determined as the same cluster.

[0122] It should also be noted that, in the embodiments of the present application, the preset distance value is not limited in the present application and can be determined based on the distance between each battery cell in the foam box in the rework area actually photographed.

[0123] For example, Figure 3 As shown, in the image 300 obtained by a certain camera shooting the rework area, the rework workbench includes three foam boxes A, B, and C. Foam box A is farthest from the camera, and foam boxes B and C are closest to the camera. Drawing software can be used to measure the distance information of two adjacent battery cells in foam box A in the image, for example, measuring the center line distance between battery cell a1 and battery cell a2 , you can also measure the distance information between the two closest cells in the B foam box and the C foam box in the image, such as the distance information between the b1 cell and the c1 cell , and then and Find the average value, or take and The middle value of is used as the preset distance value.

[0124] In some embodiments of the present application, any clustering algorithm can be used when clustering the second battery cells, such as the DBSCAN clustering algorithm; when the distance information between any two second battery cells is less than or equal to a preset distance value, it can be determined that the two second battery cells are density-connected and can be classified into the same cluster.

[0125] It should be noted that, in the embodiment of the present application, only the placement orientation of the second battery cells in the same foam box is determined, that is, it is determined whether the placement orientations of the second battery cells in the same foam box are consistent.

[0126] In the embodiments of the present application, since the battery cells in different foam boxes may be placed in different orientations, and the foam boxes have various colors, sizes, and placement angles and are often stacked, it is necessary to group and determine the battery cells in different foam boxes; based on this, the present application clusters and groups all battery cells with rubber caps through the DBSCAN clustering algorithm, and the number of categories obtained is approximately correlated with the number of foam boxes, so as to distinguish the battery cells in different foam boxes, and effectively improve the accuracy of the battery cell placement orientation detection.

[0127] In an embodiment of the present application, the detection device determines whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box. Before obtaining the orientation detection result, it is necessary to first obtain the second image information corresponding to each of the second battery cells.

[0128] In some embodiments of the present application, when the detection device obtains the second image information corresponding to each second battery cell, it can determine the regional image corresponding to each second battery cell according to the first detection result; wherein the regional image represents the image of the minimum circumscribed rectangular area corresponding to the second battery cell in the detection result; the regional image is processed for direction adjustment to obtain the regional image after direction adjustment; the regional image after direction adjustment is processed for binarization to obtain the second image information corresponding to each second battery cell.

[0129] In some embodiments of the present application, the direction of the image of the minimum circumscribed rectangular area corresponding to the second battery cell may not meet the direction requirement, for example, the direction requirement is vertical or horizontal, and the image of the minimum circumscribed rectangular area has a certain inclination, such as Figure 4 As shown, the left side is an image 301 of the minimum circumscribed rectangular area. If it needs to be converted into a vertical or horizontal direction, a direction adjustment process can be performed to obtain an image 302 in a horizontal direction in the right side.

[0130] In some embodiments of the present application, the direction adjustment process may include at least any one of perspective transformation process, rotation process and screenshot process; wherein perspective transformation refers to the operation of projecting an image onto a new viewing plane.

[0131] In the embodiment of the present application, the binarization process is used to set the grayscale value of the pixel points on the image to 0 or 255, so that the entire image presents an obvious visual effect of only black and white.

[0132] In some embodiments of the present application, when the detection device determines whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box, it can determine the images corresponding to the two poles of the second battery cell according to the second image information; then determine the negative pole of the two poles according to the proportion of pixel blocks in the images corresponding to the two poles, and determine the placement orientation of the second battery cell based on the negative pole; thereby determining whether the placement orientations of the second battery cells in each foam box are consistent according to the placement orientations of the second battery cells in the foam box.

[0133] It should be noted that, in an embodiment of the present application, when determining the images corresponding to the two poles of the second battery cell according to the second image information, the images corresponding to the two poles can be determined based on the size information of the second image information; for example, the part between the two poles and the part outside the two poles can be determined based on the length and width information of the second image information and a preset ratio value, wherein the part between the two poles can be the area where the explosion-proof valve is located; the preset ratio value is a value obtained by intercepting images of a large number of battery cells for testing; thereby, the part between the two poles and the part outside the two poles can be removed to obtain the image corresponding to the two poles.

[0134] It should be noted that in the embodiments of the present application, the color of the rubber cap is generally black. Therefore, after binarization, if the negative pole is covered with a rubber cap, the proportion of black pixels in the image of the negative pole will be greater than the proportion of black pixels in the image of the positive pole. Therefore, it is possible to determine which image is the image of the pole with the rubber cap, that is, the image of the negative pole, from the images corresponding to the two poles, thereby determining the placement orientation of the battery cell.

[0135] In some embodiments of the present application, a reference value can be set in advance to determine whether to determine the placement orientation based on the second image information; the detection device can obtain a first value of the second image information, wherein the first value represents the clarity of the second image information; determine the difference between the first value and the reference value, and if the difference is less than the preset difference, then the cell placement orientation is not determined based on the second image information.

[0136] It should be noted that in an embodiment of the present application, the reference value can be determined based on relevant information of the image of the battery cell obtained in the actual application scenario. For example, the reference value can be determined by obtaining information such as the length and width of the image of the battery cell in the actual application scenario and the size and pixels of the image of the area outside the two poles.

[0137] It should also be noted that, in an embodiment of the present application, when the difference is less than a preset difference, it indicates that the clarity of the second image information corresponding to the battery cell is low. For example, the battery cell may be far away from the camera, so that the clarity of the image of the battery cell captured is low. If the orientation of the battery cell is still determined based on the second image information with lower clarity, there will be a problem of misjudgment. Therefore, the present application improves the accuracy of battery cell placement orientation detection by obtaining the first value of the second image information to determine whether the clarity meets the requirements, thereby deciding whether to determine the orientation of the battery cell.

[0138] In an embodiment of the present application, after determining whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box and obtaining the orientation detection result, the detection device can determine the third battery cell in the foam box and the first orientation of the third battery cell when the orientation detection result is that the placement orientations of the second battery cells in the foam box are inconsistent; wherein the third battery cell represents a battery cell whose placement orientation is inconsistent with the total orientation of the second battery cells in the foam box, and the total orientation is determined based on the placement orientations of a first number of second battery cells in the foam box, and the first number is greater than the number of the third battery cells; thereby generating prompt information based on the third battery cell and the first orientation; wherein the prompt information represents information that prompts the third battery cell and the first orientation in the foam box.

[0139] For example, after detection, it is determined that the overall orientation of the battery cells in a foam box is to the right, and the orientation of the second battery cell (the third battery cell) is to the left (the first orientation). The left-facing battery cell can be marked in red in the prompt information, and text information of the first orientation can be attached to the area for prompting.

[0140] In an embodiment of the present application, by determining the regional image corresponding to the second battery cell, an image that is more closely fitting the contour of the battery cell top cover can be obtained, and then direction adjustment processing is performed based on the regional image corresponding to the second battery cell, which can avoid the problem of failure in subsequent battery cell placement orientation judgment caused by different image directions and ranges due to inconsistent battery cell placement orientations or angles, thereby improving the stability of placement orientation detection; in addition, since there are a large number of glue caps in the rework area and the color of the battery cell top cover and glue caps without peeling off the top patch are black, the method of directly identifying the glue caps in the area to judge the battery cell orientation is not effective; the present application uses a method of combining binarization with the pixel block ratio to determine the pole orientation of the battery cell, which can effectively improve the accuracy of placement orientation detection.

[0141] In the embodiments of the present application, Figure 5 As shown, after step 103, the detection method may further include the following steps:

[0142] Step 104: when the duration detection result is that the first duration reaches a preset duration, and / or when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent, obtain first alarm time information; wherein the first alarm time information represents the time information of the last alarm processing execution.

[0143] In an embodiment of the present application, the detection device can obtain first alarm time information when the duration detection result is that the first duration reaches a preset duration, and / or when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent; wherein the first alarm time information represents the time information of the last alarm processing performed.

[0144] In some embodiments of the present application, when the duration detection result is that the first duration reaches a preset duration, or when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent, bad production information can be recorded once and archived.

[0145] In some embodiments of the present application, each time bad production information is recorded, the bad production information can be sent to an abnormal result feedback platform for relevant personnel to review; for example, when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent, the relevant information of the inconsistent placement orientation is recorded and the corresponding bad production information is generated and sent to the abnormal result feedback platform.

[0146] It should be noted that in the embodiments of the present application, as long as it is detected that the second battery cell in any foam box in the rework area is placed in an inconsistent orientation, bad production information can be recorded once and the time of the last alarm can be obtained to determine whether alarm processing is required.

[0147] Step 105: Determine time interval information according to the first alarm time information and the current time information.

[0148] In an embodiment of the present application, the detection device can determine the time interval information based on the first alarm time information and the current time information after obtaining the first alarm time information when the duration detection result is that the first duration reaches a preset duration, and / or when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent.

[0149] Step 106: When the time interval information is greater than the preset time interval, an alarm is processed.

[0150] In an embodiment of the present application, after determining the time interval information according to the first alarm time information and the current time information, the detection device may perform alarm processing if the time interval information is greater than a preset time interval.

[0151] It can be understood that in the embodiment of the present application, when the time interval information is less than or equal to the preset time interval, no alarm processing is performed; the detection device can continue to receive real-time video data fed back by the cameras in each rework area and perform corresponding detection.

[0152] It should be noted that in the embodiments of the present application, the method of alarm processing is not limited in the present application. For example, an alarm can be issued by triggering an alarm light.

[0153] In this embodiment, a detection method is proposed, and a detection device can obtain first image information of a rework area on a battery production line; use a trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result; based on the first detection result, each battery cell is tested for operating procedures to obtain a second detection result; wherein the detection of operating procedures includes the detection of the length of time that the battery cell is not insulated and the detection of the orientation of the battery cell. It can be seen that the detection device can obtain the first image information of the rework area corresponding to different battery production lines, and then use the trained target detection model to detect the first image information, so as to determine whether the various battery cells in the current rework area have been insulated and protected, and realize autonomous real-time monitoring of whether the battery cells in the rework area have completed insulation protection; then the detection device can perform an operating procedure detection based on the first detection result to determine whether the various battery cells in the rework area comply with the standard operating procedures, mainly including the detection of the length of time that the battery cells are not insulated and the detection of the direction of the battery cells, so as to automatically detect whether the reworked battery cells on each production line have not been insulated for more than a certain period of time, and whether the direction of the battery cells is consistent; thereby, comprehensive detection of battery production in the rework area can be achieved, which greatly improves the intelligence of battery production, thereby improving battery production efficiency.

[0154] Based on the above embodiment, in another embodiment of the present application, illustratively, as Figure 6 As shown, the detection method of the detection device may include the following steps:

[0155] Step 201: Acquire video data of a rework area.

[0156] In an embodiment of the present application, each production line or pulling line may include different rework areas, and different rework areas may include respective cameras for real-time shooting of the rework areas to obtain video data of the rework areas.

[0157] In an embodiment of the present application, the detection device may receive real-time video data of the rework area collected by cameras of each rework area based on RTSP.

[0158] Step 202: Extract first image information based on video data.

[0159] In an embodiment of the present application, after the video data is divided into image data, the image data may be cropped to obtain an image of a screen of a workbench including only the rework area, which is used as the first image information.

[0160] Step 203: Detect whether the battery cell in the first image information is covered with a rubber cap.

[0161] In an embodiment of the present application, the trained YOLOv5 algorithm may be used to detect whether the battery cell in the first image information is covered with a rubber cap.

[0162] In some embodiments of the present application, a YOLOv5-seg algorithm may be used; before using the trained YOLOv5 algorithm to detect whether the battery cell in the first image information is covered with a rubber cap, an initial YOLOv5-seg algorithm may be trained to obtain a trained YOLOv5-seg algorithm.

[0163] In some embodiments of the present application, when training the initial YOLOv5 algorithm, the video of the on-site surveillance camera can be first obtained through RTSP to collect video data of normal and abnormal operating behaviors of the battery cell coating rework station, and the video can be divided into image data, and images with large picture changes and covering various situations as much as possible are selected. Then, the collected video is divided into frames and the images are cropped according to the pictures of the workbench in the rework area. The cropped images are then filtered to filter out pictures with high picture repetition as a data set, which is then divided into a training data set, a verification data set, and a test data set in proportion.

[0164] In some embodiments of the present application, the collected video data of various situations may include video data of consistent and inconsistent orientations of the battery cells in each foam box when the top patch of the battery cells is not removed; and video data of consistent and inconsistent orientations of the battery cells when the top patch of the battery cells is removed and the negative pole is not covered with a rubber cap (no insulation protection is provided); and video data of consistent and inconsistent orientations of the battery cells when the blue film of the battery cells is torn off and the top patch of the battery cells is not covered with a rubber cap; video data of consistent and inconsistent orientations of the battery cells when the top patch of the battery cells is removed and the negative pole is covered with a rubber cap (insulation protection is provided); wherein, in the same rework area, the color of the rubber caps on the negative poles of the battery cells are all consistent.

[0165] In some embodiments of the present application, the rework areas in each production line may be divided in advance, and only the battery cells in the rework area need to be reworked.

[0166] In some embodiments of the present application, relevant configuration information can be configured in advance, including configuring a preset time and a preset distance value. The preset time is the maximum allowed time when no insulation protection is performed during the normal rework of the battery cell. The detection device can support the configuration of receiving relevant configuration information through an interface. After each startup, the detection device can read the preset time, and then can alarm when it is detected that insulation protection is not performed for more than the preset time; when configuring the preset distance value, the drawing software can be used to measure the distance information of two adjacent battery cells in a foam box farthest from the camera in an image, and the distance information between the two battery cells closest to the camera in the image can also be measured; the above distance information in different images can also be measured multiple times to determine the preset distance value; wherein the average value or the middle value of the distance information of the two adjacent battery cells in the farthest foam box and the distance information between the two closest battery cells can be obtained as the preset distance value.

[0167] In some embodiments of the present application, the training data set and the verification data set can be polygonally annotated by the labelme annotation software, and the battery cells with and without rubber caps can be annotated; the YOLOv5-seg algorithm model can be trained using the annotated training data set, and the trained YOLOv5-seg algorithm can be obtained.

[0168] In some embodiments of the present application, the detection device can detect the battery cells in each rework area and obtain the mask, confidence and label of each battery cell detected; in addition, the coordinate information of the regional image of each battery cell can be determined; when determining the coordinate information of the regional image, the mask can be normalized first, and then the normalized mask points can be converted into coordinate points that match the size of the original picture captured by the camera, and then the size information of the regional image of the minimum circumscribed rectangle can be obtained based on the cv2.minAreaRect function and the coordinate points; wherein the size information includes center point information, width information, height information and rotation angle information; then Then the cv2.boxPoints function and size information can be used to determine the vertex coordinate information of the area image of the minimum enclosing rectangle; wherein the vertex coordinate information represents the coordinates of the four vertices of the area image of the minimum enclosing rectangle, and the coordinates of the four vertices are arranged in a clockwise direction of the minimum enclosing rectangle, that is, the first vertex coordinate of the four vertices is the vertex coordinate of the upper left corner of the minimum enclosing rectangle, the second vertex coordinate is the vertex coordinate of the upper right corner of the minimum enclosing rectangle, the third vertex coordinate is the vertex coordinate of the lower left corner of the minimum enclosing rectangle, and the fourth vertex coordinate is the vertex coordinate of the lower right corner of the minimum enclosing rectangle.

[0169] In some embodiments of the present application, the model test can also be performed using normal and illegal operation videos and images of the battery cell coating rework station to determine whether the expected accuracy is achieved.

[0170] In the embodiment of the present application, when it is detected that there is a battery cell with a rubber cap, step 204 can be executed; when it is detected that there is a battery cell without a rubber cap, step 205 can be executed.

[0171] Step 204: determine whether the batteries in the foam box are placed in the same direction.

[0172] In an embodiment of the present application, after detecting whether the battery cells in the first image information are covered with rubber caps, if it is detected that there are battery cells with rubber caps, the placement orientation of the battery cells with rubber caps is detected to determine whether the battery cells in the foam box are placed in the same orientation.

[0173] In some embodiments of the present application, all battery cells with rubber caps can be clustered, grouped and sorted according to preset distance values, and each group can be marked with a different color to facilitate subsequent checking of the serial numbers of foam boxes with inconsistent placement orientations and the positions of battery cells with inconsistent placement orientations.

[0174] In some embodiments of the present application, each group of battery cells can be traversed, and the image of the minimum circumscribed rectangular area of ​​each battery cell can be subjected to perspective transformation, rotation screenshot, binarization processing and other operations. In addition, the portion between the two poles and the portion outside the two poles in the image of each battery cell can be determined through the length and width information of each image and a preset ratio value, thereby removing the interfering portions around and in the middle, that is, removing the position of the middle explosion-proof valve and the surrounding frame, thereby determining the images corresponding to each of the two poles, and judging the position of the rubber cap by comparing the pixel ratios of the images corresponding to each of the two poles.

[0175] In some embodiments of the present application, a reference value can be set in advance to determine whether to determine the placement orientation based on the second image information; the detection device can obtain a first value of the second image information, wherein the first value represents the clarity of the second image information; and then determine the difference between the first value and the reference value. If the difference is less than the preset difference, the placement orientation of the battery cell is not determined based on the second image information.

[0176] In some embodiments of the present application, the orientation of each group of battery cells, that is, the battery cells in each foam box, can be recorded as an array, and each array can be traversed to determine whether the orientation of each group of battery cells is consistent. If not, bad production information is recorded once, and the orientation of the battery cells that are inconsistent with the overall orientation is marked in red on the image; for example: the third group of battery cells, the overall orientation is to the right, and the second battery cell in the group is to the left.

[0177] Step 205: determine whether the time without the rubber cap reaches a preset time.

[0178] In an embodiment of the present application, after detecting whether the battery cells in the first image information are covered with rubber caps, if it is detected that there are battery cells without rubber caps, the length of time the battery cells without rubber caps are not covered with rubber caps is detected, and it is determined whether the length of time without rubber caps reaches a preset length of time.

[0179] In some embodiments of the present application, when it is detected that the time without the rubber cap reaches a preset time, NG (bad production information) may be recorded.

[0180] Step 206: When the time interval from the last alarm is greater than the preset time interval, perform alarm processing.

[0181] In an embodiment of the present application, if after detecting the orientation of the battery cells with rubber caps and judging whether the battery cells in each foam box are oriented in the same direction, it is determined that the battery cells in the foam boxes in the rework area are oriented in an inconsistent manner, step 206 can be executed.

[0182] In an embodiment of the present application, if the time without the cap is detected for the battery cell without the cap, and it is determined whether the time without the cap reaches the preset time, if it is determined that the time without the cap reaches the preset time, step 206 can be executed.

[0183] In some embodiments of the present application, each time bad production information is recorded, the bad production information can be sent to an abnormal result feedback platform for relevant personnel to view; for example, when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent, the relevant information of the inconsistent placement orientation is recorded and the corresponding bad production information is generated and sent to the abnormal result feedback platform; the method of pushing to the abnormal result feedback platform is not limited in this application, for example, any kind of bad production information can be mounted through a common Internet File System (CIFS) and written to a shared path and pushed to the corresponding abnormal result feedback platform, early warning platform or on-site alarm, etc., to complete the business closed loop.

[0184] In this embodiment, a detection method is proposed, and a detection device can obtain first image information of a rework area on a battery production line; use a trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result; based on the first detection result, each battery cell is tested for operating procedures to obtain a second detection result; wherein the detection of operating procedures includes the detection of the length of time that the battery cell is not insulated and the detection of the orientation of the battery cell. It can be seen that the detection device can obtain the first image information of the rework area corresponding to different battery production lines, and then use the trained target detection model to detect the first image information, so as to determine whether the various battery cells in the current rework area have been insulated and protected, and realize autonomous real-time monitoring of whether the battery cells in the rework area have completed insulation protection; then the detection device can perform an operating procedure detection based on the first detection result to determine whether the various battery cells in the rework area comply with the standard operating procedures, mainly including the detection of the length of time that the battery cells are not insulated and the detection of the direction of the battery cells, so as to automatically detect whether the reworked battery cells on each production line have not been insulated for more than a certain period of time, and whether the direction of the battery cells is consistent; thereby, comprehensive detection of battery production in the rework area can be achieved, which greatly improves the intelligence of battery production, thereby improving battery production efficiency.

[0185] Based on the above embodiment, in another embodiment of the present application, a detection device is provided, such as Figure 7 As shown, the detection device 1 may include an acquisition unit 11 , a detection unit 12 , a generation unit 13 , an alarm unit 14 , a construction unit 15 and a training unit 16 .

[0186] An acquisition unit 11 is used to acquire first image information of a rework area on a battery production line;

[0187] The detection unit 12 is used to use the trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result; and to detect the operating procedures of each battery cell based on the first detection result to obtain a second detection result; wherein the detection of the operating procedures includes the detection of the length of time that the battery cell has not been insulated and protected, and the detection of the orientation of the battery cell.

[0188] The detection unit 12 is further used to, when the first detection result is that there is a first battery cell without insulation protection among the battery cells, obtain a first time duration for which the first battery cell is not insulated, so as to determine the time duration detection result according to the first time duration; and, when the first detection result is that there is a second battery cell with insulation protection among the battery cells, detect the placement orientation of the second battery cell to obtain an orientation detection result; wherein the orientation detection result is used to indicate whether the placement orientation of the second battery cell in the foam box in the rework area is consistent.

[0189] The detection unit 12 is also used to use the trained target detection model to detect whether the negative electrode column of each battery cell in the first image information is covered with a rubber cap, and determine the battery cell with the detected negative electrode column covered with a rubber cap as the second battery cell, and determine the battery cell without the negative electrode column covered with a rubber cap as the first battery cell; and generate a first detection result based on the second battery cell and / or the first battery cell; wherein the first detection result represents the image information in which each battery cell in the first image information is marked as the first battery cell or the second battery cell.

[0190] The detection unit 12 is also used to cluster the second battery cells to obtain a clustering result; and determine the second battery cells classified into the same cluster in the clustering result as battery cells in a foam box; and determine whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box to obtain an orientation detection result.

[0191] The acquisition unit 11 is also used to determine whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box, and before obtaining the orientation detection result, determine the regional image corresponding to each of the second battery cells according to the first detection result; wherein the regional image represents the image of the minimum circumscribed rectangular area corresponding to the second battery cell in the detection result; and perform direction adjustment processing on the regional image to obtain the regional image after direction adjustment; and perform binarization processing on the regional image after direction adjustment to obtain the second image information corresponding to each of the second battery cells.

[0192] The detection unit 12 is also used to determine the images corresponding to the two poles of the second battery cell according to the second image information; and determine the negative pole of the two poles according to the proportion of pixel blocks in the images corresponding to the two poles, and determine the placement orientation of the second battery cell based on the negative pole; and determine whether the placement orientations of the second battery cells in each foam box are consistent according to the placement orientations of the second battery cells in the foam box.

[0193] The detection unit 12 is further used to determine whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box, and after obtaining the orientation detection result, determine the third battery cell in the foam box and the first orientation of the third battery cell when the orientation detection result is that the placement orientations of the second battery cells in the foam box are inconsistent; wherein the third battery cell represents a battery cell whose placement orientation is inconsistent with the total orientation of the second battery cells in the foam box, and the total orientation is determined based on the placement orientations of a first number of second battery cells in the foam box, and the first number is greater than the number of the third battery cells.

[0194] The generating unit 13 is used to generate prompt information according to the third battery cell and the first orientation; wherein the prompt information represents information for prompting the third battery cell and the first orientation in the foam box.

[0195] The acquisition unit 11 is also used to obtain the first alarm time information when the duration detection result is that the first duration reaches a preset duration, and / or when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent; wherein the first alarm time information represents the time information of the last alarm processing; and determine the time interval information based on the first alarm time information and the current time information.

[0196] The alarm unit 14 is used to perform alarm processing when the time interval information is greater than a preset time interval.

[0197] The acquisition unit 11 is further used to acquire first video data in the rework area of ​​different battery production lines; wherein the first video data includes video information of the battery cells not complying with standard operating procedures during the rework process.

[0198] The construction unit 15 is used to extract image information from the video data and construct a training data set based on the extracted image information.

[0199] The training unit 16 is used to train the initial target detection model using the training data set to obtain a trained target detection model.

[0200] The construction unit 15 is also used to crop the image information to obtain cropped image information; wherein the cropping process is used to crop out image information that matches the workbench in the rework area; and filter the cropped image information to obtain filtered image information; wherein the repetition between the filtered image information meets a preset repetition condition; and annotate the battery cells with rubber caps on the negative poles and the battery cells without rubber caps on the negative poles in the filtered image information to obtain annotated image information, and construct a training data set based on the annotated image information.

[0201] Based on the above embodiment, in another embodiment of the present application, Figure 8 Schematic diagram of the structure of the detection device proposed in the embodiment of the present application Figure 2 ,like Figure 5 As shown, the detection device 1 proposed in the embodiment of the present application may also include a processor 17 and a memory 18 storing executable instructions of the processor 17; further, the detection device 1 may also include a communication interface 19, and a bus 110 for connecting the processor 17, the memory 18 and the communication interface 19.

[0202] In an embodiment of the present application, the processor 17 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a Central Processing Unit (CPU), a controller, a microcontroller, and a microprocessor. It is understandable that for different devices, the electronic device used to implement the above-mentioned processor function may also be other, and the embodiment of the present application is not specifically limited. The detection device 1 may also include a memory 18, which may be connected to the processor 17, wherein the memory 18 is used to store executable program code, the program code includes computer operation instructions, and the memory 18 may include a high-speed RAM memory, and may also include a non-volatile memory, for example, at least two disk memories.

[0203] In the embodiment of the present application, the bus 110 is used to connect the communication interface 19, the processor 17 and the memory 18, and the mutual communication between these devices.

[0204] In the embodiment of the present application, the memory 18 is used to store instructions and data.

[0205] Further, in an embodiment of the present application, the processor 17 is used to obtain first image information of a rework area on a battery production line;

[0206] Using the trained target detection model, detect whether each battery cell in the first image information has been insulated and protected, and obtain a first detection result;

[0207] Based on the first detection result, the operating procedure of each battery cell is tested to obtain a second detection result; wherein the testing of the operating procedure includes the testing of the length of time the battery cell is not insulated and the testing of the orientation of the battery cell.

[0208] In practical applications, the memory 18 may be a volatile memory, such as a random access memory (RAM); or a non-volatile memory, such as a read-only memory (ROM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD); or a combination of the above types of memory, and provide instructions and data to the processor 17.

[0209] In addition, each functional module in this embodiment can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above integrated unit can be implemented in the form of hardware or software functional modules.

[0210] If the integrated unit is implemented in the form of a software function module and is not sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this embodiment is essentially or the part that contributes to the prior art or the whole or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method of this embodiment. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk, etc., various media that can store program codes.

[0211] An embodiment of the present application provides a detection device, which can obtain first image information of a rework area on a battery production line; use a trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result; based on the first detection result, each battery cell is tested for operating procedures to obtain a second detection result; wherein the detection of operating procedures includes detecting the length of time that the battery cell is not insulated and protecting, and detecting the orientation of the battery cell. It can be seen that the detection device can obtain the first image information of the rework area corresponding to different battery production lines, and then use the trained target detection model to detect the first image information, so as to determine whether the various battery cells in the current rework area have been insulated and protected, and realize autonomous real-time monitoring of whether the battery cells in the rework area have completed insulation protection; then the detection device can perform an operating procedure detection based on the first detection result to determine whether the various battery cells in the rework area comply with the standard operating procedures, mainly including the detection of the length of time that the battery cells are not insulated and the detection of the direction of the battery cells, so as to automatically detect whether the reworked battery cells on each production line have not been insulated for more than a certain period of time, and whether the direction of the battery cells is consistent; thereby, comprehensive detection of battery production in the rework area can be achieved, which greatly improves the intelligence of battery production, thereby improving battery production efficiency.

[0212] Specifically, the program instructions corresponding to a detection method in this embodiment can be stored in a storage medium such as a CD, a hard disk, a USB flash drive, etc. When the program instructions corresponding to a detection method in the storage medium are read or executed by an electronic device, the following steps are included:

[0213] Acquire first image information of a rework area on a battery production line;

[0214] Using the trained target detection model, detect whether each battery cell in the first image information has been insulated and protected, and obtain a first detection result;

[0215] Based on the first detection result, the operating procedure of each battery cell is tested to obtain a second detection result; wherein the testing of the operating procedure includes the testing of the length of time the battery cell is not insulated and the testing of the orientation of the battery cell.

[0216] An embodiment of the present application provides a computer program product, including a computer program or instructions. When the computer program or instructions are executed by a processor, the steps in the method provided in the above method embodiment are implemented.

[0217] Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems, or computer program products. Therefore, the present application can take the form of hardware embodiments, software embodiments, or embodiments combining software and hardware.

[0218] The present application is described with reference to the implementation flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the process in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0219] These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which is implemented in the implementation flow diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0220] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operation steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for executing the steps in the flowchart. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0221] The above are only preferred embodiments of the present application and are not intended to limit the protection scope of the present application.

Claims

1. A detection method, characterized in that: The method comprises: Acquire first image information of a rework area on a battery production line; Using the trained target detection model, detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result; When the first detection result is that there is a first battery cell without insulation protection among the battery cells, obtaining a first time duration for which the first battery cell is not insulated, so as to determine a time duration detection result according to the first time duration; When the first detection result is that there is a second battery cell with insulation protection among the battery cells, the placement orientation of the second battery cell is detected to obtain an orientation detection result; wherein the orientation detection result is used to indicate whether the placement orientation of the second battery cell in the foam box in the rework area is consistent.

2. The detection method according to claim 1, characterized in that: The method of using the trained target detection model to detect whether each battery cell in the first image information has been insulated and protected to obtain a first detection result includes: Using the trained target detection model, detect whether the negative electrode column of each battery cell in the first image information is covered with a rubber cap, and determine the battery cell with the negative electrode column covered with a rubber cap as the second battery cell, and determine the battery cell without the negative electrode column covered with a rubber cap as the first battery cell; The first detection result is generated based on the second battery cell and / or the first battery cell; wherein the first detection result represents image information in which each battery cell in the first image information is marked as the first battery cell or the second battery cell.

3. The detection method according to claim 2, characterized in that: The detecting the placement orientation of the second battery cell to obtain an orientation detection result includes: Performing clustering processing on the second battery cells to obtain a clustering result; Determine the second battery cell classified into the same cluster in the clustering result as a battery cell in a foam box; Based on the second image information corresponding to each of the second battery cells in the foam box, it is determined whether the placement orientations of the second battery cells in the foam box are consistent, and the orientation detection result is obtained.

4. The detection method according to claim 3, characterized in that: Before determining whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box and obtaining the orientation detection result, the method further includes: Determine a region image corresponding to each of the second battery cells according to the first detection result; wherein the region image represents an image of a minimum circumscribed rectangular region corresponding to the second battery cell in the detection result; Performing direction adjustment processing on the regional image to obtain a regional image after direction adjustment; Binarization processing is performed on the direction-adjusted regional image to obtain second image information corresponding to each of the second battery cells.

5. The detection method according to claim 4, characterized in that: The determining whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box includes: Determine images corresponding to two poles of the second battery cell according to the second image information; Determine the negative pole of the two poles according to the proportion of pixel blocks in the images corresponding to the two poles, and determine the placement direction of the second battery cell based on the negative pole; Whether the placement orientations of the second battery cells in the foam boxes are consistent is determined according to the placement orientations of the second battery cells in the foam boxes.

6. The detection method according to claim 5, characterized in that: After determining whether the placement orientations of the second battery cells in the foam box are consistent based on the second image information corresponding to each of the second battery cells in the foam box and obtaining the orientation detection result, the method further includes: In the case where the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent, determining the third battery cell in the foam box and the first orientation of the third battery cell; wherein the third battery cell represents a battery cell whose placement orientation is inconsistent with the total orientation of the second battery cells in the foam box, and the total orientation is determined based on the placement orientations of a first number of the second battery cells in the foam box, and the first number is greater than the number of the third battery cells; Prompt information is generated according to the third battery cell and the first orientation; wherein the prompt information represents information that prompts the third battery cell in the foam box and the first orientation.

7. The detection method according to any one of claims 1 to 6, characterized in that: The method further comprises: When the duration detection result is that the first duration reaches a preset duration, and / or when the orientation detection result is that the placement orientation of the second battery cell in the foam box is inconsistent, obtaining first alarm time information; wherein the first alarm time information represents the time information of the last execution of alarm processing; Determine time interval information according to the first alarm time information and current time information; When the time interval information is greater than the preset time interval, an alarm process is performed.

8. The detection method according to claim 1, characterized in that: Before using the trained target detection model to detect whether each battery cell in the first image information has been insulated and protected, and obtaining the first detection result, the method further includes: Acquire first video data in a rework area in different battery production lines; wherein the first video data includes video information of a battery cell not complying with standard operating procedures during a rework process; Extracting image information from the video data, and constructing a training data set based on the extracted image information; The initial target detection model is trained using the training data set to obtain a trained target detection model.

9. The detection method according to claim 8, characterized in that: The step of constructing a training data set based on the extracted image information includes: Performing cropping processing on the image information to obtain cropped image information; wherein the cropping processing is used to crop out image information that matches the workbench in the rework area; Filtering the cropped image information to obtain filtered image information; wherein the repetition between the filtered image information meets a preset repetition condition; The battery cells with the negative electrode columns covered with rubber caps and the battery cells without the negative electrode columns covered with rubber caps in the filtered image information are labeled to obtain labeled image information, and the training data set is constructed based on the labeled image information.

10. A detection device, characterized in that: It includes an acquisition unit and a detection unit; The acquisition unit is used to acquire first image information of a rework area on a battery production line; The detection unit is used to detect whether each battery cell in the first image information has been insulated and protected by using the trained target detection model to obtain a first detection result; And when the first detection result is that there is a first battery cell without insulation protection among the battery cells, a first time duration during which the first battery cell is not insulated is obtained to determine the time duration detection result according to the first time duration; when the first detection result is that there is a second battery cell with insulation protection among the battery cells, the placement orientation of the second battery cell is detected to obtain an orientation detection result; wherein the orientation detection result is used to indicate whether the placement orientation of the second battery cell in the foam box in the rework area is consistent.

11. A detection device, characterized in that: The detection device includes a processor and a memory storing instructions executable by the processor; when the executable instructions are executed by the processor, the method according to any one of claims 1 to 9 is implemented.

12. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method according to any one of claims 1 to 9 is implemented.

13. A computer program product comprising a computer program or instructions, characterized in that When the computer program or instruction is executed by a processor, the steps in the detection method according to any one of claims 1 to 9 are implemented.