A battery cell positioning method, device, electronic device and storage medium

By detecting the intersection of horizontal and vertical main gate lines in the photovoltaic cell image, the position of the rectangular area of ​​the cell is determined, which solves the problem of inaccurate positioning of the photovoltaic cell and improves the accuracy of defect detection.

CN115631229BActive Publication Date: 2025-09-02HANGZHOU HIKROBOT TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211017875.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-24
Publication Date
2025-09-02
Estimated Expiration
2042-08-24

AI Technical Summary

Technical Problem

In the prior art, the positioning accuracy of photovoltaic cells is low, which is mainly due to imaging problems that lead to main gate identification errors, which affects the accuracy of cell defect detection.

Method used

By detecting the horizontal main gate line and the vertical main gate line in the cell image, determining the intersection point as the target point, the image position of the rectangular area is obtained, and the image position of the cell is as the image position of the cell, and the positioning accuracy of the main gate line is improved by using linear fitting technology.

Benefits of technology

It improves the positioning accuracy of the image position of the battery cell, improves the accuracy of subsequent defect detection, and reduces interference from imaging problems.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115631229B_ABST
    Figure CN115631229B_ABST
Patent Text Reader

Abstract

The embodiments of the present application provide a method, device, electronic device, and storage medium for locating a cell, relating to the field of computer technology. The method comprises: obtaining an image containing a cell, detecting busbars in the image, wherein the busbars include horizontal busbars and vertical busbars; determining the intersection of the horizontal busbars and the vertical busbars as target points; and obtaining the image position of the rectangular area where each target point is located as the image position of the cell. Applying the solutions provided in the embodiments of the present application can improve the accuracy of the image position of the located cell.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computer technology, and in particular to a battery cell positioning method, device, electronic device, and storage medium. Background Art

[0002] Photovoltaic cells are products that convert light energy into electrical energy. Some defects may occur during the production process. To ensure the reliability of photovoltaic cells, it is necessary to detect defects in each cell.

[0003] In related technologies, battery cells often include a main grid and a substrate. An image containing the battery cell can be captured, and then the position of the main grid in the image can be identified as the image position of the battery cell. The image area of ​​the above image position can then be visually inspected to achieve defect detection of the battery cell.

[0004] However, in the above solution, the position of the busbar is directly used as the position of the cell, which may lead to errors in the recognition of the busbar due to imaging problems, thereby resulting in low accuracy in cell positioning. Summary of the Invention

[0005] The purpose of the embodiments of the present application is to provide a method, device, electronic device, and storage medium for locating a battery cell to improve the accuracy of the image position of the located battery cell. The specific technical solution is as follows:

[0006] In a first aspect, an embodiment of the present application provides a method for positioning a battery cell, the method comprising:

[0007] Obtain an image containing a battery cell, and detect busbars in the image, wherein the busbars include horizontal busbars and vertical busbars;

[0008] Determine an intersection point where the horizontal main grid line and the vertical main grid line intersect as a target point;

[0009] The image position of the rectangular area where each target point is located is obtained as the image position of the battery cell.

[0010] In one embodiment of the present application, detecting the busbars in the image includes:

[0011] Detecting a positioning point of a main grid of the battery cell in the image;

[0012] Determine horizontal positioning points in the same horizontal direction, perform straight line fitting on the horizontal positioning points, and obtain horizontal main grid lines;

[0013] Vertical positioning points in the same vertical direction are determined, and straight line fitting is performed on the vertical positioning points to obtain vertical main grid lines.

[0014] In one embodiment of the present application, determining horizontal positioning points in the same horizontal direction and performing straight line fitting on the horizontal positioning points to obtain horizontal main grid lines includes:

[0015] For the horizontal positioning points in the same horizontal direction, determine a target horizontal positioning point whose vertical spacing with adjacent horizontal positioning points is less than a preset vertical spacing threshold;

[0016] Performing straight line fitting on the target horizontal positioning point to obtain a horizontal main grid line;

[0017] and / or

[0018] The determining of vertical positioning points in the same vertical direction and performing straight line fitting on the vertical positioning points to obtain vertical main grid lines includes:

[0019] For vertical positioning points in the same vertical direction, determine a target vertical positioning point whose horizontal spacing with adjacent vertical positioning points is less than a preset horizontal spacing threshold;

[0020] A straight line is fitted to the target vertical positioning point to obtain a vertical main grid line.

[0021] In one embodiment of the present application, performing straight line fitting on the target horizontal positioning point to obtain a horizontal main grid line includes:

[0022] For target horizontal positioning points in the same horizontal direction, when the number of the target horizontal positioning points is greater than or equal to a first preset number, performing straight line fitting on the target horizontal positioning points to obtain horizontal main grid lines;

[0023] and / or

[0024] The step of performing straight line fitting on the target vertical positioning point to obtain a vertical main grid line includes:

[0025] For target horizontal positioning points in the same vertical direction, when the number of the target vertical positioning points is greater than or equal to a second preset number, straight line fitting is performed on the target vertical positioning points to obtain vertical main grid lines.

[0026] In one embodiment of the present application, determining the intersection point where the horizontal busbar line intersects the vertical busbar line as the target point includes:

[0027] For each horizontal main grid line, the angle between the horizontal main grid line and a vertical main grid line is obtained. When the difference between the angle and the right angle is less than a preset difference threshold, the intersection between the horizontal main grid line and the vertical main grid line is determined as the target point.

[0028] In one embodiment of the present application, determining the intersection point where the horizontal busbar line intersects the vertical busbar line as the target point includes:

[0029] When the number of the horizontal main grid line is 1, determining a horizontal intersection point where the horizontal main grid line intersects with the vertical main grid line;

[0030] Searching for candidate horizontal intersection points that meet a preset horizontal equidistant spacing condition from the determined horizontal intersection points;

[0031] Obtaining a horizontal average of the distances between adjacent horizontal candidate intersection points among the horizontal candidate intersection points;

[0032] For each horizontal candidate intersection point, using the horizontal candidate intersection point as a reference and the horizontal average as a horizontal interval, determine each horizontal correction point that is in the same horizontal direction as the horizontal candidate intersection point, and calculate the horizontal position deviation between each horizontal correction point and the determined horizontal intersection point;

[0033] Selecting a horizontal candidate intersection point whose corresponding horizontal position deviation meets the first preset condition, and determining each horizontal correction point obtained with the horizontal candidate intersection point as a reference as a target point;

[0034] and / or

[0035] When the number of the vertical main grid line is 1, determining a vertical intersection point where the vertical main grid line intersects with a horizontal main grid line;

[0036] Searching for candidate vertical intersection points that meet a preset vertical equidistant spacing condition from the determined vertical intersection points;

[0037] Obtaining a vertical mean value of the distances between adjacent vertical candidate intersection points among the vertical candidate intersection points;

[0038] For each vertical candidate intersection point, taking the vertical candidate intersection point as a reference and the vertical mean as a vertical interval, determine each vertical correction point that is in the same vertical direction as the vertical candidate intersection point, and calculate the vertical position deviation between each vertical correction point and the determined vertical intersection point;

[0039] A vertical candidate intersection point whose corresponding vertical position deviation meets the second preset condition is selected, and each vertical correction point obtained with the vertical candidate intersection point as a reference is determined as a target point.

[0040] In one embodiment of the present application, searching for candidate horizontal intersection points that meet a preset horizontal equidistant spacing condition from the determined horizontal intersection points includes:

[0041] Obtaining horizontal spacings between adjacent horizontal intersection points among the horizontal intersection points, determining a maximum horizontal spacing and a minimum horizontal spacing from the obtained horizontal spacings, and calculating a horizontal difference threshold based on the maximum horizontal spacing and the minimum horizontal spacing;

[0042] Determine a horizontal intersection point where the difference between the corresponding horizontal intervals is less than or equal to the horizontal difference threshold as a horizontal candidate intersection point;

[0043] and / or

[0044] The step of searching for candidate vertical intersection points that meet a preset vertical equidistant spacing condition from the determined vertical intersection points includes:

[0045] Obtaining vertical spacings between adjacent vertical intersections among the vertical intersections, determining a maximum vertical spacing and a minimum vertical spacing from the obtained vertical spacings, and calculating a vertical difference threshold based on the maximum vertical spacing and the minimum vertical spacing;

[0046] A vertical intersection point whose difference between corresponding vertical intervals is less than or equal to the vertical difference threshold is determined as a vertical candidate intersection point.

[0047] In one embodiment of the present application, obtaining the image position of the rectangular area where each target point is located as the image position of the battery cell includes:

[0048] When the number of the horizontal main grid line is 1, a first rectangular area of ​​a preset height is determined with the midpoint of the target points at the left and right ends of the target point as the center and the horizontal distance between the target points at the left and right ends as the width, and an image position of the first rectangular area is obtained as the image position of the battery cell;

[0049] and / or

[0050] When the number of vertical main grid lines is 1, a second rectangular area of ​​a preset width is determined with the midpoint of the target points at the upper and lower ends of the target points as the center and the vertical distance between the target points at the upper and lower ends as the height, and the image position of the second rectangular area is obtained as the image position of the battery cell.

[0051] In a second aspect, an embodiment of the present application provides a cell positioning device, the device comprising:

[0052] An image acquisition module, configured to acquire an image containing a battery cell;

[0053] A busbar detection module, configured to detect busbars in the image, wherein the busbars include horizontal busbars and vertical busbars;

[0054] A target point determination module is used to determine the intersection point where the horizontal main grid line and the vertical main grid line intersect as the target point;

[0055] The cell positioning module is used to obtain the image position of the rectangular area where each target point is located as the image position of the cell.

[0056] In one embodiment of the present application, the main grid line detection module includes:

[0057] A positioning point detection unit, configured to detect a positioning point of the main grid of the cell in the image;

[0058] A horizontal main grid line detection unit is used to determine horizontal positioning points in the same horizontal direction, and perform straight line fitting on the horizontal positioning points to obtain horizontal main grid lines;

[0059] The vertical main grid line detection unit is used to determine vertical positioning points in the same vertical direction, and perform straight line fitting on the vertical positioning points to obtain vertical main grid lines.

[0060] In one embodiment of the present application, the horizontal main grid line detection unit includes:

[0061] The first detection subunit is configured to determine, for horizontal positioning points located in the same horizontal direction, a target horizontal positioning point whose vertical spacing with adjacent horizontal positioning points is less than a preset vertical spacing threshold;

[0062] A first fitting subunit is used to perform straight line fitting on the target horizontal positioning point to obtain a horizontal main grid line;

[0063] and / or

[0064] The vertical main grid line detection unit includes:

[0065] The second detection subunit is configured to determine, for vertical positioning points in the same vertical direction, a target vertical positioning point whose horizontal spacing with adjacent vertical positioning points is less than a preset horizontal spacing threshold;

[0066] The second fitting subunit is used to perform straight line fitting on the target vertical positioning point to obtain a vertical main grid line.

[0067] In one embodiment of the present application, the first fitting subunit is specifically configured to:

[0068] For target horizontal positioning points in the same horizontal direction, when the number of the target horizontal positioning points is greater than or equal to a first preset number, performing straight line fitting on the target horizontal positioning points to obtain horizontal main grid lines;

[0069] and / or

[0070] The second fitting subunit is specifically configured to:

[0071] For target horizontal positioning points in the same vertical direction, when the number of the target vertical positioning points is greater than or equal to a second preset number, straight line fitting is performed on the target vertical positioning points to obtain vertical main grid lines.

[0072] In one embodiment of the present application, the target point determination module is specifically configured to:

[0073] For each horizontal main grid line, the angle between the horizontal main grid line and a vertical main grid line is obtained. When the difference between the angle and the right angle is less than a preset difference threshold, the intersection between the horizontal main grid line and the vertical main grid line is determined as the target point.

[0074] In one embodiment of the present application, the target point determination module includes:

[0075] a first intersection determination unit, configured to determine a horizontal intersection point where the horizontal bus bar intersects with the vertical bus bar when the number of the horizontal bus bar is 1;

[0076] A first intersection search unit is configured to search for candidate horizontal intersections that meet a preset horizontal equidistant spacing condition from the determined horizontal intersections;

[0077] A first mean value obtaining unit is configured to obtain a horizontal mean value of intervals between adjacent horizontal candidate intersection points among the horizontal candidate intersection points;

[0078] a first deviation calculation unit configured to determine, for each horizontal candidate intersection point, horizontal correction points located in the same horizontal direction as the horizontal candidate intersection point, using the horizontal candidate intersection point as a reference and the horizontal average as a horizontal interval, and calculate a horizontal position deviation between each horizontal correction point and the determined horizontal intersection point;

[0079] a first target point determination unit, configured to select a horizontal candidate intersection point whose corresponding horizontal position deviation meets a first preset condition, and determine each horizontal correction point obtained with the horizontal candidate intersection point as a reference as a target point;

[0080] and / or

[0081] a second intersection determination unit, configured to determine a vertical intersection where the vertical bus bar intersects with the horizontal bus bar when the number of the vertical bus bar is 1;

[0082] A second intersection search unit is configured to search for candidate vertical intersections that meet a preset vertical equidistant spacing condition from the determined vertical intersections;

[0083] a second mean value obtaining unit, configured to obtain a vertical mean value of intervals between adjacent vertical candidate intersection points among the vertical candidate intersection points;

[0084] a second deviation calculation unit, configured to determine, for each vertical candidate intersection point, vertical correction points that are located in the same vertical direction as the vertical candidate intersection point, using the vertical candidate intersection point as a reference and the vertical mean as a vertical interval, and calculate a vertical position deviation between each vertical correction point and the determined vertical intersection point;

[0085] The second target point determination unit is configured to select a vertical candidate intersection point whose corresponding vertical position deviation satisfies a second preset condition, and determine each vertical correction point obtained based on the vertical candidate intersection point as a target point.

[0086] In one embodiment of the present application, the first intersection search unit is specifically configured to:

[0087] Obtaining horizontal spacings between adjacent horizontal intersection points among the horizontal intersection points, determining a maximum horizontal spacing and a minimum horizontal spacing from the obtained horizontal spacings, and calculating a horizontal difference threshold based on the maximum horizontal spacing and the minimum horizontal spacing;

[0088] Determine a horizontal intersection point where the difference between the corresponding horizontal intervals is less than or equal to the horizontal difference threshold as a horizontal candidate intersection point;

[0089] and / or

[0090] The second intersection search unit is specifically configured to:

[0091] Obtaining vertical spacings between adjacent vertical intersections among the vertical intersections, determining a maximum vertical spacing and a minimum vertical spacing from the obtained vertical spacings, and calculating a vertical difference threshold based on the maximum vertical spacing and the minimum vertical spacing;

[0092] A vertical intersection point whose difference between corresponding vertical intervals is less than or equal to the vertical difference threshold is determined as a vertical candidate intersection point.

[0093] In one embodiment of the present application, the cell positioning module is specifically used to:

[0094] When the number of the horizontal main grid line is 1, a first rectangular area of ​​a preset height is determined with the midpoint of the target points at the left and right ends of the target point as the center and the horizontal distance between the target points at the left and right ends as the width, and an image position of the first rectangular area is obtained as the image position of the battery cell;

[0095] and / or

[0096] When the number of vertical main grid lines is 1, a second rectangular area of ​​a preset width is determined with the midpoint of the target points at the upper and lower ends of the target points as the center and the vertical distance between the target points at the upper and lower ends as the height, and the image position of the second rectangular area is obtained as the image position of the battery cell.

[0097] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-described cell positioning methods.

[0098] In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a communication interface, a memory, and a communication bus, wherein the processor, the communication interface, and the memory communicate with each other via the communication bus;

[0099] Memory for storing computer programs;

[0100] The processor is configured to implement any of the method steps described in the first aspect when executing a program stored in the memory.

[0101] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, any of the method steps described in the first aspect is implemented.

[0102] Beneficial effects of the embodiments of the present application:

[0103] In the cell positioning solution provided in the embodiment of the present application, an image containing the cell can be obtained, and the main grid lines in the image can be detected, wherein the main grid lines include horizontal main grid lines and vertical main grid lines; the intersection points of the horizontal main grid lines and the vertical main grid lines are determined as target points; and the image positions of the rectangular areas where the target points are located are obtained as the image positions of the cell. The main grids on the cell are often distributed and arranged in the form of an array, which will form horizontal and vertical main grid lines. The target points where the horizontal and vertical main grid lines intersect can reflect the positions of the main grids. Therefore, the image positions of the rectangular areas where the target points are located can be obtained as the image positions of the cell. Since the main grid lines are not easily disturbed by imaging problems, the image positions of the cell determined based on the main grid lines are also not easily disturbed by imaging problems. It can be seen that the accuracy of the image positions of the cell obtained by positioning can be improved by applying the solution provided in the embodiment of the present application.

[0104] In addition, when defect detection is subsequently performed on the cell, defect detection can be performed on the image area at the above image position. Since the accuracy of the cell image position obtained by positioning is high, the accuracy of cell defect detection is also high. BRIEF DESCRIPTION OF THE DRAWINGS

[0105] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other embodiments can also be obtained based on these drawings.

[0106] Figure 1 A schematic diagram of a flow chart of a cell positioning method provided in an embodiment of the present application;

[0107] Figure 2 A schematic diagram of a battery cell provided in an embodiment of the present application;

[0108] Figure 3 A schematic flow chart of a first target point determination method provided in an embodiment of the present application;

[0109] Figure 4 A schematic flow chart of a second target point determination method provided in an embodiment of the present application;

[0110] Figure 5 A schematic diagram of the first positioning point provided in an embodiment of the present application;

[0111] Figure 6 A schematic diagram of the second positioning point provided in an embodiment of the present application;

[0112] Figure 7 A schematic structural diagram of a cell positioning device provided in an embodiment of the present application;

[0113] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION

[0114] The following will be combined with the drawings in the embodiments of this application to clearly and completely describe the technical solutions in the embodiments of this application. Obviously, the embodiments described are only part of the embodiments of this application, not all of the embodiments. Based on the embodiments in this application, all other embodiments obtained by ordinary technicians in this field based on this application are within the scope of protection of this application.

[0115] In order to improve the accuracy of the image position of the located battery cell, the embodiments of the present application provide a battery cell positioning method, device, electronic device and storage medium, which are described in detail below.

[0116] See also Figure 1 , Figure 1 A schematic flow chart of a cell positioning method provided in an embodiment of the present application, the method comprising the following steps S101-S103.

[0117] S101, obtaining an image containing a battery cell, and detecting busbars in the image.

[0118] The busbars include horizontal and vertical busbars. A cell generally consists of a substrate and a busbar. The busbars are arranged in an array on the substrate, forming horizontal and vertical lines on the cell. The horizontal lines are called horizontal busbars, and the vertical lines are called vertical busbars.

[0119] See also Figure 2 , Figure 2 A schematic diagram of a cell provided in an embodiment of the present application, which cell may be a photovoltaic cell. It can be seen that a plurality of array-arranged main grids are distributed in the cell, and different main grids are separated by horizontal lines or vertical lines. The horizontal lines are horizontal main grid lines, and the vertical lines are vertical main grid lines.

[0120] Specifically, an image obtained by capturing an image of the battery cell may be obtained, and then the main grid lines on the battery cell in the image may be detected.

[0121] In one embodiment of the present application, when detecting busbars, horizontal lines in the image can be directly detected as horizontal busbars, and vertical lines can be directly detected as vertical busbars. Edge detection algorithms, content segmentation algorithms, and the like can be used to detect lines in the image.

[0122] Alternatively, the busbars in the image can be detected to obtain the positioning points of each busbar, and the positioning points can be connected horizontally to obtain horizontal busbar lines, and the positioning points can be connected vertically to obtain vertical busbar lines. The positioning points can be vertices or center points of the busbars, etc.; a blob analysis algorithm can be used to detect the busbars on the cell in the image; or an image template labeled with the cell busbars can be obtained in advance and matched with the image template to obtain the busbars on the cell in the image. This embodiment of the present application is not limited to this.

[0123] S102 : Determine an intersection point where the horizontal main grid line and the vertical main grid line intersect as a target point.

[0124] Specifically, the detected main grid lines in the image include horizontal main grid lines in the horizontal direction and vertical main grid lines in the vertical direction. The intersection of the horizontal main grid lines and the vertical main grid lines can be determined as the target point.

[0125] S103, obtaining the image position of the rectangular area where each target point is located as the image position of the battery cell.

[0126] Specifically, the rectangular area where each target point is located can be determined as the area where the battery cell is located, and then the position of the rectangular area is used as the position of the battery cell.

[0127] In one embodiment of the present application, the image position of the minimum rectangular area where each target point is located can be determined as the image position of the battery cell; or, after determining the minimum rectangular area where each target point is located, the first preset length is expanded in the horizontal direction and the second preset length is expanded in the vertical direction, and the image position of the expanded area is used as the image position of the battery cell. The embodiment of the present application is not limited to this.

[0128] Among them, when determining the minimum rectangular area where each target point is located, the rotating caliper algorithm can be used for determination; or the outermost target points can be determined, and the rectangular area enclosed by the outer target points can be determined as the minimum rectangular area. In addition, other algorithms can also be used for determination, and the embodiments of the present application are not limited to this.

[0129] In the cell positioning solution provided by the above embodiment, the main grids on the cell are often distributed and arranged in the form of an array, which will form horizontal and vertical main grid lines. The target points where the horizontal and vertical main grid lines intersect can reflect the position of the main grid. Therefore, the image position of the rectangular area where the above target points are located can be obtained as the image position of the cell. Since the main grid lines are not easily disturbed by imaging problems, the image position of the cell determined based on the main grid lines is also not easily disturbed by imaging problems. It can be seen that the accuracy of the image position of the cell obtained by positioning can be improved by applying the solution provided by the above embodiment.

[0130] In addition, when defect detection is subsequently performed on the cell, defect detection can be performed on the image area at the above image position. Since the accuracy of the cell image position obtained by positioning is high, the accuracy of cell defect detection is also high.

[0131] The following is a detailed description of the method for detecting the main grid lines in the above step S101.

[0132] In one embodiment of the present application, when detecting the main grid lines in an image, the positioning points of the main grids of the battery cells in the image can be detected; the horizontal positioning points in the same horizontal direction are determined, and a straight line fitting is performed on the horizontal positioning points to obtain the horizontal main grid lines; the vertical positioning points in the same vertical direction are determined, and a straight line fitting is performed on the vertical positioning points to obtain the vertical main grid lines.

[0133] Specifically, the main grids on the battery cells in the image can be detected first to obtain the positioning points of each main grid, and then straight line fitting can be performed on the horizontal positioning points in the same horizontal direction to obtain the horizontal main grid lines in the horizontal direction; and straight line fitting can be performed on the vertical positioning points in the same vertical direction to obtain the vertical main grid lines in the vertical direction.

[0134] In one embodiment of the present application, for horizontal positioning points in the same horizontal direction, a target horizontal positioning point is determined, and the vertical spacing between the target horizontal positioning point and the adjacent horizontal positioning point is less than a preset vertical spacing threshold; a straight line fitting is performed on the target horizontal positioning point to obtain a horizontal main grid line.

[0135] The vertical spacing threshold may be 5 pixels, 8 pixels, 10 pixels, etc.

[0136] Specifically, for each horizontal positioning point in the same horizontal direction, the vertical spacing between the horizontal positioning point and the adjacent horizontal positioning point can be obtained. If the spacing is less than the vertical spacing threshold, it is determined that the horizontal positioning point and the adjacent horizontal positioning point are on the same horizontal line, and thus the horizontal positioning point can be used as the target horizontal positioning point. Otherwise, it is considered that the horizontal positioning point and the adjacent horizontal positioning point are not on the same horizontal line, and thus the horizontal positioning point can be eliminated. After obtaining multiple target horizontal positioning points, a straight line fitting can be performed on the multiple target horizontal positioning points along the horizontal direction to obtain horizontal main grid lines.

[0137] For example, assuming that the horizontal positioning points in the same horizontal direction include positioning points S1, S2, S3, and S4 in sequence, in the vertical direction, the spacing between S1 and S2 is 2 pixels, the spacing between S2 and S3 is 4 pixels, and the spacing between S3 and S4 is 6 pixels. Assuming that the vertical spacing threshold is 5 pixels, S1 and S2 can be determined as the target horizontal positioning points. Therefore, S1 and S2 can be fitted with a straight line along the horizontal direction to obtain the horizontal main grid line.

[0138] In one embodiment of the present application, for vertical positioning points in the same vertical direction, a target vertical positioning point is determined, and the horizontal spacing between the target vertical positioning point and the adjacent vertical positioning point is less than a preset horizontal spacing threshold; a straight line fitting is performed on the target vertical positioning point to obtain a vertical main grid line.

[0139] The horizontal spacing threshold may be 4 pixels, 7 pixels, 9 pixels, etc.

[0140] Specifically, for each vertical positioning point in the same vertical direction, the horizontal spacing between the vertical positioning point and the adjacent vertical positioning point can be obtained. If the spacing is less than the horizontal spacing threshold, it is determined that the vertical positioning point and the adjacent horizontal positioning point are on the same vertical line, so the vertical positioning point can be used as the target vertical positioning point. Otherwise, it is considered that the vertical positioning point and the adjacent vertical positioning point are not on the same vertical line, so the vertical positioning point can be eliminated. After obtaining multiple target vertical positioning points, a straight line fitting can be performed on the multiple target vertical positioning points along the vertical direction to obtain vertical main grid lines.

[0141] For example, assuming that the vertical positioning points in the same vertical direction include positioning points Z1, Z2, Z3, and Z4 in sequence, in the horizontal direction, the spacing between Z1 and Z2 is 5 pixels, the spacing between Z2 and Z3 is 1 pixel, and the spacing between Z3 and Z4 is 2 pixels. Assuming that the horizontal spacing threshold is 5 pixels, Z3 and Z4 can be determined as the target vertical positioning points. Therefore, Z3 and Z4 can be fitted with a straight line along the vertical direction to obtain the vertical main grid line.

[0142] Based on the above scheme, in one embodiment of the present application, when performing straight line fitting on the target horizontal positioning points, for the target horizontal positioning points in the same horizontal direction, a straight line fitting can be performed on the target horizontal positioning points to obtain the horizontal main grid line when the number of target horizontal positioning points is greater than or equal to a first preset number.

[0143] The first preset number may be 3, 6, 8, etc.

[0144] Specifically, for the target horizontal positioning points in the same horizontal direction, if the number of target horizontal positioning points is greater than or equal to the above-mentioned first preset number, it is considered that the reliability of the straight line obtained by fitting based on the target horizontal positioning points is high, so the above-mentioned target horizontal positioning points can be fitted with a straight line along the horizontal direction to obtain the horizontal main grid line; otherwise, it is considered that the reliability of the straight line obtained by fitting based on the target horizontal positioning points is low, and the target horizontal positioning points can be not fitted with a straight line.

[0145] Corresponding to the above scheme, when performing straight line fitting on the target vertical positioning points, for the target horizontal positioning points in the same vertical direction, when the number of target vertical positioning points is greater than or equal to the second preset number, straight line fitting can be performed on the target vertical positioning points to obtain vertical main grid lines.

[0146] The second preset number may be 4, 5, 9, etc.

[0147] Specifically, for the target vertical positioning points in the same vertical direction, if the number of target vertical positioning points is greater than or equal to the above-mentioned second preset number, it is considered that the reliability of the straight line obtained by fitting based on the target vertical positioning points is high, so the above-mentioned target vertical positioning points can be fitted with a straight line along the vertical direction to obtain the vertical main grid line; otherwise, it is considered that the reliability of the straight line obtained by fitting based on the target vertical positioning points is low, and the target vertical positioning points can be not fitted with a straight line.

[0148] The method of determining the target point in the above step S102 is described in detail below.

[0149] In one embodiment of the present application, when determining the target point, for each horizontal main grid line, the angle between the horizontal main grid line and a vertical main grid line is obtained. When the difference between the angle and the right angle is less than a preset difference threshold, the intersection between the horizontal main grid line and the vertical main grid line is determined as the target point.

[0150] The difference threshold may be 5°, 6°, 3°, etc.

[0151] Specifically, for each horizontal main grid line, the angle between the horizontal main grid line and each vertical main grid line can be obtained. When the difference between the angle between the horizontal main grid line and the vertical main grid line and the right angle is less than the preset difference threshold, it means that the reliability of the horizontal main grid line is relatively high. Therefore, the intersection between the horizontal main grid line and the vertical main grid line can be used as the target point until all horizontal main grid lines and vertical main grid lines are traversed.

[0152] Alternatively, for each vertical main grid line, the angle between the vertical main grid line and a horizontal main grid line can be obtained. When the difference between the angle and the right angle is less than a preset difference threshold, the intersection between the vertical main grid line and the horizontal main grid line is determined as the target point.

[0153] In one embodiment of the present application, when the number of horizontal main grid lines detected in step S101 is greater than 1 and the number of vertical main grid lines is greater than 1, the target point can be determined using the scheme provided in the above embodiment. When the number of horizontal main grid lines is 1 and the number of vertical main grid lines is greater than 1, or when the number of vertical main grid lines is 1 and the number of horizontal main grid lines is greater than 1, other methods can be used to determine the target point, which are introduced below.

[0154] See also Figure 3 , Figure 3 This is a flow chart of a first target point determination method provided in an embodiment of the present application. When the number of horizontal main grid lines is 1, the method for determining the target point includes the following steps S301-S305:

[0155] S301 , determining a horizontal intersection point where a horizontal bus bar line intersects a vertical bus bar line.

[0156] Specifically, when the number of horizontal bus bars is 1 and the number of vertical bus bars is greater than 1, the points where the horizontal bus bars intersect with each vertical bus bar can be determined as horizontal intersection points.

[0157] S302: Searching for candidate horizontal intersections that meet a preset horizontal equidistant spacing condition from the determined horizontal intersections.

[0158] The horizontal equal spacing condition is used to determine whether the horizontal spacing between horizontal intersections is equal. For example, the horizontal equal spacing condition may include: the spacing between adjacent horizontal intersections is within a preset spacing range, the difference between the spacing between adjacent horizontal intersections is less than a preset difference threshold, etc.

[0159] In one embodiment of the present application, the horizontal spacing between adjacent horizontal intersections among the horizontal intersections can be obtained, the maximum horizontal spacing and the minimum horizontal spacing can be determined from the obtained horizontal spacings, and the horizontal difference threshold can be calculated based on the maximum horizontal spacing and the minimum horizontal spacing; the horizontal intersections whose difference between the corresponding horizontal spacings is less than or equal to the horizontal difference threshold are determined as horizontal candidate intersections.

[0160] Specifically, the horizontal spacing between adjacent horizontal intersections among each horizontal intersection can be calculated, and the maximum horizontal spacing and the minimum horizontal spacing can be selected therefrom. The horizontal difference threshold can be calculated based on the maximum horizontal spacing and the minimum horizontal spacing. For each horizontal intersection, the calculated horizontal spacing between adjacent horizontal intersections can be used to search for horizontal intersections whose difference between horizontal spacings is less than or equal to the above-mentioned horizontal difference threshold as horizontal candidate intersections. In this way, the difference in horizontal spacing between the selected horizontal candidate intersections is small, and thus the above-mentioned horizontal candidate intersections can be considered to be arranged at equal intervals.

[0161] In one embodiment of the present application, when calculating the horizontal difference threshold, the difference between the maximum horizontal spacing and the minimum horizontal spacing can be determined, and then the product between the difference and a preset first weight is calculated as the horizontal difference threshold. The value of the above-mentioned first weight is greater than 0 and less than 1.

[0162] In one embodiment of the present application, the number of horizontal intersections whose horizontal spacing differences are less than or equal to a horizontal difference threshold may be counted. If the number is greater than or equal to a preset first number threshold, the horizontal intersection found above may be used as a horizontal candidate intersection.

[0163] Among them, the above-mentioned first quantity threshold can be a threshold given artificially, or it can be a threshold determined according to the total number of horizontal intersections. For example, the product between the total number of horizontal intersections and the quantity weight can be calculated as the first quantity threshold, and the value of the quantity weight is greater than 0 and less than 1.

[0164] S303: Obtain a horizontal average of the distances between adjacent horizontal candidate intersection points among the horizontal candidate intersection points.

[0165] Specifically, the distances between adjacent horizontal candidate intersection points among the horizontal candidate intersection points may be obtained, and then the average of the distances may be calculated as the horizontal average.

[0166] S304, for each horizontal candidate intersection point, using the horizontal candidate intersection point as a reference and the horizontal average value as a horizontal interval, determine each horizontal correction point in the same horizontal direction as the horizontal candidate intersection point, and calculate the horizontal position deviation between each horizontal correction point and the determined horizontal intersection point.

[0167] Specifically, for each horizontal candidate intersection point, the horizontal candidate intersection point can be used as a reference point, and then the above-mentioned horizontal average value can be used as an interval to determine the points in the horizontal direction with an interval between each two points being the above-mentioned horizontal average value, as horizontal correction points. The number of determined horizontal correction points is the number of horizontal intersection points. Since the horizontal correction point is determined based on the reference point and the horizontal interval, there is a position difference between it and the horizontal intersection point. The horizontal position deviation between the obtained horizontal correction point and the above-mentioned horizontal intersection point can be calculated.

[0168] In one embodiment of the present application, the horizontal position deviation E can be calculated according to the following formula:

[0169]

[0170] Among them, the above n represents the total number of horizontal intersections, and the above x′ i Indicates the horizontal coordinate of the i-th horizontal correction point. The above x i Represents the horizontal coordinate of the i-th horizontal intersection point, the above y′ i Indicates the vertical coordinate of the i-th horizontal correction point. i Represents the vertical coordinate of the i-th horizontal intersection point.

[0171] In addition, the maximum value, minimum value, average value, etc. of the position difference between the horizontal correction point and the above-mentioned horizontal intersection point can also be obtained as the horizontal position deviation, which is not limited in this embodiment of the present application.

[0172] S305 , selecting a horizontal candidate intersection point whose corresponding horizontal position deviation satisfies a first preset condition, and determining each horizontal correction point determined based on the horizontal candidate intersection point as a reference as a target point.

[0173] The first preset condition may be that the horizontal position deviation is minimal, or that the horizontal position deviation is less than a preset deviation threshold, etc. This embodiment of the present application is not limited thereto.

[0174] Specifically, for each horizontal candidate intersection point, various horizontal correction points based on the horizontal candidate intersection point and the corresponding horizontal position deviation can be obtained. The horizontal candidate intersection point whose corresponding horizontal position deviation meets the above-mentioned first preset condition can be selected from them, and then the various horizontal correction points determined based on the horizontal candidate intersection point can be used as target points.

[0175] Corresponding to the above solution, the embodiment of the present application also provides a target point determination method for the case where the number of vertical main grid lines is 1, which is described in detail below.

[0176] See also Figure 4 , Figure 4 This is a flow chart of a second target point determination method provided in an embodiment of the present application. When the number of vertical busbars is 1, the target point can be determined according to the following steps S401-S405:

[0177] S401 , determining a vertical intersection point where a vertical bus bar intersects a horizontal bus bar.

[0178] Specifically, when the number of vertical bus bars is 1 and the number of horizontal bus bars is greater than 1, the points where the vertical bus bars intersect with each horizontal bus bar can be determined as vertical intersection points.

[0179] S402: Searching for candidate vertical intersections that meet a preset vertical equidistant spacing condition from the determined vertical intersections.

[0180] The vertical equal spacing condition is a condition for determining whether the vertical spacing between vertical intersections is equal. For example, the vertical equal spacing condition may be: the spacing between adjacent vertical intersections is within a preset spacing range, the difference between the spacing between adjacent vertical intersections is less than a preset difference threshold, etc.

[0181] In one embodiment of the present application, the vertical spacing between adjacent vertical intersections in each vertical intersection can be obtained, the maximum vertical spacing and the minimum vertical spacing can be determined from the obtained vertical spacings, and the vertical difference threshold can be calculated based on the maximum vertical spacing and the minimum vertical spacing; the vertical intersections whose differences between the corresponding vertical spacings are less than or equal to the vertical difference threshold are determined as vertical candidate intersections.

[0182] Specifically, the vertical spacing between adjacent vertical intersections in each vertical intersection can be calculated, and the maximum vertical spacing and the minimum vertical spacing can be selected from them. The vertical difference threshold is calculated based on the maximum vertical spacing and the minimum vertical spacing. For each vertical intersection, the vertical spacing between adjacent vertical intersections obtained by calculation is used to find the vertical intersections whose difference between the vertical spacings is less than or equal to the above-mentioned vertical difference threshold, as the vertical candidate intersections. In this way, the difference in the vertical spacing between the selected vertical candidate intersections is small, so that the above-mentioned vertical candidate intersections can be considered to be arranged at equal intervals.

[0183] In one embodiment of the present application, when calculating the vertical difference threshold, the difference between the maximum vertical spacing and the minimum vertical spacing can be determined, and then the product between the difference and a preset second weight is calculated as the vertical difference threshold. The value of the above-mentioned second weight is greater than 0 and less than 1.

[0184] In one embodiment of the present application, the number of vertical intersections whose vertical spacing difference is less than or equal to a vertical difference threshold can be counted. If the number is greater than or equal to a preset second number threshold, the vertical intersection found above can be used as a vertical candidate intersection.

[0185] Among them, the above-mentioned second quantity threshold can be a threshold given artificially, or it can be a threshold determined according to the total number of vertical intersections. For example, the product between the total number of vertical intersections and the quantity weight can be calculated as the second quantity threshold, and the value of the quantity weight is greater than 0 and less than 1.

[0186] S403 : Obtain a vertical mean value of the distances between adjacent vertical candidate intersection points among the vertical candidate intersection points.

[0187] Specifically, the distances between adjacent vertical candidate intersection points among the vertical candidate intersection points may be obtained, and then the average of the distances may be calculated as the vertical average.

[0188] S404 , for each vertical candidate intersection point, using the vertical candidate intersection point as a reference and the vertical mean as a vertical interval, determine each vertical correction point that is in the same vertical direction as the vertical candidate intersection point, and calculate the vertical position deviation between each vertical correction point and the determined vertical intersection point.

[0189] Specifically, for each vertical candidate intersection point, the vertical candidate intersection point can be used as a reference point, and then the above-mentioned vertical mean is used as an interval to determine points in the vertical direction with an interval between each two points being the above-mentioned vertical mean, as vertical correction points. The number of determined vertical correction points is the number of vertical intersection points. Since the vertical correction point is determined based on the reference point and the vertical interval, there is a position difference between it and the vertical intersection point. The vertical position deviation between the obtained vertical correction point and the above-mentioned vertical intersection point can be calculated.

[0190] Among them, the above method of determining the vertical position deviation is the same as Figure 3 The manner of determining the horizontal position deviation in the illustrated embodiment is similar and will not be described in detail here.

[0191] S405 : Select a vertical candidate intersection point whose corresponding vertical position deviation meets a second preset condition, and determine each vertical correction point determined based on the vertical candidate intersection point as a reference as a target point.

[0192] Among them, the above-mentioned second preset condition can be that the vertical position deviation is minimum, or that the vertical position deviation is less than a preset deviation threshold, etc., and the embodiment of the present application is not limited to this.

[0193] Specifically, for each vertical candidate intersection point, various vertical correction points based on the vertical candidate intersection point and the corresponding vertical position deviation can be obtained. A vertical candidate intersection point whose corresponding vertical position deviation meets the above-mentioned first preset condition can be selected from them, and then the various vertical correction points determined based on the vertical candidate intersection point can be used as target points.

[0194] In the solution provided by the above embodiment, for the positioning points that cannot be detected or the positioning points that are detected incorrectly, adjustments can be made by interpolation or correction. For example, see Figure 5 , Figure 5 This is a schematic diagram of the first positioning point provided in the embodiment of the present application. It can be seen that the Figure 5 There are undetected positioning points in the image. By applying the solution provided in the above embodiment, the undetected positioning points can be supplemented by interpolation. Figure 6 , Figure 6 This is a schematic diagram of the second positioning point provided in an embodiment of the present application. Figure 6 It can be seen that the application of the solution provided by the above embodiment can improve the accuracy of the determined positioning points, thereby improving the accuracy of the image position of the battery cell obtained by positioning.

[0195] The following describes in detail the method of determining the position of the cell image in step S103.

[0196] In one embodiment of the present application, when determining the image position of a battery cell, when the number of horizontal main grid lines is 1, a first rectangular area of ​​a preset height is determined with the midpoint of the target points at the left and right ends of the target point as the center and the horizontal distance between the target points at the left and right ends as the width, and the image position of the first rectangular area is obtained as the image position of the battery cell.

[0197] The preset height is a height value manually determined according to the actual height of the battery cell.

[0198] Specifically, when the number of horizontal main grid lines is 1, the center points of the targets on the left and right ends of the obtained target points can be determined as the center of the rectangular area, the horizontal spacing of the target points on the left and right ends can be determined as the width of the rectangular area, the preset height can be determined as the height of the rectangular area, and a rectangular area that meets the above center, width, and height can be determined from the image as the first rectangular area, and the image position of the first rectangular area can be used as the image position of the battery cell.

[0199] Corresponding to the above scheme, when the number of vertical main grid lines is 1, a second rectangular area of ​​a preset width is determined with the midpoint of the target points at the upper and lower ends of the target point as the center and the vertical distance between the target points at the upper and lower ends as the height, and the image position of the second rectangular area is obtained as the image position of the battery cell.

[0200] The preset width is a width value manually determined according to the actual width of the battery cell.

[0201] Specifically, when the number of vertical main grid lines is 1, the center points of the upper and lower targets among the obtained target points can be determined as the center of the rectangular area, the vertical spacing of the upper and lower target points can be determined as the height of the rectangular area, the preset width can be determined as the width of the rectangular area, and a rectangular area that meets the above center, width, and height can be determined from the image as the second rectangular area, and the image position of the second rectangular area can be used as the image position of the battery cell.

[0202] In the cell positioning solution provided by the above embodiment, an image containing the cell can be obtained, and the main grid lines in the image can be detected, wherein the main grid lines include horizontal main grid lines and vertical main grid lines; the intersection points of the horizontal main grid lines and the vertical main grid lines are determined as target points; and the image positions of the rectangular areas where the target points are located are obtained as the image positions of the cell. The main grids on the cell are often arranged in an array, which will form horizontal and vertical main grid lines. The target points where the horizontal and vertical main grid lines intersect can reflect the positions of the main grids. Therefore, the image positions of the rectangular areas where the target points are located can be obtained as the image positions of the cell. Since the main grid lines are not easily disturbed by imaging problems, the image positions of the cell determined based on the main grid lines are also not easily disturbed by imaging problems. It can be seen that the accuracy of the image positions of the cell obtained by positioning can be improved by applying the solution provided by the above embodiment.

[0203] In addition, when defect detection is subsequently performed on the cell, defect detection can be performed on the image area at the above image position. Since the accuracy of the cell image position obtained by positioning is high, the accuracy of cell defect detection is also high.

[0204] Corresponding to the above-mentioned cell positioning method, an embodiment of the present application further provides a cell positioning device, which is described in detail below.

[0205] See also Figure 7 , Figure 7 This is a schematic structural diagram of a cell positioning device provided in an embodiment of the present application, the device comprising:

[0206] An image acquisition module 701 is used to acquire an image containing a battery cell;

[0207] A busbar detection module 702 is configured to detect busbars in the image, wherein the busbars include horizontal busbars and vertical busbars;

[0208] A target point determination module 703 is used to determine an intersection point where the horizontal main grid line and the vertical main grid line intersect as a target point;

[0209] The cell positioning module 704 is configured to obtain the image position of the rectangular area where each target point is located as the image position of the cell.

[0210] In one embodiment of the present application, the busbar detection module 702 includes:

[0211] A positioning point detection unit, configured to detect a positioning point of the main grid of the cell in the image;

[0212] A horizontal main grid line detection unit is used to determine horizontal positioning points in the same horizontal direction, and perform straight line fitting on the horizontal positioning points to obtain horizontal main grid lines;

[0213] The vertical main grid line detection unit is used to determine vertical positioning points in the same vertical direction, and perform straight line fitting on the vertical positioning points to obtain vertical main grid lines.

[0214] In one embodiment of the present application, the horizontal main grid line detection unit includes:

[0215] The first detection subunit is configured to determine, for horizontal positioning points located in the same horizontal direction, a target horizontal positioning point whose vertical spacing with adjacent horizontal positioning points is less than a preset vertical spacing threshold;

[0216] A first fitting subunit is used to perform straight line fitting on the target horizontal positioning point to obtain a horizontal main grid line;

[0217] and / or

[0218] The vertical main grid line detection unit includes:

[0219] The second detection subunit is configured to determine, for vertical positioning points in the same vertical direction, a target vertical positioning point whose horizontal spacing with adjacent vertical positioning points is less than a preset horizontal spacing threshold;

[0220] The second fitting subunit is used to perform straight line fitting on the target vertical positioning point to obtain a vertical main grid line.

[0221] In one embodiment of the present application, the first fitting subunit is specifically configured to:

[0222] For target horizontal positioning points in the same horizontal direction, when the number of the target horizontal positioning points is greater than or equal to a first preset number, performing straight line fitting on the target horizontal positioning points to obtain horizontal main grid lines;

[0223] and / or

[0224] The second fitting subunit is specifically configured to:

[0225] For target horizontal positioning points in the same vertical direction, when the number of the target vertical positioning points is greater than or equal to a second preset number, straight line fitting is performed on the target vertical positioning points to obtain vertical main grid lines.

[0226] In one embodiment of the present application, the target point determination module 703 is specifically configured to:

[0227] For each horizontal main grid line, the angle between the horizontal main grid line and a vertical main grid line is obtained. When the difference between the angle and the right angle is less than a preset difference threshold, the intersection between the horizontal main grid line and the vertical main grid line is determined as the target point.

[0228] In one embodiment of the present application, the target point determination module 703 includes:

[0229] a first intersection determination unit, configured to determine a horizontal intersection point where the horizontal bus bar intersects with the vertical bus bar when the number of the horizontal bus bar is 1;

[0230] A first intersection search unit is configured to search for candidate horizontal intersections that meet a preset horizontal equidistant spacing condition from the determined horizontal intersections;

[0231] A first mean value obtaining unit is configured to obtain a horizontal mean value of intervals between adjacent horizontal candidate intersection points among the horizontal candidate intersection points;

[0232] a first deviation calculation unit configured to determine, for each horizontal candidate intersection point, horizontal correction points located in the same horizontal direction as the horizontal candidate intersection point, using the horizontal candidate intersection point as a reference and the horizontal average as a horizontal interval, and calculate a horizontal position deviation between each horizontal correction point and the determined horizontal intersection point;

[0233] a first target point determination unit, configured to select a horizontal candidate intersection point whose corresponding horizontal position deviation meets a first preset condition, and determine each horizontal correction point obtained with the horizontal candidate intersection point as a reference as a target point;

[0234] and / or

[0235] a second intersection determination unit, configured to determine a vertical intersection where the vertical bus bar intersects with the horizontal bus bar when the number of the vertical bus bar is 1;

[0236] A second intersection search unit is configured to search for candidate vertical intersections that meet a preset vertical equidistant spacing condition from the determined vertical intersections;

[0237] a second mean value obtaining unit, configured to obtain a vertical mean value of intervals between adjacent vertical candidate intersection points among the vertical candidate intersection points;

[0238] a second deviation calculation unit, configured to determine, for each vertical candidate intersection point, vertical correction points that are located in the same vertical direction as the vertical candidate intersection point, using the vertical candidate intersection point as a reference and the vertical mean as a vertical interval, and calculate a vertical position deviation between each vertical correction point and the determined vertical intersection point;

[0239] The second target point determination unit is configured to select a vertical candidate intersection point whose corresponding vertical position deviation satisfies a second preset condition, and determine each vertical correction point obtained based on the vertical candidate intersection point as a target point.

[0240] In one embodiment of the present application, the first intersection search unit is specifically configured to:

[0241] Obtaining horizontal spacings between adjacent horizontal intersection points among the horizontal intersection points, determining a maximum horizontal spacing and a minimum horizontal spacing from the obtained horizontal spacings, and calculating a horizontal difference threshold based on the maximum horizontal spacing and the minimum horizontal spacing;

[0242] Determine a horizontal intersection point where the difference between the corresponding horizontal intervals is less than or equal to the horizontal difference threshold as a horizontal candidate intersection point;

[0243] and / or

[0244] The second intersection search unit is specifically configured to:

[0245] Obtaining vertical spacings between adjacent vertical intersections among the vertical intersections, determining a maximum vertical spacing and a minimum vertical spacing from the obtained vertical spacings, and calculating a vertical difference threshold based on the maximum vertical spacing and the minimum vertical spacing;

[0246] A vertical intersection point whose difference between corresponding vertical intervals is less than or equal to the vertical difference threshold is determined as a vertical candidate intersection point.

[0247] In one embodiment of the present application, the cell positioning module 704 is specifically configured to:

[0248] When the number of the horizontal main grid line is 1, a first rectangular area of ​​a preset height is determined with the midpoint of the target points at the left and right ends of the target point as the center and the horizontal distance between the target points at the left and right ends as the width, and an image position of the first rectangular area is obtained as the image position of the battery cell;

[0249] and / or

[0250] When the number of vertical main grid lines is 1, a second rectangular area of ​​a preset width is determined with the midpoint of the target points at the upper and lower ends of the target points as the center and the vertical distance between the target points at the upper and lower ends as the height, and the image position of the second rectangular area is obtained as the image position of the battery cell.

[0251] An embodiment of the present application further provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute any of the above-described cell positioning methods.

[0252] In the cell positioning solution provided by the above embodiment, an image containing the cell can be obtained, and the main grid lines in the image can be detected, wherein the main grid lines include horizontal main grid lines and vertical main grid lines; the intersection points of the horizontal main grid lines and the vertical main grid lines are determined as target points; and the image positions of the rectangular areas where the target points are located are obtained as the image positions of the cell. The main grids on the cell are often arranged in an array, which will form horizontal and vertical main grid lines. The target points where the horizontal and vertical main grid lines intersect can reflect the positions of the main grids. Therefore, the image positions of the rectangular areas where the target points are located can be obtained as the image positions of the cell. Since the main grid lines are not easily disturbed by imaging problems, the image positions of the cell determined based on the main grid lines are also not easily disturbed by imaging problems. It can be seen that the accuracy of the image positions of the cell obtained by positioning can be improved by applying the solution provided by the above embodiment.

[0253] In addition, when defect detection is subsequently performed on the cell, defect detection can be performed on the image area at the above image position. Since the accuracy of the cell image position obtained by positioning is high, the accuracy of cell defect detection is also high.

[0254] The present application also provides an electronic device, such as Figure 8 As shown, it includes a processor 801, a communication interface 802, a memory 803 and a communication bus 804, wherein the processor 801, the communication interface 802, and the memory 803 communicate with each other through the communication bus 804.

[0255] Memory 803, used for storing computer programs;

[0256] The processor 801 is configured to implement the above-mentioned battery cell positioning method when executing the program stored in the memory 803 .

[0257] The communication bus mentioned in the electronic device mentioned above may be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. This communication bus can be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is used in the figure, but this does not mean that there is only one bus or only one type of bus.

[0258] The communication interface is used for communication between the above electronic device and other devices.

[0259] The memory may include random access memory (RAM) or non-volatile memory (NVM), such as at least one disk storage. Alternatively, the memory may be at least one storage device located away from the processor.

[0260] The above-mentioned processor can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc.; it can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, and discrete hardware components.

[0261] In another embodiment provided in the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned battery cell positioning methods are implemented.

[0262] In another embodiment provided in the present application, a computer program product including instructions is also provided, which, when executed on a computer, enables the computer to execute any of the battery cell positioning methods in the above embodiments.

[0263] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When software is used for implementation, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrations. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape), an optical medium (e.g., a DVD), or a semiconductor medium (e.g., a solid-state drive (SSD)).

[0264] It should be noted that, in this document, relational terms such as first and second, etc., are used only to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply the existence of any such actual relationship or order between these entities or operations. Moreover, the terms "comprises," "comprising," or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or elements inherent to such process, method, article, or device. In the absence of further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of other identical elements in the process, method, article, or device comprising the element.

[0265] Each embodiment in this specification is described in a related manner. Similar portions between the various embodiments can be referenced to each other. Each embodiment focuses on the differences from other embodiments. In particular, since the apparatus embodiments, electronic device embodiments, and computer-readable storage medium embodiments are generally similar to the method embodiments, their descriptions are relatively simple. For related portions, reference can be made to the descriptions of the method embodiments.

[0266] The above description is only a preferred embodiment of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present application are included in the scope of protection of the present application.

Claims

1. A cell positioning method, characterized in that: The method comprises: Obtain an image containing a battery cell, and detect busbars in the image, wherein the busbars include horizontal busbars and vertical busbars; When the number of the horizontal main grid line is 1, determining a horizontal intersection point where the horizontal main grid line intersects with the vertical main grid line; Searching for candidate horizontal intersection points that meet a preset horizontal equidistant spacing condition from the determined horizontal intersection points; Obtaining a horizontal average of the distances between adjacent horizontal candidate intersection points among the horizontal candidate intersection points; For each horizontal candidate intersection point, using the horizontal candidate intersection point as a reference and the horizontal average as a horizontal interval, determine each horizontal correction point that is in the same horizontal direction as the horizontal candidate intersection point, and calculate the horizontal position deviation between each horizontal correction point and the determined horizontal intersection point; Selecting a horizontal candidate intersection point whose corresponding horizontal position deviation meets a first preset condition, and determining each horizontal correction point obtained with the horizontal candidate intersection point as a reference as a target point; and / or When the number of the vertical main grid line is 1, determining a vertical intersection point where the vertical main grid line intersects with a horizontal main grid line; Searching for candidate vertical intersection points that meet a preset vertical equidistant spacing condition from the determined vertical intersection points; Obtaining a vertical mean value of the distances between adjacent vertical candidate intersection points among the vertical candidate intersection points; For each vertical candidate intersection point, taking the vertical candidate intersection point as a reference and the vertical mean as a vertical interval, determine each vertical correction point that is in the same vertical direction as the vertical candidate intersection point, and calculate the vertical position deviation between each vertical correction point and the determined vertical intersection point; Selecting a vertical candidate intersection point whose corresponding vertical position deviation meets a second preset condition, and determining each vertical correction point obtained with the vertical candidate intersection point as a reference as a target point; The image position of the rectangular area where each target point is located is obtained as the image position of the battery cell.

2. The method according to claim 1, characterized in that The detecting of the main grid lines in the image includes: Detecting a positioning point of a main grid of the battery cell in the image; Determine horizontal positioning points in the same horizontal direction, perform straight line fitting on the horizontal positioning points, and obtain horizontal main grid lines; Vertical positioning points in the same vertical direction are determined, and straight line fitting is performed on the vertical positioning points to obtain vertical main grid lines.

3. The method according to claim 2, characterized in that The determining of horizontal positioning points in the same horizontal direction and performing straight line fitting on the horizontal positioning points to obtain horizontal main grid lines includes: For the horizontal positioning points in the same horizontal direction, determine a target horizontal positioning point whose vertical spacing with adjacent horizontal positioning points is less than a preset vertical spacing threshold; Performing straight line fitting on the target horizontal positioning point to obtain a horizontal main grid line; and / or The determining of vertical positioning points in the same vertical direction and performing straight line fitting on the vertical positioning points to obtain vertical main grid lines includes: For vertical positioning points in the same vertical direction, determine a target vertical positioning point whose horizontal spacing with adjacent vertical positioning points is less than a preset horizontal spacing threshold; A straight line is fitted to the target vertical positioning point to obtain a vertical main grid line.

4. The method according to claim 3, characterized in that The step of performing straight line fitting on the target horizontal positioning point to obtain a horizontal main grid line includes: For target horizontal positioning points in the same horizontal direction, when the number of the target horizontal positioning points is greater than or equal to a first preset number, performing straight line fitting on the target horizontal positioning points to obtain horizontal main grid lines; and / or The step of performing straight line fitting on the target vertical positioning point to obtain a vertical main grid line includes: For target horizontal positioning points in the same vertical direction, when the number of the target vertical positioning points is greater than or equal to a second preset number, straight line fitting is performed on the target vertical positioning points to obtain vertical main grid lines.

5. The method according to claim 1, wherein The step of searching for candidate horizontal intersection points that meet a preset horizontal equidistant condition from the determined horizontal intersection points includes: Obtaining horizontal spacings between adjacent horizontal intersection points among the horizontal intersection points, determining a maximum horizontal spacing and a minimum horizontal spacing from the obtained horizontal spacings, and calculating a horizontal difference threshold based on the maximum horizontal spacing and the minimum horizontal spacing; Determine a horizontal intersection point where the difference between the corresponding horizontal intervals is less than or equal to the horizontal difference threshold as a horizontal candidate intersection point; and / or The step of searching for candidate vertical intersection points that meet a preset vertical equidistant spacing condition from the determined vertical intersection points includes: Obtaining vertical spacings between adjacent vertical intersections among the vertical intersections, determining a maximum vertical spacing and a minimum vertical spacing from the obtained vertical spacings, and calculating a vertical difference threshold based on the maximum vertical spacing and the minimum vertical spacing; A vertical intersection point whose difference between corresponding vertical intervals is less than or equal to the vertical difference threshold is determined as a vertical candidate intersection point.

6. The method according to any one of claims 1 to 5, characterized in that The obtaining of the image position of the rectangular area where each target point is located as the image position of the battery sheet includes: When the number of the horizontal main grid line is 1, a first rectangular area of ​​a preset height is determined with the midpoint of the target points at the left and right ends of the target point as the center and the horizontal distance between the target points at the left and right ends as the width, and an image position of the first rectangular area is obtained as the image position of the battery cell; and / or When the number of vertical main grid lines is 1, a second rectangular area of ​​a preset width is determined with the midpoint of the target points at the upper and lower ends of the target points as the center and the vertical distance between the target points at the upper and lower ends as the height, and the image position of the second rectangular area is obtained as the image position of the battery cell.

7. A battery cell positioning device, characterized in that: The device comprises: An image acquisition module, used to acquire an image containing a battery cell; A busbar detection module, configured to detect busbars in the image, wherein the busbars include horizontal busbars and vertical busbars; A target point determination module is used to determine the intersection point where the horizontal main grid line and the vertical main grid line intersect as the target point; A cell positioning module is used to obtain the image position of the rectangular area where each target point is located as the image position of the cell; The target point determination module includes: a first intersection determination unit, configured to determine a horizontal intersection point where the horizontal bus bar intersects with the vertical bus bar when the number of the horizontal bus bar is 1; A first intersection search unit is configured to search for candidate horizontal intersections that meet a preset horizontal equidistant spacing condition from the determined horizontal intersections; A first mean value obtaining unit is configured to obtain a horizontal mean value of intervals between adjacent horizontal candidate intersection points among the horizontal candidate intersection points; a first deviation calculation unit configured to determine, for each horizontal candidate intersection point, horizontal correction points located in the same horizontal direction as the horizontal candidate intersection point, using the horizontal candidate intersection point as a reference and the horizontal average as a horizontal interval, and calculate a horizontal position deviation between each horizontal correction point and the determined horizontal intersection point; A first target point determination unit is configured to select a horizontal candidate intersection point whose corresponding horizontal position deviation meets a first preset condition, and determine each horizontal correction point obtained based on the horizontal candidate intersection point as a target point; and / or a second intersection determination unit, configured to determine a vertical intersection where the vertical bus bar intersects with the horizontal bus bar when the number of the vertical bus bar is 1; A second intersection search unit is configured to search for candidate vertical intersections that meet a preset vertical equidistant spacing condition from the determined vertical intersections; a second mean value obtaining unit, configured to obtain a vertical mean value of intervals between adjacent vertical candidate intersection points among the vertical candidate intersection points; a second deviation calculation unit, configured to determine, for each vertical candidate intersection point, vertical correction points that are located in the same vertical direction as the vertical candidate intersection point, using the vertical candidate intersection point as a reference and the vertical mean as a vertical interval, and calculate a vertical position deviation between each vertical correction point and the determined vertical intersection point; The second target point determination unit is configured to select a vertical candidate intersection point whose corresponding vertical position deviation satisfies a second preset condition, and determine each vertical correction point obtained based on the vertical candidate intersection point as a target point.

8. The device according to claim 7, characterized in that The main grid line detection module includes: A positioning point detection unit, configured to detect a positioning point of the main grid of the cell in the image; A horizontal main grid line detection unit is used to determine horizontal positioning points in the same horizontal direction, and perform straight line fitting on the horizontal positioning points to obtain horizontal main grid lines; A vertical main grid line detection unit is used to determine vertical positioning points in the same vertical direction, and perform straight line fitting on the vertical positioning points to obtain vertical main grid lines; The horizontal main grid line detection unit includes: The first detection subunit is configured to determine, for horizontal positioning points located in the same horizontal direction, a target horizontal positioning point whose vertical spacing with adjacent horizontal positioning points is less than a preset vertical spacing threshold; A first fitting subunit is used to perform straight line fitting on the target horizontal positioning point to obtain a horizontal main grid line; and / or The vertical main grid line detection unit includes: The second detection subunit is configured to determine, for vertical positioning points in the same vertical direction, a target vertical positioning point whose horizontal spacing with adjacent vertical positioning points is less than a preset horizontal spacing threshold; A second fitting subunit is used to perform straight line fitting on the target vertical positioning point to obtain a vertical main grid line; The first fitting subunit is specifically configured to: For target horizontal positioning points in the same horizontal direction, when the number of the target horizontal positioning points is greater than or equal to a first preset number, performing straight line fitting on the target horizontal positioning points to obtain horizontal main grid lines; and / or The second fitting subunit is specifically configured to: For target horizontal positioning points in the same vertical direction, when the number of the target vertical positioning points is greater than or equal to a second preset number, performing straight line fitting on the target vertical positioning points to obtain vertical main grid lines; The first intersection search unit is specifically configured to: Obtaining horizontal spacings between adjacent horizontal intersection points among the horizontal intersection points, determining a maximum horizontal spacing and a minimum horizontal spacing from the obtained horizontal spacings, and calculating a horizontal difference threshold based on the maximum horizontal spacing and the minimum horizontal spacing; Determine a horizontal intersection point where the difference between the corresponding horizontal intervals is less than or equal to the horizontal difference threshold as a horizontal candidate intersection point; and / or The second intersection search unit is specifically configured to: Obtaining vertical spacings between adjacent vertical intersections among the vertical intersections, determining a maximum vertical spacing and a minimum vertical spacing from the obtained vertical spacings, and calculating a vertical difference threshold based on the maximum vertical spacing and the minimum vertical spacing; Determine a vertical intersection point whose difference between corresponding vertical intervals is less than or equal to the vertical difference threshold as a vertical candidate intersection point; The cell positioning module is specifically used for: When the number of the horizontal main grid line is 1, a first rectangular area of ​​a preset height is determined with the midpoint of the target points at the left and right ends of the target point as the center and the horizontal distance between the target points at the left and right ends as the width, and an image position of the first rectangular area is obtained as the image position of the battery cell; and / or When the number of vertical main grid lines is 1, a second rectangular area of ​​a preset width is determined with the midpoint of the target points at the upper and lower ends of the target points as the center and the vertical distance between the target points at the upper and lower ends as the height, and the image position of the second rectangular area is obtained as the image position of the battery cell.

9. An electronic device, characterized in that: It includes a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory communicate with each other via the communication bus; Memory for storing computer programs; A processor, configured to implement the method steps described in any one of claims 1 to 6 when executing a program stored in a memory.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method steps of any one of claims 1 to 6 are implemented.

Citation Information

Patent Citations

  • Laser vision positioning system and positioning method

    CN114909988A

  • Back-contact solar cell sheet connecting structure

    CN202651170U