Method, system, device and storage medium for detecting defective flex board pressure points
Through the detection light source that combines the ring lighting mode and the high-side lighting mode, the image of the pressure point sample is obtained, the grayscale feature value is extracted, and the pressure point depth model is fitted, which solves the problem that the AOI equipment cannot detect the pressure point depth of the flexible circuit board and realizes It provides efficient and accurate pressure point depth detection and avoids yield loss.
Patent Information
- Application Number
- CN202410565015.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-09
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-05-09
AI Technical Summary
Existing AOI inspection equipment cannot measure the actual depth of the depression of the pressure points of the flexible circuit board in real time, resulting in a large number of slight pressure points that do not affect the function and appearance being misjudged as defective products, resulting in yield loss.
Using the detection light source of ring lighting mode and high-side lighting mode, by acquiring images of multiple pressure point samples, extracting grayscale feature values, fitting the pressure point depth detection model, accurately detecting the pressure point depth, and determining whether it is a defective product.
It achieves accurate detection of the pressure point depth of the flexible circuit board, avoids misjudgments, improves the reliability and efficiency of detection, and reduces yield loss.
Smart Images

Figure CN118150581B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of flexible circuit board manufacturing, and in particular to a method, system, device and storage medium for detecting defective flexible circuit board pressure points. Background Art
[0002] Flexible printed circuits (FPC, abbreviated as flexible boards) have been widely used in aerospace, mobile phones, computers, digital cameras and other fields due to their advantages such as bendability, foldability, light weight and small size.
[0003] In order to improve efficiency, flexible circuit boards are often produced in a roll-to-roll manner. However, flexible board products are usually thin (more than ten microns). During the production process, tiny foreign objects on the horizontal roller often cause a large number of pressure points or scratches of varying depths on the product. However, due to the limitations of AOI inspection equipment (i.e., optical inspection equipment), only the plane image of the depression of the pressure point can be detected, and the actual depth of the depression of the pressure point cannot be measured in real time; and when the pressure point depth is greater than 1μm, the refraction of the detection light source in the AOI inspection equipment at the depression will reduce the brightness of the depression, resulting in a large number of slight pressure points that do not affect the function and appearance being misjudged as defective pressure points, resulting in a large amount of yield loss. Summary of the invention
[0004] In view of this, the present invention provides a method, system, device and storage medium for detecting defective flex plate pressure points, so as to solve the problem that the existing AOI detection technology cannot detect the actual pressure point depth of the depression of the flex plate pressure point, resulting in the inability to truly detect the defective pressure points.
[0005] The present invention provides a method for detecting defective flex board pressure points, the method comprising:
[0006] Acquire a pressure point depth detection model in advance; wherein the pressure point depth detection model is obtained under a specified light source condition of a detection light source, and the detection light source has a ring lighting mode and a high side lighting mode;
[0007] In the annular illumination mode of the detection light source, a first pressure point image to be inspected of the flexible plate is acquired; when there is a depression in the first pressure point image to be inspected, the annular illumination mode is switched to the high-side illumination mode, and a second pressure point image to be inspected of the flexible plate in the high-side illumination mode is acquired;
[0008] When bottom copper exists at a position corresponding to the depression in the second pressure point image to be inspected, acquiring a third pressure point image to be inspected of the flexible plate under the specified light source condition of the detection light source;
[0009] Performing feature extraction on the third pressure point image to be inspected to obtain a grayscale feature value at a position corresponding to the depression;
[0010] The grayscale characteristic value is input into the pressure point depth detection model to obtain the pressure point depth at the corresponding position of the depression; and according to the pressure point depth, it is determined whether the flexible board is a pressure point defective product.
[0011] Optionally, obtaining a pressure point depth detection model in advance includes:
[0012] Acquire a plurality of pressure point samples; wherein each of the pressure point samples has a known pressure point depth, and the known pressure point depths corresponding to each of the pressure point samples are different from each other;
[0013] Under the specified light source condition of the detection light source, acquiring a sample image of each of the pressure point samples;
[0014] When there is a depression in the sample image, extracting features of the sample image with the depression to obtain a corresponding average grayscale value;
[0015] The pressure point depth detection model is obtained by performing model fitting based on the average grayscale value corresponding to all the sample images with depressions and the known pressure point depths.
[0016] Optionally, performing model fitting according to average grayscale values corresponding to all sample images with depressions and known pressure point depths to obtain the pressure point depth detection model includes:
[0017] A logarithmic model fitting method is used to perform model fitting according to the average grayscale value corresponding to all sample images with depressions and the known pressure point depths to obtain a fitting curve;
[0018] Calculating the fitting degree of the fitting curve;
[0019] When the degree of fit meets a preset condition, determining the fitting curve as the pressure point depth detection model;
[0020] When the degree of fit does not meet the preset conditions, the designated light source conditions are adjusted to obtain adjusted light source conditions; and under the adjusted light source conditions of the detection light source, the adjusted sample images corresponding to each of the pressure point samples are reacquired; and the model is refitted according to the average grayscale value extracted from the adjusted sample image and the corresponding known pressure point depth to obtain the adjusted fitting curve; until the degree of fit corresponding to the adjusted fitting curve meets the preset conditions, the adjusted fitting curve is determined as the pressure point depth detection model, and the adjusted light source conditions are determined as the updated designated light source conditions.
[0021] Optionally, the pressure point depth detection model is expressed as:
[0022] y = a × ln [ − b ln( x ) ] ;
[0023] Wherein, y is the grayscale characteristic value, x is the pressure point depth, a and b are function coefficients respectively, and ln(*) is a logarithmic function.
[0024] Optionally, the preset condition specifically includes: the degree of fit is greater than or equal to 0.95.
[0025] Optionally, the specified light source conditions include a light source lighting mode and a light source brightness;
[0026] Wherein, the light source illumination mode is specifically the annular illumination mode; and / or, the brightness of the light source ranges from 500 to 5000 lm.
[0027] Optionally, performing feature extraction on the third pressure point image to be inspected to obtain a grayscale feature value at a position corresponding to the depression includes:
[0028] Extracting a concave area image from the third pressure point image to be inspected;
[0029] Gray-scale the sunken area image to obtain a grayscale value of each pixel in the sunken area image;
[0030] An average operation is performed on the grayscale values of all pixels in the concave area image to obtain the grayscale characteristic value at the corresponding position of the concave.
[0031] Optionally, judging whether the flexible board is a defective pressing point product according to the pressing point depth includes:
[0032] Determining whether the pressure point depth exceeds a preset threshold;
[0033] If so, the flexible board is determined as a defective product at the pressure point; otherwise, the flexible board is determined as a normal product.
[0034] Optionally, in the annular illumination mode of the detection light source, after acquiring the image of the first pressure point to be inspected of the flexible plate, the method further includes:
[0035] When there is no concave in the first pressure point image to be inspected, the flexible plate is directly determined to be a normal product.
[0036] Optionally, after acquiring the second pressure point image to be inspected of the flexible plate in the high-side illumination mode, the method further includes:
[0037] When there is no bottom copper at a position corresponding to the depression in the second pressure point image to be inspected, obtaining a copper-free area ratio of the flexible board;
[0038] When the proportion of the copper-free area meets a second preset condition, the flexible board is determined as a pressure point defective product; otherwise, the flexible board is determined as a normal product.
[0039] In addition, the present invention also provides a system for detecting defective flex plate pressure points, which is applied to the above-mentioned method for detecting defective flex plate pressure points, and comprises:
[0040] A model acquisition module, used to pre-acquire a pressure point depth detection model; wherein the pressure point depth detection model is obtained under a specified light source condition of a detection light source, and the detection light source has a ring lighting mode and a high side lighting mode;
[0041] A first image acquisition module, used for acquiring an image of a first pressure point to be inspected of the flexible plate in the annular illumination mode of the detection light source;
[0042] A second image acquisition module is used for, when there is a depression in the first pressure point image to be inspected, switching the annular illumination mode to the high-side illumination mode, and acquiring a second pressure point image to be inspected of the flexible plate under the high-side illumination mode;
[0043] A third image acquisition module, configured to acquire a third image of the pressure point to be inspected of the flexible plate under the specified light source condition of the detection light source when bottom copper exists at a position corresponding to the depression in the second image of the pressure point to be inspected;
[0044] A feature extraction module, used for performing feature extraction on the third pressure point image to be inspected to obtain a grayscale feature value at a position corresponding to the depression;
[0045] The defective product detection module is used to input the grayscale characteristic value into the pressure point depth detection model to obtain the pressure point depth at the corresponding position of the depression; and determine whether the flexible board is a pressure point defective product according to the pressure point depth.
[0046] In addition, the present invention also provides a device for detecting defective flexible plate pressure points, comprising a processor, a memory, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method steps in the aforementioned method for detecting defective flexible plate pressure points when executed.
[0047] In addition, the present invention also provides a computer storage medium, which includes: at least one instruction, and when the instruction is executed, the method steps in the above-mentioned method for detecting defective flexible plate pressure points are implemented.
[0048] Beneficial effects of the present invention: the pressure point depth detection model acquired in advance can be used to detect the pressure point depth. Therefore, when detecting defective pressure points, the pressure point depth detection model is first acquired to facilitate the subsequent efficient and accurate detection of the pressure point depth of the flexible plate; then the first pressure point image to be inspected under the annular lighting mode is acquired, and through the recognition of the depression on the image, it can be preliminarily determined that the flexible plate has suspected defective products caused by the pressure point, and further judgment is required; therefore, when the first pressure point image to be inspected determines that there is a depression, the lighting mode is switched to the high-side lighting mode, which is convenient for the second pressure point image to be inspected under this mode. Image, judge whether there is bottom copper in the depression, and then when there is bottom copper in the depression, it can be determined that a pressure point appears in the depression, which is convenient for further detection of the depth of the pressure point; when there is bottom copper in the depression, the third pressure point image to be detected is obtained again, and the acquisition environment of the image is the same as the acquisition environment of the pressure point depth detection model, which is convenient for accurately detecting the real pressure point depth of the depression based on the pressure point depth detection model and the grayscale feature value obtained by feature extraction of the third pressure point image to be detected, and the accuracy and reliability of detecting the pressure point depth are high; finally, the detected pressure point depth can be used to directly judge the number of times;
[0049] The method, system, device and storage medium for detecting defective flexible plate pressure points of the present invention realize the detection of the actual pressure point depth of the depression in suspected defective products, and can avoid the situation where traditional AOI detection equipment is unable to detect the actual pressure point depth of the depression, resulting in a large number of slight pressure points that do not affect the function and appearance being misjudged as pressure point defective products. The accuracy and reliability of detecting the pressure point depth are high, thereby achieving accurate defect judgment and effectively avoiding a large amount of yield loss. BRIEF DESCRIPTION OF THE DRAWINGS
[0050] The features and advantages of the present invention will be more clearly understood by referring to the accompanying drawings, which are schematic and should not be construed as limiting the present invention in any way. In the accompanying drawings:
[0051] Figure 1 The structural model diagram of the detection light source in AOI detection technology is shown;
[0052] Figure 2A The figure shows the actual image collected from the copper surface of the first flexible board sample in the annular illumination mode of the detection light source in the traditional AOI detection technology;
[0053] Figure 2B The figure shows the actual image collected on the copper surface of the second flexible board sample in the annular illumination mode of the detection light source in the traditional AOI detection technology;
[0054] Figure 2C The figure shows the actual image collected on the copper surface of the second flexible board sample in the high side illumination mode of the detection light source in the traditional AOI detection technology;
[0055] Figure 3 A flow chart of a method for detecting defective flex board pressure points in Embodiment 1 of the present invention is shown;
[0056] Figure 4 A schematic diagram of a fitting curve in Embodiment 1 of the present invention is shown;
[0057] Figure 5 A complete flow chart of the method for detecting defective flex board pressure points in the first embodiment of the present invention is shown;
[0058] Figure 6 The structure diagram of a system for detecting defective flexible plate pressure points in the second embodiment of the present invention is shown.
[0059] The description of each reference numeral is as follows:
[0060] 1. Ring lamp bead array, 2. Square lamp bead array, 100, recessed area, 200, bottom copper area. DETAILED DESCRIPTION
[0061] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence.
[0062] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. At the same time, the division of the following embodiments is for the convenience of description and should not constitute any limitation on the specific implementation of the present invention. The various embodiments can be combined and referenced with each other without contradiction. Based on the embodiments in the present invention, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present invention.
[0063] Embodiment 1
[0064] In the AOI inspection process of flexible boards, a detection light source is usually used. The structural model of the light source is as follows: Figure 1 As shown, it includes an annular lamp bead array 1 and three square lamp bead arrays 2; the annular lamp bead array 1 is composed of a group of lamp beads (lamp beads, i.e., LED lamps) arranged around a circle; in each square lamp bead array 2, the square lamp bead array 2 is composed of a number of parallel lamp beads, and these parallel lamp beads form a square; the three square lamp bead arrays 2 are evenly arranged on a circle below the annular lamp bead array 1, and the light emitting directions of the three square lamp bead arrays 2 are all toward the annular lamp bead array 1, and the angles between the normal directions of the three square lamp bead arrays 2 and the circular plane where the annular lamp bead array 1 is located are all 45°. Based on Figure 1The structural model of the detection light source has two lighting modes. The first is the ring lighting mode, that is, only the ring lamp bead array 1 is turned on, which can be used to observe the depression on the surface of the flexible board product; the second is the high-side lighting mode, that is, the ring lamp bead array 1 and the three square lamp bead arrays 2 are turned on at the same time, which can be used to observe the bottom copper distribution on the surface of the flexible board product.
[0065] In the traditional technology, when the annular lighting mode is used, a pressure point (or depression) on the copper surface of a flexible plate sample is illuminated by the detection light source and appears as a black shadow in the image, such as Figure 2A As shown, in Figure 2A In the figure, 100 refers to the concave area; another flexo sample (with Figure 2A The flexo plate samples are different samples. After being illuminated by the detection light source, the concave area on the copper surface also appears as a black shadow in the image, such as Figure 2B The above two samples cannot detect the actual pressure point depth in traditional AOI inspection technology, and they will be considered as defective pressure point products through image observation.
[0066] Furthermore, when high side lighting mode is used to illuminate Figure 2B The image of the flexible board sample shows the bottom copper distribution in the concave area, such as Figure 2C As shown, in Figure 2C In the figure, 200 refers to the bottom copper area.
[0067] However, the real judgment needs to be based on the actual pressure point depth. Figure 2A The actual depression depth (i.e., actual pressure point depth) of the depression area 100 of the flexible plate sample in the embodiment of the present invention is 14 μm (exceeding the preset threshold value), which is a real pressure point defective product. Figure 2B The actual pressure point depth of the flex board sample in the manual measurement of the concave area 100 is 2μm (not exceeding the preset threshold), which is not a true pressure point defective product; therefore, the traditional AOI detection technology cannot automatically detect the pressure point depth, and will cause misjudgment due to the reduction of brightness caused by the concave copper surface.
[0068] To solve the above problems, this embodiment relates to a method for detecting defective flex board pressure points, such as Figure 3 As shown, the method includes:
[0069] S1: pre-acquire a pressure point depth detection model; wherein the pressure point depth detection model is obtained under a specified light source condition of a detection light source, and the detection light source has a ring lighting mode and a high side lighting mode;
[0070] S2: acquiring a first pressure point image to be inspected of the flexible plate under the annular illumination mode of the detection light source; when there is a depression in the first pressure point image to be inspected, switching the annular illumination mode to the high-side illumination mode, acquiring a second pressure point image to be inspected of the flexible plate under the high-side illumination mode;
[0071] S3: when there is bottom copper at the position corresponding to the depression in the second pressure point image to be inspected, obtaining a third pressure point image to be inspected of the flexible plate under the specified light source condition of the detection light source;
[0072] S4: extracting features from the third pressure point image to be inspected to obtain a grayscale feature value at a position corresponding to the depression;
[0073] S5: inputting the grayscale characteristic value into the pressure point depth detection model to obtain the pressure point depth at the position corresponding to the depression; and judging whether the flexible board is a pressure point defective product according to the pressure point depth.
[0074] In this embodiment, the pre-acquired pressure point depth detection model can be used to detect the pressure point depth. Therefore, when detecting defective pressure points, the pressure point depth detection model is first acquired to facilitate the subsequent efficient and accurate detection of the pressure point depth of the flexible plate; then the first pressure point image to be inspected under the annular lighting mode is acquired, and through the identification of the depression on the image, it can be preliminarily determined that the flexible plate has suspected defective products caused by the pressure point, and further judgment is required; therefore, when the first pressure point image to be inspected determines that there is a depression, the lighting mode is switched to the high-side lighting mode, so as to facilitate the second pressure point image to be inspected based on this mode. It is determined whether there is bottom copper in the depression. When bottom copper exists in the depression, it can be determined that a pressure point appears in the depression, which is convenient for further detection of the pressure point depth. When bottom copper exists in the depression, the third pressure point image to be inspected is obtained again. The acquisition environment of the image is the same as the acquisition environment of the pressure point depth detection model, which is convenient for accurately detecting the real pressure point depth of the depression based on the pressure point depth detection model and the grayscale feature value obtained by feature extraction of the third pressure point image to be inspected. The accuracy and reliability of detecting the pressure point depth are high. Finally, the detected pressure point depth can be used to directly judge the quality.
[0075] The method for detecting defective flexible plate pressure points in the present embodiment realizes the detection of the actual pressure point depth of the depression in suspected defective products, and can avoid the situation where traditional AOI detection equipment is unable to detect the actual pressure point depth of the depression, resulting in a large number of slight pressure points that do not affect the function and appearance being misjudged as pressure point defective products. The accuracy and reliability of detecting the pressure point depth are high, thereby achieving accurate defect judgment and effectively avoiding a large amount of yield loss.
[0076] The detection light source used in this embodiment is the detection light source in the traditional technology, that is, Figure 1The detection light source shown has two lighting modes: a ring lighting mode and a high side lighting mode.
[0077] Each step of the method for detecting defective flex board pressure points in this embodiment is described in detail below.
[0078] Preferably, in the present embodiment S1, the specified light source conditions of the detection light source include the light source lighting mode and the light source brightness.
[0079] By setting the above-mentioned specified light source conditions, on the one hand, it is easy to fit a pressure point depth detection model with a high degree of fitting, which is convenient for the subsequent judgment of defective pressure points; on the other hand, it can unify the detection environment, and on the basis of ensuring that the pressure point image can be collected, it also makes the pressure point depth detection model universal, thereby improving the accuracy and reliability of pressure point detection.
[0080] Specifically, the light source lighting mode in this embodiment is specifically the annular lighting mode.
[0081] Specifically, the brightness of the light source in this embodiment ranges from 500 to 5000 lm.
[0082] Preferably, this embodiment S1 includes:
[0083] S11: Acquire a plurality of pressure point samples; wherein each of the pressure point samples has a known pressure point depth, and the known pressure point depths corresponding to each of the pressure point samples are different from each other;
[0084] S12: acquiring a sample image of each of the pressure point samples under the specified light source condition of the detection light source;
[0085] S13: When there is a depression in the sample image, extract features of the sample image with the depression to obtain a corresponding average grayscale value;
[0086] S14: performing model fitting according to the average grayscale values corresponding to all the sample images with depressions to obtain the pressure point depth detection model.
[0087] In S11, by using multiple pressure point samples with unequal known pressure point depths, it is possible to ensure that a pressure point depth detection model with higher accuracy is subsequently fitted; in S13~S14, when there is a depression, the average grayscale value is used as the feature of the model fitting. The average grayscale value can reflect the actual situation of the depression area, ensure the accuracy of the simulation fitting, and the method is simple and effective.
[0088] In S11 , the number of the pressure point samples is greater than 5, that is, at least 5 pressure point samples with different known pressure point depths are required.
[0089] In S12, under the specified light source conditions of the detection light source (i.e., the annular lighting mode, the light source brightness ranges from 500 to 5000 lm), each pressure point sample is irradiated and a corresponding photo is taken; after the photo is taken, the photo is processed according to an image processing method with a picture magnification of 50 to 500 times and a picture resolution ≥ 96 DPI, so as to obtain a sample image corresponding to each pressure point sample.
[0090] In S13, the depression in the sample image can be determined manually or identified by image processing methods. When image processing methods are used, edge detection, edge feature extraction, morphological analysis, and classification using a classifier can be used to identify the depression. These steps are conventional techniques in image processing, and the specific details will not be repeated here.
[0091] In S13, for any sample image with a depression, its corresponding depression area image is extracted, and the grayscale value (i.e., grayscale value, which can be obtained through grayscale processing) of each pixel in the depression area image is counted, and the average grayscale value corresponding to the sample image with the depression is obtained by calculating the average grayscale value of all pixels.
[0092] Preferably, S14 includes:
[0093] S141: using a logarithmic model fitting method, performing model fitting according to the average grayscale values corresponding to all sample images with depressions and the known pressure point depths, to obtain a fitting curve;
[0094] S142: Calculating the fitting degree of the fitting curve;
[0095] S143: when the fitting degree satisfies a first preset condition, determining the fitting curve as the pressure point depth detection model;
[0096] S144: When the degree of fit does not satisfy the first preset condition, the designated light source condition is adjusted to obtain an adjusted light source condition; and under the adjusted light source condition of the detection light source, the adjusted sample image corresponding to each of the pressure point samples is reacquired; and the model is refitted according to the average grayscale value extracted from the adjusted sample image and the corresponding known pressure point depth to obtain the adjusted fitting curve; until the degree of fit corresponding to the adjusted fitting curve satisfies the first preset condition, the adjusted fitting curve is determined as the pressure point depth detection model, and the adjusted light source condition is determined as the updated designated light source condition.
[0097] Through the above method, it can be ensured that the fitting degree of the pressure point depth detection model is high, and that when the pressure point depth detection model is used to detect the pressure point depth in the future, the detection accuracy is high, thereby effectively improving the detection accuracy of pressure point defective products and avoiding yield loss.
[0098] Specifically, before model fitting, the relationship between the pressure point depth and the grayscale characteristic value can be qualitatively analyzed through manual observation and analysis, and it is found that the pressure point depth and the grayscale characteristic value are in a nonlinear inverse relationship. Therefore, in S141, the logarithmic model fitting method is used to better analyze the nonlinear inverse relationship between the pressure point depth and the grayscale characteristic value, reveal the change law between the pressure point depth and the grayscale characteristic value, and then facilitate the subsequent detection of the corresponding pressure point depth directly according to the grayscale characteristic value of the concave area to be detected. The specific operation method of the logarithmic model fitting method adopts a conventional operation method, such as selecting a logarithmic model, using the least squares method or other optimization algorithms to estimate the parameters in the logarithmic model (i.e., the function coefficients a and b in the following text) and model testing (such as calculating the degree of fit in the following text), and the specific details are not repeated here.
[0099] Specifically, in S142, the calculation formula of the fitting degree is:
[0100] ;
[0101] Among them, R 2 is the fitting degree, SSR is the residual sum of squares of the fitting curve, and SST is the total sum of squares of the fitting curve.
[0102] SSR (Sum of Squares Residual) is the residual sum of squares, which represents the difference between the fitted curve and the actual observed values; SST (Sum of Squares Total) is the total sum of squares, which represents the difference between the actual observed values and their means. 2 Also known as the determination coefficient or goodness of fit of the fitting curve, it is a statistical indicator to measure the fitting length of the fitting curve and the actual data. It indicates the degree to which the fitting curve explains the total variation, and the value is between 0 and 1. The closer the value is to 1, the better the fitting effect of the fitting curve on the data, and the closer it is to 0, the worse the fitting effect of the fitting curve on the data.
[0103] Specifically, the calculation formulas of SSR and SST are as follows:
[0104] ;
[0105] ;
[0106] in, is the ith actual observation value (i.e., the average grayscale value of the sample image), is the i-th predicted value predicted by the fitting curve, is the mean of the actual observations, and n is the number of actual observations.
[0107] Specifically, in S143-S144, the first preset condition specifically includes: the degree of fit is greater than or equal to 0.95.
[0108] When the fit (i.e. R 2 ) is greater than or equal to 0.95, it means that the fitting curve at this time has a good fitting effect on the data and can well reflect the fitting relationship between the pressure point depth and the average grayscale value. There is no need to continue fitting, and the fitting curve at this time can be used to determine the pressure point depth detection model that can accurately predict the pressure point depth.
[0109] When the fit (i.e. R 2 ) is less than 0.95, it means that the fitting curve at this time does not fit the data well, and it is necessary to adjust the specified light source conditions, and re-acquire the adjusted sample image under the adjusted light source conditions, and recalculate the average grayscale value corresponding to the adjusted sample image with depressions according to the aforementioned method for calculating the average grayscale value; then, according to the same method as the aforementioned model fitting, re-fit a new fitting curve based on the calculated average grayscale value and the known pressure point depth corresponding to the adjusted sample image with depressions; when the fitting degree of the new fitting curve does not satisfy that it is greater than or equal to 0.95, continue to fit the new fitting curve according to the same method until the fitting degree of the new fitting curve satisfies that it is greater than or equal to 0.95, and then stop fitting.
[0110] Specifically, the expression of the pressure point depth detection model is:
[0111] y = a × ln [ − b ln( x ) ] ;
[0112] Wherein, y is the grayscale characteristic value, x is the pressure point depth, a and b are function coefficients respectively, and ln(*) is a logarithmic function.
[0113] The essence of the fitting process of the pressure point depth detection model is to determine the function coefficients a and b. That is, when the function coefficients a and b are determined, the final pressure point depth detection model can be obtained.
[0114] In a specific embodiment, the flexible board sample is a double-layer board, which is composed of a stack of two layers of copper foil and a layer of PI (i.e., polyimide) layer, and the PI layer is located between the two layers of copper foil, that is, the structural order of the stack is copper foil / PI layer / copper foil, and the corresponding thickness is 12μm / 25μm / 12μm.
[0115] In S11, 6 pressure point samples of the above type were collected, and the corresponding known pressure point depths were 1.2 μm, 2.1 μm, 4.5 μm, 6.4 μm, 8.9 μm and 14.6 μm, respectively.
[0116] In S12, the light source illumination mode under the specified light source condition is a ring illumination mode, the light source brightness is 2500 lm, the image magnification in the image processing method is 100 times, and the image resolution is 96 DPI, and 6 sample images are obtained.
[0117] In S13, there are depressions in all six sample images, and the average grayscale values corresponding to the depression areas are read respectively, which are 230, 158, 75, 55, 42, and 18, respectively.
[0118] In S14, the function expression of the fitting curve is preset as: y = a × ln [ − b ln( x ) ] .
[0119] According to the 6 known pressure point depths and 6 average grayscale values, the fitting curve is as follows: Figure 4 As shown, the corresponding function coefficients a=﹣79.76, b=﹣0.26179, calculate the corresponding fit R 2 =0.96115, satisfying R 2 ≥0.95, then the fitting curve { y = a × ln [ − b ln( x ) ] a =− 79 . 76 b =− 0 . 26179 Determine the final pressure point depth detection model.
[0120] Specifically, in the present embodiment S2, the first pressure point image to be inspected of the flexible plate is also acquired in the annular illumination mode, and the brightness of the detection light source is also 500-5000 lm, but may be the same as or different from the brightness of the light source under the specified light source condition.
[0121] After S2 obtains the first image of the pressure point to be inspected, it can be determined whether there is a depression in the image by manual observation or image processing. When there is a depression, the illumination mode of the detection light source is switched from the ring illumination mode to the high side illumination mode, and the image of the flexible plate is collected again to obtain the second image of the pressure point to be inspected. After the second image of the pressure point to be inspected is obtained, it can be determined whether there is bottom copper at the position corresponding to the depression in the image by manual observation or image processing. In S3, when there is bottom copper at the position corresponding to the depression, the illumination mode of the detection light source is switched from the high side illumination mode to the ring illumination mode (the illumination mode under the specified light source condition), and the brightness of the detection light source is adjusted according to the light source brightness under the specified light source condition (for example, in the aforementioned specific implementation manner, the light source brightness is 2500lm, the image magnification in the image processing method is 100 times, and the image resolution is 96DPI), and the image of the flexible plate is collected again to obtain the third image of the pressure point to be inspected.
[0122] Preferably, in S2, after acquiring the image of the first pressure point to be inspected of the flexible plate in the annular illumination mode of the detection light source, the method further comprises:
[0123] When there is no concave in the first pressure point image to be inspected, the flexible plate is directly determined to be a normal product.
[0124] When there is no depression in the first pressure point image to be inspected, it means that there is no pressure point on the flexible plate, and the flexible plate is not a defective pressure point product, and the flexible plate can be directly determined as a normal product.
[0125] Preferably, in S3, after acquiring the second pressure point image to be inspected of the flexible plate in the high-side illumination mode, the method further comprises:
[0126] When there is no bottom copper at a position corresponding to the depression in the second pressure point image to be inspected, obtaining a copper-free area ratio of the flexible board;
[0127] When the proportion of the copper-free area meets a second preset condition, the flexible board is determined as a pressure point defective product; otherwise, the flexible board is determined as a normal product.
[0128] When there is no bottom copper at the depressed position in the second pressure point image to be inspected, the corresponding flexible board may have defects at the pressure point due to errors in the manufacturing process, and can be regarded as a suspected defective product; at this time, by obtaining the proportion of the copper-free area of the entire flexible board (referring to the ratio of the area of the copper-free area on the copper surface of the flexible board to the area of the entire copper surface), and judging whether the proportion of the copper-free area meets the second preset condition, it is determined whether the defect of the bottom copper meets the standard for judging; when the proportion of the copper-free area meets the second preset condition, it is regarded that the defect of the bottom copper of the flexible board meets the standard for judging, and it is a defective pressure point; otherwise, it means that the defect of the bottom copper is within an acceptable range and is regarded as a normal product.
[0129] The proportion of the copper-free area can also be obtained in the second pressure point image to be inspected through manual observation or image processing, and the specific details are not repeated here.
[0130] Preferably, the second preset condition specifically includes: the proportion of the copper-free area is greater than or equal to a proportion threshold.
[0131] That is, when the proportion of the copper-free area exceeds the proportion threshold, it indicates that the copper-free area is too large and does not meet the normal product requirements, and the flexible board is a defective product at the pressure point; when the proportion of the copper-free area does not exceed the proportion threshold, it indicates that the copper-free area is within the acceptable error range and the flexible board is a normal product.
[0132] The percentage threshold may be determined according to the specific product design, for example, 20%, that is, when the copper-free area accounts for more than 20%, it is judged as a defective pressure point. It should be understood that the percentage thresholds of flexible board products of different designs may be the same or different.
[0133] Preferably, this embodiment S4 includes:
[0134] S41: extracting a concave area image from the third pressure point image to be inspected;
[0135] S42: gray-scale the sunken area image to obtain a grayscale value of each pixel in the sunken area image;
[0136] S43: performing an average operation on the grayscale values of all pixels in the concave area image to obtain the grayscale characteristic value at the corresponding position of the concave.
[0137] By extracting the image of the depressed area and graying it, it is convenient to perform statistical analysis on the characteristics of the depressed area. By calculating the average of the grayscale values of all pixels in the image of the depressed area, a grayscale feature value that can reflect the average distribution of the characteristics of the depressed area can be obtained, which can better represent the actual situation of the depressed area, thereby ensuring the accuracy and reliability of the final pressure point depth.
[0138] Preferably, in S5 of this embodiment, the grayscale characteristic value obtained in S4 is directly input into the pressure point depth detection model to obtain the corresponding pressure point depth.
[0139] In this embodiment S5, judging whether the flexible board is a defective pressing point product according to the pressing point depth includes:
[0140] Determining whether the pressure point depth exceeds a preset threshold;
[0141] If so, the flexible board is determined as a defective product at the pressure point; otherwise, the flexible board is determined as a normal product.
[0142] By directly comparing the pressure point depth with the preset threshold, accurate and efficient quality judgment can be achieved, and defective pressure point products can be screened out to ensure the production yield of the flexible board production line.
[0143] The preset threshold corresponding to the pressure point depth can be determined according to the actual design of the flexible board product. For example, the preset threshold in this embodiment is 10 μm. When the pressure point depth exceeds 10 μm, the flexible board is a pressure point defective product, otherwise it is a normal product. It should be understood that the preset thresholds of flexible board products of different designs may be the same or different.
[0144] The complete flow chart of the method for detecting defective flex board pressure points in this embodiment is as follows: Figure 5 shown.
[0145] It should be understood that since there may be multiple pressure points on the flexible plate caused by tiny foreign objects on the horizontal line roller, there may be multiple depressions in the first pressure point image to be inspected; for each depression, the steps S1 to S5 of the present embodiment are performed to detect the depth of the pressure point at each depression; finally, if there is at least one pressure point depth exceeding the preset threshold, the flexible plate is judged as a defective pressure point product, and only when all the pressure point depths do not exceed the preset threshold is the flexible plate judged as a normal product.
[0146] Embodiment 2
[0147] A system for detecting defective flex plate pressure points is applied to the method for detecting defective flex plate pressure points of the first embodiment, such as Figure 6 As shown, including:
[0148] A model acquisition module, used to pre-acquire a pressure point depth detection model; wherein the pressure point depth detection model is obtained under a specified light source condition of a detection light source, and the detection light source has a ring lighting mode and a high side lighting mode;
[0149] A first image acquisition module, used for acquiring an image of a first pressure point to be inspected of the flexible plate in the annular illumination mode of the detection light source;
[0150] A second image acquisition module is used for, when there is a depression in the first pressure point image to be inspected, switching the annular illumination mode to the high-side illumination mode, and acquiring a second pressure point image to be inspected of the flexible plate under the high-side illumination mode;
[0151] A third image acquisition module, configured to acquire a third image of the pressure point to be inspected of the flexible plate under the specified light source condition of the detection light source when bottom copper exists at a position corresponding to the depression in the second image of the pressure point to be inspected;
[0152] A feature extraction module, used for performing feature extraction on the third pressure point image to be inspected to obtain a grayscale feature value at a position corresponding to the depression;
[0153] The defective product detection module is used to input the grayscale characteristic value into the pressure point depth detection model to obtain the pressure point depth at the corresponding position of the depression; and determine whether the flexible board is a pressure point defective product according to the pressure point depth.
[0154] In this embodiment, the pre-acquired pressure point depth detection model can be used to detect the pressure point depth. Therefore, when detecting defective pressure points, the pressure point depth detection model is firstly acquired through the model acquisition module, so as to facilitate the subsequent efficient and accurate detection of the pressure point depth of the flexible plate; then, the first image acquisition module is used to acquire the first pressure point image to be inspected under the annular lighting mode, and through the identification of the depression on the image, it can be preliminarily determined that the flexible plate has suspected defective products caused by the pressure point, and further judgment is required; therefore, when the first pressure point image to be inspected determines that there is a depression, the lighting mode is switched to the high-side lighting mode, so as to facilitate the use of the second image acquisition module based on the second pressure point image to be inspected under this mode, It is determined whether there is bottom copper in the depression. When there is bottom copper in the depression, it can be determined that a pressure point appears in the depression, which is convenient for further detecting the depth of the pressure point. When there is bottom copper in the depression, the third image acquisition module is used again to acquire the third pressure point image to be inspected. The acquisition environment of the image is the same as the acquisition environment of the pressure point depth detection model, which is convenient for accurately detecting the real pressure point depth of the depression based on the pressure point depth detection model and the grayscale feature value obtained by extracting the features of the third pressure point image to be inspected by the feature extraction module. The accuracy and reliability of detecting the pressure point depth are high. Finally, the defective detection module can be used to directly determine the quality by using the detected pressure point depth.
[0155] The detection system for the defective flexible plate pressure points of the present embodiment realizes the detection of the actual pressure point depth of the depression in the suspected defective products, and can avoid the situation where the traditional AOI detection equipment is unable to detect the actual pressure point depth of the depression, resulting in a large number of slight pressure points that do not affect the function and appearance being misjudged as pressure point defective products. The accuracy and reliability of detecting the pressure point depth are high, and thus accurate defect judgment can be achieved, effectively avoiding a large amount of yield loss.
[0156] The functions of each module in the system for detecting defective flex board pressure points described in this embodiment are the same as the method steps of the method for detecting defective flex board pressure points described in Example 1. Therefore, for details not covered in this embodiment, please refer to Example 1 and Figures 1 to 5 The detailed description will not be repeated here.
[0157] Embodiment 3
[0158] A device for detecting defective flex plate pressure points comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method steps in the method for detecting defective flex plate pressure points of embodiment 1 when executed.
[0159] By storing a computer program in a memory and running it on a processor, the actual depth of the pressure points in the depressions of suspected defective products can be detected. This can prevent traditional AOI inspection equipment from being unable to detect the actual depth of the pressure points in the depressions, resulting in a large number of slight pressure points that do not affect the function and appearance being misjudged as pressure point defective products. The accuracy and reliability of detecting the pressure point depth are high, which can achieve accurate quality judgment and effectively avoid a large amount of yield loss.
[0160] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of a computer device, and uses various interfaces and lines to connect various parts of the entire computer device.
[0161] The memory can be used to store computer programs and / or models. The processor realizes various functions of the computer device by running or executing the computer programs and / or models stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system and at least one application required for a function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the mobile phone (such as audio data, video data, etc.). In addition, the memory can include a high-speed random access memory and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device, or other volatile solid-state storage devices.
[0162] It should be understood that each process and / or block in the flowchart and / or block diagram, as well as the combination of the processes and / or blocks in the flowchart and / or block diagram, can be implemented by a computer program. These computer programs can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0163] These computer programs may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a specific manner, so that the instructions stored in the computer-readable memory produce a manufactured product including an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0164] These computer programs can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, so that the instructions executed on the computer or other programmable device provide instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0165] This embodiment further provides a computer storage medium, which includes: at least one instruction, which implements the method steps in the method for detecting defective flexible plate pressure points of embodiment 1 when the instruction is executed.
[0166] By executing a computer storage medium containing at least one instruction, the actual pressure point depth of the depression in the suspected defective product is detected, which can avoid the traditional AOI detection equipment being unable to detect the actual pressure point depth of the depression, resulting in a large number of slight pressure points that do not affect the function and appearance being misjudged as pressure point defective products. The accuracy and reliability of detecting the pressure point depth are high, thereby achieving accurate quality judgment and effectively avoiding a large amount of yield loss.
[0167] Similarly, for details not yet provided in this embodiment, please refer to Embodiment 1, Embodiment 2 and Figures 1 to 6 The detailed description will not be repeated here.
[0168] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.
Claims
1. A method for detecting defective flex board pressure points, It is characterized in that The method comprises: Acquire a pressure point depth detection model in advance; wherein the pressure point depth detection model is obtained under a specified light source condition of a detection light source, and the detection light source has a ring lighting mode and a high side lighting mode; In the annular illumination mode of the detection light source, a first pressure point image to be inspected of the flexible plate is acquired; when there is a depression in the first pressure point image to be inspected, the annular illumination mode is switched to the high-side illumination mode, and a second pressure point image to be inspected of the flexible plate in the high-side illumination mode is acquired; When bottom copper exists at a position corresponding to the depression in the second pressure point image to be inspected, acquiring a third pressure point image to be inspected of the flexible plate under the specified light source condition of the detection light source; Performing feature extraction on the third pressure point image to be inspected to obtain a grayscale feature value at a position corresponding to the depression; Inputting the grayscale characteristic value into the pressure point depth detection model to obtain the pressure point depth at the corresponding position of the depression; and judging whether the flexible board is a pressure point defective product according to the pressure point depth; The expression of the pressure point depth detection model is: ; in, y is the grayscale characteristic value, x is the pressure point depth, a and b are function coefficients respectively, ln(*) is the logarithmic function; The step of performing feature extraction on the third pressure point image to be inspected to obtain a grayscale feature value at a position corresponding to the depression includes: Extracting a concave area image from the third pressure point image to be inspected; Gray-scale the sunken area image to obtain a grayscale value of each pixel in the sunken area image; An average operation is performed on the grayscale values of all pixels in the concave area image to obtain the grayscale characteristic value at the corresponding position of the concave.
2. The method for detecting defective flex board pressure points according to claim 1, It is characterized in that Pre-acquire the pressure point depth detection model, including: Acquire a plurality of pressure point samples; wherein each of the pressure point samples has a known pressure point depth, and the known pressure point depths corresponding to each of the pressure point samples are different from each other; Under the specified light source condition of the detection light source, acquiring a sample image of each of the pressure point samples; When there is a depression in the sample image, extracting features of the sample image with the depression to obtain a corresponding average grayscale value; The pressure point depth detection model is obtained by performing model fitting based on the average grayscale value corresponding to all the sample images with depressions and the known pressure point depths.
3. The method for detecting defective flex board pressure points according to claim 2, It is characterized in that The pressure point depth detection model is obtained by performing model fitting according to the average grayscale value corresponding to all the sample images with depressions and the known pressure point depths, including: A logarithmic model fitting method is used to perform model fitting according to the average grayscale value corresponding to all sample images with depressions and the known pressure point depths to obtain a fitting curve; Calculating the fitting degree of the fitting curve; When the fitting degree satisfies a first preset condition, determining the fitting curve as the pressure point depth detection model; When the degree of fit does not meet the first preset condition, the designated light source condition is adjusted to obtain the adjusted light source condition; and under the adjusted light source condition of the detection light source, the adjusted sample image corresponding to each of the pressure point samples is reacquired; and the model is refitted according to the average grayscale value extracted from the adjusted sample image and the corresponding known pressure point depth to obtain the adjusted fitting curve; until the degree of fit corresponding to the adjusted fitting curve meets the first preset condition, the adjusted fitting curve is determined as the pressure point depth detection model, and the adjusted light source condition is determined as the updated designated light source condition.
4. The method for detecting defective flex board pressure points according to claim 3, It is characterized in that The first preset condition specifically includes: the degree of fit is greater than or equal to 0.
95.
5. The method for detecting defective flex board pressure points according to claim 1, It is characterized in that The specified light source conditions include light source lighting mode and light source brightness; Wherein, the light source illumination mode is specifically the annular illumination mode; and / or, the brightness of the light source ranges from 500 to 5000 lm.
6. The method for detecting defective flex board pressure points according to claim 1, It is characterized in that Judging whether the flexible board is a defective pressing point product according to the pressing point depth includes: Determining whether the pressure point depth exceeds a preset threshold; If so, the flexible board is determined as a defective product at the pressure point; otherwise, the flexible board is determined as a normal product.
7. The method for detecting defective flex board pressure points according to claim 1, It is characterized in that In the annular illumination mode of the detection light source, after acquiring the image of the first pressure point to be detected of the flexible plate, the method further includes: When there is no concave in the first pressure point image to be inspected, the flexible plate is directly determined to be a normal product.
8. The method for detecting defective flex board pressure points according to claim 1, It is characterized in that After acquiring the second pressure point image to be inspected of the flexible plate in the high-side illumination mode, the method further includes: When there is no bottom copper at the position corresponding to the depression in the second pressure point image to be inspected, obtaining a copper-free area ratio of the flexible board; When the proportion of the copper-free area meets a second preset condition, the flexible board is determined as a pressure point defective product; otherwise, the flexible board is determined as a normal product.
9. A system for detecting defective flex plate pressure points. It is characterized in that Applied to the method for detecting defective flex board pressure points as claimed in any one of claims 1 to 8, the system comprises: A model acquisition module, used to pre-acquire a pressure point depth detection model; wherein the pressure point depth detection model is obtained under a specified light source condition of a detection light source, and the detection light source has a ring lighting mode and a high side lighting mode; A first image acquisition module, used for acquiring an image of a first pressure point to be inspected of the flexible plate in the annular illumination mode of the detection light source; A second image acquisition module is used for, when there is a depression in the first pressure point image to be inspected, switching the annular illumination mode to the high-side illumination mode, and acquiring a second pressure point image to be inspected of the flexible plate under the high-side illumination mode; A third image acquisition module, configured to acquire a third image of the pressure point to be inspected of the flexible plate under the specified light source condition of the detection light source when bottom copper exists at a position corresponding to the depression in the second image of the pressure point to be inspected; A feature extraction module, used for performing feature extraction on the third pressure point image to be inspected to obtain a grayscale feature value at a position corresponding to the depression; The defective product detection module is used to input the grayscale characteristic value into the pressure point depth detection model to obtain the pressure point depth at the corresponding position of the depression; and determine whether the flexible board is a pressure point defective product according to the pressure point depth.
10. A device for detecting defective flex plate pressure points, It is characterized in that The method comprises a processor, a memory and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method steps in the method for detecting defective flexible plate pressure points as claimed in any one of claims 1 to 8 when the computer program is executed.
11. A computer storage medium, It is characterized in that The computer storage medium comprises: at least one instruction, which implements the method steps in the method for detecting defective flexible plate pressure points according to any one of claims 1 to 8 when the instruction is executed.
