Method for acquiring target area and visual detection method

By automatically calculating and adjusting the detection threshold, the problem of increased equipment shutdown frequency and manual operation errors caused by material changes in battery production is solved, and production efficiency and product quality are improved.

CN112215218BActive Publication Date: 2024-09-03WUXI LEAD INTELLIGENT EQUIP CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN201910628918.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2019-07-12
Publication Date
2024-09-03
Estimated Expiration
2039-07-12

AI Technical Summary

Technical Problem

During the battery production process, material changes lead to changes in image brightness in the visual inspection system, requiring frequent shutdowns to adjust detection thresholds, increasing the frequency of equipment shutdowns, and possibly causing product scrapping due to manual adjustment errors.

Method used

An automatic target area acquisition method is provided. By acquiring images of the target area and the background, the reference brightness and the regional brightness difference are calculated, the detection threshold is adaptively adjusted, and the target area is gradually reduced to avoid manual operation and equipment shutdown.

Benefits of technology

It realizes automatic adjustment of detection thresholds, reduces the frequency of equipment shutdowns, reduces manufacturing costs, improves production efficiency, and reduces the risk of product scrapping.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112215218B
    Figure CN112215218B
Patent Text Reader

Abstract

The present application provides a method for acquiring a target area and a visual detection method, wherein the method for acquiring a target area includes: S1: acquiring images of the target area and the background; S2: acquiring the reference brightness of the image, and determining the detection threshold according to the reference brightness of the image; S3: selecting an area in the image whose brightness is greater than the detection threshold; S4: acquiring the reference brightness of the area; S5: calculating a new detection threshold according to the reference brightness of the area and the reference brightness of the image; S6: acquiring a new area according to the new detection threshold. The method for acquiring a target area of ​​the present application can adjust the detection threshold automatically according to the difference of the objects to be detected, so as to acquire the area to be detected and detect the area to be detected, and is suitable for the detection of products of different models, and can avoid increasing the frequency of equipment downtime due to adjusting the detection threshold, and also does not require manual operation, thereby reducing manufacturing costs and improving production efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of battery manufacturing, and in particular to a method for acquiring a target area and a visual detection method. Background Art

[0002] During the production of batteries, materials or models need to be changed frequently. Once the material changes, the image presented in the visual inspection system will be different, and the most obvious change is the change in the brightness of the image. Once the brightness of the image changes, the operator is required to stop the machine and adjust the detection threshold of the visual inspection system according to the brightness value to re-acquire the required target area. However, this will inevitably increase the frequency of equipment downtime and affect the production efficiency of the battery. In addition, there may be mistakes or errors in the manual adjustment of the detection threshold, causing the risk of large-scale scrapping of products. Summary of the invention

[0003] The present application provides an automatic target area acquisition method and a visual detection method.

[0004] The present application provides a method for acquiring a target area, and the method for acquiring a target area includes: S1: acquiring images of the target area and the background; S2: acquiring a reference brightness of the image, and determining a detection threshold based on the reference brightness of the image; S3: selecting an area in the image whose brightness is greater than the detection threshold; S4: acquiring the reference brightness of the area; S5: calculating a new detection threshold based on the reference brightness of the area and the reference brightness of the image; S6: acquiring a new area based on the new detection threshold.

[0005] Furthermore, the method for acquiring the target area includes: repeating S4 to S6.

[0006] Furthermore, the reference brightness is an average value or a median value of the brightness of multiple points in the image.

[0007] Furthermore, the multiple points are points in the background image.

[0008] Furthermore, a new detection threshold is calculated based on the reference brightness of the area and the reference brightness of the image, including: calculating the difference between the reference brightness of the area and the reference brightness of the image; obtaining an adjustment coefficient, performing a product calculation on the difference and the adjustment coefficient to obtain an adjusted brightness; performing a difference calculation on the reference brightness of the area and the adjusted brightness to obtain a new detection threshold.

[0009] Furthermore, the detection threshold in S3 is greater than the reference brightness of the image.

[0010] Furthermore, the new detection threshold is greater than the previous detection threshold.

[0011] The present application also provides a visual inspection method, which includes: acquiring a target area finally obtained by the target area acquisition method as described above; and performing defect detection on the target area.

[0012] The present application also provides a method for acquiring a target area, and the method for acquiring a target area includes: S1': acquiring images of the target area and the background; S2': acquiring the reference brightness of the image, and determining a detection threshold based on the reference brightness of the image; S3': selecting an area in the image whose brightness is less than the detection threshold; S4': acquiring the reference brightness of the area; S5': calculating a new detection threshold based on the reference brightness of the area and the reference brightness of the image; S6': acquiring a new area based on the new detection threshold.

[0013] Further, repeat S4' to S6'

[0014] The target area acquisition method of the present application can adjust the detection threshold automatically according to the difference of the objects to be detected, so as to obtain the area to be detected and detect the area to be detected. It is suitable for the detection of products of different models, and can avoid increasing the frequency of equipment shutdown due to adjusting the detection threshold. At the same time, it does not require manual operation, thereby reducing manufacturing costs and improving production efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] Figure 1 A schematic diagram of a flow chart of an embodiment of a method for acquiring a target area of ​​the present application;

[0016] Figure 2 A schematic diagram of the image of this application;

[0017] Figure 3 A schematic diagram of a process for obtaining a reference brightness of the image for the present application;

[0018] Figure 4 A schematic diagram of the process for calculating a new detection threshold for this application;

[0019] Figure 5 A schematic diagram of a flow chart of an embodiment of the visual inspection method of the present application;

[0020] Figure 6 This is a flow chart of another embodiment of the method for acquiring a target area of ​​the present application. DETAILED DESCRIPTION

[0021] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, equivalent numbers in different drawings represent equivalent or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Instead, they are merely examples of devices consistent with some aspects of the present application as detailed in the appended claims.

[0022] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. Unless otherwise defined, the technical terms or scientific terms used in this application should be understood by people with ordinary skills in the field to which the invention belongs. The words "first", "second" and similar words used in this application specification and claims do not indicate any order, quantity or importance, but are only used to distinguish different components. Similarly, words such as "one" or "one" do not indicate a quantitative limit, but indicate that there is at least one. "Multiple" or "several" means two or more. Words such as "include" or "include" mean that the elements or objects appearing in front of "include" or "include" include the elements or objects listed after "include" or "include" and their equivalents, and do not exclude other elements or objects. Words such as "connect" or "connected" are not limited to physical or mechanical connections, and can include electrical connections, whether direct or indirect. The singular forms of "one", "said" and "the" used in this application specification and the attached claims are also intended to include plural forms unless the context clearly indicates other meanings. It should also be understood that the term "and / or" used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.

[0023] This application provides a method for acquiring a target area, which is used to acquire the area to be detected, so as to further detect parameters such as the size and surface flatness of the material, for example, to detect the tabs, pole pieces, sealants, protective glue and other materials in the battery material. Figure 1 In this embodiment, the method for acquiring the target area is used to detect the tab with higher brightness, which includes:

[0024] Step S1: Acquire images of the target area and background.

[0025] like Figure 2As shown, optionally, image A is acquired through the image of a visual inspection system. In this embodiment, the component corresponding to the target area is the tab. The captured image includes an image A1 of the tab and a background image A2. The background image A2 is, for example, an image of a roller, and the roller is used to convey the battery material. The color of the roller is more different from the color of the tab, and is easier to identify. The visual inspection system is, for example, a CCD (Charge-coupled Device) inspection system or a CMOS (Compementary Metal Oxide Semiconductor) inspection system.

[0026] In addition, “acquisition” can also be understood as the processing module of the visual inspection system receiving the image it has captured from the image acquisition module.

[0027] Step S2: Obtain a reference brightness V1 of the image, and determine a detection threshold th1 according to the reference brightness V1 of the image.

[0028] The reference brightness can be the average value, the middle value (one or more values ​​after removing the maximum and minimum values) or the median of the brightness of multiple points, or it can be a value between the maximum and minimum values. Of course, different values ​​are selected as the reference brightness of the image, and the subsequent steps (such as S4) have different requirements for the computing power of the processor. Generally speaking, selecting the average value as the reference brightness has lower processing power requirements and will not mistakenly omit the image of the pole ear. It should be noted that the reference brightness can be determined by the brightness of image A, that is, the multiple points are points on the entire image A; the reference brightness can also be determined by the brightness of the background image A2, that is, the multiple points are only points on the background image A2.

[0029] Optionally, the image is processed by a processing module of a visual inspection system to obtain the brightness of multiple points in the image, and the brightness of the multiple points is averaged. It is understandable that the average value can be one of a geometric mean, an arithmetic mean, a weighted mean, a harmonic mean, and a square mean. For a black and white image, the brightness of the image can be characterized by grayscale, so the grayscale of multiple points in the image can be obtained first, and then the brightness of each point can be obtained by the grayscale of each point.

[0030] Please combine Figure 3 , obtaining a reference brightness of the image, further comprising:

[0031] Sub-step S21: obtaining the grayscale of multiple points in the image. The grayscale can be obtained by identifying the image through a processing module.

[0032] Sub-step S22: Obtain the brightness of each point according to the grayscale of each point.

[0033] Sub-step S23: determining a reference brightness according to the brightness of the plurality of points. The reference brightness is calculated as described above.

[0034] In this embodiment, since the brightness of the tab is relatively high, the detection threshold th1 can be set to a value greater than the reference brightness, for example, 1.3*V1≤th1≤1.5*V1. Since the brightness of the tab is relatively high, a value greater than the reference brightness can be selected to obtain the final detection threshold more quickly, so as to obtain the target area as early as possible, while also reducing the requirements on the computing power of the processing module.

[0035] Step S3: Selecting a region in the image whose brightness is greater than a detection threshold th1.

[0036] The entire image area is screened to select the area with brightness greater than the detection threshold th1. The area here is still a large area, which includes the image of the material and the image of the part of the background with higher brightness.

[0037] Step S4: Obtain the reference brightness V2 of the area.

[0038] The meaning of the reference brightness is similar to the reference brightness in step S2. Although the specific values ​​are different, the value-taking methods of the two are consistent. For example, the values ​​of both are the average value of the brightness of multiple points. The only difference is that the multiple points in the former are multiple points on the selected area, and the multiple points in the latter are multiple points on the image.

[0039] Step S5: Calculate a new detection threshold th2 according to the reference brightness V2 of the region and the reference brightness V1 of the image.

[0040] Please combine Figure 4 In this embodiment, step S5 includes:

[0041] Sub-step S51: Calculate the difference |V2-V1| between the reference brightness V2 of the region and the reference brightness V1 of the image.

[0042] Sub-step S52: Obtain adjustment coefficient k, perform product calculation on the difference |V2-V1| and the adjustment coefficient k, and obtain adjustment brightness k*|V2-V1|. It should be noted that in this application, the difference is the absolute value of the result of the difference calculation.

[0043] Sub-step S53: Perform difference calculation on the reference brightness V2 and the adjusted brightness k*|V2-V1| of the target area to obtain a detection threshold th2, that is, th2=V2- k*|V2-V1|.

[0044] The adjustment coefficient k is a proportional factor that can be adjusted according to the actual situation on site, and is usually in the range of 0.4 to 0.6. The adjustment coefficient k can be pre-stored in the memory of the device and called in sub-step S52.

[0045] Step S6: Acquire a new area according to the new detection threshold.

[0046] The new area is smaller than the previous area and closer to the image of the pole ear, and the background area it contains is also smaller. Under the premise that the detection accuracy requirement is not high, the area selected in step S6 can be considered as the final target area, that is, the detection method of the target area includes steps S1-S6. When the detection accuracy requirement is high, steps S4-S6 can be repeated, and "repeat" can be understood as a single repetition or multiple repetitions. Taking a single repetition as an example, after a single repetition of steps S4-S6, the final target area is infinitely close to the image of the pole ear, that is, the area to be detected.

[0047] Repeat step S4: obtain the reference brightness V3 of the new area.

[0048] The process of obtaining the reference brightness is similar to step S2 and step S4, and will not be repeated here.

[0049] Repeat step S5: calculate a new detection threshold th3 according to the reference brightness of the new area and the reference brightness of the current area.

[0050] The calculation process of th3 is similar to step S5, that is, th3 = V3- k*|V3-V2|.

[0051] Repeat step S6: obtain a new area according to the new detection threshold.

[0052] The repeated steps S4-S6 are substantially the same as steps S4-S6, with only a slight difference in the expression.

[0053] It should be noted that, in this embodiment, the current detection threshold is greater than the previous detection threshold, and the detection threshold gradually approaches the actual brightness of the tab; the current target area is smaller than the previous target area and is closer to the image of the tab.

[0054] In addition, the present application also provides a visual detection method, which is based on the aforementioned method for obtaining the target area. Figure 5 , visual inspection methods include:

[0055] Step S10: Acquire the target area finally obtained by the aforementioned target area acquisition method.

[0056] The target area finally obtained is the area obtained in step S6, or the area obtained after repeating steps S3 to S6.

[0057] Step S20: performing defect detection on the target area.

[0058] Optionally, the target area is calculated and processed by a processing module, so as to detect parameters such as the size and surface flatness of the material.

[0059] On the other hand, this application also provides another method for obtaining the target area, which is used to detect materials with lower brightness, such as pole pieces. Figure 6 The method for acquiring the target area of ​​this embodiment includes:

[0060] S1': Acquire images of the target area and background;

[0061] S2': obtaining a reference brightness of the image, and determining a detection threshold according to the reference brightness of the image;

[0062] S3': Selecting an area in the image with a brightness lower than a detection threshold;

[0063] S4': Get the reference brightness of the area;

[0064] S5': Calculate a new detection threshold according to the reference brightness of the region and the reference brightness of the image;

[0065] S6': Acquire a new area according to the new detection threshold.

[0066] Under the premise that the detection accuracy requirement is not high, the area obtained in step S6' can be considered as the final target area; when the detection accuracy requirement is high, steps S4' to S6' can be repeated, and "repeat" can be understood as a single repetition or multiple repetitions. Taking multiple repetitions as an example, after multiple repetitions of steps S4' to S6', the final area obtained is infinitely close to the image of the pole piece, that is, the area to be detected.

[0067] Since the brightness of the pole piece is relatively low, an area smaller than the detection threshold is selected as the target area, which is also the difference between the method for obtaining the target area of ​​this embodiment and the aforementioned embodiment.

[0068] The target area acquisition method of the present application can adjust the detection threshold automatically according to the difference of the objects to be detected, so as to obtain the area to be detected and detect the area to be detected. It is suitable for the detection of products of different models, and can avoid increasing the frequency of equipment shutdown due to adjusting the detection threshold. At the same time, it does not require manual operation, thereby reducing manufacturing costs and improving production efficiency.

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

Claims

1. A method for acquiring a target area, characterized in that: The method for acquiring the target area includes: S1: Acquire images of the target area and background; S2: Obtaining a reference brightness of the image, and determining a detection threshold according to the reference brightness of the image; S3: Selecting an area in the image whose brightness is greater than a detection threshold; the detection threshold is greater than a reference brightness of the image; S4: Obtaining a reference brightness of the area; S5: Calculating a new detection threshold according to the reference brightness of the area and the reference brightness of the image: including: Calculating a difference between a reference brightness of the area and a reference brightness of the image; Obtaining an adjustment coefficient, performing a product calculation on the difference and the adjustment coefficient to obtain an adjusted brightness; Performing difference calculation on the reference brightness and the adjusted brightness of the area to obtain a new detection threshold; S6: Acquire a new area according to the new detection threshold.

2. The method for acquiring a target area according to claim 1, wherein: The method for acquiring the target area includes: repeating S4 to S6.

3. The method for acquiring a target area according to claim 1, wherein: The reference brightness is an average value or a median value of brightness of a plurality of points in the image.

4. The method for acquiring a target area according to claim 3, wherein: The plurality of points are points in the image of the background.

5. The method for acquiring a target area according to claim 1, wherein: The new detection threshold is greater than the previous detection threshold.

6. A visual inspection method, characterized in that: The visual detection method comprises: Acquire a target area finally obtained by the target area acquisition method according to any one of claims 1 to 5; A defect detection is performed on the target area.