Tab folding detection method and device, equipment and storage medium
Image processing technology is used to identify the folding conditions of battery tabs and separators, which solves the impact of tab folding on battery quality and safety, and improves battery production quality.
Patent Information
- Application Number
- CN202410783757.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-09-06
AI Technical Summary
During the battery production process, the tabs are easy to fold, which affects the quality of the battery and poses safety risks. It is difficult to accurately detect the folding situation with existing technology.
By acquiring images of the battery tabs and separator, the location of the tab area and the edge of the separator is determined, a region of interest is established, and pixel difference values and multi-dimensional feature vectors are used to identify whether the tabs have turned over the separator, and the judgment is made based on the preset feature library.
It achieves accurate identification of tab folding, improves battery production quality, and solves the impact of tab folding on battery quality and safety.
Smart Images

Figure CN118608501A
Abstract
Description
Technical Field
[0001] The embodiments of the present application relate to image processing technology, and relate to but are not limited to a tab folding detection method and device, equipment, and storage medium. Background Art
[0002] In the battery production process, tabs play an important role. They connect the battery to the external circuit to realize the battery's charging and discharging functions.
[0003] Tabs are generally made of aluminum and copper. Copper and aluminum are relatively soft materials, and tabs are prone to folding when the machine is running. Tab folding has a serious impact on battery quality and may even cause safety hazards. Therefore, how to accurately detect tab folding is one of the difficulties in the industry. Summary of the invention
[0004] In view of this, the tab folding detection method, device, equipment, and storage medium provided in the embodiments of the present application can accurately identify the tab folding in the battery, thereby improving the production quality of the battery. The tab folding detection method, device, equipment, and storage medium provided in the embodiments of the present application are implemented as follows:
[0005] In a first aspect, an embodiment of the present application provides a tab folding detection method, comprising:
[0006] Acquire an image to be identified, wherein the image to be identified includes a tab and a separator of a battery;
[0007] Determine the tab region of the tab in the image to be identified and the edge position of the diaphragm in the image to be identified;
[0008] Determining a region of interest of the image to be identified according to the tab region and the edge position;
[0009] According to the pixel information of the target area in the region of interest and the pixel information of the difference area adjacent to the region of interest, the folding condition of the pole ear in the image to be identified is determined, and the folding condition includes that the pole ear is turned over the diaphragm and that the pole ear is not turned over the diaphragm.
[0010] In some embodiments, determining the tab region of the tab in the image to be identified and the edge position of the diaphragm in the image to be identified includes:
[0011] Performing recognition processing on the image to be recognized to obtain a tab region where the tab is located and a diaphragm region where the diaphragm is located in the image to be recognized;
[0012] An edge detection process is performed on the right edge of the diaphragm area to obtain an edge position corresponding to the diaphragm area.
[0013] In some embodiments, determining the region of interest of the image to be identified according to the tab position and the edge position includes:
[0014] An area formed by the right position of the detection frame of the tab area and the edge position is determined as the region of interest.
[0015] In some embodiments, determining the folding condition of the tab in the to-be-identified image according to the pixel information of the target area in the area of interest and the pixel information of the difference area adjacent to the area of interest includes:
[0016] Determine a pixel difference according to pixel information of a target area in the region of interest and pixel information of a difference area adjacent to the region of interest;
[0017] Determine a candidate determination result according to the pixel difference and a preset threshold, wherein the candidate determination result includes whether the tab has turned over the diaphragm or not;
[0018] When the candidate determination result is that the tab has not turned over the diaphragm, extracting a multi-dimensional feature vector of the region of interest;
[0019] According to the multi-dimensional feature vector, a target determination result of the tab in the to-be-identified image is determined, wherein the target determination result includes whether the tab has turned over the diaphragm or not.
[0020] In some embodiments, determining the target determination result of the tab in the image to be identified according to the multi-dimensional feature vector includes:
[0021] Calculate the similarity between the multidimensional feature vector and each comparison feature vector to obtain at least one calculation result, wherein the comparison feature vector is a feature vector of at least one comparison image stored in a preset feature library, wherein the comparison image is an image including a tab and a diaphragm of a battery, and the comparison image includes a label, and the label is used to indicate that the tab in the comparison image is turned over the diaphragm;
[0022] In the case where the calculation result is less than or equal to the similarity threshold, determining that the target determination result is that the tab has flipped over the diaphragm;
[0023] In the case where each of the calculation results is greater than the similarity threshold, it is determined that the target determination result is that the tab has not flipped over the diaphragm.
[0024] In some embodiments, the performing similarity calculation on the multidimensional feature vector and the comparison feature vector to obtain a calculation result includes:
[0025] The cosine distance between the multidimensional feature vector and each of the contrast feature vectors is calculated to obtain a calculation result corresponding to each of the contrast feature vectors.
[0026] In some embodiments, before calculating the similarity between the multidimensional feature vector and the comparison feature vector to obtain the calculation result, the method further includes:
[0027] Acquire at least one comparison image, wherein the comparison image is an image including a tab and a separator of a battery;
[0028] identifying a region of interest in each of the compared images;
[0029] Extracting a contrast feature vector of a region of interest of each of the contrast images;
[0030] Determine a label for the comparison image according to the comparison feature vector, wherein the label includes that the pole tab in the comparison image is turned over the diaphragm or the pole tab in the comparison image is not turned over the diaphragm;
[0031] A preset feature library is generated according to the correspondence between each of the comparison images, the label of the comparison image and the comparison feature vector of the comparison image.
[0032] In some embodiments, identifying the region of interest of each of the compared images comprises:
[0033] Performing recognition processing on the comparison image to obtain a tab region where the tab in the comparison image is located and a diaphragm region where the diaphragm in the comparison image is located;
[0034] Performing edge detection processing on the right edge of the diaphragm region in the contrast image to obtain an edge position corresponding to the diaphragm region in the contrast image;
[0035] An area formed by a right position of a detection frame of a tab region of the comparison image and an edge position of the comparison image is determined as an area of interest of the comparison image.
[0036] In a second aspect, an embodiment of the present application provides a tab folding detection device, comprising:
[0037] An acquisition module, used for acquiring an image to be identified, wherein the image to be identified includes a tab and a diaphragm of a battery;
[0038] A determination module, used to determine a tab region of the tab in the image to be identified and an edge position of the diaphragm in the image to be identified; and determine a region of interest of the image to be identified based on the tab region and the edge position;
[0039] The identification module is used to determine the folding condition of the pole ear in the image to be identified based on the pixel information of the target area in the area of interest and the pixel information of the difference area adjacent to the area of interest, wherein the folding condition includes that the pole ear is turned over the diaphragm and that the pole ear is not turned over the diaphragm.
[0040] In a third aspect, an embodiment of the present application provides a computer device, including a memory and a processor, wherein the memory stores a computer program that can be executed on the processor, and when the processor executes the program, the method described in the embodiment of the present application is implemented.
[0041] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method provided in the embodiment of the present application.
[0042] The tab folding detection method, apparatus, computer device and computer-readable storage medium provided in the embodiments of the present application obtain an image to be identified including the tab and diaphragm of a battery, and determine the tab region where the tab is located and the edge position of the diaphragm in the image to be identified, thereby determining the region of interest in the image to be identified based on the edge position of the tab region and the diaphragm; further, it is possible to determine whether the tab has flipped over the diaphragm based on the pixel information of the target region in the region of interest and the pixel information of the difference region adjacent to the region of interest.
[0043] In the embodiment of the present application, the region of interest is determined by using the region where the tab is located and the position of the diaphragm, and based on the region of interest, a pixel difference determination method is used to determine whether the tab in the image to be identified has turned over the diaphragm. In this way, the folding of the tab in the image to be identified is identified in a pixel-level manner, which realizes detailed and refined control of the image to be identified, can accurately identify the folding of the tab in the battery, improve the production quality of the battery, and solve the technical problems raised in the background technology. BRIEF DESCRIPTION OF THE DRAWINGS
[0044] The drawings herein are incorporated into the specification and constitute a part of the specification. These drawings illustrate embodiments consistent with the present application and are used together with the specification to illustrate the technical solution of the present application.
[0045] Figure 1 A diagram showing an application scenario of the tab folding detection method provided in an embodiment of the present application;
[0046] Figure 2 A schematic diagram of the display effect of a tab provided in an embodiment of the present application;
[0047] Figure 3 A schematic diagram of the effect of the edge position of a diaphragm provided in an embodiment of the present application;
[0048] Figure 4 A schematic diagram of an effect of a region of interest provided in an embodiment of the present application;
[0049] Figure 5 A schematic diagram of a process for determining the folding status of a tab based on pixel information provided in an embodiment of the present application;
[0050] Figure 6 A schematic diagram of a pixel contrast effect provided in an embodiment of the present application;
[0051] Figure 7 A schematic diagram of the implementation process of obtaining a preset feature library provided in an embodiment of the present application;
[0052] Figure 8 A schematic diagram of the structure of a tab folding detection device provided in an embodiment of the present application;
[0053] Fig. 9 A schematic diagram of the structure of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0054] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the specific technical solution of the present application will be further described in detail below in conjunction with the drawings in the embodiments of the present application. The following embodiments are used to illustrate the present application, but are not used to limit the scope of the present application.
[0055] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art to which this application belongs. The terms used herein are only for the purpose of describing the embodiments of this application and are not intended to limit this application.
[0056] In the following description, reference is made to “some embodiments”, which describe a subset of all possible embodiments, but it will be understood that “some embodiments” may be the same subset or different subsets of all possible embodiments and may be combined with each other without conflict.
[0057] It should be pointed out that the terms "first\second\third" involved in the embodiments of the present application are used to distinguish similar or different objects, and do not represent a specific ordering of the objects. It can be understood that "first\second\third" can be interchanged in a specific order or sequence where permitted, so that the embodiments of the present application described here can be implemented in an order other than that illustrated or described here.
[0058] The tab is one of the key elements in the battery manufacturing process. As a connecting piece between the protective plate and the battery cell body, the tab can connect the battery to the external circuit, thereby realizing the battery's charging and discharging function.
[0059] In the battery production process, the winding method can be used to roll the pole pieces, separators, and termination tapes of matching sizes into battery cells. In the winding process, the positive and negative pole pieces are continuous, and the positive and negative pole ears are located above the pole pieces after winding. Each winding contains a positive pole ear and a negative pole ear.
[0060] However, since the materials of the positive and negative electrode tabs are aluminum and copper respectively, and the copper and aluminum materials are relatively soft, the two tabs are prone to folding and wrinkling during the winding process, thus affecting the quality, safety and appearance of the battery cell.
[0061] In view of this, an embodiment of the present application provides a tab folding detection method, which is applied to electronic devices. The electronic devices may include but are not limited to mobile phones, wearable devices (such as smart watches, smart bracelets, smart glasses, etc.), tablet computers, laptops, vehicle terminals, PCs (Personal Computers), etc. The functions implemented by the method can be implemented by calling program codes by a processor in the electronic device. Of course, the program codes can be stored in a computer storage medium. It can be seen that the electronic device at least includes a processor and a storage medium.
[0062] Figure 1 The following is a schematic diagram of the implementation process of a tab folding detection method provided in an embodiment of the present application. Figure 1 As shown, the method may include the following steps 101 to 104:
[0063] Step 101, obtaining an image to be identified, wherein the image to be identified includes a tab and a separator of a battery.
[0064] In the battery manufacturing process, the winding machine, separator and tab each play an important role and they are closely related.
[0065] Among them, the winding machine is one of the key equipment in the battery manufacturing process. It is mainly used to wind the diaphragm and electrode materials according to predetermined process parameters to form the basic structure of the battery.
[0066] The separator is used to separate the positive and negative electrodes in the battery and prevent short circuits. It is usually a thin film material with a microporous structure that allows electrolyte ions to pass through but blocks the flow of electrons. The performance and quality of the separator have an important impact on the performance and safety of the battery.
[0067] Tabs are another key component in batteries. They are the link between the electrode material and the external circuit of the battery and are responsible for the transmission of current. The design and manufacture of tabs need to consider factors such as conductivity, mechanical strength, and compatibility with other components.
[0068] In the battery manufacturing process, the winder, separator and tab need to work together. First, the winder winds the separator and electrode materials into the basic structure of the battery. In this process, the speed, tension and position of the winding need to be precisely controlled to ensure that the separator and electrode materials can fit tightly together. Finally, the tab is welded to the electrode material for connection to the external circuit.
[0069] However, during the manufacturing process of the battery, since the materials of the tabs are aluminum and copper, they are prone to folding and wrinkling during the winding process, which affects the quality, safety and appearance of the battery cell. Therefore, during the manufacturing process of the battery, the folding of the tabs needs to be detected.
[0070] In an embodiment of the present application, the acquired image to be identified may include an image of a battery tab and a diaphragm captured during the battery manufacturing process.
[0071] In the embodiment of the present application, there is no limitation on the number of images to be identified. A single image may be acquired and processed; or multiple images may be acquired and each image may be processed separately.
[0072] Step 102 : determining the tab region of the tab in the image to be identified and the edge position of the diaphragm in the image to be identified.
[0073] The battery tabs may include a positive tab and a negative tab. After the image to be identified is acquired, the tab region where the tab is located in the image to be identified may be determined first.
[0074] Figure 2 A schematic diagram of the display effect of a tab is given. Figure 2 As shown, the left side shows the display effect of the positive pole ear, and the right side shows the display effect of the negative pole ear.
[0075] In some embodiments, in order to determine the lug area of the lug and the edge position of the diaphragm in the image to be identified, the image to be identified can be firstly processed to obtain the lug area where the lug is located and the diaphragm area where the diaphragm is located in the image to be identified.
[0076] In the embodiment of the present application, there is no limitation on the method of determining the tab region of the tab in the image to be identified and the diaphragm region where the diaphragm is located. For example, a neural network can be used to detect the image to be identified to obtain the tab region and the diaphragm region.
[0077] There is no limitation on the specific type of neural network. For example, a target detection model based on a single neural network (You Only Look Once, YOLO) may be used, which may specifically include a YOLOv8 model, a YOLOX model, etc. Alternatively, a CenterNet model may also be used.
[0078] YOLOv8 is an object detection algorithm that makes predictions based on global image information and is an end-to-end object detection model. YOLOX is a lightweight object detection algorithm with excellent inference speed. Different model variants can be selected according to actual application scenarios.
[0079] In this way, after determining the tab region where the tab is located and the diaphragm region where the diaphragm is located in the image to be identified, the edge position of the diaphragm in the image to be identified can be determined based on the diaphragm region.
[0080] In some embodiments, determining the edge position of the diaphragm in the image to be identified may be to determine the right edge of the diaphragm region and use it as the edge position of the diaphragm to be determined.
[0081] Figure 3 A schematic diagram of the effect of the edge position of the diaphragm is given. Figure 3 As shown, the black short side in the left figure points to the edge of the diaphragm next to the positive electrode tab, and the black short side in the right figure points to the edge of the diaphragm next to the negative electrode tab.
[0082] There is no limitation on the method of identifying the edge position of the diaphragm in the image to be identified. For example, edge detection processing may be performed on the right edge of the diaphragm region to obtain the edge position corresponding to the diaphragm region.
[0083] Here, the specific implementation method of the edge detection processing is not limited. For example, edge detection algorithms such as Laplace operator, Sobel operator, Candy operator, or PidNet detection may be used.
[0084] The Laplacian operator can extract edge position information in an image by performing a convolution operation with the image; the Sobel operator can detect edge positions by calculating the weighted difference of the grayscale values of the four upper, lower, left and right neighborhoods of each pixel in the image and reaching an extreme value at the edge; the PidNet algorithm can use multi-level feature representation to extract features from the image, and classify or regress the features at the output layer to detect the edge position in the image to be identified.
[0085] Step 103: determining the region of interest of the image to be identified according to the tab region and the edge position.
[0086] In some embodiments, the area formed by the right position and edge position of the detection frame of the tab area may be determined as the area of interest.
[0087] Figure 4 A schematic diagram of the effect of a region of interest is given. Figure 4As shown, the area surrounded by the right edge position of the detection frame of the tab area and the white frame formed by the edge position of the diaphragm is the area of interest.
[0088] Step 104, determining the folding condition of the tab in the image to be identified based on the pixel information of the target area in the region of interest and the pixel information of the difference area adjacent to the region of interest, wherein the folding condition includes the tab turning over the diaphragm and the tab not turning over the diaphragm.
[0089] Please refer to Figure 4 ,Depend on Figure 4 It can be seen that in the region of interest, the performance of the tab flipping over the diaphragm is different from that of the tab not flipping over the diaphragm. The difference in performance here can be manifested as different pixel values.
[0090] Based on this, in the embodiment of the present application, after determining the region of interest, the pixel values at the region of interest and the surrounding region of the region of interest can be analyzed to determine whether the tab in the image to be identified has flipped over the diaphragm. The analysis principle can be that if the tab has flipped over the diaphragm, the pixel values of the region of interest and the surrounding region are different, and the visualization is not smooth; if the tab has not flipped over the diaphragm, the pixel values of the region of interest and the surrounding region tend to be the same, and the visualization is smooth.
[0091] Therefore, in some embodiments, a schematic diagram of a process for determining the folding of the tab based on pixel information is provided. Figure 5 As shown, the method includes the following steps 501 to 504:
[0092] Step 501: Determine a pixel difference according to pixel information of a target area in a region of interest and pixel information of a difference area adjacent to the region of interest.
[0093] In the embodiments of the present application, the target region may include a partial region extracted from the region of interest, such as in some embodiments, Figure 6 As shown in a schematic diagram of a pixel contrast effect, the target area is a local area A on the right side of the region of interest.
[0094] In the embodiment of the present application, the difference region adjacent to the region of interest may include any position above or below the region of interest, avoiding the region of the tab. Figure 6 As shown, the difference area is an area B below the area of interest, which avoids the area where the pole ear is folded or not folded, that is, no matter whether the pole ear is folded over the diaphragm, the pole ear is not included in the difference area.
[0095] Step 502 , determining candidate determination results according to the pixel difference and a preset threshold, wherein the candidate determination results include whether the tab has turned over the diaphragm or not.
[0096] In an embodiment of the present application, if the pixel difference between the pixel information of the region of interest and the pixel information of the adjacent difference region is small, that is, less than or equal to the preset threshold, it can be judged that the pixels of the region of interest and the adjacent difference region are closer, thereby judging that the tab has not turned over the diaphragm.
[0097] If the pixel difference between the pixel information of the region of interest and the pixel information of the adjacent difference region is large, that is, greater than the preset threshold, it can be judged that the pixels of the region of interest and the adjacent difference region are far different, that is, there may be wrinkles, warping, etc. in the region of interest, thereby judging that the tab has flipped over the diaphragm.
[0098] Step 503: when the candidate determination result is that the tab has not turned over the diaphragm, extract a multi-dimensional feature vector of the region of interest.
[0099] In an embodiment of the present application, in order to further improve the accuracy of the determination result of whether the tab has turned over the diaphragm, when it is determined based on the pixel difference that the tab has not turned over the diaphragm, it is not directly determined that the tab in the image to be identified has not turned over the diaphragm, but the next step of judgment is continued to determine the folding status of the tab in the image to be identified by combining the two judgment results.
[0100] Of course, if it is determined based on the pixel difference that the tab is flipped over the diaphragm, it can be directly determined that the tab in the image to be identified is flipped over the diaphragm. Therefore, there is no need to continue to judge, and it can be directly determined that the folding of the tab in the image to be identified is the tab flipping over the diaphragm.
[0101] In an embodiment of the present application, when it is determined based on the pixel difference that the tab has not turned over the diaphragm, a multi-dimensional feature vector in the region of interest can be extracted to again determine the tab folding situation from a feature level to improve the accuracy of the determination.
[0102] Step 504 , determining the target determination result of the tab in the image to be identified based on the multi-dimensional feature vector, the target determination result including whether the tab has turned over the diaphragm or not.
[0103] In some embodiments, after obtaining the multidimensional feature vector corresponding to the region of interest, the multidimensional feature vector and the feature vector of at least one comparison image stored in a preset feature library can be used to determine the target determination result of the tab in the image to be identified.
[0104] The preset feature library includes at least one feature vector of a comparison image, and the feature vector of the comparison image is also a feature vector corresponding to the region of interest in the comparison image. The comparison image is an image including a tab and a diaphragm of a battery, and the comparison image in the preset feature library includes a label, and the label is used to characterize that the tab in the comparison image is flipped over the diaphragm.
[0105] Of course, in some embodiments, the labels of the comparison images in the preset feature library can also be used to characterize that the tab in the comparison image is turned over the diaphragm, or that the tab in the comparison image is not turned over the diaphragm. That is, the preset feature library can include comparison images of the tab turning over the diaphragm, and also include comparison images of the tab not turning over the diaphragm.
[0106] In the embodiment of the present application, before determining the target determination result of the tab in the image to be identified based on the multi-dimensional feature vector, the preset feature library needs to be obtained first.
[0107] In the embodiment of the present application, there is no limitation on the method of obtaining the preset feature library. For example, in some embodiments, it can be achieved by executing the following steps 701 to 704:
[0108] Step 701, obtaining at least one comparison image, where the comparison image is an image including a tab and a separator of a battery.
[0109] In an embodiment of the present application, the obtained comparison image may be an image including the battery tab and the diaphragm taken during the battery manufacturing process.
[0110] In the embodiment of the present application, there is no limitation on the number of comparison images obtained, which may be one or more.
[0111] Step 702, identifying a region of interest in each comparison image.
[0112] In the embodiment of the present application, the method of identifying the region of interest in the comparison image may be the same as the method of determining the region of interest of the image to be identified in steps 101 to 103 in the above embodiment.
[0113] That is, to identify the region of interest of the comparison document image, the comparison image can be processed by performing recognition processing to obtain the pole ear region where the pole ear in the comparison image is located and the diaphragm region where the diaphragm in the comparison image is located; then edge detection processing is performed on the right edge of the diaphragm region in the comparison image to obtain the edge position corresponding to the diaphragm region in the comparison image; finally, the region composed of the right position of the detection frame of the pole ear region of the comparison image and the edge position of the comparison image is determined as the region of interest of the comparison image.
[0114] Step 703: extract the contrast feature vector of the region of interest of each contrast image.
[0115] In the embodiment of the present application, the comparison feature vector of the region of interest of the comparison image is extracted, and the multi-dimensional feature vector of the region of interest of the comparison image is extracted, such as extracting a 512-dimensional comparison feature vector. Of course, when the multi-dimensional feature vector of the region of interest in the image to be identified is extracted later, the dimension of the multi-dimensional feature vector of the region of interest of the image to be identified must be the same as the dimension of the comparison feature vector of the comparison image.
[0116] Step 704, determine the label of the comparison image according to the comparison feature vector, the label includes whether the pole ear in the comparison image is turned over the diaphragm or the pole ear in the comparison image is not turned over the diaphragm; generate a preset feature library according to the correspondence between each comparison image, the label of the comparison image and the comparison feature vector of the comparison image.
[0117] In the embodiment of the present application, in order to determine whether the tab in the comparison image is turned over the diaphragm, the recognition result of the folding of the tab in the comparison image can be determined based on the extracted comparison feature vector through a pre-trained recognition network.
[0118] In the embodiment of the present application, there is no limitation on the type of recognition network. For example, the recognition network may be a Resnet101 network. The recognition network may be pre-trained using a data set in ImageNet to obtain a trained recognition network. The trained recognition network and a comparison feature vector of a comparison image are used to determine the folding condition of the pole ear in the comparison image.
[0119] Here, the label of the comparison image may include that the tab is turned over the diaphragm or the tab is not turned over the diaphragm. After obtaining the label of each comparison image, each comparison image can be associated with its corresponding label and the corresponding comparison feature vector and stored to jointly construct a preset feature library.
[0120] In the embodiment of the present application, after determining the preset feature library, in order to implement step 604 to determine the target determination result of the tab in the image to be identified according to the multi-dimensional feature vector, the following steps can be performed:
[0121] The multi-dimensional feature vector is respectively subjected to similarity calculation with each comparison feature vector to obtain at least one calculation result.
[0122] In the embodiment of the present application, similarity calculations may be performed on the multidimensional feature vector corresponding to the image to be identified and the comparison feature vector corresponding to each comparison image to obtain at least one calculation result corresponding to each comparison image.
[0123] The similarity calculation may be to calculate the feature similarity between the region of interest in the image to be identified and the region of interest in the comparison image. Feature similarity generally refers to the degree of similarity between two or more feature vectors. In machine learning, feature vectors are generally used to represent the attributes or features of data points.
[0124] In the embodiments of the present application, there is no limitation on the method for calculating the similarity between the multidimensional feature vector and the comparison feature vector. For example, in some embodiments, the calculation result corresponding to each comparison feature vector can be obtained by calculating the cosine distance between the multidimensional feature vector and each comparison feature vector, and the cosine distance is the cosine similarity.
[0125] Of course, in other embodiments, the Pearson correlation coefficient or the like between the multidimensional feature vector and each comparison feature vector may be calculated to evaluate the similarity between features based on the angle, distance or other statistical measures between the feature vectors.
[0126] In an embodiment of the present application, after calculating the similarity between the multidimensional feature vector corresponding to the image to be identified and the comparison feature vector corresponding to each comparison image (i.e., the calculation result), there is no limitation on the method of determining the target judgment result of whether the pole ear in the image to be identified has flipped over the diaphragm based on the calculation result.
[0127] For example, in some embodiments, when there is a calculation result less than or equal to the similarity threshold, the target judgment result is determined to be that the tab has flipped over the diaphragm; when each calculation result is greater than the similarity threshold, the target judgment result is determined to be that the tab has not flipped over the diaphragm.
[0128] That is, when there is no calculation result representing that the multidimensional feature vector corresponding to the region of interest of the image to be identified is similar to the comparison image in which the pole tab has flipped over the diaphragm, it can be determined that the pole tab in the image to be identified has not flipped over the diaphragm; otherwise, it is determined that the pole tab in the image to be identified has flipped over the diaphragm.
[0129] In other embodiments, after obtaining at least one calculation result, multiple calculation results ranked high among the calculation results can be compared with the similarity threshold respectively. When there are calculation results less than or equal to the similarity threshold among the multiple calculation results, such as 2 or 3 of the 3 calculation results are less than or equal to the similarity threshold, it can be determined that the target judgment result is that the tab has flipped over the diaphragm.
[0130] The tab folding detection method provided in the embodiment of the present application obtains an image to be identified including the tab and the diaphragm of the battery, and determines the tab region where the tab is located and the edge position of the diaphragm in the image to be identified, thereby determining the region of interest in the image to be identified based on the edge position of the tab region and the diaphragm; further, it is possible to determine whether the tab has flipped over the diaphragm based on the pixel information of the target region in the region of interest and the pixel information of the difference region adjacent to the region of interest.
[0131] In the embodiment of the present application, the region of interest is determined by using the region where the tab is located and the position of the diaphragm, and based on the region of interest, a pixel difference determination method is used to determine whether the tab in the image to be identified has turned over the diaphragm. In this way, the folding of the tab in the image to be identified is identified in a pixel-level manner, which realizes detailed and refined control of the image to be identified, can accurately identify the folding of the tab in the battery, and improve the production quality of the battery.
[0132] It should be understood that, although the steps in the above-mentioned flowcharts are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above-mentioned flowcharts may include multiple sub-steps or multiple stages, and these sub-steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these sub-steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the sub-steps or stages of other steps.
[0133] Based on the foregoing embodiments, an embodiment of the present application provides a tab folding detection device, which includes the modules included and the units included in the modules, and can be implemented by a processor; of course, it can also be implemented by a specific logic circuit; in the implementation process, the processor can be a central processing unit (CPU), a microprocessor (MPU), a digital signal processor (DSP) or a field programmable gate array (FPGA), etc.
[0134] Figure 8 The structure diagram of the tab folding detection device provided in the embodiment of the present application is as follows: Figure 8 As shown, the device 800 includes an acquisition module 801, a determination module 802 and an identification module 803, wherein:
[0135] An acquisition module 801 is used to acquire an image to be identified, wherein the image to be identified includes a tab and a diaphragm of a battery;
[0136] A determination module 802 is used to determine a tab region of the tab in the image to be identified and an edge position of the diaphragm in the image to be identified; and determine a region of interest of the image to be identified based on the tab region and the edge position;
[0137] The identification module 803 is used to determine the folding condition of the pole ear in the image to be identified based on the pixel information of the target area in the area of interest and the pixel information of the difference area adjacent to the area of interest, and the folding condition includes that the pole ear is turned over the diaphragm and that the pole ear is not turned over the diaphragm.
[0138] In some embodiments, the determination module 802 is specifically used to perform recognition processing on the image to be recognized to obtain the pole ear area where the pole ear is located and the diaphragm area where the diaphragm is located in the image to be recognized; perform edge detection processing on the right edge of the diaphragm area to obtain the edge position corresponding to the diaphragm area.
[0139] In some embodiments, the determination module 802 is further configured to determine the area formed by the right position of the detection frame of the tab area and the edge position as the area of interest.
[0140] In some embodiments, the identification module includes a determination submodule, a first identification submodule, an extraction module, and a second identification submodule;
[0141] The determination submodule is used to determine the pixel difference according to the pixel information of the target area in the region of interest and the pixel information of the difference area adjacent to the region of interest;
[0142] The first identification submodule is used to determine a candidate determination result according to the pixel difference and a preset threshold, wherein the candidate determination result includes that the tab has turned over the diaphragm and that the tab has not turned over the diaphragm;
[0143] The extraction module is used to extract the multi-dimensional feature vector of the region of interest when the candidate determination result is that the tab has not turned over the diaphragm;
[0144] The second identification submodule is used to determine the target determination result of the tab in the image to be identified according to the multi-dimensional feature vector, and the target determination result includes whether the tab is turned over the diaphragm or not.
[0145] In some embodiments, the second identification submodule includes a calculation module and a comparison module;
[0146] The calculation module is used to calculate the similarity between the multidimensional feature vector and each comparison feature vector to obtain at least one calculation result, wherein the comparison feature vector is a feature vector of at least one comparison image stored in a preset feature library, and the comparison image is an image including a tab and a diaphragm of a battery, and the comparison image includes a label, and the label is used to characterize that the tab in the comparison image is turned over the diaphragm;
[0147] The comparison module is used to determine that the target judgment result is that the tab has flipped over the diaphragm when the calculation result is less than or equal to the similarity threshold; and to determine that the target judgment result is that the tab has not flipped over the diaphragm when each of the calculation results is greater than the similarity threshold.
[0148] In some embodiments, the calculation module is specifically used to calculate the cosine distance between the multi-dimensional feature vector and each of the contrast feature vectors to obtain a calculation result corresponding to each contrast feature vector.
[0149] In some embodiments, the apparatus further comprises a generating module;
[0150] The acquisition module 801 is further used to acquire at least one comparison image, where the comparison image is an image including a tab and a separator of the battery;
[0151] The identification module 803 is further used to identify the region of interest of each of the compared images;
[0152] The determination module 802 is further used to extract a comparison feature vector of the region of interest of each of the comparison images; determine a label for the comparison image according to the comparison feature vector, wherein the label includes that the tab in the comparison image is turned over the diaphragm or the tab in the comparison image is not turned over the diaphragm;
[0153] The generating module is used to generate a preset feature library according to the corresponding relationship between each of the contrast images, the label of the contrast image and the contrast feature vector of the contrast image.
[0154] In some embodiments, the recognition module 803 is further specifically used to perform recognition processing on the comparison image to obtain the pole lug area where the pole lug in the comparison image is located and the diaphragm area where the diaphragm in the comparison image is located; perform edge detection processing on the right edge of the diaphragm area in the comparison image to obtain the edge position corresponding to the diaphragm area in the comparison image; and determine the area composed of the right position of the detection frame of the pole lug area of the comparison image and the edge position of the comparison image as the area of interest of the comparison image.
[0155] The description of the above device embodiment is similar to the description of the above method embodiment, and has similar beneficial effects as the method embodiment. For technical details not disclosed in the device embodiment of the present application, please refer to the description of the method embodiment of the present application for understanding.
[0156] It should be noted that in the embodiments of this application Figure 8 The division of modules in the tab folding detection device shown is schematic and is only a logical function division. There may be other division methods in actual implementation. In addition, each functional unit in each embodiment of the present application may be integrated into a processing unit, or may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of a software functional unit. It may also be implemented in the form of a combination of software and hardware.
[0157] It should be noted that in the embodiment of the present application, if the above method is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on such an understanding, the technical solution of the embodiment of the present application can be essentially or partly embodied in the form of a software product that contributes to the relevant technology. The computer software product is stored in a storage medium, including several instructions to enable an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a U disk, a mobile hard disk, a read-only memory (ROM), a magnetic disk or an optical disk. In this way, the embodiment of the present application is not limited to any specific combination of hardware and software.
[0158] The embodiment of the present application provides a computer device, which may be a server, and its internal structure diagram may be as follows: Fig. 9 As shown. The computer device includes a processor, a memory and a network interface connected through a system bus. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store data. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, the above method is implemented.
[0159] An embodiment of the present application provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps in the method provided in the above embodiment are implemented.
[0160] An embodiment of the present application provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute the steps of the method provided in the above method embodiment.
[0161] Those skilled in the art will understand that Fig. 9 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0162] In one embodiment, the tab folding detection device provided in the present application can be implemented in the form of a computer program. The computer program can be Fig. 9 The computer device shown in the figure is run. The memory of the computer device can store various program modules constituting the above-mentioned device. The computer program composed of various program modules enables the processor to execute the steps in the method of each embodiment of the present application described in this specification.
[0163] It should be noted here that the description of the above storage medium and device embodiments is similar to the description of the above method embodiments, and has similar beneficial effects as the method embodiments. For technical details not disclosed in the storage medium, storage medium and device embodiments of this application, please refer to the description of the method embodiments of this application for understanding.
[0164] It should be understood that "one embodiment" or "an embodiment" or "some embodiments" mentioned throughout the specification means that specific features, structures or characteristics related to the embodiment are included in at least one embodiment of the present application. Therefore, "in one embodiment" or "in one embodiment" or "in some embodiments" appearing throughout the specification may not necessarily refer to the same embodiment. In addition, these specific features, structures or characteristics can be combined in one or more embodiments in any suitable manner. It should be understood that in various embodiments of the present application, the size of the sequence number of the above-mentioned processes does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiment of the present application. The above-mentioned sequence numbers of the embodiments of the present application are only for description and do not represent the advantages and disadvantages of the embodiments. The above description of each embodiment tends to emphasize the differences between the various embodiments, and the same or similar aspects can be referenced to each other. For the sake of brevity, this article will not repeat them.
[0165] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there may be three relationships. For example, object A and / or object B can represent three situations: object A exists alone, object A and object B exist at the same time, and object B exists alone.
[0166] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or device including the element.
[0167] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. The embodiments described above are only schematic. For example, the division of the modules is only a logical function division. There may be other division methods in actual implementation, such as: multiple modules or components can be combined, or can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling, direct coupling, or communication connection between the components shown or discussed can be through some interfaces, and the indirect coupling or communication connection of devices or modules can be electrical, mechanical or other forms.
[0168] The modules described above as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules; they may be located in one place or distributed on multiple network units; some or all of the modules may be selected according to actual needs to achieve the purpose of the present embodiment.
[0169] In addition, all functional modules in the embodiments of the present application may be integrated into one processing unit, or each module may be a separate unit, or two or more modules may be integrated into one unit; the above-mentioned integrated modules may be implemented in the form of hardware or in the form of hardware plus software functional units.
[0170] A person skilled in the art can understand that all or part of the steps of implementing the above method embodiment can be completed by hardware related to program instructions, and the aforementioned program can be stored in a computer-readable storage medium. When the program is executed, it executes the steps of the above method embodiment; and the aforementioned storage medium includes: mobile storage devices, read-only memories (ROM), magnetic disks or optical disks, etc., various media that can store program codes.
[0171] Alternatively, if the above-mentioned integrated unit of the present application is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application can essentially or in other words, the part that contributes to the relevant technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling an electronic device to execute all or part of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as mobile storage devices, ROMs, magnetic disks, or optical disks.
[0172] The methods disclosed in several method embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments.
[0173] The features disclosed in several product embodiments provided in this application can be arbitrarily combined without conflict to obtain new product embodiments.
[0174] The features disclosed in several method or device embodiments provided in this application can be arbitrarily combined without conflict to obtain new method embodiments or device embodiments.
[0175] The above is only an implementation method of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A tab folding detection method, characterized in that: The method comprises: Acquire an image to be identified, wherein the image to be identified includes a tab and a separator of a battery; Determine the tab region of the tab in the image to be identified and the edge position of the diaphragm in the image to be identified; Determining a region of interest of the image to be identified according to the tab region and the edge position; According to the pixel information of the target area in the region of interest and the pixel information of the difference area adjacent to the region of interest, the folding condition of the pole ear in the image to be identified is determined, and the folding condition includes that the pole ear is turned over the diaphragm and that the pole ear is not turned over the diaphragm.
2. The method according to claim 1, characterized in that The step of determining the tab region of the tab in the image to be identified and the edge position of the diaphragm in the image to be identified includes: Performing recognition processing on the image to be recognized to obtain a tab region where the tab is located and a diaphragm region where the diaphragm is located in the image to be recognized; An edge detection process is performed on the right edge of the diaphragm area to obtain an edge position corresponding to the diaphragm area.
3. The method according to claim 1, characterized in that The determining the region of interest of the image to be identified according to the tab region and the edge position includes: An area formed by the right position of the detection frame of the tab area and the edge position is determined as the region of interest.
4. The method according to claim 1, characterized in that: The step of determining the folding condition of the tab in the to-be-identified image according to the pixel information of the target area in the area of interest and the pixel information of the difference area adjacent to the area of interest comprises: Determine a pixel difference according to pixel information of a target area in the region of interest and pixel information of a difference area adjacent to the region of interest; Determine a candidate determination result according to the pixel difference and a preset threshold, wherein the candidate determination result includes that the tab has turned over the diaphragm and that the tab has not turned over the diaphragm; When the candidate determination result is that the tab has not turned over the diaphragm, extracting a multi-dimensional feature vector of the region of interest; According to the multi-dimensional feature vector, a target determination result of the tab in the to-be-identified image is determined, wherein the target determination result includes whether the tab has turned over the diaphragm or not.
5. The method according to claim 4, characterized in that Determining the target determination result of the tab in the image to be identified according to the multidimensional feature vector includes: Calculate the similarity between the multidimensional feature vector and each comparison feature vector to obtain at least one calculation result, wherein the comparison feature vector is a feature vector of at least one comparison image stored in a preset feature library, wherein the comparison image is an image including a tab and a diaphragm of a battery, and the comparison image includes a label, and the label is used to indicate that the tab in the comparison image is turned over the diaphragm; In the case where the calculation result is less than or equal to the similarity threshold, determining that the target determination result is that the tab has flipped over the diaphragm; In the case where each of the calculation results is greater than the similarity threshold, it is determined that the target determination result is that the tab has not flipped over the diaphragm.
6. The method according to claim 5, characterized in that The similarity calculation of the multidimensional feature vector and the comparison feature vector to obtain a calculation result includes: The cosine distance between the multidimensional feature vector and each of the contrast feature vectors is calculated to obtain a calculation result corresponding to each of the contrast feature vectors.
7. The method according to claim 5, characterized in that Before calculating the similarity between the multidimensional feature vector and the comparison feature vector to obtain the calculation result, the method further includes: Acquire at least one comparison image, wherein the comparison image is an image including a tab and a separator of a battery; identifying a region of interest in each of the compared images; Extracting a contrast feature vector of a region of interest of each of the contrast images; Determine a label for the comparison image according to the comparison feature vector, wherein the label includes that the pole tab in the comparison image is turned over the diaphragm or the pole tab in the comparison image is not turned over the diaphragm; A preset feature library is generated according to the correspondence between each of the comparison images, the label of the comparison image and the comparison feature vector of the comparison image.
8. The method according to claim 7, characterized in that The identifying the region of interest of each of the compared images comprises: Performing recognition processing on the comparison image to obtain a tab region where the tab in the comparison image is located and a diaphragm region where the diaphragm in the comparison image is located; Performing edge detection processing on the right edge of the diaphragm region in the contrast image to obtain an edge position corresponding to the diaphragm region in the contrast image; An area formed by a right position of a detection frame of a tab region of the comparison image and an edge position of the comparison image is determined as an area of interest of the comparison image.
9. A tab folding detection device, characterized in that: include: An acquisition module, used for acquiring an image to be identified, wherein the image to be identified includes a tab and a diaphragm of a battery; A determination module, used to determine a tab region of the tab in the image to be identified and an edge position of the diaphragm in the image to be identified; and determine a region of interest of the image to be identified based on the tab region and the edge position; The identification module is used to determine the folding condition of the pole ear in the image to be identified based on the pixel information of the target area in the area of interest and the pixel information of the difference area adjacent to the area of interest, wherein the folding condition includes that the pole ear is turned over the diaphragm and that the pole ear is not turned over the diaphragm.
10. A computer device comprising a memory and a processor, wherein the memory stores a computer program that can be run on the processor, characterized in that: When the processor executes the program, the steps of the method according to any one of claims 1 to 8 are implemented.
11. 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 8 is implemented.
Citation Information
Cited By
Tab folding detection method and device, electronic equipment and readable storage medium
CN121540636A
