[go: up one dir, main page]

CN116703921B - Method for detecting quality of surface coating of flexible circuit board - Google Patents

Method for detecting quality of surface coating of flexible circuit board Download PDF

Info

Publication number
CN116703921B
CN116703921B CN202310981608.6A CN202310981608A CN116703921B CN 116703921 B CN116703921 B CN 116703921B CN 202310981608 A CN202310981608 A CN 202310981608A CN 116703921 B CN116703921 B CN 116703921B
Authority
CN
China
Prior art keywords
gray
circuit board
image
stretching
value
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
CN202310981608.6A
Other languages
Chinese (zh)
Other versions
CN116703921A (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.)
Dongguan Yixingao Electronic Technology Co ltd
Original Assignee
Dongguan Yixingao Electronic Technology 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 Dongguan Yixingao Electronic Technology Co ltd filed Critical Dongguan Yixingao Electronic Technology Co ltd
Priority to CN202310981608.6A priority Critical patent/CN116703921B/en
Publication of CN116703921A publication Critical patent/CN116703921A/en
Application granted granted Critical
Publication of CN116703921B publication Critical patent/CN116703921B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T5/00Image enhancement or restoration
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/11Region-based segmentation
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/13Edge detection
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/10Segmentation; Edge detection
    • G06T7/136Segmentation; Edge detection involving thresholding
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; 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]

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Quality & Reliability (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, and specifically relates to a method for detecting the quality of coatings on the surface of a flexible circuit board. The grayscale image of the circuit board is grayscale stretched and the stretching rate is calculated. The grayscale image of the circuit board with the line area removed after grayscale stretching is divided into regions and the high and low gradient areas in the low grayscale area are calculated. After degree stretching, the grayscale image of the circuit board with the line area removed is subjected to logarithmic transformation to determine the best base, and then a grayscale image with obvious contrast in the defective area is obtained. The grayscale image with obvious contrast in the defective area is used for edge detection to identify defects. The present invention uses image cutting, grayscale stretching and other image processing methods to amplify the regional features that need to be detected, and reduces the impact of similar areas on the detection results, thereby improving the efficiency and accuracy of defect detection.

Description

Method for detecting quality of surface coating of flexible circuit board
Technical Field
The invention relates to the technical field of image processing, in particular to a quality detection method for a surface coating of a flexible circuit board.
Background
The flexible circuit board is a flexible electronic circuit board, and is widely applied to electronic products such as mobile phones, tablet computers, intelligent watches and the like because of the characteristics of being bendable, foldable, stretchable and the like. The surface of a flexible circuit board generally requires an electroplating process to improve its conductivity and corrosion resistance. However, the quality of the surface plating layer of the flexible circuit board is often affected by various factors such as the concentration of the plating solution, the temperature, the current density, etc., so that problems are caused in terms of the thickness, the uniformity, the adhesion, etc. of the plating layer. Therefore, the quality detection of the surface coating of the flexible circuit board is of great significance.
At present, the quality detection method of the surface coating of the flexible circuit board mainly comprises methods of manual visual inspection, microscopic observation, electron microscopic observation and the like. However, the methods have the defects of low detection efficiency, low precision, complex operation and the like, and are difficult to meet the requirements of industrial production. Therefore, the detection of the scratch defects of the plating layer on the surface of the circuit board can be achieved by combining the prior characteristics of the scratch defects and enhancing and stretching the image.
Disclosure of Invention
The invention provides a quality detection method for a surface coating of a flexible circuit board, which aims to solve the existing problems.
The invention discloses a quality detection method for a surface coating of a flexible circuit board, which adopts the following technical scheme:
the embodiment of the invention provides a method for detecting the quality of a surface coating of a flexible circuit board, which comprises the following steps:
acquiring a circuit board gray level image and a binarized circuit board gray level image;
obtaining a circuit board gray level image without a circuit area according to the circuit board gray level image and the binarized circuit board gray level image, and carrying out gray level stretching on gray level values of pixel points in the circuit board gray level image without the circuit area to obtain new gray level values after gray level stretching;
according to the new gray value after gray stretching and the gray value of the pixel point in the circuit board gray image of the removed circuit area, the stretching rate of the pixel point in the circuit board gray image of the removed circuit area;
obtaining a low gray scale region according to the gray scale value of the pixel point with the stretching ratio closest to 0 and the new gray scale value after gray scale stretching, obtaining the gradient value of the boundary pixel point of the low gray scale region, and obtaining a high-low gradient region in the low gray scale region according to the gradient value of the boundary pixel point in the low gray scale region;
presetting a base number in logarithmic transformation, and constructing a logarithmic transformation function according to the stretching ratio of pixel points in the gray level image of the circuit board without the circuit area, a new gray level value after gray level stretching and the base number in logarithmic transformation;
acquiring the number ratio of the pixels in the high and low gradient areas in the low gray areas under the results of different logarithmic transformation functions, constructing a two-dimensional curve with the gradient ratio changing along with the base number according to the number ratio of the pixels in the high and low gradient areas and different base numbers, wherein the gradient ratio is the number ratio of the pixels in the high and low gradient areas in the low gray areas, and taking the maximum value in the two-dimensional curve as the optimal base number;
and carrying out image enhancement on the stretched circuit board gray level image with the circuit area removed according to the logarithmic transformation function determined by the optimal base number, obtaining an enhanced image, and identifying defects on the enhanced image by utilizing edge detection.
Further, the circuit board gray level image of which the circuit area is removed is obtained according to the circuit board gray level image and the binarized circuit board gray level image, and the method comprises the following specific steps:
and subtracting the circuit board gray level image from the binarized circuit board gray level image, and removing the circuit area to obtain the circuit board gray level image with the circuit area removed.
Further, the step of performing gray stretching on the gray value of the pixel point in the circuit board gray image with the circuit area removed to obtain a new gray value after gray stretching comprises the following specific steps:
in the method, in the process of the invention,new gray value after gray stretching of pixel point in gray image of circuit board with circuit area removed is represented,Gray value of pixel point in gray image of circuit board for representing removed circuit area, +.>Representing coordinates of the corresponding pixel points; b represents the maximum gray value of the pixel point in the gray image of the circuit board without the circuit area; a represents the minimum gray value of the pixel point in the gray image of the circuit board except the circuit area.
Further, the step of removing the stretching ratio of the pixel points in the circuit board gray image of the circuit area according to the new gray value after gray stretching and the gray value of the pixel points in the circuit board gray image of the circuit area comprises the following specific steps:
in the method, in the process of the invention,new gray value after gray stretching of pixel point in gray image of circuit board with circuit area removed is represented,Gray value of pixel point in gray image of circuit board for representing removed circuit area, +.>Representing coordinates of the corresponding pixel points;Stretching ratio of pixel point in gray scale image of circuit board for removing circuit area>The representation takes absolute value.
Further, the method for obtaining the low gray scale region according to the pixel gray scale value closest to 0 in the stretching ratio and the new gray scale value after gray scale stretching comprises the following specific steps:
firstly, the gray value of the pixel point with the stretching rate nearest to 0 in the gray image of the circuit board with the circuit area removed is obtained and is recorded asRepresenting the pixel point coordinates of the nearest 0 of the stretching ratio;
in the method, in the process of the invention,gray value of pixel point with nearest 0 of stretching ratio in gray image of circuit board with circuit area removed>Representing the pixel point coordinates of the nearest 0 of the stretching ratio;Representing a new gray value after pixel point gray stretching in the circuit board gray image of the removed circuit area; the region formed by the gray value points satisfying the above expression is regarded as a low gray region, otherwise, a high gray region.
Further, the step of obtaining the high-low gradient region in the low gray region according to the gradient value of the boundary pixel point in the low gray region comprises the following specific steps:
in the method, in the process of the invention,representing the +.>Gradient values of the individual boundary pixels, +.>Represents the total number, +.>The average gradient value of boundary pixels in the low gray scale region is represented, the region composed of pixels higher than the tie gradient value is marked as a high gradient region, and the region composed of pixels lower than the average gradient value is marked as a low gradient region.
Further, the construction of the logarithmic transformation function according to the stretching ratio of the pixel points in the gray level image of the circuit board without the circuit area, the new gray level value after gray level stretching and the base number during logarithmic transformation comprises the following specific steps:
in the method, in the process of the invention,new gray values representing pixel points after logarithmic transformation,/and method for generating the same>Coordinates of corresponding pixel points;Representing new gray values after pixel gray stretching in the line board gray image with the line area removed,representing coordinates of the corresponding pixel points;Representing the base number when performing a logarithmic transformation;Representing the stretching ratio of pixel points in the gray level image of the circuit board with the circuit area removed;Representing natural constants.
The technical scheme of the invention has the beneficial effects that: the method can amplify the characteristics of the region to be detected by using image processing means such as image cutting, stretching and the like as far as possible, reduces the influence of similar regions on the detection result, and improves the detection efficiency and accuracy after the image is processed.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of steps of a method for detecting quality of a surface coating of a flexible circuit board according to the present invention.
Detailed Description
In order to further describe the technical means and effects adopted by the invention to achieve the preset aim, the following detailed description is given below of a flexible circuit board surface coating quality detection method according to the invention, which is specific to the implementation, structure, characteristics and effects thereof, with reference to the accompanying drawings and the preferred embodiment. In the following description, different "one embodiment" or "another embodiment" means that the embodiments are not necessarily the same. Furthermore, the particular features, structures, or characteristics of one or more embodiments may be combined in any suitable manner.
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 invention provides a specific scheme of a flexible circuit board surface coating quality detection method, which is specifically described below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of steps of a method for detecting quality of a plating layer on a surface of a flexible circuit board according to an embodiment of the invention is shown, the method includes the following steps:
and S001, acquiring a surface image of the flexible circuit board and preprocessing.
Specifically, an industrial camera is used to collect an image of the surface of the flexible circuit board to be detected, the image of the surface of the flexible circuit board is subjected to graying to obtain a gray image of the circuit board, and Gaussian filtering denoising treatment is performed on the gray image of the circuit board, and it is to be noted that the model of the industrial camera in the embodiment is not particularly limited.
And obtaining the gray level image of the circuit board by carrying out graying and Gaussian filtering on the surface image of the flexible circuit board.
And S002, removing the circuit area in the gray scale image on the surface of the circuit board.
It should be noted that the scratched area of the circuit board exists in the non-circuit area basically, but the gray scale characteristics of the circuit area are obvious and are easy to interfere with the subsequent defect judgment, so that the circuit area needs to be removed. After the pure non-line area is obtained, the gray value distribution is relatively concentrated, so that the contrast of the defect area is not obvious and is unfavorable for subsequent identification, and the gray value stretching is needed to be carried out on the image so that the image is uniformly distributed in the gray interval. Because the gray value of the defect area is lower than that of the normal area, in order to further enhance the contrast of the defect area, the stretched image is subjected to logarithmic transformation, so that the characteristics of the low gray area are more obvious, and a necessary environment is provided for subsequent defect detection.
It should be further noted that the scratched area of the circuit board mainly exists in the non-circuit area, so in order to make the circuit area not affect the detection result, some technical means are needed to cut the circuit area. Through the observation of the circuit board image and the combination of the prior characteristics, the circuit area has clear gray scale characteristics and the gray scale characteristics of the non-circuit area are greatly different, so that the circuit area can be easily cut by the existing Otsu algorithm.
Specifically, the circuit area can be removed by subtracting the circuit board gray level image from the binarized circuit board gray level image obtained by using the Otsu threshold segmentation algorithm, so as to obtain the circuit board gray level image with the circuit area removed.
It should be noted that, the circuit board gray-scale image and the binarized circuit board gray-scale image are subtracted, and the corresponding positions on the image are directly subtracted and removed instead of subtracting the gray-scale values of the corresponding positions, so as to remove the circuit area.
And performing Otsu threshold segmentation and subtraction on the circuit board gray level image to obtain the circuit board gray level image with the circuit area removed.
And step S003, carrying out gray stretching and calculating the stretching rate on the gray image of the circuit board with the circuit area removed.
It should be noted that, because the image after the circuit is removed has a relatively concentrated gray value distribution due to its own characteristics, the scratch defect is hardly reflected from the image, and in order to make the defect characteristics have some prominent differences from the normal area, the gray value of the image is subjected to gray stretching so as to uniformly distribute in the [0,255] gray interval.
Specifically, gray stretching is performed according to the maximum and minimum gray values of pixel points in the gray image of the circuit board with the circuit area removed to obtain a new gray value after gray stretching, and the specific calculation method is as follows:
in the method, in the process of the invention,new gray value after gray stretching of pixel point in gray image of circuit board with circuit area removed is represented,Gray value of pixel point in gray image of circuit board for representing removed circuit area, +.>Representing coordinates of the corresponding pixel points; b represents the maximum gray value of the pixel point in the gray image of the circuit board without the circuit area; a represents the minimum gray value of the pixel point in the gray image of the circuit board except the circuit area.
Further, according to the new gray value of the line board gray image with the line area removed after the pixel points are stretched and the gray value of the line board gray image with the line area removed, the stretching rate of the pixel points in the line board gray image with the line area removed is calculated as follows:
in the method, in the process of the invention,new gray value after gray stretching of pixel point in gray image of circuit board with circuit area removed is represented,Representing coordinates of the corresponding pixel points;Representing gray values of pixel points in the gray image of the circuit board without the circuit area;The stretching ratio of the pixel points in the gray level image of the circuit board with the circuit area removed is shown, and the stretching ratio is larger as the stretching ratio is larger, so that the stretching degree is larger;Representation pair->Taking the absolute value.
Further, the circuit board gray scale image of the removed circuit area can be obtained by carrying out (1) gray scale stretching on all the pixel points in the circuit board gray scale image of the removed circuit area, and the stretching rate of all the pixel points in the circuit board gray scale image of the removed circuit area can be obtained by carrying out (2) stretching rate calculation on all the pixel points in the circuit board gray scale image of the removed circuit area.
The new gray value after the gray stretching of the pixel point in the circuit board gray image of the circuit area is obtained by calculating the gray value of the pixel point in the circuit board gray image of the circuit area, and the stretching rate of the pixel point in the circuit board gray image of the circuit area is obtained.
And S004, carrying out region division on the circuit board gray level image with the circuit regions removed after gray level stretching, and calculating the high-low gradient regions in the low gray level regions.
Although the image having a certain defect contrast is obtained by stretching the whole image in the previous step, since the gray-scale value distribution of the original image is too concentrated, the gray-scale stretching performed using the original gray-scale value as a parameter makes the defective region more noticeable, but also causes the occurrence of an excessive disturbance region due to an excessive number of gray-scale values similar to the defective region. Therefore, in order to further distinguish the gray scale characteristics of the defective region from the similar regions, the gray scale characteristics of the detection region are quantized, then the gray scale value of the low gray scale region is reduced in combination with the logarithmic transformation, and the gray scale value of the high gray scale region is increased, so that the defective region is further highlighted.
It should be further noted that, because the defect area is mainly distributed in the low gray scale area of the stretched image, but because the gray scale value of the original image is too concentrated, the defect area cannot be accurately identified only by the gray scale characteristics of the stretched image, and therefore, the low gray scale area needs to be further processed.
Specifically, a low gray scale region is obtained according to a pixel gray scale value closest to 0 in the stretching ratio and a new gray scale value after the pixel gray scale stretching of the pixel point in the circuit board gray scale image of the removed circuit region, and the specific method is as follows:
firstly, the gray value of the pixel point with the stretching rate nearest to 0 in the gray image of the circuit board with the circuit area removed is obtained and is recorded asThe pixel coordinates of the nearest 0 stretch ratio are shown.
In the method, in the process of the invention,gray value of pixel point with nearest 0 of stretching ratio in gray image of circuit board with circuit area removed>Representing the pixel point coordinates of the nearest 0 of the stretching ratio;New gray value after gray stretching of pixel point in gray image of circuit board with circuit area removed is represented,Representing coordinates of the corresponding pixel points; the region formed by the gray value points satisfying the above formula (3) is regarded as a low gray region, otherwise, a high gray region.
It should be noted that, after global gray-scale stretching, some normal regions may be caused to have gradients due to the surrounding gray-scale variations. The defect area has a remarkable gradient characteristic, because the gradient generated after stretching can cause a certain influence when the gradient is used for defect judgment. It is therefore necessary to determine the high-low gradient region in the low gray region.
Specifically, a sobel algorithm is used to obtain gradient values of boundary pixel points, and a high-low gradient region in a low gray region is obtained according to the gradient values of the boundary pixel points in the low gray region. The specific calculation method is as follows:
in the method, in the process of the invention,representing the +.>Gradient values of the individual boundary pixels, +.>Represents the total number, +.>Representing the average gradient value of the boundary pixel points in the low gray scale region. The regions of pixels above the tie gradient value are marked as high gradient regions and the regions of pixels below the average gradient value are marked as low gradient regions.
Thus, a high-low gradient region in the low gray scale region is obtained.
And S005, carrying out logarithmic transformation on the circuit board gray level image with the circuit area removed after gray level stretching to determine the optimal base number, and further obtaining the gray level image with obvious defect area contrast.
When the image contrast is enhanced by logarithmic transformation, the difference in the base number greatly affects the result after the processing, and the larger the base number is, the stronger the emphasis on the low-gradation region is, and the stronger the compression on the high-gradation portion is. However, too small a base number results in poor results after processing, and defective areas cannot be well highlighted, and too large a base number results in some normal areas being integrated with defective areas due to too much suppression, so that it is necessary to find a suitable base number.
Specifically, a logarithmic transformation function is constructed according to the stretching ratio of pixel points in the gray level image of the circuit board without the circuit area, a new gray level value after gray level stretching and a base number in logarithmic transformation.
Each numerical value is subjected to logarithmic transformation in the [0,255] base range, and the specific method of logarithmic transformation is as follows:
in the method, in the process of the invention,new gray values representing pixel points after logarithmic transformation,/and method for generating the same>Coordinates of corresponding pixel points;Representing new gray values after pixel gray stretching in the line board gray image with the line area removed,representing coordinates of the corresponding pixel points;Represents the base of the logarithmic transformation, +.>The value of (2) is [0,255]]The base number is within the range;Representing the stretching ratio of pixel points in the gray level image of the circuit board with the circuit area removed;Representing natural constants.
The new gray value of the pixel is calculated according to the gray value after stretching,the larger the value of (2), the stronger the emphasis on the low gray area, the stronger the compression on the high gray part, and +.>Is to normalize the pixel point and prevent the updated gray value from exceeding [0,255]]Interval.
Further, the number of the pixels in the high gradient area and the number of the pixels in the low gradient area under the logarithmic transformation result of different bases are compared, the ratio is Q, and the specific steps are as follows:
in the method, in the process of the invention,representing the number of pixels in the high gradient region, +.>Representing the number of pixels in the low gradient region, +.>And the ratio of the number of the pixels in the high gradient region to the number of the pixels in the low gradient region is represented.
When the base is too low, the low gray scale region is too dark, which results in too few gradient regions, and as the base increases, the high gradient region increases at a greater rate than the low gradient region. When the value exceeds a certain value, the increasing speed of the high gradient area is smaller than that of the low gradient area, the ratio of the high gradient area to the low gradient area is reduced, and the finding of the changing middle point of the high gradient area and the low gradient area is the optimal bottom value to be found.
Specifically, a two-dimensional curve with the gradient ratio changing along with the base number is constructed according to the ratio Q of the pixel points of the high and low gradient areas in the low gray areas and the different base numbers under the logarithmic transformation results of different base numbers, the gradient ratio is the ratio Q of the pixel points of the high and low gradient areas in the low gray areas, the base number corresponding to the maximum value point in the two-dimensional curve with the gradient ratio changing along with the base numbers is the optimal base number, and the image enhancement is carried out on the stretched circuit board gray image of the circuit board removed area according to the determined optimal base number, so that the contrast ratio of the circuit board gray image of the circuit board removed area is further increased.
So far, the gray level image with obvious defect area contrast is obtained through logarithmic transformation processing of the stretched image.
And step S006, performing edge detection on the gray level image with obvious defect area contrast to identify defects.
The line part is already segmented through an Otsu algorithm, and the contrast between the scratch defect area and the surrounding area in the image is obvious through a series of processing of the steps, so that the edge detection is carried out on the processed image through a canny operator, and the scratch defect area is obtained and marked. After the scratch defect is identified, the scratch defect is required to be visually displayed on a corresponding display, so that a user can more intuitively check the abnormity of the surface coating of the circuit board.
The foregoing description of the preferred embodiments of the invention is not intended to be limiting, but rather is intended to cover all modifications, equivalents, alternatives, and improvements that fall within the spirit and scope of the invention.

Claims (5)

1. The quality detection method of the surface coating of the flexible circuit board is characterized by comprising the following steps:
acquiring a circuit board gray level image and a binarized circuit board gray level image;
obtaining a circuit board gray level image without a circuit area according to the circuit board gray level image and the binarized circuit board gray level image, and carrying out gray level stretching on gray level values of pixel points in the circuit board gray level image without the circuit area to obtain new gray level values after gray level stretching;
according to the new gray value after gray stretching and the gray value of the pixel point in the circuit board gray image of the removed circuit area, the stretching rate of the pixel point in the circuit board gray image of the removed circuit area;
obtaining a low gray scale region according to the gray scale value of the pixel point with the stretching ratio closest to 0 and the new gray scale value after gray scale stretching, obtaining the gradient value of the boundary pixel point of the low gray scale region, and obtaining a high-low gradient region in the low gray scale region according to the gradient value of the boundary pixel point in the low gray scale region;
presetting a base number in logarithmic transformation, and constructing a logarithmic transformation function according to the stretching ratio of pixel points in the gray level image of the circuit board without the circuit area, a new gray level value after gray level stretching and the base number in logarithmic transformation;
obtaining the pixel number ratio of a high-low gradient region in a low gray level region under the results of different logarithmic transformation functions, constructing a two-dimensional curve with the gradient ratio changing along with the base number according to the pixel number ratio of the high-low gradient region and different base numbers, wherein the gradient ratio is the pixel number ratio of the high-low gradient region in the low gray level region, and taking the base number corresponding to the maximum value in the two-dimensional curve as the optimal base number;
carrying out image enhancement on the stretched circuit board gray level image with the circuit area removed according to the logarithmic transformation function determined by the optimal base number to obtain an enhanced image, and identifying defects on the enhanced image by utilizing edge detection;
the method comprises the following specific steps of:
firstly, obtaining the gray value of the pixel point with the stretching rate closest to 0 in the gray image of the circuit board with the circuit area removed, and marking the gray value asRepresenting the pixel point coordinates with the stretching ratio closest to 0;
in the method, in the process of the invention,gray value of pixel point with stretching ratio closest to 0 in gray image of circuit board with circuit area removed>Representing the pixel point coordinates with the stretching ratio closest to 0;Representing a new gray value after pixel point gray stretching in the circuit board gray image of the removed circuit area; taking a region formed by gray value points meeting the above formula as a low gray region, otherwise, taking the region as a high gray region;
the method for obtaining the high and low gradient areas in the low gray area according to the gradient values of the boundary pixel points in the low gray area comprises the following specific steps:
in the method, in the process of the invention,representing the +.>Gradient values of the individual boundary pixels, +.>Represents the total number, +.>The average gradient value of boundary pixels in the low gray scale region is represented, the region constituted by pixels higher than the average gradient value is marked as a high gradient region, and the region constituted by pixels lower than the average gradient value is marked as a low gradient region.
2. The method for detecting the quality of the surface coating of the flexible circuit board according to claim 1, wherein the step of obtaining the circuit board gray level image of the removed circuit area according to the circuit board gray level image and the binarized circuit board gray level image comprises the following specific steps:
and subtracting the circuit board gray level image from the binarized circuit board gray level image, and removing the circuit area to obtain the circuit board gray level image with the circuit area removed.
3. The method for detecting the quality of the surface coating of the flexible circuit board according to claim 1, wherein the step of performing gray stretching on the gray values of the pixel points in the gray image of the circuit board with the circuit area removed to obtain new gray values after gray stretching comprises the following specific steps:
in the method, in the process of the invention,new gray value after gray stretching of pixel point in gray image of circuit board with circuit area removed is represented,Gray value of pixel point in gray image of circuit board for representing removed circuit area, +.>Representing coordinates of the corresponding pixel points; b represents the maximum gray value of the pixel point in the gray image of the circuit board without the circuit area; a represents the minimum gray value of the pixel point in the gray image of the circuit board except the circuit area.
4. The method for detecting the quality of the surface coating of the flexible circuit board according to claim 1, wherein the step of removing the stretching ratio of the pixel points in the circuit board gray level image of the circuit area according to the new gray level value after gray level stretching and the gray level value of the pixel points in the circuit board gray level image of the circuit area comprises the following specific steps:
in the method, in the process of the invention,new gray value after gray stretching of pixel point in gray image of circuit board with circuit area removed is represented,Gray value of pixel point in gray image of circuit board for representing removed circuit area, +.>Representing coordinates of the corresponding pixel points;Stretching ratio of pixel point in gray scale image of circuit board for removing circuit area>The representation takes absolute value.
5. The method for detecting the quality of the surface coating of the flexible circuit board according to claim 1, wherein the constructing the logarithmic transformation function according to the stretching ratio of the pixel points in the gray level image of the circuit board with the circuit area removed, the new gray level value after gray level stretching and the base number in logarithmic transformation comprises the following specific steps:
in the method, in the process of the invention,new gray values representing pixel points after logarithmic transformation,/and method for generating the same>Coordinates of corresponding pixel points;Representing new gray values after pixel gray stretching in the line board gray image with the line area removed,representing coordinates of the corresponding pixel points;Representing the base number when performing a logarithmic transformation;Representing the stretching ratio of pixel points in the gray level image of the circuit board with the circuit area removed;Representing natural constants.
CN202310981608.6A 2023-08-07 2023-08-07 Method for detecting quality of surface coating of flexible circuit board Active CN116703921B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310981608.6A CN116703921B (en) 2023-08-07 2023-08-07 Method for detecting quality of surface coating of flexible circuit board

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310981608.6A CN116703921B (en) 2023-08-07 2023-08-07 Method for detecting quality of surface coating of flexible circuit board

Publications (2)

Publication Number Publication Date
CN116703921A CN116703921A (en) 2023-09-05
CN116703921B true CN116703921B (en) 2023-12-05

Family

ID=87837830

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310981608.6A Active CN116703921B (en) 2023-08-07 2023-08-07 Method for detecting quality of surface coating of flexible circuit board

Country Status (1)

Country Link
CN (1) CN116703921B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN118429337A (en) * 2024-07-03 2024-08-02 广州诺顶智能科技有限公司 Line width percentage detection method, device and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242853A (en) * 2018-11-05 2019-01-18 南京信息工程大学 A kind of PCB defect intelligent detecting method based on image procossing
CN110390673A (en) * 2019-07-22 2019-10-29 福州大学 An automatic cigarette detection method based on deep learning in surveillance scenarios
CN115272346A (en) * 2022-09-30 2022-11-01 江苏炜盛光电科技有限公司 PCB production process online detection method based on edge detection
CN115829976A (en) * 2022-12-07 2023-03-21 七海测量技术(深圳)有限公司 Image processing method for detecting appearance defects

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP7087397B2 (en) * 2018-01-17 2022-06-21 東京エレクトロン株式会社 Substrate defect inspection equipment, substrate defect inspection method and storage medium

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109242853A (en) * 2018-11-05 2019-01-18 南京信息工程大学 A kind of PCB defect intelligent detecting method based on image procossing
CN110390673A (en) * 2019-07-22 2019-10-29 福州大学 An automatic cigarette detection method based on deep learning in surveillance scenarios
CN115272346A (en) * 2022-09-30 2022-11-01 江苏炜盛光电科技有限公司 PCB production process online detection method based on edge detection
CN115829976A (en) * 2022-12-07 2023-03-21 七海测量技术(深圳)有限公司 Image processing method for detecting appearance defects

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
热镀铝锌硅镀层凸点缺陷组织分析及生产工艺优化;岳崇锋 等;《腐蚀与防护》;36(03);第306-309页 *

Also Published As

Publication number Publication date
CN116703921A (en) 2023-09-05

Similar Documents

Publication Publication Date Title
CN114399522B (en) An edge detection method based on Canny operator with high and low thresholds
CN117078672B (en) Intelligent detection method for mobile phone screen defects based on computer vision
CN109242853B (en) An intelligent detection method for PCB defects based on image processing
CN111539935B (en) An online detection method for cable surface defects based on machine vision
CN108460757B (en) Mobile phone TFT-LCD screen Mura defect online automatic detection method
CN115272346A (en) PCB production process online detection method based on edge detection
CN114235758A (en) Defect detection method, device, equipment and storage medium
CN110687122A (en) Method and system for detecting surface cracks of ceramic tile
CN116883408B (en) Integrating instrument shell defect detection method based on artificial intelligence
CN107490582B (en) Assembly line workpiece detection system
CN117689655B (en) Metal button surface defect detection method based on computer vision
CN109977831A (en) A kind of knob recognition methods based on Digital Image Processing
CN112884746A (en) Character defect intelligent detection algorithm based on edge shape matching
CN110060239B (en) A kind of defect detection method for bottle mouth
CN115294083A (en) Surface particle defect detection method and computer readable storage medium
CN118096761B (en) Battery box production defect detection method based on image processing
Ma et al. An automatic detection method of Mura defects for liquid crystal display
CN108830899A (en) A kind of center of circle detection method that the quick self-adapted angle point based on geometrical characteristic combines
CN119624876A (en) A method for identifying impurities and bubbles in wine bottles based on multi-feature comprehensive judgment
CN116703921B (en) Method for detecting quality of surface coating of flexible circuit board
CN111353984B (en) Self-adaptive robust high-precision detection method for liquid level in gray level image
CN115222735A (en) Metal mold quality detection method based on pockmark defects
CN107993219A (en) A kind of deck of boat detection method of surface flaw based on machine vision
CN120088226A (en) Method and device for detecting quality of surface coating of circuit board
CN114332081A (en) Textile surface abnormity determination method based on image processing

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