AI-enabled flexible circuit board defect detection method and detection equipment

Through the AI-powered deep learning network model and generative adversarial network, the loss function of deformation degree, structural similarity and mean square error term is used to solve the detection accuracy problem of flexible circuit boards caused by the decline in the accuracy of the fixture and the detection base. , achieving higher detection precision and accuracy.

CN118261905BActive Publication Date: 2024-09-10SUZHOU CHENLING OPTICS TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410536743.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-04-30
Publication Date
2024-09-10
Estimated Expiration
2044-04-30

AI Technical Summary

Technical Problem

When the coordination accuracy between the fixture and the inspection base of the flexible circuit board decreases, the defect detection accuracy decreases.

Method used

The AI-empowered deep learning network model is used for image correction. Through the generative adversarial network model composed of the generator and the discriminator, the loss function of the deformation degree, structural similarity and mean square error term is used to adapt to the deformation of the flexible circuit board. , generate corrected images to improve detection accuracy.

Benefits of technology

It improves the accuracy of flexible circuit board defect detection, adapts to deformation conditions, and enhances detection accuracy, especially the deformation correction capability during small-angle rotation.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118261905B
    Figure CN118261905B
Patent Text Reader

Abstract

The present invention provides an AI-enabled flexible circuit board defect detection method and detection equipment, which belongs to the field of flexible circuit board defect detection technology. The detection method includes: generating image samples of the flexible circuit board under different deformation conditions; constructing a deep learning network model for generating a corrected image based on the restored image of the input flexible circuit board, and the loss function of the deep learning network model includes a deformation degree term, a structural similarity term, and a mean square error term; training the deep learning network model through the image samples; inputting the current image of the flexible circuit board into the trained deep learning network model to obtain a corrected target image; and performing defect judgment based on the target image. The present invention can improve the defect detection accuracy of the flexible circuit board when the matching accuracy between the fixture and the detection base decreases.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of flexible circuit board defect detection, and in particular to an AI-enabled flexible circuit board defect detection method and detection equipment. Background Art

[0002] Since flexible printed circuits (FPCs) are thin, light, and bendable, traditional manual visual inspection methods are costly and inefficient. Therefore, automated inspection technologies have emerged in the prior art, such as the use of high-precision visual inspection equipment to perform defect detection and analysis by taking high-precision images of flexible circuit boards.

[0003] The detection method based on machine vision provides an effective way to solve the problem of automated detection of flexible circuit boards. This method identifies defects by analyzing FPC images and has met the requirements of online detection to a certain extent.

[0004] However, since the flexible circuit board is usually placed on a flat detection base through a fixture, the matching accuracy between the fixture itself and the detection base may decrease, which will cause the posture of the flexible circuit board to change. This change will cause errors that cannot be ignored for high-precision defect detection. Therefore, a detection method is urgently needed to solve the problem of decreased defect detection accuracy caused by the above reasons. Summary of the invention

[0005] An object of the present invention is to improve the defect detection accuracy of a flexible circuit board when the matching accuracy between a jig and a detection base decreases.

[0006] In particular, an embodiment of the present invention provides an AI-enabled flexible circuit board defect detection method, wherein the flexible circuit board to be detected is fixed on a detection base by a rectangular fixture, the fixture is arranged in a limiting groove on the detection base, and positioning columns are provided at four corner points of the fixture, and the positioning columns cooperate with the limiting holes at the bottom surface of the limiting groove. The fixture is provided with a plurality of adsorption ports for providing an adsorption force for adsorbing the flexible circuit board to be detected, and the method comprises:

[0007] Generate image samples of the flexible circuit board under different deformation conditions, the image samples including samples with different descending displacements and different rotation angles around a preset axis at various key points of the flexible circuit board, the preset axis including a line connecting the centers of any two of the four positioning posts;

[0008] Constructing a deep learning network model for generating a corrected image according to the restored image of the input flexible circuit board, wherein the loss function of the deep learning network model includes a deformation degree term, a structural similarity term and a mean square error term, wherein the deformation degree term is used to reflect the similarity of deformation between the restored image and the corrected image, the structural similarity term is used to reflect the structural similarity between the restored image and the corrected image, and the mean square error term is used to reflect the similarity at the pixel level between the restored image and the corrected image;

[0009] Training the deep learning network model through the image samples;

[0010] Inputting the current image of the flexible circuit board into the trained deep learning network model to obtain a corrected target image;

[0011] Defect determination is performed according to the target image.

[0012] Optionally, the key point of the flexible circuit board is the intersection of the axis of each of the adsorption ports and the bottom surface of the flexible circuit board.

[0013] Optionally, the deformation degree term A is determined according to the following formula:

[0014]

[0015] Among them, a1, a 2i 、a 3j is the preset control coefficient, θ is the rotation angle of the flexible circuit board around a preset axis, z i is the vertical coordinate difference between the i-th key point of the restored image and the corrected image, zc j is the vertical coordinate difference of the jth corner point between the restored image and the corrected image.

[0016] Optionally, a1 when θ is less than 1 is greater than a1 when θ is greater than or equal to 1.

[0017] Optionally, when θ is of the same size, a1 when θ is the rotation angle of the flexible circuit board around the first axis is greater than a1 when θ is the rotation angle of the flexible circuit board around the second axis, the first axis is one of the four sides of the rectangle formed by the center line of the four positioning posts, and the second axis is one of the two diagonals of the rectangle formed by the center line of the four positioning posts.

[0018] Optionally, the structural similarity term B is determined according to the following formula:

[0019]

[0020] Wherein, b1 and b2 are constant terms, μ1 is the mean value of the pixel values ​​of each pixel of the restored image, μ2 is the mean value of the pixel values ​​of each pixel of the corrected image, σ1 is the standard deviation of the pixel values ​​of each pixel of the restored image, σ2 is the standard deviation of the pixel values ​​of each pixel of the corrected image, and σ 12 is the covariance of each pixel value between the restored image and the corrected image.

[0021] Optionally, the mean square error term C is determined according to the following formula:

[0022]

[0023] Wherein, M and N are the total number of rows and columns of pixels of the restored image, I(i, j) is the intensity value of the pixel in the i-th row and j-th column of the restored image, and I'(i, j) is the intensity value of the pixel in the i-th row and j-th column of the corrected image.

[0024] Optionally, the loss function L is determined according to the following formula:

[0025] L = k1*A+k2*(1-B)+k3*C;

[0026] Among them, k1, k2 and k3 are weight coefficients.

[0027] Optionally, k1 is greater than any value of k2 and k3.

[0028] In particular, the present application also provides an AI-enabled flexible circuit board defect detection device, including:

[0029] A visual device, used to collect image information of the flexible circuit board to be inspected;

[0030] The detection base is provided with a limit groove, and the four corner points of the limit groove are respectively provided with limit holes;

[0031] A fixture is located in the limiting groove, the fixture is provided with positioning columns corresponding to the limiting holes one by one, and the fixture is also provided with a plurality of adsorption ports for providing adsorption force for adsorbing the flexible circuit board to be detected;

[0032] A defect inspection module is used to implement the AI-enabled flexible circuit board defect detection method described in any of the above items.

[0033] According to the first aspect of the present invention, a deep learning network model is used to correct an image in a defect detection method for a flexible circuit board. Since the image samples used when training the deep learning network model include samples with different descent displacements and different rotation angles around a preset axis at each key point of the flexible circuit board, and the deep learning network model includes a similarity for reflecting the deformation of the restored image and the corrected image, it can be adapted to the deformation of the flexible circuit board in the above situation. At the same time, the loss function also includes a structural similarity term for reflecting the structural similarity between the restored image and the corrected image and a mean square error term for reflecting the pixel-level similarity between the restored image and the corrected image, so it can reflect the overall similarity of the image, thereby improving the defect detection in the above-mentioned specific scenario, so that the corrected image can reflect the actual image deformation, thereby improving the defect detection accuracy.

[0034] According to the second aspect of the invention, the present application also provides a specific loss function. The deformation degree term in the loss function can reflect the combined influence of the overall deformation and local deformation of the flexible circuit board by taking the rotation angle of the flexible circuit board as the scaling factor and multiplying it with the sum of the squares of the vertical coordinate differences at each key point. This allows the trained deep learning network model to more accurately reflect the actual deformation of the flexible circuit board, that is, the output corrected image is more accurate, thereby improving the accuracy of defect detection.

[0035] Furthermore, the control coefficient a1 of the deformation degree item before the rotation angle θ in the present embodiment is determined according to whether θ is less than 1°, so that the influence of deformation at a smaller rotation angle can be amplified, and more corrections can be given to the deformation of the flexible circuit board when it is rotated at a small angle, so as to adapt to most cases where such small deformations occur in the flexible circuit board, thereby making the model more in line with actual needs.

[0036] Furthermore, when the flexible circuit board rotates at the same angle, the deformation degree item amplifies the impact of the rotation on the deformation when the flexible circuit board rotates around the diagonal of the target rectangle. This is because when the flexible circuit board rotates around the diagonal of the target rectangle, the impact on its local defects is greater than the impact when the flexible circuit board rotates around one side of the target rectangle. Therefore, the inspection accuracy can be further improved. BRIEF DESCRIPTION OF THE DRAWINGS

[0037] Figure 1 This is a flow chart of an AI-enabled flexible circuit board defect detection method according to an embodiment of the present invention;

[0038] Figure 2 This is a schematic diagram of the structure of an AI-enabled flexible circuit board defect detection device according to an embodiment of the present invention;

[0039] Figure 3This is a schematic diagram of the bottom-up structure of a fixture for an AI-enabled flexible circuit board defect detection device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0040] In order to make the above-mentioned purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are described in detail below in conjunction with the accompanying drawings. It is to be understood that the specific embodiments described herein are only used to explain the present application, rather than to limit the present application. It should also be noted that, for ease of description, only some structures related to the present application are shown in the accompanying drawings, rather than all structures. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.

[0041] The terms "including" and "having" and any variations thereof in this application are intended to cover non-exclusive inclusions. For example, a process, method, system, product or device comprising a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, products or devices.

[0042] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.

[0043] Figure 1 The present invention is a flowchart of an AI-enabled flexible circuit board defect detection method according to an embodiment of the present invention. Figure 2 This is a schematic diagram of the structure of an AI-enabled flexible circuit board defect detection device according to an embodiment of the present invention. Figure 3 Schematic diagram of the bottom view of the fixture 30 of the AI-enabled flexible circuit board defect detection device according to one embodiment of the present invention. This application proposes a corresponding defect detection method for a specific flexible circuit board defect detection device, such as Figure 2In the illustrated embodiment, the apparatus includes a visual device 10, a detection base 20, a fixture 30, and a defect inspection module (not shown). The visual device 10 is used to collect image information of the flexible circuit board 100 to be detected. The visual device 10 here includes a plurality of cameras arranged at different angles, which can detect the vertical coordinates of the flexible circuit board 100 on the fixture 30, that is, the coordinates perpendicular to the horizontal plane. The detection base 20 is provided with a limiting groove, and the four corner points of the limiting groove are respectively provided with limiting holes, and the limiting groove is a rectangular groove. The fixture 30 is rectangular and is located in the limiting groove. Positioning columns 32 corresponding to the limiting holes are provided at the bottom surface of the fixture 30 (see Figure 3 ), the jig 30 is also provided with a plurality of suction ports 31, which penetrate the jig 30 in the thickness direction of the jig 30, and the plurality of suction ports 31 are used to provide suction force for suctioning the flexible circuit board 100 to be tested. In one embodiment, a connecting port connected to the suction device is provided in the limiting groove, and the connecting port is also connected to all suction ports 31. In other embodiments, a plurality of connecting ports connected to each suction port 31 may be provided in the limiting groove, as long as the suction end of the suction device can be connected to the suction port 31, and the suction device may adopt any vacuum suction device in the prior art. When the flexible circuit board 100 is positioned by the above-mentioned jig 30, when there is a matching deviation between the four positioning posts 32 at the bottom of the jig 30 and the four positioning holes of the detection base 20, the posture of the flexible circuit board 100 will be affected as a whole. In addition, due to the unstable adsorption force of the multiple adsorption ports 31, local deformation of the flexible circuit board 100 may also be caused. For example, the suction force at some adsorption ports 31 is significantly greater than the preset value. Due to the soft characteristics of the flexible circuit board 100 itself, it is likely to cause local depression of the flexible circuit board at that location. Combined with the posture change of the flexible circuit board 100 caused by the aforementioned jig 30, it may eventually affect the accuracy of both global defects and local defects of the flexible circuit board. Based on this, the present application provides an AI-enabled flexible circuit board defect detection method, such as Figure 1 As shown, in one embodiment, the detection method includes the following steps:

[0044] Step S100, generating image samples of the flexible circuit board under different deformation conditions, the image samples including samples with different descending displacements at various key points of the flexible circuit board and different rotation angles around a preset axis, the preset axis including a line connecting the centers of any two of the four positioning columns;

[0045] Step S200, constructing a deep learning network model for generating a corrected image according to the restored image of the input flexible circuit board, wherein the loss function of the deep learning network model includes a deformation degree term, a structural similarity term and a mean square error term, wherein the deformation degree term is used to reflect the similarity of deformation between the restored image and the corrected image, the structural similarity term is used to reflect the structural similarity between the restored image and the corrected image, and the mean square error term is used to reflect the similarity at the pixel level between the restored image and the corrected image;

[0046] Step S300, training a deep learning network model through image samples;

[0047] Step S400, inputting the current image of the flexible circuit board into the trained deep learning network model to obtain a corrected target image;

[0048] Step S500, performing defect determination according to the target image.

[0049] In step S100, data enhancement technology can be used to transform the flexible circuit board image to generate more samples. Commonly used data enhancement methods include rotation, flipping, scaling, translation and other operations. It should be noted that the image samples here must include specific samples with a certain data volume, that is, the samples need to cover different key points on the flexible circuit board with different combinations of two features: different descending displacements and different rotation angles around the preset axis. In one embodiment, the key point of the flexible circuit board is the intersection of the axis of each adsorption port 31 and the bottom surface of the flexible circuit board 100. In other embodiments, the key point can also be a point set according to the inspection requirements, such as the pin position, solder joint position, etc. The preset axis is the rectangle formed by the center line of the four positioning columns (hereinafter referred to as the target rectangle, see Figure 3 The four sides and two diagonals of the dotted box ABCD).

[0050] The restored image in step S200 refers to the image before data enhancement, that is, the original image before deformation.

[0051] In step S300, the training is terminated when the value of the loss function is stably less than a preset threshold.

[0052] In the flexible circuit board defect detection method of the present embodiment, a deep learning network model is used to correct the image. Since the image samples used in training the deep learning network model include samples with different descent displacements and different rotation angles around a preset axis at various key points on the flexible circuit board, and the deep learning network model includes a similarity for reflecting the deformation of the restored image and the corrected image, it can be adapted to the deformation of the flexible circuit board in the above situation. At the same time, the loss function also includes a structural similarity term for reflecting the structural similarity between the restored image and the corrected image and a mean square error term for reflecting the pixel-level similarity between the restored image and the corrected image, so it can reflect the overall similarity of the image, thereby improving the defect detection in the above-mentioned specific scenario, so that the corrected image can reflect the actual image deformation, thereby improving the defect detection accuracy.

[0053] In one embodiment, the deformation degree term A is determined according to the following formula (1):

[0054]

[0055] Among them, a1, a 2i 、a 3j is the preset control coefficient, θ is the rotation angle of the flexible circuit board around a preset axis, z i is the vertical coordinate difference between the i-th key point of the restored image and the corrected image, zc j is the vertical coordinate difference of the jth corner point between the restored image and the corrected image.

[0056] a 2i 、a 3j is a preset control coefficient, which can be set according to experience. For example, in the application scenario of this embodiment, θ is a relatively small value, which may be less than 1 (i.e., 1°). a1*θ is used as a scaling factor, and a1 can be set according to specific needs. For example, a1 when θ is less than 1 is greater than a1 when θ is greater than or equal to 1. For example, when θ is less than 1, a1 is taken as a12, and when θ is greater than or equal to 1, a1 is taken as a13. At this time, a12 is greater than a13, so as to amplify the influence of various deformations when θ is less than 1.

[0057] In a further embodiment, when θ is the same in size, a1 when θ is the rotation angle of the flexible circuit board around the first axis is greater than a1 when θ is the rotation angle of the flexible circuit board around the second axis, the first axis is one of the four sides of the target rectangle, and the second axis is one of the two diagonals of the target rectangle, that is, assuming that the corresponding a1 when the flexible circuit board is θ1 around the straight line AC or the straight line BD is a13, and the corresponding a1 when the flexible circuit board is θ2 around the straight line AB, the straight line BC, the straight line CD or the straight line AD is a14, if θ1=θ2, then a13 is greater than a14. Such a setting can enhance the influence of the flexible circuit board when rotating around the diagonal of the target rectangle compared to the rotation around the side of the target rectangle.

[0058] The structural similarity term B is determined according to the following formula (2):

[0059]

[0060] Wherein, b1 and b2 are constant terms used to make the denominator and numerator non-zero, μ1 is the mean value of the pixel values ​​of each pixel in the restored image, μ2 is the mean value of the pixel values ​​of each pixel in the corrected image, σ1 is the standard deviation of the pixel values ​​of each pixel in the restored image, σ2 is the standard deviation of the pixel values ​​of each pixel in the corrected image, and σ 12 is the covariance of each pixel value of the restored image and the corrected image.

[0061] The above pixel values ​​are the brightness values ​​of each pixel. During the specific calculation, the brightness values ​​of each color of each pixel are first converted into grayscale values, and the grayscale values ​​are used to represent the above brightness values. Grayscale value = 0.2989×R+0.5870×G+0.1140×B, where R is the brightness value of red, G is the brightness value of green, and B is the brightness value of blue.

[0062] σ in formula (2) 12 Calculated according to the following formula (3):

[0063]

[0064] Where Q is the total number of pixels, P 1k is the pixel value of the kth pixel of the restored image, P 2k is the pixel value of the kth pixel of the corrected image.

[0065] The mean square error term C is determined according to the following formula (4):

[0066]

[0067] Wherein, M and N are the total number of rows and columns of pixels of the restored image, I(i, j) is the intensity value of the pixel in the i-th row and j-th column of the restored image, and I'(i, j) is the intensity value of the pixel in the i-th row and j-th column of the corrected image. Here, the intensity value of the pixel can be the grayscale value of the pixel or the sum of the intensity values ​​of each color of the pixel.

[0068] The loss function L is determined according to the following formula (5):

[0069] L=k1*A+k2*(1-B)+k3*C(5)

[0070] Among them, k1, k2 and k3 are weight coefficients.

[0071] In this embodiment, A, B, and C are all values ​​between 0 and 1, and k1, k2, and k3 can be set to equal values ​​or different values ​​as required. In one embodiment, k1 is greater than any value of k2 and k3.

[0072] This embodiment provides a specific loss function. The deformation degree term in the loss function can reflect the combined influence of the overall deformation and local deformation of the flexible circuit board by taking the rotation angle of the flexible circuit board as the scaling factor and multiplying it with the sum of the squares of the vertical coordinate differences at each key point. This enables the trained deep learning network model to more accurately reflect the actual deformation of the flexible circuit board, that is, the output corrected image is more accurate, thereby improving the accuracy of defect detection.

[0073] Furthermore, the control coefficient a1 of the deformation degree item before the rotation angle θ in the present embodiment is determined according to whether θ is less than 1°, so that the influence of deformation at a smaller rotation angle can be amplified, and more corrections can be given to the deformation of the flexible circuit board when it is rotated at a small angle, so as to adapt to most cases where such small deformations occur in the flexible circuit board, thereby making the model more in line with actual needs.

[0074] Furthermore, in this embodiment, when the flexible circuit board rotates at the same angle, the deformation degree item amplifies the impact of the rotation on the deformation when the flexible circuit board rotates around the diagonal of the target rectangle. This is because when the flexible circuit board rotates around the diagonal of the target rectangle, the impact on its local defects is greater than the impact when the flexible circuit board rotates around one side of the target rectangle. Therefore, the correction method of this embodiment can further improve the inspection accuracy.

[0075] In one embodiment, the deep learning network model is a generative adversarial network model having a generator and a discriminator, and the loss function is the loss function of the generator.

[0076] like Figure 2As shown, one embodiment of the present application also provides an AI-enabled flexible circuit board defect detection device, which includes a visual device 10, a detection base 20, a fixture 30 and a defect inspection module (not shown). The defect inspection module is used to implement the AI-enabled flexible circuit board defect detection method in any of the above embodiments.

[0077] The above-mentioned embodiments only express several implementation methods of the present invention, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the invention patent. It should be pointed out that, for ordinary technicians in this field, several variations and improvements can be made without departing from the concept of the present invention, and these all belong to the protection scope of the present invention. Therefore, the protection scope of the patent of the present invention shall be subject to the attached claims.

Claims

1. An AI-enabled flexible circuit board defect detection method, wherein the flexible circuit board to be detected is fixed on a detection base by a rectangular fixture, the fixture is arranged in a limiting groove on the detection base, and positioning columns are provided at the four corner points of the fixture, the positioning columns cooperate with the limiting holes at the bottom surface of the limiting groove, and the fixture is provided with a plurality of adsorption ports for providing adsorption force for adsorbing the flexible circuit board to be detected, characterized in that: The method comprises: Generate image samples of the flexible circuit board under different deformation conditions, the image samples including samples with different descending displacements and different rotation angles around a preset axis at various key points of the flexible circuit board, the preset axis including a line connecting the centers of any two of the four positioning posts; Constructing a deep learning network model for generating a corrected image according to the restored image of the input flexible circuit board, wherein the loss function of the deep learning network model includes a deformation degree term A, a structural similarity term B and a mean square error term C, wherein the deformation degree term A is used to reflect the similarity of deformation between the restored image and the corrected image, the structural similarity term B is used to reflect the structural similarity between the restored image and the corrected image, and the mean square error term C is used to reflect the similarity at the pixel level between the restored image and the corrected image; Training the deep learning network model through the image samples; Inputting the current image of the flexible circuit board into the trained deep learning network model to obtain a corrected target image; Perform defect determination according to the target image; The deformation degree term A is determined according to the following formula: Among them, a1, a 2i 、a 3j is the preset control coefficient, θ is the rotation angle of the flexible circuit board around a preset axis, z i is the vertical coordinate difference between the i-th key point of the restored image and the corrected image, zc j is the vertical coordinate difference between the jth corner point of the restored image and the corrected image, and n is the total number of key points; The structural similarity term B is determined according to the following formula: Wherein, b1 and b2 are constant terms, μ1 is the mean value of the pixel values ​​of each pixel of the restored image, μ2 is the mean value of the pixel values ​​of each pixel of the corrected image, σ1 is the standard deviation of the pixel values ​​of each pixel of the restored image, σ2 is the standard deviation of the pixel values ​​of each pixel of the corrected image, and σ 12 is the covariance of each pixel value of the restored image and the corrected image; The mean square error term C is determined according to the following formula: Wherein, M and N are the total number of rows and columns of pixels of the restored image, I(s, t) is the intensity value of the pixel in the sth row and tth column of the restored image, I'(s, t) is the intensity value of the pixel in the sth row and tth column of the corrected image, p is the number of rows, and q is the number of columns; The loss function L is determined according to the following formula: L = k1*A+k2*(1-B)+k3*C; Among them, k1, k2 and k3 are weight coefficients.

2. The AI-enabled flexible circuit board defect detection method according to claim 1 is characterized in that: The key point of the flexible circuit board is the intersection of the axis of each adsorption port and the bottom surface of the flexible circuit board.

3. The AI-enabled flexible circuit board defect detection method according to claim 1 or 2, characterized in that: When θ is less than 1, the value of a1 is a12; When θ is greater than or equal to 1, the value of a1 is a13; a12 is greater than a13.

4. The AI-enabled flexible circuit board defect detection method according to claim 1 or 2, characterized in that: When the rotation angle of the flexible circuit board around the first axis is θ1, the value of a1 is a13; When the rotation angle of the flexible circuit board around the second axis is θ2, the value of a1 is a14; When θ1=θ2, a13 is greater than a14; The first axis is one of the four sides of a rectangle formed by the center lines of the four positioning posts, and the second axis is one of the two diagonal lines of a rectangle formed by the center lines of the four positioning posts.

5. The AI-enabled flexible circuit board defect detection method according to claim 1 or 2, characterized in that: k1 is greater than any value of k2 and k3.

6. An AI-enabled flexible circuit board defect detection device, characterized in that: include: A visual device, used to collect image information of the flexible circuit board to be inspected; The detection base is provided with a limit groove, and the four corner points of the limit groove are respectively provided with limit holes; A fixture is located in the limiting groove, the fixture is provided with positioning columns corresponding to the limiting holes one by one, and the fixture is also provided with a plurality of adsorption ports for providing adsorption force for adsorbing the flexible circuit board to be detected; A defect inspection module, used to implement the AI-enabled flexible circuit board defect detection method described in any one of claims 1-5.