Battery piece color grading method and device, electronic equipment and computer medium

By utilizing the hue, saturation, and brightness parameters of the solar cells in the HSV color space, combined with the color parameters of the edge, middle, and center areas, precise color grading of the solar cells was achieved, solving the problem of inaccurate color sorting in existing technologies and improving the appearance quality of the finished module.

CN115760683BActive Publication Date: 2026-05-08LONGI SOLAR TECHNOLOGY (TAIZHOU) CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
LONGI SOLAR TECHNOLOGY (TAIZHOU) CO LTD
Filing Date
2022-09-22
Publication Date
2026-05-08

AI Technical Summary

Technical Problem

Existing cell color sorting methods that rely on Hue value detection have limitations, failing to accurately reflect color differences within and between cells, resulting in low accuracy in color grouping of finished modules.

Method used

Using hue, saturation, and brightness parameters in the HSV color space, combined with color parameters for the edge, middle, and center regions, the final color level of the solar cell is determined through region division and color grading methods.

Benefits of technology

It improves the accuracy of cell color detection, enabling more precise sorting of differences and ensuring the appearance quality of the finished module.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115760683B_ABST
    Figure CN115760683B_ABST
Patent Text Reader

Abstract

Embodiments of the present application provide a battery piece color grading method and device, electronic equipment and computer readable storage medium, relating to the field of new energy technology, the method comprises: obtaining the hue parameter, saturation parameter and brightness parameter of the battery piece to be detected in the HSV color space; determining the first color level of the battery piece to be detected according to the hue parameter, saturation parameter and brightness parameter of the middle region of the battery piece to be detected; determining the second color level of the battery piece to be detected according to the target color parameter of the edge region and the middle region; wherein the target color parameter is one of the hue parameter, saturation parameter and brightness parameter; obtaining the optical path parameter of the center region of the battery piece to be detected, and determining the third color level of the battery piece to be detected; determining the final color level of the battery piece to be detected based on the first color level, the second color level and the third color level. Embodiments of the present application improve the accuracy of battery piece color detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of new energy technology, and in particular to a color grading method for battery cells, a color grading device for battery cells, an electronic device, and a computer-readable storage medium. Background Technology

[0002] Solar energy, as a reliable and clean energy source, can effectively replace the fossil fuels currently used in large quantities due to its renewable and pollution-free characteristics. Photovoltaic modules can effectively utilize solar energy, and their main component is solar cells.

[0003] The color differences in the appearance of solar modules are mainly determined by the coating process of the solar cells. In mass production, process control cannot be absolutely precise, resulting in various intra- and inter-cell color differences in solar cells. If these differences cannot be effectively sorted, they will significantly impact the appearance quality of the finished modules. Therefore, as the final step in solar cell production, the testing and sorting stage requires effective color sorting of the solar cells.

[0004] Current color sorting methods involve photographing the battery cells using a color sorting machine, obtaining the overall average Hue value of the cells through software algorithms, and then sorting them by setting different Hue value ranges. This method has the following problems:

[0005] 1) The Hue value cannot fully reflect the actual color of the solar cell;

[0006] 2) Sorting by Hue value has significant limitations in detecting and distinguishing color differences between cells, and it cannot detect color differences within cells at all. Moreover, due to the influence of coating uniformity, color differences within cells will interfere with the accuracy of the average Hue value of cells, posing a potential risk to the color of the finished module and resulting in low color grouping accuracy. Summary of the Invention

[0007] In view of the above problems, embodiments of the present invention are proposed to provide a color grading method for battery cells, a color grading device for battery cells, an electronic device, and a computer-readable storage medium to overcome or at least partially solve the above problems.

[0008] To address the aforementioned problems, this invention discloses a color grading method for battery cells, the method comprising:

[0009] Obtain the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space;

[0010] The first color level of the battery cell under test is determined based on the hue parameter, saturation parameter, and brightness parameter of the middle region of the battery cell under test.

[0011] The second color level of the battery cell to be tested is determined based on the target color parameters of the edge region and the middle region; wherein the target color parameter is one of the hue parameter, the saturation parameter, and the brightness parameter;

[0012] Obtain the optical path parameters of the central region of the solar cell to be tested, and determine the third color level of the solar cell to be tested;

[0013] The final color level of the battery cell to be tested is determined based on the first color level, the second color level, and the third color level.

[0014] Optionally, obtaining the hue, saturation, and brightness parameters of the battery cell under test in the HSV color space includes:

[0015] Images of the battery cell to be tested are acquired under red light, green light and blue light respectively, to obtain images of the battery cell to be tested under red light, green light and blue light respectively, and red light parameters are obtained from the image of the battery cell to be tested under red light, green light parameters are obtained from the image of the battery cell to be tested under green light, and blue light parameters are obtained from the image of the battery cell to be tested under blue light.

[0016] Based on the correspondence between hue, saturation, and brightness parameters and red, green, and blue light parameters, the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space are obtained.

[0017] Optionally, determining the first color level of the battery cell under test based on the hue parameter, saturation parameter, and brightness parameter of the middle region of the battery cell under test includes:

[0018] Determine the first candidate color level corresponding to the hue parameter, the saturation parameter, and the brightness parameter, respectively;

[0019] The smallest level among the first candidate color levels is taken as the first color level of the battery cell to be tested.

[0020] Optionally, determining the first candidate color level corresponding to the hue parameter, the saturation parameter, and the brightness parameter respectively includes:

[0021] The hue parameter, saturation parameter, and brightness parameter are matched with the threshold ranges corresponding to preset color levels to obtain the first candidate color levels corresponding to the hue parameter, saturation parameter, and brightness parameter, respectively.

[0022] Optionally, the edge region includes edge line partitions and corner partitions;

[0023] The step of determining the second color level of the battery cell to be tested based on the target color parameters of the edge region and the middle region includes:

[0024] Based on the target color parameters of the middle region, determine the second candidate color level corresponding to the edge partition and the third candidate color level corresponding to the corner partition;

[0025] Determine the fourth candidate color level corresponding to the corner partition;

[0026] The lowest level among the second candidate color level, the third candidate color level, and the fourth candidate color level is taken as the second color level of the battery cell.

[0027] Optionally, the edge partition includes multiple first sub-regions, and the corner partition includes multiple second sub-regions;

[0028] The step of determining the second candidate color level corresponding to the edge partition and the third candidate color level corresponding to the corner partition based on the target color parameters of the middle region includes:

[0029] Obtain the first candidate target color parameters corresponding to the plurality of first sub-regions, and the second candidate target color parameters corresponding to the plurality of second sub-regions;

[0030] Calculate the differences between the color parameters of the first candidate targets and the target color parameters of the middle region to obtain a plurality of first differences; and calculate the differences between the color parameters of the second candidate targets and the target color parameters of the middle region to obtain a plurality of second differences.

[0031] The maximum value among the plurality of first differences is taken as the target color parameter of the edge partition, and the target color parameter of the edge partition is matched with the threshold range corresponding to the preset color level to obtain the second candidate color level corresponding to the edge partition.

[0032] The maximum value among the plurality of second differences is taken as the first target color parameter of the corner partition, and the first target color parameter of the corner partition is matched with the threshold range corresponding to the color level to obtain the third candidate color level corresponding to the corner partition.

[0033] Optionally, determining the fourth candidate color level corresponding to the corner partition includes:

[0034] For each pair of second candidate target color parameters obtained from multiple second candidate target color parameters, the difference is calculated to obtain multiple third differences;

[0035] The maximum value among the plurality of third differences is used as the second target color parameter of the corner partition;

[0036] The second target color parameter of the corner partition is matched with the threshold range corresponding to the preset color level to obtain the fourth candidate color level corresponding to the corner partition.

[0037] Optionally, obtaining the optical path parameters of the central region of the solar cell under test and determining the third color level of the solar cell under test includes:

[0038] Obtain the optical path parameters of the central region;

[0039] The optical path parameter is matched with the threshold range corresponding to the preset optical path level to obtain the third color level of the solar cell.

[0040] Optionally, determining the final color level of the battery cell based on the first color level, the second color level, and the third color level includes:

[0041] The lowest of the first color level, the second color level, and the third color level is taken as the final color level of the battery cell.

[0042] Accordingly, embodiments of the present invention disclose a color grading device for battery cells, the device comprising:

[0043] The acquisition module is used to acquire the hue parameters, saturation parameters, and brightness parameters of the battery cell to be tested in the HSV color space;

[0044] A first determining module, connected to the acquiring module, is used to determine a first color level of the battery cell to be tested based on the hue parameter, saturation parameter, and brightness parameter of the middle region of the battery cell to be tested obtained by the acquiring module.

[0045] The second determining module, connected to the acquiring module, is used to determine the second color level of the battery cell to be detected based on the target color parameters of the edge region and the middle region; wherein, the target color parameter is one of the hue parameter, the saturation parameter and the brightness parameter acquired by the acquiring module;

[0046] The third determining module, connected to the acquiring module, is used to acquire the optical path parameters of the central region of the battery cell to be tested and to determine the third color level of the battery cell to be tested.

[0047] The fourth determining module, connected to the first determining module, the second determining module, and the third determining module, is used to determine the final color level of the battery cell to be tested based on the first color level, the second color level, and the third color level.

[0048] Optionally, the acquisition module includes:

[0049] The first processing submodule is used to acquire images of the battery cell to be tested under red light, green light and blue light respectively, to obtain the images of the battery cell to be tested under red light, green light and blue light respectively, and to obtain red light parameters based on the image of the battery cell to be tested under red light, green light parameters based on the image of the battery cell under green light, and blue light parameters based on the image of the battery cell under blue light.

[0050] The second processing submodule is used to obtain the hue, saturation, and brightness parameters of the cell to be tested in the HSV color space based on the correspondence between the hue, saturation, and brightness parameters and the red, green, and blue light parameters.

[0051] Optionally, the first determining module includes:

[0052] The first determining submodule is used to determine the first candidate color level corresponding to the hue parameter, the saturation parameter, and the brightness parameter, respectively.

[0053] The second determining submodule is used to take the smallest level among the first candidate color levels as the first color level of the battery cell to be tested.

[0054] Optionally, the first determining submodule is specifically used for:

[0055] The hue parameter, saturation parameter, and brightness parameter are matched with the threshold ranges corresponding to preset color levels to obtain the first candidate color levels corresponding to the hue parameter, saturation parameter, and brightness parameter, respectively.

[0056] Optionally, the edge region includes edge line partitions and corner partitions;

[0057] The second determining module includes:

[0058] The third determining submodule is used to determine the second candidate color level corresponding to the edge partition and the third candidate color level corresponding to the corner partition based on the target color parameters of the middle region.

[0059] The fourth determining submodule is used to determine the fourth candidate color level corresponding to the corner partition;

[0060] The fifth determining submodule is used to select the smallest level among the second candidate color level, the third candidate color level, and the fourth candidate color level as the second color level of the battery cell.

[0061] Optionally, the edge partition includes multiple first sub-regions, and the corner partition includes multiple second sub-regions;

[0062] The third determining submodule includes:

[0063] The acquisition submodule is used to acquire the first candidate target color parameters corresponding to the plurality of first sub-regions and the second candidate target color parameters corresponding to the plurality of second sub-regions.

[0064] The calculation submodule is used to calculate the differences between the multiple first candidate target color parameters and the target color parameters of the middle region respectively, to obtain multiple first differences, and to calculate the differences between the multiple second candidate target color parameters and the target color parameters of the middle region respectively, to obtain multiple second differences;

[0065] The third processing submodule is used to take the maximum value among the plurality of first differences as the target color parameter of the edge partition, and match the target color parameter of the edge partition with the threshold range corresponding to the preset color level to obtain the second candidate color level corresponding to the edge partition.

[0066] The fourth processing submodule is used to take the maximum value among the plurality of second differences as the first target color parameter of the corner partition, and to match the first target color parameter of the corner partition with the threshold range corresponding to the color level to obtain the third candidate color level corresponding to the corner partition.

[0067] Optionally, the fourth determining submodule is specifically used for:

[0068] For each pair of second candidate target color parameters obtained from multiple second candidate target color parameters, the difference is calculated to obtain multiple third differences;

[0069] The maximum value among the plurality of third differences is used as the second target color parameter of the corner partition;

[0070] The second target color parameter of the corner partition is matched with the threshold range corresponding to the preset color level to obtain the fourth candidate color level corresponding to the corner partition.

[0071] Optionally, the third determining module is specifically used for:

[0072] Obtain the optical path parameters of the central region;

[0073] The optical path parameter is matched with the threshold range corresponding to the preset optical path level to obtain the third color level of the solar cell.

[0074] Optionally, the fourth determining module is specifically used for:

[0075] The lowest of the first color level, the second color level, and the third color level is taken as the final color level of the battery cell.

[0076] Accordingly, this invention discloses an electronic device, including: a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various steps of the above-described battery cell color grading method embodiment.

[0077] Accordingly, this invention discloses a computer-readable storage medium storing a computer program, which, when executed by a processor, implements the various steps of the above-described battery cell color grading method embodiment.

[0078] The embodiments of the present invention have the following advantages:

[0079] The process involves acquiring the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space. Then, based on these parameters for the central region of the solar cell, a first color level is determined. A second color level is then determined based on target color parameters for the edge and central regions; the target color parameter is one of the hue, saturation, and brightness parameters. The optical path parameter for the central region of the solar cell is then acquired to determine a third color level. Finally, based on the first, second, and third color levels, the final color level of the solar cell is determined. This method divides the solar cell under test into multiple regions, grades the color of each region, and determines the final color level of the solar cell based on the color levels of each region. This region-based color grading significantly improves the accuracy of solar cell color detection. Attached Figure Description

[0080] Figure 1 This is a flowchart illustrating the steps of an embodiment of a color grading method for battery cells according to the present invention;

[0081] Figure 2 This is a schematic diagram of the region division of the battery cell of the present invention;

[0082] Figure 3 This is a structural block diagram of an embodiment of a color grading device for battery cells according to the present invention. Detailed Implementation

[0083] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, the present invention will be further described in detail below with reference to the accompanying drawings and specific embodiments.

[0084] One of the core concepts of this invention is to obtain the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space, and then determine the first color level of the solar cell under test based on the hue, saturation, and brightness parameters of the central region of the solar cell under test. A second color level is then determined based on the target color parameters of the edge and central regions; wherein the target color parameter is one of the hue, saturation, and brightness parameters. The optical path parameter of the central region of the solar cell under test is obtained to determine the third color level, and the final color level of the solar cell under test is determined based on the first, second, and third color levels. In this way, the solar cell under test is divided into multiple regions, and the color of each region is graded to obtain the color level of each region. The final color level of the solar cell under test is then determined based on the color levels of each region. This method of region division and color grading greatly improves the accuracy of solar cell color detection.

[0085] Reference Figure 1 The diagram illustrates a step flowchart of an embodiment of a color grading method for battery cells according to the present invention, which may specifically include the following steps:

[0086] Step 101: Obtain the hue, saturation, and brightness parameters of the battery cell to be tested in the HSV color space.

[0087] The HSV color space includes H (Hue), S (Saturation), and V (Value) parameters. In other words, when testing a solar cell, its hue, saturation, and value parameters can be obtained first.

[0088] In some embodiments of the present invention, obtaining the hue parameters, saturation parameters, and brightness parameters of the battery cell to be tested in the HSV color space includes:

[0089] Images of the battery cell to be tested are acquired under red light, green light and blue light respectively, to obtain images of the battery cell to be tested under red light, green light and blue light respectively, and red light parameters are obtained from the image of the battery cell to be tested under red light, green light parameters are obtained from the image of the battery cell to be tested under green light, and blue light parameters are obtained from the image of the battery cell to be tested under blue light.

[0090] Based on the correspondence between hue, saturation, and brightness parameters and red, green, and blue light parameters, the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space are obtained.

[0091] Specifically, images of the battery cell under test can be acquired using a preset R (Red), G (Green), and B (Blue) color space, where the RGB values ​​range from R (0, 255), G (0, 255), to B (0, 255). That is, by acquiring images of the battery cell under red, green, and blue light respectively, candidate images corresponding to R, G, and B can be obtained. Furthermore, red light parameters are extracted from the candidate images corresponding to R, green light parameters from the candidate images corresponding to G, and blue light parameters from the candidate images corresponding to B.

[0092] Then, based on the correspondence between the hue, saturation, and brightness parameters and the red, green, and blue light parameters, the red, green, and blue light parameters are converted into hue, saturation, and brightness parameters, respectively, thus obtaining the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space. This application includes, but is not limited to, the following formulas for converting red, green, and blue light parameters into hue, saturation, and brightness parameters:

[0093]

[0094]

[0095] V = C max .

[0096] Where R′=R / 255, G′=G / 255, B′=B / 255, C max =max(R′,G′,B′), C min =min(R′,G′,B′), Δ=C max -C min .

[0097] Step 102: Determine the first color level of the battery cell to be tested based on the hue parameter, saturation parameter, and brightness parameter of the middle region of the battery cell to be tested.

[0098] Before inspecting the battery cells to be tested, the battery cells in the image can be divided into multiple regions, such as... Figure 2 As shown, 201 is the middle region, 202 is the edge region, 203 is the corner region, and 204 is the central region. 202 and 203 can be collectively referred to as the edge regions. It is understood that the central region 204 is located within the middle region 201, and the area of ​​the middle region 201 is larger than the area of ​​the central region 204.

[0099] The edge area is the deposition area at the edge of the coating. It is thicker than the center and has a large color difference. Its width is generally set to no more than 10mm. The corner area is the area outside the coating graphite boat frame. When the coating uniformity is not ideal, its thickness is different from the center area and the thickness of each of the four corner areas. The influence on the color of the film layer is not negligible. Its width is generally set to no more than 1 / 6 of the width of the cell. The middle area is the main detection area and accounts for the largest proportion of sorting. Its width is generally set to no more than 2 / 3 of the width of the cell. In addition to HSV color detection, the optical path of the central area detection is added. The diameter of the central area is generally set to no more than 5mm.

[0100] Of course, in practical applications, the size of each area can be set according to the above requirements, or other settings can be made according to actual needs. This embodiment of the invention does not limit this.

[0101] In other words, each captured image of the battery cell includes an edge region, a middle region, and a center region. The edge region can include multiple sub-regions (denoted as the "first sub-region"), and the corner region can also include multiple sub-regions (denoted as the "second sub-region").

[0102] For example, if the battery cell has a size of 166mm×166mm, the middle area can be set as a 100×100mm rectangular area, the sub-area in the edge area can be set as a 5×150mm rectangular area, the sub-area in the corner area can be set as a 20×20mm rectangular area, and the center area can be set as a circular area with a diameter of 5mm.

[0103] It should be noted that the shape and size of each area can be set according to actual needs, and the embodiments of the present invention do not impose any restrictions on this.

[0104] Thus, after obtaining the hue, saturation, and brightness parameters of each region in the HSV color space, the first color level of the solar cell to be tested can be determined based on the hue, saturation, and brightness parameters obtained from the conversion of the intermediate region. The color level is used to characterize the uniformity of the coating; for example, the higher the color level, the higher the uniformity of the coating.

[0105] In this embodiment of the invention, determining the first color level of the battery cell under test based on the hue parameter, the saturation parameter, and the brightness parameter of the middle region of the battery cell under test includes:

[0106] Determine the first candidate color level corresponding to the hue parameter, the saturation parameter, and the brightness parameter, respectively;

[0107] The smallest of the first candidate color levels is taken as the first color level of the battery cell to be tested. Specifically, after obtaining the hue, saturation, and brightness parameters of the intermediate region, the candidate color levels corresponding to the hue, saturation, and brightness parameters (denoted as "first candidate color levels") can be determined. Then, the smallest of the first candidate color levels is taken as the first color level of the battery cell to be tested, denoted as I. L .

[0108] In this embodiment of the invention, determining the first candidate color level corresponding to the hue parameter, the saturation parameter, and the brightness parameter respectively includes:

[0109] The hue parameter, saturation parameter, and brightness parameter are matched with the threshold ranges corresponding to preset color levels to obtain the first candidate color levels corresponding to the hue parameter, saturation parameter, and brightness parameter, respectively.

[0110] Specifically, before testing the solar cells, multiple color levels can be pre-set for each parameter, with each color level having a corresponding threshold range. During testing, the hue, saturation, and brightness parameters of the middle region can be matched against their respective threshold ranges for the color levels, yielding candidate color levels (denoted as the "first candidate color level") for each parameter. The first candidate color level corresponding to H can be denoted as H0. I The first candidate color level corresponding to S can be denoted as S. I The first candidate color level corresponding to V can be denoted as V. I .

[0111] For example, H I Set four levels: S, A, B, and C. S I and VI Two levels, S and B, are set. For example, when all three parameters are S level, the first color level is I. L It is grade S; if H I S I V I When they are S, S, and B levels respectively, then the first color level I L Grade B; if H I S I V I When they are C, S, and S levels respectively, then the first color level I L Grade C, and so on.

[0112] Step 103: Determine the second color level of the battery cell to be tested based on the target color parameters of the edge region and the middle region; wherein the target color parameter is one of the hue parameter, the saturation parameter and the brightness parameter.

[0113] After obtaining the converted hue, saturation, and brightness parameters of the solar cell under test, the color level (denoted as "second color level") of the solar cell under test can be determined based on the target color parameters of the edge and middle regions. The target color parameter is one of the hue, saturation, and brightness parameters.

[0114] In this embodiment of the invention, determining the second color level of the battery cell to be tested based on the target color parameters of the edge region and the middle region includes:

[0115] Based on the target color parameters of the middle region, determine the second candidate color level corresponding to the edge partition and the third candidate color level corresponding to the corner partition.

[0116] Determine the fourth candidate color level corresponding to the corner partition.

[0117] The lowest level among the second candidate color level, the third candidate color level, and the fourth candidate color level is taken as the second color level of the battery cell.

[0118] Specifically, the target color parameters of the middle area and the target color parameters of the edge partition can be used to determine the candidate color level (denoted as "second candidate color level") of the edge partition, which is denoted as H2-Range. The target color parameters of the middle area and the target color parameters of the corner partition can be used to determine the candidate color level (denoted as "third candidate color level") of the corner partition, which is denoted as H3-Range.

[0119] Then, the target color parameters of the corner partition are used to determine the candidate color level (denoted as "fourth candidate color level") corresponding to the corner partition, denoted as H3-Range'.

[0120] The lowest level among the second, third, and fourth candidate color levels is taken as the second color level of the solar cell to be tested, denoted as B. L .

[0121] Among them, H2-Range, H3-Range, and H3-Range' can all be set to three levels: S, B, and C. When all three parameters are at level S, B... L If the value is S-level, then if any one of the three parameters is B-level, then B. L Grade B; if any one of the three parameters is Grade C, then B L Grade C, and so on.

[0122] In this embodiment of the invention, the edge partition includes a plurality of first sub-regions, and the corner partition includes a plurality of second sub-regions.

[0123] The step of determining the second candidate color level corresponding to the edge partition and the third candidate color level corresponding to the corner partition based on the target color parameters of the middle region includes:

[0124] Obtain the first candidate target color parameters corresponding to the plurality of first sub-regions, and the second candidate target color parameters corresponding to the plurality of second sub-regions.

[0125] The differences between the color parameters of the first candidate target and the target color parameters of the middle region are calculated to obtain a plurality of first differences. The differences between the color parameters of the second candidate target and the target color parameters of the middle region are calculated to obtain a plurality of second differences.

[0126] The maximum value among the plurality of first differences is used as the target color parameter of the edge partition, and the target color parameter of the edge partition is matched with the threshold range corresponding to the preset color level to obtain the second candidate color level corresponding to the edge partition.

[0127] The maximum value among the plurality of second differences is taken as the first target color parameter of the corner partition, and the first target color parameter of the corner partition is matched with the threshold range corresponding to the color level to obtain the third candidate color level corresponding to the corner partition.

[0128] Specifically, candidate target color parameters (denoted as "first candidate target color parameters") corresponding to each first sub-region and candidate target color parameters (denoted as "second candidate target color parameters") corresponding to each second sub-region can be obtained from the hue parameters, saturation parameters, and brightness parameters obtained by conversion.

[0129] Then, the difference between each first candidate target color parameter and the target color parameter of the middle region is calculated to obtain multiple differences (denoted as "first difference"). Similarly, the difference between each second candidate target color parameter and the target color parameter of the middle region is calculated to obtain multiple differences (denoted as "second difference").

[0130] The maximum value among the first differences is taken as the target color parameter of the edge partition, and the target color parameter of the edge partition is matched with the threshold range corresponding to the preset color level to obtain the candidate color level (denoted as "second candidate color level") corresponding to the edge partition, which is denoted as H2-Range.

[0131] The maximum value among the second differences is taken as the target color parameter of the corner partition, and the target color parameter of the corner partition is matched with the threshold range corresponding to the preset color level to obtain the candidate color level (denoted as "third candidate color level") corresponding to the corner partition, which is denoted as H3-Range.

[0132] In this embodiment of the invention, determining the fourth candidate color level corresponding to the corner partition includes:

[0133] For each pair of second candidate target color parameters obtained from multiple second candidate target color parameters, the difference is calculated to obtain multiple third differences;

[0134] The maximum value among the plurality of third differences is used as the second target color parameter of the corner partition;

[0135] The second target color parameter of the corner partition is matched with the threshold range corresponding to the preset color level to obtain the fourth candidate color level corresponding to the corner partition.

[0136] Specifically, when determining the corner partitions separately, the difference between any two parameters among the multiple second candidate target color parameters can be calculated to obtain multiple third differences. The maximum value among the multiple third differences is then used as the target color parameter of the corner partition (denoted as "second target color parameter"). The second target color parameter is then matched with the preset color level to obtain the color level corresponding to the corner partition (denoted as "fourth candidate color level"), denoted as H3-Range'.

[0137] For example, refer to Figure 2 The difference between any two parameters in the candidate target color parameters of the four second sub-regions is calculated to obtain six difference values. The maximum value among the six difference values ​​is then used as the candidate color level for the corner partition.

[0138] It should be noted that the order in which the color levels of H2-Range, H3-Range, and H3-Range' are determined can be adjusted according to actual needs, and this embodiment of the invention does not impose any restrictions on this.

[0139] Step 104: Obtain the optical path parameters of the central region of the solar cell to be tested, and determine the third color level of the solar cell to be tested. For the central region of the solar cell to be tested, for example, the optical path parameters of the central region can be obtained from at least one of multiple acquired images, and then the color level of the solar cell to be tested (denoted as "third color level") can be determined, denoted as O. L .

[0140] The step of obtaining the optical path parameters of the central region of the solar cell under test and determining the third color level of the solar cell under test includes:

[0141] Obtain the optical path parameters of the central region.

[0142] The optical path parameter is matched with the threshold range corresponding to the preset optical path level to obtain the third color level of the solar cell.

[0143] Specifically, the optical path parameter of the central region can be obtained from at least one of the acquired images. For example, the optical path parameter of the central region can be obtained from one of the multiple images. When obtaining the optical path parameter of the central region from multiple acquired images, the optical path parameter of the central region can also be obtained from each of the multiple images separately, and then the average value can be calculated. Of course, other methods can also be used to obtain the optical path parameter, and the embodiments of the present invention do not limit this.

[0144] Then, the optical path parameters are matched with the threshold range corresponding to the preset optical path level to obtain the color level of the cell to be tested (denoted as "third color level").

[0145] Step 105: Determine the final color level of the battery cell to be tested based on the first color level, the second color level, and the third color level.

[0146] After obtaining the first color level, the second color level, and the third color level, the final color level of the battery cell can be determined based on these three levels.

[0147] In this embodiment of the invention, determining the final color level of the battery cell based on the first color level, the second color level, and the third color level includes:

[0148] The lowest of the first color level, the second color level, and the third color level is taken as the final color level of the battery cell.

[0149] Specifically, the first color level I can be... L Second color level B L and the third color level O L The lowest level in the color hierarchy is used as the final color level; alternatively, the first color level I can be used as the final color level. L With the second color level B L The lowest level among the comparisons is selected as the candidate level, denoted as C. L Then, candidate level C L With the third color level O L The comparisons are made, and the lowest level is taken as the final color level.

[0150] Among them, I L You can set four levels: S, A, B, and C. B L Three levels can be set: S, B, and C. When I L With B L When all are S-class, C L It is at level S; if I L Grade A, Grade B L If it is level S, then C L It is level A; if I L Grade A, Grade B L If it is grade C, then C L Level C, and so on.

[0151] C L It can set four levels: S, A, B, and C, and O. L Set two levels, S and A. When C... L With O L When both parameters are S-level, the final color level is S-level; if C L Grade B, O L The initial color level is A, the final color level is B, and so on.

[0152] Furthermore, for example, the HSV values ​​range from H (0.360), S (0.1), to V (0.1). The specific level divisions and corresponding threshold ranges are as follows:

[0153] H I(220, 230) is Grade S, (180, 220) or (230, 250) is Grade A, (160, 180) or (250, 270) is Grade B, and the rest are Grade C.

[0154] S I (0.3, 0.6) are classified as Grade S, and the rest as Grade B.

[0155] V I (0.5, 0.9) are classified as Grade S, and the rest as Grade B.

[0156] H2-Range: (0, 20) is Grade S, (20, 40) is Grade B, and the rest are Grade C.

[0157] H3-Range and H3-Range': (0, 40) is Grade S, (40, 70) is Grade B, and the rest are Grade C.

[0158] O L (130, 145) are grade S, the rest are grade A.

[0159] The following are some specific examples:

[0160] For example, for solar cell A, various parameters are obtained through testing: O L :136,H I :165,S I : 0.2, V I H2-Range: 0.7, H3-Range: 30, H3-Range: 30, H3-Range': 35. Matching shows that H... I Grade B, S I Grade B, V I If it is level S, then I L The level is B. Matching shows that H2-Range is level B, H3-Range is level S, and H3-Range' is level S. Therefore, B... L It is classified as level B. Therefore, it is determined to be level C. L Grade B, while judging O L It is rated S. The overall color grade of the solar cell is rated B.

[0161] For example, for solar cell B, various parameters are obtained through testing: O L :128,H I :190,S I 0.5, V I H2-Range: 0.8, H3-Range: 10, H3-Range: 25, H3-Range': 10. Matching shows that H... I Grade A, S I Class S, Class V IIf it is level S, then I L It is level A. Matching shows that H2-Range is level S, H3-Range is level S, and H3-Range' is level S, therefore B... L It is classified as Grade S. Therefore, it is determined to be Grade C. L Grade A, while judging O L Grade A. Based on the overall assessment, the color grade of the solar cell is Grade A.

[0162] It should be noted that the specific values ​​of the above parameters can be adjusted according to actual needs, and the embodiments of the present invention do not impose any restrictions on this.

[0163] In this embodiment of the invention, the hue, saturation, and luminance parameters of the battery cell to be tested in the HSV color space are obtained. Then, based on the hue, saturation, and luminance parameters of the central region of the battery cell to be tested, a first color level of the battery cell to be tested is determined. A second color level of the battery cell to be tested is then determined based on the target color parameters of the edge and central regions. The target color parameter is one of the hue, saturation, and luminance parameters. The optical path parameter of the central region of the battery cell to be tested is obtained to determine a third color level of the battery cell to be tested. Finally, based on the first, second, and third color levels, the final color level of the battery cell to be tested is determined. In this way, the battery cell to be tested is divided into multiple regions, and the color of each region is graded to obtain the color level of each region. The final color level of the battery cell to be tested is then determined based on the color levels of each region. This method of region division and color grading greatly improves the accuracy of battery cell color detection.

[0164] It should be noted that, for the sake of simplicity, the method embodiments are all described as a series of actions. However, those skilled in the art should understand that the embodiments of the present invention are not limited to the described order of actions, because according to the embodiments of the present invention, some steps can be performed in other orders or simultaneously. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions involved are not necessarily essential to the embodiments of the present invention.

[0165] Reference Figure 3 The diagram shows a structural block diagram of an embodiment of a battery cell color detection device according to the present invention, which may specifically include the following modules:

[0166] The acquisition module 301 is used to acquire the hue parameters, saturation parameters and brightness parameters of the battery cell to be tested in the HSV color space;

[0167] The first determining module 302 is connected to the acquiring module and is used to determine the first color level of the battery cell to be tested based on the hue parameter, saturation parameter and brightness parameter of the middle region of the battery cell to be tested obtained by the acquiring module.

[0168] The second determining module 303, connected to the acquiring module, is used to determine the second color level of the battery cell to be detected based on the target color parameters of the edge region and the middle region; wherein, the target color parameter is one of the hue parameter, the saturation parameter and the brightness parameter acquired by the acquiring module;

[0169] The third determining module 304, connected to the acquisition module, is used to acquire the optical path parameters of the central region of the battery cell to be tested and to determine the third color level of the battery cell to be tested.

[0170] The fourth determining module 305 is connected to the first determining module, the second determining module, and the third determining module, and is used to determine the final color level of the battery cell to be tested based on the first color level, the second color level, and the third color level.

[0171] The acquisition module 301 interacts with the first determining module 302, the second determining module 303, and the third determining module 304. Specifically, after acquiring the hue, saturation, and brightness parameters of the solar cell to be tested, the first determining module 302 determines a first color level of the solar cell based on these parameters; the second determining module 303 determines a second color level based on one of these parameters; the third determining module 304 acquires the optical path parameter of the solar cell and determines a third color level based on it; and the fourth determining module 305 determines the final color level of the solar cell based on the first color level determined by the first determining module 302, the second color level determined by the second determining module 303, and the third color level determined by the third determining module 304.

[0172] In this embodiment of the invention, the acquisition module includes:

[0173] The first processing submodule is used to acquire images of the battery cell to be tested under red light, green light and blue light respectively, to obtain the images of the battery cell to be tested under red light, green light and blue light respectively, and to obtain red light parameters based on the image of the battery cell to be tested under red light, green light parameters based on the image of the battery cell under green light, and blue light parameters based on the image of the battery cell under blue light.

[0174] The second processing submodule is used to obtain the hue, saturation, and brightness parameters of the cell to be tested in the HSV color space based on the correspondence between the hue, saturation, and brightness parameters and the red, green, and blue light parameters.

[0175] In this embodiment of the invention, the first determining module includes:

[0176] The first determining submodule is used to determine the first candidate color level corresponding to the hue parameter, the saturation parameter, and the brightness parameter, respectively.

[0177] The second determining submodule is used to take the smallest level among the first candidate color levels as the first color level of the battery cell to be tested.

[0178] In this embodiment of the invention, the first determining submodule is specifically used for:

[0179] The hue parameter, saturation parameter, and brightness parameter are matched with the threshold ranges corresponding to preset color levels to obtain the first candidate color levels corresponding to the hue parameter, saturation parameter, and brightness parameter, respectively.

[0180] In this embodiment of the invention, the edge region includes edge line partitions and corner partitions;

[0181] The second determining module includes:

[0182] The third determining submodule is used to determine the second candidate color level corresponding to the edge partition and the third candidate color level corresponding to the corner partition based on the target color parameters of the middle region.

[0183] The fourth determining submodule is used to determine the fourth candidate color level corresponding to the corner partition;

[0184] The fifth determining submodule is used to select the smallest level among the second candidate color level, the third candidate color level, and the fourth candidate color level as the second color level of the battery cell.

[0185] In this embodiment of the invention, the edge partition includes a plurality of first sub-regions, and the corner partition includes a plurality of second sub-regions;

[0186] The third determining submodule includes:

[0187] The acquisition submodule is used to acquire the first candidate target color parameters corresponding to the plurality of first sub-regions and the second candidate target color parameters corresponding to the plurality of second sub-regions.

[0188] The calculation submodule is used to calculate the differences between the multiple first candidate target color parameters and the target color parameters of the middle region respectively, to obtain multiple first differences, and to calculate the differences between the multiple second candidate target color parameters and the target color parameters of the middle region respectively, to obtain multiple second differences;

[0189] The third processing submodule is used to take the maximum value among the plurality of first differences as the target color parameter of the edge partition, and match the target color parameter of the edge partition with the threshold range corresponding to the preset color level to obtain the second candidate color level corresponding to the edge partition.

[0190] The fourth processing submodule is used to take the maximum value among the plurality of second differences as the first target color parameter of the corner partition, and to match the first target color parameter of the corner partition with the threshold range corresponding to the color level to obtain the third candidate color level corresponding to the corner partition.

[0191] In this embodiment of the invention, the fourth determining submodule is specifically used for:

[0192] For each pair of second candidate target color parameters obtained from multiple second candidate target color parameters, the difference is calculated to obtain multiple third differences;

[0193] The maximum value among the plurality of third differences is used as the second target color parameter of the corner partition;

[0194] The second target color parameter of the corner partition is matched with the threshold range corresponding to the preset color level to obtain the fourth candidate color level corresponding to the corner partition.

[0195] In this embodiment of the invention, the third determining module is specifically used for:

[0196] Obtain the optical path parameters of the central region;

[0197] The optical path parameter is matched with the threshold range corresponding to the preset optical path level to obtain the third color level of the solar cell.

[0198] In this embodiment of the invention, the fourth determining module is specifically used for:

[0199] The lowest of the first color level, the second color level, and the third color level is taken as the final color level of the battery cell.

[0200] As the device embodiment is basically similar to the method embodiment, the description is relatively simple, and relevant parts can be found in the description of the method embodiment.

[0201] This invention also provides an electronic device, comprising:

[0202] It includes a processor, a memory, and a computer program stored in the memory and capable of running on the processor. When the computer program is executed by the processor, it implements the various processes of the above-described embodiment of the color grading method for battery cells and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0203] The aforementioned electronic devices include, but are not limited to: mobile terminals such as mobile phones, laptops, digital radio receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), and in-vehicle terminals (such as in-vehicle navigation terminals), as well as fixed terminals such as digital TVs and desktop computers.

[0204] This invention also provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the various processes of the above-described battery cell color grading method embodiments and achieves the same technical effect. To avoid repetition, it will not be described again here.

[0205] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on the differences from other embodiments. The same or similar parts between the various embodiments can be referred to each other.

[0206] Those skilled in the art will understand that embodiments of the present invention can be provided as methods, apparatus, or computer program products. Therefore, embodiments of the present invention can take the form of entirely hardware embodiments, entirely software embodiments, or embodiments combining software and hardware aspects. Furthermore, embodiments of the present invention can take the form of computer program products implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0207] This invention is described with reference to flowchart illustrations and / or block diagrams of methods, terminal devices (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing terminal device to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing terminal device, generate instructions for implementing the flowchart illustrations and / or block diagrams. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0208] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing terminal device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0209] These computer program instructions can also be loaded onto a computer or other programmable data processing terminal equipment, causing a series of operational steps to be performed on the computer or other programmable terminal equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable terminal equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0210] Although preferred embodiments of the present invention have been described, those skilled in the art, upon learning the basic inventive concept, can make other changes and modifications to these embodiments. Therefore, the appended claims are intended to be interpreted as including the preferred embodiments as well as all changes and modifications falling within the scope of the embodiments of the present invention.

[0211] Finally, it should be noted that in this document, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or terminal device that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or terminal device. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or terminal device that includes said element.

[0212] The present invention has provided a detailed description of a battery cell color detection method and a battery cell color detection device. Specific examples have been used to illustrate the principle and implementation of the present invention. The description of the above embodiments is only for the purpose of helping to understand the method and core idea of ​​the present invention. At the same time, for those skilled in the art, there will be changes in the specific implementation and application scope based on the idea of ​​the present invention. Therefore, the content of this specification should not be construed as a limitation of the present invention.

Claims

1. A method for color grading of battery cells, characterized in that, include: Obtain the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space; The first color level of the battery cell under test is determined based on the hue parameter, saturation parameter, and brightness parameter of the middle region of the battery cell under test. A second color level for the battery cell to be tested is determined based on the target color parameters of the edge region and the middle region; wherein, the target color parameter is one of the hue parameter, the saturation parameter, and the brightness parameter; the edge region includes edge line partitions and corner partitions; a second candidate color level corresponding to the edge line partition is determined using the target color parameters of the middle region and the edge line partitions, and a third candidate color level corresponding to the corner partition is determined using the target color parameters of the middle region and the corner partitions; a fourth candidate color level is determined using the target color parameters of the corner partitions; the lowest level among the second candidate color level, the third candidate color level, and the fourth candidate color level is taken as the second color level of the battery cell; Obtain the optical path parameters of the central region of the solar cell to be tested, and determine the third color level of the solar cell to be tested; The lowest of the first color level, the second color level, and the third color level is taken as the final color level of the battery cell.

2. The color grading method for battery cells according to claim 1, characterized in that, The process of obtaining the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space includes: Images of the battery cell to be tested are acquired under red light, green light and blue light respectively, to obtain images of the battery cell to be tested under red light, green light and blue light respectively, and red light parameters are obtained from the image of the battery cell to be tested under red light, green light parameters are obtained from the image of the battery cell to be tested under green light, and blue light parameters are obtained from the image of the battery cell to be tested under blue light. Based on the correspondence between hue, saturation, and brightness parameters and red, green, and blue light parameters, the hue, saturation, and brightness parameters of the solar cell under test in the HSV color space are obtained.

3. The color grading method for battery cells according to claim 1, characterized in that, Determining the first color level of the battery cell under test based on the hue parameter, saturation parameter, and brightness parameter of the middle region of the battery cell under test includes: Determine the first candidate color level corresponding to the hue parameter, the saturation parameter, and the brightness parameter, respectively; The smallest level among the first candidate color levels is taken as the first color level of the battery cell to be tested.

4. The color grading method for battery cells according to claim 3, characterized in that, Determining the first candidate color levels corresponding to the hue parameter, the saturation parameter, and the brightness parameter respectively includes: The hue parameter, saturation parameter, and brightness parameter are matched with the threshold ranges corresponding to preset color levels to obtain the first candidate color levels corresponding to the hue parameter, saturation parameter, and brightness parameter, respectively.

5. The color grading method for battery cells according to claim 1, characterized in that, The edge partition includes multiple first sub-regions, and the corner partition includes multiple second sub-regions; Determining the second candidate color level corresponding to the edge partition and the third candidate color level corresponding to the corner partition based on the target color parameters of the middle region includes: Obtain the first candidate target color parameters corresponding to the plurality of first sub-regions, and the second candidate target color parameters corresponding to the plurality of second sub-regions; Calculate the differences between the color parameters of the first candidate targets and the target color parameters of the middle region to obtain a plurality of first differences; and calculate the differences between the color parameters of the second candidate targets and the target color parameters of the middle region to obtain a plurality of second differences. The maximum value among the plurality of first differences is taken as the target color parameter of the edge partition, and the target color parameter of the edge partition is matched with the threshold range corresponding to the preset color level to obtain the second candidate color level corresponding to the edge partition. The maximum value among the plurality of second differences is taken as the first target color parameter of the corner partition, and the first target color parameter of the corner partition is matched with the threshold range corresponding to the color level to obtain the third candidate color level corresponding to the corner partition.

6. The color grading method for battery cells according to claim 1 or 5, characterized in that, Determining the fourth candidate color level corresponding to the corner partition includes: For each pair of second candidate target color parameters obtained from multiple second candidate target color parameters, the difference is calculated to obtain multiple third differences; The maximum value among the plurality of third differences is used as the second target color parameter of the corner partition; The second target color parameter of the corner partition is matched with the threshold range corresponding to the preset color level to obtain the fourth candidate color level corresponding to the corner partition.

7. The color grading method for battery cells according to claim 1, characterized in that, The step of obtaining the optical path parameters of the central region of the solar cell under test and determining the third color level of the solar cell under test includes: Obtain the optical path parameters of the central region; The optical path parameter is matched with the threshold range corresponding to the preset optical path level to obtain the third color level of the solar cell.

8. A color grading device for battery cells, characterized in that, The device includes: The acquisition module is used to acquire the hue parameters, saturation parameters, and brightness parameters of the battery cell to be tested in the HSV color space; A first determining module, connected to the acquiring module, is used to determine a first color level of the battery cell to be tested based on the hue parameter, saturation parameter, and brightness parameter of the middle region of the battery cell to be tested obtained by the acquiring module. The second determining module, connected to the acquiring module, is used to determine the second color level of the battery cell to be detected based on the target color parameters of the edge region and the middle region; wherein, the target color parameter is one of the hue parameter, the saturation parameter and the brightness parameter acquired by the acquiring module; The third determining module, connected to the acquiring module, is used to acquire the optical path parameters of the central region of the battery cell to be tested and to determine the third color level of the battery cell to be tested. The fourth determining module, connected to the first determining module, the second determining module, and the third determining module, is used to take the smallest level among the first color level, the second color level, and the third color level as the final color level of the battery cell. The edge region includes edge line partitions and corner partitions; the second determining module includes: The third determining submodule is used to determine the second candidate color level corresponding to the edge partition by using the target color parameters of the middle area and the target color parameters of the edge partition, and to determine the third candidate color level corresponding to the edge partition by using the target color parameters of the middle area and the target color parameters of the corner partition. The fourth determination submodule is used to determine the fourth candidate color level corresponding to the corner partition using the target color parameters of the corner partition; The fifth determining submodule is used to select the smallest level among the second candidate color level, the third candidate color level, and the fourth candidate color level as the second color level of the battery cell.

9. An electronic device, characterized in that, include: A processor, a memory, and a computer program stored in the memory and capable of running on the processor, wherein the computer program, when executed by the processor, implements the steps of the color grading method for battery cells as described in any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that, A computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the color grading method for battery cells as described in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Color difference sorting method and system for solar cell pieces

    CN110721928A

  • Color classification method for solar cells

    CN111127570A