Battery detection device and method, electronic device, storage medium and program product

By building a dual-optical optical system, the height difference and gap between the battery case and the top cover are measured by using the light source projection and image acquisition device, the problem of low detection efficiency in the prior art is solved, and high-precision and high-adaptive battery detection is achieved.

CN120333308APending Publication Date: 2025-07-18JIANGSU CONTEMPORARY AMPEREX TECH LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510822633.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-19
Publication Date
2025-07-18

AI Technical Summary

Technical Problem

In the prior art, the height difference and gap detection efficiency between the battery case and the top cover are low, making it difficult to ensure the reliability of the battery pre-welding process.

Method used

A dual-light optical system is constructed using a light source projection device, a spectroscopic component, a first image acquisition device and a second image acquisition device. The light beam is projected to the detection area of the battery through the light source projection device, and the light beam is reflected and transmitted to different image acquisition devices by using the spectroscopic component to realize the overall measurement of the height difference and gap between the battery case and the top cover.

Benefits of technology

It improves the process quality of the battery pre-welding process, reduces production costs, enhances the flexibility and adaptability of the testing equipment, is suitable for inspection needs in different scenarios, and realizes high-precision detection of the battery case and the top cover.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120333308A_ABST
    Figure CN120333308A_ABST
Patent Text Reader

Abstract

The invention discloses a battery detection device and method, an electronic device, a storage medium and a program product. The battery detection equipment comprises a light source projection device, a light splitting assembly, a first image acquisition device and a second image acquisition device, the light source projection device is used for projecting a light source to a detection area of the battery, and the detection area comprises a shell and a top cover of the battery; the light splitting assembly is arranged in an area where the visual field of the first image acquisition device and the visual field of the second image acquisition device coincide and used for reflecting the light beams projected to the detection area to the first image acquisition device and transmitting the light beams projected to the detection area to the second image acquisition device; the first image acquisition device and the detection area are located on the same side of the light splitting assembly; the second image acquisition device and the detection area are located on two opposite sides of the light splitting assembly. According to the embodiment of the invention, the height difference and the gap between the battery shell and the top cover can be accurately detected, and the reliability of the battery pre-welding process is remarkably improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of batteries, and particularly to a battery detection device and method, an electronic device, a storage medium, and a program product. Background Art

[0002] In the battery shell assembly process, the assembly accuracy between the shell and the top cover will directly affect the quality of the subsequent welding process. When the height difference or gap between the shell and the top cover is too large, the laser in the pre-welding process is extremely likely to penetrate into the battery interior, causing burns to the battery electrode sheets and posing a great safety hazard to the production quality of the battery. Therefore, it is necessary to accurately detect the height difference and gap between the battery shell and the top cover.

[0003] In the related art, the battery shell assembly process is usually monitored by the method of point laser ranging. However, this method can only detect the height difference at one point each time, and it is impossible to detect the overall height difference between the battery aluminum shell and the top cover. At the same time, it is also difficult to synchronously detect the gap between the battery aluminum shell and the top cover. The efficiency of detecting the height difference and gap between the battery shell and the top cover is low, and the reliability of the battery pre-welding process needs to be improved.

[0004] The above statements are only used to provide background technical information related to the present application, and do not necessarily constitute prior art. Summary of the Invention

[0005] In view of the above problems, the present application provides a battery detection device and method, an electronic device, a storage medium, and a program product, which can solve the technical problems that the efficiency of detecting the height difference and gap between the battery shell and the top cover in the related art is low, and it is difficult to effectively ensure the reliability of the battery pre-welding process.

[0006] In a first aspect, the present application provides a battery detection device, including: a light source projection device, a beam splitting component, a first image acquisition device, and a second image acquisition device; The light source projection device is configured to project a light source onto a detection area of the battery, and the detection area includes the shell and the top cover of the battery; The beam splitting component is disposed in an area where the fields of view of the first image acquisition device and the second image acquisition device overlap, and is configured to reflect the light beam projected onto the detection area to the first image acquisition device, and transmit the light beam projected onto the detection area to the second image acquisition device; The first image acquisition device and the detection area are located on the same side of the beam splitting component; the second image acquisition device and the detection area are located on opposite sides of the beam splitting component.

[0007] In the technical solution of the embodiment of the present application, a dual - optical - path optical system design is constructed through a light - source projection device, a beam - splitting component, a first image acquisition device, and a second image acquisition device. Compared with the limitation of the prior art that can only detect the height difference between the battery case and the top cover at a single point, the present application can measure the two assembly parameters of the height difference and the gap between the battery case and the top cover as a whole through a set of equipment, saving the space occupied by the detection equipment and reducing the production cost; the system automatically adjusts the light source and the image acquisition device according to the task type, reducing manual intervention, improving the process quality of the battery pre - welding process, with small limitations and high universality.

[0008] In some embodiments of the application, the light - source projection device includes a light - source body and a programmable module electrically connected to the light - source body; the programmable module is used to adjust the beam parameters of the light beam emitted by the light - source body according to the detection task; the detection tasks include a height - difference detection task and a gap - width detection task, and the beam parameters include stripe shape and coding type; the light - source body is used to project corresponding beam stripes according to the beam parameters.

[0009] The embodiment of the present application controls the light - emitting parameters of the light - source body based on the programmable module, and can project light sources with different coding parameters according to different detection requirements, significantly improving the flexibility and adaptability of the detection system and meeting the detection requirements of different scenarios.

[0010] In some embodiments, the light - source projection device further includes a light - source adjustment component; the light - source adjustment component is used to adjust the relative position between the light - emitting port of the light - source body and the detection area.

[0011] In the embodiment of the present application, the angle, up - and - down, horizontal and vertical adjustment of the light - emitting port of the light source are realized through the light - source adjustment component, achieving the overall scanning of the entire battery assembly area, with a wider detection range, more comprehensive and reliable detection results. Moreover, it also improves the versatility and adjustment convenience of the detection equipment, adapts to the positions and sizes of different batteries, and enhances the practicality of the detection equipment.

[0012] In some embodiments of the present application, the beam - splitting component includes a half - reflecting and half - transmitting lens. In the present application, the beam of the same light source is split and reflected to the first image acquisition device and split and transmitted to the second image acquisition device through the half - reflecting and half - transmitting lens. Through a set of equipment, the two assembly parameters of the height difference and the gap between the battery case and the top cover can be measured as a whole. Through optical - path multiplexing, the equipment complexity is significantly reduced. Moreover, it also saves the space occupied by the battery detection equipment and reduces the production cost of the battery.

[0013] In some embodiments of the present application, the first image acquisition device includes a first position adjustment component; the first position adjustment component is used to adjust the relative position between the light inlet of the first image acquisition device and the detection area.

[0014] In the present application, the first position adjustment component finely adjusts the horizontal displacement, vertical height, and inclination angle of the light inlet of the first image acquisition device, which can ensure that the imaging plane of the first image acquisition device is accurately aligned with the reflection optical path corresponding to the battery detection area. At the same time, it can also reduce image distortion caused by installation errors or mechanical vibrations, and avoid missed detection of local areas of the battery due to viewing angle limitations. In addition, it can improve the versatility and adjustment convenience of the battery detection device, and can be applicable to batteries of different sizes and positions.

[0015] In some embodiments of the present application, the second image acquisition device includes a second position adjustment component; the light source adjustment component is used to adjust the relative position between the light inlet of the second image acquisition device and the detection area.

[0016] By finely adjusting the horizontal displacement, vertical height, and inclination angle of the light inlet of the second image acquisition device through the second position adjustment component, it can ensure that the imaging plane of the first image acquisition device is accurately aligned with the transmission optical path corresponding to the battery detection area. At the same time, it can also reduce image distortion caused by installation errors or mechanical vibrations, and avoid missed detection of local areas of the battery due to viewing angle limitations.

[0017] In some embodiments of the present application, the light source projection device further includes a light source heat dissipation component and a heat dissipation bracket. The light source heat dissipation component is fixed on the heat dissipation bracket, and the light source heat dissipation component is used to dissipate heat from the light source body.

[0018] Through the design of the light source heat dissipation component and the heat dissipation bracket in the embodiments of the present application, it can ensure that the light source works at an appropriate temperature, extend the service life of the light source projection device, and at the same time improve the stability of battery detection, and reduce the occurrence of failures of the battery detection device due to excessive temperature.

[0019] In some embodiments of the present application, the battery detection device further includes a dust-proof component, and the light source projection device, the beam splitting component, the first image acquisition device, and the second image acquisition device are all arranged inside the dust-proof component.

[0020] In the embodiments of the present application, the dust-proof component is used to protect each component in the detection device, avoiding the influence of dust on the detection results, and at the same time reducing the interference of ambient light on the detection results. In this way, not only the environmental requirements for optical detection are ensured, but also the reliability and stability of the detection results are improved.

[0021] In some embodiments of the present application, the battery detection device further includes a gantry, and the dust-proof component is disposed on the cross beam of the gantry.

[0022] In the embodiments of the present application, the battery detection device is installed and fixed through the gantry, which can be seamlessly integrated with the existing battery production line, and can realize the online detection of the height difference and gap between the battery case and the top cover. The automation level and efficiency of battery production are improved, manual intervention is reduced, production costs are lowered, and the overall production efficiency is enhanced.

[0023] In some embodiments of the present application, the second image acquisition device includes a binocular vision camera. In the embodiments of the present application, the binocular vision system can accurately capture the light spots projected by the coded light source on the battery surface, and a three-dimensional model corresponding to the battery detection area is constructed by using a three-dimensional measurement algorithm. It can not only improve the detection accuracy of the height difference between the battery case and the top cover, but also realize the surface scanning of the entire assembly area, with a wider detection range and more comprehensive and reliable detection results.

[0024] In some embodiments of the present application, the battery detection device further includes a position sensing device and a battery fixing device electrically connected to the position sensing device; The position sensing device is used to detect whether a battery exists at a preset detection position corresponding to the battery; The battery fixing device is used to fix the battery according to the detection signal sent by the position sensing device; the detection signal is used to indicate that a battery exists at the preset detection position.

[0025] In the embodiments of the present application, the preset detection station is monitored in real time through the position sensing device. When the battery is conveyed to the detection area, a detection signal is generated, further triggering the battery fixing device to fix the battery. No manual intervention is required, the detection time of the battery is reduced, and it can adapt to high-speed production lines. By rigidly fixing the battery during the detection process through the battery fixing device, the displacement deviation caused by the vibration, inertia of the conveyor belt or the placement error of the robotic arm can be eliminated, and the imaging consistency of the double optical paths of the battery detection device can be ensured.

[0026] In some embodiments of the present application, the position sensing device includes a through-beam laser sensor. In the present application, the through-beam laser sensor emits a laser beam through the transmitter and the receiver. When the battery enters the preset detection position, the optical path is blocked, and a high-level signal can be generated to trigger the battery fixing device to act, which can provide a reliable position reference for the subsequent battery fixing and detection processes.

[0027] In some embodiments of the present application, the battery fixing device includes a fixture and a driving component; the driving component is used to drive the fixture to clamp or loosen the battery. Through the collaborative design of the fixture and the driving component, the present application can not only accurately control the clamping force, taking into account battery protection and detection stability, but also achieve high-precision, high-speed and high-flexibility operation of battery fixing, solve the technical problems of traditional fixing methods relying on manual labor, low efficiency and poor adaptability, and is seamlessly linked with the position sensing and vision detection systems to achieve fully automated closed-loop detection of the battery.

[0028] In a second aspect, an embodiment of the present application provides a battery detection method, which includes: According to the task type of the current detection task, control the light source projection device to project the light beam corresponding to the task type onto the detection area of the battery; When the task type includes a gap width detection task, based on the first image acquisition device and the light beam reflected by the detection area, obtain the first image corresponding to the detection area, and determine the gap width between the housing and the top cover according to the first image; When the task type includes a height difference detection task, based on the second image acquisition device and the light beam transmitted by the detection area, obtain the second image corresponding to the detection area, and determine the height difference between the housing and the top cover according to the second image.

[0029] In the embodiment of the present application, by dynamically switching the light source projection mode and the image acquisition device according to the task type, it flexibly supports two tasks of gap detection and height difference detection between the housing and the top cover of the battery, meets the detection requirements of different structural parameters of the battery, and improves the versatility of the system. The system automatically adjusts the light source and the acquisition device according to the task type, reduces manual intervention, can achieve rapid switching and continuous detection, improves the process quality of the battery pre-welding process, has small limitations and high universality.

[0030] In some embodiments of the present application, when the task type includes a gap width detection task, the light beam corresponding to the task type is white light; the determining the gap width between the housing and the top cover according to the first image includes: Perform binarization processing on the first image to obtain the binarized image corresponding to the first image; Determine the gap area corresponding to the housing and the top cover in the binarized image; Calculate the diameter of the largest inscribed circle in the gap area, and use the diameter of the largest inscribed circle as the reference gap width; Determine the gap width between the housing and the top cover according to the spatial resolution corresponding to the reference gap width.

[0031] The embodiments of the present application combine optical imaging and gap measurement algorithms, which not only ensure high-precision detection of the battery but also take into account the reliability and efficiency in complex industrial scenarios, providing an efficient and accurate gap detection means for battery manufacturing.

[0032] In some embodiments of the present application, when the task type includes a height difference detection task, the light beam corresponding to the task type is three-dimensional structured light; determining the height difference between the housing and the top cover according to the second image includes: Extracting the phase information of each stripe in the second image to obtain a phase image; Creating three-dimensional data corresponding to the detection area of the battery according to the preset binocular vision calibration parameters and the phase image; Performing plane fitting on the first area corresponding to the top cover and the second area corresponding to the outer shell in the three-dimensional data respectively, and calculating the plane equation parameters of the first area and the second area; Calculating the height difference between the housing and the top cover based on the plane equation parameters.

[0033] The embodiments of the present application realize high-precision and anti-interference measurement of the height difference between the battery housing and the top cover through the high-resolution imaging and phase analysis technology of three-dimensional structured light, which can be applied to the automated quality inspection in complex industrial environments and provides reliable technical support for the process control of battery sealing.

[0034] In some embodiments of the application, it is determined that the battery meets the assembly requirements based on that the gap width between the housing and the top cover is less than or equal to a first threshold, and / or the height difference between the housing and the top cover is less than or equal to a second threshold.

[0035] The embodiments of the present application realize the refined control of the battery assembly quality while taking into account the detection efficiency through the dual-parameter threshold determination mechanism of the gap width and height difference between the housing and the top cover, significantly improving the reliability and consistency of battery production.

[0036] In a third aspect, the embodiments of the present application further provide an electronic device, including a memory and a processor. A computer program is stored in the memory, and the processor is configured to execute the battery detection method as described in the second aspect through the computer program.

[0037] In a fourth aspect, the embodiments of the present application further provide a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the battery detection method as described in the second aspect is realized.

[0038] Fifth aspect, an embodiment of the present application further provides a computer program product, including a computer program, and the computer program is executed by a processor to implement the battery detection method as described in the second aspect.

[0039] The above description is only an overview of the technical solution of the present application. In order to be able to understand the technical means of the present application more clearly, it can be implemented according to the content of the description. And in order to make the above and other purposes, features and advantages of the present application more obvious and understandable, the following specifically describes the specific embodiments of the present application. Description of the Drawings

[0040] By reading the detailed description of the preferred embodiments below, various other advantages and benefits will become clear to those of ordinary skill in the art. The drawings are only for the purpose of showing the preferred embodiments and are not considered to be a limitation of the present application. And in all the drawings, the same reference numerals are used to represent the same components. In the drawings: Figure 1 It is a schematic structural diagram of a battery detection device provided by an embodiment of the present application; Figure 2 It is a schematic structural diagram of another battery detection device provided by an embodiment of the present application; Figure 3 It is a schematic structural diagram of yet another battery detection device provided by an embodiment of the present application; Figure 4 It is a schematic structural diagram of another battery detection device provided by an embodiment of the present application; Figure 5 It is a schematic structural diagram of another battery detection device provided by an embodiment of the present application; Figure 6 It is a schematic structural diagram of a light source projection device in the battery detection device provided by an embodiment of the present application; Figure 7 It is a schematic side view of a battery detection device provided by an embodiment of the present application; Figure 8 It is a schematic front view of a battery detection device provided by an embodiment of the present application; Figure 9 It is a schematic internal structure diagram of a battery detection device provided by an embodiment of the present application; Figure 10 It is another schematic internal structure diagram of a battery detection device provided by an embodiment of the present application; Figure 11 It is a schematic structural diagram of another battery detection device provided by an embodiment of the present application; Figure 12 It is a schematic structural diagram of a second image acquisition device provided by an embodiment of the present application; Figure 13Structural schematic diagram of the first image acquisition device provided by an embodiment of the present application; Figure 14 Flow schematic diagram of a battery detection method provided by an embodiment of the present application; Figure 15 Flow schematic diagram of another battery detection method provided by an embodiment of the present application; Figure 16 Structural schematic diagram of an electronic device provided by an embodiment of the present application. Detailed implementation manners

[0041] Hereinafter, embodiments of the technical solutions 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 solutions of the present application, and thus are only examples and cannot be used to limit the protection scope of the present application.

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

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

[0044] Referring to "embodiments" herein means that specific features, structures or characteristics described in connection with the embodiments may be included in at least one embodiment of the present application. The phrase appears in various places in the specification and does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment mutually exclusive with other embodiments. Those skilled in the art will explicitly and implicitly understand that the embodiments described herein may be combined with other embodiments.

[0045] In the description of the embodiments of the present application, the term "and / or" is only a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist simultaneously, and B exists alone. In addition, the character " / " in this article generally represents an "or" relationship between the associated objects before and after.

[0046] In the description of the embodiments of the present application, the term "plurality" means two or more (including two). Similarly, "multiple groups" means two or more groups (including two groups), and "multiple sheets" means two or more sheets (including two sheets).

[0047] In the description of the embodiments of the present application, the orientation or positional relationship indicated by technical terms such as "center", "longitudinal", "lateral", "length", "width", "thickness", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", "clockwise", "counterclockwise", "axial", "radial", "circumferential", etc. is based on the orientation or positional relationship shown in the drawings. It is only for the convenience of describing the embodiments of the present application and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore should not be construed as a limitation to the embodiments of the present application.

[0048] In the description of the embodiments of the present application, unless otherwise clearly specified and limited, technical terms such as "installation", "connection", "connection", "fixation", etc. should be understood in a broad sense. For example, it can be a fixed connection, a detachable connection, or integrated; it can also be a mechanical connection or an electrical connection; it can be directly connected or indirectly connected through an intermediate medium, and it can be the communication inside two elements or the interaction relationship between two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the embodiments of the present application can be understood according to specific situations.

[0049] At present, the application of power batteries is becoming more and more extensive. Power batteries are not only used in energy storage power systems such as hydropower, thermal power, wind power, and solar power stations, but also widely used in electric transportation tools such as electric bicycles, electric motorcycles, and electric vehicles, as well as in multiple fields such as military equipment and aerospace. In the fields of electric transportation supply, military equipment, aerospace, etc., power is usually provided by batteries.

[0050] Among various types of power batteries, due to the advantages of high power density, high energy density, long cycle life, high output voltage, and environmental friendliness, lithium batteries are widely used in fields such as new energy vehicles, consumer electronics, and energy storage systems.

[0051] In the process of battery shell assembly, the assembly accuracy between the shell and the top cover will directly affect the quality of the subsequent welding process. When the height difference or gap between the shell and the top cover is too large, the laser in the pre-welding process is very likely to penetrate into the battery interior, causing burns to the battery electrode sheets and posing a great safety hazard to the production quality of the battery. Therefore, it is necessary to accurately detect the height difference and gap between the battery shell and the top cover.

[0052] In the related art, the height difference of a battery during the shell assembly process is usually monitored by a point laser ranging method. However, this method can only detect the height difference at one point each time, and it is impossible to detect the overall height difference between the battery aluminum shell and the top cover. At the same time, it is also difficult to synchronously detect the gap between the battery aluminum shell and the top cover. The efficiency of detecting the height difference and gap between the battery shell and the top cover is low, and the reliability of the battery pre-welding process needs to be improved.

[0053] Based on the above problems existing in the related art, an embodiment of the present application provides a battery detection device and method, an electronic device, a storage medium, and a program product. The battery detection device includes: a light source projection device, a beam splitting component, a first image acquisition device, and a second image acquisition device; the light source projection device is configured to project a light source onto a detection area of the battery, and the detection area includes the shell and the top cover of the battery; the beam splitting component is disposed in an area where the fields of view of the first image acquisition device and the second image acquisition device overlap, and is configured to reflect the light beam projected onto the detection area to the first image acquisition device, and transmit the light beam projected onto the detection area to the second image acquisition device; the first image acquisition device and the detection area are located on the same side of the beam splitting component; the second image acquisition device and the detection area are located on opposite sides of the beam splitting component.

[0054] In the technical solution of the embodiment of the present application, a dual-path optical system design is constructed by the light source projection device, the beam splitting component, the first image acquisition device, and the second image acquisition device. Compared with the limitation of the prior art that can only detect the height difference between the battery shell and the top cover at a single point, the present application can measure the two assembly parameters of the height difference and the gap between the battery shell and the top cover as a whole through a set of equipment, saving the space occupied by the detection device and reducing the production cost; the system automatically adjusts the light source and the image acquisition device according to the task type, reducing manual intervention, improving the process quality of the battery pre-welding process, and having small limitations and high universality.

[0055] In some embodiments of the present application, the battery can be, but is not limited to, a battery cell, a single battery, a battery module, or a battery pack, etc. The battery can be a battery of any chemical type, such as a lithium-ion battery, a nickel-cadmium battery, a nickel-metal hydride battery, a lead-acid battery, etc. The battery can be a battery of any shape and structure, such as a cylindrical battery, a flat battery, a soft-pack battery, a square battery, etc. The battery can be applied to any application scenario that requires the use of a battery. The battery can be used as a consumer electronics battery, such as for mobile phones, laptops, etc. The battery can also be used as an energy storage battery, and the battery can also be used as a power battery, such as for electric vehicles, electric bicycles, electric aircraft, electric ships, etc.

[0056] In some embodiments of the present application, the battery detection device is a device for precisely detecting the sealing of various parts of the battery during the battery production process. The battery detection device may be, but is not limited to, a cell detection device, a module detection device, a battery pack detection device, etc. Among them, the cell detection device, the module detection device, and the battery pack detection device may include, but are not limited to, a laser weld scanner, a radiographic imaging system, an optical scanner, etc.

[0057] The specific structure of the battery device of the present application will be described in detail below through specific embodiments. Refer to Figure 1 and Figure 2 The schematic structural diagram of the battery detection device shown, the battery detection device includes: a light source projection device 5, a beam splitting component 9, a first image acquisition device 7, and a second image acquisition device 6; The light source projection device 5 is used to project a light source onto the detection area of the battery 10, and the detection area includes the housing and the top cover of the battery 10; the light beam of the above light source can be white light or other spectra, or three-dimensional structured light, and the housing of the battery 10 can be an aluminum shell or other materials.

[0058] The first image acquisition device 7 and the detection area are on the same side of the beam splitting component 9; the second image acquisition device 6 and the detection area are on opposite sides of the beam splitting component 9. The first image acquisition device 7 is used to obtain a first image corresponding to the detection area according to the light beam reflected by the detection area, and determine the gap width between the housing and the top cover according to the first image; the second image acquisition device 6 is used to obtain a second image corresponding to the detection area according to the light beam transmitted by the detection area, and determine the height difference between the housing and the top cover according to the second image.

[0059] The beam splitting component 9 is arranged in the area where the fields of view of the first image acquisition device 7 and the second image acquisition device 6 overlap, and is used to reflect the light beam (light beam) projected onto the battery detection area to the first image acquisition device 7, and transmit the light beam projected onto the detection area to the second image acquisition device 6. Combining Figure 2 Shown, the above beam splitting component 9 can be a component that reflects and projects the light beam projected onto the battery detection area, such as a semi-reflective semi-transmissive lens or a prism, etc. Combining Figure 2 Shown, the light source projection device 5 projects the light source onto the detection area along the optical path I, and the light beam diffusely reflected by the battery surface is reflected to the first image acquisition device 7 along the optical paths II and III, and transmitted to the second image acquisition device 6 along the optical path IV.

[0060] It should be noted that the battery in the present application can be a cell, a single battery, a battery module, a battery pack (Pack), etc.

[0061] The embodiments of the present application have a parallel reflection and transmission dual-channel: through a beam splitting component, synchronous acquisition of reflected light (gap detection) and transmitted light (height difference detection) is achieved, without the need to switch devices or adjust workstations. Combining a multi-spectral light source and a dual-image acquisition device solves the technical problems of low detection efficiency and single detection function in traditional battery detection.

[0062] In the technical solution of the embodiments of the present application, a dual-optical path optical system design is constructed through a light source projection device, a beam splitting component, a first image acquisition device, and a second image acquisition device. Compared with the limitation of the prior art that can only detect the height difference between the battery case and the top cover at a single point, the present application can measure the two assembly parameters of the height difference and the gap between the battery case and the top cover as a whole through a set of equipment, saving the space occupied by the detection equipment and reducing the production cost; the system automatically adjusts the light source and the image acquisition device according to the task type, reducing manual intervention, improving the process quality of the battery pre-welding process, with small limitations and high universality.

[0063] In one or more embodiments of the present application, as Figure 3 shown, the light source projection device 5 includes a light source body 52 and a programmable module 55 electrically connected to the light source body 52; The programmable module 55 is used to adjust the beam parameters of the beam emitted by the light source body according to the detection task; the detection tasks include height difference detection tasks and gap width detection tasks, and the beam parameters include stripe shape and coding type; The light source body 52 is used to project a corresponding beam stripe according to the beam parameters.

[0064] Specifically, in the embodiments of the present application, the programmable module 55 can project light sources with different coding parameters according to different detection requirements. The above coding can be, for example, binary coding, Gray code coding, etc. Compared with the limitations of traditional fixed light sources, the present application can switch the beam parameters in real time through the programmable module 55 (such as switching the stripe shape from a sine grating to binary coding), and can seamlessly adapt to the different optical requirements of height difference detection and gap detection.

[0065] The embodiments of the present application control the light-emitting parameters of the light source body based on a programmable module, can project light sources with different coding parameters according to different detection requirements, significantly improve the flexibility and adaptability of the detection system, and can meet the detection requirements of different scenarios.

[0066] In one or more embodiments, as Figure 4 shown, the light source projection device 5 further includes a light source adjustment component; the light source adjustment component is used to adjust the relative position between the light output port of the light source body and the detection area, so that the beam stripe covers the detection area.

[0067] Specifically, in the embodiments of the present application, the light outlet of the light source is adjusted in terms of angle, up and down, horizontally, and vertically through the light source adjustment component. In one example, in combination with Figure 6 As shown, the light source projection device 5 is composed of a light source head 50, an angle fine-tuning knob 51, a light source body 52, a light source heat dissipation component 53, an angle adjustment fastener 54, etc. The angle fine-tuning knob 51 is used to adjust the light-emitting angle of the light source projection device 5. When adjusting the angle, the angle adjustment fastener 54 is loosened along the counterclockwise direction, and then the angle fine-tuning knob 51 is rotated one week along the clockwise / counterclockwise direction. The light-emitting angle is adjusted by 1° along the counterclockwise / clockwise direction, and the adjustment range is ±20°. After the light source angle adjustment is completed, the angle adjustment fastener 54 is tightened and fixed along the clockwise direction, so as to ensure that the light source body 52 emits light at an appropriate angle. The light source head is used for the formation of the light source beam.

[0068] In the embodiments of the present application, the light outlet of the light source is adjusted in terms of angle, up and down, horizontally, and vertically through the light source adjustment component, realizing the overall scanning of the entire battery assembly area, with a wider detection range, and the detection results being more comprehensive and reliable. Moreover, it also improves the versatility and adjustment convenience of the detection equipment, adapts to the positions and sizes of different batteries, and enhances the practicability of the detection equipment.

[0069] In one or more embodiments, as Figure 5 shown, the light source projection device 5 further includes a light source heat dissipation component 53 and a heat dissipation bracket (not shown in the figure). The light source heat dissipation component 54 is fixed on the heat dissipation bracket, and the light source heat dissipation component 54 is used to dissipate heat from the light source body. In one example, the above light source heat dissipation component 54 can be a blower, and the number of the above blowers can be one or more. The present application can realize turning on the corresponding number of blowers according to the temperature of the light source body.

[0070] Through the design of the light source heat dissipation component and the heat dissipation bracket in the embodiments of the present application, it can ensure that the light source works at an appropriate temperature, extends the service life of the light source projection device, and at the same time can also improve the stability of battery detection and reduce the occurrence of faults in the battery detection equipment due to excessive temperature.

[0071] In one or more embodiments, in combination with Figure 7 shown, the battery detection equipment of the present application further includes a dust-proof component 2. The light source projection device 5, the light splitting component 9, the first image acquisition device 7, and the second image acquisition device 6 are all arranged inside the dust-proof component 2. In one example, the above dust-proof component 2 can appear in the form of a dust-proof cover.

[0072] Specifically, in combination with Figure 7 and Figure 8As shown, the dust-proof component 2 is fixed on the device mounting plate 1, and the device mounting plate 1 is used to fix the components of the battery detection device. As Figure 9 and Figure 10 shown, the spectroscope component 9 is fixed on the device mounting plate 1 through the fixing bracket 8; the dust-proof component 2 is mainly used for dust prevention. While ensuring the use environment of the optical detection device, it also avoids the influence of ambient light on the imaging of the detection system, and can also resist the interference of stray light: through optical path isolation (such as separating the reflection and transmission paths) and lens shading design, the dust-proof component 2 can not only suppress the interference of ambient light and ensure the imaging stability in low-light scenarios (such as detecting the surface of a dark housing). The detection window 3 provided at the bottom of the dust-proof component is used to directly project the light source onto the battery sample to be detected, ensuring that the vision system can accurately image.

[0073] In one or more embodiments, in combination with Figure 11 shown, the battery detection device further includes a gantry 11, and the dust-proof component is arranged on the cross beam of the gantry.

[0074] In the embodiment of the present application, the above-mentioned gantry can also be replaced by a gantry crane. As Figure 11 shown, in the present application, the device mounting plate 1 and the dust-proof cover are installed and fixed on the gantry 11, and the moving module component on the gantry 11 can realize the detection of multiple stations of the detection device. The battery to be tested 10 is located directly below the battery detection device, and through the above adjustment method, it is ensured that the relative positions of the light source projection device 5, the first image acquisition device 7, and the second image acquisition device 6 with respect to the battery to be tested 10 are in a state where the optical path is reachable.

[0075] In the embodiment of the present application, the battery detection device is installed and fixed through the gantry, which can be seamlessly integrated with the existing battery production line, and can realize the online detection of the height difference and gap between the battery housing and the top cover. It improves the automation level and efficiency of battery production, reduces manual intervention, lowers production costs, and enhances the overall production efficiency.

[0076] In one or more embodiments, the second image acquisition device 6 includes a binocular vision camera. As Figure 12As shown, the binocular vision camera mainly consists of a lens 60, a camera 61, an angle fine-tuning knob 62, an up-down adjustment fastener 63, an up-down adjustment piece 64, an up-down fine-tuning knob 65, an adjustable block 66, an angle adjustment fastener 67, etc. The lens 60 and the camera 61 are used to capture the state characteristics of the structured light projected on the battery to be detected, and such state characteristics are the prerequisite for constructing the three-dimensional assembly drawing of the lithium battery top cover and the housing. To ensure the angle between the two cameras in the binocular vision camera and the sample to be detected, the angle can be adjusted and fixed after adjustment through the angle fine-tuning knob 62 and the angle adjustment fastener 66. The adjustment method is the same as that of the above light source and will not be elaborated here. To ensure the working distance of the binocular vision camera (i.e., the distance from the lens of the binocular vision camera to the surface of the battery to be detected), when adjusting the working distance of each camera, first turn the up-down adjustment fastener 63 counterclockwise to make the adjustment device in a loose state. Through the up-down fine-tuning knob 65, when rotating clockwise / counterclockwise one week, the adjustable block 66 can be adjusted down / up by 10 mm along the hole groove in the up-down adjustment piece 64, and the adjustment range is ±50 mm. When the appropriate working distance is adjusted, the angle adjustment fastener 67 can be rotated clockwise to fasten the adjustable block, thus realizing the adjustment of the working distance of the two cameras in the binocular vision camera. When performing three-dimensional measurement based on the binocular vision camera, there is no constraint on the spatial position of the light source projection device, and there is no need to calibrate the spatial attitude relationship between the light source and the binocular vision camera. Only the conventional binocular vision system needs to be calibrated, so that the flexibility and operability of the battery detection device can be greatly increased.

[0077] In the embodiment of the present application, the binocular vision system can accurately capture the light spot projected by the coded light source on the battery surface, and use the three-dimensional measurement algorithm to construct the three-dimensional model corresponding to the battery detection area. It can not only improve the detection accuracy of the height difference between the battery housing and the top cover, but also realize the surface scanning of the entire assembly area, with a wider detection range, and the detection results are more comprehensive and reliable.

[0078] In one or more embodiments, the above first image acquisition device 7 may be a high-resolution camera, such as Figure 13As shown in the figure, the high-resolution camera mainly includes components such as a horizontal adjustment piece 70, a horizontal adjustment fastener 71, a horizontal fine-tuning knob 72, a vertical adjustment fastener 73, a vertical adjustment piece 74, a camera 75, a lens 76, and a vertical fine-tuning knob 77. The horizontal adjustment piece 70 and the horizontal fine-tuning knob 72 can adjust the gap detection vision system in the horizontal direction. The horizontal adjustment fastener 71 is used for loosening and fixing the adjustment in the horizontal direction. One rotation of the horizontal fine-tuning knob 72 represents 10 mm, and the adjustment range is ±50 mm. Similarly, the vertical adjustment piece 74 and the vertical fine-tuning knob 77 can adjust the gap detection vision system in the vertical direction. The vertical adjustment fastener 73 is used for loosening and fixing the adjustment in the vertical direction. One rotation of the fine-tuning knob 77 represents 10 mm, and the adjustment range is ±30 mm. The camera 75 has a dynamic range of 140 DB and can achieve stable imaging when the battery cell to be measured is moving. In addition, the single-pixel accuracy of the camera 75 reaches 2.5 μm, which can meet the measurement accuracy requirements for various battery assembly detections.

[0079] In one or more embodiments, in combination with Figure 2 As shown in the figure, the beam splitting component 9 includes a semi-reflective and semi-transmissive lens.

[0080] In this application, the beam of the same light source is split and reflected by the semi-reflective and semi-transmissive lens to the first image acquisition device and split and transmitted to the second image acquisition device. Through a set of equipment, the overall measurement of two assembly parameters, namely the height difference and the gap between the battery case and the top cover, can be realized. Through the optical path multiplexing, the complexity of the equipment is significantly reduced. Moreover, the space occupied by the detection equipment is saved, and the production cost of the battery is reduced.

[0081] In one or more embodiments, the first image acquisition device includes a first position adjustment component; the first position adjustment component is used to adjust the relative position between the light incident port of the first image acquisition device and the detection area.

[0082] Specifically, in the embodiment of this application, as Figure 13 shown, the first position adjustment component of the first image acquisition device 7 includes a horizontal adjustment piece 70, a horizontal adjustment fastener 71, a horizontal fine-tuning knob 72, a vertical adjustment fastener 73, a vertical adjustment piece 74, and a vertical fine-tuning knob 77. The horizontal adjustment piece 70 and the horizontal fine-tuning knob 72 can adjust the first image acquisition device in the horizontal direction. The horizontal adjustment fastener 71 is used for loosening and fixing the adjustment in the horizontal direction. One rotation of the horizontal fine-tuning knob 72 represents 10 mm, and the adjustment range is ±50 mm. Similarly, the vertical adjustment piece 74 and the vertical fine-tuning knob 77 can adjust the gap detection vision system in the vertical direction. The vertical adjustment fastener 73 is used for loosening and fixing the adjustment in the vertical direction. One rotation of the fine-tuning knob 77 represents 10 mm, and the adjustment range is ±30 mm.

[0083] In the present application, the first position adjustment component is used to finely adjust the horizontal displacement, vertical height, and inclination angle of the light inlet of the first image acquisition device, which can ensure that the imaging plane of the first image acquisition device is accurately aligned with the reflection optical path corresponding to the battery detection area. At the same time, it can also reduce image distortion caused by installation errors or mechanical vibrations, and avoid missed detection of local areas of the battery due to viewing angle limitations. In addition, it can improve the versatility and adjustment convenience of the battery detection device, and can be applicable to batteries of different sizes and positions.

[0084] In one or more embodiments, in some embodiments of the present application, the second image acquisition device includes a second position adjustment component; the light source adjustment component is used to adjust the relative position between the light inlet of the second image acquisition device and the detection area.

[0085] Specifically, in the embodiments of the present application, as Figure 12 shown, the second position adjustment component of the second image acquisition device 6 includes an angle fine-tuning knob 62, an up-and-down adjustment fastener 63, an up-and-down adjustment plate 64, an up-and-down fine-tuning knob 65, an adjustable block 66, and an angle adjustment fastener 67. To ensure the angle between the two cameras and the sample to be detected in the binocular vision camera, the angle can be adjusted and fixed after adjustment through the angle fine-tuning knob 62 and the angle adjustment fastener 66. The adjustment method is the same as the adjustment method of the above light source, which will not be elaborated here. To ensure the distance from the light inlet of the second image acquisition device 6 to the surface of the battery to be detected, when adjusting the working distance of each camera, first rotate the up-and-down adjustment fastener 63 counterclockwise to make the adjustment device in a loose state. Through the up-and-down fine-tuning knob 65, for each clockwise / counterclockwise rotation of one week, the adjustable block 66 can be adjusted downward / upward by 10 mm along the hole groove in the up-and-down adjustment plate 64, and the adjustment range is ±50 mm. When the appropriate working distance is adjusted, the angle adjustment fastener 67 is rotated clockwise to fasten the adjustable block, thereby realizing the adjustment of the working distance of the two cameras in the second image acquisition device 6.

[0086] By finely adjusting the horizontal displacement, vertical height, and inclination angle of the light inlet of the second image acquisition device through the second position adjustment component, it can ensure that the imaging plane of the first image acquisition device is accurately aligned with the transmission optical path corresponding to the battery detection area. At the same time, it can also reduce image distortion caused by installation errors or mechanical vibrations, and avoid missed detection of local areas of the battery due to viewing angle limitations.

[0087] In one or more embodiments, the battery detection device further includes a position sensing device, and a battery fixing device electrically connected to the position sensing device; The position sensing device is used to detect whether a battery exists at a preset detection position corresponding to the battery; The battery fixing device is used to fix the battery according to the detection signal sent by the position sensing device; the detection signal is used to indicate that there is a battery at the preset detection position.

[0088] Specifically, the above-mentioned position sensing device can be, for example, a photoelectric sensor, a laser sensor or a vision positioning module. In the embodiment of the present application, the preset detection station is monitored in real time by the position sensing device. When the battery is conveyed to the detection area, a detection signal is generated, further triggering the battery fixing device to fix the battery. No manual intervention is required, the detection time of the battery is reduced, and it can adapt to high-speed production lines. By rigidly fixing the battery by the battery fixing device during the detection process, the displacement deviation caused by the vibration of the conveyor belt, inertia or the placement error of the robotic arm can be eliminated, and the imaging consistency of the double optical path of the battery detection device can be ensured.

[0089] In some embodiments of the present application, the position sensing device includes an opposed laser sensor. Specifically, the opposed laser sensor can be arranged on both sides of the preset detection position corresponding to the battery. In the present application, the opposed laser sensor emits a laser beam through the transmitting end and the receiving end. When the battery enters the preset detection position, the optical path is blocked, and a high-level signal can be generated to trigger the battery fixing device to act, which can provide a reliable position reference for the subsequent battery fixing and detection processes.

[0090] In some embodiments of the present application, the battery fixing device includes a fixture and a driving component; the driving component is used to drive the fixture to clamp or loosen the battery.

[0091] Specifically, the above-mentioned driving component can be a driving cylinder. Through the collaborative design of the fixture and the driving cylinder in the present application, not only can the clamping force of the fixture be accurately controlled, taking into account the stability of battery protection and detection, but also high-precision, high-speed and high-flexibility operations of battery fixing are realized, solving the technical problems of traditional fixing methods that rely on manual labor, low efficiency and poor adaptability. Moreover, it is seamlessly linked with the position sensing and vision detection systems, realizing the fully automated closed-loop detection of the battery.

[0092] The embodiment of the present application also provides a battery detection method. Refer to Figure 14 the flowchart of the battery detection method shown in S1402, according to the task type of the current detection task, control the light source projection device to project the beam corresponding to the task type onto the detection area of the battery; S1404, when the task type includes a gap width detection task, based on the first image acquisition device and the beam reflected by the detection area, obtain the first image corresponding to the detection area, and determine the gap width between the housing and the top cover according to the first image; S1406. When the task type includes the height difference detection task, based on the light beam transmitted by the second image acquisition device and the detection area, obtain the second image corresponding to the detection area, and determine the height difference between the housing and the top cover according to the second image.

[0093] Specifically, in the embodiments of the present application, the light beam corresponding to the gap width detection task type can be white light, and the light beam corresponding to the height difference detection task can be three-dimensional structured light.

[0094] Combined with Figure 2 and Figure 7 As shown, the light source projection device 5 projects the light source along the optical path I through the bottom detection window 3 to the detection area. The light beam diffusely reflected by the battery surface is reflected along the optical paths II and III to the first image acquisition device 7, and transmitted along the optical path IV to the second image acquisition device 6. Thus, the image information acquisition for the height difference and gap width detection of the battery is realized.

[0095] When the task type includes the gap width detection task, taking the battery housing as an aluminum shell as an example, a first image of the assembly gap after the battery is assembled into the shell can be obtained through a high-resolution camera (the first image acquisition device). The first image is processed by image gray processing to obtain a gray scale image. The above filtering and noise reduction algorithm can significantly reduce the influence of the reflection on the aluminum shell surface on the detection result. Finally, by capturing the contour where the white bright area and the black area meet in the denoised image, fitting the assembly gap contour of the aluminum shell and the top cover, the gap width between the battery housing and the top cover can be calculated.

[0096] When the task type includes the height difference detection task, control the programmable module of the light source projection device to project a specific coded light (such as black and white striped light) onto the surface of the battery to be measured, such as binary coding, Gray code coding, etc. Since the coding information of the coded image is known, when it is projected onto the battery to be measured, the surface of the battery to be measured also has the same coding information. According to the corresponding decoding method, the coded values corresponding to all feature points can be calculated. Then, according to all the parameters calibrated by the geometric model of the detection system and the rich information contained in the feature points, for example, using the triangulation algorithm, the depth information of the battery surface can be accurately restored. By combining a binocular vision camera with a programmable module to project a specific three-dimensional structured light onto the assembly area of the battery top cover and the aluminum shell, the three-dimensional point cloud information corresponding to the battery can be obtained; through a preset analysis algorithm, the three-dimensional information of the assembly area of the top cover and the aluminum shell can be obtained, and according to this three-dimensional information, the height difference between the battery housing and the top cover can be determined.

[0097] In the embodiments of the present application, the light source projection mode and the image acquisition device are dynamically switched according to the task type, flexibly supporting two tasks of detecting the gap between the housing and the top cover of the battery and detecting the height difference, meeting the detection requirements of different structural parameters of the battery, and improving the versatility of the system. The system automatically adjusts the light source and the acquisition device according to the task type, reduces manual intervention, realizes fast switching and continuous detection, improves the manufacturing quality of the battery pre-welding process, has small limitations and high universality.

[0098] In one or more embodiments, when the task type includes a gap width detection task, the light beam corresponding to the task type is white light; determining the gap width between the housing and the top cover according to the first image includes: Performing binarization processing on the first image to obtain a binarized image corresponding to the first image; Determining a corresponding gap region between the housing and the top cover in the binarized image; Calculating the diameter of the largest inscribed circle in the gap region, and taking the diameter of the largest inscribed circle as the gap reference width; Determining the gap width between the housing and the top cover according to the spatial resolution corresponding to the gap reference width.

[0099] Specifically, in the embodiments of the present application, the process of performing binarization processing on the first image includes: dividing the gray value of the first image into 0-m levels, and the pixel with gray value i is n i , then the total number of pixels N is:

[0100] Then the probability of occurrence of each gray value is:

[0101] Dividing the gray values into two groups (C0 and C1): the value range of C0 is {0~k}; the value range of C1 is {k+1~m}, then the probabilities of occurrence of the two groups are and , and Obtained through the following formula:

[0102]

[0103] Average value of C0 Obtained through the following formula:

[0104] Average value of C1 Obtained through the following formula:

[0105] where the average gray value when the threshold is k is:

[0106] the average gray value of the overall image is:

[0107] Then the average gray value of all samplings is:

[0108] Thus, the variance between the two groups C0 and C1 can be expressed by the following formula:

[0109] By changing the value of k from 0 to m, calculating the above formula to find its maximum value, the threshold can be obtained. Through this threshold, the first image can be binarized, that is, the points with gray values greater than the threshold are set to 1, otherwise set to 0. Thus, the binarized image corresponding to the first image can be obtained.

[0110] After that, determine the contour of the corresponding gap area between the housing and the top cover in the binarized image, and obtain two edge contour lines. Assume the two contours are L1 and L2 respectively.

[0111] For any point P(x1, y1) on the contour L1, calculate its distance d(P, Q) to all points Q(x2, y2) on the contour L2, and find the minimum distance d min (P).

[0112] The distance formula between two points is: d(P, Q)= At point P, find the normal direction of the point Q on L2 that is closest to P. The normal direction is perpendicular to the tangent direction of the contour line.

[0113] The radius r of the largest inscribed circle is the minimum distance d min (P) from point P to L2, and at the same time, the center of the circle is located on the line connecting P and Q.

[0114] The vertical distance d vertical is the diameter of the largest inscribed circle, that is: d vertical = 2r.

[0115] Traverse all point pairs (P, Q), find the maximum vertical distance d max among all the largest inscribed circles, which is the dimension of the gap reference width. Then, according to the spatial resolution corresponding to the gap reference width, the gap width between the housing and the top cover can be determined.

[0116] In one or more embodiments, when the task type includes a height difference detection task, the light beam corresponding to the task type is three-dimensional structured light; determining the height difference between the housing and the top cover according to the second image includes: Extracting the phase information of each stripe in the second image to obtain a phase image; Creating three-dimensional data corresponding to the detection area of the battery according to the preset binocular vision calibration parameters and the phase image; Performing plane fitting on the first area corresponding to the top cover and the second area corresponding to the outer shell in the three-dimensional data respectively, and calculating the plane equation parameters of the first area and the second area; Calculating the height difference between the housing and the top cover based on the plane equation parameters.

[0117] Specifically, in the embodiments of the present application, the light source body is controlled to project a set (for example, 3-4 images) of sine stripe patterns with a fixed step of phase difference (such as 90° or 120°) onto the surface of the battery top cover; the sine stripe image is represented by the following formula: I n (x, y)=A(x, y)+B(x, y)cos[ϕ(x, y)+δ n where, In is the nth stripe image, x and y represent the pixel coordinates on the sine stripe image, A is the background light intensity, B is the modulation light intensity, ϕ is the phase to be obtained, and δ n is the phase shift amount (such as 0°, 90°, 180°, 270°).

[0118] Then, the wrapped phase is solved from multiple stripe images through the following formula to obtain a phase image: ϕ( x , y )=arctan The preset binocular vision calibration parameters include the internal parameters for calibrating the binocular cameras: focal length f , principal point( u 0, v 0), distortion coefficients, and external parameters: rotation matrix R , translation vector T .

[0119] Creating three-dimensional data corresponding to the detection area of the battery according to the preset binocular vision calibration parameters and the phase image includes: Calculating the three-dimensional coordinates according to the disparity d of the points with the same phase value in the left and right camera phase images: Z= , X= , Y= ​​

[0120] wherein, T x is the baseline distance, (u, v) are pixel coordinates, and (X, Y, Z) are three-dimensional point coordinates. u 0 and v 0 are the principal point coordinates in the camera internal parameters.

[0121] Perform plane fitting on the first region corresponding to the top cover and the second region corresponding to the outer shell in the three-dimensional data respectively, and calculate the plane equation parameters of the first region and the second region; calculate the height difference between the housing and the top cover based on the plane equation parameters.

[0122] In one or more embodiments, the battery detection method further includes: Based on the gap width between the housing and the top cover being less than or equal to a first threshold, and / or the height difference between the housing and the top cover being less than or equal to a second threshold, determine that the battery meets the assembly requirements.

[0123] Through the dual-parameter threshold determination mechanism of the gap width and height difference between the housing and the top cover, the embodiments of the present application achieve refined control of the battery assembly quality while taking into account the detection efficiency, and significantly improve the reliability and consistency of battery production.

[0124] The embodiments of the present application also provide a battery detection method, as Figure 15 shown, and the method specifically includes the following steps: S1. When it is detected that the battery is at the detection position in the lithium battery outer shell equipment process, clamp the battery top cover and the aluminum shell through a cylinder to ensure that their positions relative to the detection device remain unchanged; S2. After determining that the battery position is fixed, trigger the battery detection device to start detection; S3. Control the programmable light source to project the encoded projection light onto the surface of the battery to be tested, and obtain the image corresponding to the battery through the first image acquisition device and the second image acquisition device.

[0125] S4. After processing the obtained image information through an algorithm, obtain the height difference data between the top cover and the aluminum shell, and the gap width of the height difference between the top cover and the aluminum shell; S5. Determine whether the gap width between the housing and the top cover is greater than or equal to a first threshold, and / or whether the height difference between the housing and the top cover is greater than or equal to a second threshold. If yes, go to step S6; if no, go to step S7.

[0126] S6. The battery does not meet the assembly requirements, and transfer to manual recheck.

[0127] S7. Determine that the battery meets the assembly requirements, and flow into the welding process to complete the laser welding of the lithium battery top cover and the aluminum shell.

[0128] This application proposes a device and method for detecting the steps and gaps in the assembly of lithium batteries into the casing. By ingeniously constructing a dual - optical - path optical system design with a binocular vision camera, a programmable projection light source, a high - dynamic - range and high - precision vision camera, and a semi - reflective and semi - transmissive lens, it breaks through the limitation of the prior art that can only detect steps. It can achieve online overall detection of the height difference and gap between the aluminum casing and the top cover, realize real - time online monitoring of the assembly quality, and avoid laser penetration into the battery interior due to excessive height difference or gap during the subsequent pre - welding process, which may cause pole piece burns, greatly reducing the quality risk of battery production and improving the process quality of the lithium - battery pre - welding process. Using the binocular vision combined with the coded projection technology to construct a height - difference measurement system, it realizes the overall surface - to - surface scanning of the assembly area between the top cover and the aluminum casing. Compared with the point - to - point scanning in the prior art, the detection range is wide, and the detection has higher detection accuracy and reliability. By constructing a battery gap detection system with a high - dynamic - range and high - precision camera, it can ensure stable and clear capture of the measured characteristic area during dynamic operation. The high - precision camera can meet the accuracy requirements for battery gap detection, and the detection results are more accurate and reliable. In addition, the detection device of the present invention has a high degree of integration and can be seamlessly integrated with the existing lithium - battery casing assembly production line, significantly improving the automation level and production efficiency of the production line.

[0129] The embodiment of this application also provides a battery detection device, which is used to execute the battery detection method provided in each of the above embodiments. The device includes: A projection unit, which controls the light - source projection device to project a beam corresponding to the task type onto the detection area of the battery according to the task type of the current detection task; A first determination unit, which is used to, when the task type includes a gap - width detection task, obtain a first image corresponding to the detection area based on the first image - acquisition device and the beam reflected by the detection area, and determine the gap width between the casing and the top cover according to the first image; A second determination unit, which is used to, when the task type includes a height - difference detection task, obtain a second image corresponding to the detection area based on the second image - acquisition device and the beam transmitted by the detection area, and determine the height difference between the casing and the top cover according to the second image.

[0130] In the technical solution of the embodiment of the present application, a dual-path optical system design is constructed by a light source projection device, a beam splitting component, a first image acquisition device, and a second image acquisition device. Compared with the limitation of the prior art that can only detect the height difference between the battery case and the top cover at a single point, the present application can measure the two assembly parameters of the height difference and the gap between the battery case and the top cover as a whole with a set of equipment, saving the space occupied by the detection equipment and reducing the production cost; the system automatically adjusts the light source and the image acquisition device according to the task type, reduces manual intervention, improves the manufacturing quality of the battery pre-welding process, and has small limitations and high universality.

[0131] Figure 16 It is a logical structural block diagram of an electronic device shown according to an exemplary embodiment. For example, the electronic device 1600 may be an electronic device such as a motor controller or a domain controller disposed inside an electrical device or an image acquisition device.

[0132] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory including instructions. The above instructions can be executed by a battery processor to complete the above battery detection method. The method includes: controlling the light source projection device to project a beam corresponding to the task type onto the detection area of the battery according to the task type of the current detection task; in the case where the task type includes a gap width detection task, obtaining a first image corresponding to the detection area based on the first image acquisition device and the beam reflected by the detection area, and determining the gap width between the case and the top cover according to the first image; in the case where the task type includes a height difference detection task, obtaining a second image corresponding to the detection area based on the second image acquisition device and the beam transmitted through the detection area, and determining the height difference between the case and the top cover according to the second image. Optionally, the above instructions can also be executed by a processor of the battery to complete other steps involved in the above exemplary embodiment. For example, the non-transitory computer-readable storage medium may be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, and an optical data storage device, etc.

[0133] In an exemplary embodiment, an application program / computer program product is further provided, including one or more instructions that can be executed by a processor of a battery to complete the above battery detection control method, and the method includes: controlling the light source projection device to project a light beam corresponding to the task type onto the detection area of the battery according to the task type of the current detection task; in the case where the task type includes a gap width detection task, obtaining a first image corresponding to the detection area based on the first image acquisition device and the light beam reflected by the detection area, and determining the gap width between the housing and the top cover according to the first image; in the case where the task type includes a height difference detection task, obtaining a second image corresponding to the detection area based on the second image acquisition device and the light beam transmitted through the detection area, and determining the height difference between the housing and the top cover according to the second image. Optionally, the above instructions can also be executed by a processor of the battery to complete other steps involved in the above exemplary embodiment. Figure 16 FIG. is an example diagram of an electronic device 1600. Those skilled in the art can understand that the schematic Figure 16 is merely an example of the electronic device 1600, and does not constitute a limitation on the electronic device 1600. It may include more or fewer components than shown in the figure, or combine certain components, or different components. For example, the electronic device 1600 may further include input / output devices, network access devices, buses, etc.

[0134] The so-called processor 1602 may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor, or the processor 1602 may also be any conventional processor, etc. The processor 1602 is the control center of the electronic device 1600, and connects various parts of the entire electronic device 1600 through various interfaces and lines.

[0135] The memory 1601 can be used to store computer-readable instructions. By running or executing the computer-readable instructions or modules stored in the memory 1601, and by invoking the data stored in the memory 1601, the processor 1602 realizes various functions of the electronic device 1600. The memory 1601 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the electronic device 1600. In addition, the memory 1601 may include a hard disk, a memory, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, at least one magnetic disk storage device, a flash memory device, a read-only memory (ROM), a random access memory (RAM), or other non-volatile / volatile storage devices.

[0136] If the modules integrated in the electronic device 1600 are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-described embodiment methods of this application, computer-readable instructions can also be used to instruct relevant hardware to complete. The computer-readable instructions can be stored in a computer-readable storage medium. When the computer-readable instructions are executed by a processor, the steps of the above various method embodiments can be implemented.

[0137] Those skilled in the art will readily think of other implementation schemes of this application after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptive changes of this application, which follow the general principles of this application and include the common general knowledge or conventional technical means in the technical field not disclosed in this application. The specification and embodiments are only regarded as exemplary, and the true scope and spirit of this application are pointed out by the following claims.

[0138] It should be understood that this application is not limited to the exact structure already described and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of this application is only limited by the appended claims.

[0139] The user information involved in this application (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data for analysis, stored data, displayed data, etc.) are all information and data that have been authorized by the user or fully authorized by all parties. Moreover, the collection, use, and processing of relevant data need to comply with the relevant laws, regulations, and standards of the relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or reject.

Claims

1. A battery detection device, characterized in that, Including: A light source projection device, a beam splitting component, a first image acquisition device, and a second image acquisition device; The light source projection device is configured to project a light source onto a detection area of the battery, and the detection area includes a housing and a top cover of the battery; The beam splitting component is disposed in an area where the fields of view of the first image acquisition device and the second image acquisition device overlap, and is configured to reflect the light beam projected onto the detection area to the first image acquisition device, and transmit the light beam projected onto the detection area to the second image acquisition device; The first image acquisition device and the detection area are located on the same side of the beam splitting component; the second image acquisition device and the detection area are located on opposite sides of the beam splitting component.

2. The battery detection device according to claim 1, wherein The light source projection device includes a light source body and a programmable module electrically connected to the light source body; The programmable module is configured to adjust the beam parameters of the light beam emitted by the light source body according to a detection task; the detection tasks include a height difference detection task and a gap width detection task, and the beam parameters include a stripe shape and a coding type; The light source body is configured to project a corresponding light beam stripe according to the beam parameters.

3. The battery detection device according to claim 2, characterized in that, The light source projection device further includes a light source adjustment component; The light source adjustment component is configured to adjust the relative position between the light output port of the light source body and the detection area.

4. The battery detection device according to any one of claims 1 to 3, characterized in that The beam splitting component includes a semi-reflective and semi-transmissive lens.

5. The battery detection device according to any one of claims 1 to 3, characterized in that The first image acquisition device includes a first position adjustment component; The first position adjustment component is configured to adjust the relative position between the light input port of the first image acquisition device and the detection area.

6. The battery detection device according to any one of claims 1 to 3, characterized in that, The second image acquisition device includes a second position adjustment component; The light source adjustment component is configured to adjust the relative position between the light input port of the second image acquisition device and the detection area.

7. The battery detection device according to claim 2 or 3, characterized in that, The light source projection device further includes a light source heat dissipation component and a heat dissipation bracket, the light source heat dissipation component is fixed on the heat dissipation bracket, and the light source heat dissipation component is configured to dissipate heat from the light source body.

8. The battery detection device according to any one of claims 1 to 3, characterized in that The battery detection device further includes a dust-proof component, and the light source projection device, the beam splitting component, the first image acquisition device, and the second image acquisition device are all disposed inside the dust-proof component.

9. The battery detection device according to claim 8, characterized in that, The battery detection device further includes a gantry, and the dust-proof component is disposed on a cross beam of the gantry.

10. The battery detection device according to any one of claims 1 to 3, characterized in that, The second image acquisition device includes a binocular vision camera.

11. The battery detection device according to any one of claims 1 to 3, characterized in that The battery detection device further includes a position sensing device and a battery fixing device electrically connected to the position sensing device; The position sensing device is configured to detect whether a battery exists at a preset detection position corresponding to the battery; The battery fixing device is configured to fix the battery according to a detection signal sent by the position sensing device; The detection signal is used to indicate that a battery exists at the preset detection position.

12. The battery detection device according to claim 11, wherein, The position sensing device includes a through-beam laser sensor.

13. The battery detection device according to claim 11, characterized in that, The battery fixing device includes a fixture and a driving component; The driving component is configured to drive the fixture to clamp or release the battery.

14. A battery detection method, characterized in that, Applied to the battery detection device according to any one of claims 1 to 13, the method includes: According to the task type of the current detection task, control the light source projection device to project the light beam corresponding to the task type onto the detection area of the battery; When the task type includes a gap width detection task, based on the light beam reflected by the first image acquisition device and the detection area, obtain the first image corresponding to the detection area, and determine the gap width between the housing and the top cover according to the first image; When the task type includes a height difference detection task, based on the light beam transmitted by the second image acquisition device and the detection area, obtain the second image corresponding to the detection area, and determine the height difference between the housing and the top cover according to the second image.

15. The method according to claim 14, wherein When the task type includes a gap width detection task, the light beam corresponding to the task type is white light; the determining the gap width between the housing and the top cover according to the first image includes: Perform binarization processing on the first image to obtain the binarized image corresponding to the first image; Determine the gap area corresponding to the housing and the top cover in the binarized image; Calculate the diameter of the largest inscribed circle in the gap area, and use the diameter of the largest inscribed circle as the gap reference width; Determine the gap width between the housing and the top cover according to the spatial resolution corresponding to the gap reference width.

16. The method according to claim 14, wherein When the task type includes a height difference detection task, the light beam corresponding to the task type is three-dimensional structured light; the determining the height difference between the housing and the top cover according to the second image includes: Extract the phase information of each stripe in the second image to obtain a phase image; According to the preset binocular vision calibration parameters and the phase image, create the three-dimensional data corresponding to the detection area of the battery; Perform plane fitting on the first area corresponding to the top cover and the second area corresponding to the outer shell in the three-dimensional data respectively, and calculate the plane equation parameters of the first area and the second area; Calculate the height difference between the housing and the top cover based on the plane equation parameters.

17. The method according to any one of claims 14 to 16, characterized in that, The method further includes: Based on the gap width between the housing and the top cover being less than or equal to the first threshold, and / or the height difference between the housing and the top cover being less than or equal to the second threshold, determine that the battery meets the assembly requirements.

18. An electronic device, comprising a memory and a processor, characterized in that, A computer program is stored in the memory, and the processor is configured to execute the method described in any one of claims 14 to 16 through the computer program.

19. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program executes the method described in any one of claims 14 to 16 when running.

20. A computer program product, comprising a computer program, characterized in that, The computer program is executed by the processor to implement the method described in any one of claims 14 to 16.

Citation Information

Patent Citations

  • Multi-image acquisition system and image acquisition method

    CN106331453A

  • Image acquisition device and method

    CN117750167A

  • Multispectral endoscope imaging system

    CN118370505A