Parameter setting method of visual inspection system
Technical Field
A parameter setting method of a vision inspection system, and more particularly, to a parameter setting method for setting inspection parameters of a vision inspection system.
Background
In order to make the detection more accurate, most of the existing detection methods use a visual detection system to detect the quality and appearance of various components on a circuit board in an electronic product in an image manner, and the existing detection method is to input a standard detection value (circuit board layout) of the circuit board into the visual detection system, so that an operator of the visual detection system adjusts the standard detection value according to accumulated experiences of the operator.
Disclosure of Invention
The invention mainly aims to form a group of value groups by using a visual detection system to detect qualified products, and set detection parameters according to the standard difference value of the value groups, so that the detection parameters are rationalized, the probability that the visual detection system judges the qualified products as unqualified products is reduced, the requirements of the visual detection system on the experience of operators in setting the detection parameters are further reduced, and the time required for setting the detection parameters is saved.
To achieve the above object, the method for setting parameters of a vision inspection system according to the present invention comprises the following steps:
step A: inputting the inspection position of the product to a visual inspection system;
and B: the visual detection system detects a plurality of qualified products according to the detection positions of the products to further obtain a plurality of product detection values, and the plurality of product detection values are integrated into a group of value groups;
and C: the visual detection system calculates the standard deviation value of the numerical value group, sets the average value in the numerical value group as the maximum value of the detection parameter after adding N times of the standard deviation value, and sets the average value in the numerical value group as the minimum value of the detection parameter after subtracting N times of the standard deviation value, wherein N is greater than 0.
The parameter setting method of the vision inspection system comprises the steps that the numerical value inspected by the inspection position is an outline numerical value, a position coordinate numerical value, a color numerical value or a brightness numerical value.
Drawings
FIG. 1 is a flow chart of the present invention.
FIG. 2 is a schematic representation of a qualified product of the present invention.
FIG. 3 is a graph of values for a set of values according to the present invention.
Description of reference numerals: 1-a circuit board; 11-pads.
Detailed Description
Referring to fig. 1 to 3, it can be clearly seen that the parameter setting method of the present invention is performed when the visual inspection system sets the inspection parameters according to the following steps:
step A: inputting the inspection position of the product to a visual inspection system; the inspected value of the inspection position may be an outline value, a position coordinate value, a color value or a brightness value, in this embodiment, taking the solder pad 11 of the circuit board 1 as an example, the inspection position is converted from a design drawing file of the circuit board 1 into a layout (layout) file and input into the vision inspection system, so that the vision inspection system performs coordinate measurement for the position of the solder pad 11.
And B: a plurality of qualified products are detected by a visual detection system according to the detection position, so that the visual detection system obtains a plurality of product detection values corresponding to the detection position, and the plurality of product detection values form a group of value groups; that is, the vision inspection system coordinates the positions of the pads 11 of the plurality of circuit boards 1 and forms the coordinates of the positions of the pads 11 of the plurality of circuit boards 1 into a set of values (as shown in fig. 3).
And C: the visual detection system calculates the average value of the value group, calculates the standard difference of the value group according to the average value, adds the standard difference of N times to the average value of the value group, sets the average value as the maximum value of the detection parameter, subtracts the standard difference of N times from the average value in the value group, and sets the average value as the minimum value of the detection parameter, wherein the value of N is greater than 0; taking fig. 3 as an example, the maximum value and the minimum value of the detection parameter are set after adding and subtracting 3 times of standard deviation values to the average value, so the maximum value of the X coordinate set by the detection parameter is the average value of the X coordinate plus 3 times of standard deviation values (average +3 standard deviation), the minimum value of the X coordinate is the average value of the X coordinate minus 3 times of standard deviation values (average-3 standard deviation), similarly, the maximum value of the Y coordinate set by the detection parameter is the average value of the Y coordinate plus 3 times of standard deviation values (average +3 standard deviation), and the minimum value of the Y coordinate is the average value of the Y coordinate minus 3 times of standard deviation values (average-3 standard deviation).
Therefore, the present invention can solve the problems and disadvantages of the prior art, and the key technology of the present invention is to form a group of value sets by using qualified detection values of a plurality of products, calculate the standard difference of the value sets, and combine the average value in the value sets according to the standard difference to serve as the set value of the detection parameters, so as to rationalize the detection parameters, reduce the probability that the visual detection system judges the qualified products as unqualified products, reduce the requirements of the visual detection system on the setting of the detection parameters for the experience of the operator, save the time required for setting the detection parameters, and define more reasonable detection parameters if the experience of the operator is enough.