Detection method for liquid crystal panel based on AOI and AI
By combining AOI and AI detection methods in LCD panel detection, and using the Encoder-Decoder model and mask map for secondary screening, the problem of failure to identify unknown defects in traditional detection methods is solved, and a more efficient and accurate detection method is achieved. LCD panel inspection.
Patent Information
- Application Number
- CN202410775059.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-17
- Publication Date
- 2024-10-01
AI Technical Summary
Traditional LCD panel inspection methods rely on manual labor and AOI, and cannot effectively identify unknown defects, resulting in low inspection efficiency and high false detection rate, which cannot meet actual needs.
Adopting detection methods based on AOI and AI, using the AI detection unit for secondary screening after passing the AOI primary screening, using the trained Encoder-Decoder model and mask map to predict defect types, combined with manual re-inspection, to improve detection accuracy and reduce False detection rate.
It significantly reduces the over-detection rate and missed detection rate, improves detection efficiency, reduces labor costs, and improves detection accuracy and production efficiency.
Smart Images

Figure CN118731028A_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of liquid crystal panel detection, and in particular to a liquid crystal panel detection method based on AOI and AI. Background Art
[0002] With the development of electronic technology and manufacturing technology, the density of LCD panels is increasing, and the detection of LCD panels is becoming more and more difficult. As a result, traditional manual detection methods are no longer feasible, and are not satisfactory in terms of detection speed, efficiency and cost control.
[0003] At present, the method for inspecting LCD panels is mostly to first inspect them through AOI, then conduct manual inspection, and finally manually detect good and bad products. Although this improves the inspection efficiency to a certain extent, since the inspection parameters during AOI inspection are set by technicians, there is no warning for unknown LCD panel defects; secondly, the two indicators of the inspection effect, namely the pass rate and the missed inspection rate, are difficult to reach the optimal balance point. Therefore, relying solely on AOI and manual inspection to screen good and bad products in LCD panels can no longer meet actual usage needs. Summary of the invention
[0004] The purpose of the present invention is to overcome the shortcomings of the prior art and provide a liquid crystal panel inspection method based on AOI and AI, which is easy to operate, has low missed detection rate and over-detection rate, high detection efficiency, and meets actual usage needs.
[0005] To achieve the above object, the technical solution adopted by the present invention is: a liquid crystal panel detection method based on AOI and AI, comprising the following steps:
[0006] S1. The AOI inspection unit performs AOI inspection on the products to be inspected, and automatically selects the good products and the bad products;
[0007] S2. The AI detection unit performs AI detection on the primary screening defective products screened out in S1, and automatically screens out the secondary screening good products and secondary screening defective products;
[0008] S3. The defective products in the second screening in step S2 are manually re-inspected to check whether there are any good products.
[0009] Furthermore, the detection method of the AI detection unit includes the following:
[0010] S20, obtaining a mask image of the product image and forming a data set;
[0011] S21. Train the Encoder-Decoder model containing the classification branch:
[0012] The results cls_result1-cls_result4 of each classification branch calculate the cross entropy loss (CE Loss1-CELoss4), the mask image result of the segmentation branch and the mask image in step S20 calculate the binary cross entropy loss (BCE Loss), and the final Total_Loss used for back propagation can be assigned weights:
[0013]
[0014] Among them, wi and α are hyperparameters, which can be adjusted arbitrarily to values that make the model converge better;
[0015] S22. Use the mask image predicted by the segmentation branch as the segmentation result of the model trained in S21:
[0016]
[0017] Among them, wi is the weight of each branch prediction. The thresholds predicted by each branch are added according to the weights and then softmax calculation is performed. The result after softmax is the probability of each defect type predicted by the model. The one with the largest probability is the defect type predicted by the model.
[0018] S23. Automatically screen out the second-screened good products and the second-screened defective products from the first-screened defective products according to the defect types predicted in step S22.
[0019] Furthermore, the steps of S20 are as follows:
[0020] Each picture of the product is normalized, labeled, analyzed, and corrected, then labeled at the pixel level and a corresponding mask image is generated. The mask image contains the category of defects and can be used for loss calculation of the classification branch.
[0021] Furthermore, in step S3, a visual inspection system is added to assist manual work.
[0022] Furthermore, a counter is added in step S3 to automatically count the number of good products.
[0023] Due to the application of the above technical solution, the present invention has the following advantages compared with the prior art:
[0024] The detection method for liquid crystal panels based on AOI and AI of the present invention first performs preliminary screening of good products and preliminary screening of defective products on the product through the AOI detection unit, and then in order to avoid the occurrence of false detection, the AI detection unit is detected again for the preliminary screening defective products. In the AI detection unit, the Encoder-Decoder model including the classification branch is trained and then combined with the obtained mask image to output the defect type predicted by the model, so that the preliminary screening defective products can be automatically detected to obtain the second screening good products, thereby avoiding the preliminary screening defective products being misdetected as defective products due to unknown defects in the AOI that cannot be identified, thereby improving the detection accuracy and reducing the over-detection rate and missed detection rate. BRIEF DESCRIPTION OF THE DRAWINGS
[0025] The technical solution of the present invention is further described below in conjunction with the accompanying drawings:
[0026] Figure 1 A schematic diagram of a flow chart of an embodiment of the present invention;
[0027] Figure 2 This is a schematic diagram of the training logic in step S21 of the present invention. DETAILED DESCRIPTION
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0029] The present invention provides an AOI and AI-based liquid crystal panel inspection method to solve the problem in the prior art that the inspection parameters of AOI inspection products rely on technicians to set, and there is no warning for unknown liquid crystal panel defects, thereby reducing the inspection efficiency and causing a high false detection rate.
[0030] For ease of understanding, the specific process in the embodiments of the present application is described below. Figure 1 In an embodiment of the present application, a method for detecting a liquid crystal panel based on AOI and AI comprises the following steps:
[0031] S1. The AOI inspection unit performs AOI inspection on the products to be inspected, and automatically selects the good products and the bad products;
[0032] In the AOI detection unit, the parameters of the AOI detection unit are all set manually, so the AOI cannot effectively identify the defects of unknown liquid crystal panels, which may cause good products to be mistakenly detected as defective products. Therefore, step S2 is added in the subsequent steps to identify unknown defects in the initial screening of defective products to improve the detection efficiency.
[0033] S2. The AI detection unit performs AI detection on the primary screening defective products screened out in S1, and automatically screens out the secondary screening good products and secondary screening defective products;
[0034] Specifically, in step S2, the detection method of the AI detection unit includes the following:
[0035] S20, obtaining a mask image of the product image and forming a data set;
[0036] Specifically, in step S20, each picture of the product is normalized, labeled, analyzed and corrected, and then pixel-level labeled, and a corresponding mask image is generated. The mask image contains the category of defects and can be used for loss calculation of the classification branch.
[0037] S21. Train the Encoder-Decoder model containing the classification branch:
[0038] The results cls_result1-cls_result4 of each classification branch calculate the cross entropy loss (CE Loss1-CELoss4), the mask image result of the segmentation branch and the mask image in step S20 calculate the binary cross entropy loss (BCE Loss), and the final Total_Loss used for back propagation can be assigned weights:
[0039]
[0040] Among them, wi and α are hyperparameters, which can be adjusted arbitrarily to the values that make the model converge better; Figure 2 This is a logical diagram of step S21 during training.
[0041] S22. Use the mask image predicted by the segmentation branch as the segmentation result of the model trained in S21:
[0042]
[0043] Among them, wi is the weight of each branch prediction. The thresholds predicted by each branch are added according to the weights and then softmax calculation is performed. The result after softmax is the probability of each defect type predicted by the model. The one with the largest probability is the defect type predicted by the model.
[0044] Through the above steps, the defect type of the product can be predicted quickly and effectively, so as to better meet the use needs;
[0045] S23, automatically screen out the second-screened good products and the second-screened bad products from the first-screened bad products by using the defect types predicted in step S22. In this way, the first-screened bad products that are mistakenly detected by the AOI detection unit in step S21 can be converted into second-screened good products, thereby improving the detection efficiency of the product, reducing the missed detection rate, and correspondingly reducing the production cost to a certain extent.
[0046] S3. The defective products in the second screening in step S2 are manually re-inspected to check whether there are any good products.
[0047] In order to avoid the possibility of false detection by the equipment, the defective products of the second screening in step S2 are finally inspected manually to avoid the existence of good products among the defective products of the second screening.
[0048] Furthermore, in step S3, a visual inspection system can be added to assist manual work. The visual inspection system can further improve the accuracy of inspection and improve the inspection efficiency.
[0049] Furthermore, a counter may be added in step S3 to automatically determine the number of good products, so that the number of good products in manual inspection can be quickly counted, which is convenient for practical use.
[0050] In actual use, it was found that the above-mentioned detection method can improve the pass-through and missed detection rates. For the pass-through rate, it was 15% before improvement, and now it has been reduced to 4.5%. The number of people working at the same time has been reduced from 26 to 8, which reduces the labor cost. Secondly, for the missed detection rate, it was 0.40% before improvement, and now it has been reduced to 0.30%, thereby reducing the processing cost.
[0051] The present invention is based on the detection method for liquid crystal panels of AOI and AI. First, the initial screening good products and initial screening defective products in the product are screened by the AOI detection unit. Then, in order to avoid the occurrence of false detection, the initial screening defective products are detected again by the AI detection unit. In the AI detection unit, the Encoder-Decoder model including the classification branch is trained and then combined with the obtained mask image to output the defect type predicted by the model, so that the initial screening defective products can be automatically detected, and the initial screening defective products can be avoided. False detection as defective products after AOI cannot identify them due to unknown defects, the detection accuracy is improved, and the over-detection rate and missed detection rate are reduced at the same time.
[0052] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.
Claims
1. A method for detecting liquid crystal panels based on AOI and AI, characterized in that: The steps include: S1. The AOI inspection unit performs AOI inspection on the products to be inspected, and automatically selects the good products and the bad products; S2. The AI detection unit performs AI detection on the primary screening defective products screened out in S1, and automatically screens out the secondary screening good products and secondary screening defective products; S3. The defective products in the second screening in step S2 are manually re-inspected to check whether there are any good products.
2. The liquid crystal panel inspection method based on AOI and AI as claimed in claim 1, characterized in that: The detection method of the AI detection unit includes the following: S20, obtaining a mask image of the product image and forming a data set; S21. Train the Encoder-Decoder model containing the classification branch: The results cls_result1-cls_result4 of each classification branch calculate the cross entropy loss (CE Loss1-CELoss4), the mask image result of the segmentation branch and the mask image in step S20 calculate the binary cross entropy loss (BCE Loss), and the final Total_Loss used for back propagation can be assigned weights: Among them, wi and α are hyperparameters, which can be adjusted arbitrarily to values that make the model converge better; S22. Use the mask image predicted by the segmentation branch as the segmentation result of the model trained in S21: Among them, wi is the weight of each branch prediction. The thresholds predicted by each branch are added according to the weights and then softmax calculation is performed. The result after softmax is the probability of each defect type predicted by the model. The one with the largest probability is the defect type predicted by the model. S23. Automatically screen out the second-screened good products and the second-screened defective products from the first-screened defective products according to the defect types predicted in step S22.
3. The liquid crystal panel inspection method based on AOI and AI as claimed in claim 1, characterized in that: The steps of S20 are as follows: Each picture of the product is normalized, labeled, analyzed, and corrected, then labeled at the pixel level and a corresponding mask image is generated. The mask image contains the category of defects and can be used for loss calculation of the classification branch.
4. The liquid crystal panel inspection method based on AOI and AI as claimed in claim 1, characterized in that: In step S3, a visual inspection system is added to assist manual work.
5. The liquid crystal panel inspection method based on AOI and AI as claimed in claim 1, characterized in that: In step S3, a counter is added to automatically count the number of good products.
