Search

CN-122016867-A - Quality detection method and device for circuit board, electronic equipment and storage medium

CN122016867ACN 122016867 ACN122016867 ACN 122016867ACN-122016867-A

Abstract

The embodiment of the application discloses a quality detection method and device of a circuit board, electronic equipment and a storage medium, and belongs to the technical field of quality detection processing. The method comprises the steps of performing stray light removal processing on an initial irradiation image to obtain an illumination correction image, performing color channel separation processing on the illumination correction image to obtain a plurality of characteristic channel diagrams, determining a first weight of a spraying area according to the light source color of a target light source, determining a second weight of a non-spraying area according to the circuit board color of a circuit board to be detected, fusing the characteristic channel diagrams according to the first weight and the second weight to obtain an enhanced irradiation image corresponding to the initial irradiation image, determining a target spraying-forbidden area in the enhanced irradiation image according to a template spraying-forbidden area image, and determining a quality detection result of the circuit board to be detected in the target color light area from the target spraying-forbidden area. The application can improve the accuracy of the quality detection result of the PCB.

Inventors

  • CHEN JINMING

Assignees

  • 深圳个元科技有限公司

Dates

Publication Date
20260512
Application Date
20260116

Claims (10)

  1. 1. A method for quality inspection of a circuit board, comprising: Acquiring an initial irradiation image of a circuit board to be detected, which is obtained under irradiation of a target light source, and acquiring a template spraying-forbidden area image corresponding to the circuit board to be detected; carrying out stray light removal treatment on the initial irradiation image to obtain an illumination correction image, wherein the illumination correction image comprises a spraying area sprayed with photo-curing glue and a non-spraying area; Performing color channel separation processing on the illumination correction image to obtain a plurality of characteristic channel diagrams, determining a first weight of the spraying area according to the light source color of the target light source, and determining a second weight of the non-spraying area according to the circuit board color of the circuit board to be detected; Fusing a plurality of characteristic channel diagrams according to the first weight and the second weight to obtain an enhanced irradiation image corresponding to the initial irradiation image; determining a target spray-forbidden region in the enhanced irradiation image according to the template spray-forbidden region image, and determining a target color light region from the target spray-forbidden region; and comparing the target color light region with a preset region threshold value to obtain a quality detection result of the circuit board to be detected.
  2. 2. The method for detecting the quality of a circuit board according to claim 1, wherein the performing stray light removal processing on the initial irradiation image to obtain an illumination correction image includes: Carrying out Gaussian blur processing on the initial illumination image to obtain a Gaussian blur image, and determining a pixel ratio corresponding to each pixel according to the ratio between the Gaussian blur image and the pixel value of the pixel of the initial illumination image at the corresponding position; Comparing each pixel ratio with a preset pixel range to obtain a comparison result, and determining a stray light influence area of the initial irradiation image according to the comparison result; and carrying out stray light removal processing on the stray light influence area of the initial irradiation image to obtain an illumination correction image.
  3. 3. The method for detecting the quality of a circuit board according to claim 2, wherein comparing each pixel ratio with a preset pixel range to obtain a comparison result, and determining the stray light influence area of the initial irradiation image according to the comparison result comprises: acquiring the irradiation intensity of the target light source, and determining a first preset pixel range and a second preset pixel range according to the irradiation intensity; Determining a light-emitting area from the Gaussian blur image, comparing each pixel ratio with the first preset pixel range to obtain a first comparison result if the area of the light-emitting area is equal to or larger than a preset area threshold, and determining a stray light influence area of the initial irradiation image according to the first comparison result; And if the area of the light-emitting area is smaller than a preset area threshold, comparing each pixel ratio with a second preset pixel range to obtain a second comparison result, and determining a stray light influence area of the initial irradiation image according to the second comparison result.
  4. 4. The method for detecting the quality of a circuit board according to claim 3, wherein if the area of the light emitting area is smaller than a preset area threshold, comparing each pixel ratio with the second preset pixel range to obtain a second comparison result, and determining the stray light influence area of the initial irradiation image according to the second comparison result, includes: if the area of the light-emitting area is smaller than a preset area threshold, acquiring a center pixel ratio corresponding to an area center pixel of the light-emitting area and an edge pixel ratio of an area edge pixel corresponding to the light-emitting area; calculating the ratio difference between the central pixel ratio and the edge pixel ratio, comparing each pixel ratio with a second preset pixel range to obtain a second comparison result, and determining the stray light influence area of the initial irradiation image according to the second comparison result if the ratio difference is equal to or larger than a preset ratio threshold.
  5. 5. The method according to claim 1, wherein determining the first weight of the sprayed area according to the light source color of the target light source and determining the second weight of the non-sprayed area according to the circuit board color of the circuit board to be detected comprises: Acquiring first color information representing a light source color of the target light source and an irradiation intensity of the target light source; Determining a first weight of the spraying area according to the first color information and the irradiation intensity; obtaining second color information representing the color of the circuit board to be detected, and comparing preset color thresholds corresponding to the second color information to obtain color shade information of the second color information; And determining a second weight of the non-spraying area according to the second color information and the color shade information.
  6. 6. The method according to claim 1, wherein the determining the target blowout prevention area in the enhanced illumination image from the template blowout prevention area image includes: Determining a first characteristic point from a plurality of first corner points of the template spraying forbidden region image, and determining a second characteristic point matched with the characteristic of the first characteristic point from a plurality of second corner points of the enhanced irradiation image; Aligning the template spray-forbidden region image and the enhanced irradiation image according to the first characteristic points and the second characteristic points; determining a template spray-forbidden region from the template spray-forbidden region image, and determining a target spray-forbidden region of the enhanced irradiation image from the aligned enhanced irradiation image according to the template spray-forbidden region.
  7. 7. The method for detecting the quality of a circuit board according to claim 1, wherein comparing the target color light region with a preset region threshold value to obtain a quality detection result of the circuit board to be detected comprises: If the target color light area is equal to or larger than a preset area threshold value, obtaining a quality detection result representing that the circuit board to be detected is unqualified; And if the target color light area is smaller than a preset area threshold value, obtaining a quality detection result representing that the circuit board to be detected is qualified.
  8. 8. A quality inspection device for a circuit board, comprising: The acquisition module is used for acquiring an initial irradiation image of the circuit board to be detected, which is obtained under the irradiation of the target light source, and acquiring a template spraying-forbidden area image corresponding to the circuit board to be detected; The illumination correction image determining module is used for carrying out stray light removal processing on the initial irradiation image to obtain an illumination correction image, and the illumination correction image comprises a spraying area sprayed with photo-curing glue and a non-spraying area; The weight determining module is used for carrying out color channel separation processing on the illumination correction image to obtain a plurality of characteristic channel diagrams, determining a first weight of the spraying area according to the light source color of the target light source, and determining a second weight of the non-spraying area according to the circuit board color of the circuit board to be detected; the enhanced irradiation image determining module is used for fusing a plurality of characteristic channel diagrams according to the first weight and the second weight to obtain an enhanced irradiation image corresponding to the initial irradiation image; The image alignment module is used for determining a target spray-forbidden region in the enhanced irradiation image according to the template spray-forbidden region image and determining a target color light region from the target spray-forbidden region; And the target quality detection module is used for comparing the target color light region with a preset region threshold value to obtain a quality detection result of the circuit board to be detected.
  9. 9. An electronic device comprising a memory storing a computer program and a processor that when executing the computer program implements the method of quality inspection of a circuit board according to any one of claims 1 to 7.
  10. 10. A computer-readable storage medium storing a computer program, characterized in that the computer program, when executed by a processor, implements the quality detection method of a circuit board according to any one of claims 1 to 7.

Description

Quality detection method and device for circuit board, electronic equipment and storage medium Technical Field The present application relates to the field of quality detection processing technologies, and in particular, to a quality detection method and apparatus for a circuit board, an electronic device, and a storage medium. Background With the rapid development of the electronic information industry, the integration level of printed circuit boards (Printed Circuit Board, PCB boards) is continuously improved, the density of components is continuously increased, and the requirements on the precision of the assembly process are more severe. Ultraviolet curing glue (UV-curableadhesive, UV glue) is an important material for fixing and insulating protection of electronic components, and the spraying quality of the ultraviolet curing glue is directly related to the electrical performance and service life of a product. In addition, if UV glue is sprayed on the spraying-forbidden areas (such as golden fingers, test points, connector contacts, etc.) in the PCB board, electrical contact is hindered, signal transmission is affected, test or assembly is disturbed, and the function is disabled or the reliability is reduced, so that spraying is forbidden. In the related art, an irradiation image is obtained by irradiating a Printed Circuit Board (PCB) sprayed with UV glue through an ultraviolet lamp, and the irradiation image is compared with a UV glue luminous template image to detect the quality of the PCB. However, the spraying forms of the UV glue are different, and free spraying areas exist besides the spraying forbidden area and the spraying necessary area, so that the UV glue luminous template cannot cover all spraying conditions, and the accuracy of the quality detection result of the related technology on the PCB board is poor. Disclosure of Invention The embodiment of the application provides a quality detection method and device of a circuit board, electronic equipment and a storage medium, which can improve the accuracy of a quality detection result of the PCB. In order to achieve the above object, an aspect of an embodiment of the present application provides a quality detection method for a circuit board, including: Acquiring an initial irradiation image of the circuit board to be detected, which is obtained under the irradiation of a target light source, and acquiring a template spraying-forbidden area image corresponding to the circuit board to be detected; carrying out stray light removal treatment on the initial irradiation image to obtain an illumination correction image, wherein the illumination correction image comprises a spraying area sprayed with photo-curing glue and a non-spraying area; Performing color channel separation processing on the illumination correction image to obtain a plurality of characteristic channel diagrams, determining a first weight of a spraying area according to the light source color of a target light source, and determining a second weight of a non-spraying area according to the circuit board color of a circuit board to be detected; Fusing a plurality of characteristic channel graphs according to the first weight and the second weight to obtain an enhanced illumination image corresponding to the initial illumination image; determining a target spray-forbidden region in the enhanced irradiation image according to the template spray-forbidden region image, and determining a target color light region from the target spray-forbidden region; And comparing the target color light region with a preset region threshold value to obtain a quality detection result of the circuit board to be detected. In some embodiments, stray light removal processing is performed on the initial illumination image to obtain an illumination correction image, including: Carrying out Gaussian blur processing on the initial illumination image to obtain a Gaussian blur image, and determining a pixel ratio corresponding to each pixel according to the ratio between the Gaussian blur image and the pixel value of the pixel of the initial illumination image at the corresponding position; comparing each pixel ratio with a preset pixel range to obtain a comparison result, and determining a stray light influence area of the initial irradiation image according to the comparison result; and carrying out stray light removal processing on the stray light influence area of the initial irradiation image to obtain an illumination correction image. In some embodiments, comparing each pixel ratio with a preset pixel range to obtain a comparison result, and determining a stray light influence area of the initial irradiation image according to the comparison result includes: acquiring the irradiation intensity of a target light source, and determining a first preset pixel range and a second preset pixel range according to the irradiation intensity; Determining a light-emitting area from the Gaussian blurred image, compar