Liquid leakage detection method, device and equipment and computer readable storage medium
Patent Information
- Application Number
- CN202280094630.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2022-12-06
- Publication Date
- 2024-11-22
AI Technical Summary
In the existing technology, manual visual inspection to check the assembly deviation between the adapter piece and the top cover has poor reliability, risks leakage, and affects the service stability and safety of the battery.
Use image recognition technology to obtain the image of the battery to be processed, identify the adapter piece and top cover image, calculate the position offset, and determine whether the assembly position meets the expected design, thereby determining whether the battery is leaking, reducing the possibility of human error, and improving detection reliability.
It achieves simple, efficient and accurate leakage detection, reduces the error rate of manual visual inspection, improves the reliability of battery detection results, and evaluates the risk of leakage when there is no leakage, helping to prevent potential leakage.
Smart Images

Figure CN119013692A_ABST
Abstract
Description
Liquid leakage detection method, device, equipment and computer-readable storage medium Technical Field
[0001] The present application relates to the field of batteries, and in particular to a leakage detection method, device, equipment and computer-readable storage medium. Background Art
[0002] The adapter and top cover are key components of power batteries. The adapter is typically a stamped part, while the top cover typically consists of a terminal, a sealing ring, a lower plastic, and a top cover. The terminal and adapter are typically connected by welding. In the battery cell structure, to ensure corrosion resistance and safety, a sealing ring and lower plastic are often used to ensure reliable insulation between the adapter and top cover.
[0003] In actual manufacturing, there's often a certain degree of assembly deviation between the adapter and the top cover. If this deviation is too large, the sealing ring on the top cover will burn, causing a short circuit between the adapter and the top cover. This can lead to corrosion and leakage in the battery cell, impacting the service stability and safety of the power battery. Currently, after welding the adapter and top cover, manual visual inspection is often used to check for assembly deviation between the adapter and the top cover, which is unreliable and poses a risk of leakage. Technical issues
[0004] One of the purposes of the embodiments of the present application is to provide a leakage detection method, device and equipment, which aims to solve the problem that the current method of using manual visual inspection to check the assembly deviation between the adapter and the top cover has poor reliability and the risk of leakage. Technical Solutions
[0005] In order to solve the above technical problems, the technical solutions adopted in the embodiments of the present application are:
[0006] In a first aspect, an embodiment of the present application provides a liquid leakage detection method, comprising:
[0007] Acquire the image of the battery to be processed;
[0008] Identify the image to be processed to obtain an adapter image and a top cover image;
[0009] Determine whether the battery is leaking according to the adapter image and the top cover image.
[0010] By performing image recognition on the image to be processed, which includes the top cover of the battery and the adapter plate arranged on the top cover, the adapter plate image and the top cover image are obtained. Then, based on the assembly position of the adapter plate in the adapter plate image and the top cover in the top cover image, it is determined whether the assembly position between the adapter plate and the top cover of the entity meets the expected design. If the assembly position meets the expected design, it is determined that the battery has not leaked. Otherwise, it is determined that the battery has leaked, affecting the stability and safety of the battery in service. This leakage detection method based on image recognition can simply, efficiently and accurately detect whether the battery is leaking, reduce the possibility of human error in manual visual inspection, and improve the reliability of the detection results.
[0011] In some embodiments of the present application, the step of identifying the image to be processed to obtain the adapter image and the top cover image includes:
[0012] Performing grayscale processing on the image to be processed to obtain a grayscale image;
[0013] An adapter plate image and a top cover image are obtained according to the grayscale difference between the adapter plate and the top cover in the grayscale image.
[0014] By processing the image to be processed into a grayscale image, and then performing grayscale recognition based on the grayscale difference between the adapter and the top cover in the grayscale image to obtain the adapter image and the top cover image, this image recognition method based on grayscale recognition can simply, efficiently and accurately identify the images of different components in the image to be processed.
[0015] In some embodiments of the present application, the adapter sheet includes a sheet body and a convex hull provided on the sheet body, and the adapter sheet image includes a sheet body image and a convex hull image;
[0016] The step of obtaining an adapter sheet image and a top cover image according to a grayscale difference between the adapter sheet and the top cover in the grayscale image includes:
[0017] According to the grayscale differences among the sheet body, the convex hull and the top cover in the grayscale image, a sheet body image, a convex hull image and a top cover image are obtained.
[0018] By performing grayscale recognition based on the grayscale differences between the sheet, convex hull and top cover in the grayscale image, the sheet image, convex hull image and top cover image are obtained. This image recognition method based on grayscale recognition can simply, efficiently and accurately identify the images of different components in the grayscale image.
[0019] In some embodiments of the present application, determining whether the battery is leaking based on the adapter image and the top cover image includes:
[0020] Obtaining a position offset between the adapter plate and the top cover according to the adapter plate image and the top cover image;
[0021] Whether the battery is leaking is determined according to the position offset.
[0022] By determining the position offset between the adapter in the adapter image and the top cover in the top cover image, the position offset between the physical adapter and the top cover is determined, and then whether the assembly position between the adapter and the top cover meets the expected design is determined based on the position offset. If the assembly position meets the expected design, it is determined that the battery is not leaking; otherwise, it is determined that the battery is leaking, affecting the stability and safety of the battery service. This leakage detection method based on image recognition and position offset calculation can simply, efficiently and accurately detect whether the battery is leaking, reduce the possibility of human error in manual visual inspection, and improve the reliability of the detection results.
[0023] In some embodiments of the present application, obtaining the position offset between the adapter sheet and the top cover according to the adapter sheet image and the top cover image includes:
[0024] Determining, according to the adapter sheet image and the top cover image, a detection area of the adapter sheet in the adapter sheet image and a detection area of the top cover in the top cover image;
[0025] The position offset between the detection area of the adapter plate in the adapter plate image and the detection area of the top cover in the top cover image is acquired to obtain the position offset between the adapter plate and the top cover.
[0026] By further performing image recognition on the adapter sheet image and the top cover image, the detection area of the adapter sheet in the adapter sheet image and the detection area of the top cover in the top cover image are determined. The position offset between the two detection areas can be used to simply, efficiently and accurately determine the position offset between the physical adapter sheet and the top cover, wherein the detection area may include but is not limited to a center, a feature area or a center of a partial area that is pre-set for determining the position offset between the adapter sheet and the top cover.
[0027] In some embodiments of the present application, the detection area of the adapter plate includes the center of the convex hull of the adapter plate, and the detection area of the top cover includes the center of the pole hole of the top cover;
[0028] The determining, based on the adapter sheet image and the top cover image, a detection area of the adapter sheet in the adapter sheet image and a detection area of the top cover in the top cover image includes:
[0029] Determining, according to the adapter image, a contour of a convex hull in the adapter image;
[0030] Determining the center of the convex hull in the adapter image according to the contour of the convex hull in the adapter image;
[0031] Determining the contour of the top cover in the top cover image according to the top cover image;
[0032] Determining a center line and a marked area of the top cover in the top cover image according to the outline of the top cover in the top cover image;
[0033] The center of the pole hole of the top cover in the top cover image is determined according to the center line of the top cover in the top cover image and the relative positional relationship between the center of the pole hole of the top cover and the marked area.
[0034] In the case that the detection area of the adapter includes the center of the convex hull of the adapter, the contour detection method can be directly used to detect the contour of the convex hull in the adapter image, or the edge detection method can be used to detect the edge of the adapter in the adapter image, and then the contour detection method can be used to detect the contour of the convex hull in the edge of the adapter. Then, the spatial fitting method is used to further determine the center of the convex hull in the adapter image according to the contour of the convex hull in the adapter image. This image recognition method based on contour detection and spatial fitting can simply, efficiently and accurately determine the center of the convex hull in the adapter image; in the case that the detection area of the top cover includes the center of the pole hole of the top cover, the contour detection method can be directly used to detect the contour of the top cover in the top cover image, or the edge detection method can be used to detect the edge of the top cover in the top cover image, and then the contour detection method can be used to detect the top cover. The outline of the top cover in the edge, and then the center line of the top cover in the top cover image is further determined according to the outline of the top cover in the top cover image by the spatial fitting method. Finally, the center of the pole hole of the top cover in the top cover image is determined according to the center line of the top cover in the top cover image and the relative position relationship between the center of the pole hole of the top cover and the identification area by the spatial fitting method. This image recognition method based on edge detection, contour detection and spatial fitting can simply, efficiently and accurately determine the center of the pole hole of the top cover in the top cover image, wherein the outline of the top cover in the top cover image includes the identification area, and the identification area of the top cover is any regular shape (for example, rectangular, circular, etc.) area, groove, etc. set on the top cover and used to identify different types of top covers. The relative position relationship between the center of the pole hole of the top cover and the identification area can be the distance between the two or the relationship between the position coordinates.
[0035] In some embodiments of the present application, obtaining the position offset between the detection area of the adapter sheet in the adapter sheet image and the detection area of the top cover in the top cover image to obtain the position offset between the adapter sheet and the top cover includes:
[0036] The distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image is obtained to obtain the position offset between the adapter and the top cover.
[0037] The position offset can be expressed as the distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image in the camera coordinate system. The X-axis and Y-axis of the camera coordinate system are set to be parallel to the bottom of the convex hull. The square root of the square of the difference between the X-axis coordinates and the Y-axis coordinates between the two centers is the distance between the two centers. By using the distance between the two centers as the position offset, the calculation amount is small, and the position offset can be determined simply, efficiently, and accurately.
[0038] In some embodiments of the present application, determining whether the battery is leaking based on the position offset includes:
[0039] Obtaining a first distance between the convex portion and the top cover according to a design value of an outer diameter of the convex portion of the adapter and a design value of an outer diameter of the terminal hole;
[0040] Obtaining a second distance between the convex hull and the top cover according to a design value of the lower plastic thickness of the top cover and a design value of the convex hull draft angle;
[0041] Determining a preset specification value according to the first distance value and the second distance value;
[0042] If the position offset does not match the preset specification value, it is determined that the battery is leaking.
[0043] When the distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image is used as the position offset, the difference between the outer diameter design value of the pole hole and the outer diameter design value of the convex hull opening can be obtained according to the outer diameter design value of the convex hull opening of the adapter and the outer diameter design value of the pole hole (that is, the first distance value). According to the lower plastic thickness design value of the top cover and the convex hull draft angle design value, the difference between the outer diameter design value of the convex hull opening and the outer diameter design value of the convex hull position parallel to the bottom of the lower plastic can be obtained (that is, the second distance value). The sum of the first distance value and the second distance value is calculated to obtain the center of the convex hull in the adapter image. The design value (i.e., the preset specification value) of the distance between the center of the battery and the center of the terminal hole in the top cover image (i.e., the position offset) is determined. Based on the size relationship between the position offset and the preset specification value, it can be determined whether the battery is leaking. Specifically, if the position offset does not match the preset specification value, it is determined that the battery is leaking; otherwise, it is determined that the battery is not leaking. This method of determining whether the battery is leaking based on the size relationship between the position offset and the preset specification value can simply, efficiently, and accurately detect whether the battery is leaking, reduce the possibility of human error in manual visual inspection, and improve the reliability of the detection results.
[0044] In some embodiments of the present application, determining whether the battery is leaking based on the position offset includes:
[0045] Obtaining a first distance between the convex hull and the top cover according to a design value of an inner diameter of the convex hull bottom of the adapter and a design value of an outer diameter of the pole hole;
[0046] Obtaining a second distance value between the convex hull and the top cover according to a design value of the lower plastic thickness of the top cover and a design value of the convex hull draft angle;
[0047] Determining a preset specification value according to the first distance value and the second distance value;
[0048] If the position offset does not match the preset specification value, it is determined that the battery is leaking.
[0049] When the distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image is used as the position offset, the difference between the outer diameter design value of the pole hole and the inner diameter design value of the convex hull bottom can be obtained according to the inner diameter design value of the convex hull bottom of the adapter and the outer diameter design value of the pole hole (that is, the first distance value). According to the lower plastic thickness design value of the top cover and the convex hull draft angle design value, the difference between the outer diameter design value of the convex hull opening and the outer diameter design value of the convex hull position parallel to the lower plastic bottom can be obtained (that is, the second distance value). The difference between the first distance value and the second distance value is calculated to obtain the center of the convex hull in the adapter image. The design value (i.e., the preset specification value) of the distance between the center of the battery and the center of the terminal hole in the top cover image (i.e., the position offset) is determined. Based on the size relationship between the position offset and the preset specification value, it can be determined whether the battery is leaking. Specifically, if the position offset does not match the preset specification value, it is determined that the battery is leaking; otherwise, it is determined that the battery is not leaking. This method of determining whether the battery is leaking based on the size relationship between the position offset and the preset specification value can simply, efficiently, and accurately detect whether the battery is leaking, reduce the possibility of human error in manual visual inspection, and improve the reliability of the detection results.
[0050] In some embodiments of the present application, obtaining the position offset between the detection area of the adapter sheet in the adapter sheet image and the detection area of the top cover in the top cover image to obtain the position offset between the adapter sheet and the top cover includes:
[0051] The horizontal coordinate difference and the vertical coordinate difference between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image are obtained to obtain the position offset between the adapter and the top cover.
[0052] The position offset can be reflected as the horizontal coordinate difference and vertical coordinate difference between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image in the camera coordinate system. The X-axis and Y-axis of the camera coordinate system are set to be parallel to the bottom of the convex hull. The X-axis coordinate difference between the two centers is the horizontal coordinate difference, and the Y-axis coordinate difference is the vertical coordinate difference. By using the horizontal coordinate difference and the vertical coordinate difference as the position offset, compared with using the distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image as the position offset, the calculation amount is smaller, and the position offset can be determined more simply, efficiently and accurately.
[0053] In some embodiments of the present application, determining whether the battery is leaking based on the position offset includes:
[0054] Obtaining design values of the abscissa difference and the ordinate difference between the center of the convex hull and the center of the pole hole to obtain preset specification values;
[0055] If the position offset does not match the preset specification value, it is determined that the battery is leaking.
[0056] When the horizontal coordinate difference and the vertical coordinate difference between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image are used as the position offset, the preset specification value is obtained according to the design value of the horizontal coordinate difference and the vertical coordinate difference between the center of the convex hull and the center of the pole hole. According to the size relationship between the position offset and the preset specification value, it can be determined whether the battery is leaking. Specifically, if the position offset does not match the preset specification value, it is determined that the battery is leaking; otherwise, it is determined that the battery is not leaking. This method of determining whether the battery is leaking based on the size relationship between the position offset and the preset specification value can simply, efficiently and accurately detect whether the battery is leaking, reduce the possibility of human error in manual visual inspection, and improve the reliability of the detection results.
[0057] In some embodiments of the present application, obtaining the image of the battery to be processed includes:
[0058] Acquire the image of the battery to be processed by the camera;
[0059] The acquiring the position offset between the detection area of the adapter sheet in the adapter sheet image and the detection area of the top cover in the top cover image to obtain the position offset between the adapter sheet and the top cover includes:
[0060] According to the positions of the detection area of the adapter plate in the adapter plate image and the detection area of the top cover in the top cover image in the camera coordinate system, and the predetermined relative position relationship between the same point in the camera coordinate system and the world coordinate system, the position offset of the adapter plate and the top cover in the world coordinate system is obtained.
[0061] The battery's image to be processed can be instantly captured by the camera, facilitating real-time inspection. Based on the predetermined relative positional relationship between the same location in the camera coordinate system and the world coordinate system, the virtual positions of the adapter inspection area in the adapter image and the top cover inspection area in the top cover image in the camera coordinate system can be converted to their real positions in the world coordinate system. This allows the real relative positional relationship (i.e., position offset) of the adapter and top cover in the world coordinate system to be determined based on the real positions of the two inspection areas in the world coordinate system.
[0062] In some embodiments of the present application, before acquiring the image of the battery to be processed by the camera, the process includes:
[0063] Acquire an image of a calibration plate at a preset position through a camera;
[0064] According to the image of the calibration plate and the position of the same point in the calibration plate, the relative position relationship of the same point in the camera coordinate system and the world coordinate system is determined.
[0065] The calibration plate is used to determine the relative position relationship of the same location in the camera coordinate system and the world coordinate system. This allows the processed image of the battery captured by the camera to directly process and output the actual position offset between the center of the convex hull in the world coordinate system and the center of the pole hole, making it easier for users to intuitively understand the detection results.
[0066] In some embodiments of the present application, the method further comprises:
[0067] If the battery is not leaking, a leakage risk assessment result of the battery is obtained based on the position offset and output.
[0068] The leakage detection method provided in the embodiment of the present application can not only determine whether there is leakage based on the position offset, but also evaluate the leakage risk of the battery based on the position offset when the battery is not leaking, so that the user can take corresponding countermeasures in a timely manner according to the leakage risk, for example, timely adjust the assembly position between the adapter and the top cover to prevent possible leakage and take precautions before it occurs.
[0069] In some embodiments of the present application, if the battery is not leaking, obtaining and outputting a leakage risk assessment result of the battery based on the position offset includes:
[0070] If the battery is not leaking, obtaining a difference between the position offset and a preset specification value;
[0071] According to the difference, the leakage risk level of the battery is determined and a leakage risk assessment result representing the leakage risk level is output; wherein the difference is positively correlated with the leakage risk level.
[0072] The leakage risk level is divided according to the difference between the position offset and the preset specification value. The larger the difference, the higher the leakage risk level, and vice versa. This makes it easy for users to intuitively understand the leakage risk of the battery and take appropriate countermeasures in a timely manner.
[0073] In a second aspect, an embodiment of the present application provides a liquid leakage detection device, comprising:
[0074] An image acquisition unit, configured to acquire an image of the battery to be processed;
[0075] An image recognition unit, configured to recognize the image to be processed and obtain an adapter sheet image and a top cover image;
[0076] A leakage detection unit is used to determine whether the battery is leaking based on the adapter image and the top cover image.
[0077] In a third aspect, the present application provides a liquid leakage detection device, comprising a memory, a processor, and a computer program stored in the memory and runnable on the processor, and also comprising a camera, or being communicatively connected to a camera, wherein when the processor executes the computer program, the steps of the liquid leakage detection method as described above are implemented.
[0078] In a fourth aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the liquid leakage detection method described above are implemented.
[0079] It can be understood that the beneficial effects of the second to fourth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here.
[0080] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0081] Various other advantages and benefits will become apparent to those skilled in the art upon reading the detailed description of the preferred embodiment below. The accompanying drawings are for illustration purposes only and are not to be considered as limiting the present application. The same reference numerals are used throughout the drawings to represent the same components. In the drawings:
[0082] FIG1 is a schematic diagram of the inner side of the adapter plate and top cover assembly structure of a battery provided in an embodiment of the present application;
[0083] FIG2 is a schematic cross-sectional view of the assembly structure of the adapter plate and top cover of the battery provided in an embodiment of the present application, taken along the X direction of the camera coordinate system;
[0084] FIG3 is a schematic diagram of a cross-sectional structure of a top cover of a battery along the X direction in a camera coordinate system according to an embodiment of the present application;
[0085] FIG4 is a schematic diagram of a cross-sectional structure of a battery adapter along the X direction of the camera coordinate system in a camera coordinate system according to an embodiment of the present application;
[0086] FIG5 is a schematic diagram of the relative positional relationship between the center of the pole hole and the center of the convex hull in the camera coordinate system provided by an embodiment of the present application;
[0087] FIG6 is a schematic diagram of a first flow chart of a liquid leakage detection method provided in an embodiment of the present application;
[0088] FIG7 is a schematic diagram of a second flow chart of a liquid leakage detection method provided in an embodiment of the present application;
[0089] FIG8 is a schematic diagram of a third flow chart of the liquid leakage detection method provided in an embodiment of the present application;
[0090] FIG9 is a schematic diagram of a fourth flow chart of the liquid leakage detection method provided in an embodiment of the present application;
[0091] FIG10 is a schematic diagram of a fifth flow chart of the liquid leakage detection method provided in an embodiment of the present application;
[0092] FIG11 is a schematic diagram of a first identification area provided in an embodiment of the present application;
[0093] FIG12 is a schematic diagram of a second identification area provided in an embodiment of the present application;
[0094] FIG13 is a schematic diagram of a third identification area provided in an embodiment of the present application;
[0095] FIG14 is a sixth flow chart of the liquid leakage detection method provided in an embodiment of the present application;
[0096] FIG15 is a schematic diagram showing the dimensions of the adapter plate and the top cover provided in an embodiment of the present application;
[0097] FIG16 is a seventh flow chart of the liquid leakage detection method provided in an embodiment of the present application;
[0098] FIG17 is a schematic structural diagram of a liquid leakage detection device provided in an embodiment of the present application;
[0099] FIG18 is a schematic structural diagram of a liquid leakage detection device provided in an embodiment of the present application;
[0100] Figure Number:
[0101] Liquid leakage detection device 10, image acquisition unit 11, image recognition unit 12, liquid leakage detection unit 13;
[0102] Liquid leakage detection device 20, processor 21, memory 22, computer program 23;
[0103] Adapter 100, top cover 200;
[0104] Convex hull 110, sheet body 120, convex hull sidewall 111, convex hull opening 112, convex hull bottom 113;
[0105] Pole 202, sealing ring 204, lower plastic 206, top cover 208, pole hole 210;
[0106] The circle C1 where the pole hole 210 is located, the center O1 where the pole hole 210 is located, the circle C2 where the convex opening 112 is located, and the center O2 where the convex opening 112 is located;
[0107] Design value of the convex hull draft angle α, design value of the outer diameter of the convex hull opening 112 b, design value of the inner diameter of the convex hull bottom 113 c, design value of the outer diameter of the pole hole 210 a, design value of the thickness of the lower plastic 206 of the top cover 200 t, design value of the outer diameter of the convex hull 110 parallel to the bottom of the lower plastic 206 d;
[0108] The first identification area 221 , the second identification area 222 , and the third identification area 223 . Modes for Carrying Out the Invention
[0109] The following embodiments of the technical solution of the present application will be described in detail with reference to the accompanying drawings. The following embodiments are only used to more clearly illustrate the technical solution of the present application and are therefore only examples and are not intended to limit the scope of protection of the present application.
[0110] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those skilled in the art 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" and any variations thereof in the specification and claims of this application and the above-mentioned figure descriptions are intended to cover non-exclusive inclusions.
[0111] In the description of the embodiments of this application, the technical terms "first" and "second" are used only to distinguish different objects and should not be understood to indicate or imply relative importance or implicitly specify the quantity, specific order, or primary and secondary relationship of the indicated technical features. In the description of the embodiments of this application, the meaning of "plurality" is more than two, unless otherwise clearly and specifically defined.
[0112] References herein to "embodiments" mean that a particular feature, structure, or characteristic described in connection with the embodiments may be included in at least one embodiment of the present application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor does it constitute an independent or alternative embodiment that is mutually exclusive of other embodiments. It is understood, both explicitly and implicitly, by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0113] In the description of the embodiments of this application, the term "and / or" is simply a description of the association relationship between associated objects, indicating that three relationships can exist. For example, A and / or B can represent three situations: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this document generally indicates that the associated objects are in an "or" relationship.
[0114] In the description of the embodiments of the present application, the term "multiple" refers to more than two (including two). Similarly, "multiple groups" refers to more than two groups (including two groups), and "multiple pieces" refers to more than two pieces (including two pieces).
[0115] In the description of the embodiments of the present application, the technical terms "center", "longitudinal", "lateral", "length", "width", "thickness", "up", "down", "front", "back", "left", "right", "vertical", "horizontal", "top", "bottom", "inside", "outside", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc., indicating the orientation or position relationship, are based on the orientation or position relationship shown in the accompanying drawings, and are only for the convenience of describing the embodiments of the present application and simplifying the description, and do not indicate or imply that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the embodiments of the present application.
[0116] In the description of the embodiments of the present application, unless otherwise expressly specified or limited, technical terms such as "installed," "connected," "connected," and "fixed" should be understood in a broad sense. For example, they can refer to fixed connections, detachable connections, or integration; mechanical connections or electrical connections; direct connections or indirect connections through an intermediate medium; internal connections between two components or interactions between two components. Those skilled in the art can understand the specific meanings of the above terms in the embodiments of the present application based on specific circumstances.
[0117] Currently, market developments indicate that power batteries are becoming increasingly widely used. They are not only used in energy storage systems such as hydropower, thermal, wind, and solar power plants, but are also widely used in electric vehicles like electric bicycles, electric motorcycles, and electric vehicles, as well as in military equipment and aerospace. As power battery applications continue to expand, market demand is also growing.
[0118] Referring to Figures 1 to 5 , the adapter 100 is generally a stamped part. The top cover 200 is typically composed of a terminal 202, a sealing ring 204, a lower plastic 206, and a top cover 208. The lower plastic 206 has a designed thickness t. The adapter 100 is formed with a convex 110 extending toward the top cover 200 and a plate 120 connected to the periphery of the convex 110. The convex 110 includes a convex sidewall 111 and a convex bottom 113. The convex 110 is formed with a convex opening 112. The angle between the plate 120 and the convex sidewall 111 is referred to as the "convex draft angle." In this embodiment, the letter α represents the designed value of the convex draft angle. The top cover 208 defines a terminal hole 210. During assembly, the convex 110 of the adapter 100 is inserted into the terminal hole 210, contacting the top of the terminal 202 exposed from the terminal hole 210 and being welded together. The sealing ring 204 is arranged between the convex 110 and the pole hole 210, that is, between the convex side wall 111 and the hole wall of the pole hole 210. The lower plastic 206 is arranged between the sheet 120 and the top cover sheet 208 to ensure the insulation reliability of the adapter sheet 100 and the top cover sheet 208, and to ensure the corrosion resistance and safety of the battery cell.
[0119] Referring to Figures 1 to 5, in the actual manufacturing process, there is often a certain assembly deviation between the adapter 100 and the top cover 200, and this assembly deviation is mainly reflected in the assembly deviation between the bulge 110 of the adapter 100 and the pole hole 210 of the top cover 200. During the welding process of the adapter 100 and the top cover 200, due to poor welding technology, when the assembly deviation between the adapter 100 and the top cover 200 is too large, the sealing ring 204 on the top cover 200 will be burned, causing the adapter 100 and the top cover 208 to short-circuit, and eventually causing the battery cell to corrode and leak, affecting the service stability and safety of the power battery, and forming a risky battery cell. At present, after the adapter 100 and the top cover 200 are welded, manual visual inspection is usually used to check the assembly deviation between the adapter 100 and the top cover 200, which has poor reliability and there is a risk of leakage.
[0120] 1 to 5 , if the bump 110 of the adapter 100 is deformed, for example, there is an external protrusion (i.e., an inner groove), after the adapter 100 and the top cover 200 are assembled, the deformed bump 110 will cause the gap between the mounting sealing ring 204 of the bump 110 of the adapter 100 and the pole hole 210 of the top cover 200 to be uneven, squeezing the sealing ring 204 to cause irregular deformation, resulting in a poor seal, thereby posing a risk of leakage.
[0121] 1 to 5 , the short circuit between the adapter 100 and the top cover 208 specifically refers to the following: the sealing ring 204 between the bulge 110 of the adapter 100 and the pole hole 210 of the top cover 200 may be caused by contact with each other after being burned. If the width of the gap for installing the sealing ring 204 is less than a certain value, that is, the assembly offset between the adapter 100 and the top cover 200 exceeds a certain range, it can be considered that the sealing ring 204 has been completely or partially burned, thereby posing a risk of leakage.
[0122] 1 to 5 , generally, among components of batteries of the same specification, the shape of the convex 110 of the adapter 100 and the pole hole 210 of the top cover 200 are centrally symmetrical. The geometric parameters of the convex 110 of the adapter 100 are fixed, the geometric parameters of the pole hole 210 of the top cover 200 are also fixed, and the design value α of the convex draft angle and the design value t of the thickness of the lower plastic 206 are also fixed. 5 , the geometric parameters of the pole hole 210 include the circle C1 and the center O1 where the pole hole 210 is located. The center O1 where the pole hole 210 is located is the center O1 of the pole hole 210. The geometric parameters of the convex hull 110 include the circle C2 and the center O2 where the convex hull opening 112 is located. The center O2 where the convex hull opening 112 is located is the center O2 of the convex hull opening 112. It can be understood that the center O2 where the convex hull opening 112 is located is also the center of the convex hull 110 and the convex hull bottom 113 in the image of the sample shown in FIG1 . After in-depth research, the applicant found that the gap between the bulge 110 of the adapter 100 and the wall of the pole hole 210 of the top cover 200 is not easy to be directly detected, and found that by detecting the positions of the center O2 of the bulge 110 of the adapter 100 and the center O1 of the pole hole 210 of the top cover 200, and through the position offset of the two centers O1 and O2, it can be determined whether the width of the gap between the bulge 110 of the adapter 100 and the wall of the pole hole 210 of the top cover 200 meets the specification value, and the position offset can be used to evaluate whether the battery cell has a risk of leakage.
[0123] Thus, an embodiment of the present application provides a leakage detection method, which can be applied to a leakage detection device, and is executed by the processor of the leakage detection device when running a computer program with corresponding functions, and is used to perform quality inspection on batteries during the production process of the batteries, for example, for leakage detection of a battery assembly having an adapter and a top cover, and can also be used to perform leakage detection on a completely assembled battery, by performing image recognition on an image to be processed containing the adapter and the top cover, to obtain an adapter image and a top cover image, and then, based on the assembly position of the adapter in the adapter image and the top cover in the top cover image, to determine whether the assembly position between the entity's adapter and the top cover meets the expected design, if the assembly position meets the expected design, it is determined that the battery is not leaking, otherwise it is determined that the battery is leaking, affecting the stability and safety of the battery in service, this leakage detection method based on image recognition can simply, efficiently and accurately detect whether the battery is leaking, reduce the possibility of human error in manual visual inspection, and improve the reliability of the detection results.
[0124] In applications, leakage detection equipment can be a personal computer, industrial computer, server, etc. that can communicate with a camera to obtain images captured by the camera for processing. It can also be a mobile phone, laptop, tablet computer, ultra-mobile personal computer (UMPC), netbook, personal digital assistant (PDA), machine vision inspection equipment, etc. with an integrated camera. The camera can be an RGB camera or a depth camera based on a charge-coupled device (CCD) or complementary metal-oxide-semiconductor (CMOS). The depth camera can be an RGB-D camera.
[0125] 6 , the leakage detection method provided in the embodiment of the present application includes the following steps S100 to S300:
[0126] Step S100, obtaining the image of the battery to be processed, and proceeding to step S200.
[0127] In the application, the image to be processed can be pre-collected and stored by the leakage detection equipment, or it can be collected in real time. The pre-collected and stored image to be processed can be called up when the battery needs to be leaked. The number of acquisitions and the acquisition frequency of real-time acquisition can be set according to actual needs. It can be collected only once, or it can be collected continuously for a preset number of times at a preset acquisition frequency, and then one or more images with higher clarity are selected from the multiple images to be processed. The image to be processed includes a foreground image and a background image. The foreground image includes the adapter and the top cover, and the background image can include other components of the battery besides the adapter and the top cover, or the detection platform for placing the battery.
[0128] In step S200 , the image to be processed is recognized to obtain an adapter sheet image and a top cover image, and then the process proceeds to step S300 .
[0129] In applications, image recognition methods such as semantic segmentation, instance segmentation, thresholding, K-means clustering, histogram-based image segmentation, edge detection, and deep learning-based image segmentation can be used to segment the foreground and background images in the image to be processed, thereby obtaining the adapter plate image and top cover image belonging to the foreground image. If multiple images to be processed of the same battery are collected, and if it is not possible to simultaneously obtain high-definition images of the adapter plate and top cover based on the same image to be processed, high-definition images of the adapter plate and top cover can be obtained based on two different images to be processed.
[0130] Step S300: Determine whether the battery is leaking based on the adapter image and the top cover image.
[0131] In applications, the assembly positions of the adapter in the adapter image and the top cover in the top cover image can be used to determine whether the physical assembly position between the adapter and top cover meets the expected design. If the assembly position meets the expected design, the battery is confirmed to be leak-free. Otherwise, the battery is leaking, affecting the stability and safety of the battery in service. This image recognition-based leakage detection method can simply, efficiently, and accurately detect battery leakage, reducing the possibility of human error in manual visual inspection and improving the reliability of detection results.
[0132] In an application, after determining whether a battery is leaking, the corresponding leakage detection result can be output using any human-computer interaction method supported by the leakage detection device. The leakage detection result can include both leakage and non-leakage conditions. The leakage detection device can be communicatively connected to a display or integrated with a display. The human-computer interaction methods supported by the leakage detection device may include, but are not limited to, display or voice broadcast.
[0133] 7 , in some embodiments of the present application, step S200 includes the following steps S210 to S220:
[0134] Step S210 , grayscale processing is performed on the image to be processed to obtain a grayscale image, and then the process proceeds to step S220 .
[0135] In applications, image grayscale processing methods such as maximum method, average method, weighted average method, etc. can be used to process the image to be processed into a grayscale image.
[0136] Step S220 , obtaining an adapter plate image and a top cover image according to the grayscale difference between the adapter plate and the top cover in the grayscale image.
[0137] In this application, grayscale images show grayscale differences between the background, adapter, and top cover. Based on these grayscale differences, a grayscale recognition method based on image segmentation methods, such as semantic segmentation, instance segmentation, thresholding, K-means clustering, histogram-based image segmentation, edge detection, and deep learning-based image segmentation, is used to segment the foreground and background images in the grayscale image, obtaining images of the adapter and top cover belonging to the foreground image. If multiple images of the same battery are collected and high-resolution images of the adapter and top cover cannot be obtained simultaneously from the same image, two different grayscale images can be obtained from two different images, and then high-resolution images of the adapter and top cover can be obtained from each of the two different grayscale images. Alternatively, multiple grayscale images can be obtained from multiple images of the same battery, and then two different grayscale images can be selected from these images to obtain high-resolution images of the adapter and top cover. This grayscale recognition-based image recognition method can simply, efficiently, and accurately identify images of different components in the image.
[0138] In some embodiments of the present application, step S220 may include or be equivalently replaced by: obtaining a sheet image, a convex hull image, and a top cover image according to grayscale differences among the sheet, the convex hull, and the top cover in the grayscale image.
[0139] In the application, the adapter sheet image includes a sheet body image and a convex hull image. The adapter sheet image and top cover image can be first obtained based on the grayscale image, and then the sheet body image and convex hull image can be obtained based on the grayscale difference between the sheet body and the convex hull in the adapter sheet image. Alternatively, the background image, sheet body image, convex hull image, and top cover image can be obtained directly based on the grayscale difference between the background, sheet body, convex hull, and top cover in the grayscale image. The convex hull image and top cover image are selected, and the assembly position of the convex hull in the convex hull image and the top cover in the top cover image are used to determine whether the assembly position between the physical adapter sheet and top cover meets the expected design.
[0140] 8 , in some embodiments of the present application, step S300 includes the following steps S310 and S320:
[0141] Step S310 , obtaining the position offset between the adapter plate and the top cover according to the adapter plate image and the top cover image, and then proceeding to step S320 .
[0142] In application, the position offset between the adapter and the top cover can be specifically reflected as the position offset between the detection areas preset in the adapter. The detection area may include but is not limited to the center (for example, the center of the convex hull and the center of the pole hole) preset for determining the position offset between the adapter and the top cover, the center of the feature area (for example, any edge or corner point) or the partial area (for example, the upper left area, the lower left area, the upper right area or the lower right area). The position offset can be reflected as a straight-line distance or a relative position relationship, and the relative position relationship can be the coordinate difference in the same coordinate system. In the case where the detection area is the center, step S301 can be equivalently replaced by: obtaining the position offset between the convex hull and the top cover based on the convex hull image and the top cover image.
[0143] Step S320: Determine whether the battery is leaking based on the position offset.
[0144] In the application, the position offset between the adapter and the top cover in the adapter image is used to determine the position offset between the adapter and the top cover in the top cover image, and then the assembly position between the adapter and the top cover is determined to be consistent with the expected design based on the position offset. If the assembly position is consistent with the expected design, it is determined that the battery is not leaking; otherwise, it is determined that the battery is leaking, affecting the stability and safety of the battery service. This leakage detection method based on image recognition and position offset calculation can simply, efficiently and accurately detect whether the battery is leaking, reduce the possibility of human error in manual visual inspection, and improve the reliability of the detection results.
[0145] 9 , in some embodiments of the present application, step S310 includes the following steps S311 and S312:
[0146] Step S311 , according to the adapter sheet image and the top cover image, determining the detection area of the adapter sheet in the adapter sheet image and the detection area of the top cover in the top cover image, and then proceeding to step S312 .
[0147] In applications, different detection methods can be used to locate the detection area, depending on the detection area. For example, edge detection methods can be used to detect edges, corner detection methods can be used to detect corners, and grounding referring expressions methods can be used to detect partial areas. Once edges and corners are located, spatial fitting methods can be used to fit the center based on the positions of the edges or corners. If the detection area is centered, step S311 can be equivalently replaced by determining the detection area of the convex hull in the convex hull image based on the convex hull image.
[0148] Step S312 , obtaining a position offset between a detection area of the adapter sheet in the adapter sheet image and a detection area of the top cover in the top cover image, thereby obtaining a position offset between the adapter sheet and the top cover.
[0149] In the application, by further performing image recognition on the adapter plate image and the top cover image, the detection area of the adapter plate in the adapter plate image and the detection area of the top cover in the top cover image are determined. The position offset between the two detection areas can be used to simply, efficiently and accurately determine the position offset between the physical adapter plate and the top cover.
[0150] 10 , in some embodiments of the present application, step S311 includes the following steps S3111 to S3114:
[0151] Step S3111, according to the adapter image, determine the contour of the convex hull in the adapter image, and proceed to step S3112.
[0152] In application, when the detection area of the adapter includes the center of the convex hull, the contour detection method can be directly used to detect the contour of the convex hull in the adapter image, or the edge detection method can be used to first detect the edge of the adapter in the adapter image, and then the contour detection method can be used to detect the contour of the convex hull in the edge of the adapter. The contour detection method can be: based on the shape of the preset contour of the adapter, the shape in the adapter image that is the same as the shape of the contour of the adapter is matched to determine the contour of the adapter. Since the contour of the adapter includes the contour of the sheet and the contour of the convex hull, the shape that is the same as the shape of the contour of the convex hull is further matched from the contour of the adapter to determine the contour of the convex hull according to the shape of the preset contour of the convex hull. Since the adapter image includes the convex hull image, the contour detection method can also be: based on the shape of the preset contour of the convex hull, the shape in the convex hull image that is the same as the shape of the contour of the image is matched to determine the contour of the convex hull.
[0153] Step S3112: determining the center of the convex hull in the adapter image according to the contour of the convex hull in the adapter image.
[0154] In the application, after determining the contour of the convex hull in the adapter image, a spatial fitting method is used to fit the contour of the convex hull in the adapter image to determine its center. The center of the convex hull is the geometric center of the convex hull, and its specific location depends on the shape of the convex hull. For example, if the convex hull is circular, the center of the convex hull is the center of the circle containing the convex hull. If the convex hull is a regular polygon, the center of the convex hull is the center of the circumscribed circle of the convex hull. This image recognition method based on contour detection and spatial fitting can simply, efficiently, and accurately determine the center of the convex hull in the adapter image.
[0155] Step S3113, determine the outline of the top cover in the top cover image according to the top cover image, and proceed to step S3114.
[0156] In an application, when the detection area of the top cover includes the center of the top cover's pole hole, a contour detection method can be directly used to detect the top cover's contour in the top cover image, or an edge detection method can be first used to detect the top cover's edge in the top cover image, and then a contour detection method can be used to detect the top cover's contour from the top cover's edge. The contour detection method can specifically be: based on a preset top cover contour shape, a shape in the top cover image that is identical to the top cover contour is matched to determine the top cover's contour. Since the top cover's contour includes the sheet's contour and the convex hull's contour, a shape that is identical to the convex hull's contour is further matched from the top cover's contour based on the preset convex hull's contour shape to determine the convex hull's contour.
[0157] Step S3114, determining the center line and the marked area of the top cover in the top cover image according to the outline of the top cover in the top cover image, and then proceeding to step S3115;
[0158] Step S3115 : determining the center of the pole hole of the top cover in the top cover image according to the center line of the top cover in the top cover image and the relative positional relationship between the center of the pole hole of the top cover and the marked area.
[0159] In the application, after determining the contour of the top cover edge in the top cover image, a spatial fitting method is used to further determine the centerline of the top cover in the top cover image based on the contour of the top cover in the top cover image. Finally, the spatial fitting method is used to determine the center of the top cover's pole hole in the top cover image based on the relative positional relationship between the top cover's centerline in the top cover image and the center of the pole hole in the top cover and the marked area. This image recognition method based on edge detection, contour detection, and spatial fitting can simply, efficiently, and accurately determine the center of the pole hole in the top cover image.
[0160] 1 , the method for determining the centerline of the top cover 200 in the top cover image may be as follows: determining three sides of the top cover 200 in the top cover image according to the outline of the top cover 200 in the top cover image, the three sides of the top cover 100 including two opposite sides 201 and 203 in the outline edge of the top cover and an edge 205 connected to the two sides; determining the midpoints of two opposite sides 201 and 203 in the three sides of the top cover 200 in the top cover image according to the two opposite sides 201 and 203; determining the centerline of the top cover 200 in the top cover image according to the midpoints of the two opposite sides 201 and 203 in the three sides of the top cover 200 in the top cover image and the remaining edge 205.
[0161] In the application, the straight line recognition tool can be used to determine any three sides of the top cap in the top cap image, the midpoint recognition tool can be used to determine the midpoints of two opposite sides of the three sides of the top cap in the top cap image, and the straight line recognition tool can be used to determine the centerline of the top cap in the top cap image.
[0162] In the application, the outline of the top cover in the top cover image includes an identification area. The identification area of the top cover is an area, groove, etc. of any regular shape (for example, rectangle, circle, etc.) set on the top cover and used to identify different types of top covers. The relative position relationship between the center of the pole hole of the top cover and the identification area can be the distance between the two or the relationship between the position coordinates.
[0163] FIG11 exemplarily shows a partial outline of the top cover 200 in the top cover image, wherein the first identification area 221 is shown as a rectangle.
[0164] FIG12 exemplarily shows a partial outline of the top cover 200 in the top cover image, wherein the second identification area 222 is shown as a circle.
[0165] FIG13 exemplarily shows a partial outline of the top cover 200 in the top cover image, wherein the third identification area 223 is shown as a groove.
[0166] In some embodiments of the present application, step S312 includes the following steps:
[0167] Get the distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image to obtain the position offset between the adapter and the top cover.
[0168] In applications, when the detection area of the adapter includes the center of the convex hull and the detection area of the top cover includes the center of the pole hole of the top cover, the position offset can be reflected as the distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image in the camera coordinate system. The distance can be calculated by setting the X-axis and Y-axis of the camera coordinate system parallel to the bottom of the convex hull, and the square root of the square of the difference between the X-axis coordinates and the Y-axis coordinates between the two centers is the distance between the two centers. For example, if the coordinates of the center of the pole hole are set to (x1, y1) and the coordinates of the center of the convex hull are set to (x2, y2), then the distance S1 between the two centers is [(x2-x1)]. 2 +(y2-y1) 2 ] 1 / 2 By taking the distance between the two centers as the position offset, the amount of calculation is small, and the position offset can be determined simply, efficiently, and accurately.
[0169] FIG5 exemplarily shows the distance S1 between the center O2 of the convex hull and the center O1 of the polar hole when the center O2 of the convex hull is set as the coordinate origin (0,0) of the camera coordinate system and the coordinates of the center O1 of the polar hole are (x1,y1).
[0170] 14 , in some embodiments of the present application, step S320 includes the following steps S3211 to S3214:
[0171] Step S3211, obtaining a first distance between the convex bulge and the top cover according to the outer diameter design values of the convex bulge opening of the adapter and the outer diameter design values of the terminal hole, and then proceeding to step S3213;
[0172] Step S3212: Obtain a second distance between the convex hull and the top cover based on the design value of the lower plastic thickness of the top cover and the design value of the convex hull draft angle, and proceed to step S3213;
[0173] Step S3213, determining a preset specification value according to the first distance value and the second distance value, and proceeding to step S3214;
[0174] In step S3214, if the position offset does not match the preset specification value, it is determined that the battery is leaking.
[0175] 15 , when the distance between the center of the convex hull 110 in the adapter image and the center of the pole hole 210 in the top cover image is used as the position offset, the difference between the outer diameter design value a of the pole hole 210 and the outer diameter design value b of the convex hull opening 112 can be obtained based on the outer diameter design value b of the adapter and the outer diameter design value a of the pole hole 210, that is, the first distance value R1:
[0176] R1=ab;
[0177] Based on the thickness design value t of the lower plastic 206 of the top cover and the convex hull draft angle design value α, the difference between the outer diameter design value b of the hull opening 112 and the outer diameter design value d of the hull position parallel to the bottom of the lower plastic 206 can be obtained, that is, the second distance value R2:
[0178] R2=2*t*tan(α-90°);
[0179] The sum of the first distance value R1 and the second distance value R2 is calculated to obtain the design value of the distance (i.e., the position offset) between the center of the convex hull 110 in the adapter image and the center of the pole hole 210 in the top cover image, which is also the preset specification value R:
[0180] R=R1+R2=a-b+2*t*tan(α-90°);
[0181] Based on the magnitude relationship between the position offset and the preset specification value, it can be determined whether the battery is leaking. Specifically, if the position offset does not match the preset specification value, it is determined that the battery is leaking; otherwise, it is determined that the battery is not leaking. A first method for determining whether the position offset matches the preset specification value is: if the position offset is greater than the preset specification value, the position offset does not match the preset specification value; if the position offset is less than or equal to the preset specification value, the position offset matches the preset specification value. A second method for determining whether the position offset matches the preset specification value is: if the difference between the position offset and the preset specification value is greater than the maximum design error of the preset specification value, the position offset does not match the preset specification value; if the difference between the position offset and the preset specification value is less than or equal to the maximum design error of the preset specification value, the position offset matches the preset specification value. This method of determining whether a battery is leaking based on the magnitude relationship between the position offset and the preset specification value can simply, efficiently, and accurately detect battery leakage, reducing the possibility of human error during manual visual inspection and improving the reliability of the detection results.
[0182] 16 , in some embodiments of the present application, step S320 includes the following steps S3221 to S3224:
[0183] Step S3221: derive a first distance between the convex hull and the top cover according to the inner diameter design value of the convex hull bottom of the adapter and the outer diameter design value of the terminal hole, and then proceed to step S3223;
[0184] Step S3222: derive a second distance between the convex hull and the top cover based on the design value of the lower plastic thickness of the top cover and the design value of the convex hull draft angle, and proceed to step S3223;
[0185] Step S3223, determining a preset specification value according to the first distance value and the second distance value, and proceeding to step S3224;
[0186] In step S3224, if the position offset does not match the preset specification value, it is determined that the battery is leaking.
[0187] 15 , when the distance between the center of the convex hull 110 in the adapter image and the center of the pole hole 210 in the top cover image is used as the position offset, the difference between the design value c of the inner diameter of the convex hull bottom 113 of the adapter and the design value a of the outer diameter of the pole hole 210 can be obtained, that is, the first distance value R1:
[0188] R1=ac;
[0189] Based on the thickness design value t of the lower plastic 206 of the top cover and the convex draft angle design value α, the difference between the outer diameter design value b of the convex opening 112 and the outer diameter design value d of the convex position parallel to the bottom of the lower plastic 206 can be obtained, that is, the second distance value R2:
[0190] R2=2*t*tan(α-90°);
[0191] Calculate the difference between the first distance value R1 and the second distance value R2 to obtain the design value of the distance (i.e., the position offset) between the center of the convex hull 110 in the adapter image and the center of the pole hole 210 in the top cover image, which is also the preset specification value R:
[0192] R=R1+R2=ac-2*t*tan(α-90°);
[0193] Based on the magnitude relationship between the position offset and the preset specification value, it can be determined whether the battery is leaking. Specifically, if the position offset does not match the preset specification value, it is determined that the battery is leaking; otherwise, it is determined that the battery is not leaking. A first method for determining whether the position offset matches the preset specification value is: if the position offset is greater than the preset specification value, the position offset does not match the preset specification value; if the position offset is less than or equal to the preset specification value, the position offset matches the preset specification value. A second method for determining whether the position offset matches the preset specification value is: if the difference between the position offset and the preset specification value is greater than the maximum design error of the preset specification value, the position offset does not match the preset specification value; if the difference between the position offset and the preset specification value is less than or equal to the maximum design error of the preset specification value, the position offset matches the preset specification value. This method of determining whether a battery is leaking based on the magnitude relationship between the position offset and the preset specification value can simply, efficiently, and accurately detect battery leakage, reducing the possibility of human error during manual visual inspection and improving the reliability of the detection results.
[0194] In some embodiments of the present application, step S312 includes the following steps:
[0195] The horizontal coordinate difference and the vertical coordinate difference between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image are obtained to obtain the position offset between the adapter and the top cover.
[0196] In applications, when the detection area of the adapter includes the center of the convex hull and the detection area of the top cover includes the center of the top cover's post hole, the position offset can be expressed as the horizontal and vertical coordinate differences between the center of the convex hull in the adapter image and the center of the post hole in the top cover image in the camera coordinate system. The distance can be calculated by setting the X-axis and Y-axis of the camera coordinate system parallel to the bottom of the convex hull, and the X-axis coordinate difference between the two centers is the horizontal coordinate difference, and the Y-axis coordinate difference is the vertical coordinate difference. For example, if the coordinates of the post hole center are set to (x1, y1) and the coordinates of the convex hull center are set to (x2, y2), then the horizontal coordinate difference between the two centers is x2-x1, and the vertical coordinate difference is y2-y1, and the position offset is expressed as (x2-x1, y2-y1). By using the difference between the horizontal and vertical coordinates as the position offset, compared to using the distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image as the position offset, the calculation amount is smaller, and the position offset can be determined more simply, efficiently, and accurately.
[0197] In some embodiments of the present application, step S320 includes the following steps:
[0198] Obtaining the design values of the abscissa difference and ordinate difference between the center of the convex hull and the center of the pole hole to obtain the preset specification value;
[0199] If the position offset does not match the preset specification value, it is determined that the battery is leaking.
[0200] In the application, the horizontal coordinate difference x2-x1 and the vertical coordinate difference y2-y1 between the center of the convex hull in the adapter image and the center of the terminal hole in the top cover image are used as the position offset (x2-x1, y2-y1). Based on the design value x0 of the horizontal coordinate difference and the design value y0 of the vertical coordinate difference between the center of the convex hull and the center of the terminal hole, the preset specification value (x0, y0) is obtained. Based on the magnitude relationship between the position offset (x2-x1, y2-y1) and the preset specification value (x0, y0), the battery leakage is determined. Specifically, if the position offset (x2-x1, y2-y1) does not match the preset specification value (x0, y0), the battery is determined to be leaking; otherwise, the battery is determined to be not leaking. This method of determining whether a battery is leaking based on the magnitude relationship between the position offset and the preset specification value can simply, efficiently, and accurately detect battery leakage, reduce the possibility of human error in manual visual inspection, and improve the reliability of the detection results.
[0201] In the application, the first method for determining whether the position offset (x2-x1, y2-y1) matches the preset specification value (x0, y0) is: if the horizontal coordinate difference x2-x1 is greater than the design value x0 of the horizontal coordinate difference, or the vertical coordinate difference y2-y1 is greater than the design value y0 of the vertical coordinate difference, then the position offset (x2-x1, y2-y1) does not match the preset specification value (x0, y0); if the horizontal coordinate difference x2-x1 is less than or equal to the design value x0 of the horizontal coordinate difference, and the vertical coordinate difference y2-y1 is less than or equal to the design value y0 of the vertical coordinate difference, then the position offset (x2-x1, y2-y1) matches the preset specification value (x0, y0).
[0202] In the application, a second method for determining whether the position offset (x2-x1, y2-y1) matches the preset specification value (x0, y0) is as follows: if the difference between the horizontal coordinate difference x2-x1 and the design value x0 of the horizontal coordinate difference is greater than the maximum design error of the design value x0 of the horizontal coordinate difference, or the difference between the vertical coordinate difference y2-y1 and the design value y0 of the vertical coordinate difference is greater than the maximum design error of the design value y0 of the vertical coordinate difference, then the position offset (x2-x1, y2-y1) does not match the preset specification value (x0, y0); if the difference between the horizontal coordinate difference x2-x1 and the design value x0 of the horizontal coordinate difference is less than or equal to the maximum design error of the design value x0 of the horizontal coordinate difference, and the difference between the vertical coordinate difference y2-y1 and the design value y0 of the vertical coordinate difference is less than or equal to the maximum design error of the design value y0 of the vertical coordinate difference, then the position offset (x2-x1, y2-y1) matches the preset specification value (x0, y0).
[0203] In some embodiments of the present application, step S100 includes the following steps:
[0204] Acquire the image of the battery to be processed by the camera;
[0205] Step S312 includes:
[0206] According to the positions of the detection area of the adapter in the adapter image and the detection area of the top cover in the top cover image in the camera coordinate system, and the predetermined relative position relationship between the same point in the camera coordinate system and the world coordinate system, the position offset of the adapter and the top cover in the world coordinate system is obtained.
[0207] In applications, the camera can instantly capture images of the battery to be processed, facilitating real-time inspection. Based on the predetermined relative positional relationship between the same location in the camera coordinate system and the world coordinate system, the virtual positions of the adapter inspection area in the adapter image and the top cover inspection area in the top cover image in the camera coordinate system can be converted to their real positions in the world coordinate system. This allows the real relative positional relationship (i.e., position offset) of the adapter and top cover in the world coordinate system to be determined based on the real positions of the two inspection areas in the world coordinate system.
[0208] In some embodiments of the present application, before obtaining the image of the battery to be processed by a camera, the process includes:
[0209] Acquire an image of a calibration plate at a preset position through a camera;
[0210] According to the position of the same point in the image of the calibration plate and the calibration plate, the relative position relationship of the same point in the camera coordinate system and the world coordinate system is determined.
[0211] In applications, the calibration plate can be a film calibration plate. By using the calibration plate to determine the relative position relationship between the camera coordinate system and the world coordinate system, the camera image of the battery to be processed can be directly processed and output as the actual position offset between the center of the convex hull and the center of the terminal hole in the world coordinate system, making it easy for users to intuitively understand the test results.
[0212] In some embodiments of the present application, after step S300, the following steps are further included:
[0213] If the battery is not leaking, the battery leakage risk assessment result is obtained and output based on the position offset.
[0214] In application, the leakage detection method provided in the embodiments of the present application can not only determine whether a battery is leaking based on the position offset, but also assess the battery's leakage risk based on the position offset when the battery is not leaking. This allows the user to take appropriate countermeasures based on the leakage risk, such as adjusting the assembly position between the adapter and the top cover to prevent possible leakage and thus prevent problems before they occur. The leakage risk assessment result can be positively correlated with the position offset or the difference between the position offset and the preset specification value. The leakage detection device can output the leakage risk assessment result through the human-computer interaction method it supports (for example, display or voice broadcast).
[0215] In some embodiments of the present application, if the battery is not leaking, a battery leakage risk assessment result is obtained and output based on the position offset, including:
[0216] If the battery is not leaking, obtain the difference between the position offset and the preset specification value;
[0217] According to the difference, the leakage risk level of the battery is determined and a leakage risk assessment result representing the leakage risk level is output; wherein the difference is positively correlated with the leakage risk level.
[0218] In applications, the leakage risk assessment result can be a leakage risk level. The larger the difference between the position offset and the preset specification value, the higher the leakage risk level, and vice versa. Multiple leakage risk levels corresponding to multiple continuous difference intervals can be pre-set according to actual needs. The leakage risk level of the battery can be determined based on whether the difference between the position offset and the preset specification value falls into the difference interval. The leakage detection device can output the leakage risk assessment result representing the leakage risk level through the human-computer interaction method it supports (for example, display or voice broadcast). By dividing the leakage risk level according to the difference between the position offset and the preset specification value, it is convenient for users to intuitively understand the leakage risk of the battery, so that they can take appropriate countermeasures in a timely manner.
[0219] It should be understood that the size of the serial numbers of the steps in the above method embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of this application.
[0220] The present application also provides a liquid leakage detection device for performing the steps of the above-mentioned liquid leakage detection method embodiment. The liquid leakage detection device can be a virtual appliance in the liquid leakage detection device, which is run by the processor of the liquid leakage detection device, or it can be the liquid leakage detection device itself.
[0221] 17 , the liquid leakage detection device 10 provided in an embodiment of the present application includes:
[0222] An image acquisition unit 11 is used to acquire an image of the battery to be processed;
[0223] An image recognition unit 12 is used to recognize the image to be processed and obtain an image of the adapter sheet and an image of the top cover;
[0224] The leakage detection unit 13 is used to determine whether the battery is leaking based on the adapter image and the top cover image.
[0225] In some embodiments of the present application, the image acquisition unit is further configured to acquire an image of a calibration plate at a preset position through a camera;
[0226] The image recognition unit is further used to determine the relative position relationship of the same point in the camera coordinate system and the world coordinate system based on the image of the same point in the calibration plate and the position of the same point in the calibration plate.
[0227] In some embodiments of the present application, the leakage detection unit is further configured to obtain and output a leakage risk assessment result of the battery based on the position offset if the battery is not leaking.
[0228] In application, each unit in the liquid leakage detection device may be a software program unit, or may be implemented by different logic circuits integrated in a processor, or may be implemented by multiple distributed processors.
[0229] 18 , an embodiment of the present application further provides a liquid leakage detection device 20 , comprising: at least one processor 21 (only one processor is shown in FIG18 ), a memory 22 , and a computer program 23 stored in the memory 22 and executable on at least one processor 21 . When the processor 21 executes the computer program 23 , the steps in each of the above-mentioned liquid leakage detection method embodiments are implemented.
[0230] In practice, the leakage detection device may include, but is not limited to, a memory and a processor. Those skilled in the art will appreciate that Figure 18 is merely an example of a leakage detection device and does not limit the scope of the device. The device may include more or fewer components than shown, or a combination of certain components, or different components. For example, it may also include input / output devices, network access devices, and the like. Input / output devices may include cameras, audio capture / playback devices, displays, keyboards, and buttons. Network access devices may include a communication unit for communicating with other devices.
[0231] In applications, a processor can be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field programmable gate arrays (FPGA), other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor can be a microprocessor or any conventional processor.
[0232] In applications, in some embodiments, the memory can be an internal storage unit of the leak detection device, such as the device's hard drive or memory. In other embodiments, the memory can also be an external storage device of the leak detection device, such as a plug-in hard drive, a Smart Media Card (SMC), a Secure Digital (SD) card, a flash memory card, etc. Furthermore, the memory can include both the internal storage unit of the leak detection device and an external storage device. The memory is used to store operating systems, application programs, boot loaders, data, and other programs, such as computer program code. The memory can also be used to temporarily store data that has been output or is about to be output.
[0233] In applications, the communication unit can be configured as any device capable of directly or indirectly communicating with other devices via wired or wireless communication, as needed. For example, the communication unit can provide communication solutions for network devices, including communication interfaces (e.g., Universal Serial Bus (USB), wired local area networks (LAN), wireless local area networks (WLAN) (e.g., Wi-Fi networks), Bluetooth, Zigbee, mobile communication networks, global navigation satellite systems (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), and the like. The communication unit can include an antenna, which can have a single element or an antenna array comprising multiple elements. The communication unit receives electromagnetic waves via the antenna, frequency modulates and filters the electromagnetic wave signals, and then transmits the processed signals to the processor. The communication unit can also receive signals to be transmitted from the processor, frequency modulate and amplify them, and then convert them into electromagnetic waves for radiation via the antenna.
[0234] It should be noted that the information interaction, execution process, etc. between the above-mentioned devices / units are based on the same concept as the method embodiment of this application. Their specific functions and technical effects can be found in the method embodiment section and will not be repeated here.
[0235] Those skilled in the art can clearly understand that, for the convenience and brevity of description, only the division of the above-mentioned functional units is used as an example for illustration. In actual applications, the above-mentioned functions can be distributed and completed by different functional units as needed, that is, the internal structure of the device can be divided into different functional units to complete all or part of the functions described above. The functional units in the embodiment can be integrated into one processing unit, or each unit can exist physically alone, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, and will not be repeated here.
[0236] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the liquid leakage detection method of any of the above embodiments is implemented.
[0237] An embodiment of the present application further provides a computer program product. When the computer program product is run on a liquid leakage detection device, the liquid leakage detection device executes the liquid leakage detection method of any of the above embodiments.
[0238] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, it can implement the steps of the above-mentioned various method embodiments. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include at least: any entity or device that can carry the computer program code to the leakage detection device, a recording medium, a computer memory, a read-only memory (ROM), a random access memory (RAM), an electrical carrier signal, a telecommunications signal and a software distribution medium. For example, a USB flash drive, a mobile hard disk, a magnetic disk or an optical disk.
[0239] In the above embodiments, the description of each embodiment has its own focus. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant description of other embodiments.
[0240] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented with electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed by hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of this application.
[0241] In the embodiments provided in this application, it should be understood that the disclosed devices, leakage detection equipment and methods can be implemented by other methods. For example, the embodiments of the devices and leakage detection equipment described above are merely schematic. For example, the division of units is merely a logical function division. In actual implementation, there may be other division methods, such as two or more units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0242] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the various embodiments of the present application, and should all be included in the scope of protection of the present application.
Claims
1. A method for detecting liquid leakage, characterized in that: include: Acquire the image of the battery to be processed; Identify the image to be processed to obtain an adapter image and a top cover image; Determine whether the battery is leaking according to the adapter image and the top cover image.
2. The liquid leakage detection method according to claim 1, wherein: The step of identifying the image to be processed to obtain the adapter image and the top cover image includes: Performing grayscale processing on the image to be processed to obtain a grayscale image; An adapter plate image and a top cover image are obtained according to the grayscale difference between the adapter plate and the top cover in the grayscale image.
3. The liquid leakage detection method according to claim 2, wherein: The adapter sheet includes a sheet body and a convex hull provided on the sheet body, and the adapter sheet image includes a sheet body image and a convex hull image; The step of obtaining an adapter sheet image and a top cover image according to a grayscale difference between the adapter sheet and the top cover in the grayscale image includes: According to the grayscale differences among the sheet body, the convex hull and the top cover in the grayscale image, a sheet body image, a convex hull image and a top cover image are obtained.
4. The liquid leakage detection method according to any one of claims 1 to 3, characterized in that: The determining whether the battery is leaking according to the adapter image and the top cover image includes: Obtaining a position offset between the adapter plate and the top cover according to the adapter plate image and the top cover image; Whether the battery is leaking is determined according to the position offset.
5. The liquid leakage detection method according to claim 4, wherein: The obtaining, based on the adapter plate image and the top cover image, a position offset between the adapter plate and the top cover, includes: Determining, according to the adapter sheet image and the top cover image, a detection area of the adapter sheet in the adapter sheet image and a detection area of the top cover in the top cover image; The position offset between the detection area of the adapter plate in the adapter plate image and the detection area of the top cover in the top cover image is acquired to obtain the position offset between the adapter plate and the top cover.
6. The liquid leakage detection method according to claim 5, wherein: The detection area of the adapter plate includes the center of the convex hull of the adapter plate, and the detection area of the top cover in the top cover image includes the center of the pole hole of the top cover; The determining, based on the adapter sheet image and the top cover image, a detection area of the adapter sheet in the adapter sheet image and a detection area of the top cover in the top cover image includes: Determine, according to the adapter sheet image and the top cover image, a contour of the adapter sheet in the adapter sheet image and a contour of the top cover in the top cover image; Determining the center of the convex hull in the adapter image according to the outline of the adapter in the adapter image; Determining a center line and a marked area of the top cover in the top cover image according to the outline of the top cover in the top cover image; The center of the pole hole of the top cover in the top cover image is determined according to the center line of the top cover in the top cover image and the relative positional relationship between the center of the pole hole of the top cover and the marked area.
7. The liquid leakage detection method according to claim 6, wherein: The acquiring the position offset between the detection area of the adapter sheet in the adapter sheet image and the detection area of the top cover in the top cover image to obtain the position offset between the adapter sheet and the top cover includes: The distance between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image is obtained to obtain the position offset between the adapter and the top cover.
8. The liquid leakage detection method according to claim 7, wherein: The determining whether the battery is leaking according to the position offset includes: Obtaining a first distance between the convex portion and the top cover according to a design value of an outer diameter of the convex portion of the adapter and a design value of an outer diameter of the terminal hole; Obtaining a second distance between the convex hull and the top cover according to a design value of the lower plastic thickness of the top cover and a design value of the convex hull draft angle; Determining a preset specification value according to the first distance value and the second distance value; If the position offset does not match the preset specification value, it is determined that the battery is leaking.
9. The liquid leakage detection method according to claim 7, wherein: The determining whether the battery is leaking according to the position offset includes: Obtaining a first distance between the convex hull and the top cover according to a design value of an inner diameter of the convex hull bottom of the adapter and a design value of an outer diameter of the pole hole; Obtaining a second distance value between the convex hull and the top cover according to a design value of the lower plastic thickness of the top cover and a design value of the convex hull draft angle; Determining a preset specification value according to the first distance value and the second distance value; If the position offset does not match the preset specification value, it is determined that the battery is leaking.
10. The liquid leakage detection method according to claim 6, wherein: The acquiring the position offset between the detection area of the adapter sheet in the adapter sheet image and the detection area of the top cover in the top cover image to obtain the position offset between the adapter sheet and the top cover includes: The horizontal coordinate difference and the vertical coordinate difference between the center of the convex hull in the adapter image and the center of the pole hole in the top cover image are obtained to obtain the position offset between the adapter and the top cover.
11. The liquid leakage detection method according to claim 10, wherein: The determining whether the battery is leaking according to the position offset includes: Obtaining design values of the abscissa difference and the ordinate difference between the center of the convex hull and the center of the pole hole to obtain preset specification values; If the position offset does not match the preset specification value, it is determined that the battery is leaking.
12. The liquid leakage detection method according to any one of claims 5 to 11, characterized in that: The step of obtaining the image of the battery to be processed includes: Acquire the image of the battery to be processed through the camera; The acquiring the position offset between the detection area of the adapter sheet in the adapter sheet image and the detection area of the top cover in the top cover image to obtain the position offset between the adapter sheet and the top cover includes: According to the positions of the detection area of the adapter plate in the adapter plate image and the detection area of the top cover in the top cover image in the camera coordinate system, and the predetermined relative position relationship between the same point in the camera coordinate system and the world coordinate system, the position offset of the adapter plate and the top cover in the world coordinate system is obtained.
13. The liquid leakage detection method according to claim 12, wherein: Before obtaining the image of the battery to be processed by the camera, the method includes: Acquire an image of a calibration plate at a preset position through a camera; According to the image of the calibration plate and the position of the same point in the calibration plate, the relative position relationship of the same point in the camera coordinate system and the world coordinate system is determined.
14. The liquid leakage detection method according to claim 4, wherein: Also includes: If the battery is not leaking, a leakage risk assessment result of the battery is obtained based on the position offset and output.
15. The liquid leakage detection method according to claim 14, wherein: If the battery is not leaking, obtaining and outputting a leakage risk assessment result of the battery according to the position offset, includes: If the battery is not leaking, obtaining a difference between the position offset and a preset specification value; According to the difference, the leakage risk level of the battery is determined and a leakage risk assessment result representing the leakage risk level is output; wherein the difference is positively correlated with the leakage risk level.
16. A liquid leakage detection device, characterized in that: include: An image acquisition unit, configured to acquire an image of the battery to be processed; An image recognition unit, configured to recognize the image to be processed and obtain an adapter sheet image and a top cover image; A leakage detection unit is used to determine whether the battery is leaking based on the adapter image and the top cover image.
17. A liquid leakage detection device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein: It also includes a camera, or is in communication connection with a camera, and when the processor executes the computer program, the steps of the liquid leakage detection method according to any one of claims 1 to 15 are implemented.
18. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the liquid leakage detection method according to any one of claims 1 to 15 are implemented.
Citation Information
Patent Citations
Lead-acid storage battery non-contact liquid leakage detection device and method based on machine learning
CN110793722A
Storage battery liquid leakage detection method based on neural network and thermogram
CN111445462A
Battery cell top and side seal packaging quality detection method, electronic equipment and storage medium
CN113390351A
Battery sealing nail assembly detection method
CN114562940A
Inspection device for electrolyte leakage
JP2002246072A
