FPC defect detection method, system and storage medium based on HSV and CNN
By combining HSV and CNN methods, the defect areas of FPC are initially screened and deep learning models are used to identify uncertain products, which solves the problems of low efficiency and insufficient accuracy of traditional detection methods, and achieves low-cost, high-precision FPC defect detection.
Patent Information
- Application Number
- CN202111553831.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-12-17
- Publication Date
- 2024-10-25
- Estimated Expiration
- 2041-12-17
AI Technical Summary
Traditional FPC defect detection methods rely on manual visual inspection, which is costly and inefficient. Traditional image processing methods are sensitive to thresholds. Deep learning methods take a long time to train and infer, making it difficult to adapt to high-speed inspection scenarios.
Using a combined method based on HSV and CNN, candidate defect areas are initially screened out through image processing, a pre-trained deep learning model is used to identify uncertain products, and HSV spatial features and deep learning models are combined for detection.
It achieves low cost and high detection accuracy, shortens algorithm deployment time and inference speed, improves robustness and detection accuracy, and adapts to high-speed detection scenarios.
Smart Images

Figure CN114266743B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of intelligent manufacturing technology, and more specifically to an FPC defect detection method, system and storage medium based on HSV and CNN. Background Art
[0002] Traditional quality inspection for flexible printed circuits (FPC) still relies mainly on manual visual inspection, which is costly and inefficient. However, with the rapid development of the electronics industry, circuit board design is becoming more and more high-precision and high-density. Traditional manual inspection methods can no longer meet production needs, and automated inspection of FPC defects has become an inevitable trend in industrial development.
[0003] At present, the following methods are commonly used for automated detection of FPC defects: (1) Traditional image processing methods, which manually design corresponding differentiation algorithms based on the color, shape, position and other features of defects, then set key thresholds, and finally detect good and bad products; this method is easily affected by the set thresholds. In industrial production scenarios, many factors will change, such as the color and shape of products in different batches; different lighting and camera parameters are different, which makes the traditional processing method very sensitive to threshold parameters. Slight changes in the image will greatly reduce the accuracy of the program, and the generalization ability is very low. (2) Deep learning methods, the deep learning method used in industrial detection is usually a convolutional neural network (CNN), which can identify relatively abstract features in the image that are difficult to manually design. A large number of images are used to train the CNN model, so that the CNN model has the ability to sort good and bad products. This method requires a large number of image samples for long-term training, and also needs to run on the GPU. In addition, the time it takes for the model to infer and predict the target each time is much longer than that of traditional image processing methods, making it difficult to adapt to certain detection scenarios that require high-speed operation. Summary of the invention
[0004] In view of this, the present invention provides an FPC defect detection method, system and storage medium based on HSV and CNN, which performs defect detection on the FPC to be inspected by combining image processing and deep learning models, and has the advantages of low cost and high precision.
[0005] In order to achieve the above object, the present invention adopts the following technical solution:
[0006] A FPC defect detection method based on HSV and CNN, comprising:
[0007] Extract the detection area in the original image to be detected according to color and brightness;
[0008] The original image to be inspected is converted from the RGB color space to the HSV color space, and the candidate defect area is preliminarily determined from the HSV color space according to the preset defect parameters;
[0009] Taking the intersection between the candidate defect area and the detection area as the final defect area;
[0010] Compare the final defect area with a preset threshold value to determine whether the FPC currently being tested is a good product, a defective product, or an uncertain product;
[0011] The pre-trained deep learning model is used to identify the detection area of the uncertain product and predict whether the uncertain product is a good product or a defective product.
[0012] Optionally, in the above-mentioned FPC defect detection method based on HSV and CNN, the step of extracting the detection area in the original image to be inspected according to color and brightness includes:
[0013] Extract the mask in the original image to be inspected according to color and brightness to obtain a mask image;
[0014] The mask image and the original image to be inspected are ANDed to obtain the inspection area.
[0015] Optionally, in the above-mentioned FPC defect detection method based on HSV and CNN, extracting the mask in the original image to be inspected according to color and brightness to obtain the mask image includes:
[0016] Adjust the size of the original image to be inspected to a fixed size;
[0017] Extract the values of the three channels of RGB of the original image to be tested, add the R channel value and the G channel value and then calculate the average to get the brightness value of each pixel;
[0018] Pixels with brightness values higher than a threshold are identified as being included in the detection area, thereby obtaining a preliminary mask image;
[0019] The initially obtained mask image is sequentially expanded and eroded to obtain a final mask image.
[0020] Optionally, in the above-mentioned FPC defect detection method based on HSV and CNN, the mask image and the original image to be inspected are ANDed using the following formula:
[0021]
[0022] Among them, I region Indicates the detection area of the original image to be detected, mask(I org ) represents the mask image, src(I org ) represents a pixel value in the original image.
[0023] Optionally, in the above-mentioned FPC defect detection method based on HSV and CNN, the preset threshold parameter is obtained based on the dirty color debugging in typical samples.
[0024] Optionally, in the above-mentioned FPC defect detection method based on HSV and CNN, comparing the final defect region area with a preset threshold value to determine whether the currently detected FPC is a good product, a defective product, or an uncertain product includes:
[0025] Calculate the brightness average and brightness standard deviation of the final defect area;
[0026] Set a first brightness average value threshold, a second brightness average value threshold, a first brightness standard deviation threshold, and a second brightness standard deviation threshold respectively;
[0027] If the brightness average value of the final defective area is less than the first brightness average value threshold, and the brightness standard deviation is less than the first brightness standard deviation threshold, the currently detected FPC is judged to be a good product; if the brightness average value of the final defective area is greater than the second brightness average value threshold, and the brightness standard deviation is greater than the second brightness standard deviation threshold, the currently detected FPC is judged to be a defective product; in all other cases, the currently detected FPC is judged to be an uncertain product.
[0028] Optionally, in the above-mentioned FPC defect detection method based on HSV and CNN, the training process of the deep learning model is:
[0029] Build a deep learning model based on residual network;
[0030] Obtaining an FPC sample image, and extracting a detection area image of the FPC sample image as a training sample;
[0031] The training samples are subjected to data enhancement processing and scaled to a fixed size, and then the deep learning model is trained to obtain the final deep learning model.
[0032] Through the above technical solutions, it can be known that compared with the prior art, the present invention discloses a FPC defect detection method based on HSV and CNN, which uses an image processing method based on HSV spatial feature recognition to preliminarily screen the FPC to be inspected, first sorting out the easier to identify, conventional laser cutting defects, and handing over the defective objects with large changes, uncommon, and inaccurate judgment to the deep learning model for inference, which has the advantages of low detection time cost and high detection accuracy. Compared with the traditional detection that relies solely on image processing methods, the present invention not only retains the advantages of short algorithm deployment time and fast inference speed, but also can well describe high-dimensional features, can detect small changes in the inspected object, and has high robustness; compared with the detection method that relies solely on deep learning, it has the advantage of short training time while retaining high accuracy.
[0033] The present invention also provides an FPC defect detection system based on HSV and CNN, comprising:
[0034] The detection area extraction module is used to extract the detection area in the original image to be detected according to color and brightness;
[0035] The candidate defect area detection module is used to convert the original image to be inspected from the RGB color space to the HSV color space, and preliminarily determine the candidate defect area from the HSV color space according to the preset defect parameters;
[0036] A final defect area determination module, used for taking the intersection between the candidate defect area and the detection area as the final defect area;
[0037] A good and bad product screening module, used to compare the final defect area with a preset threshold value to determine whether the currently inspected FPC is a good product, a bad product, or an uncertain product; and
[0038] The deep learning detection module is used to use a pre-trained deep learning model to identify the detection area of uncertain products and predict whether the uncertain products are good or defective.
[0039] Optionally, in the above-mentioned FPC defect detection system based on HSV and CNN, the detection area extraction module includes:
[0040] A first extraction unit is used to extract the mask in the original image to be inspected according to color and brightness to obtain a mask image; and
[0041] The second extraction unit is used to perform an AND operation on the mask image and the original image to be detected to obtain the detection area.
[0042] The present invention also provides a storage medium on which a computer program is stored. When the computer program is run by a processor, the steps of the above-mentioned FPC defect detection method based on HSV and CNN are executed. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying creative work.
[0044] Figure 1 A flow chart of the FPC defect detection method based on HSV and CNN provided by the present invention;
[0045] Figure 2A schematic diagram of the good product structure of the FPC provided by the present invention;
[0046] Figure 3 A schematic diagram of the defective structure of the FPC provided by the present invention;
[0047] Figure 4 A mask diagram provided by the present invention;
[0048] Figure 5 A binary image of a candidate defect region provided by the present invention;
[0049] Figure 6 A schematic diagram of the final defect area within the detection area provided by the present invention;
[0050] Figure 7 A schematic diagram of the final defect area provided by the present invention in the original image to be inspected;
[0051] Figure 8 A schematic diagram of the structure of the detection area provided by the present invention;
[0052] Fig. 9 The basis for determining the two thresholds of the brightness average value provided by the present invention;
[0053] Fig.10 The basis for determining the two thresholds of the brightness standard deviation provided by the present invention;
[0054] Fig.11 This is a schematic diagram of the structure of the FPC defect detection system based on HSV and CNN provided by the present invention. DETAILED DESCRIPTION
[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0056] like Figure 1 As shown, the embodiment of the present invention discloses a FPC defect detection method based on HSV and CNN, comprising the following steps:
[0057] S1, extracting the detection area in the original image to be detected according to color and brightness;
[0058] S2, converting the original image to be inspected from the RGB color space to the HSV color space, and preliminarily determining the candidate defect area from the HSV color space according to the preset defect parameters;
[0059] S3, taking the intersection between the candidate defect area and the detection area as the final defect area;
[0060] S4, comparing the final defect area with the preset threshold value to determine whether the currently inspected FPC is a good product, a defective product, or an uncertain product;
[0061] S5. Use the pre-trained deep learning model to identify the detection area of the uncertain product and predict whether the uncertain product is a good product or a defective product.
[0062] The above steps are further described below.
[0063] S1. Extract the detection area in the original image to be detected according to color and brightness; specifically including:
[0064] S11, extracting the mask in the original image to be inspected according to color and brightness to obtain a mask image.
[0065] S111, adjusting the size of the original image to be inspected to a fixed size;
[0066] S112, extracting the values of the three channels of RGB of the original image to be inspected, adding the value of the R channel and the value of the G channel and then averaging them to obtain the brightness value of each pixel;
[0067] S113, pixels with brightness values higher than a threshold are identified as being included in the detection area, and a preliminary mask image is obtained;
[0068] S114, performing dilation processing and corrosion processing on the initially obtained mask image in sequence to obtain a final mask image.
[0069] In FPC inspection, not the entire image is the inspection area, only the key areas need to be inspected. Figure 2 The highlighted area in is the detection area. First, the image size needs to be set to 3000*2000, because the size of the operation kernel for subsequent processing is fixed. If the image size is not fixed, it will affect the effect of the operator. Then, extract the values of the three channels of RGB in the image. Since yellow is a mixture of red and green, add the values of the R channel and the G channel and then calculate the average. This value is used as the brightness value of yellow. When the brightness value of the pixel point is higher than the threshold T, the pixel will be considered to be in the detection area, and the pixel is set to 255, otherwise it is set to 0, and the preliminary mask image I is obtained. mask .
[0070]
[0071] Since not all pixels in the detection area have brightness values higher than the threshold, for example, if the pixel brightness at the defect is low, the defect is likely to be classified outside the detection area. At the same time, misidentification noise is also likely to occur outside the detection area. Therefore, morphological processing is required. First, the mask image Imask Dilation is performed with a calculation size of 5x5 for 5 consecutive times to ensure that the defect is included in the highlight area. Then corrosion is performed with a calculation kernel size of 5x5 for 7 consecutive times to reduce the noise outside the detection area as much as possible. The final mask is as follows: Figure 4 This can not only keep the defect intact, but also remove the irrelevant areas.
[0072] S12, performing an AND operation on the mask image and the original image to be inspected to obtain a detection area.
[0073] The final mask image I mask and the original image to be inspected I org Perform AND operation to obtain the image I of the detection area region . (I mask That is, mask(I org ))
[0074]
[0075] The above formula indicates that if mask(Iorg)≠0, the original pixel value is retained; if mask(Iorg)=0, the original pixel value is set to 0, I region Indicates the detection area of the original image to be detected, mask(I org ) represents the mask image, src(I org ) represents a pixel value in the original image.
[0076] S2. Preliminarily determine the candidate defect area from the HSV color space.
[0077] Convert the image from RGB color space to HSV color space. HSV is a relatively intuitive color model, including hue, saturation, and value, which can easily solve the problem of inaccurate detection caused by light source changes. Combined with the dirty color in typical samples, debug to obtain suitable threshold parameters, control the three parameters of H, S, and V within a certain range, filter out dirty areas, and generate a binary image of candidate defect areas. all_dirt ,like Figure 5 shown.
[0078] S3. The intersection between the candidate defect area and the detection area is taken as the final defect area.
[0079] It is determined whether the candidate defect area detected by S2 is within the detection area. Therefore, I all_dirt with I region Perform intersection operation to obtain the final defect area I dirt ,like Figure 6 and Figure 7 shown.
[0080] Figure 5 The candidate defect areas (all white areas) include true defects and false defects. Figure 5 The true defect is a white line, and the false defect is the white blocks on both sides (the false defect refers to the part outside the detection area that is similar in color to the true defect); Figure 6 , Figure 7 Only true defects, i.e. areas of the wire, are shown.
[0081] S4, comparing the final defect area with the preset threshold value to determine whether the currently inspected FPC is a good product, a defective product, or an uncertain product; specifically including:
[0082] S41, calculating the brightness average and brightness standard deviation of the final defect area;
[0083] S42, respectively setting a first brightness average threshold, a second brightness average threshold, a first brightness standard deviation threshold, and a second brightness standard deviation threshold; wherein the first brightness average threshold is less than the second brightness average threshold, and the first brightness standard deviation threshold is less than the second brightness standard deviation threshold;
[0084] S43, if the brightness average value of the final defective area is less than the first brightness average value threshold, and the brightness standard deviation is less than the first brightness standard deviation threshold, the currently detected FPC is determined to be a good product; if the brightness average value of the final defective area is greater than the second brightness average value threshold, and the brightness standard deviation is greater than the second brightness standard deviation threshold, the currently detected FPC is determined to be a defective product; in all other cases, the currently detected FPC is determined to be an uncertain product. Figure 2 and Figure 3 The following are the good and defective images of FPC.
[0085] In a specific embodiment, in the final defect area binary image I dirt According to the detection area, the final defect area binary image I is calculated dirt The average brightness value within c and brightness standard deviation stddev c In order to distinguish good products, defective products, and uncertain products, the average brightness value mean c and brightness standard deviation stddev c Two thresholds are set respectively, and the results are divided into three categories: good products, uncertain products and defective products. Two thresholds are set for both the brightness mean and the brightness standard deviation. Good_gray is used to separate good products from uncertain products, and gray_NG is used to separate uncertain products from defective products. Good_gray<gray_NG.
[0086] See the following table for setting Fig. 9 , Fig.10 ; Fig. 9 Determine the two thresholds of mean, Fig.10 Determine the two thresholds of std. The setting process is:
[0087] (1) First, use the above method to calculate the average brightness and brightness standard deviation of each sample for the entire set of good products and defective products.
[0088] (2) The results of (1) are statistically analyzed and two thresholds are used to demarcate the intersection area between good and defective products. The intersection area means that both defective and good products exist in this area and cannot be distinguished. Deep learning methods are needed to distinguish them.
[0089] The two thresholds for the mean brightness are mean_Good_Gray and mean_Gray, and the two thresholds for the standard deviation are std_Good_Gray and std_Gray_NG. c Less than mean_Good_Gray, and stddev c When the mean of the sample is less than std_Good_Gray, the sample is judged to be good. c Greater than Mean_Gray_NG, and stddev c When it is greater than std_Gray_NG, the sample is judged as defective; otherwise, it is judged as uncertain. c and brightness standard deviation stddev c The calculation formula is as follows:
[0090] N=Σ I,Mask(I)≠0 1;
[0091]
[0092]
[0093] The above formula indicates that in the mask area (i.e. the area where Mask(I)!=0), I dirt Each pixel value is subtracted from the mean value obtained above and squared, then added up and divided by the total number of pixels, where N represents the number of pixels in an image and I represents the final binary image of the defect area. dirt ; Mask(I) represents a pixel value in the mask generated from the original image; src(I) c I dirt A pixel value.
[0094] S5. Use the pre-trained deep learning model to identify the detection area of the uncertain product and predict whether the uncertain product is a good product or a defective product.
[0095] If the FPC to be inspected cannot be judged as good or bad by the image processing method in S1-S4, the inspection area image I of the FPC to be inspected is region The data is sent to the deep learning model for identification and the quality classification of uncertain products is output.
[0096] The training process of the deep learning model is as follows:
[0097] Build a deep learning model based on residual network;
[0098] Obtaining an FPC sample image, and extracting a detection area image of the FPC sample image as a training sample;
[0099] After the training samples are subjected to data augmentation and scaled to a fixed size, the deep learning model is trained to obtain the final deep learning model.
[0100] Specifically, the CNN model needs to be trained on the GPU for the entire batch of samples before detection. During training, the original image is not used directly, but the detection area image I obtained by S1 is used. region The purpose of this is to avoid erroneous information outside the neural network learning area and reduce the possibility of overfitting during training.
[0101] First, I region The image set is divided into a training set and a test set, with a ratio of 7:3. Since the data must pass through the fully connected layer before the final classification result is output, the size of the input image must be fixed, and all images are scaled to a resolution of 224*224 before entering the network.
[0102] The most commonly used residual network ResNet50 was selected as the neural network model. The output of the network was modified to binary classification. The model parameters were initialized using parameters pre-trained on the ImageNet dataset. The data enhancement method of random horizontal inversion and random floating ±50% brightness was used. The optimizer was Adam, and the learning rate was fixed at 0.00001. The entire dataset was trained 60 times to obtain a neural network recognition model with an accuracy of 99%.
[0103] The detection area image I of the uncertain product obtained by S4 gray Input the neural network model for inference and prediction, and output the classification of good and defective products.
[0104] Through the detection of the above steps S1-S5, the average time consumed for detecting each picture in the image processing methods S1-S4 is 0.05 seconds, and the average time consumed for detecting each picture in the deep learning recognition method S5 is 0.4 seconds.
[0105] like Fig.11As shown, an embodiment of the present invention further provides an FPC defect detection system based on HSV and CNN, including:
[0106] The detection area extraction module is used to extract the detection area in the original image to be detected according to color and brightness;
[0107] The candidate defect area detection module is used to convert the original image to be inspected from the RGB color space to the HSV color space, and preliminarily determine the candidate defect area from the HSV color space according to the preset defect parameters;
[0108] A final defect area determination module, used for taking the intersection between the candidate defect area and the detection area as the final defect area;
[0109] A good and bad product screening module is used to compare the final defect area with a preset threshold value to determine whether the currently inspected FPC is a good product, a bad product, or an uncertain product; and
[0110] The deep learning detection module is used to use a pre-trained deep learning model to identify the detection area of uncertain products and predict whether the uncertain products are good or defective.
[0111] Specifically, the detection area extraction module includes:
[0112] A first extraction unit is used to extract the mask in the original image to be inspected according to color and brightness to obtain a mask image; and
[0113] The second extraction unit is used to perform an AND operation on the mask image and the original image to be detected to obtain a detection area.
[0114] The first extraction unit comprises:
[0115] A size adjustment unit, used for adjusting the size of the original image to be inspected to a fixed size;
[0116] The brightness value calculation unit is used to extract the values of the three channels of RGB of the original image to be inspected, add the R channel value and the G channel value and then calculate the average to obtain the brightness value of each pixel;
[0117] A preliminary mask map extraction unit is used to identify pixels with brightness values higher than a threshold as being included in the detection area to obtain a preliminary mask map;
[0118] The final mask image extraction unit is used to perform dilation processing and corrosion processing on the initially obtained mask image in sequence to obtain a final mask image.
[0119] An embodiment of the present invention further provides a storage medium on which a computer program is stored. When the computer program is executed by a processor, the steps of the above-mentioned FPC defect detection method based on HSV and CNN are executed.
[0120] In this specification, each embodiment is described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The same or similar parts between the embodiments can be referred to each other. For the device disclosed in the embodiment, since it corresponds to the method disclosed in the embodiment, the description is relatively simple, and the relevant parts can be referred to the method part.
[0121] The above description of the disclosed embodiments enables one skilled in the art to implement or use the present invention. Various modifications to these embodiments will be apparent to one skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A FPC defect detection method based on HSV and CNN, characterized in that: include: S1, extracting the detection area in the original image to be detected according to color and brightness; S11, extracting the mask in the original image to be inspected according to color and brightness to obtain a mask image; S111, adjusting the size of the original image to be inspected to a fixed size; S112, extracting the values of the three channels of RGB of the original image to be inspected, adding the value of the R channel and the value of the G channel and then averaging them to obtain the brightness value of each pixel; S113, identifying pixels with brightness values higher than a threshold as being included in the detection area, and obtaining a preliminary mask image; S114, the initially obtained mask image is sequentially expanded and eroded to obtain a final mask image; the mask image is ANDed with the original image to be inspected using the following formula: ; Among them, I region Indicates the detection area of the original image to be detected, mask(I org ) represents the mask image, Represents a pixel value in the original image; S12, performing an AND operation on the mask image and the original image to be inspected to obtain the inspection area; S2, converting the original image to be inspected from the RGB color space to the HSV color space, and preliminarily determining the candidate defect area from the HSV color space according to preset defect parameters, wherein the preset defect parameters are obtained based on the dirt color debugging in the typical sample; S3, taking the intersection of the candidate defect area and the detection area as the final defect area; S4, comparing the final defect area with a preset threshold value to determine whether the currently inspected FPC is a good product, a defective product, or an uncertain product; S41, calculating the brightness average and brightness standard deviation of the final defect area; S42, respectively setting a first brightness average value threshold, a second brightness average value threshold, a first brightness standard deviation threshold, and a second brightness standard deviation threshold; S43, if the brightness average value of the final defective area is less than the first brightness average value threshold, and the brightness standard deviation is less than the first brightness standard deviation threshold, the currently detected FPC is determined to be a good product; if the brightness average value of the final defective area is greater than the second brightness average value threshold, and the brightness standard deviation is greater than the second brightness standard deviation threshold, the currently detected FPC is determined to be a defective product; in all other cases, the currently detected FPC is determined to be an uncertain product; S5. Use the pre-trained deep learning model to identify the detection area of the uncertain product and predict whether the uncertain product is a good product or a defective product.
2. The FPC defect detection method based on HSV and CNN according to claim 1, characterized in that: The training process of the deep learning model is: Build a deep learning model based on residual network; Obtaining an FPC sample image, and extracting a detection area image of the FPC sample image as a training sample; The training samples are subjected to data enhancement processing and scaled to a fixed size, and then the deep learning model is trained to obtain the final deep learning model.
3. An FPC defect detection system based on HSV and CNN, characterized in that: The method according to any one of claims 1 to 2 comprises: The detection area extraction module is used to extract the detection area in the original image to be detected according to color and brightness; The candidate defect area detection module is used to convert the original image to be inspected from the RGB color space to the HSV color space, and preliminarily determine the candidate defect area from the HSV color space according to the preset defect parameters; A final defect area determination module, used for taking the intersection between the candidate defect area and the detection area as the final defect area; A good and bad product screening module, used to compare the final defect area with a preset threshold value to determine whether the currently inspected FPC is a good product, a bad product, or an uncertain product; and The deep learning detection module is used to use a pre-trained deep learning model to identify the detection area of uncertain products and predict whether the uncertain products are good or defective.
4. The FPC defect detection system based on HSV and CNN according to claim 3 is characterized in that: The detection area extraction module comprises: A first extraction unit is used to extract the mask in the original image to be inspected according to color and brightness to obtain a mask image; and The second extraction unit is used to perform an AND operation on the mask image and the original image to be inspected to obtain the inspection area.
5. A storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by the processor, the steps of the FPC defect detection method based on HSV and CNN as described in any one of claims 1 to 2 are performed.
Citation Information
Patent Citations
Quick traffic signal lamp detection method based on depth characteristic learning
CN108108761A
Floor defect automatic detection method based on computer vision and deep learning
CN109859171A
Cloth surface defect detection device and method based on machine vision
CN113777030A
Inspection method for cap top surface
JP2005182143A
