CN117109447B - Self-adaptive tab width detection method, device and equipment - Google Patents

Self-adaptive tab width detection method, device and equipment Download PDF

Info

Publication number
CN117109447B
CN117109447B CN202311377897.5A CN202311377897A CN117109447B CN 117109447 B CN117109447 B CN 117109447B CN 202311377897 A CN202311377897 A CN 202311377897A CN 117109447 B CN117109447 B CN 117109447B
Authority
CN
China
Prior art keywords
tab
material edge
determining
straight line
coordinates
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202311377897.5A
Other languages
Chinese (zh)
Other versions
CN117109447A (en
Inventor
杨牧
郑晔
张董
杨辉华
赵亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Techmach Corp
Original Assignee
Techmach Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Techmach Corp filed Critical Techmach Corp
Priority to CN202311377897.5A priority Critical patent/CN117109447B/en
Publication of CN117109447A publication Critical patent/CN117109447A/en
Application granted granted Critical
Publication of CN117109447B publication Critical patent/CN117109447B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01BMEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
    • G01B11/00Measuring arrangements characterised by the use of optical techniques
    • G01B11/02Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/60Analysis of geometric attributes
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • Y02E60/10Energy storage using batteries

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Geometry (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention provides a method, a device and equipment for detecting the width of a self-adaptive tab, which are used for extracting a first measuring area from a battery cell image; determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measurement area; extracting a second measurement area containing the electrode lug from the cell image; adjusting the position of the second measuring area based on the preset distance between the center point of the second measuring area and the straight line of the edge of the material; dividing the position-adjusted second measurement region into tab regions based on the gray threshold; generating a tab width detection line which is parallel to the material edge straight line and is at a preset distance from the material edge on the basis of the preset distance, the included angle and the tab area; determining an intersection of the tab width detection line and the tab area, and determining coordinates of two endpoints of the intersection; based on the coordinates and the included angle of the two endpoints, the width calculation formula is utilized to determine the width of the tab, so that the same position is ensured for each detection, and the accuracy of tab width detection is effectively improved.

Description

Self-adaptive tab width detection method, device and equipment
Technical Field
The present invention relates to the field of width measurement technologies, and in particular, to a method, an apparatus, and a device for detecting a width of a self-adaptive tab.
Background
In the winding process of lithium batteries, tab alignment is an important parameter in the quality of the reactive battery cells. In the visual detection of the lithium battery winding process, the tab alignment condition can be reflected laterally by measuring the tab width of the wound battery core. At present, most of the methods for measuring the width of the tab usually identify the tab image in the image, and then identify the width of the tab image.
However, this kind of width detection mode receives the influence such as electric core position angle, and the utmost point ear width detects the precision relatively poor.
Disclosure of Invention
The invention provides a method, a device and equipment for detecting the width of a self-adaptive tab, which are used for solving the defect of inaccurate measuring result of the width of the tab in the prior art.
The invention provides a self-adaptive tab width detection method, which comprises the following steps:
extracting a first measurement area which is positioned at the lug side and contains edge information from the cell image;
determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measurement area;
extracting a second measurement area containing a tab from the cell image;
adjusting the position of the second measurement area based on a preset distance between the center point of the second measurement area and the material edge line;
dividing the second measuring region after the position adjustment into tab regions based on a gray threshold;
generating a tab width detection line which is parallel to the material edge straight line and is at a distance from the preset distance based on the preset distance, the included angle and the tab area;
determining an intersection of the tab width detection line and the tab area, and determining coordinates of two endpoints of the intersection;
and determining the width of the tab by using a width calculation formula based on the coordinates of the two endpoints and the included angle.
According to the method for detecting the width of the self-adaptive tab, the determining of the material edge straight line and the included angle between the material edge straight line and the horizontal axis based on the first measuring area comprises the following steps:
dividing a material region in the first measurement region based on a gray threshold value, and determining an upper left corner coordinate and a lower left corner coordinate of the material region;
based on preset size information, combining the upper left corner coordinate and the lower left corner coordinate to generate a unit measurement area;
and determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the unit measurement areas.
According to the method for detecting the width of the self-adaptive tab, which is provided by the invention, the method for determining the material edge straight line and the included angle between the material edge straight line and the horizontal axis based on a plurality of unit measurement areas comprises the following steps:
obtaining an average gray value of each column of pixels of each unit measurement area to form a discrete one-dimensional array;
respectively serializing each discrete one-dimensional array to generate a continuous function;
and acquiring a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on all the continuous functions.
According to the method for detecting the width of the self-adaptive tab, the method for obtaining the material edge straight line and the included angle between the material edge straight line and the horizontal axis based on all the continuous functions comprises the following steps:
solving a first derivative of each continuous function;
respectively determining a column coordinate at which the first derivative is maximum and a row coordinate of the corresponding unit measurement area;
taking the column coordinates and the row coordinates as a linear coordinate point of the material edge to obtain a linear coordinate point corresponding to each unit measurement area;
and fitting all the linear coordinate points into a straight line to be used as a material edge straight line, and determining an included angle between the straight line and a horizontal axis to be used as an included angle between the material edge straight line and the horizontal axis.
According to the method for detecting the width of the self-adaptive tab, provided by the invention, the unit measuring area is generated by combining the upper left corner coordinate and the lower left corner coordinate based on preset size information, and the method comprises the following steps:
determining the number of unit measurement areas based on the upper left corner coordinates, the lower left corner coordinates and preset size information;
determining the center point coordinate of each unit measurement area based on the number of the unit measurement areas, the association relation between the upper left corner coordinates and the lower left corner coordinates;
and determining each unit measurement area according to the center point coordinates and the preset size information.
According to the self-adaptive tab width detection method provided by the invention, the association relationship is as follows:
wherein the saidRepresents the center point coordinates of the unit measuring area, +.>The upper left-hand corner coordinate is indicated,representing the lower left corner coordinates>The number of unit measurement areas is represented, i=1, 2,3 ….
According to the method for detecting the width of the adaptive tab, the adjusting the position of the second measurement region based on the preset distance between the center point of the second measurement region and the material edge line comprises the following steps:
selecting any material edge linear coordinate point on the material edge straight line;
and inputting a preset distance between the central point of the second measurement area and the material edge straight line, the included angle and the material edge straight line coordinate point to a preset formula, and determining the central coordinate of the adjusted second measurement area.
According to the self-adaptive tab width detection method provided by the invention, the preset formula is as follows:
wherein,representing the center coordinates of the adjusted second measurement area, (-A)>) Represents the linear coordinate point of the edge of any material, +.>Representing a preset distance>Indicating the included angle, the->And represents the abscissa of the center coordinates of the adjusted second measurement region.
The invention also provides a device for detecting the width of the self-adaptive tab, which comprises:
the first extraction module is used for extracting a first measurement area which is positioned at the lug side and contains edge information from the battery cell image;
the first determining module is used for determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measuring area;
the second extraction module is used for extracting a second measurement area containing the electrode lug from the battery cell image;
the adjusting module is used for adjusting the position of the second measuring area based on the preset distance between the center point of the second measuring area and the material edge straight line;
the segmentation module is used for obtaining a tab area by segmentation in the second measurement area after the position adjustment based on the gray threshold;
the generation module is used for generating a tab width detection line which is parallel to the material edge straight line and is at a distance from the preset distance based on the preset distance, the included angle and the tab area;
the second determining module is used for determining an intersection of the tab width detection line and the tab area and determining coordinates of two endpoints of the intersection;
and the third determining module is used for determining the width of the tab by utilizing a width calculation formula based on the coordinates of the two endpoints and the included angle.
The invention also provides an electronic device comprising a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor realizes the adaptive tab width detection method according to any one of the above when executing the program.
The present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the adaptive tab width detection method as described in any of the above.
According to the self-adaptive tab width detection method, device and equipment provided by the invention, the first measurement area which is positioned at the tab side and contains edge information is extracted from the battery cell image; determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measurement area; extracting a second measurement area containing the electrode lug from the cell image; adjusting the position of the second measuring area based on the preset distance between the center point of the second measuring area and the straight line of the edge of the material; dividing the position-adjusted second measurement region into tab regions based on the gray threshold; generating a tab width detection line which is parallel to the material edge straight line and is at a preset distance from the material edge on the basis of the preset distance, the included angle and the tab area; determining an intersection of the tab width detection line and the tab area, and determining coordinates of two endpoints of the intersection; based on the coordinates and the included angle of the two endpoints, the width calculation formula is utilized to determine the width of the tab, and the tab width obtained by calculating the material edge straight line is self-adaptive to the material edge straight line, so that the same position is ensured for each detection, the influence of the angle of the battery cell is avoided, and the tab width detection accuracy is effectively improved.
Drawings
In order to more clearly illustrate the invention or the technical solutions of the prior art, the following description will briefly explain the drawings used in the embodiments or the description of the prior art, and it is obvious that the drawings in the following description are some embodiments of the invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a method for detecting width of an adaptive tab according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a cell image according to an embodiment of the present invention;
FIG. 3 is a schematic view of a material region according to an embodiment of the present invention;
FIG. 4 is a schematic view of a unit measurement area according to an embodiment of the present invention;
FIG. 5 is a schematic view of a second measurement zone provided by an embodiment of the present invention;
fig. 6 is a schematic structural view of a tab area according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a tab width detection line according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of an adaptive tab width detection device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is apparent that the described embodiments are some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The following describes a method, a device and equipment for detecting the width of an adaptive tab according to the present invention with reference to fig. 1 to 9.
Fig. 1 is a schematic flow chart of a method for detecting width of an adaptive tab according to an embodiment of the present invention; FIG. 2 is a schematic diagram of a cell image according to an embodiment of the present invention; FIG. 3 is a schematic view of a material region according to an embodiment of the present invention; FIG. 4 is a schematic view of a unit measurement area according to an embodiment of the present invention; FIG. 5 is a schematic view of a second measurement zone provided by an embodiment of the present invention; fig. 6 is a schematic structural view of a tab area according to an embodiment of the present invention; fig. 7 is a schematic structural diagram of a tab width detection line according to an embodiment of the present invention.
As shown in fig. 1, the method for detecting the width of the adaptive tab according to the embodiment of the present invention mainly includes the following steps:
101. and extracting a first measuring area which is positioned at the lug side and contains edge information from the cell image.
In a specific implementation process, as shown in fig. 2, for acquiring a cell image, including a material portion and two tabs, the process of acquiring the cell image is not specifically described in this embodiment. The orientation of the cell image in fig. 2 is defined as up, down, left and right, so the extracted first measurement region is a lateral measurement region. In the extraction, it is necessary to ensure that the first measurement region must include edge information on one side of the tab, as shown in fig. 2, that is, material edge information needs to be included.
The first measurement area may be automatically extracted according to a preset rectangular size, or manually extracted, and the first measurement area needs to have a certain height besides ensuring that the first measurement area contains left side edge information, that is, the first measurement area should be rectangular, as shown in fig. 2, and is a schematic diagram of the rectangular shape.
102. Based on the first measurement region, a material edge line and an angle of the material edge line to a horizontal axis are determined.
After determining the first measurement region, since the gray values of the first measurement region including the cell and the first measurement region including no cell are different, it is possible to divide the material region in the first measurement region, such as the middle gray region in fig. 3, based on the gray threshold value, and determine the upper left corner coordinates of the material regionAnd lower left angular position
Then, based on the preset size information, for example, 30 pixels long and 10 pixels wide, combining the upper left corner coordinates and the lower left corner coordinates to generate a unit measurement area, forming a first measurement area by a plurality of unit measurement areas, and determining the number of unit measurement areas based on the upper left corner coordinates, the lower left corner coordinates and the preset size information, and recording asnThe calculation process is as shown in formula (1):
(1)
wherein,nrepresenting the number of unit measurement areas,x b the abscissa representing the lower left-hand angular position,x t and the abscissa representing the upper left angular coordinate.
Then, determining the center point coordinate of each unit measurement area based on the number of the unit measurement areas, the association relation between the upper left corner coordinates and the lower left corner coordinates; each unit measurement area can be determined by the coordinates of the central point and the preset size information. As shown in fig. 4, the gray area is the unit measurement area. The association relation is as shown in formula (2) and formula (3):
(2)
(3)
wherein,represents the center point coordinates of the unit measuring area, +.>Representing the upper left corner coordinates>Representing the lower left corner coordinates>The number of unit measurement areas is represented, i=1, 2,3 ….
Carrying out longitudinal projection on each unit measurement area to obtain average gray values of each column of pixels of each unit measurement area, wherein the average gray values form a discrete one-dimensional array; each discrete one-dimensional array is respectively serialized to generate a continuous function; finally, the material edge straight line and the included angle between the material edge straight line and the horizontal axis can be obtained based on all continuous functions
Wherein, based on all continuous functions, obtaining the material edge straight line and the included angle between the material edge straight line and the horizontal axis can include: solving the first derivative of each continuous function, wherein the place with the maximum derivative is the place with the fastest change of the pixel gray scale, namely the edge position of the material; then pass throughSetting the maximum position of the derivative value as the column coordinate of the material edge, and respectively determining the column coordinate of the maximum position of the first derivative and the row coordinate of the corresponding unit measurement area, wherein the row coordinate is the row coordinate of the central point of the unit measurement area; the column and row coordinates are taken as a linear coordinate point of the material edge. After obtaining a linear coordinate point corresponding to each unit measurement area; fitting all the linear coordinate points into a straight line, taking the straight line as a material edge straight line, determining the included angle between the straight line and a horizontal axis, taking the included angle between the material edge straight line and the horizontal axis as the included angle, and recording as
The smaller the preset size of the unit measurement area is, the more accurate the finally determined material edge straight line is, therefore, the length of the unit measurement area is 30 pixels and the width of the unit measurement area is 10 pixels is obtained preferentially by combining the data processing efficiency and accuracy.
103. And extracting a second measurement area containing the tab from the cell image.
In the same manner as the first measurement region is extracted, in the cell image, a second measurement region including the tab is extracted, as shown in fig. 5. The final purpose of the second measuring region is to line and angle with the edge of the materialAnd the width of the tab is determined together.
The second measuring region can be regarded as a longitudinal measuring region which penetrates through the lug and determines the center point coordinate of the second lug measuring region as #,/>)。
104. And adjusting the position of the second measuring area based on the preset distance between the center point of the second measuring area and the straight line of the edge of the material.
Firstly, selecting any linear coordinate point of the material edge on the material edge line, and marking as @) The method comprises the steps of carrying out a first treatment on the surface of the Then inputting the coordinates of the center point of the second measurement area (++>,/>) Preset distance from the line of the edge of the materialdAngle->And determining the center coordinates of the adjusted second measurement area from the linear coordinate points of the edge of the material to preset formulas (4) and (5).
Wherein the preset formulas (4) and (5) are as follows:
(4)
(5)
wherein,representing the center coordinates of the adjusted second measurement area, (-A)>) Represents the linear coordinate point of the edge of any material, +.>Representing a preset distance>Indicating the included angle, the->And represents the abscissa of the center coordinates of the adjusted second measurement region.
Through adjusting the position of the second measuring area, the distance between the electrode lug width detection line obtained later and the material edge straight line is guaranteed to be equal during each detection, and the electrode lug is trapezoid, so that the accuracy of electrode lug width detection can be better guaranteed.
105. And on the basis of the gray threshold, in the second measurement area after the position adjustment, the tab area is obtained by segmentation.
After the second measurement region is adjusted, the second measurement region is divided, and the tab region is obtained through the difference of gray threshold values, namely, the intersection of the second measurement region and the tab, and the tab region contained in the second measurement region is determined, and as shown in fig. 6, the gray region, which is the tab region, on the side, where the material edge is close to the tab.
106. Based on the preset distance, the included angle and the tab area, a tab width detection line which is parallel to the material edge straight line and is at a preset distance from the material edge is generated.
And combining the preset distance and the angle through the generated tab area to obtain a tab width detection line which is parallel to the material edge straight line and is at a preset distance as shown in fig. 7. The obtained tab width detection line is parallel to the edge material straight line, and the preset distance is a fixed value, so that the same tab position which is measured in each tab width measurement can be ensured, and the accuracy of the tab width measurement result is ensured.
107. And determining the intersection of the tab width detection line and the tab area, and determining the coordinates of two endpoints of the intersection.
The intersection of the tab width detection line and the tab area is determined, so that the coordinates of the upper end point and the lower end point of the tab width detection line can be determined and respectively recorded asAnd->
108. Based on the coordinates and the included angle of the two endpoints, the width of the tab is determined by using a width calculation formula.
Then, the calculation formula (6) is reusedCalculating the width of the tab, which is recorded as
(6)
Finally, the width of the tab is obtained, and the position information of the edge of the material is obtained by a sub-pixel method, so that the edge extraction effect is more accurate. By keeping the measuring position always at the same distance and angle from the edge of the material, the accuracy of the measurement results is improved. And the self-adaptive measuring method is adopted, so that the tab width detection line always keeps the same angle and distance as the straight line of the edge of the material, the same position is always detected in each detection, and the accuracy of the detection result is improved.
Based on the same general inventive concept, the invention also provides a self-adaptive tab width detection device, which is described below, and the self-adaptive tab width detection device described below and the self-adaptive tab width detection method described above can be referred to correspondingly.
Fig. 8 is a schematic structural diagram of an adaptive tab width detection device according to an embodiment of the present invention.
As shown in fig. 8, an adaptive tab width detection device provided by an embodiment of the present invention includes:
the first extraction module 801 is configured to extract a first measurement area that is located on the tab side and includes edge information in the cell image;
a first determining module 802, configured to determine, based on the first measurement region, a material edge line and an angle between the material edge line and a horizontal axis;
a second extraction module 803, configured to extract a second measurement region including the tab from the cell image;
an adjusting module 804, configured to adjust a position of the second measurement area based on a preset distance between a center point of the second measurement area and a line of the edge of the material;
the segmentation module 805 is configured to segment the tab area in the second measurement area after the position adjustment based on the gray threshold;
the generating module 806 is configured to generate a tab width detection line parallel to the material edge and spaced apart from the material edge by a preset distance based on the preset distance, the included angle and the tab area;
a second determining module 807, configured to determine an intersection of the tab width detection line and the tab region, and determine coordinates of two endpoints of the intersection;
and a third determining module 808, configured to determine the tab width by using a width calculation formula based on the coordinates and the included angle of the two end points.
The self-adaptive tab width detection device provided by the embodiment comprises the steps of extracting a first measurement area which is positioned at the tab side and contains edge information from a battery cell image; determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measurement area; extracting a second measurement area containing the electrode lug from the cell image; adjusting the position of the second measuring area based on the preset distance between the center point of the second measuring area and the straight line of the edge of the material; dividing the position-adjusted second measurement region into tab regions based on the gray threshold; generating a tab width detection line which is parallel to the material edge straight line and is at a preset distance from the material edge on the basis of the preset distance, the included angle and the tab area; determining an intersection of the tab width detection line and the tab area, and determining coordinates of two endpoints of the intersection; based on the coordinates and the included angle of the two endpoints, the width calculation formula is utilized to determine the width of the tab, and the tab width obtained by calculating the material edge straight line is self-adaptive to the material edge straight line, so that the same position is ensured for each detection, the influence of the angle of the battery cell is avoided, and the tab width detection accuracy is effectively improved.
Further, the first determining module 802 in this embodiment is specifically configured to:
dividing a material region in the first measurement region based on a gray threshold value, and determining an upper left corner coordinate and a lower left corner coordinate of the material region;
based on preset size information, combining the upper left corner coordinate and the lower left corner coordinate to generate a unit measurement area;
and determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the unit measurement areas.
Further, the first determining module 802 in this embodiment is specifically configured to:
obtaining an average gray value of each column of pixels of each unit measurement area to form a discrete one-dimensional array;
respectively serializing each discrete one-dimensional array to generate a continuous function;
and acquiring a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on all the continuous functions.
Further, the first determining module 802 in this embodiment is specifically configured to:
solving a first derivative of each continuous function;
respectively determining a column coordinate at which the first derivative is maximum and a row coordinate of the corresponding unit measurement area;
taking the column coordinates and the row coordinates as a linear coordinate point of the material edge to obtain a linear coordinate point corresponding to each unit measurement area;
and fitting all the linear coordinate points into a straight line to be used as a material edge straight line, and determining an included angle between the straight line and a horizontal axis to be used as an included angle between the material edge straight line and the horizontal axis.
Further, the first determining module 802 in this embodiment is specifically configured to:
determining the number of unit measurement areas based on the upper left corner coordinates, the lower left corner coordinates and preset size information;
determining the center point coordinate of each unit measurement area based on the number of the unit measurement areas, the association relation between the upper left corner coordinates and the lower left corner coordinates;
and determining each unit measurement area according to the center point coordinates and the preset size information.
Further, the association relationship in this embodiment is as follows:
wherein the saidRepresents the center point coordinates of the unit measuring area, +.>The upper left-hand corner coordinate is indicated,representing the lower left corner coordinates>The number of unit measurement areas is represented, i=1, 2,3 ….
Further, the adjusting module 804 in this embodiment is specifically configured to:
selecting any material edge linear coordinate point on the material edge straight line;
and inputting a preset distance between the central point of the second measurement area and the material edge straight line, the included angle and the material edge straight line coordinate point to a preset formula, and determining the central coordinate of the adjusted second measurement area.
Further, the preset formula in this embodiment is:
wherein,representing the center coordinates of the adjusted second measurement area, (-A)>) Represents the linear coordinate point of the edge of any material, +.>Representing a preset distance>Indicating the included angle, the->And represents the abscissa of the center coordinates of the adjusted second measurement region.
Fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
As shown in fig. 9, the electronic device may include: processor 910, communication interface (Communications Interface), memory 930, and communication bus 940, wherein processor 910, communication interface 920, and memory 930 communicate with each other via communication bus 940. Processor 910 may invoke logic instructions in memory 930 to perform an adaptive tab width detection method comprising: extracting a first measurement area which is positioned at the lug side and contains edge information from the cell image; determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measurement area; extracting a second measurement area containing a tab from the cell image; adjusting the position of the second measurement area based on a preset distance between the center point of the second measurement area and the material edge line; dividing the second measuring region after the position adjustment into tab regions based on a gray threshold; generating a tab width detection line which is parallel to the material edge straight line and is at a distance from the preset distance based on the preset distance, the included angle and the tab area; determining an intersection of the tab width detection line and the tab area, and determining coordinates of two endpoints of the intersection; and determining the width of the tab by using a width calculation formula based on the coordinates of the two endpoints and the included angle.
Further, the logic instructions in the memory 930 described above may be implemented in the form of software functional units and may be stored in a computer-readable storage medium when sold or used as a stand-alone product. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
In yet another aspect, the present invention also provides a non-transitory computer readable storage medium having stored thereon a computer program which, when executed by a processor, is implemented to perform the adaptive tab width detection method provided by the above methods, the method comprising: extracting a first measurement area which is positioned at the lug side and contains edge information from the cell image; determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measurement area; extracting a second measurement area containing a tab from the cell image; adjusting the position of the second measurement area based on a preset distance between the center point of the second measurement area and the material edge line; dividing the second measuring region after the position adjustment into tab regions based on a gray threshold; generating a tab width detection line which is parallel to the material edge straight line and is at a distance from the preset distance based on the preset distance, the included angle and the tab area; determining an intersection of the tab width detection line and the tab area, and determining coordinates of two endpoints of the intersection; and determining the width of the tab by using a width calculation formula based on the coordinates of the two endpoints and the included angle.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (10)

1. The method for detecting the width of the self-adaptive tab is characterized by comprising the following steps of:
extracting a first measurement area which is positioned at the lug side and contains edge information from the cell image;
determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measurement area;
extracting a second measurement area containing a tab from the cell image;
adjusting the position of the second measurement area based on a preset distance between the center point of the second measurement area and the material edge line;
dividing the second measuring region after the position adjustment into tab regions based on a gray threshold;
generating a tab width detection line which is parallel to the material edge straight line and is at a distance from the preset distance based on the preset distance, the included angle and the tab area;
determining an intersection of the tab width detection line and the tab area, and determining coordinates of two endpoints of the intersection;
and determining the width of the tab by using a width calculation formula based on the coordinates of the two endpoints and the included angle.
2. The method of claim 1, wherein determining a material edge line and an angle between the material edge line and a horizontal axis based on the first measurement region comprises:
dividing a material region in the first measurement region based on a gray threshold value, and determining an upper left corner coordinate and a lower left corner coordinate of the material region;
based on preset size information, combining the upper left corner coordinate and the lower left corner coordinate to generate a unit measurement area;
and determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the unit measurement areas.
3. The method according to claim 2, wherein determining a material edge line and an angle between the material edge line and a horizontal axis based on the plurality of unit measurement areas comprises:
obtaining an average gray value of each column of pixels of each unit measurement area to form a discrete one-dimensional array;
respectively serializing each discrete one-dimensional array to generate a continuous function;
and acquiring a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on all the continuous functions.
4. The method for detecting the width of the adaptive tab according to claim 3, wherein the step of obtaining the material edge line and the angle between the material edge line and the horizontal axis based on all the continuous functions includes:
solving a first derivative of each continuous function;
respectively determining a column coordinate at which the first derivative is maximum and a row coordinate of the corresponding unit measurement area;
taking the column coordinates and the row coordinates as a linear coordinate point of the material edge to obtain a linear coordinate point corresponding to each unit measurement area;
and fitting all the linear coordinate points into a straight line to be used as a material edge straight line, and determining an included angle between the straight line and a horizontal axis to be used as an included angle between the material edge straight line and the horizontal axis.
5. The adaptive tab width detection method of claim 2, wherein the generating a unit measurement area based on preset size information in combination with the upper left corner coordinates and the lower left corner coordinates comprises:
determining the number of unit measurement areas based on the upper left corner coordinates, the lower left corner coordinates and preset size information;
determining the center point coordinate of each unit measurement area based on the number of the unit measurement areas, the association relation between the upper left corner coordinates and the lower left corner coordinates;
and determining each unit measurement area according to the center point coordinates and the preset size information.
6. The adaptive tab width detection method of claim 5, wherein the association relationship is as follows:
wherein the saidRepresents the center point coordinates of the unit measuring area, +.>Representing the upper left corner coordinates>Representing the lower left corner coordinates>The number of unit measurement areas is represented, i=1, 2,3 ….
7. The method according to claim 1, wherein adjusting the position of the second measurement region based on a preset distance between a center point of the second measurement region and the line of the material edge comprises:
selecting any material edge linear coordinate point on the material edge straight line;
and inputting a preset distance between the central point of the second measurement area and the material edge straight line, the included angle and the material edge straight line coordinate point to a preset formula, and determining the central coordinate of the adjusted second measurement area.
8. The adaptive tab width detection method of claim 7, wherein the predetermined formula is:
wherein,representing the center coordinates of the adjusted second measurement area, (-A)>) Represents the linear coordinate point of the edge of any material, +.>Representing a preset distance>Indicating the included angle, the->And represents the abscissa of the center coordinates of the adjusted second measurement region.
9. An adaptive tab width detection device, comprising:
the first extraction module is used for extracting a first measurement area which is positioned at the lug side and contains edge information from the battery cell image;
the first determining module is used for determining a material edge straight line and an included angle between the material edge straight line and a horizontal axis based on the first measuring area;
the second extraction module is used for extracting a second measurement area containing the electrode lug from the battery cell image;
the adjusting module is used for adjusting the position of the second measuring area based on the preset distance between the center point of the second measuring area and the material edge straight line;
the segmentation module is used for obtaining a tab area by segmentation in the second measurement area after the position adjustment based on the gray threshold;
the generation module is used for generating a tab width detection line which is parallel to the material edge straight line and is at a distance from the preset distance based on the preset distance, the included angle and the tab area;
the second determining module is used for determining an intersection of the tab width detection line and the tab area and determining coordinates of two endpoints of the intersection;
and the third determining module is used for determining the width of the tab by utilizing a width calculation formula based on the coordinates of the two endpoints and the included angle.
10. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements the adaptive tab width detection method of any one of claims 1 to 8 when the program is executed by the processor.
CN202311377897.5A 2023-10-24 2023-10-24 Self-adaptive tab width detection method, device and equipment Active CN117109447B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311377897.5A CN117109447B (en) 2023-10-24 2023-10-24 Self-adaptive tab width detection method, device and equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311377897.5A CN117109447B (en) 2023-10-24 2023-10-24 Self-adaptive tab width detection method, device and equipment

Publications (2)

Publication Number Publication Date
CN117109447A CN117109447A (en) 2023-11-24
CN117109447B true CN117109447B (en) 2024-01-05

Family

ID=88795145

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311377897.5A Active CN117109447B (en) 2023-10-24 2023-10-24 Self-adaptive tab width detection method, device and equipment

Country Status (1)

Country Link
CN (1) CN117109447B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117570852B (en) * 2024-01-15 2024-03-26 钛玛科(北京)工业科技有限公司 Method, device and equipment for detecting polar lug vertex coordinates

Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193072A (en) * 2018-11-15 2020-05-22 无锡先导智能装备股份有限公司 Tab inspection and correction method and device
WO2021169335A1 (en) * 2020-02-25 2021-09-02 华南理工大学 Visual online detection method for laser welding point of lithium battery tab
CN113607742A (en) * 2021-08-03 2021-11-05 广东利元亨智能装备股份有限公司 Battery cell tab detection method and device, electronic equipment and storage medium
CN113989232A (en) * 2021-10-28 2022-01-28 广东利元亨智能装备股份有限公司 Battery cell defect detection method and device, electronic equipment and storage medium
CN114018160A (en) * 2021-11-09 2022-02-08 北京深点视觉科技有限公司 Lug imaging device and lug size detection method
CN114549531A (en) * 2022-04-26 2022-05-27 广州市易鸿智能装备有限公司 Lithium battery winding overhung centering correction control system and method
CN115205198A (en) * 2022-05-07 2022-10-18 广州超音速自动化科技股份有限公司 Method, system and equipment for detecting quality of tab and storage medium
CN115631177A (en) * 2022-10-31 2023-01-20 广东利元亨智能装备股份有限公司 Battery cell tab detection method and computer readable storage medium
WO2023070552A1 (en) * 2021-10-29 2023-05-04 宁德时代新能源科技股份有限公司 Method and apparatus for testing coverage of jelly roll of battery during winding, and device
CN116168082A (en) * 2022-12-29 2023-05-26 凌云光技术股份有限公司 Positioning method and positioning device for tab
WO2023124725A1 (en) * 2021-12-31 2023-07-06 广东利元亨智能装备股份有限公司 Edge detection method and apparatus, electronic device, and storage medium
CN116523921A (en) * 2023-07-05 2023-08-01 广州市易鸿智能装备有限公司 Detection method, device and system for tab turnover condition
CN116703890A (en) * 2023-07-28 2023-09-05 上海瑞浦青创新能源有限公司 Method and system for detecting tab defects
CN116758027A (en) * 2023-06-14 2023-09-15 惠州市德赛电池有限公司 Tab fracture detection method, tab fracture detection system, electronic equipment and storage medium
WO2023193213A1 (en) * 2022-04-08 2023-10-12 宁德时代新能源科技股份有限公司 Method and apparatus for detecting defect of insulating coating of battery electrode plate, and computer device

Patent Citations (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111193072A (en) * 2018-11-15 2020-05-22 无锡先导智能装备股份有限公司 Tab inspection and correction method and device
WO2021169335A1 (en) * 2020-02-25 2021-09-02 华南理工大学 Visual online detection method for laser welding point of lithium battery tab
CN113607742A (en) * 2021-08-03 2021-11-05 广东利元亨智能装备股份有限公司 Battery cell tab detection method and device, electronic equipment and storage medium
CN113989232A (en) * 2021-10-28 2022-01-28 广东利元亨智能装备股份有限公司 Battery cell defect detection method and device, electronic equipment and storage medium
WO2023070552A1 (en) * 2021-10-29 2023-05-04 宁德时代新能源科技股份有限公司 Method and apparatus for testing coverage of jelly roll of battery during winding, and device
CN114018160A (en) * 2021-11-09 2022-02-08 北京深点视觉科技有限公司 Lug imaging device and lug size detection method
WO2023124725A1 (en) * 2021-12-31 2023-07-06 广东利元亨智能装备股份有限公司 Edge detection method and apparatus, electronic device, and storage medium
WO2023193213A1 (en) * 2022-04-08 2023-10-12 宁德时代新能源科技股份有限公司 Method and apparatus for detecting defect of insulating coating of battery electrode plate, and computer device
CN114549531A (en) * 2022-04-26 2022-05-27 广州市易鸿智能装备有限公司 Lithium battery winding overhung centering correction control system and method
CN115205198A (en) * 2022-05-07 2022-10-18 广州超音速自动化科技股份有限公司 Method, system and equipment for detecting quality of tab and storage medium
CN115631177A (en) * 2022-10-31 2023-01-20 广东利元亨智能装备股份有限公司 Battery cell tab detection method and computer readable storage medium
CN116168082A (en) * 2022-12-29 2023-05-26 凌云光技术股份有限公司 Positioning method and positioning device for tab
CN116758027A (en) * 2023-06-14 2023-09-15 惠州市德赛电池有限公司 Tab fracture detection method, tab fracture detection system, electronic equipment and storage medium
CN116523921A (en) * 2023-07-05 2023-08-01 广州市易鸿智能装备有限公司 Detection method, device and system for tab turnover condition
CN116703890A (en) * 2023-07-28 2023-09-05 上海瑞浦青创新能源有限公司 Method and system for detecting tab defects

Also Published As

Publication number Publication date
CN117109447A (en) 2023-11-24

Similar Documents

Publication Publication Date Title
CN117109447B (en) Self-adaptive tab width detection method, device and equipment
WO2018068511A1 (en) Image processing method and system for gene sequencing
US11386640B2 (en) Reading system, reading method, and storage medium
EP3477597A1 (en) 3d modeling method based on point cloud data
CN107871319B (en) Method and device for detecting beam limiter area, X-ray system and storage medium
CN111488874A (en) Method and system for correcting inclination of pointer instrument
CN109974623B (en) Three-dimensional information acquisition method and device based on line laser and binocular vision
CN109300104B (en) Angular point detection method and device
CN110660072B (en) Method and device for identifying straight line edge, storage medium and electronic equipment
CN111768450A (en) Automatic detection method and device for line deviation of structured light camera based on speckle pattern
CN116168082A (en) Positioning method and positioning device for tab
CN114862861B (en) Lung lobe segmentation method and device based on few-sample learning
CN113506957A (en) Cutting method and device for soft-package battery cell tab, electronic equipment and storage medium
CN116612035A (en) Noise reduction method for three-dimensional point cloud data of tunnel surrounding rock
CN111311497A (en) Bar code image angle correction method and device
CN111462216B (en) Method for determining circle center pixel coordinates in circular array calibration plate
CN115222755B (en) Medical image target segmentation method and device based on medical imaging equipment
CN111666864A (en) Automatic paper marking method based on computer vision
CN111968090B (en) Automatic xy-cutter eccentricity detection method, equipment and storage medium
CN115984538A (en) Iris positioning method, device, equipment and storage medium
CN109745073B (en) Two-dimensional matching method and equipment for elastography displacement
CN117570852B (en) Method, device and equipment for detecting polar lug vertex coordinates
CN113408551A (en) Pointer instrument reading identification method, system, equipment and computer storage medium
CN113887290A (en) Monocular 3D detection method and device, electronic equipment and storage medium
CN111709419A (en) Method, system and equipment for positioning banknote serial number and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant