Lithium battery pole piece burr detection device and method based on two-dimensional contourgraph
Technical Field
The invention relates to the field of lithium battery pole piece detection, in particular to a lithium battery pole piece burr detection device and method based on a two-dimensional contourgraph.
Background
The edge of the pole piece of the lithium battery is easy to generate burrs in slitting, and if the burrs are too large, the protective film between the positive pole piece and the negative pole piece is easy to puncture, so that the internal short circuit of the battery is caused, and potential safety hazards such as fire explosion and the like are caused.
The traditional burr detection of the lithium battery pole piece needs to cut the pole piece into small sections, and the spot check is carried out through a manual use measuring instrument, so that the spot check process is complex and long in time, but the labor intensity of manual measurement is high, and the result is easy to generate manual misjudgment.
Disclosure of Invention
The invention aims to solve the technical problem of providing a lithium battery pole piece burr detection device and method based on a two-dimensional contourgraph, which can quickly and accurately identify the size of burrs in real time, and has high burr detection efficiency and high detection precision.
In order to solve the technical problems, the technical scheme adopted by the invention for solving the technical problems is as follows:
a lithium battery pole piece burr detection method based on a two-dimensional contourgraph comprises the following steps:
step one, acquiring an image acquired by a pole piece to be detected as an image to be detected;
step two, in response to the fact that the image to be detected comprises two-dimensional contour data of the pole piece region to be detected and the background region, determining the position of an edge point between the pole piece region to be detected and the background region in the image to be detected;
and thirdly, responding to the determined edge point, and acquiring burr information used for representing the pole piece to be detected in the image to be detected in the pole piece region to be detected.
Further, in the first step, the image to be detected is acquired through a two-dimensional contourgraph.
Further, in the first step, the obtained image to be detected is an image of the pole piece to be detected in the constant-speed motion.
Further, in the second step, from the last one in the data of the background area, searching N points forward, and calculating the maximum value MAX _ Roller of the searched N points in the Z direction;
starting from the last one in the data of the background area, the search is continued until the condition is satisfied:
wherein Z (k-1) and Z (k) respectively represent Z coordinate values of a k-1 point and a k point, and Height represents the noise level between pole piece data points;
and when the condition is met, confirming that the k point is the edge point.
Further, in the third step, the step of obtaining the vertical burr height information of the pole piece to be measured includes:
(1) identifying n near edges from edge points1The number of the point for detecting the burr is k-n1~k;
(2) Number of points when participating in straight line fittingNumber n2I.e. the number of points involved in the fitting is k-n1-n2~k-n1;
(3) N to be involved in fitting a straight line2The points are evenly divided into 3 segments according to the sequence, a straight line is fitted by adopting a 3-segment method, and the average value averageZ of the first segment and the third segment in the Z direction and the X direction is obtained1、averageX1、averageZ3、averageX3Then the slope b of the fitted line is:
b=(averageZ3-averageZ1)/(averageX3-averageX1)
(4) taking an array A (a) formed by all points of the second section of points and the intercept of the Y axis1,a2,a3,...ai....an3) Wherein n is3Is the total number of second segment points, ai=zi-b*xi;
Sorting A, removing 1/3 large values and 1/3 small values, and calculating the average value a of all the remaining A numbers;
(5) calculating the size of the vertical burr of all the points to be solved according to the formula
hV(j)=(Z(j)-(a+b*X(j))/(1+b2)1/2
According to step (1), j ranges from k-n1K, finding out the maximum h when all points are calculatedvThe value is compared to a vertical spur threshold and when greater than the threshold, a vertical spur is detected.
Further, the number n of points participating in the straight line fitting2Is a multiple of 3, and n2The value range is 50-200.
Further, in the third step, the step of obtaining the height information of the horizontal burr of the pole piece to be tested includes:
(1) predicting the pole piece edge point of the next frame of data point by adopting a weighted average algorithm according to the pole piece edge point of the previous frame of data point of the pole piece to be detected, wherein the calculation method is
Wherein
Pole piece edge estimated values of an ith frame and an (i +1) th frame are respectively obtained, X (i +1) is a pole piece edge measured value of the (i +1) th frame, and beta is a prediction coefficient;
(2) calculating the size of the horizontal burr of all the points to be solved, wherein the formula is as follows:
hHand comparing with the horizontal direction burr threshold value, and when the threshold value is larger than the threshold value, indicating that the horizontal burr is detected.
Further, the value range of beta is 0-0.3, and the value formula of beta is as follows:
wherein σ is the error in noise of the pole piece point data point.
And further, a measurement coordinate system is established, the X axis of the measurement coordinate system is consistent with the X axis of the two-dimensional contourgraph, the Z axis is consistent with the main optical axis of the two-dimensional contourgraph, the Y axis is consistent with the advancing direction of the pole piece to be measured, and the three axes form a right-hand rectangular coordinate system.
The invention also comprises a lithium battery pole piece burr detection device based on the two-dimensional contourgraph, which comprises the two-dimensional contourgraph, a conveying roller and a processor, wherein the two-dimensional contourgraph is connected with the stable platform through a fixed support, the conveying roller drives a pole piece to be detected arranged on the conveying roller to move at a constant speed, the two-dimensional contourgraph is arranged right above the battery pole piece to be detected and guided by the conveying roller, and a scanning contour line of the two-dimensional contourgraph is used for detecting an edge signal on the pole piece to be detected and feeding back the detected two-dimensional contour signal at the edge of the pole piece to.
The invention has the beneficial effects that:
the method comprises the steps of acquiring an image acquired by a pole piece to be detected as an image to be detected; in response to the fact that the image to be detected comprises two-dimensional contour data of the pole piece region to be detected and the background region, determining the position of an edge point between the pole piece region to be detected and the background region in the image to be detected; and responding to the determined edge point, obtaining burr information used for representing the pole piece to be detected in the image to be detected in the pole piece region to be detected, and quickly and accurately identifying the size of the burr in real time by using the method.
Drawings
FIG. 1 is a schematic diagram of a lithium battery pole piece burr detection device and method based on a two-dimensional contourgraph.
FIG. 2 is a schematic diagram of two-dimensional profile data of a pole piece region to be measured and a background region according to the present invention.
FIG. 3 is a flow chart of the present invention.
The reference numbers in the figures illustrate: 1. fixing a bracket; 2. a two-dimensional profilometer; 3. scanning the contour line; 4. pole pieces to be tested; 5. a conveying roller; 6. a stable platform;
Detailed Description
The present invention is further described below in conjunction with the following figures and specific examples so that those skilled in the art may better understand the present invention and practice it, but the examples are not intended to limit the present invention.
Referring to fig. 1-3, a method for detecting burrs of a lithium battery pole piece based on a two-dimensional profiler comprises the following steps:
step one, acquiring an image acquired by a pole piece to be detected as an image to be detected;
step two, in response to the fact that the image to be detected comprises two-dimensional contour data of the pole piece region to be detected and the background region, determining the position of an edge point between the pole piece region to be detected and the background region in the image to be detected;
and thirdly, responding to the determined edge point, and acquiring burr information used for representing the pole piece to be detected in the image to be detected in the pole piece region to be detected.
The image to be detected is single-frame data acquired by a two-dimensional contourgraph, and burr information of the pole piece to be detected, namely burr information in the vertical direction and burr information in the horizontal direction, can be automatically extracted from the single-frame data in real time by adopting the method;
in the first step, the image to be detected is acquired through a two-dimensional contourgraph.
In the first step, the acquired image to be detected is an image of the pole piece to be detected in the constant-speed motion.
The pole piece to be detected obtains single-frame data in the process of uniform motion for detection without considering the influence of a platform for conveying the pole piece to be detected on the pole piece to be detected;
in the second step, N points are searched forward from the last one in the data of the background area, and the maximum value MAX _ Roller of the searched N points in the Z direction is calculated;
starting from the last one in the data of the background area, the search is continued until the condition is satisfied:
wherein Z (k-1) and Z (k) respectively represent Z coordinate values of a k-1 point and a k point, and Height represents the noise level between pole piece data points;
and when the condition is met, confirming that the k point is the edge point.
In the third step, the step of obtaining the vertical burr height information of the pole piece to be tested comprises the following steps:
(1) determining the range of the vertical burr to be detected, and confirming n near the edge according to the edge point1The number of the point for detecting the burr is k-n1~k;
(2) When the number of points participating in the straight line fitting is n2I.e. the number of points involved in the fitting is k-n1-n2~k-n1;
(3) N to be involved in fitting a straight line2The points are evenly divided into 3 sections according to the sequence, a straight line is fitted by adopting a 3-section method, and the average value a of the first section and the third section in the Z direction and the X direction is obtainedverageZ1、averageX1、averageZ3、averageX3Then the slope b of the fitted line is:
b=(averageZ3-averageZ1)/(averageX3-averageX1)
(4) taking the array A (a) formed by all points of the second segment point and the Y-axis intercept in consideration of noise1,a2,a3,...ai....an3) Wherein n is3Is the total number of second segment points, ai=zi-b*xi;
Sorting A, removing 1/3 large values and 1/3 small values, and calculating the average value a of all the remaining A numbers;
(5) calculating the size of the vertical burr of all the points to be solved according to the formula
hV(j)=(Z(j)-(a+b*X(j))/(1+b2)1/2
According to step (1), j ranges from k-n1K, finding out the maximum h when all points are calculatedvThe value is compared to a vertical spur threshold and when greater than the threshold, a vertical spur is detected.
The number n of points participating in straight line fitting2Is a multiple of 3, n, taking into account speed and accuracy2The value range is 50-200.
Step (4) an array A (a) formed by all points of the second section of points and the intercept of the Y axis is taken1,a2,a3,...ai....an3) The polar piece edge data and the background data with very small noise are used as the fitting starting data and the constraint data, so that the measurement precision is higher.
In the third step, the step of obtaining the height information of the horizontal burr of the pole piece to be tested comprises the following steps:
(1) predicting the pole piece edge point of the next frame of data point by adopting a weighted average algorithm according to the pole piece edge point of the previous frame of data point of the pole piece to be detected, wherein the calculation method is
Wherein
Pole piece edge estimated values of an ith frame and an (i +1) th frame are respectively obtained, X (i +1) is a pole piece edge measured value of the (i +1) th frame, and beta is a prediction coefficient;
(2) calculating the size of the horizontal burr of all the points to be solved, wherein the formula is as follows:
hHand comparing with the horizontal direction burr threshold value, and when the threshold value is larger than the threshold value, indicating that the horizontal burr is detected.
The value range of the beta is 0-0.3, and the value formula of the beta is as follows:
wherein σ is the error in noise of the pole piece point data point.
The method further comprises the step of establishing a measurement coordinate system, wherein the X axis of the measurement coordinate system is consistent with the X axis of the two-dimensional contourgraph, the Z axis of the measurement coordinate system is consistent with the main optical axis of the two-dimensional contourgraph, the Y axis of the measurement coordinate system is consistent with the advancing direction of the pole piece to be measured, and the three axes form a right-hand rectangular coordinate system.
The method can be used for measuring the pole piece to be measured in real time, has very high speed, and can output the frame position burr detection result in time for each acquired frame data; the detection precision is accurate and can reach micron level; and the burr sizes in the horizontal direction and the vertical direction can be detected at one time.
The invention also comprises a lithium battery pole piece burr detection device based on the two-dimensional contourgraph, which comprises a two-dimensional contourgraph 2, a conveying roller 5 and a processor, wherein the two-dimensional contourgraph 2 is connected with a stable platform 6 through a fixed support 1, the conveying roller drives a pole piece 4 to be detected arranged on the conveying roller to move at a constant speed, the two-dimensional contourgraph is arranged right above the battery pole piece 4 to be detected and guided by the conveying roller, and a scanning contour line 3 of the two-dimensional contourgraph is used for detecting edge signals on the pole piece to be detected and feeding back the detected two-dimensional contour signals at the edge of the pole piece to
The device has simple installation of measuring equipment, can simultaneously measure burrs in the horizontal direction and the vertical direction, can directly and automatically extract the edges of the lithium battery pole pieces through the two-dimensional profiler, directly obtains the two-dimensional profile signal of each frame of the pole piece to be measured, and obtains the edge image of the pole piece which is completely resolved by the processor, does not need to manually participate in setting various parameters, and ensures the detection precision and the detection speed, wherein the processor is a sharp acid agent or a PLC (programmable logic controller).
The above-mentioned embodiments are merely preferred embodiments for fully illustrating the present invention, and the scope of the present invention is not limited thereto. The equivalent substitution or change made by the technical personnel in the technical field on the basis of the invention is all within the protection scope of the invention. The protection scope of the invention is subject to the claims.