Automatic compensation adjustment algorithm for upper and lower surface offset measurement of lithium battery coating

Through the automatic compensation adjustment algorithm for measuring the offset of the lithium battery coating in the intelligent surface detection system, the misalignment value in the product image is calculated and automatic compensation is performed, which solves the calculation error problem caused by camera position offset, and achieves high-precision and highly automated camera adjustment.

CN113870232BActive Publication Date: 2025-05-13HANGZHOU BAIZIJIAN TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111164195.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-09-30
Publication Date
2025-05-13
Estimated Expiration
2041-09-30

AI Technical Summary

Technical Problem

During the camera image pickup process, the camera position shifts due to vibration of the production line conveyor belt, resulting in pixel size changes and calculation errors. The existing solutions require manual adjustment of compensation values, which affects the operation of the production line and is difficult to adjust in time.

Method used

By obtaining the product image on the production line conveyor belt, calculating the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating, establishing an abnormal counting value mechanism, adding counting when the misalignment value exceeds the standard range, and when the threshold is reached, the sampled data is calculated for compensation value, realizing automatic compensation adjustment.

Benefits of technology

It realizes intelligent adjustment of the camera installation position and is accurate to the mm level, avoids the inconvenience of manual adjustment, improves the degree of automation, and reduces the possibility of production line shutdown.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113870232B_ABST
    Figure CN113870232B_ABST
Patent Text Reader

Abstract

The present invention relates to an automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of a lithium battery coating. It is applicable to the field of intelligent surface detection. The technical solution adopted by the present invention is: an automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of a lithium battery coating, characterized in that: S1, obtaining a product image on a production line conveyor belt; S2, calculating the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating in the image based on the product image; S3, when the upper and lower misalignment values ​​are outside the standard value range, the abnormal count value is increased by 1; when the upper and lower misalignment values ​​are within the standard value range, the abnormal count value is cleared; S4, when the abnormal count value is less than the set threshold, return to step S1; when the abnormal count value is equal to the set threshold, jump to step S5; S5, sample and obtain each upper and lower misalignment value corresponding to the abnormal count value, and calculate the compensation value suitable for the current hardware system based on each upper and lower misalignment value.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to an automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of a lithium battery coating, and is applicable to the field of intelligent surface detection. Background Art

[0002] The intelligent surface inspection system based on machine vision includes technical contents such as camera imaging and image detection. However, during the camera imaging process, the long-term vibration of the production line conveyor belt often causes the relative position of the production line conveyor belt and the camera to shift, which in turn causes calculation errors after the pixel size changes, resulting in errors in the actual results.

[0003] At present, the mainstream solution to the above errors is to manually adjust the compensation value to make the final result close to the ideal result. However, the existing mainstream solution requires professional engineers to make adjustments after the problem occurs, which affects the operation of the production line. Whether the adjusted value is reasonable also depends on the experience of the engineer. It is also difficult to assess how long it will take for the error to reappear after the adjustment. Failure to make adjustments in time will affect the production of the factory production line and reduce production capacity. Summary of the invention

[0004] The technical problem to be solved by the present invention is: in view of the above-mentioned problems, an automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of the lithium battery coating is provided.

[0005] The technical solution adopted by the present invention is: an automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of the lithium battery coating, characterized in that:

[0006] S1, obtain the product image on the conveyor belt of the production line;

[0007] S2, calculating the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating in the image based on the product image;

[0008] S3. When the upper and lower misalignment values ​​are outside the standard value range, the abnormal count value is increased by 1; when the upper and lower misalignment values ​​are within the standard value range, the abnormal count value is cleared;

[0009] S4, when the abnormal count value is less than the set threshold, return to step S1; when the abnormal count value is equal to the set threshold, jump to step S5;

[0010] S5. Sample and obtain each upper and lower misalignment value corresponding to the abnormal count value, and calculate a compensation value suitable for the current hardware system based on each upper and lower misalignment value.

[0011] The step S3 comprises:

[0012] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also higher than the standard value, the abnormal count value is increased by 1;

[0013] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also lower than the standard value, the abnormal count value is increased by 1;

[0014] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are lower than the standard value, the abnormal count value is cleared;

[0015] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are higher than the standard value, the abnormal count value is cleared;

[0016] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are within the standard value range, the abnormal count value is reset to zero.

[0017] An automatic compensation and adjustment device for measuring the offset of the upper and lower surfaces of a lithium battery coating, characterized in that:

[0018] An image acquisition module is used to acquire images of products on the conveyor belt of the production line;

[0019] A misalignment calculation module is used to calculate the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating in the image based on the product image;

[0020] The counting module is used to increase the abnormal count value by 1 when the upper and lower misalignment values ​​are outside the standard value range; and to clear the abnormal count value when the upper and lower misalignment values ​​are within the standard value range;

[0021] A judgment module, used to jump to the image acquisition module when the abnormal count value is less than a set threshold; and jump to the compensation calculation module when the abnormal count value is equal to the set threshold;

[0022] The compensation calculation module is used to sample and obtain each upper and lower misalignment value corresponding to the abnormal count value, and calculate a compensation value suitable for the current hardware system based on each upper and lower misalignment value.

[0023] The counting module is used for:

[0024] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also higher than the standard value, the abnormal count value is increased by 1;

[0025] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also lower than the standard value, the abnormal count value is increased by 1;

[0026] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are lower than the standard value, the abnormal count value is cleared;

[0027] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are higher than the standard value, the abnormal count value is cleared;

[0028] When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are within the standard value range, the abnormal count value is reset to zero.

[0029] A storage medium stores a computer program that can be executed by a processor, characterized in that when the computer program is executed, the steps of the automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of the lithium battery coating are implemented.

[0030] A data processing device has a memory and a processor, the memory stores a computer program that can be executed by the processor, and is characterized in that when the computer program is executed, the steps of the automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of the lithium battery coating are implemented.

[0031] An intelligent surface detection system, characterized by having the above-mentioned data processing device.

[0032] The beneficial effects of the present invention are as follows: the present invention calculates the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating through the product image, and after continuously finding abnormal measurement values, samples data, analyzes the data, extracts representative data, performs calculations, obtains compensation values ​​suitable for the current hardware system, and uses hardware with high-precision adjustment, and uses software compensation values ​​as the final insurance mechanism to achieve safe and controllable automatic generation of compensation values, effectively avoiding the intervention of engineers and reducing the possibility of production line downtime. The present invention implements an intelligent adjustment system for the camera installation position through software, and the adjustment position can be accurate to the mm level, avoiding the inconvenience of manually adjusting the camera at high or low places, with high precision and high degree of automation. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] Figure 1 A flowchart of an embodiment. DETAILED DESCRIPTION

[0034] This embodiment is an automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of a lithium battery coating, which specifically includes the following steps:

[0035] S1. Obtain product images on the conveyor belt of the production line.

[0036] S2. Calculate the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating in the image based on the product image.

[0037] S3. When the upper and lower misalignment values ​​are outside the standard value range and show regularity, uniformly higher or lower than the standard value, the abnormal count value is increased by 1 each time the upper and lower misalignment values ​​of the lithium battery coating are calculated to be outside the standard value range; when the upper and lower misalignment values ​​are within the standard value range, the abnormal count value is reset to zero.

[0038] In this embodiment, when the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also higher than the standard value, the abnormal count value is increased by 1; when the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also lower than the standard value, the abnormal count value is increased by 1; when the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are lower than the standard value, the abnormal count value is cleared; when the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are higher than the standard value, the abnormal count value is cleared; when the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are within the standard value range, the abnormal count value is cleared.

[0039] S4. When the abnormal count value is less than the set threshold, return to step S1; when the abnormal count value is equal to the set threshold, jump to step S5.

[0040] S5. Notify the sampling data thread, the sampling data thread starts sampling data, analyzes the data, extracts representative data, performs calculations, obtains compensation values ​​suitable for the current hardware system, and backfills them for subsequent detection and measurement.

[0041] This embodiment also provides an automatic compensation and adjustment device for measuring the offset of the upper and lower surfaces of a lithium battery coating, comprising: an image acquisition module, a misalignment calculation module, a counting module, a judgment module and a compensation calculation module.

[0042] In this example, the image acquisition module is used to acquire product images on the conveyor belt of the production line; the misalignment calculation module is used to calculate the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating in the image based on the product image; the counting module is used to add 1 to the abnormal count value when the upper and lower misalignment values ​​are outside the standard value range, and to clear the abnormal count value when the upper and lower misalignment values ​​are within the standard value range; the judgment module is used to jump to the image acquisition module when the abnormal count value is less than the set threshold, and to jump to the compensation calculation module when the abnormal count value is equal to the set threshold; the compensation calculation module is used to sample and acquire each upper and lower misalignment value corresponding to the abnormal count value, and calculate the compensation value suitable for the current hardware system based on each upper and lower misalignment value.

[0043] This embodiment also provides a storage medium on which a computer program that can be executed by a processor is stored. When the computer program is executed, the steps of the automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of the lithium battery coating in this example are implemented.

[0044] This embodiment also provides a data processing device, comprising a memory and a processor, wherein the memory stores a computer program that can be executed by the processor, and when the computer program is executed, the steps of the automatic compensation adjustment algorithm for measuring the upper and lower surface offset of the lithium battery coating in this example are implemented.

[0045] This embodiment also provides an intelligent surface detection system, which has a camera and a data processing device. The data processing device has a memory and a processor. The memory stores a computer program that can be executed by the processor. When the computer program is executed, the steps of the automatic compensation adjustment algorithm for measuring the upper and lower surface offset of the lithium battery coating in this example are implemented.

Claims

1. An automatic compensation adjustment algorithm for measuring the offset of the upper and lower surfaces of lithium battery coatings, characterized by: S1, obtain the product image on the conveyor belt of the production line; S2, calculating the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating in the image based on the product image; S3. When the upper and lower misalignment values ​​are outside the standard value range, the abnormal count value is increased by 1; when the upper and lower misalignment values ​​are within the standard value range, the abnormal count value is cleared; S4, when the abnormal count value is less than the set threshold, return to step S1; when the abnormal count value is equal to the set threshold, jump to step S5; S5, sampling and obtaining each upper and lower misalignment value corresponding to the abnormal count value, and calculating a compensation value applicable to the current hardware system based on each upper and lower misalignment value; The step S3 comprises: When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also higher than the standard value, the abnormal count value is increased by 1; When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also lower than the standard value, the abnormal count value is increased by 1; When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are lower than the standard value, the abnormal count value is cleared; When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are higher than the standard value, the abnormal count value is cleared; When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are within the standard value range, the abnormal count value is reset to zero.

2. An automatic compensation and adjustment device for measuring the offset of the upper and lower surfaces of a lithium battery coating, characterized in that: An image acquisition module is used to acquire images of products on the conveyor belt of the production line; A misalignment calculation module is used to calculate the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating in the image based on the product image; The counting module is used to increase the abnormal count value by 1 when the upper and lower misalignment values ​​are outside the standard value range; when the upper and lower misalignment values ​​are within the standard value range, the abnormal count value is cleared; A judgment module, used to jump to the image acquisition module when the abnormal count value is less than a set threshold; and jump to the compensation calculation module when the abnormal count value is equal to the set threshold; A compensation calculation module, used for sampling and obtaining each upper and lower misalignment value corresponding to the abnormal count value, and calculating a compensation value applicable to the current hardware system based on each upper and lower misalignment value; The counting module is used for: When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also higher than the standard value, the abnormal count value is increased by 1; When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are within the standard value range or are also lower than the standard value, the abnormal count value is increased by 1; When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are higher than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are lower than the standard value, the abnormal count value is cleared; When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are lower than the standard value, and the upper and lower misalignment values ​​of the left and right edges of the previous lithium battery coating are higher than the standard value, the abnormal count value is cleared; When the upper and lower misalignment values ​​of the left and right edges of the lithium battery coating are within the standard value range, the abnormal count value is reset to zero.

3. A storage medium having stored thereon a computer program executable by a processor, characterized in that: When the computer program is executed, the steps of the automatic compensation adjustment algorithm for measuring the upper and lower surface offset of the lithium battery coating as described in claim 1 are implemented.

4. A data processing device comprising a memory and a processor, wherein the memory stores a computer program executable by the processor, wherein: When the computer program is executed, the steps of the automatic compensation adjustment algorithm for measuring the upper and lower surface offset of the lithium battery coating as described in claim 1 are implemented.

5. An intelligent surface detection system, characterized in that: A data processing device according to claim 4.

Citation Information

Patent Citations

  • Quality control method and system based on machine vision detection and measurement depth integration

    CN111681241A

  • Assembling method and system based on machine vision

    CN112589401A