CN114926463B - Production quality detection method suitable for chip circuit board - Google Patents

Production quality detection method suitable for chip circuit board Download PDF

Info

Publication number
CN114926463B
CN114926463B CN202210850832.7A CN202210850832A CN114926463B CN 114926463 B CN114926463 B CN 114926463B CN 202210850832 A CN202210850832 A CN 202210850832A CN 114926463 B CN114926463 B CN 114926463B
Authority
CN
China
Prior art keywords
gray level
gradient
point
detected
obtaining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210850832.7A
Other languages
Chinese (zh)
Other versions
CN114926463A (en
Inventor
程伟
杨丽丹
杨顺作
杨丽香
杨金燕
杨丽霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Junwei Shichuang Electronics Co ltd
Original Assignee
Shenzhen Yintaiming Electronic Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Yintaiming Electronic Co ltd filed Critical Shenzhen Yintaiming Electronic Co ltd
Priority to CN202210850832.7A priority Critical patent/CN114926463B/en
Publication of CN114926463A publication Critical patent/CN114926463A/en
Application granted granted Critical
Publication of CN114926463B publication Critical patent/CN114926463B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/20Special algorithmic details
    • G06T2207/20081Training; Learning
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30141Printed circuit board [PCB]
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Image Analysis (AREA)
  • Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)

Abstract

The invention relates to the technical field of image processing, in particular to a production quality detection method suitable for a chip circuit board. The method obtains a gray level histogram of the welding spot image, and obtains a plurality of gray level categories according to the distribution of gray levels in the gray level histogram and the corresponding frequency. Obtaining a reference gradient according to a gradient histogram corresponding to the gray level category, screening edge points from pixel points corresponding to the reference gradient, further obtaining a region surrounded by edge lines, obtaining a minimum external square of the region, performing superpixel segmentation on the welding spot image by taking the size of the minimum external square as a reference size, and detecting a defect superpixel block according to an average pixel value of the segmented superpixel block. The invention segments the welding spot image in the chip circuit board by self-adaptively acquiring the size of the superpixel block, thereby realizing accurate quality detection.

Description

Production quality detection method suitable for chip circuit board
Technical Field
The invention relates to the technical field of image processing, in particular to a production quality detection method suitable for a chip circuit board.
Background
The core component of the electronic cigarette is a chip circuit board, and the production process of the chip circuit board comprises various processes, wherein electronic components such as an LED lamp, a switch and a battery need to be welded in the circuit board through a welding process. Can lead to appearing welding defect because of the influence of welding process and environment in welding process, wherein wave soldering tin hole defect can lead to components and parts and circuit board welding not thorough to form the hidden danger of opening circuit or short circuit, influence electron cigarette chip quality, consequently the production process at the chip is essential to welding defect's detection.
Because the welding defect position has larger visual difference with the normal welding position, the characteristics of the image can be extracted through the computer vision technology, and the normal welding area and the defect welding area are divided according to the image characteristics. The segmentation method commonly used in the prior art is a superpixel segmentation method, the size of a segmentation area needs to be preset in the superpixel segmentation method, and the segmentation parameters cannot be adjusted in a self-adaptive manner for different images, so that the segmentation effect is uneven, and the detection and evaluation of the welding quality are influenced.
Disclosure of Invention
In order to solve the above technical problems, an object of the present invention is to provide a method for detecting production quality of a chip circuit board, which adopts the following technical solutions:
the invention provides a production quality detection method suitable for a chip circuit board, which comprises the following steps:
obtaining a welding spot image of the chip circuit board; obtaining a gray level histogram of the welding spot image;
taking the gray level with continuity in the gray histogram as a classifiable gray level; obtaining a grouping index according to a first frequency difference between the classifiable gray level and an adjacent gray level, and if the grouping index is greater than a preset index threshold, classifying the classifiable gray level and the adjacent gray level into one class to obtain a plurality of gray level classes;
obtaining a gradient histogram of a pixel point corresponding to each gray level category; selecting a reference gradient according to the gradient value and the second frequency in the gradient histogram; taking pixel points corresponding to the reference gradients of the gray level categories as points to be detected; obtaining the gradient distribution of other pixel points in the neighborhood range of the point to be detected, which are in the same gray level category as the point to be detected, and screening out edge points from the point to be detected according to the gradient distribution, wherein the edge points form edge lines; acquiring a minimum external square of an area surrounded by each edge line in the welding spot image, and taking the size of the minimum external square as a reference size;
performing superpixel segmentation on the welding spot image according to the reference size to obtain a plurality of superpixel blocks; screening out a defective super pixel block according to the average pixel value in each super pixel block; and acquiring the defect position and the defect degree according to the position and the number of the defect super-pixel blocks.
Further, the obtaining of the solder joint image of the chip circuit board comprises:
the method comprises the steps of collecting a surface image of a chip circuit board, inputting the surface image into a pre-trained welding spot area segmentation network, and obtaining the welding spot image.
Further, the regarding the continuous gray level in the gray histogram as a classifiable gray level includes:
obtaining the number of other cylinders in a preset neighborhood range of the cylinder corresponding to each gray level in the gray level histogram; and if the number of the pillars is larger than a preset pillar number threshold value, the corresponding gray level is considered to have continuity.
Further, the obtaining a grouping indicator according to the first frequency difference between the classifiable gray level and the adjacent gray level comprises:
obtaining the grouping indicator according to a grouping indicator formula, the grouping indicator formula comprising:
Figure 641819DEST_PATH_IMAGE002
wherein the content of the first and second substances,
Figure DEST_PATH_IMAGE003
for the purpose of the grouping indicator,
Figure 969376DEST_PATH_IMAGE004
is an exponential function with a natural constant as the base,
Figure DEST_PATH_IMAGE005
is as follows
Figure 351816DEST_PATH_IMAGE006
A first frequency count corresponding to each gray level,
Figure DEST_PATH_IMAGE007
a first frequency count corresponding to said adjacent gray levels,
Figure 640715DEST_PATH_IMAGE008
the number of columns.
Further, the selecting a reference gradient according to the gradient value and the second frequency in the gradient histogram includes:
counting all gradient levels with the second frequency in the gradient histogram to obtain an average gradient; counting all the second frequency numbers in the gradient histogram to obtain an average frequency number; taking a gradient level that is greater than the average gradient and a second frequency that is less than the average frequency as the reference gradient.
Further, the obtaining of the gradient distribution of other pixel points in the neighborhood range of the point to be detected and in the same gray level category as the point to be detected, and the screening of the edge points in the point to be detected according to the gradient distribution includes:
counting all straight lines passing through the points to be detected in the neighborhood range of the points to be detected;
if the gradient difference between one point on the straight line and the point to be detected is smaller than a preset gradient threshold value and the point to be detected are in the same gray level category, the point is considered to be a gradient similar point of the point to be detected;
counting the number of the gradient similar points on each straight line, and if the number of the gradient similar points is greater than a preset number threshold, considering the corresponding straight line as a small segment edge line;
and if the small section of edge line exists in the neighborhood range of the point to be detected, the point to be detected is considered as the edge point.
Further, said screening out defective super pixel blocks according to the average pixel value in each super pixel block comprises:
and taking the K superpixels with the minimum average pixel value as the defect superpixel blocks, wherein K is a positive integer.
The invention has the following beneficial effects:
according to the embodiment of the invention, the gray level classes are obtained by performing rough classification according to the distribution of the gray levels in the gray level histogram. And further selecting a proper gradient value as a reference gradient according to the gradient histogram in the gray level class. And obtaining edge points according to the gradient distribution in the neighborhood range of the pixel points corresponding to the reference gradient, and further obtaining a plurality of edge areas. The reference size is selected through the edge area, the situation that the segmentation effect is poor due to improper selection of the size when the superpixel is segmented is avoided, the defect information can be rapidly and accurately screened out by using the pixel values in the superpixel blocks, and accurate and rapid production quality detection of the chip circuit board is achieved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions and advantages of the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and other drawings can be obtained by those skilled in the art without creative efforts.
FIG. 1 is a flow chart of a method for detecting the production quality of a chip circuit board according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a solder joint image according to an embodiment of the present invention.
Detailed Description
To further illustrate the technical means and effects of the present invention adopted to achieve the predetermined objects, the following detailed description of the method for detecting the production quality of a chip circuit board according to the present invention with reference to the accompanying drawings and preferred embodiments shows the following detailed descriptions of the specific implementation, structure, features and effects thereof. In the following description, different "one embodiment" or "another embodiment" refers to not necessarily the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
The following describes a specific scheme of the production quality detection method for the chip circuit board provided by the invention in detail with reference to the accompanying drawings.
Referring to fig. 1, a flow chart of a method for detecting production quality of a chip circuit board according to an embodiment of the present invention is shown, the method including:
step S1: obtaining a welding spot image of the chip circuit board; and obtaining a gray level histogram of the welding spot image.
In the embodiment of the invention, the chip circuit board after being welded is horizontally placed on the detection table, the camera is deployed to collect the surface image of the chip circuit board from right above, and the surface image is subjected to noise reduction by using a Gaussian filtering algorithm in consideration of the influence of noise in the image collection and image transmission processes.
In the surface image, other image information than the solder points is present, for example, a plate material, an electronic component, and the like. In order to perform targeted detection on the welding spot defects, after the surface image is obtained, the surface image is input into a pre-trained welding spot area segmentation network to obtain the welding spot image. It should be noted that the welding spot area segmentation network is a common semantic segmentation network, and the specific training method and implementation means are technical means well known to those skilled in the art, and only the network is briefly described here:
(1) the image containing the welding spot area is used as training data. And marking the pixels of the welding spot area as 1 and marking other pixels as 0 to obtain the label data.
(2) The semantic segmentation network adopts an encoding-decoding structure, and the training data and the label data are input into the network after being normalized. The semantic segmentation encoder is used for extracting the characteristics of input data to obtain a characteristic diagram. And the semantic segmentation decoder performs sampling transformation on the feature map and outputs a semantic segmentation result.
(3) And training the network by adopting a cross entropy loss function.
The abscissa of the gray level histogram is the gray level, and the ordinate is the frequency of occurrence of the corresponding gray level in the image. The gray level histogram can be used for representing the gray level distribution in the welding spot image. It should be noted that the method for obtaining the gray level histogram is a technical means well known to those skilled in the art, and is not described herein.
Step S2: taking the gray level with continuity in the gray histogram as a classifiable gray level; and if the grouping index is greater than a preset index threshold value, the classifiable gray level and the adjacent gray level are classified into one class, and a plurality of gray level classes are obtained.
The gray histogram can represent gray distribution in an image, for super-pixel segmentation, pixel points with similar pixel values are essentially segmented into a region, and if the size of a super-pixel block is too large, a defect region and a normal region in the image are not effectively segmented; if the size of the super pixel blocks is too small, the edge fitting degree between the super pixel blocks is poor, the boundaries are not clear, and the defect identification accuracy is influenced. Therefore, in step S2, the gray levels are initially classified roughly by considering the gray values and distribution characteristics of the pixels, and multiple gray level categories are obtained for processing in the subsequent steps.
In the gray level classification process, the gray levels with similar gray level sizes need to be considered as one class, if a certain gray level in the gray level histogram has continuity, that is, a plurality of other gray level distributions exist in the neighborhood range, it is indicated that a gray level with a similar size to the gray level exists, and the gray level can be used for classification analysis. Therefore, the method for specifically judging the continuity of the gray levels by taking the gray levels with continuity in the gray histogram as classifiable gray levels comprises the following steps:
each cylinder in the gray level histogram corresponds to a gray level, and if no cylinder exists at a position corresponding to the gray level, it indicates that the pixel point distribution of the gray level does not exist in the image. And obtaining the number of the other cylinders in the preset neighborhood range of the cylinder corresponding to each gray level in the gray level histogram, wherein the larger the number of the cylinders is, the more the gray levels similar to the gray level are, and the better the continuity of the gray level is. And if the number of the cylinders is larger than a preset cylinder number threshold value, the corresponding gray level is considered to have continuity.
In the embodiment of the present invention, the radius of the neighborhood range of the gray scale is set to 5, i.e. the neighborhood range is (a-5, a +5), where a is the size of the target gray scale. The cylinder number threshold is set to 0, i.e. in the embodiment of the present invention, it is considered that only other gray levels exist in the neighborhood of the target gray level, which indicates that continuity exists in the target gray level.
The gradable gray level represents that the corresponding gray level can be combined with other adjacent gray levels, the frequency difference between the two gray levels is also required to be considered during combination, and the smaller the frequency difference is, the closer the information content of the pixel points corresponding to the two gray levels in the image is, the more the pixel points are classified into one type of pixels. Referring to fig. 2, a schematic diagram of a solder joint image according to an embodiment of the invention is shown, where the arrow in fig. 2 indicates a location of a tin void defect. As can be seen from fig. 2, a plurality of area distributions with the same pixel value exist in the welding spot image, and the purpose of classification is to consider that the pixels with similar gray levels and the same frequency are the same type of pixels. For example, the gray levels of different regions of normal categories in the welding spot image have similarity and a large amount of information, and the regions can be classified into one category by classification, and the defect regions are similar. The method for obtaining the grouping index according to the first frequency difference between the classifiable gray level and the adjacent gray level comprises the following steps:
obtaining a grouping index according to a grouping index formula, wherein the grouping index formula comprises the following components:
Figure 679078DEST_PATH_IMAGE002
wherein the content of the first and second substances,
Figure 750939DEST_PATH_IMAGE003
as an index of the grouping,
Figure 191148DEST_PATH_IMAGE004
is an exponential function with a natural constant as the base,
Figure 323052DEST_PATH_IMAGE005
is as follows
Figure 851641DEST_PATH_IMAGE006
A first frequency count corresponding to each gray level,
Figure 727193DEST_PATH_IMAGE007
a first frequency count corresponding to adjacent gray levels,
Figure 21908DEST_PATH_IMAGE008
the number of columns.
According to the grouping index formula, if the continuity of the target gray level is strong and the frequency difference between the target gray level and the adjacent gray level is small, it indicates that the two gray levels are more likely to be pixels of the same type. If the grouping index is larger than the preset index threshold, the classifiable gray level and the adjacent gray level are classified into one class, and a plurality of gray level classes can be obtained through continuous classification.
Step S3: obtaining a gradient histogram of a pixel point corresponding to each gray level category; selecting a reference gradient according to the gradient value and the second frequency in the gradient histogram; taking pixel points corresponding to the reference gradients of the gray level categories as points to be detected; obtaining the gradient distribution of other pixel points in the neighborhood range of the point to be detected and in the same gray level category as the point to be detected, and screening out edge points from the point to be detected according to the gradient distribution, wherein the edge points form edge lines; and acquiring a minimum external square of an area surrounded by each edge line in the welding spot image, and taking the size of the minimum external square as a reference size.
Since the classification in step S2 is a coarse classification, the region of the image formed by the pixel points corresponding to each gray level category is not a valid region, and there may be sub-regions formed by different edges in the region. Since embodiments of the present invention aim to provide a method for adaptively obtaining the super-pixel block size in a solder joint image, all edges and their constituent regions in the image need to be obtained for subsequent screening of the super-pixel block size.
The most obvious characteristic of the edge is that the gradient is larger, in the welding spot image, the edge information is information with less information quantity and more obvious gradient amplitude, a gradient histogram of a pixel point corresponding to each gray level category is obtained, and the information in the gradient histogram can represent the size and distribution of the gradient, so that the reference gradient can be selected according to the gradient value in the gradient histogram and the corresponding second frequency. Considering the reference gradient as the gradient corresponding to the edge point, the edge analysis can be performed on the pixel point corresponding to the reference gradient to determine whether the pixel point is the edge point, wherein the specific method for acquiring the reference gradient comprises:
and counting all gradient levels with the second frequency in the gradient histogram to obtain an average gradient. And counting all the second frequency numbers in the gradient histogram to obtain the average frequency number. The gradient level where the gradient level is greater than the average gradient and the second frequency is less than the average frequency is used as the reference gradient.
The pixel points corresponding to the reference gradients in the gray level categories are used as the points to be detected, and because the embodiment of the invention hopes to find the edge points capable of forming a complete edge, when the points to be detected are screened, the gradient distribution of other pixel points in the neighborhood range of the points to be detected needs to be considered, namely, the more similar the gradient distribution is to the points to be detected, the easier the edge line is formed, and the more the points to be detected are required edge points. Specifically, the method for obtaining the gradient distribution of other pixel points in the neighborhood range of the point to be detected and in the same gray level category as the point to be detected and screening the edge point from the point to be detected according to the gradient distribution comprises the following steps:
and counting all straight lines passing through the points to be detected in the neighborhood range of the points to be detected. If the gradient difference between one point on the straight line and the point to be detected is smaller than the preset gradient threshold value and the point to be detected are in the same gray level class, the point is considered to be the gradient similar point of the point to be detected. And counting the number of the gradient similar points on each straight line, and if the number of the gradient similar points is greater than a preset number threshold, considering the corresponding straight line as a small section edge line. And if the small section of edge line exists in the neighborhood range of the point to be detected, the point to be detected is considered as an edge point.
In the embodiment of the present invention, the size of the neighborhood range to be detected is set to 5 × 5, that is, the length of each straight line is 5 pixels, the gradient threshold is set to 5, and the number threshold is set to 3.
The continuous edge points can form a complete edge line, the minimum external square of the area surrounded by each edge line in the welding spot image is obtained, and the size of the minimum external square is used as the reference size.
Step S4: performing superpixel segmentation on the welding spot image according to the reference size to obtain a plurality of superpixel blocks; screening out a defective super pixel block according to the average pixel value in each super pixel block; and acquiring the defect position and the defect degree according to the position and the number of the defect super-pixel blocks.
The reference size is size information obtained in a self-adaptive mode according to pixel distribution in the welding spot image, and the defect that the size is too large or too small cannot exist when the welding spot image is subjected to superpixel segmentation according to the reference size. It should be noted that performing superpixel segmentation according to the reference size is a well-known technical means for those skilled in the art, and the detailed description of the segmentation process is omitted.
The welding spot image can obtain a plurality of superpixel blocks after superpixel segmentation, the pixel information in each superpixel block is similar, because the tin hole defect is obvious black in the image and presents more obvious pixel difference with other areas, therefore can screen out the defective superpixel block according to the average pixel value of each superpixel block, specifically include: and taking K superpixel blocks with the minimum average pixel value as defect superpixel blocks, wherein K is a positive integer. In the present example, K is 5.
The defect can be positioned according to the position of the defect super-pixel block, and the number of the defect super-pixel blocks can obtain the defect degree, namely the larger the number is, the larger the defect degree is. Can provide the reference for the staff through defect position and defect degree in production quality testing process, the staff can be according to defect information to the technology investigation, improves the yields of product.
In summary, the embodiment of the present invention obtains the gray histogram of the welding spot image, and obtains a plurality of gray level categories according to the distribution of the gray levels in the gray histogram and the corresponding frequency. Obtaining a reference gradient according to a gradient histogram corresponding to the gray level category, screening edge points from pixel points corresponding to the reference gradient, further obtaining a region surrounded by edge lines, obtaining a minimum external square of the region, performing superpixel segmentation on the welding spot image by taking the size of the minimum external square as a reference size, and detecting a defect superpixel block according to an average pixel value of the segmented superpixel block. The embodiment of the invention can segment the welding spot image in the chip circuit board by adaptively acquiring the size of the superpixel block, thereby realizing accurate quality detection.
It should be noted that: the precedence order of the above embodiments of the present invention is only for description, and does not represent the merits of the embodiments. The processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments.
The above description is only for the purpose of illustrating the preferred embodiments of the present invention and is not to be construed as limiting the invention, and any modifications, equivalents, improvements and the like that fall within the spirit and principle of the present invention are intended to be included therein.

Claims (7)

1. A production quality detection method suitable for a chip circuit board is characterized by comprising the following steps:
obtaining a welding spot image of the chip circuit board; obtaining a gray level histogram of the welding spot image;
taking the gray level with continuity in the gray histogram as a classifiable gray level; obtaining a grouping index according to a first frequency difference between the classifiable gray level and an adjacent gray level, and if the grouping index is greater than a preset index threshold, classifying the classifiable gray level and the adjacent gray level into one class to obtain a plurality of gray level classes;
obtaining a gradient histogram of a pixel point corresponding to each gray level category; selecting a reference gradient according to the gradient value and the second frequency in the gradient histogram; taking pixel points corresponding to the reference gradients of the gray level categories as points to be detected; obtaining the gradient distribution of other pixel points in the neighborhood range of the point to be detected, which are in the same gray level category as the point to be detected, and screening out edge points from the point to be detected according to the gradient distribution, wherein the edge points form edge lines; acquiring a minimum external square of an area surrounded by each edge line in the welding spot image, and taking the size of the minimum external square as a reference size;
performing superpixel segmentation on the welding spot image according to the reference size to obtain a plurality of superpixel blocks; screening out a defective super pixel block according to the average pixel value in each super pixel block; and acquiring the defect position and the defect degree according to the position and the number of the defect super-pixel blocks.
2. The method for inspecting the production quality of the chip circuit board according to claim 1, wherein the obtaining the solder joint image of the chip circuit board comprises:
the method comprises the steps of collecting a surface image of a chip circuit board, inputting the surface image into a pre-trained welding spot area segmentation network, and obtaining the welding spot image.
3. The method according to claim 1, wherein said regarding the continuous gray level in the gray histogram as a classifiable gray level comprises:
obtaining the number of other cylinders in a preset neighborhood range of the cylinder corresponding to each gray level in the gray level histogram; and if the number of the pillars is larger than a preset pillar number threshold value, the corresponding gray level is considered to have continuity.
4. The method of claim 3, wherein the obtaining the grouping indicator according to the first frequency difference between the classifiable gray level and the adjacent gray level comprises:
obtaining the grouping indicator according to a grouping indicator formula, the grouping indicator formula comprising:
Figure DEST_PATH_IMAGE001
wherein the content of the first and second substances,
Figure 157447DEST_PATH_IMAGE002
for the purpose of the grouping indicator,
Figure 904823DEST_PATH_IMAGE003
is an exponential function with a natural constant as the base,
Figure 115224DEST_PATH_IMAGE004
is as follows
Figure 530025DEST_PATH_IMAGE005
A first frequency number corresponding to each gray level,
Figure 269311DEST_PATH_IMAGE006
a first frequency count corresponding to said adjacent gray levels,
Figure 766633DEST_PATH_IMAGE007
the number of columns.
5. The method of claim 1, wherein selecting the reference gradient according to the gradient value and the second frequency in the histogram of gradients comprises:
counting all gradient levels with the second frequency in the gradient histogram to obtain an average gradient; counting all the second frequency numbers existing in the gradient histogram to obtain an average frequency number; taking a gradient level that is greater than the average gradient and a second frequency that is less than the average frequency as the reference gradient.
6. The method according to claim 1, wherein the obtaining of the gradient distribution of other pixel points in the neighborhood of the point to be detected and in the same gray level category as the point to be detected, and the screening of the edge points from the points to be detected according to the gradient distribution comprises:
counting all straight lines passing through the point to be detected in the neighborhood range of the point to be detected;
if the gradient difference between one point on the straight line and the point to be detected is smaller than a preset gradient threshold value and the point to be detected are in the same gray level category, the point is considered to be a gradient similar point of the point to be detected;
counting the number of the gradient similar points on each straight line, and if the number of the gradient similar points is greater than a preset number threshold, considering the corresponding straight line as a small segment edge line;
and if the small section of edge line exists in the neighborhood range of the point to be detected, the point to be detected is considered as the edge point.
7. The method of claim 1, wherein said screening out defective superpixel blocks based on the average pixel value in each superpixel block comprises:
and taking K superpixel blocks with the minimum average pixel value as the defect superpixel blocks, wherein K is a positive integer.
CN202210850832.7A 2022-07-20 2022-07-20 Production quality detection method suitable for chip circuit board Active CN114926463B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210850832.7A CN114926463B (en) 2022-07-20 2022-07-20 Production quality detection method suitable for chip circuit board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210850832.7A CN114926463B (en) 2022-07-20 2022-07-20 Production quality detection method suitable for chip circuit board

Publications (2)

Publication Number Publication Date
CN114926463A CN114926463A (en) 2022-08-19
CN114926463B true CN114926463B (en) 2022-09-27

Family

ID=82815613

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210850832.7A Active CN114926463B (en) 2022-07-20 2022-07-20 Production quality detection method suitable for chip circuit board

Country Status (1)

Country Link
CN (1) CN114926463B (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115082484B (en) * 2022-08-23 2022-11-04 山东光岳九州半导体科技有限公司 Automatic semiconductor partitioning method based on image processing
CN115100202B (en) * 2022-08-25 2022-11-11 聊城市宏伟电器有限公司 Cable quality detection method based on image processing
CN115165899B (en) * 2022-09-02 2022-12-09 扬州中科半导体照明有限公司 LED chip welding quality detection method adopting optical means
CN115311479B (en) * 2022-09-30 2022-12-23 南通鑫生派智能科技有限公司 Automobile workpiece assembly image recognition method and system
CN115311301B (en) * 2022-10-12 2023-04-14 江苏银生新能源科技有限公司 PCB welding spot defect detection method
CN115598025B (en) * 2022-12-13 2023-03-10 四川亿欣新材料有限公司 Image processing method and calcium carbonate powder quality inspection system using same
CN116993717B (en) * 2023-09-25 2024-02-13 深圳市五轮科技股份有限公司 Visual detection method for production quality of heating wire of electronic cigarette
CN117635604B (en) * 2024-01-23 2024-04-05 华航检测认证(青岛)有限公司 Method for detecting welding quality of constructional engineering steel structure
CN118071748B (en) * 2024-04-19 2024-06-21 西安国创电子股份有限公司 Intelligent detection method for quality of welding spots on surface of integrated circuit board

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710425A (en) * 2009-12-25 2010-05-19 南京航空航天大学 Self-adaptive pre-segmentation method based on gray scale and gradient of image and gray scale statistic histogram
CN105404847A (en) * 2014-09-16 2016-03-16 北京计算机技术及应用研究所 Real-time detection method for object left behind
CN107169953A (en) * 2017-04-07 2017-09-15 西安电子科技大学 Bridge concrete surface crack detection method based on HOG features
CN110363730A (en) * 2019-07-11 2019-10-22 太原科技大学 A kind of adaptive superpixel segmentation method based on color histogram peak value
CN112785608A (en) * 2021-02-09 2021-05-11 哈尔滨理工大学 Medical image segmentation method for improving SNIC (single noise integrated circuit) based on adaptive parameters
CN113327272A (en) * 2021-05-28 2021-08-31 北京理工大学重庆创新中心 Robustness long-time tracking method based on correlation filtering
CN113705371A (en) * 2021-08-10 2021-11-26 武汉理工大学 Method and device for segmenting aquatic visual scene
CN113781402A (en) * 2021-08-19 2021-12-10 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Method and device for detecting chip surface scratch defects and computer equipment

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20090003698A1 (en) * 2007-04-26 2009-01-01 Heligon Limited Segmentaton of digital images
CA2975035C (en) * 2015-03-20 2023-08-22 Ventana Medical Systems, Inc. System and method for image segmentation

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101710425A (en) * 2009-12-25 2010-05-19 南京航空航天大学 Self-adaptive pre-segmentation method based on gray scale and gradient of image and gray scale statistic histogram
CN105404847A (en) * 2014-09-16 2016-03-16 北京计算机技术及应用研究所 Real-time detection method for object left behind
CN107169953A (en) * 2017-04-07 2017-09-15 西安电子科技大学 Bridge concrete surface crack detection method based on HOG features
CN110363730A (en) * 2019-07-11 2019-10-22 太原科技大学 A kind of adaptive superpixel segmentation method based on color histogram peak value
CN112785608A (en) * 2021-02-09 2021-05-11 哈尔滨理工大学 Medical image segmentation method for improving SNIC (single noise integrated circuit) based on adaptive parameters
CN113327272A (en) * 2021-05-28 2021-08-31 北京理工大学重庆创新中心 Robustness long-time tracking method based on correlation filtering
CN113705371A (en) * 2021-08-10 2021-11-26 武汉理工大学 Method and device for segmenting aquatic visual scene
CN113781402A (en) * 2021-08-19 2021-12-10 中国电子产品可靠性与环境试验研究所((工业和信息化部电子第五研究所)(中国赛宝实验室)) Method and device for detecting chip surface scratch defects and computer equipment

Non-Patent Citations (6)

* Cited by examiner, † Cited by third party
Title
A Survey on Segmentation Techniques for Image Processing;Wala’a N. Jasim 等;《Iraqi Journal for Electrical and Electronic Engineering》;20211231;第17卷(第1期);73-93 *
Image segmentation based on gray level and local relative entropy two dimensional histogram;Wei Yang 等;《PLOS ONE》;20200303;1-9 *
Image Segmentation Methods Based on Superpixel Techniques: A Survey;Abdelhameed Ibrahim 等;《Journal of Computer Science and Information Systems》;20201031;第1卷(第6期);1-10 *
一种改进超像素融合的图像分割方法;余洪山 等;《湖南大学学报(自然科学版)》;20181031;第45卷(第10期);121-129 *
基于自适应超像素分割的点刻式DPM区域定位算法研究;王娟 等;《自动化学报》;20150531;第41卷(第5期);991-1003 *
平均灰度级一梯度二维直方图最大相关阈值分割;吴一全 等;《小型微型计算机系统》;20090831;第30卷(第8期);1675-1679 *

Also Published As

Publication number Publication date
CN114926463A (en) 2022-08-19

Similar Documents

Publication Publication Date Title
CN114926463B (en) Production quality detection method suitable for chip circuit board
CN115601364B (en) Golden finger circuit board detection method based on image analysis
CN105510348A (en) Flaw detection method and device of printed circuit board and detection equipment
CN114782329A (en) Bearing defect damage degree evaluation method and system based on image processing
CN115311484B (en) Optimized clustering segmentation method for weld data
CN115100191A (en) Metal casting defect identification method based on industrial detection
CN111242899A (en) Image-based flaw detection method and computer-readable storage medium
CN111860176B (en) Non-metal inclusion full-view-field quantitative statistical distribution characterization method
CN110175614A (en) A kind of detection method of printed circuit board via hole inner wall quality
CN115294114A (en) Quality detection method based on ECU circuit welding
CN113609984A (en) Pointer instrument reading identification method and device and electronic equipment
CN115841488A (en) Hole checking method of PCB (printed Circuit Board) based on computer vision
CN117094975A (en) Method and device for detecting surface defects of steel and electronic equipment
CN116703909A (en) Intelligent detection method for production quality of power adapter
CN115266732A (en) Carbon fiber tow defect detection method based on machine vision
CN117237747B (en) Hardware defect classification and identification method based on artificial intelligence
CN113674260A (en) SMT welding spot defect detection method
CN116363136B (en) On-line screening method and system for automatic production of motor vehicle parts
CN112669272A (en) AOI rapid detection method and rapid detection system
CN116977230A (en) Scanning electron microscope image optimization enhancement method
JP5257063B2 (en) Defect detection method and defect detection apparatus
CN111724375A (en) Screen detection method and system
CN105868680A (en) Channel logo classification method and apparatus
CN114627113B (en) Method, system, device and medium for detecting defects of printed circuit board
CN109615630A (en) Semi-continuous casting alusil alloy Analysis on Microstructure method based on image processing techniques

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20231018

Address after: 518000 1321, block B, Fenghui times technology center, Shijia community, Matian street, Guangming District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Chengcheng High Tech Co.,Ltd.

Address before: 518000 801, 575 Gushu 1st Road, guxing community, Xixiang street, Bao'an District, Shenzhen City, Guangdong Province

Patentee before: Shenzhen yintaiming Electronic Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20240226

Address after: 518000, 3rd Floor, South Zone, Zhaoheng Industrial Park, Tianliao Community, Gongming Street, Guangming New District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Junwei Shichuang Electronics Co.,Ltd.

Country or region after: China

Address before: 518000 1321, block B, Fenghui times technology center, Shijia community, Matian street, Guangming District, Shenzhen, Guangdong Province

Patentee before: Shenzhen Chengcheng High Tech Co.,Ltd.

Country or region before: China