Search

CN-115760683-B - Color grading method and device for battery piece, electronic equipment and computer medium

CN115760683BCN 115760683 BCN115760683 BCN 115760683BCN-115760683-B

Abstract

The embodiment of the invention provides a method, a device, electronic equipment and a computer readable storage medium for grading the colors of battery pieces, and relates to the technical field of new energy, wherein the method comprises the steps of obtaining hue parameters, saturation parameters and brightness parameters of the battery pieces to be detected in an HSV color space; the method comprises the steps of determining a first color level of a battery piece to be detected according to a tone parameter, a saturation parameter and a brightness parameter of a middle area of the battery piece to be detected, determining a second color level of the battery piece to be detected according to target color parameters of an edge area and the middle area, wherein the target color parameter is one of the tone parameter, the saturation parameter and the brightness parameter, obtaining an optical path parameter of a central area of the battery piece to be detected, determining a third color level of the battery piece to be detected, and determining a 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. The embodiment of the invention improves the accuracy of detecting the color of the battery piece.

Inventors

  • KANG JIKAI
  • YANG YAN
  • SUN FEILONG
  • JIANG XIAN
  • LI HUA

Assignees

  • 泰州隆基乐叶光伏科技有限公司

Dates

Publication Date
20260508
Application Date
20220922

Claims (10)

  1. 1. A method of color grading a battery cell, comprising: Acquiring tone parameters, saturation parameters and brightness parameters of a battery piece to be detected in an HSV color space; Determining a first color level of the battery piece to be detected according to the tone parameter, the saturation parameter and the brightness parameter of the middle area of the battery piece to be detected; Determining a second color level of the battery piece to be detected according to target color parameters of an edge area and a middle area, wherein the target color parameter is one of the tone parameter, the saturation parameter and the brightness parameter, the edge area comprises a border partition and a corner partition, determining a second candidate color level corresponding to the border partition by adopting the target color parameter of the middle area and the target color parameter of the border partition, determining a third candidate color level corresponding to the corner partition by adopting the target color parameter of the middle area and the target color parameter of the corner partition, determining a fourth candidate color level corresponding to the corner partition by adopting the target color parameter of the corner partition, and taking the minimum level of the second candidate color level, the third candidate color level and the fourth candidate color level as the second color level of the battery piece; Acquiring an optical path parameter of a central area of the battery piece to be detected, and determining a third color level of the battery piece to be detected; and taking the smallest level of the first color level, the second color level and the third color level as the final color level of the battery piece.
  2. 2. The method for classifying colors of battery pieces according to claim 1, wherein the obtaining hue parameter, saturation parameter and brightness parameter of the battery piece to be detected in HSV color space includes: Respectively carrying out image acquisition on the battery piece to be detected under red light, green light and blue light to obtain images corresponding to the battery piece to be detected in the red light, the green light and the blue light, and obtaining red light parameters according to the images corresponding to the red light of the battery piece to be detected, obtaining green light parameters according to the images corresponding to the green light and obtaining blue light parameters according to the images corresponding to the blue light; And acquiring the tone parameter, the saturation parameter and the brightness parameter of the battery piece to be detected in the HSV color space according to the corresponding relation among the tone parameter, the saturation parameter and the brightness parameter, the red light parameter, the green light parameter and the blue light parameter.
  3. 3. The method for color grading a battery according to claim 1, wherein the determining the first color grade of the battery to be detected according to the hue parameter, the saturation parameter, and the brightness parameter of the middle area of the battery to be detected comprises: Determining first candidate color levels corresponding to the tone parameter, the saturation parameter and the brightness parameter respectively; and taking the minimum level in each first candidate color level as the first color level of the battery piece to be detected.
  4. 4. The method of claim 3, wherein determining the first candidate color levels to which the hue parameter, the saturation parameter, and the brightness parameter correspond respectively comprises: and matching the tone parameter, the saturation parameter and the brightness parameter with threshold ranges corresponding to preset color levels respectively to obtain first candidate color levels corresponding to the tone parameter, the saturation parameter and the brightness parameter respectively.
  5. 5. The method of claim 1, wherein the edge section comprises a plurality of first sub-sections and the corner section comprises a plurality of second sub-sections; Determining a second candidate color level corresponding to the edge partition and a third candidate color level corresponding to the corner partition based on the target color parameter of the middle area, including: Acquiring first candidate target color parameters corresponding to the first subareas respectively and second candidate target color parameters corresponding to the second subareas respectively; Calculating the difference values of the first candidate target color parameters and the target color parameters of the middle area respectively to obtain a plurality of first difference values, and calculating the difference values of the second candidate target color parameters and the target color parameters of the middle area respectively to obtain a plurality of second difference values; taking the maximum value of the first difference values as a target color parameter of the edge partition, and matching the target color parameter of the edge partition with a threshold range corresponding to a preset color level to obtain a second candidate color level corresponding to the edge partition; And taking the maximum value of the plurality of second difference values as a first target color parameter of the corner partition, and matching the first target color parameter of the corner partition with a threshold range corresponding to the color level to obtain a third candidate color level corresponding to the corner partition.
  6. 6. The method for color grading a battery according to claim 1 or 5, wherein the determining the fourth candidate color level corresponding to the corner partition includes: Performing difference calculation on each two second candidate target color parameters in the acquired plurality of second candidate target color parameters to obtain a plurality of third difference values; taking the maximum value of the third differences as a second target color parameter of the corner partition; And matching the second target color parameter of the corner partition with a threshold range corresponding to a preset color level to obtain a fourth candidate color level corresponding to the corner partition.
  7. 7. The method for grading a color of a battery piece according to claim 1, wherein the obtaining the optical path parameter of the central area of the battery piece to be detected, and determining the third color grade of the battery piece to be detected, comprises: Acquiring an optical path parameter of the central area; and matching the optical path parameters with a threshold range corresponding to a preset optical path level to obtain a third color level of the battery piece.
  8. 8. A device for classifying colors of battery cells, the device comprising: the acquisition module is used for acquiring the tone parameter, the saturation parameter and the brightness parameter of the battery piece to be detected in the HSV color space; The first determining module is connected with the acquiring module and is used for determining a first color level of the battery piece to be detected according to the hue parameter, the saturation parameter and the brightness parameter of the middle area of the battery piece to be detected, which are acquired by the acquiring module; the second determining module is connected with the acquiring module and is used for determining a second color level of the battery piece to be detected according to target color parameters of the edge area and the middle area, wherein the target color parameter is one of the tone parameter, the saturation parameter and the brightness parameter acquired by the acquiring module; the third determining module is connected with the acquiring module and is used for acquiring the optical path parameters of the central area of the battery piece to be detected and determining a third color level of the battery piece to be detected; the fourth determining module is connected with the first determining module, the second determining module and the third determining module and is used for taking the minimum level of the first color level, the second color level and the third color level as the final color level of the battery piece; the edge area comprises a side line partition and a corner partition; the second determining module includes: a third determining submodule, configured to determine a second candidate color level corresponding to the edge partition by using the target color parameter of the middle area and the target color parameter of the edge partition, and determine a third candidate color level corresponding to the corner partition by using the target color parameter of the middle area and the target color parameter of the corner partition; a fourth determining sub-module, configured to determine a fourth candidate color level corresponding to the corner partition using the target color parameter of the corner partition; and a fifth determining sub-module, configured to take a minimum level of the second candidate color level, the third candidate color level, and the fourth candidate color level as a second color level of the battery piece.
  9. 9. An electronic device comprising a processor, a memory and a computer program stored on the memory and capable of running on the processor, the computer program when executed by the processor implementing the steps of the method for color grading a battery cell according to any of claims 1-7.
  10. 10. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, which when executed by a processor, implements the steps of the method for color grading a battery cell according to any one of claims 1-7.

Description

Color grading method and device for battery piece, electronic equipment and computer medium Technical Field The present invention relates to the field of new energy technologies, and in particular, to a method for classifying colors of a battery, a device for classifying colors of a battery, an electronic device, and a computer-readable storage medium. Background Solar energy is used as a reliable clean energy source, and renewable and pollution-free characteristics of the solar energy can effectively replace fossil fuels which are widely used at present. The photovoltaic module panel can effectively utilize solar energy, and is mainly composed of solar cells. The difference of the appearance film color of the component plate is mainly determined by a film coating process of the battery piece. The control of the process in mass production cannot be absolutely accurate, various intra-chip and inter-chip chromatic aberration battery pieces can appear in the production process, and if the battery pieces cannot be effectively sorted, the appearance quality of the finished component products can be greatly influenced. Therefore, as a final process of solar cell production, the test sorting stage requires efficient color sorting of the cells. The current color sorting method is to photograph the battery pieces through a color sorter, obtain the overall average Hue (Hue) value of the battery pieces through a software algorithm, and then sort through setting different color Hue value intervals. This method has the following problems: 1) The Hue value cannot fully feed back the actual color condition of the battery piece; 2) Through Hue value sorting, the detection and distinction of chromatic aberration among the battery pieces has quite large limitation, the problem of chromatic aberration in the battery pieces cannot be detected at all, and due to the influence of coating uniformity, the chromatic aberration in the battery pieces can interfere the accuracy of Hue average values of the battery pieces, hidden danger is brought to the colors of finished products of the assembly, and the color grouping accuracy is low. Disclosure of Invention In view of the above problems, embodiments of the present invention have been made to provide a color grading method of a battery piece, a color grading apparatus of a battery piece, an electronic device, and a computer-readable storage medium that overcome or at least partially solve the above problems. In order to solve the above problems, an embodiment of the present invention discloses a method for grading a color of a battery sheet, the method comprising: Acquiring tone parameters, saturation parameters and brightness parameters of a battery piece to be detected in an HSV color space; Determining a first color level of the battery piece to be detected according to the tone parameter, the saturation parameter and the brightness parameter of the middle area of the battery piece to be detected; Determining a second color level of the battery piece to be detected according to target color parameters of an edge area and a middle area, wherein the target color parameter is one of the tone parameter, the saturation parameter and the brightness parameter; Acquiring an optical path parameter of a central area of the battery piece to be detected, and determining a third color level of the battery piece to be detected; and determining a 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. Optionally, the obtaining the hue parameter, the saturation parameter and the brightness parameter of the battery piece to be detected in the HSV color space includes: Respectively carrying out image acquisition on the battery piece to be detected under red light, green light and blue light to obtain images corresponding to the battery piece to be detected in the red light, the green light and the blue light, and obtaining red light parameters according to the images corresponding to the red light of the battery piece to be detected, obtaining green light parameters according to the images corresponding to the green light and obtaining blue light parameters according to the images corresponding to the blue light; And acquiring the tone parameter, the saturation parameter and the brightness parameter of the battery piece to be detected in the HSV color space according to the corresponding relation among the tone parameter, the saturation parameter and the brightness parameter, the red light parameter, the green light parameter and the blue light parameter. Optionally, the determining the first color level of the to-be-detected battery piece according to the hue parameter, the saturation parameter and the brightness parameter of the middle area of the to-be-detected battery piece includes: Determining first candidate color levels corresponding to the tone parameter, the saturation parameter and the brightness parameter r