A labeling control method, device and defect labeling system based on dynamic cache
By combining the winding distance calculation of the dynamic cache mechanism and the pole image processing technology on the new energy battery pole production line, high-precision labeling under dynamic adjustment is achieved, the problem of difficulty in labeling positioning is solved, and the production efficiency and pole quality are improved.
Patent Information
- Application Number
- CN202510174633.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-02-18
- Publication Date
- 2025-04-25
- Estimated Expiration
- 2045-02-18
AI Technical Summary
In the production process of new energy battery pole sheets, dynamic adjustment of the dynamic buffer mechanism leads to changes in the pole sheet displacement, making it difficult for the labeling machine to accurately locate the labeling position, affecting the tension consistency and production efficiency of the pole sheet surface.
By performing target marking and defect detection on the currently conveyed pole image, combining the preset linear change rate and the swinging distance of the dynamic buffer mechanism, binding the defect position and identification mark, and performing coordinate conversion to accurately locate the labeling position.
It realizes high-precision labeling under dynamic adjustment of dynamic cache mechanism, avoids lag in labeling position, improves labeling accuracy and yield in pole sheet production, reduces production line downtime, and improves overall production efficiency.
Smart Images

Figure CN119637609B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of new energy battery manufacturing technology, and in particular to a labeling control method and device based on dynamic cache, a defect labeling system for pole pieces, electronic equipment and computer storage medium. Background Art
[0002] With the development of automation technology, especially in the field of manufacturing and production, the equipment of production lines has gradually tended to modular design, so that the production line can be flexibly configured and adjusted according to actual needs to meet different production tasks and process requirements. However, when a modular production line is used in the production process of pole pieces of new energy batteries, the connection between the production lines of two different processes is prone to differences in beats, speeds, etc., which can cause changes in the tension of the pole piece, resulting in cracks or defects on the surface of the pole piece.
[0003] Based on this, the prior art usually uses a cache structure as a buffer zone between processes to adjust and adapt to the speed difference between the previous and next processes to ensure that the production line can still run smoothly under different speed conditions, thereby ensuring the consistency of the surface tension of the pole piece and avoiding defects such as rupture and wrinkles of the pole piece due to tension fluctuations. However, the cache mechanism usually requires a certain amount of space in actual applications to effectively control the tension of the pole piece. In order to maintain the effectiveness of tension control, the cache mechanism must be able to accurately adjust the spacing and dynamically adjust it according to the real-time situation of the production line. Therefore, the cache mechanism generally used in the production process of pole pieces and similar materials is dynamically changed.
[0004] Due to the modular design, the pole piece labeling machine is generally set at the end of the production process. That is to say, after the connection of two different processes, the labeling machine is generally set at the end of the second process. By testing in the first process and labeling in the second process, it is ensured that the layout of the labeling machine will not affect the operation of the cache mechanism. However, due to the dynamic adjustment of the dynamic cache mechanism, the distance between the pole piece and the labeling machine will change, resulting in the labeling machine being unable to accurately mark defects. Accordingly, the prior art has the problem of difficulty in locating the labeling position when labeling on a dynamically changing cache mechanism. Summary of the invention
[0005] Based on this, an object of the present invention is to provide a labeling control method based on dynamic caching.
[0006] A labeling control method based on dynamic caching includes the following steps:
[0007] S1. Mark the target of the electrode image currently being transported to obtain the image of the current electrode and the corresponding identification mark;
[0008] S2, using a defect detection algorithm to perform defect detection on the image of the current pole piece to obtain a defect recognition result of the current pole piece image;
[0009] S3, judging whether the defect recognition result of the current electrode image meets a confidence threshold: if so, executing step S4A and step S4B simultaneously; if not, obtaining the next electrode image being transported, and executing step S1;
[0010] S4A, performing winding calculation according to a preset linear change rate and a swing roller position of a dynamic buffer mechanism to obtain a current winding distance;
[0011] S4B, binding the defect position of the current electrode with the corresponding identification mark to obtain defect tracking identification information;
[0012] S5. Position and calculate the current winding distance according to the defect tracking identification information to obtain the distance between the current defect target and the labeling machine;
[0013] S6. Perform coordinate conversion on the distance between the current defect target and the labeling machine to obtain the encoder coordinates to be labeled;
[0014] S7, obtain the current coordinates of the encoder, and determine whether it reaches the encoder coordinates to be labeled: if so, send a labeling signal to the labeling machine to control the labeling machine to label the current defective position and complete the defective labeling of the current pole piece; if not, continue monitoring and repeat step S7.
[0015] The labeling control method based on dynamic caching described in the present invention calculates the winding distance by combining a preset linear change rate with the current position of the swing roller, thereby compensating for the pole piece displacement caused by the dynamic adjustment of the cache mechanism, avoiding the problem of labeling position lag, and thus ensuring labeling accuracy and production line stability. At the same time, the present invention adopts the method of mapping the corrected winding distance to the encoder coordinates to be labeled, thereby achieving precise positioning in the physical coordinate system and ensuring high-precision control of the labeling process. In addition, the present invention sets a confidence threshold to screen effective defects, ensuring that labeling operations are performed only on defects with high confidence, thereby avoiding invalid labeling, reducing production line downtime, and significantly improving overall production efficiency.
[0016] Furthermore, the current winding distance The calculation is expressed as follows:
[0017]
[0018] In the formula, Indicates the current swing roller position of the dynamic buffer mechanism; is the tape length corresponding to the reference position; is the preset linear rate of change;
[0019] Among them, the winding length corresponding to the reference position and preset linear rate of change The least squares linear fitting calibration is performed, and the specific calibration is expressed as follows:
[0020]
[0021]
[0022] In the formula, Indicates The collected swing roller positions, Indicates The winding length corresponding to the collected swing roller position;
[0023] and They represent the mean of all swing roller positions and winding lengths respectively, and their specific calculation is as follows:
[0024]
[0025]
[0026] In the formula, is the total number of swing roller position data collected.
[0027] The present invention calculates the winding length and the preset linear change rate through linear fitting calibration based on the least squares method. Based on this, the current swing roller position is monitored in real time. The pole piece displacement change caused by the dynamic cache mechanism adjustment can be accurately compensated through a linear expression, thereby effectively solving the pole piece displacement problem caused by the dynamic cache adjustment, significantly improving the labeling accuracy and yield in pole piece production, and enhancing the adaptability of labeling to dynamic cache fluctuations.
[0028] Furthermore, the positioning calculation in step S5 is performed based on the unique identifier in the defect tracking identification information. And the serial number of the corresponding valid defect The distance between the current defect target and the labeling machine is calculated, and the specific calculation is expressed as follows:
[0029]
[0030] In the formula, Indicates The first The distance between the defect and the labeling machine; Indicates the current winding distance; Indicates the total distance between the camera device and the entrance of the dynamic cache mechanism and the exit of the dynamic cache mechanism and the labeling machine; Indicates the height of the image area captured by the camera device; Indicates The effective defect set of each pole piece image; Indicates The first The center coordinates of the defect position of a valid defect.
[0031] The present invention combines the winding distance, the height of the picture taken by the camera device and the position of the dynamic cache mechanism to accurately calculate the distance between the current defect target and the labeling machine, thereby significantly reducing the labeling deviation caused by the dynamic adjustment of the dynamic cache mechanism, ensuring that each defect can be accurately located and labeled in time.
[0032] Furthermore, the specific calculation of the coordinate transformation is expressed as follows:
[0033]
[0034] In the formula, Indicates The first The encoder coordinates to be labeled corresponding to the defect; Indicates the actual distance represented by one encoder rotation signal; Indicates The actual coordinates of the encoder when the pole piece image was taken.
[0035] The present invention realizes accurate positioning of the defect target in the physical coordinate system by converting the distance between the defect and the labeling machine into the encoder coordinates to be labeled and combining the rotation signal of the encoder with the actual coordinates.
[0036] A labeling control device based on dynamic caching, comprising a target marking unit, a defect detection unit, a defect position confidence judgment unit, a winding distance calculation unit, a defect tracking binding unit, a positioning calculation unit, an encoder coordinate conversion unit and a labeling judgment unit;
[0037] The target marking unit is used to mark the image of the pole piece currently being transported, and obtain the image of the current pole piece and the corresponding identification mark;
[0038] The defect detection unit is used to perform defect detection on the image of the current pole piece using a defect detection algorithm to obtain a defect recognition result of the current pole piece image;
[0039] The defect position confidence judgment unit is used to judge whether the defect recognition result of the current pole piece image meets a confidence threshold: if so, the winding distance calculation unit and the defect tracking binding unit are called at the same time; if not, the next pole piece image in transit is obtained and the target marking unit is called;
[0040] The winding distance calculation unit is used to perform winding calculation according to a preset linear change rate and the swing roller position of the dynamic buffer mechanism to obtain the current winding distance;
[0041] The defect tracking binding unit is used to bind the defect position of the current electrode with the corresponding identification mark to obtain defect tracking identification information;
[0042] The positioning calculation unit is used to perform positioning calculation on the current winding distance according to the defect tracking identification information to obtain the distance between the current defect target and the labeling machine;
[0043] The encoder coordinate conversion unit is used to perform coordinate conversion on the distance between the current defect target and the labeling machine to obtain the encoder coordinates to be labeled;
[0044] The labeling judgment unit is used to obtain the current coordinates of the encoder and determine whether the encoder coordinates to be labeled are reached: if so, a labeling signal is sent to the labeling machine to control the labeling machine to label the current defective position and complete the defective labeling of the current pole piece; if not, continue monitoring and call the labeling judgment unit.
[0045] Furthermore, the current winding distance The calculation is expressed as follows:
[0046]
[0047] In the formula, Indicates the current swing roller position of the dynamic buffer mechanism; is the tape length corresponding to the reference position; is the preset linear rate of change;
[0048] Among them, the winding length corresponding to the reference position and preset linear rate of change The least squares linear fitting calibration is performed, and the specific calibration is expressed as follows:
[0049]
[0050]
[0051] In the formula, Indicates The collected swing roller positions, Indicates The winding length corresponding to the collected swing roller position;
[0052] and They represent the mean of all swing roller positions and winding lengths respectively, and their specific calculation is as follows:
[0053]
[0054]
[0055] In the formula, is the total number of swing roller position data collected.
[0056] Furthermore, the positioning calculation of the positioning calculation unit is to calculate the unique identifier in the defect tracking identification information according to the unique identifier in the defect tracking identification information. And the serial number of the corresponding valid defect The distance between the current defect target and the labeling machine is calculated, and the specific calculation is expressed as follows:
[0057]
[0058] In the formula, Indicates The first The distance between the defect and the labeling machine; Indicates the current winding distance; Indicates the total distance between the camera device and the entrance of the dynamic cache mechanism and the exit of the dynamic cache mechanism and the labeling machine; Indicates the height of the image area captured by the camera device; Indicates The effective defect set of each pole piece image; Indicates The first The center coordinates of the defect position of a valid defect;
[0059] The specific calculation of the coordinate transformation is expressed as follows:
[0060]
[0061] In the formula, Indicates The first The encoder coordinates to be labeled corresponding to the defect; Indicates the actual distance represented by one encoder rotation signal; Indicates The actual coordinates of the encoder when the pole piece image was taken.
[0062] A defect labeling system for a pole piece, comprising a transmission unit, and a camera device, a dynamic buffer mechanism, an encoder, a labeling machine, and a labeling control device electrically and / or communicatively connected to the camera device, the encoder, and the labeling machine, which are sequentially arranged on a transmission path of the transmission unit;
[0063] The transmission unit is used to transmit the electrode to the next electrode processing step after the electrode passes through the camera device, dynamic buffer mechanism, encoder and labeling machine in sequence;
[0064] The camera device includes a front camera and a back camera. The front camera is arranged on the front side of the pole piece, photographs the pole piece currently being transported, and sends the photographed image to the labeling control device; the back camera is arranged on the back side of the pole piece, synchronously photographs the pole piece currently being transported with the front camera, and sends the photographed image to the labeling control device;
[0065] The dynamic buffer mechanism is provided with a liftable swing roller group driven by a servo motor, which is used to dynamically adjust the swing roller position of the liftable swing roller group;
[0066] The encoder is used to drive the rotation of the pole piece in transport and output the current coordinates of the encoder to the labeling control device in real time;
[0067] The labeling machine is used to obtain the labeling signal of the labeling control device and perform bad labeling on the defective position of the electrode piece;
[0068] Wherein, the labeling control device is the labeling control device based on dynamic cache as mentioned above.
[0069] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS
[0070] Figure 1 A simplified structural diagram of a defect labeling system for a pole piece;
[0071] Figure 2 It is a simplified structural schematic diagram of the labeling control device based on dynamic cache according to the present invention;
[0072] Figure 3 A simplified flow chart of the labeling control method based on dynamic caching according to the present invention;
[0073] Figure 4 It is a simplified schematic diagram of the dynamic changes of the swing roller of the dynamic buffer mechanism described in the present invention. DETAILED DESCRIPTION
[0074] In order to solve the problem of the difficulty in positioning the labeling position on the dynamically changing cache mechanism in the prior art, the present invention obtains the identification mark and image of the current pole piece by marking the target of the pole piece image currently being transported. Subsequently, the defect detection algorithm is used to detect defects in the image of the current pole piece, and it is determined whether the defect detection result meets the confidence threshold; if not, the target marking is performed again; if it meets, the winding distance of the dynamic cache mechanism is calculated according to the preset linear change rate and the swing roller position of the dynamic cache mechanism, and the defect position of the defect detection result is bound to the identification mark to generate defect tracking identification information. Then, the current winding distance is positioned and calculated according to the defect tracking identification information, the distance between the current defect target and the labeling mechanism is obtained, and the coordinate conversion is performed to obtain the encoder coordinates to be labeled; finally, the current position coordinates of the encoder are monitored, and when the current position coordinates of the encoder reach the encoder coordinates to be labeled, the labeling mechanism is triggered to label the defect position.
[0075] Based on this, the winding distance is calculated by combining the preset linear change rate with the dynamically changing swing roller position of the cache mechanism, and the labeling position is positioned in combination with the identification mark of the pole piece, thereby ensuring efficient and accurate defect detection and labeling operations under the dynamic changes of production rhythm and cache mechanism swing roller adjustment, significantly improving the labeling position positioning accuracy under the dynamic cache mechanism.
[0076] Based on the above design, the present invention proposes a labeling control method based on dynamic cache, and based on this method, proposes a labeling control device based on dynamic cache.
[0077] Please also see Figure 1 , Figure 2 and Figure 3 , Figure 1 This is a simplified structural diagram of the defect labeling system for the electrode. Figure 2 It is a simplified structural diagram of the labeling control device based on dynamic cache according to the present invention. Figure 3 It is a simplified flowchart of the labeling control method based on dynamic caching described in the present invention.
[0078] The defect labeling system for the pole piece includes a transmission unit 100, and a camera device 101, a dynamic cache mechanism 102, an encoder 103, a labeling machine 104, which are sequentially arranged on the transmission path (pole piece) of the transmission unit, and a labeling control device 105 based on dynamic cache which is electrically and / or communicatively connected to the camera device, the encoder, and the labeling machine.
[0079] The transmission unit 100 is used to transmit the electrode to the next electrode processing step after it passes through a camera device, a dynamic cache mechanism, an encoder and a labeling machine in sequence; wherein, the transmission unit 100 includes a conveying roller, a tension sensor and a floating roller, the conveying roller is used to transmit the electrode along a conveying path; the tension sensor is used to monitor the tension change of the electrode during the conveying process; the floating roller is dynamically adjusted according to the current tension of the electrode to ensure that the electrode maintains a stable tension during the transmission process to prevent the surface of the electrode from folding, loosening or damage.
[0080] The camera device 101 includes a front camera and a back camera. The front camera is arranged on the front side of the pole piece, photographs the pole piece being transported, and sends the photographed image to the labeling control device 105 based on dynamic cache; the back camera is arranged on the back side of the pole piece, and photographs synchronously with the front camera, and sends the photographed image to the labeling control device 105 based on dynamic cache;
[0081] Among them, the present invention triggers the shooting operation by setting a time interval to ensure that the pole piece images taken each time do not overlap; in addition, in addition to shooting based on time intervals, shooting can also be triggered by monitoring the distance of encoder rotation to ensure the synchronization of image acquisition and actual pole piece position. Accordingly, the present invention does not specifically limit the selection of its shooting frequency.
[0082] The dynamic buffer mechanism 102 is provided with a liftable swing roller group driven by a servo motor, which is used to dynamically adjust the swing roller position of the liftable swing roller group to balance the conveying speed difference between the previous and next processes, ensure the stability of the tension of the pole piece during the transmission process, and thus prevent problems such as pole piece breakage or wrinkling caused by speed difference.
[0083] The encoder 103 is used to drive the rotation of the pole piece in transportation and output the current coordinates of the encoder to the labeling control device based on dynamic cache in real time, so as to monitor the actual distance of the current pole piece; wherein, the encoder 103 can be an absolute value encoder selected and installed at the entrance of the labeling machine to calculate the absolute position of the labeling area.
[0084] The labeling machine 104 is used to obtain the labeling signal of the labeling control device based on dynamic buffering, and perform poor labeling on the defective position of the electrode piece.
[0085] The labeling control device 105 based on dynamic caching includes a target marking unit 1, a defect detection unit 2, a defect position confidence judgment unit 3, a winding distance calculation unit 4A, a defect tracking binding unit 4B, a positioning calculation unit 5, an encoder coordinate conversion unit 6 and a labeling judgment unit 7.
[0086] The target marking unit 1 is used to execute step S1: target marking the image of the pole piece currently being transported, and obtain the image of the current pole piece and the corresponding identification mark.
[0087] Specifically, the current coordinates of the encoder at the same moment are obtained according to the synchronization signal; wherein, the synchronization signal is triggered when the shooting device shoots the pole piece image currently being transported, so as to ensure that while shooting each frame of the pole piece image, the encoder accurately records the current coordinates at that moment, and uses them as the initial position coordinates of the pole piece, thereby ensuring that the initial position coordinates of the pole piece are strictly corresponding to the pole piece image frame currently being transported; at the same time, the acquisition frequency of the image frame can be triggered by the time interval or the distance of the encoder rotation, so as to ensure that the pole piece distances captured by consecutive image frames do not overlap, and the present invention does not specifically limit the frequency selection.
[0088] Next, a unique identifier is generated and associated with the pole piece image currently being transported and the current coordinates of the encoder to obtain the current pole piece image and the corresponding identification mark, which is Pole image and corresponding identification mark The specific representation is as follows:
[0089]
[0090] In the formula, Indicates An image of a pole piece being transported; Indicates A unique identifier corresponding to a pole piece image, wherein the unique identifier may be generated by selectively combining a timestamp, a production line number, and / or an image hash value using a custom rule, and the present invention does not specifically limit the generation method of the unique identifier; No. The current coordinates of the encoder at the corresponding moment when each pole piece image is taken are recorded and output by the encoder in real time. The current coordinates of the encoder can be calculated based on the number of pulses and the pulse increment. The specific calculation method is determined according to the encoder type and is not described in detail in the present invention.
[0091] The present invention synchronously marks the pole piece image and the encoder coordinates in the current transmission, and generates a unique identifier for association, so as to ensure that the encoder coordinates corresponding to the current pole piece image can be queried using the unique identifier later.
[0092] The defect detection unit 2 is used to execute step S2: using a defect detection algorithm to perform defect detection on the image of the current pole piece to obtain a defect recognition result of the current pole piece image.
[0093] Specifically, the defect detection algorithm performs defect detection including the following steps:
[0094] Multi-scale feature extraction is performed on the image of the current pole piece to obtain defect features of pole pieces at several scales; wherein, the multi-scale feature extraction can be performed using a convolutional neural network (CNN) to capture local details and global semantic information on the pole piece surface; however, according to different production environments and precision requirements, the attention mechanism can be further combined with a convolutional neural network to achieve multi-scale feature extraction, such as Swin Tranformer, so the present invention does not specifically limit the means of multi-scale feature extraction.
[0095] Multi-scale feature fusion is performed on the defect features of several scale pole pieces to obtain fused defect features of several scale pole pieces; wherein, the multi-scale feature fusion can be performed using a feature pyramid network (FPN) to ensure the interactive fusion of semantic and position information between shallow and deep features; but due to different production environments and different positioning accuracy requirements, a progressive feature pyramid or other fusion networks can be further used to achieve multi-scale feature fusion, so the present invention does not specifically limit the means of multi-scale feature fusion.
[0096] Defect recognition is performed on the fused defect features of several scale pole pieces, and non-maximum suppression is used for filtering to remove overlapping defect detection frames to obtain the defect recognition result of the current pole piece image. The defect recognition result of a pole piece image is expressed as:
[0097]
[0098] In the formula, Indicates Defect recognition results of a pole piece image; Indicates The first The confidence level of the defect location; Indicates The first The center coordinates of the defect location; Indicates The total number of defects in each electrode image.
[0099] The defect position confidence judgment unit 3 is used to execute step S3: determine whether the defect recognition result of the current pole piece image meets a confidence threshold: if so, call the winding distance calculation unit 4A and the defect tracking binding unit 4B at the same time; if not, obtain the next pole piece image in transit and call the target marking unit 1.
[0100] Specifically, the specific judgment of the confidence threshold is expressed as follows:
[0101]
[0102] In the formula, Indicates The effective defect set of the pole piece image is used to represent the The defects in the pole piece image that meet the confidence threshold are specifically expressed as follows:
[0103]
[0104] In the formula, It represents the confidence threshold, which is 0.8 by default and can be adjusted according to the production line yield requirement, which is not specifically limited in the present invention.
[0105] It should be noted that although steps S4A and S4B will be executed when the defect recognition result of the current pole piece image meets the confidence threshold, the pole piece image transmitted by the camera device is continuously monitored, and the defect recognition result of each frame image is continuously updated. In other words, in the actual production process, defect detection and labeling operations are carried out in parallel. The system can monitor new pole piece images at the same time and perform continuous defect detection and calibration. There is no need to wait for each image to be fully processed before starting the next detection or labeling, ensuring timely response and labeling operations during the transmission of the pole piece.
[0106] The winding distance calculation unit 4A is used to execute step S4A: performing winding calculation according to a preset linear change rate and the swing roller position of the dynamic buffer mechanism to obtain the current winding distance.
[0107] Specifically, the current winding distance The calculation is expressed as follows:
[0108]
[0109] In the formula, Indicates the current swing roller position of the dynamic buffer mechanism, that is, the offset relative to the reference position. The current swing roller position of the dynamic buffer mechanism can be directly read through PLC or other control systems. Figure 4 , Figure 4 It is a simplified schematic diagram of the dynamic change of the swing roller of the dynamic buffer mechanism of the present invention; is the tape length corresponding to the reference position, which is a known constant; It is a preset linear rate of change, which is used to indicate the change in the length of the winding when the swing roller moves. The winding length corresponding to its reference position is and preset linear rate of change The least squares linear fitting calibration is performed, and the specific calibration is expressed as follows:
[0110]
[0111]
[0112] In the formula, Indicates The collected swing roller positions, Indicates The winding length corresponding to the collected swing roller position; and They represent the mean of all swing roller positions and winding lengths respectively, and their specific calculation is as follows:
[0113]
[0114]
[0115] in, is the total number of the collected swing roller position data, which is 3 by default in the present invention, respectively using the maximum, center and minimum positions of the swing roller of the dynamic buffer mechanism , and measure the corresponding tape length In addition, in order to improve the accuracy of the linear change rate, more swing roller positions and their corresponding winding lengths can be further collected to expand the data set to Group data pair , therefore the present invention does not specifically limit the size of its data set.
[0116] Accordingly, the present invention calculates the actual winding distance of the pole piece when the dynamic cache mechanism is adjusted according to the real-time position of the swing roller of the dynamic cache mechanism, that is, the swing roller offset, to ensure that the labeling position is dynamically updated with the displacement of the swing roller, avoiding the lag of the labeling distance, and thus improving the marking accuracy.
[0117] The defect tracking binding unit 4B is used to execute step S4B: bind the defect position of the current electrode with the corresponding identification mark to obtain defect tracking identification information.
[0118] Specifically, the defect tracking identification information is as follows:
[0119]
[0120] In the formula, Indicates defect tracking identification information; Indicates The effective defect set of each pole piece image; Indicates A unique identifier corresponding to each polar image; No. The current coordinates of the encoder at the corresponding moment when the pole piece image is taken.
[0121] The present invention binds the defect position with the unique identifier of the pole piece and the encoder coordinates to establish a mapping relationship between the pole piece defect and the physical position; ensuring that in subsequent processing, even if there are multiple pole piece images that need to be labeled within a time interval (such as image i, image i+1, image i+3, etc.), the defect position corresponding to each image can be accurately tracked through the unique identifier; especially when the dynamic cache mechanism adjusts the swing roller to cause the pole piece position to shift, the system can accurately calculate the real-time position compensation of each pole piece image based on the unique identifier, thereby ensuring accurate correction of the defect position and precise positioning of the labeling machine. Accordingly, the present invention ensures that even when defects in multiple pole piece images need to be labeled, the defects of each pole piece can be independently and accurately tracked and compensated through the unique identifier, avoiding labeling errors caused by position shifts.
[0122] The positioning calculation unit 5 is used to execute step S5: perform positioning calculation on the current winding distance according to the defect tracking identification information to obtain the distance between the current defect target and the labeling machine.
[0123] Specifically, according to the unique identifier in the defect tracking identification information And the serial number of the corresponding valid defect The distance between the current defect target and the labeling machine is calculated, and the specific calculation is expressed as follows:
[0124]
[0125] In the formula, Indicates The first The distance between a defect and the labeling machine is used to dynamically adjust the position of the labeling machine or control the labeling timing of the labeling machine; Indicates the current winding distance; represents the distance from the camera device to the entrance of the dynamic cache mechanism and the total distance from the exit of the dynamic cache mechanism to the labeling machine, which is a known parameter; Indicates the height of the image area captured by the camera device; Indicates The first The center coordinates of the defect position of a valid defect.
[0126] Accordingly, the present invention calculates the actual distance between each defect target and the labeling machine according to the winding distance of the current pole piece, the image height of the camera device and the position of the defect area, thereby ensuring the accurate match between each defect position and the actual labeling position.
[0127] The encoder coordinate conversion unit 6 is used to execute step S6: coordinate conversion of the distance between the current defect target and the labeling machine to obtain the encoder coordinates to be labeled.
[0128] Specifically, the specific calculation of the coordinate transformation is expressed as follows:
[0129]
[0130] In the formula, Indicates The first The encoder coordinates to be labeled corresponding to the defect; Indicates the actual distance represented by one encoder rotation signal, that is, the displacement of the encoder when it rotates once; Indicates The actual coordinates of the encoder when the pole piece image was taken.
[0131] The actual distance represented by the encoder rotating a signal is actually the rotation angle represented by the encoder through the pulse signal. Based on this, according to the known resolution of the encoder, that is, how many pulse signals are output per rotation of a certain angle, and the geometric parameters of the relevant mechanical parts (such as the circumference), the actual displacement corresponding to each pulse signal can be calculated, that is, .
[0132] Based on this, the present invention calculates the actual distance between the current defect target and the labeling machine, and converts the actual distance into the encoder coordinates to be labeled. By monitoring the rotation of the encoder, the labeling timing of the labeling machine can be dynamically adjusted to ensure accurate matching of the labeling position and the defect position.
[0133] The labeling judgment unit 7 is used to execute step S7: obtain the current coordinates of the encoder and determine whether the encoder coordinates to be labeled are reached: if so, send a labeling signal to the labeling machine to control the labeling machine to label the current defective position and complete the defective labeling of the current pole piece; if not, continue monitoring and call the labeling judgment unit 7.
[0134] Specifically, the logical expression for judging whether the current coordinates of the encoder reach the coordinates of the encoder to be labeled is as follows:
[0135]
[0136] In the formula, Indicates the current coordinates of the encoder. The monitoring frequency can be set through PLC or other control systems to monitor the coordinate changes of the encoder in real time.
[0137] Compared with the prior art, the present invention calculates the winding distance through a preset linear change rate and the current swing roller position, accurately compensates for the pole piece displacement caused by the adjustment of the dynamic buffer mechanism, avoids labeling lag, ensures that each defect can be labeled at the correct position, significantly improves the labeling accuracy, and thus solves the problem of difficulty in positioning the labeling position on the dynamically changing buffer mechanism in the prior art; at the same time, by combining the image height, winding distance and dynamic buffer position taken by the camera device, the distance between the current defect target and the labeling machine is accurately calculated, ensuring that each defect position can still be accurately labeled during the dynamic adjustment process; in addition, by converting the actual distance between the defect and the labeling machine into the encoder coordinates to be labeled, and combining the real-time rotation signal of the encoder, precise positioning in the physical coordinate system is achieved, significantly improving the labeling accuracy.
[0138] Based on the same inventive concept, the present application also provides an electronic device, which may be a terminal device such as a server, a desktop computing device or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). The device includes one or more processors and a memory, wherein the processor is used to execute a program to implement the labeling control method for dynamic caching of an embodiment of the present invention; and the memory is used to store a computer program executable by the processor.
[0139] Based on the same inventive concept, the present application also provides a computer-readable storage medium, corresponding to an embodiment of the aforementioned dynamic cache labeling control method, wherein the computer-readable storage medium stores a computer program thereon, and when the program is executed by a processor, the steps of the dynamic cache labeling control method recorded in any of the above embodiments are implemented.
[0140] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, tape disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.
[0141] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, and the present invention is also intended to include these modifications and modifications.
Claims
1. A labeling control method based on dynamic caching, characterized in that: The following steps are involved: S1. Mark the target of the electrode image currently being transported to obtain the image of the current electrode and the corresponding identification mark; S2, using a defect detection algorithm to perform defect detection on the image of the current pole piece to obtain a defect recognition result of the current pole piece image; S3, judging whether the defect recognition result of the current electrode image meets a confidence threshold: if so, executing step S4A and step S4B simultaneously; if not, obtaining the next electrode image being transported, and executing step S1; S4A, performing winding calculation according to the preset linear change rate and the swing roller position of the dynamic buffer mechanism to obtain the current winding distance; wherein the current winding distance The calculation is expressed as follows: In the formula, Indicates the current swing roller position of the dynamic buffer mechanism; is the tape length corresponding to the reference position; is the preset linear rate of change; Among them, the tape length corresponding to the reference position is and preset linear rate of change The least squares linear fitting calibration is performed, and the specific calibration is expressed as follows: In the formula, Indicates The collected swing roller positions, Indicates The winding length corresponding to the swing roller position collected; and They represent the mean of all swing roller positions and winding lengths respectively, and their specific calculation is as follows: In the formula, is the total number of swing roller position data collected; S4B, binding the defect position of the current electrode with the corresponding identification mark to obtain defect tracking identification information; S5. Position and calculate the current winding distance according to the defect tracking identification information to obtain the distance between the current defect target and the labeling machine; S6. Perform coordinate conversion on the distance between the current defect target and the labeling machine to obtain the encoder coordinates to be labeled; S7, obtain the current coordinates of the encoder, and determine whether it reaches the encoder coordinates to be labeled: if so, send a labeling signal to the labeling machine to control the labeling machine to label the current defective position and complete the defective labeling of the current pole piece; if not, continue monitoring and repeat step S7.
2. The labeling control method based on dynamic cache according to claim 1 is characterized in that: The positioning calculation in step S5 is as follows: And the serial number of the corresponding valid defect The distance between the current defect target and the labeling machine is calculated, and the specific calculation is expressed as follows: In the formula, Indicates The first The distance between the defect and the labeling machine; Indicates the current winding distance; Indicates the total distance between the camera device and the entrance of the dynamic cache mechanism and the exit of the dynamic cache mechanism and the labeling machine; Indicates the height of the image area captured by the camera device; Indicates The effective defect set of each pole piece image; Indicates The first The center coordinates of the defect position of a valid defect.
3. The labeling control method based on dynamic cache according to claim 2 is characterized in that: The specific calculation of the coordinate transformation is expressed as follows: In the formula, Indicates The first The encoder coordinates to be labeled corresponding to the defect; Indicates the actual distance represented by one encoder rotation signal; Indicates The actual coordinates of the encoder when the pole piece image was taken.
4. A labeling control device based on dynamic caching, characterized in that: It includes a target marking unit, a defect detection unit, a defect position confidence judgment unit, a winding distance calculation unit, a defect tracking binding unit, a positioning calculation unit, an encoder coordinate conversion unit and a labeling judgment unit; The target marking unit is used to mark the image of the pole piece currently being transported, and obtain the image of the current pole piece and the corresponding identification mark; The defect detection unit is used to perform defect detection on the image of the current pole piece using a defect detection algorithm to obtain a defect recognition result of the current pole piece image; The defect position confidence judgment unit is used to judge whether the defect recognition result of the current pole piece image meets a confidence threshold: if so, the winding distance calculation unit and the defect tracking binding unit are called at the same time; If not, then obtain the next image of the pole piece being transported, and call the target marking unit; The winding distance calculation unit is used to perform winding calculation according to the preset linear change rate and the swing roller position of the dynamic buffer mechanism to obtain the current winding distance; wherein the current winding distance The calculation is expressed as follows: In the formula, Indicates the current swing roller position of the dynamic buffer mechanism; is the tape length corresponding to the reference position; is the preset linear rate of change; Among them, the tape length corresponding to the reference position is and preset linear rate of change The least squares linear fitting calibration is performed, and the specific calibration is expressed as follows: In the formula, Indicates The collected swing roller positions, Indicates The winding length corresponding to the swing roller position collected; and They represent the mean of all swing roller positions and winding lengths respectively, and their specific calculation is as follows: In the formula, is the total number of swing roller position data collected; The defect tracking binding unit is used to bind the defect position of the current electrode with the corresponding identification mark to obtain defect tracking identification information; The positioning calculation unit is used to perform positioning calculation on the current winding distance according to the defect tracking identification information to obtain the distance between the current defect target and the labeling machine; The encoder coordinate conversion unit is used to perform coordinate conversion on the distance between the current defect target and the labeling machine to obtain the encoder coordinates to be labeled; The labeling judgment unit is used to obtain the current coordinates of the encoder and determine whether the encoder coordinates to be labeled are reached: if so, a labeling signal is sent to the labeling machine to control the labeling machine to label the current defective position and complete the defective labeling of the current pole piece; if not, continue monitoring and call the labeling judgment unit.
5. The labeling control device based on dynamic cache according to claim 4 is characterized in that: The positioning calculation unit calculates the positioning according to the unique identifier in the defect tracking identification information. And the serial number of the corresponding valid defect The distance between the current defect target and the labeling machine is calculated, and the specific calculation is expressed as follows: In the formula, Indicates The first The distance between the defect and the labeling machine; Indicates the current winding distance; Indicates the total distance between the camera device and the entrance of the dynamic cache mechanism and the exit of the dynamic cache mechanism and the labeling machine; Indicates the height of the image area captured by the camera device; Indicates The effective defect set of each pole piece image; Indicates The first The center coordinates of the defect position of a valid defect; The specific calculation of the coordinate transformation is expressed as follows: In the formula, Indicates The first The encoder coordinates to be labeled corresponding to the defect; Indicates the actual distance represented by one encoder rotation signal; Indicates The actual coordinates of the encoder when the pole piece image was taken.
6. A defect labeling system for a pole piece, characterized in that: It includes a transmission unit, and a camera device, a dynamic buffer mechanism, an encoder, a labeling machine, and a labeling control device that is electrically and / or communicatively connected to the camera device, the encoder, and the labeling machine. The transmission unit is used to transmit the electrode to the next electrode processing step after the electrode passes through the camera device, dynamic buffer mechanism, encoder and labeling machine in sequence; The camera device includes a front camera and a back camera. The front camera is arranged on the front side of the pole piece, photographs the pole piece currently being transported, and sends the photographed image to the labeling control device; the back camera is arranged on the back side of the pole piece, synchronously photographs the pole piece currently being transported with the front camera, and sends the photographed image to the labeling control device; The dynamic buffer mechanism is provided with a liftable swing roller group driven by a servo motor, which is used to dynamically adjust the swing roller position of the liftable swing roller group; The encoder is used to drive the rotation of the pole piece in transport and output the current coordinates of the encoder to the labeling control device in real time; The labeling machine is used to obtain the labeling signal of the labeling control device and perform bad labeling on the defective position of the electrode piece; Wherein, the labeling control device is a labeling control device based on dynamic cache as described in any one of claims 4-5 above.
7. An electronic device comprising: A memory, a processor, and a computer program stored in the memory and executable on the processor, wherein when the processor executes the computer program, a labeling control method based on dynamic caching as described in any one of claims 1 to 3 is implemented.
8. A computer-readable storage medium storing computer-executable instructions, characterized in that: When the computer executable instructions are executed by a processor, a labeling control method based on dynamic cache as described in any one of claims 1 to 3 is implemented.
Citation Information
Patent Citations
Real-time detection processing method and system for detects of lithium battery pole piece
CN112179910A
Lithium battery pole piece belt breakage prevention defect detection system and method
CN115436382A