Disclosure of Invention
In order to solve the technical problem, the application provides a method for detecting cracking of a battery cell skirt edge, which comprises the following steps:
s100, obtaining a gray level image of the battery cell, and obtaining an initial positioning following space of a top sealing angular point of the battery cell;
s200, obtaining a fine positioning following space of a top sealing angular point of the battery core;
s300, identifying a battery cell skirt line segment close to the top seal angular point through a battery cell gray level image, and obtaining n point positions of the skirt line segment;
s400, obtaining a side straight line of the cell main body close to the skirt line segment;
s500, calculating a distance value D from each point on the skirt line segment to the main body side line one by one according to the distance from the point to the line;
s600, comparing the distance value D with a set value A, judging that the battery cell is qualified if the distance value D is less than or equal to A, and judging that the battery cell is unqualified if the distance value D is greater than A.
The method has the advantages of being good in interactivity, strong in anti-interference capability, stable in detection system, stable in machine vision image processing logic and high in detection efficiency.
Preferably, in step S100, the grayscale image of the battery cell is matched with a preset battery cell template, and is subjected to a spot positioning method or an angle finding positioning method, so as to obtain an initial positioning following space of the top sealing angle point of the battery cell.
Preferably, in step S300, an image edge gray difference is obtained by an image gray difference method, so as to obtain n points of a battery cell skirt line segment. And then accurately acquiring n point positions of the battery cell skirt edge by an image gray difference method.
Preferably, the visual inspection device is used for acquiring an image of the battery cell, and includes a frame body for bearing the battery cell for inspection, bar-shaped light sources symmetrically installed on the frame body and located on two sides of the skirt of the battery cell, and a backlight source irradiated at the bottom of the battery cell, wherein an image device is arranged on the battery cell opposite to the other side of the backlight source. And then utilize the combination of 0 angle parallel stripe light of two sets of bar light sources and the backlight of backlight to the mode of combination light is beaten electric core shirt rim and main part limit dark, and then is beaten the gap between electric core shirt rim and the electric core main part limit bright, acquires clear electric core main part profile.
Preferably, the imaging device comprises two cameras which are arranged at intervals along the extending direction of the battery tab.
Preferably, the image device further comprises a protective sleeve sleeved on the periphery of the camera.
Preferably, the frame body is provided with a detection assembly for detecting the electric core in place.
Preferably, the height adjusting device further comprises an adjusting assembly for adjusting the height of the shelf body; the adjusting assembly comprises a plurality of guide posts which are arranged with the frame body in a sliding manner and a fixing block for fixing the frame body and the guide posts; and an adjusting screw is arranged on any one guide post.
Preferably, the imaging device further comprises a calibration board for measuring the distance between the two cameras. The photos shot by the two cameras can be calculated through the calibration plate so as to be combined to form a complete battery cell image.
A cell image acquisition method based on the visual detection device comprises the following steps:
a100, closing two groups of strip-shaped light sources, turning on a backlight source and irradiating the backlight source to the bottom of the battery cell, and shooting the top of the battery cell by an image device to obtain a first image;
and A200, opening the two groups of strip-shaped light sources, opening the backlight source, shooting the top of the battery cell by the image equipment, and obtaining a second image. The product image is obtained by the cell image obtaining method, the standard deviation of the size range of the product is not more than 1 pixel, and therefore the stable positioning measurement function can be realized, and the size of the product can be accurately detected.
Compared with the prior art, the beneficial effects of this application are: this application is through obtaining electric core image, through n position and the fitting electric core side straight line that obtains the shirt rim line segment, realizes detecting the problem of judging whether there is the fracture in the shirt rim through the distance that detects shirt rim to electric core main part side, uses this method to improve and detects the accuracy, possesses that the interactivity is good, the interference killing feature is strong, detecting system is stable, the stable advantage of machine vision image processing logic, detection efficiency is high. Meanwhile, accurate and clear pictures can be acquired through the visual detection device and the battery cell image acquisition method, a stable positioning measurement function is realized, the cracking condition of the skirt edge of the battery cell can be accurately detected through the acquired images, the production quality of the battery cell is ensured, and the detection efficiency is improved.
Detailed Description
In the following description, numerous implementation details are set forth in order to provide a thorough understanding of the present invention. It should be understood, however, that these implementation details should not be used to limit the application. That is, in some embodiments of the present application, such practical details are not necessary. In addition, some conventional structures and components are shown in simplified schematic form in the drawings.
It should be noted that all the directional indications such as up, down, left, right, front and rear … … in the embodiment of the present application are only used to explain the relative positional relationship, movement, etc. between the components in a specific posture as shown in the drawings, and if the specific posture is changed, the directional indication is changed accordingly.
In addition, the descriptions related to "first", "second", etc. in this application are for descriptive purposes only, not specifically referring to the order or sequence, nor are they intended to limit the application, but merely to distinguish components or operations described in the same technical terms, and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In addition, technical solutions between various embodiments may be combined with each other, but must be realized by a person skilled in the art, and when the technical solutions are contradictory or cannot be realized, such a combination should not be considered to exist, and is not within the protection scope of the present application.
For further understanding of the invention, its features and effects, the following examples are given in conjunction with the accompanying drawings and the following detailed description:
in order to solve the above technical problem, this embodiment provides a method for detecting cracking of a battery cell skirt, as shown in fig. 1, including the following steps:
s100, obtaining a gray level image of the battery cell, and obtaining an initial positioning following space of a top sealing angular point of the battery cell;
the image equipment through the visual detection device acquires a cell gray image, as shown in fig. 3, the visual detection device utilizes two 0-angle parallel strip lights to combine backlight, darken the cell skirt and the main body edge in a combined light mode, further lighten the gap between the cell skirt and the main body edge of the cell, acquire a clear cell main body outline, match the cell gray image with a preset cell template, establish a reference position, and can also position the battery angular point through a spot tool or an angle finding tool, and further acquire a cell top seal angular point initial positioning following space. The initial positioning following space of the top sealing corner point of the battery cell is obtained, wherein due to the fact that the skirt edges of the battery cell are formed on the left side and the right side of the battery cell, cracking detection needs to be conducted on the skirt edges on the left side and the right side at the same time, the detection modes of the skirt edges on the left side and the right side are the same, and therefore the embodiment is described by taking the situation of detecting cracking of the skirt edges on the left side as an example.
S200, fitting the angular points through a least square method to obtain a fine positioning following space of the top seal angular points of the battery cell;
and fitting the angular points of the battery cell main body contour top seal by a least square method, and then accurately positioning the battery cell top seal left corner to obtain a following space for accurately positioning the battery cell top seal left corner.
S300, identifying a battery cell skirt line segment close to a top seal angular point through a battery cell gray level image, and obtaining n point positions of the battery cell side skirt line segment;
the method comprises the steps of obtaining image edge gray level difference through an image gray level difference method, identifying an electric core left side skirt edge line segment, finding n point positions with uniform electric core left side skirt edge line segment equidistance, wherein the number of the point positions is at least more than 3, the number of the point positions comprises two end points of the line segment and a middle point of the line segment, the specific point taking number can be set according to the size and the model of a product, and the more the number of the point positions, the more the detection result is accurate.
S400, fitting a straight line by a least square method to obtain a left/right side straight line of the cell main body;
and fitting a straight line to the outline of the battery cell main body by using a least square method, and obtaining the straight line of the left side edge of the battery cell main body.
S500, calculating the distance value D from each point on the left/right skirt line segment to the straight line on the left/right side of the main body one by one according to the distance from the point to the straight line;
and calculating the distance value D from each point position on the left skirt line segment to the straight line of the side edge of the battery cell main body according to the distance from the point to the straight line, and further obtaining a plurality of distance values D.
S600, comparing the distance value D with a set value A, judging that the battery cell is qualified if the distance value D is less than or equal to A, and judging that the battery cell is unqualified if the distance value D is greater than A.
The method comprises the steps of presetting a maximum value A in a system, comparing distance values D from each skirt point position to the side edge of a cell main body with a set value A, if one distance value D is larger than A, indicating that the skirt is cracked, judging that the cell is unqualified, picking out defective cells, and if each distance value D is smaller than or equal to A, judging that the cell is qualified. And then realize detecting the problem of judging whether the shirt rim has the fracture through detecting the distance of shirt rim to electric core main part side, use this method to improve and detect the accuracy, possess that the interactivity is good, the interference killing feature is strong, detecting system is stable, machine vision image processing logic is stable advantage, detection efficiency is high.
In order to accurately acquire an image of a cell, as shown in fig. 2 and fig. 5, the present embodiment provides a visual inspection apparatus for acquiring an image of a cell, including aframe body 10 for bearing a horizontal cell,strip light sources 30 symmetrically installed on theframe body 10 and located at two sides of a skirt of the cell, and abacklight 20 irradiated at the bottom of the cell, wherein animaging device 40 is disposed at the other side of the cell relative to thebacklight 20.
As shown in fig. 7, adetection assembly 11 for detecting that the battery cell is in place is disposed on theframe body 10, thedetection assembly 11 may be a correlation optical fiber sensor, and after the battery cell is placed on theframe body 10, thedetection assembly 11 detects that the battery cell is placed in place, and then theimaging device 40 starts to shoot the battery cell.
Specifically, to the great electric core of model size, a camera equipment is difficult to acquire the picture of whole electric core, and for this reason,image equipment 40 includes two cameras that set up along the extending direction interval of battery tab, and the interval of two cameras is 100mm, andimage equipment 40 still includes the calibration board that is used for measuring two camera distances, can calculate the photo that two cameras were taken out and then make up and form complete electric core image through the calibration board. In order to protect the lens of the camera, aprotective sleeve 41 is sleeved on the camera, and the lens is prevented from being damaged due to collision.
Further, the distance between the two cameras and the upper surface of the battery core is 650mm, and the distance between the two groups of bar-shapedlight sources 30 is 200 mm. The distance ofbacklight 20 and electric core bottom is 50mm, and then utilize the combination in a poor light of 0 angle parallel strip light of two sets ofbar light sources 30 and backlight ofbacklight 20 to the mode of combination light is beaten electric core shirt rim and main part limit dark, and then is beaten the gap between electric core shirt rim and the electric core main part limit and is bright, acquires clear electric core main part profile, through setting up above distance parameter, realizes that camera field of vision scope is 156mm 117mm, and image theory precision is 0.028mm/pixel, and then realizes accurate location and detection function. The method comprises the following steps of (1) according to the size of a battery cell which is compatible with the requirement provided by a client, the maximum size of the battery cell length is 180mm, the short side of the visual field of a selected 2000 ten thousand cameras is 117mm, the two cameras are used in a matching way, and the single-pixel precision can be obtained through calculation according to the long side of the visual field and the resolution of the cameras: 117/3840-0.028 mm/pixel, meeting the test requirements.
Wherein, to different electric core models, different electric core heights need to be selected, for this reason, as shown in fig. 6, be provided with adjustingpart 12 on thesupport body 10, adjustingpart 12 includes fourguide posts 121 that slide to set up withsupport body 10, and the fixedblock 122 that is used for fixedsupport body 10 and guidepost 121, guidepost 121 andsupport body 10 pass throughlinear bearing 124 and connect, and then supportbody 10 and guidepost 121 can slide the setting relatively, realize reducing the friction betweenguide post 121 andsupport body 10 throughlinear bearing 124. An adjustingscrew 123 and aguide sleeve 125 are arranged on any oneguide column 121, and theguide sleeve 125 plays a guiding role. The fixedblock 122 sets up on two of them guideposts 121, when adjusting thesupport body 10, loosens the bolt on the fixedblock 122 earlier, through adjusting the adjustingscrew 123 on one of them guidepost 121, and then supportbody 10 and guidepost 121 relative slip realize altitude mixture control, and after the adjustment was accomplished, realize fixedblock 122fixed support body 10 and guidepost 121 through screwing up the bolt, realize carrying out altitude mixture control to the support body.
In order to achieve the purpose of obtaining a clear cell image, this embodiment further provides a cell image obtaining method, where the cell image obtaining method is based on the foregoing visual detection apparatus, and includes the following steps:
a100, turning off two groups of strip-shapedlight sources 30, turning on abacklight source 20 and irradiating the bottom of the battery cell, and shooting the top of the battery cell by animage device 40 to obtain a first image;
turning on thebacklight 20 and turning off the two sets ofbar light sources 30, thebacklight 20 irradiates the bottom of the electrical core, and theimaging device 40 shoots the top of the electrical core to obtain a first image, as shown in fig. 4, the first image can be processed according to a least square method through the first image, so that the length and width of the battery and the tab margin can be calculated.
A200, opening two groups ofstrip light sources 30, opening abacklight source 20, shooting the top of the battery cell by animage device 40, obtaining a second image, and detecting the cracking condition of the battery cell skirt by the battery cell skirt cracking detection method according to the second image to ensure accurate detection.
By using the visual detection device and the battery cell image acquisition method, a lighting test is performed in a laboratory, and the acquired picture is subjected to visual software processing, wherein the test result is as follows:
TABLE 1
As can be seen from table 1 above, in the product reference positioning condition under the electrical core image acquisition method, the standard deviation of the size data of number 1 is 0.0161, and the range is 0.067; the standard deviation of the size data of the serial number 2 is 0.0257, and the range is 0.118, so that the product image obtained by the visual detection device and the cell image obtaining method can be seen, the range and the standard deviation of the product size do not exceed 1 pixel, a stable positioning measurement function can be further realized, and the obtained image can accurately detect the size of the product.
In summary, in one or more embodiments of the present application, the present application implements obtaining n point locations of the skirt line segment and fitting a cell side straight line by processing the cell image, and implements detecting and determining whether the skirt cracks by detecting a distance from the skirt to a cell main body side. Meanwhile, accurate and clear pictures can be acquired through the visual detection device and the battery cell image acquisition method, a stable positioning measurement function is realized, the cracking condition of the skirt edge of the battery cell can be accurately detected through the acquired images, the production quality of the battery cell is ensured, and the detection efficiency is improved.
The above-described embodiments do not limit the scope of the present invention. Any modification, equivalent replacement, and improvement made within the spirit and principle of the above-described embodiments should be included in the protection scope of the technical solution.