A product quality inspection device and inspection method based on visual inspection
Through visual inspection technology and deep learning models, we analyze product defect types, calculate impact factors, and predict maintenance time, which solves the problem of timely maintenance when multiple defect types occur at the same time, and improves product qualification rate and processing process monitoring accuracy.
Patent Information
- Application Number
- CN202410933003.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-12
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-07-12
AI Technical Summary
Existing visual inspection technology is difficult to effectively handle the timely maintenance of processing equipment when multiple defect types occur simultaneously, resulting in an increase in defective rates.
Analyze product defect types through image acquisition and deep learning models, calculate the impact factors between multiple defect types, predict the maintenance time of processing equipment, output maintenance instructions based on the impact factors, and divide the processing procedures of new defect types for accurate monitoring.
It improves the product qualification rate, outputs maintenance instructions in a timely manner, analyzes the causes of new defect types, accurately monitors the processing process, and reduces the defective product rate.
Smart Images

Figure CN118464914B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of visual inspection, and in particular to a product quality inspection device and a inspection method based on visual inspection. Background Art
[0002] Sensors are detection devices that can sense the information being measured and transform the sensed information into electrical signals or other required forms of information output according to certain rules to meet the requirements of information transmission, processing, storage, display, recording and control. Sensors have the characteristics of miniaturization, digitization, intelligence, multi-function, systematization and networking. They are the primary link in realizing automatic detection and automatic control.
[0003] During the manufacturing process of sensors, visual inspection technology is also needed to detect product quality to determine whether it is qualified. When image analysis shows that the product has defects, the result of the product being unqualified is output. Although the defect type on the product can be identified and the maintenance time of the processing equipment can be output based on the probability of the defect type, one or more defect types may appear on an unqualified product at the same time. When multiple defect types appear, if only the relationship between the probability of a certain defect type and the maintenance time of the processing equipment is considered at this time, the processing equipment will not be repaired and inspected in time, resulting in an increase in the defect rate. Summary of the invention
[0004] The purpose of the present invention is to provide a product quality inspection device and inspection method based on visual inspection to solve the problems raised in the above background technology.
[0005] In order to solve the above technical problems, the present invention provides the following technical solutions: a product quality detection method based on visual detection, the detection method comprising the following steps:
[0006] Step S1, using an image acquisition device to acquire an appearance image of the product to be inspected, comparing the appearance image with a standard image, analyzing whether the two completely match, and recording the matching result in a database; if the appearance image completely matches the standard image, outputting a result that the product is qualified; if the appearance image does not completely match the standard image, outputting a result that the product is unqualified;
[0007] Step S2, extract the defect type in the appearance image and record it as the current defect type, record all historical defect types that appeared in the historical detection in the historical defect database, compare the current defect type with the historical defect types in the historical defect database, and determine whether there is a historical defect type that is the same as the current defect type; if there is the same historical defect type, proceed to step S3; if there is no same historical defect type, mark the current defect type as a new defect type, and proceed to step S4;
[0008] Step S3, obtaining all current defect types in step S2, analyzing the influencing factors between multiple current defect types, and outputting whether to inspect and repair the processing equipment according to the influencing factors;
[0009] Step S4: store the new defect type in the database, name it, and classify the processing procedure to which the new defect type belongs, and use the processing procedure to which the new defect type belongs as the corresponding processing procedure that causes the new defect type to appear.
[0010] The step S1 comprises: step S101, after grayscale processing and binarization processing of the collected appearance image, the appearance image is divided into a plurality of small grids, each small grid is used as a feature point, all feature points in the appearance image are compared with all feature points in the standard image, if all feature points are the same, a qualified product result is output, if there are different feature points, a failed product result is output;
[0011] Step S102: mark different feature points and divide adjacent feature points into the same area to form a defect marking area, extract an image covering all defect marking areas as an appearance marking image, and store it in a database.
[0012] The step S2 comprises: step S201, extracting defect features corresponding to each historical defect type in the historical database, building a deep learning model, taking the defect features as input and the corresponding historical defect type as output, and training the deep learning model;
[0013] Step S202: Set the defect marking area to S n , extract multiple defect marking areas marked in the appearance marking image, and form a set {S1, S2, S3...S n ,}, extract the defect feature F in each defect marking area n , the defect features are input into the deep learning model, and the deep learning model outputs the defect type K corresponding to each defect marking area n , the output is S n →K n ; where S n →Kn Defect marking area S n The corresponding defect type is K n ; The types of defects include abrasions, scratches and size discrepancies;
[0014] Step S203: All defect types K output in step S202 are n The current defect type set is extracted = {defect type one, defect type two, defect type three...defect type n}, and the defect types in the current defect type set are compared with the historical defect types one by one to determine whether there are the same historical defect types. If there are the same historical defect types, all defect types of the current unqualified products are output, and the repair results corresponding to each defect type are output; if there are no identical historical defect types, the current defect type is marked as a new defect type.
[0015] In step S203, the specific process of outputting the repair result corresponding to each defect type is as follows:
[0016] Set the repair result corresponding to each historical defect type, extract the repair result of the historical defect type corresponding to the current defect type and output it; if the current defect type is repairable, record it as a secondary repair product; if the current defect type is not repairable, record it as a scrapped product.
[0017] The step S3 includes: step S301, obtaining the total number of products that have been tested, which is W 总 ; Set defect type A and defect type B, where defect type A and defect type B∈{defect type one, defect type two, defect type three...defect type n}; and defect type A and defect type B are different;
[0018] Step S302: Calculate the probability of defect type A and defect type B appearing on the same product at the same time, and the calculation formula is:
[0019] ;
[0020] The probability of defect type A occurring is , and its calculation formula is ;
[0021] The probability of defect type B occurring is , and its calculation formula is ;
[0022] The influence factor between defect type A and defect type B is recorded as β1, and its calculation formula is: ;
[0023] in Indicates the influencing factor of the occurrence of defect type B after the occurrence of defect type A;
[0024] Step S303, setting the factor threshold to α; when When <α, the defect type of the product is displayed; when ≥α, obtain the processing area corresponding to the defect type A, extract the processing procedure Q corresponding to the processing area, and if there is only one processing procedure Q, output the suggestion for inspection and maintenance of the processing procedure Q; if there are multiple processing procedures Q, calculate the predicted time from each processing procedure to the next maintenance, and form a set {T Q1 , T Q2 , T Q3 ......T Qm}, set a time threshold Tx, divide the predicted time in the set that is less than or equal to the time threshold Tx into the first echelon, and use the processing procedures corresponding to the predicted time in the first echelon as the first screening group; divide the predicted time in the set that is greater than the time threshold Tx into the second echelon, and use the processing procedures corresponding to the predicted time in the second echelon as the second screening group;
[0025] Step S304, perform maintenance and inspection on the processing equipment of the processing procedures in the first screening group. After the maintenance and inspection, the product is processed for time t1, and the influence factor β2 between defect type A and defect type B within time t1 is calculated again; if β2<β1, the product is processed normally; if β2≥β1, an instruction to perform maintenance and inspection on the processing procedures in the second screening group is output.
[0026] The step S4 includes: step S401, storing the new defect type that appears for the first time in the database as a control group, recording the time when each new defect type appears and the corresponding product sequence, drawing a fitting curve, and calculating the slope between two points, the formula is: , set the slope threshold to K 阈 , when there are m consecutive K>K 阈 When , proceed to step S402;
[0027] Step S402, modeling is performed by scanning the appearance image of the product, dividing it according to the processing range of the processing procedure, outputting the processing area corresponding to each processing procedure, marking the appearance position of the new defect type, extracting the processing area where the appearance position is located, and taking the processing procedure corresponding to the extracted processing area as the processing procedure to which the new defect type belongs.
[0028] The step S402 includes: if the output processing procedure is one, the new defect type is attributed to the processing procedure; if the output processing procedures are two or more, a detection node is set between the two processing procedures, and an intermediate quality inspection is performed on the product, and the processing procedure to which the new defect type belongs is divided according to the time when the new defect type appears.
[0029] A product quality inspection device based on visual inspection is used to execute a product quality inspection method based on visual inspection. The inspection device includes a workbench, an industrial camera and a control system. The workbench is used to support the product to be inspected. The industrial camera is used to capture images of the product to be inspected and upload the captured images to the control system. The control system executes the product quality inspection method based on visual inspection.
[0030] Compared with the prior art, the beneficial effects achieved by the present invention are:
[0031] The present invention analyzes the relationship between multiple defect types that appear on the same product, calculates the influencing factor between two defect types, predicts the maintenance time of processing equipment in the corresponding processing procedure according to the influencing factor, and promptly outputs instructions for repairing the processing equipment, thereby improving the process in a targeted manner and improving the product qualification rate. At the same time, when a new defect type is detected, the cause of the new defect type is analyzed, and the processing procedure to which the new defect type belongs is divided, so as to facilitate more accurate monitoring of the processing procedure. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] The accompanying drawings are used to provide a further understanding of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the present invention and do not constitute a limitation of the present invention. In the accompanying drawings:
[0033] Figure 1 It is a flow chart of a product quality inspection method based on visual inspection of the present invention. DETAILED DESCRIPTION
[0034] 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.
[0035] See also Figure 1 The present invention provides a technical solution: a product quality detection method based on visual detection, the detection method comprising the following steps:
[0036] Step S1, using an image acquisition device to acquire an appearance image of the product to be inspected, comparing the appearance image with a standard image, analyzing whether the two completely match, and recording the matching result in a database; if the appearance image completely matches the standard image, outputting a result that the product is qualified; if the appearance image does not completely match the standard image, outputting a result that the product is unqualified.
[0037] The step S1 comprises:
[0038] Step S101, after grayscale processing and binarization processing of the collected appearance image, the appearance image is divided into a number of small grids, each small grid is used as a feature point, all feature points in the appearance image are compared with all feature points in the standard image, if all feature points are the same, the result of the product being qualified is output, if there are different feature points, the result of the product being unqualified is output;
[0039] Step S102: mark different feature points and divide adjacent feature points into the same area to form a defect marking area, extract an image covering all defect marking areas as an appearance marking image, and store it in a database.
[0040] Step S2, extract the defect type in the appearance image and record it as the current defect type, record all historical defect types that appeared in historical inspections in the historical defect database, compare the current defect type with the historical defect types in the historical defect database, and determine whether there is a historical defect type that is the same as the current defect type; if there is the same historical defect type, proceed to step S3; if there is no same historical defect type, mark the current defect type as a new defect type, and proceed to step S4.
[0041] The step S2 comprises: step S201, extracting defect features corresponding to each historical defect type in the historical database, building a deep learning model, taking the defect features as input and the corresponding historical defect type as output, and training the deep learning model;
[0042] Step S202: Set the defect marking area to S n , extract multiple defect marking areas marked in the appearance marking image, and form a set {S1, S2, S3...S n ,}, extract the defect feature F in each defect marking area n , the defect features are input into the deep learning model, and the deep learning model outputs the defect type K corresponding to each defect marking area n , the output is S n →K n ; where S n →K n Defect marking area Sn The corresponding defect type is K n ; The defect types include abrasions, scratches and size discrepancies, etc., which can be input based on the defect types that have occurred in the past;
[0043] Step S203: All defect types K output in step S202 are n The current defect type set is extracted = {defect type one, defect type two, defect type three...defect type n}, and the defect types in the current defect type set are compared with the historical defect types one by one to determine whether there are the same historical defect types. If there are the same historical defect types, all defect types of the current unqualified products are output, and the repair results corresponding to each defect type are output; if there are no identical historical defect types, the current defect type is marked as a new defect type.
[0044] In step S203, the specific process of outputting the repair result corresponding to each defect type is as follows:
[0045] Set the repair result corresponding to each historical defect type, extract the repair result of the historical defect type corresponding to the current defect type and output it; if the current defect type is repairable, record it as a secondary repair product; if the current defect type is not repairable, record it as a scrapped product.
[0046] For example, a defective product is divided into defect marking area S1 and defect marking area S2. After extracting the defect features, it is identified that defect marking area S1 corresponds to defect type one, and defect marking area S2 corresponds to defect type two. In the historical database, it is matched that defect type one is size discrepancy, defect type two is scratches, and the size discrepancy is marked as irreparable and the scratches are marked as repairable. Then, the output defect type one is size discrepancy and irreparable, a red light is on, and it is recorded as a scrapped product; the output defect type two is scratches and repairable, a yellow light is on, and it is recorded as a secondary repair product.
[0047] Step S3, obtaining all current defect types in step S2, analyzing the influencing factors between multiple current defect types, and outputting whether to inspect and repair the processing equipment according to the influencing factors.
[0048] The step S3 includes: step S301, obtaining the total number of products that have been tested, which is W 总 ; Set defect type A and defect type B, where defect type A and defect type B∈{defect type one, defect type two, defect type three...defect type n}; and defect type A and defect type B are different;
[0049] Step S302: Calculate the probability of defect type A and defect type B appearing on the same product at the same time, and the calculation formula is:
[0050] ;
[0051] The probability of defect type A occurring is , and its calculation formula is ;
[0052] The probability of defect type B occurring is , and its calculation formula is ;
[0053] The influence factor between defect type A and defect type B is recorded as β1, and its calculation formula is: ;in Indicates the influencing factor of defect type B after defect type A occurs.
[0054] Step S303, setting the factor threshold to α; when When <α, the defect type of the product is displayed; when ≥α, obtain the processing area corresponding to the defect type A, extract the processing procedure Q corresponding to the processing area, and if there is only one processing procedure Q, output the suggestion for inspection and maintenance of the processing procedure Q; if there are multiple processing procedures Q, calculate the predicted time from each processing procedure to the next maintenance, and form a set {T Q1 , T Q2 , T Q3 ......T Qm}, set a time threshold Tx, divide the predicted time in the set that is less than or equal to the time threshold Tx into the first echelon, and use the processing procedures corresponding to the predicted time in the first echelon as the first screening group; divide the predicted time in the set that is greater than the time threshold Tx into the second echelon, and use the processing procedures corresponding to the predicted time in the second echelon as the second screening group.
[0055] Step S304, perform maintenance and inspection on the processing equipment of the processing procedures in the first screening group. After the maintenance and inspection, the product is processed for time t1, and the influence factor β2 between defect type A and defect type B within time t1 is calculated again; if β2<β1, the product is processed normally; if β2≥β1, an instruction to perform maintenance and inspection on the processing procedures in the second screening group is output.
[0056] For example, defect type A is defect type 1 is size mismatch, defect type B is missing item type 2 is scratch, and the probability of defect type A is calculated as ≈0.043; the probability of defect type B occurring is calculated as ≈0.038; the probability of defect type A and defect type B appearing on the same product at the same time is calculated as ≈0.023; then we calculate ≈0.534; if <α, it means that after defect type A appears, the probability of defect type B appearing is small, and the correlation between the two is small, so normal processing can be carried out; if When ≥α, it means that after defect type A occurs, the probability of defect type B occurring is high. This may be because the previous processing step was missed after defect type A occurred, resulting in the occurrence of defect type B and increasing the defective rate. This requires maintenance and inspection of the previous processing step to reduce the occurrence of defective rate.
[0057] Reversely infer the processing procedure corresponding to defect type A, divide the processing area according to the processing range of the processing procedure, and obtain the corresponding processing procedure according to the processing area where defect type A is located. If there is only one corresponding processing procedure, directly output the instruction for repairing and inspecting this processing procedure. However, if the processing area where defect type A is located involves multiple processing procedures, then arrange them according to the length of time from the next maintenance to each processing procedure, set a time threshold, and those that are less than or equal to the time threshold, that is, those with a short time from the next maintenance, are divided into the first echelon, and the others are divided into the second echelon. First, perform maintenance and inspection on the processing procedures in the first echelon. If the impact factor becomes smaller after maintenance and inspection, it means that the correlation between defect type A and defect type B is small, that is, the possibility of both defect type A and defect type B appearing on the same product is reduced, which can reduce the occurrence of unqualified products. On the contrary, if the impact factor of the processing procedure in the first echelon is still not reduced after maintenance, it means that the processing procedure that caused the defect type A may be in the second echelon, and then output the instruction for repairing and inspecting the processing procedure in the second echelon.
[0058] Step S4: store the new defect type in the database, name it, and classify the processing procedure to which the new defect type belongs, and use the processing procedure to which the new defect type belongs as the corresponding processing procedure that causes the new defect type to appear.
[0059] The step S4 includes: step S401, storing the new defect type that appears for the first time in the database as a control group, recording the time when each new defect type appears and the corresponding product sequence, drawing a fitting curve, and calculating the slope between two points, the formula is: , set the slope threshold to K 阈 , when there are m consecutive K>K 阈 When , proceed to step S402;
[0060] Step S402, modeling is performed by scanning the appearance image of the product, dividing it according to the processing range of the processing procedure, outputting the processing area corresponding to each processing procedure, marking the appearance position of the new defect type, extracting the processing area where the appearance position is located, and taking the processing procedure corresponding to the extracted processing area as the processing procedure to which the new defect type belongs.
[0061] For example, when a new defect type appears, the time of its appearance and the corresponding product are recorded. When new defect types continue to appear, a fitting curve can be generated to calculate the slope between two points. If the slope K is greater than the threshold for five consecutive times, it means that the new defect type appears more and more frequently, which may not be an accidental event. It is necessary to output the processing procedures that may cause the new defect type to appear according to the processing area where the new defect type is located;
[0062] The step S402 includes: if the output processing procedure is one, the new defect type is attributed to the processing procedure; if the output processing procedures are two or more, a detection node is set between the two processing procedures, and an intermediate quality inspection is performed on the product, and the processing procedure to which the new defect type belongs is divided according to the time when the new defect type appears.
[0063] For example, if the processing ranges of the output processing steps 1 and 2 both cover the processing area where the new defect type is located, detection nodes are set before, after, and between the processing steps 1 and 2. When the new defect type is not detected during the processing step 1, but appears during the processing step 2, the new defect type is attributed to the processing step 2, and the output processing step 2 is the faulty processing step that causes the new defect type to appear. A threshold value can be set later. When the probability of the new defect type appearing is greater than the threshold value, an instruction is output that requires maintenance and inspection of the processing step 2.
[0064] A product quality inspection device based on visual inspection is used to execute a product quality inspection method based on visual inspection. The inspection device includes a workbench, an industrial camera and a control system. The workbench is used to support the product to be inspected. The industrial camera is used to capture images of the product to be inspected and upload the captured images to the control system. The control system executes the product quality inspection method based on visual inspection.
[0065] Finally, it should be noted that the above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art can still modify the technical solutions described in the aforementioned embodiments or replace some of the technical features therein by equivalents. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.
Claims
1. A product quality inspection method based on visual inspection, characterized in that: The detection method comprises the following steps: Step S1, using an image acquisition device to acquire an appearance image of the product to be inspected, comparing the appearance image with a standard image, analyzing whether the two completely match, and recording the matching result in a database; if the appearance image completely matches the standard image, outputting a result that the product is qualified; if the appearance image does not completely match the standard image, outputting a result that the product is unqualified; Step S2, extract the defect type in the appearance image and record it as the current defect type, record all historical defect types that appeared in the historical detection in the historical defect database, compare the current defect type with the historical defect types in the historical defect database, and determine whether there is a historical defect type that is the same as the current defect type; if there is the same historical defect type, proceed to step S3; if there is no same historical defect type, mark the current defect type as a new defect type, and proceed to step S4; Step S3, obtaining all current defect types in step S2, analyzing the influencing factors between multiple current defect types, and outputting whether to inspect and repair the processing equipment according to the influencing factors; Step S4, storing the new defect type in the database, naming it, and classifying the processing procedure to which the new defect type belongs, and using the processing procedure to which the new defect type belongs as the corresponding processing procedure that causes the new defect type to appear; The step S3 comprises: Step S301: Obtain the total number of products that have been tested, which is W. 总 ; Set defect type A and defect type B, where defect type A and defect type B∈{defect type one, defect type two, defect type three...defect type n}; and defect type A and defect type B are different; Step S302: Calculate the probability of defect type A and defect type B appearing on the same product at the same time, and the calculation formula is: ; The probability of defect type A occurring is , and its calculation formula is ; The probability of defect type B occurring is , and its calculation formula is ; The influence factor between defect type A and defect type B is recorded as β1, and its calculation formula is: ;in Indicates the influencing factor of the occurrence of defect type B after the occurrence of defect type A; Step S303, setting the factor threshold to α; when When <α, the defect type of the product is displayed; when ≥α, obtain the processing area corresponding to the defect type A, extract the processing procedure Q corresponding to the processing area, and if there is only one processing procedure Q, output the suggestion for inspection and maintenance of the processing procedure Q; if there are multiple processing procedures Q, calculate the predicted time from each processing procedure to the next maintenance, and form a set {T Q1 , T Q2 , T Q3 ......T Qm }, set a time threshold Tx, divide the predicted time in the set that is less than or equal to the time threshold Tx into the first echelon, and use the processing procedures corresponding to the predicted time in the first echelon as the first screening group; divide the predicted time in the set that is greater than the time threshold Tx into the second echelon, and use the processing procedures corresponding to the predicted time in the second echelon as the second screening group; Step S304: Perform maintenance and inspection on the processing equipment of the processing procedures in the first screening group. After the maintenance and inspection, the product is processed for time t1, and the influence factor β2 between defect type A and defect type B within time t1 is calculated again; if β2<β1, the product is processed normally; if β2≥β1, an instruction to perform maintenance and inspection on the processing procedures in the second screening group is output; The step S4 comprises: Step S401: store the new defect type that appears for the first time in the database as a control group, record the time when each new defect type appears and the corresponding product sequence, draw a fitting curve, and calculate the slope between two points. The formula is: , set the slope threshold to K 阈 , when there are m consecutive K>K 阈 When , proceed to step S402; Step S402: Modeling is performed by scanning the appearance image of the product, dividing the product according to the processing range of the processing process, outputting the processing area corresponding to each processing process, marking the appearance position where the new defect type is located, extracting the processing area where the appearance position is located, and taking the processing process corresponding to the extracted processing area as the processing process to which the new defect type belongs; The step S402 includes: if the output processing procedure is one, the new defect type is attributed to the processing procedure; if the output processing procedures are two or more, a detection node is set between the two processing procedures, and an intermediate quality inspection is performed on the product, and the processing procedure to which the new defect type belongs is divided according to the time when the new defect type appears.
2. A product quality inspection method based on visual inspection according to claim 1, characterized in that: The step S1 comprises: Step S101, after grayscale processing and binarization processing of the collected appearance image, the appearance image is divided into a number of small grids, each small grid is used as a feature point, all feature points in the appearance image are compared with all feature points in the standard image, if all feature points are the same, the result of the product being qualified is output, if there are different feature points, the result of the product being unqualified is output; Step S102: mark different feature points, and divide adjacent feature points into the same area to form a defect marking area, extract an image covering all defect marking areas, and store it in a database as an appearance marking image.
3. A product quality inspection method based on visual inspection according to claim 2, characterized in that: The step S2 comprises: Step S201: extract defect features corresponding to each historical defect type in the historical database, build a deep learning model, take the defect features as input, and take the corresponding historical defect type as output, and train the deep learning model; Step S202: Set the defect marking area to S n , extract multiple defect marking areas marked in the appearance marking image, and form a set {S1, S2, S3...S n ,}, extract the defect feature F in each defect marking area n , the defect features are input into the deep learning model, and the deep learning model outputs the defect type K corresponding to each defect marking area n , the output is S n →K n ; where S n →K n Defect marking area S n The corresponding defect type is K n ; Step S203: All defect types K output in step S202 are n The current defect type set is extracted = {defect type one, defect type two, defect type three...defect type n}, and the defect types in the current defect type set are compared with the historical defect types one by one to determine whether there are the same historical defect types. If there are the same historical defect types, all defect types of the current unqualified products are output, and the repair results corresponding to each defect type are output; if there are no identical historical defect types, the current defect type is marked as a new defect type.
4. A product quality inspection method based on visual inspection according to claim 3, characterized in that: In step S203, the specific process of outputting the repair result corresponding to each defect type is as follows: Set the repair result corresponding to each historical defect type, extract the repair result output of the historical defect type corresponding to the current defect type; if the current defect type is repairable, record it as a secondary repair product; if the current defect type is not repairable, record it as a scrapped product.
5. A product quality inspection device based on visual inspection, used to perform a product quality inspection method based on visual inspection according to any one of claims 1 to 4, characterized in that: The detection equipment includes a workbench, an industrial camera and a control system. The workbench is used to support the product to be detected. The industrial camera is used to capture images of the product to be detected and upload the captured images to the control system. The control system executes a product quality detection method based on visual inspection as described in any one of claims 1 to 4.
