CN113720282B - Method and device for measuring flatness of tab - Google Patents

Method and device for measuring flatness of tab Download PDF

Info

Publication number
CN113720282B
CN113720282B CN202110982005.9A CN202110982005A CN113720282B CN 113720282 B CN113720282 B CN 113720282B CN 202110982005 A CN202110982005 A CN 202110982005A CN 113720282 B CN113720282 B CN 113720282B
Authority
CN
China
Prior art keywords
tab
model
measured
picture
flatness
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
CN202110982005.9A
Other languages
Chinese (zh)
Other versions
CN113720282A (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.)
Guangdong OPT Machine Vision Co Ltd
Original Assignee
Guangdong OPT Machine Vision Co Ltd
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 Guangdong OPT Machine Vision Co Ltd filed Critical Guangdong OPT Machine Vision Co Ltd
Priority to CN202110982005.9A priority Critical patent/CN113720282B/en
Publication of CN113720282A publication Critical patent/CN113720282A/en
Application granted granted Critical
Publication of CN113720282B publication Critical patent/CN113720282B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

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/30Measuring arrangements characterised by the use of optical techniques for measuring roughness or irregularity of surfaces
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • 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
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10024Color image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20112Image segmentation details
    • G06T2207/20132Image cropping
    • 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

Abstract

The invention provides a method and a device for measuring the flatness of a tab, wherein the method comprises the following steps: s1, establishing a standard 3D tab flatness model pool; s2, obtaining the model information of the tab to be measured; s3, acquiring a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information; s4, scanning the tab to be measured to generate a 3D tab flatness model to be measured; s5, overlapping the standard 3D lug flatness model with the 3D lug flatness model to be measured to obtain lug height deviation information of the 3D lug flatness model to be measured relative to the standard 3D lug flatness model; and S6, calculating to obtain the flatness of the tab to be measured according to the tab height deviation information. The invention is used for eliminating the influence of devices such as a workbench, a clamp and the like when the measurement precision of the flatness of the lug is manually operated, and can improve the measurement efficiency and meet the production requirement.

Description

Method and device for measuring flatness of tab
Technical Field
The invention relates to the field of measurement of the flatness of a tab, in particular to a method and a device for measuring the flatness of the tab.
Background
After the polymer lithium ion battery cell is manufactured, a finished product battery which can be finally and directly applied can be manufactured only through the pack processes of tab transfer welding and the like, a plurality of charging and discharging processes and voltage internal resistance inspection projects are required in the manufacturing process of the polymer lithium ion battery cell, the processes can be realized only by contacting a tab through equipment and tools, and the processes inevitably influence the flatness of the tab. And the plane degree of utmost point ear is very important to pack transfer welding, and when utmost point ear plane degree was too big, the welding can appear rosin joint, weld and explode the scheduling problem, directly leads to the battery bad. Particularly, for manufacturers with high quality requirements on polymer lithium ion batteries, the flatness of the tab has become a routine inspection item in battery manufacturing.
The existing tab flatness testing methods all use an optical principle to measure, optical measuring equipment comprises common light source scanning equipment (such as an OMM) and laser scanning equipment (such as an APMT) and the like, but the equipment is usually very expensive, generally tens of thousands of dollars to hundreds of thousands of dollars, long time, the OMM equipment needs several minutes, the testing error is large, the tab slightly deflects or tilts, the testing value is greatly different, and the tab flatness is difficult to apply in production, or a digital display is used for detecting the tab flatness.
Disclosure of Invention
The invention provides a method and a device for measuring the flatness of a tab, which are used for solving the problems that the measurement precision of the flatness of the tab is influenced by devices such as a workbench and a clamp, the workbench is easy to fatigue and slow in speed when being operated manually, products need to be familiar first when different lithium battery tabs are operated, the efficiency is slow, and the production requirements cannot be met.
A method for measuring the flatness of a tab comprises the following steps:
s1, establishing a standard 3D tab flatness model pool;
s2, obtaining the model information of the tab to be measured;
s3, acquiring a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information;
s4, scanning the tab to be measured to generate a 3D tab flatness model to be measured;
s5, overlapping the standard 3D tab flatness model and the 3D tab flatness model to be measured to obtain tab height deviation information of the 3D tab flatness model to be measured relative to the standard 3D tab flatness model;
and S6, calculating according to the height deviation information of the lug to obtain the planeness of the lug to be measured.
As an embodiment of the present invention, establishing a standard 3D tab flatness model pool includes:
acquiring standard parameter information of lugs of different lug models in a preset number;
constructing standard 3D tab flatness models of different tab models in preset number according to tab standard parameter information of different tab models in preset number;
and establishing a standard 3D tab flatness model pool according to standard 3D tab flatness models of different tab models in preset quantity.
As an embodiment of the present invention, acquiring model information of a tab to be measured includes:
irradiating the lug to be detected with a light source with a preset inclination angle to obtain a color image and a reflection image of the lug to be detected;
extracting the characteristics of the color image and the reflection image of the tab to be detected to obtain tab model characteristic information in the color image and the reflection image;
verifying the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information;
and determining the model information of the tab to be detected according to the model characteristic information of the high-precision tab.
As an embodiment of the present invention, scanning a tab to be measured to generate a 3D tab flatness model to be measured includes:
scanning a tab to be measured to obtain a picture to be measured of the tab to be measured in each direction;
acquiring tab pictures of standard tabs in all directions corresponding to the model information according to the model information of the tabs to be measured;
respectively acquiring the tab incomplete feature information of the picture to be measured and the tab picture, and performing feature comparison on the tab incomplete feature information of the picture to be measured and the tab incomplete feature information of the tab picture to obtain a comparison result;
if the comparison result shows that the incomplete part exists in the picture to be measured, acquiring the picture to be measured with the incomplete part, and generating correction control information consisting of a horizontal starting point, a vertical starting point, a horizontal end point and a vertical end point of the incomplete part of the picture to be measured with the incomplete part;
calculating a first pixel value before correction according to a horizontal starting point and a group of adjacent pixel points of a vertical starting point of a defective part of a to-be-measured picture with defects;
calculating a second pixel value before correction according to a group of adjacent pixel points of a horizontal termination point and a vertical termination point of the incomplete part of the picture to be measured with the incomplete part;
acquiring a first difference value of row coordinates and a second difference value of column coordinates of the first pixel value and the second pixel value;
generating a first offset according to the first difference, the second difference and a preset maximum error coefficient;
determining a second inclination angle according to the first offset;
rescanning at a second inclination angle according to the direction information of the incomplete image to be measured to obtain a second image to be measured corresponding to the direction information in the tab to be measured;
respectively cutting the second picture to be measured and the tab picture according to the correction control information to obtain a corrected picture to be measured and a corrected tab picture;
respectively acquiring lug incomplete characteristic information of a picture to be corrected and a picture of a corrected lug, and performing characteristic comparison on the lug incomplete characteristic information of the picture to be corrected and the picture of the corrected lug to obtain a second comparison result;
if the second comparison result is that the corrected picture to be measured has no defect;
correcting the incomplete picture to be measured according to the corrected picture to be measured to obtain a corrected picture;
and generating a 3D tab flatness model to be measured for the picture to be measured without the defect according to the corrected picture and the residual comparison result.
As an embodiment of the present invention, the step of verifying tab model characteristic information of a color image and tab model characteristic information of a reflective image to obtain high-precision tab model characteristic information includes:
determining a first tab model according to tab model characteristic information of the color image;
acquiring a first probability of appearance of a first tab model within a preset number of days;
according to the first probability, calculating to obtain a color confidence corresponding to the first tab model; the color confidence coefficient reflects the accuracy of the first tab model determined by the tab model characteristic information of the color image;
determining the second pole ear type according to the pole ear type characteristic information of the reflective image;
acquiring a second probability of occurrence of a second polar ear type within a preset number of days;
according to the second probability, calculating to obtain a light reflection confidence coefficient corresponding to the second polar ear type number; the light reflection confidence coefficient reflects the accuracy of the second tab model determined by the tab model characteristic information of the light reflection image;
judging whether the first tab type is the same as the second tab type;
if the color images are the same, outputting any one of the tab model characteristic information of the color images and the tab model characteristic information of the reflective images as high-precision tab model characteristic information;
if not, judging whether the color confidence coefficient is smaller than the light reflection confidence coefficient;
if the color confidence is less than the light-reflecting confidence, outputting the tab model characteristic information of the light-reflecting image as high-precision tab model characteristic information;
if the color confidence coefficient is greater than the light reflection confidence coefficient, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
if the color confidence coefficient is equal to the reflection confidence coefficient, calculating the confidence values of the color confidence coefficient and the reflection confidence coefficient, wherein the calculation formula is as follows:
Figure BDA0003229498150000051
wherein T is a trust valueM is the number of types of tabs of different types, e t Is the weight value of the t-type tab,
Figure BDA0003229498150000052
p t,c is the color confidence, p, of the t-th type tab t,f Is the light reflection confidence coefficient, x, of the t-type tab t,c The number of the tabs with the color confidence coefficient larger than the light reflection confidence coefficient in the measured number of the t-type tabs within 30 days, x t,f The quantity of the tabs with the light reflection confidence degrees larger than the color confidence degrees in the measured quantity of the t-type tabs within 30 days is determined; the unit of the number of the lugs is thousands, and e is a natural constant;
if the trust value T is less than or equal to 2e, outputting the tab model characteristic information of the reflective image as high-precision tab model characteristic information;
and if the trust value T is greater than 2e, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information.
A flatness measuring device of a tab, comprising:
the standard 3D tab flatness model pool establishing module is used for establishing a standard 3D tab flatness model pool;
the model detection module is used for acquiring model information of the tab to be measured;
the standard 3D tab flatness model acquisition module is respectively connected with the standard 3D tab flatness model pool establishing module and the model detection module and is used for acquiring a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information;
the generating module of the flatness model of the 3D tab to be measured is used for scanning the tab to be measured and generating the flatness model of the 3D tab to be measured;
the processing module is respectively connected with the standard 3D tab flatness model acquisition module and the 3D tab flatness model generation module to be measured, and is used for overlapping the standard 3D tab flatness model and the 3D tab flatness model to be measured to obtain tab height deviation information of the 3D tab flatness model to be measured relative to the standard 3D tab flatness model;
and the flatness calculation module is connected with the processing module and used for calculating the flatness of the tab to be measured according to the tab height deviation information.
As an embodiment of the present invention, the standard 3D tab flatness model pool establishing module performs operations including:
s11, acquiring standard parameter information of lugs with different lug models in preset quantity;
s12, constructing standard 3D tab flatness models of different tab models of a preset number according to tab standard parameter information of different tab models of the preset number;
and S13, establishing a standard 3D tab flatness model pool according to the standard 3D tab flatness models of different tab models in preset number.
As an embodiment of the present invention, the model detection module performs operations including:
s21, irradiating the lug to be detected with a light source with a preset inclination angle to obtain a color image and a reflection image of the lug to be detected;
s22, extracting the characteristics of the color image and the reflection image of the tab to be detected to obtain tab model characteristic information in the color image and the reflection image;
s23, checking the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information;
and S24, determining the model information of the tab to be detected according to the high-precision tab model characteristic information.
As an embodiment of the present invention, the 3D tab flatness model generation module to be measured performs operations including:
scanning a tab to be measured to obtain a picture to be measured of the tab to be measured in each direction;
acquiring tab pictures of standard tabs in all directions corresponding to the model information according to the model information of the tabs to be measured;
respectively acquiring the tab incomplete feature information of the picture to be measured and the tab picture, and performing feature comparison on the tab incomplete feature information of the picture to be measured and the tab incomplete feature information of the tab picture to obtain comparison results;
if the comparison result shows that the incomplete part exists in the picture to be measured, acquiring the picture to be measured with the incomplete part, and generating correction control information consisting of a horizontal starting point, a vertical starting point, a horizontal end point and a vertical end point of the incomplete part of the picture to be measured with the incomplete part;
calculating a first pixel value before correction according to a horizontal starting point and a group of adjacent pixel points of a vertical starting point of a defective part of a to-be-measured picture with defects;
calculating a second pixel value before correction according to a group of adjacent pixel points of a horizontal termination point and a vertical termination point of the incomplete part of the picture to be measured with the incomplete part;
acquiring a first difference value of row coordinates and a second difference value of column coordinates of the first pixel value and the second pixel value;
generating a first offset according to the first difference, the second difference and a preset maximum error coefficient;
determining a second inclination angle according to the first offset;
rescanning at a second inclination angle according to the direction information of the incomplete image to be measured to obtain a second image to be measured corresponding to the direction information in the tab to be measured;
respectively cutting the second picture to be measured and the tab picture according to the correction control information to obtain a picture to be measured and a tab picture to be corrected;
respectively acquiring lug incomplete characteristic information of a picture to be corrected and a picture of a corrected lug, and performing characteristic comparison on the lug incomplete characteristic information of the picture to be corrected and the picture of the corrected lug to obtain a second comparison result;
if the second comparison result is that the corrected picture to be measured has no defect;
correcting the incomplete picture to be measured according to the corrected picture to be measured to obtain a corrected picture;
and generating a 3D tab flatness model to be measured for the picture to be measured without the defect according to the corrected picture and the residual comparison result.
As an embodiment of the present invention, the model detection module is further configured to perform operations including:
determining a first tab model according to tab model characteristic information of the color image;
acquiring a first probability of appearance of a first tab model within a preset number of days;
according to the first probability, calculating to obtain a color confidence corresponding to the type of the first tab; the color confidence coefficient reflects the accuracy of the first tab model determined by the tab model characteristic information of the color image;
determining the second pole ear type according to the pole ear type characteristic information of the reflective image;
acquiring a second probability of occurrence of a second polar ear type within a preset number of days;
according to the second probability, calculating to obtain a light reflection confidence coefficient corresponding to the second polar ear type number; the light reflection confidence coefficient reflects the accuracy of the second tab model determined by the tab model characteristic information of the light reflection image;
judging whether the first tab type is the same as the second tab type;
if the color images are the same, outputting any one of the tab model characteristic information of the color images and the tab model characteristic information of the reflection images as high-precision tab model characteristic information;
if not, judging whether the color confidence coefficient is smaller than the light reflection confidence coefficient;
if the color confidence coefficient is less than or equal to the light reflection confidence coefficient, outputting the tab model characteristic information of the light reflection image as high-precision tab model characteristic information;
if the color confidence is greater than the light-reflecting confidence, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
if the color confidence coefficient is equal to the reflection confidence coefficient, calculating the confidence values of the color confidence coefficient and the reflection confidence coefficient, wherein the calculation formula is as follows:
Figure BDA0003229498150000091
wherein T is a trust value, m is the types and the number of the lugs with different types, e t Is the weight of the t-type tab,
Figure BDA0003229498150000092
p t,c color confidence, p, of the t-th type tab t,f Is the light reflection confidence coefficient, x of the t type tab t,c The number of the tabs with the color confidence coefficient larger than the light reflection confidence coefficient in the measured number of the t-type tabs within 30 days, x t,f The number of the tabs with the reflection confidence coefficient larger than the color confidence coefficient in the measured number of the t-type tabs within 30 days is determined; the unit of the number of the lugs is thousands, and e is a natural constant;
if the trust value T is less than or equal to 2e, outputting the tab model characteristic information of the reflective image as high-precision tab model characteristic information;
and if the trust value T is greater than 2e, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and drawings.
The technical solution of the present invention is further described in detail by the accompanying drawings and embodiments.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this specification, illustrate embodiments of the invention and together with the description serve to explain the principles of the invention and not to limit the invention. In the drawings:
fig. 1 is a schematic method diagram of a method and a device for measuring the flatness of a tab according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a method and an apparatus for measuring flatness of a tab according to an embodiment of the present invention;
fig. 3 is an execution flow chart of a standard 3D tab flatness model pool establishing module of a tab flatness measuring method and measuring apparatus according to an embodiment of the present invention;
fig. 4 is an execution flow chart of a model detection module of a measuring device and a method for measuring flatness of a tab according to an embodiment of the present invention.
Detailed Description
The preferred embodiments of the present invention will be described in conjunction with the accompanying drawings, and it will be understood that they are described herein for the purpose of illustration and explanation and not limitation.
Referring to fig. 1, an embodiment of the present invention provides a method for measuring a flatness of a tab, including:
s1, establishing a standard 3D tab flatness model pool;
s2, obtaining the model information of the tab to be measured;
s3, acquiring a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information;
s4, scanning a tab to be measured to generate a 3D tab flatness model to be measured;
s5, overlapping the standard 3D lug flatness model with the 3D lug flatness model to be measured to obtain lug height deviation information of the 3D lug flatness model to be measured relative to the standard 3D lug flatness model;
s6, calculating according to the height deviation information of the lug to obtain the flatness of the lug to be measured;
the working principle of the technical scheme is as follows: establishing a standard 3D tab flatness model pool based on the models of lithium battery tabs of the factory, preferably, scanning different models of standard lithium battery tabs through a model scanner to establish the standard 3D tab flatness model pool, selecting the standard lithium battery tabs by users themselves, or directly obtaining parameters of different international models of lithium battery tabs to directly make virtual 3D models to establish the standard 3D tab flatness model pool, wherein each standard 3D tab flatness model in the standard 3D tab flatness model pool corresponds to different tab models, then performing model characteristic extraction on the tabs to be measured to obtain model information of the tabs to be measured, obtaining a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information, scanning the tabs to be measured to generate a 3D tab flatness model to be measured, preferably, scanning and generating the model through the model scanner, or performing model drawing after image acquisition by using a 3D sensor, overlapping the standard 3D tab flatness model with the 3D tab flatness model to be measured to obtain the tab flatness model of the tabs to be measured, and calculating the tab height deviation of the tab flatness information of the tabs from the tab from the standard 3D tab flatness model to be measured;
the beneficial effects of the above technical scheme are: draw into the 3D model through measuring the utmost point ear of awaiting measuring, be of value to reduce the workstation, devices such as anchor clamps are to the measuring accuracy's of utmost point ear plane degree influence, through establishing standard 3D utmost point ear plane degree model pond, the utmost point ear of awaiting measuring is drawn into the 3D model and is compared with the standard 3D utmost point ear plane degree model of the same model and obtain utmost point ear height deviation information, and then obtain the plane degree of awaiting measuring the utmost point ear, it is easy tired when effectively preventing the manual operation workstation, speed is slow, need be familiar with the product earlier when to different lithium battery utmost point ears, efficiency is slower, can't satisfy the emergence of production demand scheduling problem, be of value to improving work efficiency, improve utmost point ear measuring accuracy.
In one embodiment, establishing a standard 3D tab flatness model pool includes:
acquiring standard parameter information of lugs with different lug models in preset quantity;
constructing standard 3D tab flatness models of different tab models in preset number according to tab standard parameter information of different tab models in preset number;
establishing a standard 3D tab flatness model pool according to standard 3D tab flatness models of different tab models in preset number;
the working principle of the technical scheme is as follows: acquiring standard parameter information of lugs with different lug models in preset quantity; constructing standard 3D tab flatness models of different tab models in preset number according to tab standard parameter information of different tab models in preset number; establishing a standard 3D tab flatness model pool according to standard 3D tab flatness models of different tab models in a preset number, namely acquiring parameters of lithium battery tabs of different international models, directly making virtual 3D models and establishing the standard 3D tab flatness model pool, wherein each standard 3D tab flatness model in the standard 3D tab flatness model pool corresponds to different tab models; the preset number is the number of the types of lugs existing in a factory, and further, the standard 3D lug flatness model pool is preferably established by scanning different types of standard lithium battery lugs through a model scanner, and the standard lithium battery lugs are selected by a user;
the beneficial effects of the above technical scheme are: carry out self-defined the establishment to standard 3D utmost point ear plane degree model pond according to user's demand, carry out more degree of depth according to user's demand to utmost point ear plane degree and injectd, be of value to and improve follow-up utmost point ear plane degree measuring accuracy nature for utmost point ear plane degree's measurement more accords with user's requirement.
In one embodiment, obtaining the model information of the tab to be measured includes:
irradiating the lug to be detected by a light source with a preset inclination angle to obtain a color image and a reflection image of the lug to be detected;
extracting the characteristics of the color image and the reflection image of the tab to be detected to obtain tab model characteristic information in the color image and the reflection image;
verifying the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information;
determining the type information of the tab to be detected according to the tab type characteristic information;
the working principle of the technical scheme is as follows: irradiating the lug to be detected with a light source with a preset inclination angle to obtain a color image and a reflection image of the lug to be detected; extracting the characteristics of the color image and the reflection image of the tab to be detected to obtain tab model characteristic information in the color image and the reflection image; verifying the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information; determining the model information of the tab to be detected according to the model characteristic information of the high-precision tab; the preset inclination angle is set by a user, the standard is set to be that the preset inclination angle can completely irradiate all bodies of each tab to be detected, the tab model characteristic information comprises but is not limited to color information, shape information and other characteristic information, further, a color area-array camera is preferably used for collecting color images, and a black and white area-array camera is preferably used for collecting reflection images; furthermore, when collecting color images, the color area-array camera is preferably a front view tab to be measured, and when collecting reflective images, the black-and-white area-array camera is preferably arranged on a reflective light path formed by an incident light path of a light source on the surface of the tab to be measured;
the beneficial effects of the above technical scheme are: through carrying out color image acquisition and reflection of light image acquisition respectively to the utmost point ear of awaiting measuring, the double-deck verification prevents the model discernment mistake, is of value to improving the model discernment precision.
In one embodiment, scanning a tab to be measured and generating a 3D tab flatness model to be measured includes:
scanning a tab to be measured to obtain a picture to be measured of the tab to be measured in each direction;
acquiring tab pictures of standard tabs in all directions corresponding to the type information according to the type information of the tabs to be measured;
respectively acquiring the tab incomplete feature information of the picture to be measured and the tab picture, and performing feature comparison on the tab incomplete feature information of the picture to be measured and the tab incomplete feature information of the tab picture to obtain a comparison result;
if the comparison result shows that the incomplete part exists in the picture to be measured, acquiring the picture to be measured with the incomplete part, and generating correction control information consisting of a horizontal starting point, a vertical starting point, a horizontal end point and a vertical end point of the incomplete part of the picture to be measured with the incomplete part;
calculating a first pixel value before correction according to a group of adjacent pixel points of a horizontal starting point and a vertical starting point of a incomplete part of the picture to be measured with the incomplete part;
calculating a second pixel value before correction according to a group of adjacent pixel points of a horizontal termination point and a vertical termination point of the incomplete part of the picture to be measured with the incomplete part;
acquiring a first difference value of row coordinates and a second difference value of column coordinates of the first pixel value and the second pixel value;
generating a first offset according to the first difference, the second difference and a preset maximum error coefficient;
determining a second inclination angle according to the first offset;
rescanning at a second inclination angle according to the direction information of the incomplete image to be measured to obtain a second image to be measured corresponding to the direction information in the tab to be measured;
respectively cutting the second picture to be measured and the tab picture according to the correction control information to obtain a corrected picture to be measured and a corrected tab picture;
respectively acquiring lug incomplete characteristic information of a picture to be corrected and a picture of a corrected lug, and performing characteristic comparison on the lug incomplete characteristic information of the picture to be corrected and the picture of the corrected lug to obtain a second comparison result;
if the second comparison result is that the corrected picture to be measured has no defect;
correcting the incomplete picture to be measured according to the corrected picture to be measured to obtain a corrected picture;
generating a 3D tab flatness model to be measured for the picture to be measured without the defect according to the corrected picture and the residual comparison result;
the working principle of the technical scheme is as follows: scanning a tab to be measured to obtain a picture to be measured in each direction of the tab to be measured, and preferably collecting the pictures to be measured in six directions, namely up, down, left, right, front and back; acquiring tab pictures in all directions of a standard tab corresponding to model information according to the model information of the tab to be measured, preferably acquiring tab pictures in six directions, namely up, down, left, right, front and back directions, of the standard tab, preferably, the standard tab with different model information is mainly based on the tab initially selected by a user, and can be changed in a self-defined manner in the later period, wherein the tab pictures and the corresponding model information are pre-stored in a storage unit and can be directly acquired, tab incomplete characteristic information in the picture to be measured and the tab pictures is respectively acquired, incomplete preference refers to that when image acquisition is carried out on the tab to be measured, an error exists in an acquired angle, so that the acquired tab image is shielded, and the like, the tab incomplete characteristic information preferably comprises characteristic information related to the tab in the picture to be measured and the tab picture, including but not limited to characteristic information such as tab area, side length and the like, and carrying out characteristic comparison on the tab incomplete characteristic information of the tab of the picture to be measured and the tab incomplete characteristic information of the tab picture to be measured; if the characteristic information of the incomplete lug of the picture to be measured is different from the characteristic information of the incomplete lug of the picture of the lug and the error exceeds a preset error value, judging that the incomplete picture to be measured exists, wherein the preset error value is preferably the maximum value of an error range allowing the product to have the error; calculating a first pixel value before correction according to a horizontal starting point and a group of adjacent pixel points of a vertical starting point of a defective part of a to-be-measured picture with defects; calculating a second pixel value before correction according to a group of adjacent pixel points of a horizontal termination point and a vertical termination point of a incomplete part of the picture to be measured with the incomplete part; acquiring a first difference value of row coordinates and a second difference value of column coordinates of the first pixel value and the second pixel value; generating a first offset according to the first difference, the second difference and a preset maximum error coefficient; determining a second inclination angle according to the first offset; rescanning at a second inclination angle according to the direction information of the incomplete image to be measured to obtain a second image to be measured corresponding to the direction information in the tab to be measured; respectively cutting the second picture to be measured and the tab picture according to the correction control information to obtain a corrected picture to be measured and a corrected tab picture; respectively acquiring tab incomplete feature information of a picture to be corrected and a tab picture to be corrected, and performing feature comparison on the tab incomplete feature information of the picture to be corrected and the tab incomplete feature information of the picture to be corrected to obtain a second comparison result; the comparison mode is the same as that of characteristic comparison of the tab incomplete characteristic information of the picture to be measured and the tab incomplete characteristic information of the picture of the tab, and if the second comparison result is that the picture to be measured is corrected and corrected, no incomplete image exists; the method comprises the steps that the tab incomplete feature information of a picture to be corrected is the same as the tab incomplete feature information of the picture to be corrected, or the error between the tab incomplete feature information of the picture to be corrected and the tab incomplete feature information of the picture to be corrected is within a second preset error value, the second preset error value is preferably the preset error value multiplied by the occupation ratio of the picture to be corrected in the whole picture to be measured, the picture to be corrected with the incomplete defect is corrected according to the picture to be corrected, and the corrected picture is obtained; generating a 3D tab flatness model to be measured for the picture to be measured without the defect according to the corrected picture and the residual comparison result;
the beneficial effects of the above technical scheme are: the method has the advantages that the tab to be measured is scanned, and the image correction is carried out on the place with the defect in the scanned image, so that the accuracy of the establishment of the 3D tab flatness model to be measured is improved, and the accuracy of the subsequent tab flatness measurement is improved.
In one embodiment, the step of verifying the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information includes:
determining a first tab model according to tab model characteristic information of the color image;
acquiring a first probability of appearance of a first tab model within a preset number of days;
according to the first probability, calculating to obtain a color confidence corresponding to the first tab model; the color confidence coefficient reflects the accuracy of the first tab model determined by the tab model characteristic information of the color image;
determining the second pole ear type according to the pole ear type characteristic information of the reflective image;
acquiring a second probability of occurrence of a second polar ear type within a preset number of days;
according to the second probability, calculating to obtain a light reflection confidence coefficient corresponding to the second polar ear type number; the light reflection confidence coefficient reflects the accuracy of the second tab model determined by the tab model characteristic information of the light reflection image;
judging whether the first tab type is the same as the second tab type;
if the color images are the same, outputting any one of the tab model characteristic information of the color images and the tab model characteristic information of the reflection images as high-precision tab model characteristic information;
if not, judging whether the color confidence coefficient is smaller than the light reflection confidence coefficient;
if the color confidence is smaller than the light-reflecting confidence, outputting the tab model characteristic information of the light-reflecting image as high-precision tab model characteristic information;
if the color confidence is greater than the light-reflecting confidence, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
if the color confidence coefficient is equal to the reflection confidence coefficient, calculating the confidence values of the color confidence coefficient and the reflection confidence coefficient, wherein the calculation formula is as follows:
Figure BDA0003229498150000171
wherein T is a trust value, m is the types and the number of the lugs with different types, e t Is the weight of the t-type tab,
Figure BDA0003229498150000172
p t,c is the color confidence, p, of the t-th type tab t,f Is the light reflection confidence coefficient, x of the t type tab t,c The number of the tabs with the color confidence coefficient larger than the light reflection confidence coefficient in the measured number of the t-type tabs within 30 days, x t,f The number of the tabs with the reflection confidence coefficient larger than the color confidence coefficient in the measured number of the t-type tabs within 30 days is determined; the unit of the number of the lugs isThousand, e is a natural constant;
if the trust value T is less than or equal to 2e, outputting the tab model characteristic information of the reflective image as high-precision tab model characteristic information;
if the trust value T is larger than 2e, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
the working principle of the technical scheme is as follows: determining a first tab model according to tab model characteristic information of the color image, wherein the tab model characteristic information of the color image comprises but is not limited to characteristic information such as color information and shape information; acquiring a first probability of appearance of a first tab model within preset days, wherein the preset days are set by a user according to the factory product updating frequency of the user and are usually set within 30 days; according to the first probability, calculating to obtain a color confidence coefficient corresponding to the first tab model, wherein the color confidence coefficient reflects the accuracy of the first tab model determined by the tab model characteristic information of the color image; determining a second pole ear type according to pole ear type characteristic information of the light reflection image, wherein the pole ear type characteristic information of the light reflection image comprises characteristic information such as but not limited to color information and shape information; acquiring a second probability of occurrence of a second polar ear type within preset days, wherein the preset days are set by a user according to the factory product updating frequency of the user and are usually set within 30 days; according to the second probability, calculating to obtain a light reflection confidence coefficient corresponding to the second polar ear type number; the light reflection confidence coefficient reflects the accuracy of the second tab model determined by the tab model characteristic information of the light reflection image; judging whether the first tab type is the same as the second tab type; if the color images are the same, outputting any one of the tab model characteristic information of the color images and the tab model characteristic information of the reflective images as high-precision tab model characteristic information; if not, judging whether the color confidence coefficient is smaller than the light reflection confidence coefficient; if the color confidence is smaller than the light-reflecting confidence, outputting the tab model characteristic information of the light-reflecting image as high-precision tab model characteristic information; if the color confidence is greater than the light-reflecting confidence, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
further, in the present invention,when the color confidence coefficient is equal to the reflection confidence coefficient, the pole lug model characteristic information of which image is taken can be judged according to the trust value and output as high-precision pole lug model characteristic information, and the calculation formula of the trust value is as follows:
Figure BDA0003229498150000191
Figure BDA0003229498150000192
wherein T is a trust value, m is the types and the number of the lugs with different types, e t Is the weight of the t-type tab,
Figure BDA0003229498150000193
p t,c is the color confidence, p, of the t-th type tab t,f Is the light reflection confidence coefficient, x of the t type tab t,c The number of the tabs with the color confidence coefficient larger than the light reflection confidence coefficient in the measured number of the t-type tabs within 30 days, x t,f The quantity of the tabs with the light reflection confidence degrees larger than the color confidence degrees in the measured quantity of the t-type tabs within 30 days is determined; the unit of the number of the lugs is thousands, e is a natural constant, and if the trust value is less than or equal to 2e, the lug model characteristic information of the reflective image is output as high-precision lug model characteristic information; if the trust value is larger than 2e, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information; if the color confidence coefficient and the light reflection confidence coefficient are both 0.87 when facing a certain type of tab, acquiring the color confidence coefficient of a plurality of previous tabs with different types and the light reflection confidence coefficient of a plurality of tabs with different types, wherein the selection sequence of different types is determined by the initial set acquisition sequence, namely the sequence set by the initial user, the color confidence coefficient of 5 tabs with different types and the tab number with the color confidence coefficient larger than the light reflection confidence coefficient in the measured number of the 5 tabs with different types in 30 days are respectively 0.85/152,0.91/98,0.88/120,0.81/165,0.86/110, and the light reflection confidence coefficient of the 5 tabs with different types and the same color confidence coefficient is larger than the number of the tabs with the color confidence coefficient in the measured number of the 5 tabs with different types and the same light reflection confidence coefficient0.87/192,0.85/162,0.90/81,0.81/121,0.86/116, respectively, where the number is in units of thousands, the confidence value is
Figure BDA0003229498150000194
Figure BDA0003229498150000195
Substituting the data to calculate that T is approximately equal to 1.692e,1.692e<2e, outputting the tab model characteristic information of the reflective image into high-precision tab model characteristic information; through the trust value algorithm, the determination of the high-precision tab model characteristic information is more accurate, so that the model measurement precision is improved;
the beneficial effects of the above technical scheme are: carry out the confidence check through the utmost point ear model characteristic information to the colour image and the utmost point ear model characteristic information of reflection of light image, improve model measurement accuracy, when the multiple model utmost point ear of mill's coproduction, through the confidence check, need not develop many assembly lines and detect different model utmost point ears respectively, once only accurately obtain the model of the volume of awaiting measuring utmost point ear, reduction equipment cost.
Referring to fig. 2, a device for measuring the flatness of a tab includes:
the standard 3D tab flatness model pool establishing module is used for establishing a standard 3D tab flatness model pool;
the model detection module is used for acquiring model information of the tab to be measured;
the standard 3D tab flatness model acquisition module is respectively connected with the standard 3D tab flatness model pool establishment module and the model detection module and is used for acquiring a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information;
the generating module of the flatness model of the 3D tab to be measured is used for scanning the tab to be measured and generating the flatness model of the 3D tab to be measured;
the processing module is respectively connected with the standard 3D tab flatness model acquisition module and the to-be-measured 3D tab flatness model generation module and is used for overlapping the standard 3D tab flatness model and the to-be-measured 3D tab flatness model to obtain tab height deviation information of the to-be-measured 3D tab flatness model relative to the standard 3D tab flatness model;
the flatness calculation module is connected with the processing module and used for calculating the flatness of the tab to be measured according to the tab height deviation information;
the working principle of the technical scheme is as follows: the standard 3D tab flatness model pool establishing module is used for establishing a standard 3D tab flatness model pool and establishing the standard 3D tab flatness model pool based on the lithium battery tab models of the factory, the establishing method is preferably to scan different types of standard lithium battery tabs through a model scanner to establish the standard 3D tab flatness model pool, the standard lithium battery tabs are selected by a user or parameters of international different types of lithium battery tabs are directly obtained to directly manufacture virtual 3D models and establish the standard 3D tab flatness model pool, wherein each standard 3D tab flatness model in the standard 3D tab flatness model pool corresponds to different tab models; the model detection module is used for extracting model characteristics of the tab to be measured and acquiring model information of the tab to be measured; the standard 3D tab flatness model acquisition module is respectively connected with the standard 3D tab flatness model pool establishing module and the model detection module and is used for acquiring a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information; the generating module of the flatness model of the 3D tab to be measured is used for scanning the tab to be measured and generating the flatness model of the 3D tab to be measured, and preferably, the flatness model is generated by scanning through a model scanner or is drawn after image acquisition is carried out by using a 3D sensor; the processing module is respectively connected with the standard 3D tab flatness model acquisition module and the to-be-measured 3D tab flatness model generation module, and is used for overlapping the standard 3D tab flatness model and the to-be-measured 3D tab flatness model to obtain tab height deviation information, or referred to as tab thickness deviation information, of the to-be-measured 3D tab flatness model relative to the standard 3D tab flatness model; the flatness calculation module is connected with the processing module and used for calculating the flatness of the tab to be measured according to the tab height deviation information;
the beneficial effects of the above technical scheme are: the standard 3D tab flatness model pool is established, the standard 3D tab flatness model pool is used for drawing the tab to be measured into a 3D model, the tab height deviation information is obtained by comparing the 3D model with the standard 3D tab flatness model of the same model, and further the flatness of the tab to be measured is obtained.
Referring to fig. 3, in an embodiment, the standard 3D tab flatness model pool establishing module performs operations including:
s11, acquiring standard parameter information of lugs with different lug models in preset quantity;
s12, constructing standard 3D tab flatness models of different tab models in preset number according to tab standard parameter information of different tab models in preset number;
s13, establishing a standard 3D tab flatness model pool according to standard 3D tab flatness models of different tab models in preset quantity;
the working principle of the technical scheme is as follows: the standard 3D tab flatness model pool establishing module firstly acquires tab standard parameter information of different tab models in preset quantity; then, constructing standard 3D tab flatness models of different tab models of a preset number according to tab standard parameter information of different tab models of the preset number; finally, establishing a standard 3D tab flatness model pool according to standard 3D tab flatness models of different tab models in preset quantity, namely acquiring parameters of lithium battery tabs of different international models, directly making virtual 3D models and establishing the standard 3D tab flatness model pool, wherein each standard 3D tab flatness model in the standard 3D tab flatness model pool corresponds to different tab models; the preset number is the number of the types of the tabs existing in a factory, and furthermore, a standard 3D tab flatness model pool is preferably established by scanning different types of standard lithium battery tabs through a model scanner, and the standard 3D tab flatness model pool is established, wherein the standard lithium battery tabs are selected by a user;
the beneficial effects of the above technical scheme are: through standard 3D utmost point ear plane degree model pond building module, carry out self-defined the establishment to standard 3D utmost point ear plane degree model pond according to user's demand, carry out more degree of depth's injecing to utmost point ear plane degree according to user's demand, be of value to improving follow-up utmost point ear plane degree measuring accuracy nature for utmost point ear plane degree's measurement more accords with user's requirement.
Referring to fig. 4, in one embodiment, the execution of the model detection module includes the following operations:
s21, irradiating the lug to be detected with a light source with a preset inclination angle to obtain a color image and a reflection image of the lug to be detected;
s22, extracting the characteristics of the color image and the reflection image of the tab to be detected to obtain tab model characteristic information in the color image and the reflection image;
s23, checking the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information;
s24, determining the model information of the tab to be detected according to the high-precision tab model characteristic information;
the working principle of the technical scheme is as follows: the model detection module irradiates the lug to be detected with a light source with a preset inclination angle to obtain a color image and a reflection image of the lug to be detected; extracting the characteristics of the color image and the reflection image of the tab to be detected to obtain tab model characteristic information in the color image and the reflection image; verifying the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information; determining the model information of the tab to be detected according to the model characteristic information of the high-precision tab; the preset inclination angle is set by a user, the standard is set to be that the preset inclination angle can completely irradiate all bodies of each tab to be detected, the tab model characteristic information comprises but is not limited to color information, shape information and other characteristic information, further, a color area-array camera is preferably used for collecting color images, and a black and white area-array camera is preferably used for collecting reflection images; furthermore, when a color image is collected, the color area-array camera is preferably a front view tab to be measured, and when a reflection image is collected, the black-and-white area-array camera is preferably arranged on a reflection light path formed by an incident light path of a light source on the surface of the tab to be measured;
the beneficial effects of the above technical scheme are: carry out color image acquisition and reflection of light image acquisition respectively to the utmost point ear of awaiting measuring through model detection module, double-deck check-up prevents the model and discerns the mistake, is of value to improving the model and discerns the precision.
In one embodiment, the 3D tab flatness model generation module to be measured performs operations including:
scanning a tab to be measured to obtain a picture to be measured of the tab to be measured in each direction;
acquiring tab pictures of standard tabs in all directions corresponding to the model information according to the model information of the tabs to be measured;
respectively acquiring the tab incomplete feature information of the picture to be measured and the tab picture, and performing feature comparison on the tab incomplete feature information of the picture to be measured and the tab incomplete feature information of the tab picture to obtain a comparison result;
if the comparison result shows that the incomplete part exists in the picture to be measured, acquiring the picture to be measured with the incomplete part, and generating correction control information consisting of a horizontal starting point, a vertical starting point, a horizontal end point and a vertical end point of the incomplete part of the picture to be measured with the incomplete part;
calculating a first pixel value before correction according to a horizontal starting point and a group of adjacent pixel points of a vertical starting point of a defective part of a to-be-measured picture with defects;
calculating a second pixel value before correction according to a group of adjacent pixel points of a horizontal termination point and a vertical termination point of the incomplete part of the picture to be measured with the incomplete part;
acquiring a first difference value of a row coordinate and a second difference value of a column coordinate of the first pixel value and the second pixel value;
generating a first offset according to the first difference, the second difference and a preset maximum error coefficient;
determining a second inclination angle according to the first offset;
rescanning according to the direction information of the incomplete image to be measured at a second inclination angle to obtain a second image to be measured corresponding to the direction information in the tab to be measured;
respectively cutting the second picture to be measured and the tab picture according to the correction control information to obtain a corrected picture to be measured and a corrected tab picture;
respectively acquiring tab incomplete feature information of a picture to be corrected and a tab picture to be corrected, and performing feature comparison on the tab incomplete feature information of the picture to be corrected and the tab incomplete feature information of the picture to be corrected to obtain a second comparison result;
if the second comparison result is that the picture to be measured is corrected, the defect does not exist;
correcting the incomplete picture to be measured according to the corrected picture to be measured to obtain a corrected picture;
generating a 3D tab flatness model to be measured for the picture to be measured without the defect according to the corrected picture and the residual comparison result;
the working principle of the technical scheme is as follows: scanning a tab to be measured to obtain a picture to be measured in each direction of the tab to be measured, and preferably collecting the pictures to be measured in six directions, namely up, down, left, right, front and back; the method comprises the steps that tab pictures in all directions of a standard tab corresponding to model information are obtained according to the model information of the tab to be measured, tab pictures in six directions of the upper, the lower, the left, the right, the front and the back of the standard tab are preferably obtained, the standard tab with different model information is preferably mainly selected according to a user, and the standard tab with different model information can be changed in a user-defined mode in the later period, wherein the tab pictures and the corresponding model information are stored in a storage unit in advance and can be directly obtained, tab incomplete characteristic information in the pictures to be measured and the tab pictures is respectively obtained, the incomplete characteristic information of the tab refers to the phenomenon that when the tab to be measured is subjected to image acquisition, the acquired angle has errors, the acquired tab image is shielded and the like, the incomplete characteristic information of the tab preferably comprises characteristic information related to the tab in the pictures to be measured and the tab pictures, the characteristic information comprises characteristic information such as the area and the side length of the tab, and the like of the tab is subjected to characteristic comparison between the tab incomplete characteristic information of the tab of the pictures to be measured and the tab, and the tab picture, and a comparison result is obtained; if the characteristic information of the incomplete lug of the picture to be measured is different from the characteristic information of the incomplete lug of the picture of the lug and the error exceeds a preset error value, judging that the incomplete picture to be measured exists, wherein the preset error value is preferably the maximum value of an error range allowing the product to have the error; calculating a first pixel value before correction according to a horizontal starting point and a group of adjacent pixel points of a vertical starting point of a defective part of a to-be-measured picture with defects; calculating a second pixel value before correction according to a group of adjacent pixel points of a horizontal termination point and a vertical termination point of the incomplete part of the picture to be measured with the incomplete part; acquiring a first difference value of row coordinates and a second difference value of column coordinates of the first pixel value and the second pixel value; generating a first offset according to the first difference, the second difference and a preset maximum error coefficient; determining a second inclination angle according to the first offset; rescanning at a second inclination angle according to the direction information of the incomplete image to be measured to obtain a second image to be measured corresponding to the direction information in the tab to be measured; respectively cutting the second picture to be measured and the tab picture according to the correction control information to obtain a corrected picture to be measured and a corrected tab picture; respectively acquiring lug incomplete characteristic information of a picture to be corrected and a picture of a corrected lug, and performing characteristic comparison on the lug incomplete characteristic information of the picture to be corrected and the picture of the corrected lug to obtain a second comparison result; the comparison mode is the same as the characteristic comparison between the tab incomplete characteristic information of the picture to be measured and the tab incomplete characteristic information of the picture of the tab, and if the second comparison result is that the picture to be measured is corrected and corrected, no incomplete image exists; the method comprises the steps that the tab incomplete feature information of a picture to be corrected is the same as the tab incomplete feature information of the picture to be corrected, or the error between the tab incomplete feature information of the picture to be corrected and the tab incomplete feature information of the picture to be corrected is within a second preset error value, the second preset error value is preferably the preset error value multiplied by the occupation ratio of the picture to be corrected in the whole picture to be measured, the picture to be corrected with the incomplete defect is corrected according to the picture to be corrected, and the corrected picture is obtained; generating a 3D tab flatness model to be measured for the picture to be measured without the defect according to the corrected picture and the residual comparison result;
the beneficial effects of the above technical scheme are: the 3D lug flatness model generation module to be measured scans the lug to be measured, corrects the image of the place with the defect in the scanned image, is beneficial to improving the accuracy of the 3D lug flatness model to be measured, and improves the accuracy of subsequent lug flatness measurement.
In one embodiment, the model detection module is further configured to perform operations comprising:
determining a first tab model according to tab model characteristic information of the color image;
acquiring a first probability of appearance of a first tab model within a preset number of days;
according to the first probability, calculating to obtain a color confidence corresponding to the first tab model; the color confidence coefficient reflects the accuracy of the first tab model determined by the tab model characteristic information of the color image;
determining the second pole ear type according to the pole ear type characteristic information of the reflective image;
acquiring a second probability of occurrence of a second polar ear type within a preset number of days;
according to the second probability, calculating to obtain a light reflection confidence coefficient corresponding to the second polar ear type number; the light reflection confidence coefficient reflects the accuracy of the second tab model determined by the tab model characteristic information of the light reflection image;
judging whether the first tab type is the same as the second tab type;
if the color images are the same, outputting any one of the tab model characteristic information of the color images and the tab model characteristic information of the reflective images as high-precision tab model characteristic information;
if not, judging whether the color confidence coefficient is smaller than the light reflection confidence coefficient;
if the color confidence is less than the light-reflecting confidence, outputting the tab model characteristic information of the light-reflecting image as high-precision tab model characteristic information;
if the color confidence coefficient is greater than the light reflection confidence coefficient, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
if the color confidence coefficient is equal to the reflection confidence coefficient, calculating the confidence values of the color confidence coefficient and the reflection confidence coefficient, wherein the calculation formula is as follows:
Figure BDA0003229498150000271
wherein T is a trust value, m is the number of types of tabs with different types, e t Is the weight of the t-type tab,
Figure BDA0003229498150000272
p t,c is the color confidence, p, of the t-th type tab t,f Is the light reflection confidence coefficient, x, of the t-type tab t,c The quantity of the tabs with the color confidence degree larger than the light reflection confidence degree in the measured quantity of the t-type tabs within 30 days is x t,f The number of the tabs with the reflection confidence coefficient larger than the color confidence coefficient in the measured number of the t-type tabs within 30 days is determined; the unit of the number of the pole lugs is thousand, and e is a natural constant;
if the trust value T is less than or equal to 2e, outputting the tab model characteristic information of the reflective image as high-precision tab model characteristic information;
if the trust value T is larger than 2e, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
the working principle of the technical scheme is as follows: the model detection module determines a first tab model according to tab model characteristic information of the color image, wherein the tab model characteristic information of the color image comprises but is not limited to characteristic information such as color information and shape information; acquiring a first probability of appearance of a first tab model within preset days, wherein the preset days are set by a user according to the factory product updating frequency of the user and are usually set within 30 days; according to the first probability, calculating to obtain a color confidence coefficient corresponding to the first tab model, wherein the color confidence coefficient reflects the accuracy of the first tab model determined by the tab model characteristic information of the color image; determining a second pole ear type according to the pole ear type characteristic information of the reflective image, wherein the pole ear type characteristic information of the reflective image comprises but is not limited to characteristic information such as color information and shape information; acquiring a second probability of occurrence of a second polar ear type within preset days, wherein the preset days are set by a user according to the factory product updating frequency of the user and are usually set within 30 days; according to the second probability, calculating to obtain a light reflection confidence coefficient corresponding to the second polar ear type number; the light reflection confidence coefficient reflects the accuracy of the second tab model determined by the tab model characteristic information of the light reflection image; judging whether the first tab type is the same as the second tab type; if the color images are the same, outputting any one of the tab model characteristic information of the color images and the tab model characteristic information of the reflective images as high-precision tab model characteristic information; if not, judging whether the color confidence coefficient is smaller than the light reflection confidence coefficient; if the color confidence is less than the light-reflecting confidence, outputting the tab model characteristic information of the light-reflecting image as high-precision tab model characteristic information; if the color confidence coefficient is greater than the light reflection confidence coefficient, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
furthermore, when the color confidence coefficient is equal to the light reflection confidence coefficient, the tab model characteristic information of which image is taken can be judged according to the trust value and output as the high-precision tab model characteristic information, and the calculation formula of the trust value is as follows:
Figure BDA0003229498150000291
Figure BDA0003229498150000292
wherein T is a trust value, m is the number of types of tabs with different types, e t Is the weight value of the t-type tab,
Figure BDA0003229498150000293
p t,c is the color confidence, p, of the t-th type tab t,f Is the light reflection confidence coefficient, x of the t type tab t,c The quantity of the tabs with the color confidence degree larger than the light reflection confidence degree in the measured quantity of the t-type tabs within 30 days is x t,f The number of the tabs with the reflection confidence coefficient larger than the color confidence coefficient in the measured number of the t-type tabs within 30 days is determined; the unit of the number of the lugs is thousands, e is a natural constant, and if the trust value is less than or equal to 2e, the lug model characteristic information of the reflective image is output as high-precision lug model characteristic information; if the trust value is larger than 2e, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information; if the color confidence and the light reflection confidence are both 0.87 when facing a certain type of tab, acquiring the color confidence and the light reflection confidence of a plurality of different types of tabs, wherein the selection sequence of different types is determined by the initial set acquisition sequence, namely the sequence set by the initial user, the color confidence of 5 different types of tabs and the number of tabs with the color confidence higher than the light reflection confidence in the measured number of the 5 different types of tabs within 30 days are respectively 0.85/152,0.91/98,0.88/120,0.81/165,0.86/110, the number of tabs with the light reflection confidence higher than the color confidence in the measured number of the 5 different types of tabs within 30 days, which is 0.87/192,0.85/162,0.90/81,0.81/121,0.86/116, and the unit of the number is kilometric confidence, the unit of the number is kilometric
Figure BDA0003229498150000294
Figure BDA0003229498150000295
Substituting the data to calculate that T is approximately equal to 1.692e<2e, outputting the tab model characteristic information of the reflection image as high-precision tab model characteristic information; through the trust value algorithm, the determination of the high-precision tab model characteristic information is more accurate, so that the model measurement precision is improved;
the beneficial effects of the above technical scheme are: carry out the confidence check to the utmost point ear model characteristic information of color image and the utmost point ear model characteristic information of reflection of light image through model detection module, improve model measurement accuracy, when the multiple model utmost point ear of factory coproduction, through the confidence check-up, need not develop many assembly lines and detect different model utmost point ears respectively, once only accurately obtain the model of the volume of awaiting measuring utmost point ear, reduction equipment cost.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (8)

1. A method for measuring the flatness of a tab is characterized by comprising the following steps:
s1, establishing a standard 3D tab flatness model pool;
s2, obtaining the model information of the tab to be measured;
s3, acquiring a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information;
s4, scanning the tab to be measured to generate a 3D tab flatness model to be measured;
s5, overlapping the standard 3D lug flatness model and the 3D lug flatness model to be measured to obtain lug height deviation information of the 3D lug flatness model to be measured relative to the standard 3D lug flatness model;
s6, calculating to obtain the flatness of the tab to be measured according to the tab height deviation information;
wherein, the scanning survey measurement utmost point ear, generate survey measurement 3D utmost point ear plane degree model, include: scanning a tab to be measured to obtain a picture to be measured of the tab to be measured in each direction;
acquiring tab pictures of standard tabs in all directions corresponding to the model information according to the model information of the tabs to be measured;
respectively acquiring tab incomplete feature information of a picture to be measured and a tab picture, and performing feature comparison on the tab incomplete feature information of the picture to be measured and the tab incomplete feature information of the tab picture to obtain comparison results;
if the comparison result indicates that the incomplete picture exists, acquiring the incomplete picture to be measured, and generating correction control information consisting of a horizontal starting point, a vertical starting point, a horizontal end point and a vertical end point of the incomplete part of the incomplete picture to be measured, wherein the incomplete part exists;
calculating a first pixel value before correction according to a group of adjacent pixel points of a horizontal starting point and a vertical starting point of the incomplete part of the picture to be measured with the incomplete part;
calculating a second pixel value before correction according to a group of adjacent pixel points of the horizontal termination point and the vertical termination point of the incomplete part of the picture to be measured with the incomplete part;
acquiring a first difference value of row coordinates and a second difference value of column coordinates of the first pixel value and the second pixel value;
generating a first offset according to the first difference, the second difference and a preset maximum error coefficient;
determining a second inclination angle according to the first offset;
rescanning according to the direction information of the incomplete picture to be measured at the second inclination angle to obtain a second picture to be measured corresponding to the direction information in the pole lug to be measured;
respectively cutting the second picture to be measured and the tab picture according to the correction control information to obtain a corrected picture to be measured and a corrected tab picture;
respectively acquiring tab incomplete feature information of a picture to be corrected and a picture of a tab to be corrected, and performing feature comparison on the tab incomplete feature information of the picture to be corrected and the tab incomplete feature information of the picture to be corrected to obtain a second comparison result;
if the second comparison result is that there is no defect in the corrected picture to be measured,
correcting the incomplete picture to be measured according to the corrected picture to be measured to obtain a corrected picture;
and generating a 3D tab flatness model to be measured for the picture to be measured without the defect according to the corrected picture and the residual comparison result.
2. The method for measuring the flatness of the tab according to claim 1, wherein the establishing of the standard 3D tab flatness model pool comprises:
acquiring standard parameter information of lugs with different lug models in preset quantity;
constructing standard 3D tab flatness models of different tab models in preset number according to the tab standard parameter information of different tab models in preset number;
and establishing a standard 3D tab flatness model pool according to the standard 3D tab flatness models of different tab models in preset quantity.
3. The method for measuring the flatness of the tab according to claim 1, wherein the obtaining of the model information of the tab to be measured includes:
irradiating the lug to be detected with a light source with a preset inclination angle to obtain a color image and a reflection image of the lug to be detected;
extracting the characteristics of the color image and the reflection image of the tab to be detected to obtain tab model characteristic information in the color image and the reflection image;
verifying the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information;
and determining the model information of the tab to be detected according to the high-precision tab model characteristic information.
4. The method as claimed in claim 3, wherein the step of verifying the tab model characteristic information of the color image and the tab model characteristic information of the reflected light image to obtain high-precision tab model characteristic information comprises:
determining a first tab model according to tab model characteristic information of the color image;
acquiring a first probability of the first tab type within a preset number of days;
according to the first probability, calculating to obtain a color confidence corresponding to the type of the first tab; the color confidence coefficient reflects the accuracy of the first tab model determined by the tab model characteristic information of the color image;
determining a second pole ear type according to the pole ear type characteristic information of the reflective image;
acquiring a second probability of the second polar ear type number within a preset number of days;
according to the second probability, calculating to obtain a light reflection confidence coefficient corresponding to the second polar ear type number; the light reflection confidence coefficient reflects the accuracy of the second tab model determined by the tab model characteristic information of the light reflection image;
judging whether the first pole lug type is the same as the second pole lug type;
if the color images are the same, outputting any one of the tab model characteristic information of the color images and the tab model characteristic information of the reflective images as high-precision tab model characteristic information;
if not, judging whether the color confidence coefficient is smaller than the light reflection confidence coefficient;
if the color confidence is smaller than the light-reflecting confidence, outputting the tab model characteristic information of the light-reflecting image as high-precision tab model characteristic information;
if the color confidence coefficient is greater than the light reflection confidence coefficient, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
if the color confidence coefficient is equal to the reflection confidence coefficient, calculating the confidence values of the color confidence coefficient and the reflection confidence coefficient, wherein the calculation formula is as follows:
Figure FDA0003810269030000041
wherein T is a trust value, m is the types and the number of the lugs with different types, e t Is the weight value of the t-type tab,
Figure FDA0003810269030000042
p t,c is the color confidence, p, of the t-th type tab t,f Is the light reflection confidence coefficient, x of the t type tab t,c The quantity of the tabs with the color confidence degree larger than the light reflection confidence degree in the measured quantity of the t-type tabs within 30 days is x t,f The number of the tabs with the reflection confidence coefficient larger than the color confidence coefficient in the measured number of the t-type tabs within 30 days is determined; the unit of the number of the pole lugs is thousand, and e is a natural constant;
if the trust value T is less than or equal to 2e, outputting the tab model characteristic information of the reflective image as high-precision tab model characteristic information;
and if the trust value T is greater than 2e, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information.
5. A flatness measuring apparatus of a tab, comprising:
the standard 3D tab flatness model pool establishing module is used for establishing a standard 3D tab flatness model pool;
the model detection module is used for acquiring model information of the tab to be measured;
the standard 3D tab flatness model acquisition module is respectively connected with the standard 3D tab flatness model pool establishing module and the model detection module and is used for acquiring a standard 3D tab flatness model corresponding to the model information in the standard 3D tab flatness model pool according to the model information;
the generating module of the flatness model of the 3D tab to be measured is used for scanning the tab to be measured and generating the flatness model of the 3D tab to be measured;
the processing module is respectively connected with the standard 3D tab flatness model acquisition module and the 3D tab flatness model generation module to be measured, and is used for overlapping the standard 3D tab flatness model and the 3D tab flatness model to be measured to obtain tab height deviation information of the 3D tab flatness model to be measured relative to the standard 3D tab flatness model;
the flatness calculation module is connected with the processing module and used for calculating the flatness of the tab to be measured according to the tab height deviation information;
the 3D tab flatness model generation module to be measured executes the following operations:
scanning a tab to be measured to obtain a picture to be measured of the tab to be measured in each direction;
acquiring tab pictures of standard tabs in all directions corresponding to the model information according to the model information of the tabs to be measured;
respectively acquiring tab incomplete feature information of a picture to be measured and a tab picture, and performing feature comparison on the tab incomplete feature information of the picture to be measured and the tab incomplete feature information of the tab picture to obtain comparison results;
if the comparison result indicates that the incomplete picture exists, acquiring the incomplete picture to be measured, and generating correction control information consisting of a horizontal starting point, a vertical starting point, a horizontal end point and a vertical end point of the incomplete part of the incomplete picture to be measured, wherein the incomplete part exists;
calculating a first pixel value before correction according to a group of adjacent pixel points of a horizontal starting point and a vertical starting point of the incomplete part of the picture to be measured with the incomplete part;
calculating a second pixel value before correction according to a group of adjacent pixel points of the horizontal termination point and the vertical termination point of the incomplete part of the picture to be measured with the incomplete part;
acquiring a first difference value of row coordinates and a second difference value of column coordinates of the first pixel value and the second pixel value;
generating a first offset according to the first difference, the second difference and a preset maximum error coefficient;
determining a second inclination angle according to the first offset;
rescanning according to the direction information of the incomplete picture to be measured at the second inclination angle to obtain a second picture to be measured corresponding to the direction information in the lug to be measured;
respectively cutting the second picture to be measured and the tab picture according to the correction control information to obtain a corrected picture to be measured and a corrected tab picture;
respectively acquiring lug incomplete characteristic information of a picture to be corrected and a picture of a corrected lug, and performing characteristic comparison on the lug incomplete characteristic information of the picture to be corrected and the picture of the corrected lug to obtain a second comparison result;
if the second comparison result is that there is no defect in the corrected picture to be measured,
correcting the incomplete picture to be measured according to the corrected picture to be measured to obtain a corrected picture;
and generating a 3D tab flatness model to be measured for the picture to be measured without the defect according to the corrected picture and the residual comparison result.
6. The device for measuring the flatness of the tab as claimed in claim 5, wherein the standard 3D tab flatness model pool establishing module performs operations including:
s11, acquiring standard parameter information of lugs with different lug models in preset quantity;
s12, constructing standard 3D tab flatness models of different tab models of a preset number according to the tab standard parameter information of different tab models of the preset number;
and S13, establishing a standard 3D tab flatness model pool according to the standard 3D tab flatness models of different tab models in preset quantity.
7. The device for measuring the flatness of a tab according to claim 5, wherein the model number detection module performs operations including:
s21, irradiating the lug to be detected with a light source with a preset inclination angle to obtain a color image and a reflection image of the lug to be detected;
s22, extracting characteristics of the color image and the reflection image of the tab to be detected to obtain tab model characteristic information in the color image and the reflection image;
s23, checking the tab model characteristic information of the color image and the tab model characteristic information of the reflective image to obtain high-precision tab model characteristic information;
and S24, determining the model information of the tab to be detected according to the high-precision tab model characteristic information.
8. The device for measuring the flatness of the tab as claimed in claim 7, wherein the model number detection module is further configured to perform operations including:
determining a first tab model according to tab model characteristic information of the color image;
acquiring a first probability of occurrence of the first tab model within a preset number of days;
according to the first probability, calculating to obtain a color confidence corresponding to the type of the first tab; the color confidence coefficient reflects the accuracy of the first tab model determined by the tab model characteristic information of the color image;
determining a second pole ear type according to the pole ear type characteristic information of the reflective image;
acquiring a second probability of the second polar ear type number within a preset number of days;
according to the second probability, calculating to obtain a light reflection confidence coefficient corresponding to the second polar ear type number; the light reflection confidence coefficient reflects the accuracy of the second tab model determined by the tab model characteristic information of the light reflection image;
judging whether the type of the first tab is the same as that of the second tab;
if the color images are the same, outputting any one of the tab model characteristic information of the color images and the tab model characteristic information of the reflective images as high-precision tab model characteristic information;
if not, judging whether the color confidence coefficient is smaller than the reflection confidence coefficient;
if the color confidence is smaller than the light-reflecting confidence, outputting the tab model characteristic information of the light-reflecting image as high-precision tab model characteristic information;
if the color confidence coefficient is greater than the light reflection confidence coefficient, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information;
if the color confidence coefficient is equal to the reflection confidence coefficient, calculating the confidence values of the color confidence coefficient and the reflection confidence coefficient, wherein the calculation formula is as follows:
Figure FDA0003810269030000081
wherein T is a trust value, m is the number of types of tabs with different types, e t Is the weight of the t-type tab,
Figure FDA0003810269030000082
p t,c color confidence, p, of the t-th type tab t,f Is the light reflection confidence coefficient, x of the t type tab t,c The quantity of the tabs with the color confidence degree larger than the light reflection confidence degree in the measured quantity of the t-type tabs within 30 days is x t,f The number of the tabs with the reflection confidence coefficient larger than the color confidence coefficient in the measured number of the t-type tabs within 30 days is determined; the unit of the number of the lugs is thousands, and e is a natural constant;
if the trust value T is less than or equal to 2e, outputting the tab model characteristic information of the reflective image as high-precision tab model characteristic information;
and if the trust value T is greater than 2e, outputting the tab model characteristic information of the color image as high-precision tab model characteristic information.
CN202110982005.9A 2021-08-25 2021-08-25 Method and device for measuring flatness of tab Active CN113720282B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110982005.9A CN113720282B (en) 2021-08-25 2021-08-25 Method and device for measuring flatness of tab

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110982005.9A CN113720282B (en) 2021-08-25 2021-08-25 Method and device for measuring flatness of tab

Publications (2)

Publication Number Publication Date
CN113720282A CN113720282A (en) 2021-11-30
CN113720282B true CN113720282B (en) 2022-11-25

Family

ID=78677895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110982005.9A Active CN113720282B (en) 2021-08-25 2021-08-25 Method and device for measuring flatness of tab

Country Status (1)

Country Link
CN (1) CN113720282B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023216249A1 (en) * 2022-05-13 2023-11-16 宁德时代新能源科技股份有限公司 Detection method and detection apparatus for electrode sheet, and stacking system
CN115841451B (en) * 2022-09-27 2023-11-17 宁德时代新能源科技股份有限公司 Method and device for detecting number of lugs

Family Cites Families (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4209998B2 (en) * 1999-05-13 2009-01-14 横浜ゴム株式会社 Sheet material thickness measuring device
JP4615400B2 (en) * 2005-09-02 2011-01-19 パナソニック株式会社 Membrane measuring device for porous membrane on battery electrode plate and coating device using the same
WO2009079334A2 (en) * 2007-12-14 2009-06-25 Zygo Corporation Analyzing surface structure using scanning interferometry
JP2012242138A (en) * 2011-05-16 2012-12-10 Kobe Steel Ltd Shape measuring device
CN103075950B (en) * 2012-12-31 2015-12-02 天津力神电池股份有限公司 Flatness inspection devices is used to measure the method for lug flatness
CN103940379A (en) * 2014-03-31 2014-07-23 七海测量技术(深圳)有限公司 Method for measuring flatness of glass based on distorting mirror principle
CN107014321B (en) * 2017-05-12 2020-03-31 西安交通大学 Rapid field flatness measuring device and measuring method
CN111947607B (en) * 2020-07-31 2022-06-14 深圳市格灵人工智能与机器人研究院有限公司 Flatness measuring method, flatness measuring device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN113720282A (en) 2021-11-30

Similar Documents

Publication Publication Date Title
CN113720282B (en) Method and device for measuring flatness of tab
CN109001224B (en) Welding seam detection method and detection device
US7450248B2 (en) Three-dimensional measuring method and three-dimensional measuring apparatus
CN111210468A (en) Image depth information acquisition method and device
CN111145271B (en) Method and device for determining accuracy of camera parameters, storage medium and terminal
CN110966956A (en) Binocular vision-based three-dimensional detection device and method
CN109978865A (en) A kind of method, apparatus for the detection of nuclear fuel rod face of weld
JP5123244B2 (en) Shape defect inspection device, shape modeling device, and shape defect inspection program
CN113610929B (en) Combined calibration method of camera and multi-line laser
CN109186942A (en) The test parallelism detection method, apparatus and readable storage medium storing program for executing of structure light video camera head
CN112422960B (en) Offset estimation method and device of camera module, storage medium and terminal
CN109040724B (en) Light spot distortion detection method and device of structured light projector and readable storage medium
CN113469991B (en) Visual online detection method for laser welding spot of lithium battery tab
CN112816187B (en) Quality judgment method for laser spots
CN112782201B (en) Lobster eye optical device calibration method based on X-ray focusing image
CN115222728A (en) Screen detection method and device based on visual technology and computer equipment
CN110672631B (en) Panel defect photographing method and panel defect photographing device
CN114422653A (en) Book flattening line laser rapid calibration method and laser scanner
CN113237896A (en) Furniture board dynamic monitoring system and method based on light source scanning
CN112881999B (en) Semi-automatic calibration method for multi-line laser radar and vision sensor
US11875536B1 (en) Localization of lens focus parameter estimation and subsequent camera calibration
CN114029723B (en) High-precision assembling method for assembling manipulator based on multi-source sensing
CN116244658B (en) Abnormality detection method and device for semiconductor machine, electronic equipment and storage medium
CN111750781B (en) Automatic test system based on CCD and method thereof
CN113989513A (en) Method for recognizing reading of square pointer type instrument

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