Nickel sheet positioning method, device, electronic equipment and storage medium

By performing communication domain segmentation and differential calculation of the lithium battery image, the nickel sheet area is automatically marked, which solves the problem of low nickel sheet positioning efficiency and accuracy in the prior art, and achieves efficient and accurate nickel sheet positioning.

CN116630405BActive Publication Date: 2025-04-25GUANGZHOU EHOLLY INTELLIGENT EQUIP CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202310610743.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-05-26
Publication Date
2025-04-25
Estimated Expiration
2043-05-26

AI Technical Summary

Technical Problem

In the prior art, nickel sheets have low positioning efficiency and accuracy in lithium battery module production, and mainly rely on manual labeling, which has insufficient efficiency and accuracy.

Method used

By performing communication domain segmentation and differential calculation on the battery image, the auxiliary area and short edge of the nickel sheet area are determined, and the nickel sheet area is automatically marked using image processing technology.

Benefits of technology

Automatic labeling of nickel sheet areas is realized, the efficiency and accuracy of nickel sheet positioning is improved, and the dependence of manual labeling is reduced.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116630405B_ABST
    Figure CN116630405B_ABST
Patent Text Reader

Abstract

The present invention relates to a nickel sheet positioning method, comprising the steps of: performing connected domain segmentation on a battery image to be positioned, determining the connected domain with the largest area as the first auxiliary region; performing differential calculation on the first auxiliary region and its minimum circumscribed rectangle to obtain multiple differential regions, determining the differential region with the largest area as the second auxiliary region; determining a straight line that is a preset distance from the center point of the second auxiliary region and parallel to the long side of the second auxiliary region as a reference line; determining a plurality of rectangular regions that are equally spaced and parallelly distributed with the reference line as the center line as a detection region; determining a pixel point with a sudden change in gray value in the detection region as a target point, fitting a straight line according to all target points, and obtaining the short side of the first nickel sheet; determining the long side of the second auxiliary region connected to the first auxiliary region as the short side of the second nickel sheet; and determining the nickel sheet region according to the first short side of the nickel sheet and the second short side of the nickel sheet. Compared with the prior art, the method can improve the efficiency and accuracy of positioning the nickel sheet in the battery image.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of nickel sheet positioning technology, and in particular to a nickel sheet positioning method, device, electronic equipment and computer-readable storage medium. Background Art

[0002] With the increasing development of lithium batteries, new energy electric vehicles have entered people's lives. New energy electric vehicles are powered by lithium battery modules. In the production of lithium battery modules for new energy electric vehicles, the tabs made of nickel sheets are usually welded to the lithium batteries. Multiple lithium batteries in the lithium battery module are connected in series or in parallel through nickel sheets. In production, it is necessary to locate the nickel sheets in the images containing the parts of the lithium batteries welded with nickel sheets, and obtain the positioning information of the nickel sheets for production. At present, the battery images are manually annotated, so the annotation efficiency is low and the annotation accuracy is low. Summary of the invention

[0003] The purpose of the present invention is to overcome the shortcomings and deficiencies of the prior art and to provide a nickel sheet positioning method that can improve the positioning efficiency and accuracy of the nickel sheet in a battery image.

[0004] The present invention is implemented by the following technical scheme: A nickel sheet positioning method, characterized in that it includes the steps of: performing connected domain segmentation on a battery image to be positioned, and determining the connected domain with the largest area as a first auxiliary region; performing differential calculation on the first auxiliary region and its minimum circumscribed rectangle to obtain multiple differential regions, and determining the differential region with the largest area as a second auxiliary region;

[0005] Determine a straight line which is a preset distance from the center point of the second auxiliary area and is parallel to the long side of the second auxiliary area as a reference line;

[0006] Determine a plurality of rectangular areas with the reference line as the center line and distributed in parallel with equal intervals as the detection area;

[0007] Determine the pixel point with a sudden change in gray value in the detection area as the target point, and fit a straight line according to all the target points to obtain the short side of the first nickel sheet;

[0008] Determine that the long side where the second auxiliary region is connected to the first auxiliary region is the short side of the second nickel sheet;

[0009] The nickel sheet area is determined according to the first nickel sheet short side and the second nickel sheet short side.

[0010] Compared with the prior art, the nickel sheet positioning method of the present invention realizes automatic marking of the nickel sheet area by performing image processing on the battery image, thereby improving the marking efficiency of the nickel sheet area and achieving high marking accuracy.

[0011] Furthermore, determining a straight line that is a preset distance away from the center point of the second auxiliary area and parallel to the long side of the second auxiliary area as a reference line includes the steps of: determining a straight line that passes through the center point of the second auxiliary area and is parallel to the short side of the second auxiliary area as a moving auxiliary straight line; determining a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area as a reference point; and determining a straight line that passes through the reference point and is parallel to the long side of the second auxiliary area as a reference line.

[0012] Further, determining a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area as a reference point includes the following steps: if the horizontal coordinate of the center point of the second auxiliary area is smaller than the horizontal coordinate of the center point of the battery image, determining a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area in a direction where the horizontal coordinate increases as a reference point; if the horizontal coordinate of the center point of the second auxiliary area is larger than the horizontal coordinate of the center point of the battery image, determining a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area in a direction where the horizontal coordinate decreases as a reference point.

[0013] Furthermore, after determining that the differential region with the largest area is the second auxiliary region, the method further includes the step of rotating the battery image so that the long side of the second auxiliary region is parallel to the horizontal axis of the battery image.

[0014] Based on the same inventive concept, the present invention also provides a nickel sheet positioning device, comprising:

[0015] A connected segmentation module, used for performing connected domain segmentation on the battery image to be located, and determining the connected domain with the largest area as the first auxiliary region;

[0016] A difference module, used for performing a difference calculation between the first auxiliary region and its minimum circumscribed rectangle to obtain a plurality of difference regions, and determining the difference region with the largest area as the second auxiliary region;

[0017] The first short side determination module includes:

[0018] a reference line determination submodule, configured to determine a straight line which is a preset distance from a center point of the second auxiliary area and is parallel to a long side of the second auxiliary area as a reference line;

[0019] A detection area determination submodule, used to determine a plurality of rectangular areas with the reference line as the center line and distributed in parallel with equal intervals as the detection area;

[0020] A straight line fitting submodule is used to determine the pixel points with sudden grayscale value changes in the detection area as target points, and to fit straight lines according to all the target points to obtain the short side of the first nickel sheet;

[0021] A second short side determination module, used to determine that the long side of the second auxiliary area connected to the first auxiliary area is the short side of the second nickel sheet;

[0022] The nickel sheet area determination module is used to determine the nickel sheet area according to the first short side of the nickel sheet and the second short side of the nickel sheet.

[0023] Furthermore, the reference line determination submodule is used to determine a straight line passing through the center point of the second auxiliary area and parallel to the short side of the second auxiliary area as a moving auxiliary straight line; determine a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area as a reference point; and determine a straight line passing through the reference point and parallel to the long side of the second auxiliary area as a reference line.

[0024] Furthermore, the reference line determination submodule is used to determine, if the horizontal coordinate of the center point of the second auxiliary area is smaller than the horizontal coordinate of the center point of the battery image, a point at a preset distance from the center point of the second auxiliary area in the direction of increasing the horizontal coordinate of the moving auxiliary straight line as a reference point; if the horizontal coordinate of the center point of the second auxiliary area is greater than the horizontal coordinate of the center point of the battery image, a point at a preset distance from the center point of the second auxiliary area in the direction of decreasing the horizontal coordinate of the moving auxiliary straight line as a reference point.

[0025] Furthermore, it also includes a rotation module, which is used to rotate the battery image so that the long side of the second auxiliary area is parallel to the horizontal axis of the battery image.

[0026] Based on the same inventive concept, the present invention also provides an electronic device, including:

[0027] processor;

[0028] a memory for storing a computer program executed by the processor;

[0029] Wherein, the processor implements the steps of the above method when executing the computer program.

[0030] Based on the same inventive concept, the present invention also provides a computer-readable storage medium on which a computer program is stored, characterized in that the steps of the above method are implemented when the computer program is executed.

[0031] For better understanding and implementation, the present invention is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF THE DRAWINGS

[0032] Figure 1 is a schematic diagram of an exemplary battery image;

[0033] Figure 2 Schematic diagram of the nickel sheet positioning method of the embodiment;

[0034] Figure 3 For execution Figure 2 A structural schematic diagram of a nickel sheet positioning device of a nickel sheet positioning method shown;

[0035] Figure 4 is a schematic diagram of the first auxiliary area B of the embodiment;

[0036] Figure 5 is a schematic diagram of the second auxiliary area C of the embodiment;

[0037] Figure 6 Schematic diagram of reference line D and detection area E of the embodiment;

[0038] Figure 7 A schematic diagram of the short side F of the first nickel sheet of the embodiment;

[0039] Figure 8 A schematic diagram of the short side G of the second nickel sheet in the embodiment;

[0040] Fig. 9 Schematic diagram of the nickel sheet region H of the embodiment. DETAILED DESCRIPTION

[0041] In order to make the objectives, technical solutions and advantages of the present application more clear, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0042] See also Figure 1 , which is a schematic diagram of an exemplary battery image, the battery image is a partial image of a lithium battery including a nickel sheet, and a nickel sheet A is welded on the lithium battery. The nickel sheet is usually a rectangular shape, including a pair of short sides and a pair of long sides. By determining the position of any two sides of the nickel sheet in the battery image, the positioning of the nickel sheet on the battery image can be determined. The present invention determines the positioning of the nickel sheet on the battery image by determining a pair of short sides of the nickel sheet, which is specifically described in detail through the following embodiments.

[0043] Please also see Figure 2 and Figure 3 ,in, Figure 2 Schematic diagram of the process of the nickel sheet positioning method of this embodiment; Figure 3 The nickel sheet positioning device includes a connection segmentation module 10 , a difference module 20 , a first short side determination module 30 a , a second short side determination module 30 b and a nickel sheet area determination module 40 .

[0044] Specifically, the connected segmentation module 10 is used to execute step S1: performing connected domain segmentation on the battery image to be located, and determining the connected domain with the largest area as the first auxiliary region.

[0045] The connected domain is the area in the battery image to be located that is composed of adjacent pixels with the same pixel value. The connected domain segmentation of the battery image to be located will obtain multiple connected domains. The areas of the multiple connected domains obtained are compared, that is, the number of pixels contained in each connected domain is compared, and the connected domain with the largest area is determined as the first auxiliary region. Please refer to Figure 4 , which is Figure 1 After the battery image shown in step S1, a schematic diagram of the first auxiliary area B is obtained.

[0046] In a preferred embodiment, before the connected domain segmentation is performed on the battery image to be located, in order to improve the accuracy of image processing, the battery image can be preprocessed, and the preprocessing includes the steps of: performing RGB three-channel separation on the battery image to be located, and performing median filtering on the battery image of the R channel. Thus, a battery image with a smooth surface and reduced noise is obtained.

[0047] The difference module 20 is used to execute step S2: performing a difference calculation between the first auxiliary region and its minimum circumscribed rectangle to obtain a plurality of difference regions, and determining the difference region with the largest area as the second auxiliary region.

[0048] The minimum bounding rectangle of the first auxiliary region is a rectangle that is bounded by the side of the first auxiliary region and has the smallest area. The first auxiliary region and its minimum bounding rectangle are differentially calculated to obtain the area outside the first auxiliary region in the minimum bounding rectangle, i.e., the differential region. The number of pixels contained in multiple differential regions is compared, and the differential region with the largest number of pixels, i.e., the differential region with the largest area, is determined to be the second auxiliary region. Please refer to Figure 5 , which is Figure 4 After the first auxiliary area B is processed through step S2, a second auxiliary area C is obtained. The second auxiliary area C is approximately a rectangular shape, including a pair of long sides and a pair of short sides.

[0049] In a preferred embodiment, a rotation module is further included, which is used to perform the step of rotating the battery image after step S2 so that the long side of the second auxiliary area is parallel to the horizontal axis of the battery image. The horizontal axis of the battery image is the horizontal coordinate axis in the image coordinate system of the battery image.

[0050] The first short side determining module 30a is used to execute step S3a: determining the short side of the first nickel sheet according to the second auxiliary area.

[0051] The first short side determination module 30a includes a reference line determination submodule 30a1, a detection area determination submodule 30a2 and a straight line fitting submodule 30a3, wherein the reference line determination submodule 30a1 is used to execute step S3a1: determine a straight line that is a preset distance away from the center point of the second auxiliary area and parallel to the long side of the second auxiliary area as a reference line.

[0052] The center point of the second auxiliary region is a point at which the distances to the two short sides of the second auxiliary region are the same, and the distances to the two long sides of the second auxiliary region are the same.

[0053] See also Figure 6 , which is Figure 5 The schematic diagram of the reference line D obtained after the second auxiliary area C is processed in step S3a1 is shown. A straight line that is a preset distance from the center point of the second auxiliary area and parallel to the long side of the second auxiliary area is determined as the reference line, that is, the data range for detecting the short side of the first nickel sheet is limited with the reference line as the center to reduce the amount of calculation. The preset distance can be set according to the specific implementation situation, and this embodiment is not limited here.

[0054] In a preferred embodiment, step S3a1 further includes the steps of: determining a straight line passing through the center point of the second auxiliary area and parallel to the short side of the second auxiliary area as a moving auxiliary straight line; determining a point on the moving auxiliary straight line that is a preset distance from the center point of the second auxiliary area as a reference point; and determining a straight line passing through the reference point and parallel to the long side of the second auxiliary area as a reference line. Thus, using the moving auxiliary straight line as an aid can make the relative direction between the reference line and the center point of the second auxiliary area more accurate.

[0055] Further, when determining a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area as a reference point, if the horizontal coordinate of the center point of the second auxiliary area is smaller than the horizontal coordinate of the center point of the battery image, then the point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area in the direction in which the horizontal coordinate increases is determined as the reference point; if the horizontal coordinate of the center point of the second auxiliary area is greater than the horizontal coordinate of the center point of the battery image, then the point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area in the direction in which the horizontal coordinate decreases is determined as the reference point.

[0056] The detection area determination submodule 30a2 is used to execute step S3a2: determine a number of rectangular areas with the reference line as the center line and distributed in parallel with equal intervals as the detection area.

[0057] Please refer again Figure 6 According to the reference line D, the detection area E is obtained through step S3a2. Each rectangular detection area is extended to both ends with the reference line as the center line. Each detection area is equally spaced and distributed in parallel.

[0058] The number, length and width of the detection areas can be set according to actual implementation. For example, for a battery image with a size of 1400×908 pixels, the number of detection areas is set to 10, the length is 120 pixels, and the width is 5 pixels.

[0059] The straight line fitting submodule 30a3 is used to execute step S3a3: determine the pixel points with sudden changes in grayscale value in the detection area as target points, fit straight lines according to all target points, and obtain the short side of the first nickel sheet.

[0060] Among them, the grayscale values ​​of all pixels in the detection area are compared. If the difference between the grayscale value of a pixel and the average grayscale value of all pixels in the detection area is greater than a certain threshold, the grayscale value of the pixel changes suddenly. Alternatively, the grayscale value of a pixel in the detection area is compared with the grayscale values ​​of its adjacent pixels. If the difference between the grayscale value of the pixel and the grayscale value of its adjacent pixels is greater than a certain threshold, the grayscale value of the pixel changes suddenly.

[0061] A straight line is fitted in the battery image using the least squares method based on all target points, and the straight line is determined to be the short side of the first nickel sheet. Figure 7 , which is based on Figure 6 The schematic diagram of the short side F of the first nickel sheet obtained in the detection area E after step S3a3 is shown.

[0062] The second short side determination module 30b is used to execute step S3b: determine that the long side where the second auxiliary area connects with the first auxiliary area is the second short side of the nickel sheet.

[0063] See also Figure 8 , which is based on Figure 5 The schematic diagram of the second nickel sheet short side G obtained after the second auxiliary area C is processed in step S3b is shown. The second auxiliary area is the difference area between the first auxiliary area and its minimum outer rectangle, and one of the long sides of the second auxiliary area is connected to the first auxiliary area, and the long side is the short side of the second nickel sheet.

[0064] The nickel sheet area determination module 40 is used to execute step S4: determining the nickel sheet area according to the first nickel sheet short side and the second nickel sheet short side.

[0065] See also Fig. 9 , which is based on Figure 7 The short side F of the first nickel sheet is shown Figure 8 The second nickel sheet short side G shown in the figure is a schematic diagram of obtaining the nickel sheet area H after step S4. The nickel sheet area is approximately a rectangular shape, the obtained first nickel sheet short side is parallel to and opposite to the second nickel sheet short side, and the straight line connecting the two end points of the first nickel sheet short side and the two end points of the second nickel sheet short side is a pair of long sides of the nickel sheet area.

[0066] Compared with the prior art, the nickel sheet positioning method of the present invention realizes automatic marking of the nickel sheet area by performing image processing on the battery image, thereby improving the marking efficiency of the nickel sheet area and achieving high marking accuracy.

[0067] Based on the same inventive concept, the present application also provides an electronic device, which may be a terminal device such as a server, a desktop computing device or a mobile computing device (e.g., a laptop computing device, a handheld computing device, a tablet computer, a netbook, etc.). The device includes one or more processors and a memory, wherein the processor is used to execute the nickel sheet positioning method of the program implementation method embodiment; and the memory is used to store a computer program executable by the processor.

[0068] Based on the same inventive concept, the present application also provides a computer-readable storage medium, corresponding to the embodiment of the aforementioned nickel sheet positioning method, wherein the computer-readable storage medium stores a computer program thereon, and when the program is executed by the processor, the steps of the nickel sheet positioning method recorded in any of the aforementioned embodiments are implemented.

[0069] The present application may take the form of a computer program product implemented on one or more storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing program code. Computer-usable storage media include permanent and non-permanent, removable and non-removable media, and information storage can be achieved by any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include but are not limited to: phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, read-only compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission medium that can be used to store information that can be accessed by a computing device.

[0070] The above-mentioned embodiments only express several implementation methods of the present invention, and the description is relatively specific and detailed, but it cannot be understood as limiting the scope of the invention patent. It should be pointed out that for ordinary technicians in this field, several modifications and improvements can be made without departing from the concept of the present invention, and the present invention is also intended to include these modifications and modifications.

Claims

1. A nickel sheet positioning method, characterized in that: Includes steps: Perform connected domain segmentation on the battery image to be located, and determine the connected domain with the largest area except the battery and nickel sheet area as the first auxiliary area; Performing a difference calculation between the first auxiliary region and its minimum circumscribed rectangle to obtain a plurality of difference regions, and determining the difference region with the largest area as the second auxiliary region; Determine that the long side where the second auxiliary region is connected to the first auxiliary region is the short side of the second nickel sheet; Determining a straight line that is a preset distance from the center point of the second auxiliary area and parallel to the long side of the second auxiliary area as a reference line includes: determining a straight line that passes through the center point of the second auxiliary area and is parallel to the short side of the second auxiliary area as a moving auxiliary straight line; determining a point on the moving auxiliary straight line that is a preset distance from the center point of the second auxiliary area as a reference point, and determining a line that passes through the reference point and is parallel to the long side of the second auxiliary area as a reference line; Determine a plurality of rectangular areas with the reference line as the center line and distributed in parallel with equal intervals as detection areas, each of the detection areas extending to both ends; Determine the pixel point with a sudden change in gray value in the detection area as the target point, and fit a straight line according to all the target points to obtain the short side of the first nickel sheet; The nickel sheet area is determined according to the first nickel sheet short side and the second nickel sheet short side.

2. The method according to claim 1, characterized in that Determining a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area as a reference point includes the steps of: establishing a coordinate system with the horizontal axis of the battery image as the horizontal coordinate axis; if the horizontal coordinate of the center point of the second auxiliary area is smaller than the horizontal coordinate of the center point of the battery image, determining a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area in a direction where the horizontal coordinate increases as the reference point; if the horizontal coordinate of the center point of the second auxiliary area is larger than the horizontal coordinate of the center point of the battery image, determining a point on the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area in a direction where the horizontal coordinate decreases as the reference point.

3. A nickel sheet positioning device, characterized in that: include: A connected segmentation module, used for performing connected domain segmentation on the battery image to be located, and determining the connected domain with the largest area as the first auxiliary region; A difference module, used for performing a difference calculation between the first auxiliary region and its minimum circumscribed rectangle to obtain a plurality of difference regions, and determining the difference region with the largest area as the second auxiliary region; A second short side determination module, used to determine that the long side of the second auxiliary area connected to the first auxiliary area is the short side of the second nickel sheet; The first short side determination module includes: a reference line determination submodule, configured to determine a straight line passing through the center point of the second auxiliary area and parallel to the short side of the second auxiliary area as a moving auxiliary straight line; determine a point on the moving auxiliary straight line that is a preset distance from the center point of the second auxiliary area as a reference point, and determine a straight line passing through the reference point and parallel to the long side of the second auxiliary area as a reference line; A detection area determination submodule, used to determine a plurality of rectangular areas with the reference line as the center line and distributed in parallel with equal intervals as the detection area; A straight line fitting submodule is used to determine the pixel points with sudden grayscale value changes in the detection area as target points, and to fit straight lines according to all the target points to obtain the short side of the first nickel sheet; The nickel sheet area determination module is used to determine the nickel sheet area according to the first short side of the nickel sheet and the second short side of the nickel sheet.

4. The device according to claim 3, characterized in that: The reference line determination submodule is used to determine, if the horizontal coordinate of the center point of the second auxiliary area is smaller than the horizontal coordinate of the center point of the battery image, a point of the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area in the direction of increasing horizontal coordinate as the reference point; if the horizontal coordinate of the center point of the second auxiliary area is larger than the horizontal coordinate of the point at the center of the battery image, a point of the moving auxiliary straight line that is a preset distance away from the center point of the second auxiliary area in the direction of decreasing horizontal coordinate as the reference point.

5. An electronic device, characterized in that: include: processor; a memory for storing a computer program executed by the processor; Wherein, when the processor executes the computer program, the steps of the method described in any one of claims 1-2 are implemented.

6. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed, the steps of the method according to any one of claims 1 to 2 are implemented.

Citation Information

Patent Citations

  • Multi-target intelligent sorting method and system for flexible parts and storage medium

    CN115082559A

  • High-precision detection method and device for distance between nickel sheet and bar sheet of lithium battery

    CN115345878A