Cylindrical lithium battery sorting system based on appearance defect detection

By designing a cylindrical lithium battery sorting system that includes a ResNet network and a multi-head attention module, the problem of inaccurate appearance defect detection of cylindrical lithium batteries in the existing technology is solved, and efficient and accurate defect detection and automated sorting are achieved. Improved product quality and production efficiency.

CN118719604APending Publication Date: 2024-10-01JIANGSU OPTIMUMNANO ENERGY CO LTD

Patent Information

Application Number
CN202410717203.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-04
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

The existing machine vision-based cylindrical lithium battery appearance defect detection system cannot perform single inspection or classification inspection, resulting in insufficient accuracy and low efficiency in defect detection.

Method used

A cylindrical lithium battery sorting system based on appearance defect detection is designed, including a transportation mechanism, image acquisition module, image processing module, defect detection module and sorting module. The ResNet network is combined with the multi-head attention module for defect detection, and through The main control module controls the sorting operation.

Benefits of technology

It improves the accuracy and resolution efficiency of defect detection, enhances the robustness and real-time performance of lithium battery surface defect detection, can detect various types of appearance defects, ensures product quality, and reduces the defective rate.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118719604A_ABST
    Figure CN118719604A_ABST
Patent Text Reader

Abstract

The invention discloses a cylindrical lithium battery sorting system based on appearance defect detection, which comprises a mounting platform, a transportation mechanism, an image acquisition module, an image processing module, a defect detection module, a sorting module and a main control module, and is characterized in that the transportation mechanism is arranged on the mounting platform, transports a cylindrical lithium battery to an image acquisition area and then transports the cylindrical lithium battery to a sorting area; the image acquisition module acquires an original appearance image of the cylindrical lithium battery reaching an image acquisition area in real time; the image processing module preprocesses the original appearance image to obtain a denoised and cut appearance image; the defect detection module obtains appearance defect information of the cylindrical lithium battery by using the preprocessed appearance image and sends the appearance defect information to the main control module; and the main control module controls the sorting module to sort the cylindrical lithium batteries according to the appearance defect information. According to the invention, the appearance defects of the cylindrical lithium battery can be automatically detected, the judgment accuracy and the distinguishing efficiency are improved, and the sorting accuracy and the sorting efficiency are further improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of optical detection, and in particular relates to a cylindrical lithium battery sorting system based on appearance defect detection. Background Art

[0002] Lithium batteries are a type of battery that uses lithium metal or lithium alloy as positive / negative electrode materials and non-aqueous electrolyte solutions. Lithium batteries are widely used in electric vehicles, large power sources, secondary charging and energy storage due to their advantages of zero pollution, zero emissions, high energy density, small size and long cycle life. They have become the main body of power battery development and application at home and abroad. Therefore, the quality of lithium batteries is particularly important, and lithium battery surface defect detection has become an indispensable step.

[0003] At present, lithium batteries are classified into three types based on the packaging route: soft pack, square and cylindrical. The production process of cylindrical lithium batteries is mature, the heat dissipation area is large, and its heat dissipation performance is better than that of square batteries; cylindrical lithium batteries are easy to combine in various forms and are suitable for the full layout of electric vehicle space design. However, cylindrical lithium batteries are generally packaged in steel or aluminum shells, and a layer of plastic is added on the outer layer for packaging. During the production process, due to extrusion, collision, foreign matter inclusion, improper material handling and other reasons, it is easy to form concave or convex geometric defects on the surface; various parts of the battery may have appearance defects such as leakage and rust defects.

[0004] The appearance defect detection of cylindrical lithium batteries is usually achieved through a visual sorting system, which uses image processing and computer vision technology to detect various defects. However, the existing technology provides a machine vision-based automatic detection system. When performing defect detection, the method described includes multiple image processing steps and cannot perform single-item detection or classification detection. Summary of the invention

[0005] In order to solve the above problems existing in the prior art, the present invention provides a cylindrical lithium battery sorting system based on appearance defect detection. The technical problem to be solved by the present invention is achieved through the following technical solutions:

[0006] The present invention provides a cylindrical lithium battery sorting system based on appearance defect detection, comprising an installation platform, a transportation mechanism, an image acquisition module, an image processing module, a defect detection module, a sorting module and a main control module, wherein:

[0007] The transport mechanism is arranged on the installation platform, and is used to transport the cylindrical lithium batteries to be sorted to the image acquisition area for image acquisition, and then transport them to the sorting area;

[0008] The image acquisition module is arranged above the transport mechanism and is used to acquire the original appearance image of the cylindrical lithium battery arriving at the image acquisition area in real time;

[0009] The image processing module is used to pre-process the original appearance image to obtain a denoised and cut appearance image;

[0010] The defect detection module is used to obtain the appearance defect information of the cylindrical lithium battery by using the denoised and cut appearance image and send the appearance defect information to the main control module;

[0011] The main control module is used to control the sorting module to perform a sorting operation on the cylindrical lithium batteries arriving at the sorting area according to the appearance defect information, so as to sort out the cylindrical lithium batteries with appearance defects.

[0012] In one embodiment of the present invention, the transport mechanism comprises a roller mounting bracket, a plurality of rollers and a drive module, wherein:

[0013] The roller mounting bracket comprises a first crossbar and a second crossbar arranged in parallel with each other, the plurality of rollers are arranged in parallel and spaced apart between the first crossbar and the second crossbar, each roller is perpendicular to the first crossbar and the second crossbar and can rotate in the same direction relative to the first crossbar and the second crossbar under the drive of the driving module to transport the cylindrical lithium batteries to be sorted;

[0014] The driving unit is electrically connected to the main control module, and the main control module can control the driving unit to be turned on or off.

[0015] In one embodiment of the present invention, the outer surface of each of the rollers is wrapped with a rubber layer, and the interval between adjacent rollers is smaller than the radius of the cylindrical lithium battery.

[0016] In one embodiment of the present invention, a mounting frame is disposed above the mounting platform, and the image acquisition module and the image processing module are both disposed on the mounting frame.

[0017] The mounting frame is also provided with a lighting module, and the lighting module is close to the image acquisition module.

[0018] In one embodiment of the present invention, the image processing module includes an image denoising unit, an edge positioning unit and an image cutting unit, wherein:

[0019] The image denoising unit is used to convert the original appearance image into a grayscale image, and perform mean filtering on the grayscale image to obtain a denoised grayscale image;

[0020] The edge positioning unit is used to perform edge detection on the denoised grayscale image using a Canny operator to obtain edge pixels, and then obtain the edge contour of the cylindrical lithium battery in the grayscale image;

[0021] The image cutting unit is used to cut out a minimum cutting image including the edge contour of the cylindrical lithium battery according to the coordinates of the edge contour.

[0022] In one embodiment of the present invention, the defect detection module includes a trained defect detection network, which includes a convolution module, a ResNet network module, a multi-head attention module and a fully connected layer connected in sequence, the convolution module is used to obtain preliminary features of the input appearance image; the ResNet network module is used to perform residual calculation on the preliminary features, the multi-head attention module is used to capture the relationship between different preliminary features and extract important feature information, and the fully connected layer is used to perform classification according to the important feature information to obtain defect detection results.

[0023] In one embodiment of the present invention, the convolution module includes a convolution layer, a batch normalization layer, a ReLU activation layer and a maximum pooling layer connected in sequence;

[0024] The ResNet network module includes a plurality of first residual blocks, a plurality of second residual blocks, a plurality of third residual blocks and a plurality of fourth residual blocks connected in sequence, wherein each residual block has a different channel number dimension, and each residual block includes a convolutional layer, a batch normalization layer, a ReLU activation layer, a Dropout layer, a convolutional layer and a batch normalization layer connected in sequence.

[0025] In one embodiment of the present invention, the ResNet network module includes two first residual blocks, three second residual blocks, five third residual blocks and three fourth residual blocks connected in sequence, the number of output channels of each first residual block is 64; the number of output channels of each second residual block is 128; the number of output channels of each third residual block is 256; the number of output channels of each fourth residual block is 512; the convolution kernel size of the convolution layer in each residual block is 3, and the step size is 2.

[0026] In one embodiment of the present invention, the sorting module includes a plurality of pushing mechanisms arranged in sequence along the transport mechanism, each pushing mechanism is connected to the main control module, and the main control module can control the corresponding pushing mechanism action according to the type information of the appearance defect obtained by the defect detection module, so as to push the cylindrical lithium batteries with different types of appearance defects into the corresponding defective battery collection frame.

[0027] In one embodiment of the present invention, the pushing mechanism comprises a cylinder and a cylinder fixing seat, the cylinder is horizontally arranged on the upper surface of the cylinder fixing seat, the lower end of the cylinder fixing seat is fixed to the mounting platform and is located on the first side of the transport mechanism, and the piston rod of the cylinder is parallel to and aligned with the rollers passing sequentially on the transport mechanism;

[0028] The defective battery collection frame is located on the second side of the transportation mechanism, and the cylinder is electrically connected to the main control module, and is used to push cylindrical lithium batteries with corresponding appearance defect types into corresponding defective battery collection frames under the control of the main control module.

[0029] Compared with the prior art, the present invention has the following beneficial effects:

[0030] 1. The present invention provides a cylindrical lithium battery sorting system based on appearance defect detection, which has a simple structure and is easy to install. The cylindrical lithium battery is transported to an image acquisition area for image acquisition through a transportation mechanism, and the appearance defect type information of the cylindrical lithium battery is obtained through an image acquisition module, an image processing module and a defect detection module. The cylindrical lithium battery is then transported to a sorting area for automatic sorting according to the appearance defect type information, thereby increasing the accuracy and resolution efficiency of defect detection, thereby improving the sorting accuracy and sorting efficiency.

[0031] 2. The defect detection module of the present invention adopts a ResNet-based defect detection network, and adds a multi-head attention module after the ResNet network module, which effectively improves the accuracy of defect detection. It can efficiently and accurately detect the appearance defects of lithium batteries, improve the robustness and real-time performance of lithium battery surface defect detection; and can detect various types of appearance defects, including dents, stains, scratches, etc., ensuring comprehensive quality control, ensuring the quality of qualified products, and reducing the defective rate.

[0032] The present invention will be further described in detail below with reference to the accompanying drawings and embodiments. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 It is a structural schematic diagram of a cylindrical lithium battery sorting system based on appearance defect detection provided by an embodiment of the present invention;

[0034] Figure 2 is a partial top view of a cylindrical lithium battery sorting system based on appearance defect detection provided by an embodiment of the present invention;

[0035] Figure 3 is a module schematic diagram of an image processing module provided by an embodiment of the present invention;

[0036] Figure 4 is a module schematic diagram of a defect detection network provided by an embodiment of the present invention;

[0037] Figure 5 It is a schematic diagram of the connection relationship between a ResNet network module and a multi-head attention module provided in an embodiment of the present invention.

[0038] Description of reference numerals:

[0039] 1-installation platform; 2-transportation mechanism; 21-roller; 22-driving module; 23-first cross bar; 24-second cross bar; 3-image acquisition module; 4-image processing module; 41-image denoising unit; 42-edge positioning unit; 43-image cutting unit; 5-defect detection module; 6-sorting module; 61-cylinder; 62-cylinder fixing seat; 7-main control module; 8-installation frame; 9-non-defective battery collection frame; 10-defective battery collection frame; 11-cylindrical lithium battery. DETAILED DESCRIPTION

[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined purpose of the invention, the following is a detailed description of a cylindrical lithium battery sorting system based on appearance defect detection proposed by the present invention in combination with the accompanying drawings and specific implementation methods.

[0041] The above and other technical contents, features and effects of the present invention are clearly presented in the following detailed description of the specific implementation modes in conjunction with the accompanying drawings. Through the description of the specific implementation modes, the technical means and effects adopted by the present invention to achieve the predetermined purpose can be more deeply and specifically understood. However, the attached drawings are only for reference and explanation purposes and are not used to limit the technical solutions of the present invention.

[0042] It should be noted that, in this article, relational terms such as first and second, etc. are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants are intended to cover non-exclusive inclusion, so that an article or device including a series of elements includes not only those elements, but also other elements that are not explicitly listed. In the absence of more restrictions, the elements defined by the statement "including one..." do not exclude the existence of other identical elements in the article or device including the elements.

[0043] Please also see Figure 1 and Figure 2 , Figure 1 It is a structural schematic diagram of a cylindrical lithium battery sorting system based on appearance defect detection provided by an embodiment of the present invention; Figure 2It is a partial top view of a cylindrical lithium battery sorting system based on appearance defect detection provided by an embodiment of the present invention. The cylindrical lithium battery sorting system includes an installation platform 1, a transportation mechanism 2, an image acquisition module 3, an image processing module 4, a defect detection module 5, a sorting module 6 and a main control module 7, wherein the transportation mechanism 2 is arranged on the installation platform 1, and is used to transport the cylindrical lithium battery 11 to be sorted to the image acquisition area for image acquisition, and then transport it to the sorting area; the image acquisition module 3 is arranged above the transportation mechanism 2, and is used to obtain the original appearance image of the cylindrical lithium battery 11 arriving at the image acquisition area in real time, and the image acquisition area is located below the image acquisition module 3; the image processing module 4 is connected to the image acquisition module 3, and is used to pre-process the original appearance image acquired by the image acquisition module 3 to obtain the appearance image after denoising and cutting; the defect detection module 5 is connected to the image processing module 4, and is used to obtain the appearance defect information of the cylindrical lithium battery using the appearance image after denoising and cutting obtained by the image processing module 4 and send the appearance defect information to the main control module 7; the main control module 7 is connected to the sorting module 6, and is used to control the sorting module 6 to sort the cylindrical lithium batteries arriving at the sorting area according to the appearance defect information, so as to screen out the cylindrical lithium batteries with appearance defects.

[0044] Furthermore, the transport mechanism 2 of this embodiment includes a roller mounting bracket, a plurality of rollers 21 and a driving module 22, wherein the roller mounting bracket includes a first crossbar 23 and a second crossbar 24 arranged in parallel with each other, and a plurality of rollers 21 are arranged in parallel and spaced between the first crossbar 23 and the second crossbar 24, each roller 21 is perpendicular to the first crossbar 23 and the second crossbar 24 and can rotate in the same direction relative to the first crossbar 23 and the second crossbar 24 under the drive of the driving module 22 to transport the cylindrical lithium batteries 11 to be sorted; the driving unit 22 is electrically connected to the main control module 7, and the main control module 7 can control the driving unit to turn on and off. The front end of the transport mechanism 2 can be connected to the rear end of the cylindrical lithium battery processing process to transfer the prepared cylindrical lithium batteries to the transport mechanism 2 to enter the subsequent sorting process.

[0045] Specifically, a plurality of rollers 21 are parallel to each other and have the same diameter and length. Each roller 21 is perpendicular to the first crossbar 23 and the second crossbar 24, so that a conveying surface is formed between the first crossbar 23 and the second crossbar 24. When the cylindrical lithium battery 11 arrives on the transport mechanism 2, all the rollers 21 can rotate in the same direction under the drive of the drive module 22, thereby driving the cylindrical lithium battery 11 from one end of the conveying surface to the other end. Preferably, the length of the roller 21 is greater than the length of the cylindrical lithium battery 11 to be sorted, but less than twice the length of the cylindrical lithium battery 11, so that during transportation, only one cylindrical lithium battery 11 is accommodated between every two rollers 21. The interval between adjacent rollers 21 is less than the radius of the cylindrical lithium battery 11. In the actual process, the cylindrical lithium battery 11 is transported forward while rolling on the transport mechanism 2, so that the subsequent image acquisition module 3 can capture the image of the entire cylindrical surface of the cylindrical lithium battery. The outer surface of each roller 21 is wrapped with a rubber layer, which can reduce the wear on the surface of the cylindrical lithium battery during transportation.

[0046] Preferably, the driving module 22 of this embodiment includes a roller, a roller belt, a motor belt and a motor, wherein a roller is fixedly connected to one end of each roller 21, and adjacent rollers 21 are connected by roller belts to transmit power. The motor belt is connected between the output shaft of the motor and any roller to transmit the driving force of the motor to the roller 22, and the motor is arranged on the mounting platform 1.

[0047] A mounting frame 8 is also provided above the mounting platform 1, and the image acquisition module 3 and the image processing module 4 are both provided on the mounting frame 8. A lighting module (not shown in the drawings) is also provided on the mounting frame 8, and the lighting module is close to the image acquisition module 3.

[0048] Specifically, the mounting frame 8 of this embodiment includes two vertical rods respectively fixed vertically to the first crossbar 23 and the second crossbar 24, and a horizontal mounting rod horizontally fixed to the upper ends of the two vertical rods and spanning above the transport mechanism 2. The image acquisition module 3 is mounted at the lower end of the horizontal mounting rod and faces the transport mechanism 2. The lighting module is arranged beside the image acquisition module 3 to illuminate the image acquisition process. The image acquisition module 3 and the lighting module are electrically connected to the main control module 7, which can control the opening and closing of the image acquisition module 3 and the lighting module.

[0049] In this embodiment, the image acquisition module 3 is a high-speed high-definition camera, and the model can be selected as MV-CS016-10GC. The lighting module is an LED surface light source to provide a uniform and wide lighting effect. The main control module 7 is a programmable logic controller (PLC).

[0050] For further information, see Figure 3 , Figure 3: is a module schematic diagram of an image processing module provided by an embodiment of the present invention. The image processing module 4 includes an image denoising unit 41, an edge positioning unit 42 and an image cutting unit 43, wherein the image denoising unit 41 is used to convert the original appearance image into a grayscale image, and perform mean filtering on the grayscale image to obtain a denoised grayscale image; the edge positioning unit 42 is used to perform edge detection on the denoised grayscale image using a Canny operator to obtain edge pixels, and then obtain the edge contour of the cylindrical lithium battery in the grayscale image; the image cutting unit 43 is used to cut out a minimum cut image including the edge contour of the cylindrical lithium battery according to the coordinates of the edge contour.

[0051] That is to say, the image processing module 4 performs pre-processing such as graying and denoising on the original appearance image, and can also perform sharpening to enhance the edges and details in the image to better capture defects; then, the edges in the image are identified, and the minimum cut image including the edge contour of the cylindrical lithium battery is cut out to reduce the impact of the background image on the subsequent defect detection process.

[0052] The defect detection module 5 of this embodiment includes a trained defect detection network, see Figure 4 , Figure 4 It is a module schematic diagram of a defect detection network provided by an embodiment of the present invention. The defect detection network includes a convolution module, a ResNet network module, a multi-head attention module and a fully connected layer connected in sequence, the convolution module is used to obtain the preliminary features of the input appearance image; the ResNet network module is used to perform residual calculation on the preliminary features, the multi-head attention module is used to capture the relationship between different preliminary features and extract important feature information, and the fully connected layer is used to classify according to the important feature information to obtain the defect detection result.

[0053] Furthermore, the convolution module includes a convolution layer, a batch normalization layer, a ReLU activation layer and a maximum pooling layer connected in sequence; the ResNet network module takes the preliminary features obtained by the convolution module as input, and the ResNet network module includes a plurality of first residual blocks, a plurality of second residual blocks, a plurality of third residual blocks and a plurality of fourth residual blocks connected in sequence, each residual block has a different channel number dimension, and each residual block includes a convolution layer, a batch normalization layer, a ReLU activation layer, a Dropout layer, a convolution layer and a batch normalization layer connected in sequence.

[0054] like Figure 5As shown, the ResNet network module of this embodiment includes two first residual blocks, three second residual blocks, five third residual blocks and three fourth residual blocks connected in sequence, wherein the number of output channels of each first residual block is 64; the number of output channels of each second residual block is 128; the number of output channels of each third residual block is 256; the number of output channels of each fourth residual block is 512; the convolution kernel size of the convolution layer in each residual block is 3, and the step size is 2.

[0055] It should be noted that before actual use, the defect detection network needs to be trained using a training data set. The specific training steps include:

[0056] Step 1: Obtain appearance defect image samples of cylindrical lithium batteries, and expand the appearance defect image samples to form a training data set.

[0057] Specifically, step 1 of this embodiment includes:

[0058] Step 1.1: Collect multiple original defect image samples of the surface of cylindrical lithium batteries, and mark the defect information in each original defect sample image to form a marking point.

[0059] The original defect image samples may be a large number of defect images of real cylindrical lithium batteries taken. The original defect image samples are subjected to image grayscale processing and bilateral filtering to remove noise in the image. Then, the defect information in each original defect sample image is annotated. The defect information includes the defect location coordinates and the defect type, such as abrasions, scratches, dents, protrusions, etc.

[0060] Step 1.2: Using multiple pixel points in the image as rotation center points, the marked points in each original defect image sample are rotated by a preset angle with the rotation center point as the origin to obtain multiple new defect image samples.

[0061] Specifically, any pixel point in the current original defect image sample is used as the rotation center point, and a translation matrix is ​​constructed according to the coordinates of the rotation center point; a rotation matrix is ​​constructed according to a preset rotation angle; the coordinates of the marked points after rotation are obtained according to the translation matrix, the rotation matrix and the coordinates of the marked points in the current original defect image sample, thereby forming a new defect image sample with new marked point coordinates; another pixel point in the current original defect image sample is used as the rotation center point, and the rotation of the marked points is repeated on the current original defect image sample to obtain new defect image samples generated based on different rotation center points; this is repeated for each original defect image sample to obtain a new defect image sample based on each original defect image sample.

[0062] Furthermore, after step 1.2, it also includes: checking whether the coordinates of the marked points on the new defect image sample exceed the valid area of ​​the cylindrical lithium battery contour in the image. If so, deleting the current new defect image sample; if not, directly incorporating the new defect image sample as new sample data into the training data set.

[0063] In this embodiment, it is checked whether the coordinates of the marked points on the new defective image sample exceed the effective area of ​​the outline of the cylindrical lithium battery in the image, specifically including: performing image grayscale processing and bilateral filtering processing on the new defective image sample to remove noise in the image; using the Canny edge detection algorithm, edge detection is performed on the grayscale image after bilateral filtering based on the image gradient change, and the edge pixel points are found, so as to obtain the edge outline of the cylindrical lithium battery in the image; according to the coordinates of the marked points on the new defective image sample and the coordinates of the edge outline of the cylindrical lithium battery, it is judged whether the marked points on the new defective image sample exceed the area range of the edge outline of the cylindrical lithium battery.

[0064] In other words, when rotating according to the rotation center point, some defective marking points originally on the edge of the battery may fall outside the battery area. Therefore, it is necessary to determine whether the marked points after rotation are within the area of ​​the edge contour of the cylindrical lithium battery. If the coordinates of the marked points on the new defective image sample after rotation fall outside the area of ​​the edge contour of the cylindrical lithium battery, the new defective image sample is directly deleted.

[0065] Step 1.3: The original defect image samples and the generated multiple new defect image samples are combined into a training data set, thereby expanding the data volume of the training data set, avoiding the phenomenon of overfitting of the defect detection network model caused by insufficient training samples, and improving the detection effect of the subsequent target detection model.

[0066] Step 2.1: Input the training samples in the training data set generated in step 1 into the convolution module for preliminary feature extraction to obtain the preliminary features of the training samples.

[0067] Step 2.2: Input the preliminary features extracted by the convolution module into the ResNet34 deep residual network. The four residual blocks in the ResNet34 deep residual convolution network can learn deeper target defect features.

[0068] Step 2.3: Pass the deeper target defect features passed through the deep residual network ResNet34 into the multi-head attention module, and compare the data information from the deep residual network ResNet34 with the weight matrix W Q ,W K ,W VMultiply them to get the projection Q, K, V of the data information in the three spaces; pass Q, K, V through different linear layers to get the mapping Q of different subspaces i ,K i ,V i , use the attention calculation unit to calculate each group Q i ,K i ,V i Perform attention operations separately to obtain the output Z of each group i ; All output Z i They are spliced ​​together and transformed linearly to obtain the final output result Z.

[0069] Step 2.4: Input the feature vector Z extracted by the multi-head attention module into the fully connected layer for defect detection to obtain the predicted label;

[0070] Step 2.5: According to the predicted label and the corresponding true label (i.e., the labeled point), calculate the loss function of the current iteration number, and update the parameters of the defect detection network through the stochastic gradient descent algorithm to obtain the updated defect detection network; use the cross entropy loss function to calculate the loss value L of the defect detection network loss , and then use the back propagation algorithm to pass L loss Update the parameters of the defect detection network.

[0071] Step 2.6: Determine whether the set maximum number of iterations has been reached. If so, obtain the trained defect detection network. If not, repeat step 2.1.

[0072] Furthermore, the sorting module 6 of this embodiment includes a plurality of pushing mechanisms arranged in sequence along the transport mechanism 2, each of which is connected to the main control module 7. The main control module 7 can control the action of the corresponding pushing mechanism according to the type information of the appearance defect obtained by the defect detection module 5, so as to push the cylindrical lithium batteries with different types of appearance defects into the corresponding defective battery collection frame 10.

[0073] Continue to see Figure 1 and Figure 2 The pushing mechanism of this embodiment includes a cylinder 61 and a cylinder fixing seat 62. The cylinder 61 is horizontally arranged on the upper surface of the cylinder fixing seat 62. The lower end of the cylinder fixing seat 62 is fixed to the mounting platform 1 by a fastener such as a bolt and is located on the first side of the transportation mechanism 2. The piston rod of the cylinder 61 is parallel to the rollers 21 passing through the transportation mechanism 2 in sequence; the defective battery collection frame 10 is located on the second side of the transportation mechanism 2. The cylinder 61 is electrically connected to the main control module 7, and is used to push the cylindrical lithium batteries with corresponding surface defects into the corresponding defective battery collection frame 10 under the control of the main control module 7.

[0074] It should be noted that the pushing mechanism can also be one, so as to push all cylindrical lithium batteries with surface defects into the same defective battery collection frame 10 .

[0075] The specific working process of the cylindrical lithium battery sorting system based on appearance defect detection in this embodiment is as follows:

[0076] The front end of the transport mechanism 2 is connected to the rear end of the cylindrical lithium battery processing process, and the prepared cylindrical lithium battery 11 is transferred to the transport mechanism 2. The transport mechanism 2 transports the cylindrical lithium battery 11 to the image acquisition area below the image acquisition module 3. The image acquisition module 3 obtains multiple frames of images of the entire cylindrical surface of the current cylindrical lithium battery and sends them to the image processing module 4. The image processing module 4 pre-processes each image, obtains the pre-processed image and sends it to the defect detection module 5. The defect detection module 5 uses the trained defect detection network to obtain the defect type information of the current cylindrical lithium battery, and sends the defect type information to the main control module 7. At the same time, the transport mechanism 2 controls the cylindrical lithium battery 11 to continue to move forward. The main control module 7 controls the cylinder 61 to extend according to the defect type information of the current cylindrical lithium battery 11, when the cylindrical lithium battery 11 reaches the pushing mechanism corresponding to the current defect type, so as to push the cylindrical lithium battery 11 into the corresponding defective battery collection frame 10 opposite the transportation mechanism 2. For cylindrical lithium batteries without surface defects, the pushing mechanism does not work and they eventually fall into the non-defective battery collection frame 9 at the end of the transportation mechanism 2.

[0077] The present invention provides a cylindrical lithium battery sorting system based on appearance defect detection, which has a simple structure and is easy to install. The cylindrical lithium battery is transported to an image acquisition area for image acquisition through a transportation mechanism, and the appearance defect type information of the cylindrical lithium battery is obtained through an image acquisition module, an image processing module and a defect detection module. The cylindrical lithium battery is then transported to a sorting area to perform automatic sorting according to the appearance defect type information, thereby increasing the accuracy and resolution efficiency of defect detection, thereby improving the sorting accuracy and sorting efficiency. The defect detection module of the present invention adopts a defect detection network based on ResNet, and a multi-head attention module is added after the ResNet network module, which effectively improves the accuracy of defect detection, can efficiently and accurately detect the appearance defects of lithium batteries, and improves the robustness and real-time performance of lithium battery surface defect detection; and can detect various types of appearance defects, including dents, stains, scratches, etc., to ensure comprehensive quality control, ensure the quality of qualified products, and reduce the defective rate.

[0078] In the several embodiments provided by the present invention, it should be understood that the apparatus and method disclosed by the present invention can be implemented in other ways. For example, the apparatus embodiments described above are only illustrative, for example, the division of the modules is only a logical function division, and there may be other division methods in actual implementation, for example, multiple modules or components can be combined or integrated into another system, or some features can be ignored or not executed.

[0079] In addition, each functional module in each embodiment of the present invention may be integrated into one processing module, or each module may exist physically separately, or two or more modules may be integrated into one module. The above-mentioned integrated module may be implemented in the form of hardware or in the form of hardware plus software functional modules.

[0080] The above contents are further detailed descriptions of the present invention in combination with specific preferred embodiments, and it cannot be determined that the specific implementation of the present invention is limited to these descriptions. For ordinary technicians in the technical field to which the present invention belongs, several simple deductions or substitutions can be made without departing from the concept of the present invention, which should be regarded as falling within the protection scope of the present invention.

Claims

1. A cylindrical lithium battery sorting system based on appearance defect detection, characterized in that: It comprises an installation platform (1), a transport mechanism (2), an image acquisition module (3), an image processing module (4), a defect detection module (5), a sorting module (6) and a main control module (7), wherein: The transport mechanism (2) is arranged on the installation platform (1) and is used to transport the cylindrical lithium batteries (11) to be sorted to the image acquisition area for image acquisition, and then transport them to the sorting area; The image acquisition module (3) is arranged above the transport mechanism (2) and is used to acquire in real time the original appearance image of the cylindrical lithium battery (11) that has arrived at the image acquisition area; The image processing module (4) is used to pre-process the original appearance image to obtain a denoised and cut appearance image; The defect detection module (5) is used to obtain appearance defect information of the cylindrical lithium battery (11) by using the denoised and cut appearance image and send the appearance defect information to the main control module (7); The main control module (7) is used to control the sorting module (6) to perform a sorting operation on the cylindrical lithium batteries arriving at the sorting area according to the appearance defect information, so as to sort out the cylindrical lithium batteries with appearance defects.

2. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 1 is characterized in that: The transport mechanism (2) comprises a roller mounting bracket, a plurality of rollers (21) and a drive module (22), wherein: The roller mounting bracket comprises a first crossbar (23) and a second crossbar (24) arranged in parallel with each other, the plurality of rollers (21) are arranged in parallel and spaced apart between the first crossbar (23) and the second crossbar (24), each roller (21) is perpendicular to the first crossbar (23) and the second crossbar (24) and can rotate in the same direction relative to the first crossbar (23) and the second crossbar (24) under the drive of the driving module (22) to transport the cylindrical lithium batteries (11) to be sorted; The driving unit (22) is electrically connected to the main control module (7), and the main control module (7) is capable of controlling the driving unit (22) to be turned on or off.

3. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 2 is characterized in that: The outer surface of each roller (21) is wrapped with a rubber layer, and the interval between adjacent rollers (21) is smaller than the radius of the cylindrical lithium battery (11).

4. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 1 is characterized in that: A mounting frame (8) is arranged above the mounting platform (1), and the image acquisition module (3) and the image processing module (4) are both arranged on the mounting frame (8); The mounting frame (8) is also provided with a lighting module, and the lighting module is close to the image acquisition module (3).

5. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 1 is characterized in that: The image processing module (4) comprises an image denoising unit (41), an edge positioning unit (42) and an image cutting unit (43), wherein: The image denoising unit (41) is used to convert the original appearance image into a grayscale image, and perform mean filtering on the grayscale image to obtain a denoised grayscale image; The edge positioning unit (42) is used to perform edge detection on the de-noised grayscale image using a Canny operator to obtain edge pixel points, thereby obtaining the edge contour of the cylindrical lithium battery in the grayscale image; The image cutting unit (43) is used to cut out a minimum cutting image including the edge contour of a cylindrical lithium battery according to the coordinates of the edge contour.

6. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 1 is characterized in that: The defect detection module (5) includes a trained defect detection network, which includes a convolution module, a ResNet network module, a multi-head attention module and a fully connected layer connected in sequence, wherein the convolution module is used to obtain preliminary features of an input appearance image; the ResNet network module is used to perform residual calculation on the preliminary features, the multi-head attention module is used to capture the relationship between different preliminary features and extract important feature information, and the fully connected layer is used to perform classification according to the important feature information to obtain a defect detection result.

7. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 6 is characterized in that: The convolution module includes a convolution layer, a batch normalization layer, a ReLU activation layer and a maximum pooling layer connected in sequence; The ResNet network module includes a plurality of first residual blocks, a plurality of second residual blocks, a plurality of third residual blocks and a plurality of fourth residual blocks connected in sequence, each residual block has a different channel number dimension, and each residual block includes a convolutional layer, a batch normalization layer, a ReLU activation layer, a Dropout layer, a convolutional layer and a batch normalization layer connected in sequence.

8. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 7 is characterized in that: The ResNet network module includes two first residual blocks, three second residual blocks, five third residual blocks and three fourth residual blocks connected in sequence, wherein the number of output channels of each first residual block is 64; the number of output channels of each second residual block is 128; the number of output channels of each third residual block is 256; the number of output channels of each fourth residual block is 512; the convolution kernel size of the convolution layer in each residual block is 3, and the step size is 2.

9. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 2 is characterized in that: The sorting module (6) comprises a plurality of pushing mechanisms arranged in sequence along the transport mechanism (2), each pushing mechanism being connected to the main control module (7), and the main control module (7) being capable of controlling the action of the corresponding pushing mechanism according to the type information of the appearance defect acquired by the defect detection module (5), so as to push the cylindrical lithium batteries with different types of appearance defects into the corresponding defective battery collection frame (10).

10. The cylindrical lithium battery sorting system based on appearance defect detection according to claim 9, characterized in that: The pushing mechanism comprises a cylinder (61) and a cylinder fixing seat (62), the cylinder (61) being horizontally arranged on the upper surface of the cylinder fixing seat (62), the lower end of the cylinder fixing seat (62) being fixed on the mounting platform (1) and being located on the first side of the transport mechanism (2), and the piston rod of the cylinder (61) being parallel and aligned with the rollers (21) passing sequentially on the transport mechanism (2); The defective battery collection frame (10) is located on the second side of the transport mechanism (2), and the cylinder (61) is electrically connected to the main control module (7) and is used to push cylindrical lithium batteries with corresponding appearance defect types into corresponding defective battery collection frames (10) under the control of the main control module (7).

Citation Information

Patent Citations

  • Method and device for positioning biological characteristic region of image acquired in a non-contact way

    CN102542242A

  • Machine vision-based automatic detection device for detecting blister tablet packaging defect

    CN108204987A

  • Automatic sorting device based on image recognition

    CN109078869A

  • Flaw sorting device for bearing roller

    CN111389757A

  • Semantic segmentation image sample expansion method and device and electronic equipment

    CN113989592A

Cited By

  • Lithium battery production line detection system based on machine vision

    CN119702485A

  • Device for screening surface defects of various types of batteries

    CN120142586A