Battery pre-welding detection method, device and system

Through the battery pre-welding detection method, the brightness and depth maps are used to determine the gap width and step height, which solves the problem of burning during battery welding, improves the welding quality and detection efficiency, and reduces the cost.

CN118067624BActive Publication Date: 2024-08-23CONTEMPORARY AMPEREX TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410472521.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-19
Publication Date
2024-08-23
Estimated Expiration
2044-04-19

AI Technical Summary

Technical Problem

During the battery welding process, the assembly gap between the top cover and the casing is too large, causing the laser to penetrate and burn the battery. The existing manual inspection efficiency is low and the cost is high.

Method used

Using the battery pre-welding detection method, the target detection area is determined by obtaining the brightness map and depth map of multiple image collection positions of each gap, and the detection is performed based on the depth information fitting curve to determine the gap width and step height, so as to facilitate the welding process. Take measures beforehand to reduce the chance of burn damage.

Benefits of technology

It improves the welding quality, reduces the probability of battery burnout and production cost, and improves the detection efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118067624B
    Figure CN118067624B
Patent Text Reader

Abstract

The present application relates to a battery pre-welding detection method, device and system. The method comprises: before welding the battery top cover and the battery shell, obtaining a brightness map and a depth map corresponding to a plurality of image acquisition positions of each gap; for each image acquisition position of each gap, determining a target detection area according to the brightness map, and determining a target fitting curve according to a preset detection position and the depth information in the target detection area in the depth map, wherein the target fitting curve comprises at least one of a surface curve and a gradient change curve; detecting the target fitting curve according to the preset detection position, and determining the detection result corresponding to the image acquisition position; determining the target detection result of the gap according to the detection results corresponding to the plurality of image acquisition positions. The use of the present application can reduce the probability of battery burnout and improve welding quality.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery technology, and in particular to a battery pre-welding detection method, device and system. Background Art

[0002] With the development of new energy technology, batteries have become an indispensable product in people's work and life. Batteries have many forms, such as square shell batteries, cylindrical batteries, button batteries, etc.

[0003] In the manufacturing process of square shell batteries, using laser to weld the top cover and the shell is a very important process. At present, the assembly gap between the top cover and the shell is often too large, and part of the laser penetrates the gap and irradiates into the battery, burning the battery. Summary of the invention

[0004] Based on the above problems, the present application provides a battery pre-welding detection method, device and system, which can reduce the probability of battery burning, improve welding quality, and thereby improve battery quality and reduce production costs.

[0005] In a first aspect, the present application provides a battery pre-welding detection method, the method comprising: before welding the battery top cover and the battery shell, obtaining a brightness map and a depth map corresponding to multiple image acquisition positions of each gap; for each image acquisition position of each gap, determining a target detection area according to the brightness map, and determining a target fitting curve according to a preset detection position and the depth information within the target detection area in the depth map, wherein the target fitting curve includes at least one of a surface curve and a gradient change curve; detecting the target fitting curve according to the preset detection position to determine the detection result corresponding to the image acquisition position; determining the target detection result of the gap according to the detection results corresponding to the multiple image acquisition positions, wherein the target detection result characterizes the assembly condition of the battery top cover and the battery shell.

[0006] In the technical solution of the embodiment of the present application, before the battery top cover and the battery shell are welded, the battery gap width, the step height between the battery top cover and the battery shell, the step height between the battery shell and the welding strip, etc. are detected. In this way, when the gap width and step height do not meet the welding requirements, corresponding measures can be taken to reduce the probability of battery burning, improve welding quality, and then improve battery quality and reduce production costs. In addition, different target fitting curves are determined according to different preset detection positions, which can improve detection accuracy and provide a basis for improving welding quality.

[0007] In some embodiments, the target fitting curve is determined according to the preset detection position and the depth information in the target detection area in the depth map, including: when the preset detection position is a line intersection position or a line cut position, the depth information in the target detection area in the depth map is fitted to obtain a surface curve. In the technical solution of the embodiment of the present application, the surface curve is determined according to the preset detection position being a line intersection position or a line cut position, and the side profile of the battery is provided for subsequent detection, so as to obtain the detection result more quickly and accurately.

[0008] In some embodiments, the target fitting curve is detected according to a preset detection position to determine the detection result corresponding to the image acquisition position, including: when the preset detection position is a line intersection position, the top cover fitting curve, the shell fitting curve and the gap side fitting curve are determined according to the preset fitting range, the depth of the probe and the surface curve; the first intersection is determined according to the top cover fitting curve and the gap side fitting curve, and the second intersection is determined according to the shell fitting curve and the gap side fitting curve; the gap width at the image acquisition position is determined according to the distance between the first intersection and the second intersection. In the technical solution of the embodiment of the present application, by fitting the intersection of the top cover and the shell with the gap side to detect the gap width, a more accurate detection result can be obtained, which provides a basis for improving welding quality and reducing the probability of burning batteries.

[0009] In some embodiments, the target fitting curve is detected according to a preset detection position to determine the detection result corresponding to the image acquisition position, including: when the preset detection position is a cut-off position, a seam height threshold line is determined, and the gap width at the image acquisition position is determined according to the intersection of the seam height threshold line and the surface curve. In the technical solution of the embodiment of the present application, the seam height threshold line can be used to quickly determine the intersection point, and then measure the gap width. Compared with the line intersection position in the above embodiment, there is no need to perform a large amount of fitting processing, which can shorten the detection time and improve the detection efficiency.

[0010] In some embodiments, the target fitting curve is determined according to the preset detection position and the depth information in the target detection area in the depth map, including: when the preset detection position is a gradient position, the gradient change of the depth information in the target detection area in the depth map is calculated to obtain a gradient change curve. In the technical solution of the embodiment of the present application, the gradient change curve is obtained by performing gradient calculation, so that the gap position can be determined more accurately, thereby obtaining a more accurate detection result.

[0011] In some embodiments, the target fitting curve is detected according to a preset detection position to determine the detection result corresponding to the image acquisition position, including: determining the maximum gradient position of the top cover area and the maximum gradient position of the shell area according to the gradient change curve; determining the gap width of the image acquisition position according to the distance between the maximum gradient position of the top cover area and the maximum gradient position of the shell area. In the technical solution of the embodiment of the present application, the gap position is determined by the position where the depth information changes the most, so that a more accurate gap width can be obtained.

[0012] In some embodiments, determining the target detection area according to the brightness map includes: determining the target detection area in the brightness map according to a preset detection interval and detection quantity. In the technical solution of the embodiment of the present application, the target detection area is determined by using a caliper, a locator, and a detection interval and a detection quantity, which is relatively simple and quick, and does not require model training.

[0013] In some embodiments, the brightness map and depth map corresponding to multiple image acquisition positions of each gap are obtained, including: for each gap, controlling the battery clamp of the battery pre-welding detection system to adjust the battery position; controlling the image acquisition mechanism of the battery pre-welding detection system to perform image acquisition at each image acquisition position to obtain the brightness map and depth map corresponding to the multiple image acquisition positions. In the technical solution of the embodiment of the present application, the control device, the battery clamp and the image acquisition mechanism cooperate with each other to perform image acquisition to obtain the image required for battery detection. Compared with manual detection, it is not only efficient, but also has more detection points and higher detection accuracy.

[0014] In a second aspect, the present application also provides a battery pre-welding detection device, the device comprising:

[0015] An image acquisition module, used to obtain brightness images and depth images corresponding to multiple image acquisition positions of each gap before welding the battery top cover and the battery shell;

[0016] A first detection module is used to determine, for each image acquisition position of each gap, a target detection area according to the brightness map, and determine a target fitting curve according to a preset detection position and depth information in the target detection area in the depth map, detect the target fitting curve according to the preset detection position, and determine a detection result corresponding to the image acquisition position, wherein the target fitting curve includes at least one of a surface curve and a gradient change curve;

[0017] The second detection module is used to determine a target detection result of the gap according to the detection results corresponding to the multiple image acquisition positions, wherein the target detection result represents the assembly condition of the battery top cover and the battery shell.

[0018] In a third aspect, the present application also provides a battery pre-welding detection system. The battery pre-welding detection system includes a battery clamp, an image acquisition mechanism, and a control device; the control device is respectively connected to the battery clamp and the image acquisition mechanism for communication;

[0019] A battery clamp, used to adjust the battery position under the control of a control device;

[0020] An image acquisition mechanism, used to acquire images under the control of a control device, and obtain brightness images and depth images corresponding to a plurality of image acquisition positions of each slit;

[0021] The control device is used to determine the target detection result of each gap according to the brightness map and the depth map, wherein the target detection result represents the assembly condition of the battery top cover and the battery shell.

[0022] In the technical solution of the embodiment of the present application, the battery is inspected before welding by controlling the cooperation between the device, the battery clamp and the image acquisition mechanism. On the one hand, compared with manual inspection, it is more efficient, has more inspection points and more accurate inspection results. On the other hand, the welding quality can be improved according to the inspection results, and the probability of damaging the battery can be reduced, thereby improving the battery quality and reducing production costs.

[0023] In some embodiments, the image acquisition mechanism includes a drive structure, an image acquisition device and a gantry structure; the drive structure and the image acquisition device are arranged on the gantry structure; the drive structure and the image acquisition device are respectively connected to the control device for communication; the drive structure is used to drive the image acquisition device to move along a first direction on the gantry structure, or drive the image acquisition device to rotate around a second direction under the control of the control device; the image acquisition device is used to perform image acquisition under the control of the control device. In the technical solution of the embodiment of the present application, the drive structure and the image acquisition device are mounted above the battery using a gantry structure, and the drive structure and the image acquisition device operate under the control of the control device to realize automatic image acquisition, which provides a basis for subsequent detection, and the automatic acquisition also improves the detection efficiency.

[0024] In a fourth aspect, the present application further provides a computer device, comprising a memory and a processor, wherein the memory stores a computer program, and the processor implements any one of the methods in the first aspect when executing the computer program.

[0025] In a fifth aspect, the present application further provides a computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements any of the methods described in the first aspect.

[0026] In a sixth aspect, the present application further provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods in the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0027] Various other advantages and benefits will become apparent to those of ordinary skill in the art by reading the detailed description of the optional embodiments below. The accompanying drawings are only used for the purpose of illustrating the optional embodiments and are not to be considered as limiting the present application. Moreover, the same reference numerals are used throughout the drawings to represent the same components. In the drawings:

[0028] Figure 1a The application environment of the battery pre-welding detection method according to an embodiment of the present application;

[0029] Figure 1b This is a structural schematic diagram of a battery pre-welding detection system according to an embodiment of the present application;

[0030] Figure 1c This is a structural schematic diagram of a battery pre-welding detection system according to an embodiment of the present application;

[0031] Figure 2 It is a flow chart of a battery pre-welding detection method according to an embodiment of the present application;

[0032] Figure 3 It is a schematic flow chart of a step of detecting a target fitting curve according to a preset detection position according to an embodiment of the present application;

[0033] Figure 4a It is one of the schematic diagrams of the fitting range of an embodiment of the present application;

[0034] Figure 4b This is a second schematic diagram of the fitting range of an embodiment of the present application;

[0035] Figure 4c This is one of the schematic diagrams of the exploration depth of an embodiment of the present application;

[0036] Figure 4d This is the second schematic diagram of the exploration depth of an embodiment of the present application;

[0037] Figure 4e is a schematic diagram of line intersection positions according to an embodiment of the present application;

[0038] Figure 4f is one of the schematic diagrams of a user interface of an embodiment of the present application;

[0039] Figure 4g This is a second schematic diagram of a user interface of an embodiment of the present application;

[0040] Figure 5 It is a schematic flow chart of a step of detecting a target fitting curve according to a preset detection position according to an embodiment of the present application;

[0041] Figure 6ais one of the schematic diagrams of the maximum gradient position of an embodiment of the present application;

[0042] Figure 6b This is a second schematic diagram of the maximum gradient position of an embodiment of the present application;

[0043] Figure 7a is one of the schematic diagrams of a caliper according to an embodiment of the present application;

[0044] Figure 7b is a second schematic diagram of a caliper according to an embodiment of the present application;

[0045] Figure 7c This is a third schematic diagram of a caliper according to an embodiment of the present application;

[0046] Figure 7d This is a fourth schematic diagram of a caliper according to an embodiment of the present application;

[0047] Figure 7e is a schematic diagram of a dotted line caliper according to an embodiment of the present application;

[0048] Figure 7f is a schematic diagram of a target detection area according to an embodiment of the present application;

[0049] Figure 8 is a flowchart of an image acquisition step in an embodiment of the present application;

[0050] Fig. 9 It is a structural block diagram of a battery pre-welding detection device according to an embodiment of the present application;

[0051] Fig.10 is a structural schematic diagram of an image acquisition mechanism according to an embodiment of the present application;

[0052] Fig.11 It is a diagram of the internal structure of a computer device according to an embodiment of the present application. DETAILED DESCRIPTION

[0053] The following embodiments of the technical solution of the present application are described in detail in conjunction with the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application, and are therefore only used as examples, and cannot be used to limit the scope of protection of the present application.

[0054] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by technicians in the technical field to which this application belongs; the terms used herein are only for the purpose of describing specific embodiments and are not intended to limit this application; the terms "including" and "having" in the specification and claims of this application and the above-mentioned figure descriptions and any variations thereof are intended to cover non-exclusive inclusions.

[0055] In the description of the embodiments of the present application, the technical terms "first", "second", etc. are only used to distinguish different objects, and cannot be understood as indicating or implying relative importance or implicitly indicating the number, specific order or primary and secondary relationship of the indicated technical features. In the description of the embodiments of the present application, the meaning of "multiple" is more than two, unless otherwise clearly and specifically defined.

[0056] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0057] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of the associated objects, indicating that there may be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article generally indicates that the associated objects before and after are in an "or" relationship.

[0058] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installed", "connected", "connected", "fixed" and the like should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, and it can be the internal connection of two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to the specific circumstances.

[0059] With the development of new energy technology, batteries have become an indispensable product in people's work and life. Batteries come in many forms, such as square shell batteries, cylindrical batteries, button batteries, etc. In the manufacturing process of square shell batteries, using laser to weld the top cover and the shell is a very important process. At present, there is often a problem that the assembly gap between the top cover and the shell is too large, and part of the laser passes through the gap to irradiate the inside of the battery, burning the battery.

[0060] For the above problems, the main method is to screen out the burned batteries through manual inspection after welding. However, the efficiency of manual inspection is low. About 10EA batteries can be sampled every two hours, and there are relatively few gap inspection points on each EA battery. In addition, the battery has been burned, resulting in high production costs. The embodiment of the present application has made improvements on this: before the battery top cover and the battery shell are welded, the gap width of the battery, the step height between the battery top cover and the battery shell, and the step height between the battery shell and the welding strip are inspected. In this way, when the gap width and step height do not meet the welding requirements, corresponding measures can be taken to reduce the probability of battery burning, improve welding quality, and then improve battery quality and reduce production costs.

[0061] The battery pre-welding detection method provided in the embodiment of the present application can be applied to Figure 1a In the application environment shown. The application environment may include a battery pre-welding detection system 10, which may include a battery clamp 11, an image acquisition mechanism 12 and a control device 13, wherein the control device 13 is respectively connected to the battery clamp 11 and the image acquisition mechanism 12 for communication. Figure 1b and Figure 1c As shown, the image acquisition mechanism 12 may include a driving mechanism 121 and an image acquisition device 122, etc. The driving mechanism 121 may drive the image acquisition device 122 to move or rotate, and the image acquisition device 122 may acquire a brightness image and a depth image of the battery. The image acquisition device 122 may use a three-dimensional camera including a CCD (Charge Coupled Device, semiconductor photosensitive element). The control device 13 may include but is not limited to a personal computer, a laptop computer, a smart phone, a tablet computer, and a PLC (Programmable Logic Controller, programmable logic control device), etc.

[0062] According to some embodiments of the present application, referring to Figure 2 , provides a battery pre-welding detection method, which is applied to Figure 1a Taking the control device in as an example, the following steps may be included:

[0063] Step 201, before welding the battery top cover and the battery shell, obtain brightness images and depth images corresponding to multiple image acquisition positions of each gap.

[0064] The brightness map contains grayscale information, which can be used to determine the gap position and step position, etc. The depth map contains depth information, which can be used to determine the gap width and step height, etc. The brightness map can be a png image, and the depth map can be a tif image containing the z-axis height.

[0065] Before welding the battery top cover and the battery shell, for each gap, the control device can control the image acquisition device to acquire images at multiple image acquisition positions, and then obtain the brightness map and depth map corresponding to each image acquisition position from the image acquisition device.

[0066] For example, for each gap, an image acquisition position is set at every 0.1 mm interval. Taking the blue battery as an example, 2000 image acquisition positions can be set for one long side. It should be noted that the image acquisition positions are not limited to the intervals described above and can be set according to actual conditions.

[0067] Step 202, for each image acquisition position of each gap, determine the target detection area according to the brightness map, and determine the target fitting curve according to the preset detection position and the depth information in the target detection area in the depth map.

[0068] For each image acquisition position of each gap, the control device first determines the target detection area according to the grayscale information contained in the brightness map. For example, the brightness map is input into a pre-trained region recognition model, the region recognition model performs region recognition processing according to the grayscale information, and outputs the target detection area in the brightness map.

[0069] The control device maps the target detection area in the brightness map to the depth map to obtain the target detection area in the depth map; then, extracts the depth information in the target detection area, determines the gap position according to the extracted depth information, and detects the gap width of the gap position according to the preset detection logic to obtain the gap width corresponding to the image acquisition position. And / or, determines the step position according to the extracted depth information, and detects the step height of the step position according to the preset detection logic to obtain the step height corresponding to the image acquisition position.

[0070] In one embodiment, a target fitting curve is determined according to a preset detection position and depth information in a target detection area in a depth map. The target fitting curve includes at least one of a surface curve and a gradient change curve. The surface curve includes curves of multiple surfaces including the upper surface of the battery top cover, the side and bottom surfaces of the gap, the upper surface of the battery shell, and the upper surface of the welding strip, reflecting the side profile of the battery.

[0071] The control device may store a plurality of pre-determined detection positions, wherein different pre-determined detection positions correspond to different target fitting curves. For example, pre-determined detection position A corresponds to a surface curve, and pre-determined detection position B corresponds to a gradient change curve.

[0072] In practical applications, the preset detection position can be first obtained through the user interface, and then the depth information in the target detection area is extracted from the depth map, and then the depth information in the target detection area is processed to obtain the target fitting curve. For example, if the preset detection position A is obtained through the user interface, the depth information in the target detection area is extracted from the depth map, and the depth information in the target detection area is processed to obtain the surface curve; if the preset detection position B is obtained through the user interface, the depth information in the target detection area is extracted from the depth map, and the depth information in the target detection area is processed to obtain the gradient change curve.

[0073] The above process of obtaining the preset detection position through the user interface may include: setting a drop-down menu in the user interface, and determining the preset detection position according to the user's selection operation on the drop-down menu. For example, if the user selects the preset detection position A in the drop-down menu, the preset detection position A is obtained; if the user selects the preset detection position B in the drop-down menu, the preset detection position B is obtained.

[0074] It should be noted that the method for obtaining the preset detection position is not limited to the above description and can be set according to actual conditions.

[0075] The process of determining the target fitting curve according to the depth information in the target detection area may include: acquiring a detection mode through a user interface, and processing the depth information in the target detection area using the acquired detection mode. The detection mode may include an all-line mode and an average-line mode.

[0076] The above-mentioned method of obtaining the detection mode through the user interface may refer to the method of obtaining the preset detection position.

[0077] All the above line modes eliminate part of the depth information and process the remaining depth information to obtain the target fitting curve; wherein, the eliminated part of the depth information may be the elimination of special information, such as the gap width of 0, the maximum value, the minimum value, etc., or it may be eliminated in proportion.

[0078] The above average line mode is based on first counting the cross-section lines of each depth information and then averaging them to obtain the target fitting curve.

[0079] Step 203: Detect the target fitting curve according to the preset detection position to determine the detection result corresponding to the image acquisition position.

[0080] The preset detection position is used to indicate the position of the gap width or step height to be measured.

[0081] After obtaining the preset detection position, measurement is performed on the target fitting curve according to the predicted detection position to obtain the detection result corresponding to the image acquisition position.

[0082] For example, if the preset detection position indicates that the position of the gap width to be measured is the middle of the gap, the middle of the gap is found in the surface curve, and the width of the middle of the gap is measured to obtain the gap width corresponding to the image acquisition position.

[0083] Step 204, determining the target detection result of the gap according to the detection results corresponding to the multiple image acquisition positions.

[0084] The target detection result characterizes the assembly condition of the battery top cover and the battery shell, and the target detection result includes at least one of the gap width between the battery top cover and the battery shell, the first height difference between the battery top cover and the battery shell, and the second height difference between the battery shell and the welding strip. The welding strip is used to apply pressure on the outside of the battery shell, thereby pressing the battery shell toward the battery top cover and reducing the gap width of the gap.

[0085] After obtaining the detection results of multiple image acquisition positions, the detection results of multiple image acquisition positions can be processed to determine the gap width of the gap, the first height difference between the battery top cover and the battery shell near the gap, and the second height difference between the battery shell and the welding strip.

[0086] The above data processing may include: removing abnormal data; then, maximizing the remaining data and taking the maximum value as the target detection result of the gap; or averaging the remaining data and taking the average value as the target detection result of the gap. For example, removing abnormal gap widths, determining the maximum value of the remaining gap widths as the gap width of the gap; or removing abnormal height differences, averaging the remaining height differences, and determining the average height difference as the first height difference between the battery top cover and the battery shell near the gap.

[0087] It should be noted that data processing is not limited to the above description and can be selected according to actual conditions.

[0088] In the above embodiment, before welding the battery top cover and the battery shell, the brightness map and depth map corresponding to the multiple image acquisition positions of each gap are obtained; for each image acquisition position of each gap, the target detection area is determined according to the brightness map, and the target detection area is detected according to the depth map to obtain the detection result corresponding to the image acquisition position; according to the detection results corresponding to the multiple image acquisition positions, the target detection result of the gap is determined. In the technical scheme of the embodiment of the present application, before welding the battery top cover and the battery shell, the gap width of the battery, the step height between the battery top cover and the battery shell, and the step height between the battery shell and the welding strip are detected. In this way, when the gap width and step height do not meet the welding requirements, corresponding measures can be taken to reduce the probability of battery burning, improve welding quality, and then improve battery quality and reduce production costs. In addition, different target fitting curves are determined according to different preset detection positions, which can improve detection accuracy and provide a basis for improving welding quality.

[0089] According to some embodiments of the present application, one of the implementations of "determining a target fitting curve based on a preset detection position and the depth information within the target detection area in the depth map" in the above embodiments may include: when the preset detection position is a line intersection position or a line intercept position, fitting the depth information within the target detection area in the depth map to obtain a surface curve.

[0090] The intersection of the lines indicates the detection position of the gap width, which is the intersection of the battery top cover and the side of the gap, and the intersection of the battery shell and the side of the gap. The intersection of the line indicates the detection position of the surface gap width, which is the intersection of the threshold line and the side of the gap.

[0091] When the preset detection position is a line intersection position, it is necessary to determine the intersection of the battery top cover and the side of the gap, as well as the intersection of the battery shell and the side of the gap; when the preset detection position is a line intercept position, it is necessary to determine the intersection of the threshold line and the side of the gap. Therefore, in the above two cases, the depth information in the target detection area is extracted from the depth map, and then the depth information in the target detection area is curve fitted to obtain the surface curve including the upper surface of the battery top cover, the side and bottom of the gap, and the upper surface of the battery shell.

[0092] In the above embodiment, when the preset detection position is a line intersection position or a line cut position, the depth information in the target detection area in the depth map is fitted to obtain a surface curve. In the technical solution of the embodiment of the present application, the surface curve is determined according to the preset detection position being a line intersection position or a line cut position, and the battery side profile is provided for subsequent detection, so as to obtain the detection result more quickly and accurately.

[0093] According to some embodiments of the present application, referring to Figure 3In the above embodiment, one implementation of "detecting the target fitting curve according to the preset detection position and determining the detection result corresponding to the image acquisition position" may include the following steps:

[0094] Step 301, when the preset detection position is the line intersection position, determine the top cover fitting curve, the shell fitting curve and the gap side fitting curve according to the preset fitting range, the probe depth and the surface curve.

[0095] The fitting range represents the area range after fitting. The fitting range may include a left fitting range and a right fitting range. Assuming that the left side is the battery top cover and the right side is the battery shell, the left fitting range indicates the area range after the battery top cover is fitted, and the right fitting range indicates the area range after the battery shell is fitted. Figure 4a and Figure 4b As shown, Figure 4a The fitting range on the left side is 0.01. Figure 4b The fitting range on the left side is 0.03, which shows that Figure 4b The left fitting range is greater than Figure 4a The left fitting range in .

[0096] The probing depth is the depth of probing into the gap, and the probing depth may include the left probing depth and the right probing depth. Assuming that the left side is the battery cover and the right side is the battery shell, the left probing depth indicates the depth of probing into the gap close to the battery cover, and the right probing depth indicates the depth of probing into the gap close to the battery shell. Figure 4c and Figure 4d As shown, Figure 4c The depth of the left side is 0.1. Figure 4d The depth of the left side is 0.02, which shows Figure 4c The left side of the depth is greater than Figure 4d The left side of the drop depth.

[0097] After the surface curve has been determined, if the preset detection position is the line intersection position, the top cover fitting curve and the shell fitting curve are fitted on the surface curve according to the preset fitting range, such as Figure 4a The horizontal line segments on the left and right sides of the middle gap. The fitting curve of the gap side is obtained according to the depth of exploration and the surface curve, such as Figure 4a The vertical line segments on the left side of the center gap and on the right side of the gap.

[0098] Step 302: determining a first intersection point according to the top cover fitting curve and the gap side fitting curve, and determining a second intersection point according to the shell body fitting curve and the gap side fitting curve.

[0099] The top cover fitting curve intersects with the gap side fitting curve to obtain a first intersection point, and the shell fitting curve intersects with the gap side curve to obtain a second intersection point. If the top cover fitting curve does not intersect with the gap side fitting curve, the top cover fitting curve and / or the gap side fitting curve can be extended to make the two curves intersect to obtain the first intersection point. Similarly, the shell fitting curve and / or the gap side fitting curve can be extended to make the two curves intersect to obtain the second intersection point, such as Figure 4e shown.

[0100] Step 303: Determine the gap width of the image acquisition position according to the distance between the first intersection point and the second intersection point.

[0101] The distance between the first intersection point and the second intersection point is measured to obtain the gap width at the image acquisition position.

[0102] Optionally, a gap height threshold is preset, and if the surface curve has no intersection with the gap height threshold line, the gap width is determined to be 0. Figure 4e As shown, the surface curve and the seam height threshold line have an intersection, and the gap width is determined based on the distance between the first intersection point and the second intersection point.

[0103] The above-mentioned line intersection position, fitting range, probing depth, and seam height threshold can be obtained through the user interface, such as Figure 4f shown.

[0104] In the above embodiment, when the preset detection position is the line intersection position, the top cover fitting curve, the shell fitting curve and the gap side fitting curve are determined according to the preset fitting range, the depth of penetration and the surface curve; the first intersection is determined according to the top cover fitting curve and the gap side fitting curve, and the second intersection is determined according to the shell fitting curve and the gap side fitting curve; the gap width at the image acquisition position is determined according to the distance between the first intersection and the second intersection. In the technical solution of the embodiment of the present application, by fitting the intersection of the top cover and the shell with the gap side to detect the gap width, a more accurate detection result can be obtained, which provides a basis for improving welding quality and reducing the probability of burning batteries.

[0105] According to some embodiments of the present application, another implementation of "detecting the target fitting curve according to a preset detection position to determine the detection result corresponding to the image acquisition position" in the above embodiment may include: when the preset detection position is a cut-off position, determining the seam height threshold line, and determining the gap width at the image acquisition position according to the intersection of the seam height threshold line and the surface curve.

[0106] When the preset detection position is the interception position, a seam height threshold line can be generated according to the seam height threshold, and then the two intersection points of the seam height threshold line and the surface curve, i.e., the seam contour, are determined, and then the distance between the two intersection points is measured to obtain the seam width at the image acquisition position.

[0107] The above-mentioned intercept position, fitting range, and seam height threshold can be obtained through the user interface, such as Figure 4g shown.

[0108] In the above embodiment, when the preset detection position is the interception position, the seam height threshold line is determined, and the gap width at the image acquisition position is determined according to the intersection of the seam height threshold line and the surface curve. In the technical solution of the embodiment of the present application, the seam height threshold line can be used to quickly determine the intersection point, and then measure the gap width. Compared with the line intersection position in the above embodiment, there is no need to perform a large amount of fitting processing, which can shorten the detection time and improve the detection efficiency.

[0109] According to some embodiments of the present application, another implementation of "determining a target fitting curve based on a preset detection position and depth information within the target detection area in the depth map" in the above embodiment may include: when the preset detection position is a gradient position, calculating the gradient change of the depth information within the target detection area in the depth map to obtain a gradient change curve.

[0110] When the predicted detection position is a gradient position, the depth information in the target detection area is extracted from the depth map, and then the gradient change between each two adjacent depth information is calculated, and then a curve is generated according to the gradient change between each two adjacent depth information to obtain a gradient change curve.

[0111] In the above embodiment, when the preset detection position is a gradient position, the gradient change of the depth information in the target detection area in the depth map is calculated to obtain a gradient change curve. In the technical solution of the embodiment of the present application, the gradient change curve is obtained by performing gradient calculation, which can more accurately determine the gap position, thereby obtaining a more accurate detection result.

[0112] According to some embodiments of the present application, referring to Figure 5 In the above embodiment, one implementation of "detecting the target fitting curve according to the preset detection position and determining the detection result corresponding to the image acquisition position" may include the following steps:

[0113] Step 401 : determining the maximum gradient position of the top cover region and the maximum gradient position of the shell region respectively according to the gradient variation curve.

[0114] The maximum gradient position is the position where the gradient changes the most. Assuming that the left side is the battery cover and the right side is the battery shell, Figure 6a It can be seen that in the gradient change curve, the left peak is the maximum gradient position of the tectum region, and the right peak is the maximum gradient position of the shell region.

[0115] In practical applications, using the positions of the two peaks as the maximum gradient position may be inaccurate. Therefore, the maximum gradient position value can be set, such as Figure 6b As shown, when the maximum gradient value is selected, the maximum gradient value lines will be generated above and below the gradient change curve, and the maximum gradient position of the top cover area and the maximum gradient position of the shell area are determined according to these two maximum gradient value lines and the gradient change curve. If the maximum gradient value line has no intersection with the gradient change curve, the gap width is determined to be 0. The filter size can also be set, and the filter size represents the window size for filtering the gradient change curve.

[0116] Step 402: Determine the gap width of the image acquisition position according to the distance between the maximum gradient position of the top cover region and the maximum gradient position of the shell region.

[0117] The distance between the maximum gradient position of the tectum region and the maximum gradient position of the shell region is measured, and the distance is determined as the gap width of the image acquisition position.

[0118] In the above embodiment, the maximum gradient position of the top cover area and the maximum gradient position of the shell area are determined according to the gradient change curve; the gap width of the image acquisition position is determined according to the distance between the maximum gradient position of the top cover area and the maximum gradient position of the shell area. In the technical solution of the embodiment of the present application, the gap position is determined by the position where the depth information changes the most, so that a more accurate gap width can be obtained.

[0119] According to some embodiments of the present application, one implementation of “determining the target detection area according to the brightness map” in the above embodiments may include: determining the target detection area in the brightness map according to a pre-set detection interval and detection quantity.

[0120] In the above embodiment, a method of using a region detection model to detect the brightness map to obtain a target detection region is provided. In actual applications, a locator and a caliper can be set according to the grayscale information contained in the brightness map to determine the target detection region.

[0121] The position of the above locator can be used as the center point of the target detection area or as the position of the caliper. In practical applications, multiple locators can be set. Optionally, the position of the locator moves with the position of the caliper.

[0122] The interval of the calipers and the number of calipers can be determined according to the preset detection interval and detection number. The detection interval can be determined according to the conversion rate and the line interval. The detection number can be the total number or the single-side number. Optionally, calipers in the three directions of X, Y, and Z are set, and the above conversion rate can include the X conversion rate, the Y conversion rate, and the Z conversion rate.

[0123] The above detection interval and detection quantity can be obtained through the user interface. Figure 7a , Figure 7b , Figure 7c As shown, Figure 7a The midline interval is 2, and the number of tests is 70; Figure 7b The midline interval is 2, and the number of tests is 30; Figure 7c The centerline interval is 2, and the number of detections is 30. As can be seen from the figure, the more detections there are, the larger the target detection area determined by the detection interval and the number of detections. When the number of detections and the detection interval are the same, the position of the locator is different, and the position of the target detection area is also different.

[0124] like Figure 7d As shown, first use the caliper to confirm the Z-axis reference position of the left caliper area and the right caliper area, and then adjust it through different settings. Figure 7e The position of the dashed caliper shown is used to locate different Z-axis positions, and the gap width and step height are calculated by the position of the intersection of the respective dashed line positions on the left and right and the shell wall. Optionally, the red and green grab areas are confirmed by the caliper, and the height difference is obtained according to the caliper setting.

[0125] Determine the target detection area in the brightness image. Since the positions of the brightness image and the depth image correspond, the target detection area in the depth image can be determined, such as Figure 7f shown.

[0126] In the above embodiment, the target detection area is determined in the brightness map according to the preset detection interval and detection number. In the technical solution of the embodiment of the present application, the target detection area is determined by using a caliper, a locator, and the detection interval and detection number, which is relatively simple and fast, and does not require model training.

[0127] According to some embodiments of the present application, referring to Figure 8 In the above embodiment, an implementation method of "obtaining brightness images and depth images corresponding to multiple image acquisition positions of each slit" may include the following steps:

[0128] Step 501, for each gap, control the battery fixture of the battery pre-welding inspection system to adjust the battery position.

[0129] After the battery is pressed, the control device controls the battery fixture of the battery pre-welding inspection system to place the battery at the position where the image of the first long side gap is to be captured. Similarly, when capturing images of other side gaps, the control device can control the battery fixture to adjust the position of the battery to facilitate the image capture device to capture images of other side gaps.

[0130] Step 502: Control the image acquisition mechanism of the battery pre-weld inspection system to perform image acquisition at each image acquisition position to obtain brightness images and depth images corresponding to the multiple image acquisition positions.

[0131] When capturing images of each gap, the image capturing mechanism can be controlled to move from the starting position to the ending position. During the movement, the image capturing mechanism captures images at each image capturing position to obtain a brightness map and a depth map corresponding to each image capturing position.

[0132] In actual use, in order to minimize the position change of the battery, the following method can be used: after the battery is pressed, the Y axis of the battery fixture is positioned at the long side gap 1 position; the X axis of the camera is positioned at the starting position of the long side gap 1, and the R axis of the camera is positioned at the long side detection position; the image acquisition of the long side gap 1 begins, and the X axis of the camera is finally positioned at the end position of the long side gap 1, and the acquisition of the long side gap 1 ends. The Y axis of the battery fixture is positioned at the long side gap 2 position (that is, the battery fixture adjusts the position of the battery); the X axis of the camera is positioned at the starting position of the long side gap 2; the image acquisition of the long side gap 2 begins, and the X axis of the camera is finally positioned at the end position of the long side gap 2, and the acquisition of the long side gap 2 ends. The X axis of the camera is positioned at the short side gap 1 position, and the R axis of the camera is positioned at the short side detection position (that is, the camera is rotated 90°); the Y axis of the battery fixture is positioned at the starting position of the short side gap 1, and the image acquisition of the short side gap 1 begins, and the Y axis of the battery fixture is finally positioned at the end position of the short side gap 1, and the acquisition of the short side gap 1 ends. The camera X-axis is positioned at the short side gap 2 position, and the battery fixture Y-axis is positioned at the short side gap 2 starting position; the image acquisition of the short side gap 2 begins, and the battery fixture Y-axis is finally positioned at the short side gap 2 end position, and the acquisition of the short side gap 2 ends. Finally, the camera X-axis is positioned at the avoidance position, and the camera R-axis is positioned at the long side detection position, and the detection is completed.

[0133] In the above embodiment, for each gap, the battery clamp of the battery pre-welding detection system is controlled to adjust the battery position; the image acquisition mechanism of the battery pre-welding detection system is controlled to perform image acquisition at each image acquisition position to obtain brightness images and depth images corresponding to multiple image acquisition positions. In the technical solution of the embodiment of the present application, the control device, the battery clamp and the image acquisition mechanism cooperate with each other to perform image acquisition to obtain the image required for battery detection. Compared with manual detection, it is not only efficient, but also has more detection points and higher detection accuracy.

[0134] According to some embodiments of the present application, a battery pre-welding detection method is provided, which is applied to Figure 1a Taking the control device in as an example, the following steps may be included:

[0135] Step 1: Before welding the battery top cover and the battery shell, for each gap, control the battery clamp of the battery pre-welding detection system to adjust the battery position; control the image acquisition mechanism of the battery pre-welding detection system to perform image acquisition at each image acquisition position to obtain brightness images and depth images corresponding to multiple image acquisition positions.

[0136] Step 2: Determine the target detection area in the brightness map according to the preset detection interval and detection quantity.

[0137] Step 3: When the preset detection position is a line intersection position or a line intercept position, the depth information in the target detection area in the depth map is fitted to obtain a surface curve.

[0138] Step 4, when the preset detection position is the line intersection position, determine the top cover fitting curve, the shell fitting curve and the gap side fitting curve in the surface curve according to the preset fitting range and the detection depth; determine the first intersection point according to the top cover fitting curve and the gap side fitting curve, and determine the second intersection point according to the shell fitting curve and the gap side fitting curve; determine the gap width at the image acquisition position according to the distance between the first intersection point and the second intersection point.

[0139] Step 5: When the preset detection position is the interception position, the gap width of the image acquisition position is determined according to the intersection point between the interception position and the surface curve.

[0140] Step 6: When the preset detection position is a gradient position, the gradient change of the depth information in the target detection area in the depth map is calculated to obtain a gradient change curve.

[0141] Step 7, determining the maximum gradient position of the top cover area and the maximum gradient position of the shell area respectively according to the gradient change curve; determining the gap width of the image acquisition position according to the distance between the maximum gradient position of the top cover area and the maximum gradient position of the shell area.

[0142] Step 8: Determine the gap width of the gap according to the detection results corresponding to the multiple image acquisition positions.

[0143] In practical applications, the first height difference between the battery top cover and the battery housing can be determined according to the surface curve. Optionally, the surface curve also includes the upper surface of the welding strip, and the second height difference between the battery housing and the welding strip can also be determined according to the surface curve.

[0144] In the technical solution of the embodiment of the present application, before the battery top cover and the battery shell are welded, the gap width of the battery, the step height between the battery top cover and the battery shell, the step height between the battery shell and the welding strip, etc. are detected. In this way, when the gap width and step height do not meet the welding requirements, corresponding measures can be taken to reduce the probability of battery burning, improve welding quality, and then improve battery quality and reduce production costs.

[0145] It should be understood that, although the various steps in the above flowchart are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear description in this article, the execution of these steps is not strictly limited in order, and these steps can be executed in other orders. Moreover, at least a part of the steps in the above flowchart may include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.

[0146] Based on the same inventive concept, the embodiment of the present application also provides a battery pre-welding detection device for implementing the battery pre-welding detection method involved above. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above method, so the specific limitations in one or more battery pre-welding detection device embodiments provided below can refer to the limitations of the battery pre-welding detection method above, and will not be repeated here.

[0147] According to some embodiments of the present application, referring to Fig. 9 , provides a battery pre-welding detection device, the device comprising:

[0148] The image acquisition module 601 is used to acquire a brightness image and a depth image corresponding to a plurality of image acquisition positions of each gap before welding the battery top cover and the battery shell;

[0149] A first detection module 602 is used to determine, for each image acquisition position of each gap, a target detection area according to the brightness map, and determine a target fitting curve according to a preset detection position and depth information in the target detection area in the depth map; detect the target fitting curve according to the preset detection position to determine a detection result corresponding to the image acquisition position, wherein the target fitting curve includes at least one of a surface curve and a gradient change curve;

[0150] The second detection module 603 is used to determine a target detection result of the gap according to the detection results corresponding to the multiple image acquisition positions, wherein the target detection result represents the assembly status of the battery top cover and the battery shell.

[0151] In some embodiments, the first detection module 602 is specifically configured to perform fitting processing on the depth information in the target detection area in the depth map to obtain a surface curve when the preset detection position is a line intersection position or a line section position.

[0152] In some embodiments, the first detection module 602 is specifically used to determine the top cover fitting curve, the shell fitting curve and the gap side fitting curve according to the preset fitting range, the probing depth and the surface curve when the preset detection position is a line intersection position; determine the first intersection point according to the top cover fitting curve and the gap side fitting curve, and determine the second intersection point according to the shell fitting curve and the gap side fitting curve; determine the gap width at the image acquisition position according to the distance between the first intersection point and the second intersection point.

[0153] In some embodiments, the first detection module 602 is specifically used to determine the seam height threshold line when the preset detection position is a cut-off position, and determine the seam width at the image acquisition position according to the intersection of the seam height threshold line and the surface curve.

[0154] In some embodiments, the first detection module 602 is specifically configured to calculate the gradient change of the depth information in the target detection area in the depth map to obtain a gradient change curve when the preset detection position is a gradient position.

[0155] In some embodiments, the first detection module 602 is specifically used to determine the maximum gradient position of the top cover area and the maximum gradient position of the shell area according to the gradient change curve; and determine the gap width of the image acquisition position according to the distance between the maximum gradient position of the top cover area and the maximum gradient position of the shell area.

[0156] In some embodiments, the first detection module 602 is specifically configured to determine a target detection area in the brightness map according to a preset detection interval and detection quantity.

[0157] In some embodiments, the image acquisition module 601 is specifically used to control the battery clamp of the battery pre-welding detection system to adjust the battery position for each gap; control the image acquisition mechanism of the battery pre-welding detection system to perform image acquisition at each image acquisition position to obtain brightness images and depth images corresponding to multiple image acquisition positions.

[0158] Each module in the above-mentioned battery pre-welding detection device can be implemented in whole or in part by software, hardware and a combination thereof. Each of the above-mentioned modules can be embedded in or independent of a processor in an electronic device in the form of hardware, or can be stored in a memory in the electronic device in the form of software, so that the processor can call and execute the operations corresponding to each of the above modules.

[0159] According to some embodiments of the present application, referring to Figure 1b , a battery pre-welding detection system 10 is provided. The battery pre-welding detection system 10 includes a battery fixture 11, an image acquisition mechanism and a control device 13; the control device 13 is respectively connected to the battery fixture 11 and the image acquisition mechanism 12 in communication; the battery fixture 11 is used to adjust the battery position under the control of the control device 13; the image acquisition mechanism 12 is used to perform image acquisition under the control of the control device 13, and obtain brightness images and depth images corresponding to multiple image acquisition positions of each gap; the control device 13 is used to determine the target detection result of each gap according to the brightness image and the depth image, wherein the target detection result represents the assembly condition of the battery top cover and the battery shell.

[0160] In the embodiment of the present application, the battery pre-welding detection system 10 includes a battery fixture 11, an image acquisition mechanism 12 and a control device 13, and the control device 13 is respectively connected to the battery fixture 11 and the image acquisition mechanism 12 in communication. In practical applications, the control device 13 may include a PCL and a host computer, wherein the PCL may send control instructions to the battery fixture 11 and the image acquisition mechanism 12 respectively, control the battery fixture 11 to adjust the position of the battery, and control the image acquisition mechanism 12 to perform image acquisition; the host computer may obtain a brightness map and a depth map from the image acquisition mechanism 12, and then perform detection according to the brightness map and the depth map to obtain the target detection result of each gap. In addition, the host computer may display a user interface, and obtain various detection parameters through the user interface, for example, obtain the detection interval, the number of detections, the detection mode, the fitting range, the depth of the probe, the preset detection position, the seam height threshold, etc. The PLC and the host computer may cache the relevant data in the image acquisition process, and delete the cached data after the image acquisition is completed.

[0161] When performing image acquisition, the image acquisition mechanism 12 can follow the following process: monitor the PCL instruction at a preset time interval, and the instruction can indicate which gap is to be acquired; after monitoring the instruction, reply to PCL to receive the trigger process, read the instruction, and determine whether it is a long edge signal; if it is a long edge signal, call the long edge image acquisition parameters for image acquisition; if it is a short edge signal, call the short edge image acquisition parameters for image acquisition; then, return the acquired image to the host computer.

[0162] In the above embodiment, the battery pre-welding detection system includes a battery fixture, an image acquisition mechanism and a control device; the battery fixture adjusts the battery position under the control of the control device; the image acquisition mechanism performs image acquisition under the control of the control device to obtain brightness images and depth images corresponding to multiple image acquisition positions of each gap; the control device determines the target detection result of each gap based on the brightness image and the depth image. In the technical solution of the embodiment of the present application, the battery is inspected before welding through the cooperation of the control device, the battery fixture and the image acquisition mechanism. On the one hand, compared with manual inspection, it is more efficient, has more inspection points and more accurate inspection results; on the other hand, it can improve the welding quality according to the inspection results, reduce the probability of damaging the battery, thereby improving the battery quality and reducing production costs.

[0163] According to some embodiments of the present application, referring to Fig.10 The image acquisition mechanism 12 includes a driving structure 121, an image acquisition device 122 and a gantry structure 123; the driving structure 121 and the image acquisition device 122 are arranged on the gantry structure 123; the driving structure 121 and the image acquisition device 122 are respectively connected to the control device 13 for communication; the driving structure 121 is used to drive the image acquisition device 122 to move along the first direction on the gantry structure 123 or drive the image acquisition device 122 to rotate around the second direction under the control of the control device 13; the image acquisition device 122 is used to perform image acquisition under the control of the control device 13.

[0164] In the embodiment of the present application, the image acquisition mechanism 12 includes a driving structure 121, an image acquisition device 122 and a gantry structure 123. The gantry structure 123 is mounted on the battery fixture 11. The driving structure 121 and the image acquisition device 122 are arranged on the crossbeam of the gantry structure 123, so that the image acquisition device 122 is located above the battery, and the image of the battery can be captured.

[0165] The driving structure 121 may include a linear module 1211 and a rotating module 1212 connecting the linear module 1211 with the image acquisition device 122. The control device 13 is respectively connected to the linear module 1211 and the rotating module 1212 in communication. The control device 13 may control the linear module 1211 to move along the crossbeam of the gantry structure 123, and may also control the rotating module 1212 to drive the image acquisition device 122 to rotate, wherein the straight line where the crossbeam of the gantry structure 123 is located is the first direction, and the rotating shaft of the rotating module 1212 is the second direction.

[0166] The linear module 1211 may include a first encoder that can count the number of movements, thereby assisting the PLC in determining the position of the image acquisition device 122 in the first direction. The rotary module 1212 may include a second encoder that can count the number of rotations, thereby assisting the PLC in determining the position of the image acquisition device 122 in the second direction.

[0167] In addition to the above-mentioned structures, the image acquisition mechanism 12 may also include other structures such as a light source.

[0168] In the above embodiment, the image acquisition mechanism includes a driving structure, an image acquisition device and a gantry structure; the driving structure drives the image acquisition device to move along a first direction on the gantry structure, or drives the image acquisition device to rotate around a second direction under the control of the control device; the image acquisition device performs image acquisition under the control of the control device. In the technical solution of the embodiment of the present application, the driving structure and the image acquisition device are mounted above the battery using a gantry structure, and the driving structure and the image acquisition device operate under the control of the control device to realize automatic image acquisition, which provides a basis for subsequent detection, and the automatic acquisition also improves the detection efficiency.

[0169] According to some embodiments of the present application, a computer device is provided. The computer device may be a host computer, and its internal structure diagram may be as follows: Fig.11 As shown. The computer device includes a processor, a memory, an input / output interface, a communication interface, a display unit and an input device. The processor, the memory and the input / output interface are connected through a system bus, and the communication interface, the display unit and the input device are connected to the system bus through the input / output interface. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The input / output interface of the computer device is used to exchange information between the processor and the external device. The communication interface of the computer device is used to communicate with an external terminal in a wired or wireless manner, and the wireless manner can be realized through WIFI, a mobile cellular network, NFC (near field communication) or other technologies. When the computer program is executed by the processor, a battery pre-welding detection method is implemented. The display unit of the computer device is used to form a visually visible picture, which can be a display screen, a projection device or a virtual reality imaging device. The display screen can be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device can be a touch layer covering the display screen, or a button, trackball or touchpad set on the computer device shell, or an external keyboard, touchpad or mouse.

[0170] Those skilled in the art will understand that Fig.11 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0171] According to some embodiments of the present application, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory including instructions, and the above instructions can be executed by a processor of an electronic device to complete the above method. For example, the non-transitory computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.

[0172] According to some embodiments of the present application, a computer program product is also provided, and when the computer program is executed by a processor, the above method can be implemented. The computer program product includes one or more computer instructions. When these computer instructions are loaded and executed on a computer, part or all of the above method can be implemented in whole or in part according to the process or function described in the embodiment of the present application.

[0173] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in this application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.

[0174] The technical features of the above-described embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above-described embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.

[0175] The above-described embodiments only express several implementation methods of the present application, which is convenient for understanding the technical solutions of the present application in detail, but cannot be understood as limiting the scope of protection of the invention patent. It should be pointed out that for ordinary technicians in this field, without departing from the concept of the present application, several modifications and improvements can be made, which all belong to the protection scope of the present application. It should be understood that the technical solutions obtained by those skilled in the art through logical analysis, reasoning or limited experiments on the basis of the technical solutions provided in the present application are all within the protection scope of the attached claims described in the present application. Therefore, the protection scope of the patent of this application shall be based on the contents of the attached claims, and the description and drawings can be used to explain the contents of the claims.

Claims

1. A battery pre-welding detection method, characterized in that: The method comprises: Before welding the battery top cover and the battery shell, obtain brightness images and depth images corresponding to multiple image acquisition positions of each gap; For each image acquisition position of each gap, a target detection area is determined according to the brightness map, and a target fitting curve is determined according to a preset detection position and depth information within the target detection area in the depth map, wherein the target fitting curve includes at least one of a surface curve and a gradient change curve; Detecting the target fitting curve according to the preset detection position to determine the detection result corresponding to the image acquisition position; Determining a target detection result of the gap according to the detection results corresponding to the plurality of image acquisition positions, wherein the target detection result represents an assembly condition of the battery top cover and the battery shell; The detecting of the target fitting curve according to the preset detection position to determine the detection result corresponding to the image acquisition position includes: In the case where the preset detection position is a line intersection position, the top cover fitting curve, the shell fitting curve and the gap side fitting curve are determined according to the preset fitting range, the probe depth and the surface curve; the line intersection position indicates the detection position of the gap width, which is the intersection of the battery top cover and the gap side, and the intersection of the battery shell and the gap side; Determine a first intersection point according to the top cover fitting curve and the gap side fitting curve, and determine a second intersection point according to the shell fitting curve and the gap side fitting curve; The gap width of the image acquisition position is determined according to the distance between the first intersection point and the second intersection point.

2. The method according to claim 1, characterized in that The determining of the target fitting curve according to the preset detection position and the depth information in the target detection area in the depth map includes: When the preset detection position is a line intersection position or a line cut position, the depth information in the target detection area in the depth map is fitted to obtain the surface curve; the line cut position indicates the detection position of the gap width, which is the intersection of the threshold line and the side of the gap.

3. The method according to claim 2, characterized in that The detecting the target fitting curve according to the preset detection position to determine the detection result corresponding to the image acquisition position includes: When the preset detection position is a cut-off position, a seam height threshold line is determined, and the seam width at the image acquisition position is determined according to the intersection of the seam height threshold line and the seam side fitting curve.

4. The method according to claim 1, characterized in that: The determining of the target fitting curve according to the preset detection position and the depth information in the target detection area in the depth map includes: In a case where the preset detection position is a gradient position, a gradient change of the depth information within the target detection area in the depth map is calculated to obtain the gradient change curve.

5. The method according to claim 1, characterized in that The detecting the target fitting curve according to the preset detection position to determine the detection result corresponding to the image acquisition position includes: Determine the maximum gradient position of the top cover area and the maximum gradient position of the shell area respectively according to the gradient change curve; The gap width of the image acquisition position is determined according to the distance between the maximum gradient position of the top cover area and the maximum gradient position of the shell area.

6. The method according to claim 1, characterized in that The determining of the target detection area according to the brightness map comprises: The target detection area is determined in the brightness map according to a preset detection interval and detection quantity.

7. The method according to any one of claims 1 to 6, characterized in that: The step of obtaining brightness maps and depth maps corresponding to a plurality of image acquisition positions of each slit includes: For each gap, the battery fixture of the battery pre-welding inspection system is controlled to adjust the battery position; The image acquisition mechanism of the battery pre-weld detection system is controlled to perform image acquisition at each of the image acquisition positions to obtain brightness images and depth images corresponding to the multiple image acquisition positions.

8. A battery pre-welding detection device, characterized in that: The device comprises: An image acquisition module, used to obtain brightness images and depth images corresponding to multiple image acquisition positions of each gap before welding the battery top cover and the battery shell; A first detection module, configured to determine, for each image acquisition position of each gap, a target detection area according to the brightness map, and determine a target fitting curve according to a preset detection position and depth information within the target detection area in the depth map, and detect the target fitting curve according to the preset detection position to determine a detection result corresponding to the image acquisition position, wherein the target fitting curve includes at least one of a surface curve and a gradient change curve; A second detection module, used to determine a target detection result of the gap according to the detection results corresponding to the plurality of image acquisition positions, wherein the target detection result represents the assembly condition of the battery top cover and the battery shell; Among them, the first detection module is specifically used to determine the top cover fitting curve, the shell fitting curve and the gap side fitting curve according to the preset fitting range, the probe depth and the surface curve when the preset detection position is the line intersection position; determine the first intersection point according to the top cover fitting curve and the gap side fitting curve, and determine the second intersection point according to the shell fitting curve and the gap side fitting curve; determine the gap width at the image acquisition position according to the distance between the first intersection point and the second intersection point; the line intersection point indicates the detection position of the gap width, which is the intersection point of the battery top cover and the gap side, and the intersection point of the battery shell and the gap side.

9. A battery pre-welding detection system, characterized in that: The battery pre-welding detection system comprises a battery fixture, an image acquisition mechanism and a control device; the control device is respectively connected to the battery fixture and the image acquisition mechanism for communication; The battery clamp is used to adjust the battery position under the control of the control device; The image acquisition mechanism is used to perform image acquisition under the control of the control device to obtain brightness images and depth images corresponding to multiple image acquisition positions of each gap; The control device is used to determine, for each image acquisition position of each gap, a target detection area according to the brightness map, and determine a target fitting curve according to a preset detection position and depth information within the target detection area in the depth map, wherein the target fitting curve includes at least one of a surface curve and a gradient change curve; detect the target fitting curve according to the preset detection position to determine a detection result corresponding to the image acquisition position; determine a target detection result for each gap according to the detection results corresponding to the plurality of image acquisition positions, wherein the target detection result represents an assembly condition of a battery top cover and a battery shell; The control device is specifically used to determine the top cover fitting curve, the shell fitting curve and the gap side fitting curve according to the preset fitting range, the probe depth and the surface curve when the preset detection position is the line intersection position; determine the first intersection point according to the top cover fitting curve and the gap side fitting curve, and determine the second intersection point according to the shell fitting curve and the gap side fitting curve; determine the gap width at the image acquisition position according to the distance between the first intersection point and the second intersection point; the line intersection point indicates the detection position of the gap width, which is the intersection point of the battery top cover and the gap side, and the intersection point of the battery shell and the gap side.

10. The battery pre-welding detection system according to claim 9, characterized in that: The image acquisition mechanism comprises a driving structure, an image acquisition device and a gantry structure; the driving structure and the image acquisition device are arranged on the gantry structure; the driving structure and the image acquisition device are respectively connected to the control device for communication; The driving structure is used to drive the image acquisition device to move along the first direction on the gantry structure, or to drive the image acquisition device to rotate around the second direction under the control of the control device; The image acquisition device is used to acquire images under the control of the control device.