Correction method of large-visual-field rapid detection systemTechnical Field
The invention belongs to the field of image measurement, and particularly relates to a correction method of a large-visual-field rapid detection system.
Background
With the rapid development of industry 4.0, the precision detection industry is increasingly required to develop in a rapid and accurate direction, and the precision detection industry is used as three major components for image measurement: the charge coupled devices, lenses, and light sources are also beginning to develop towards large fields of view. Charge coupled devices have evolved from the traditional million to the million, billion pixels; the lens field of vision also develops from millimeter level to hundreds of millimeters; lamp sources are also beginning to evolve in the direction of large area arrays.
The development of the above technologies brings a qualitative leap for the precision detection industry, a piece of glass with the traditional detection efficiency of 4.3 inches needs more than 1 minute, but the whole detection efficiency is shortened to less than 3 seconds due to the large visual field, and the large visual field also brings several problems:
1. the single pixel resolution is reduced;
2. within the field range, the precision grades of all the areas are different;
3. the traditional linear correction approach has not been suitable for use in this system.
Disclosure of Invention
The invention aims to provide a correction method of a large-visual-field quick detection system, which solves the technical problem of breadth correction of an image in the large-visual-field quick detection system.
In order to achieve the purpose, the invention adopts the following technical scheme:
a correction method of a large-visual-field rapid detection system comprises the following steps:
step 1: establishing a large-visual-field rapid detection system, wherein the large-visual-field rapid detection system comprises a camera for product imaging, a telecentric lens, a correction sheet, a jig platform module, a bracket, a parallel backlight source for increasing light intensity and an image processing module for communicating with an upper computer;
step 2: sequentially mounting a camera, a telecentric lens, a correcting piece, a jig platform module and a parallel backlight source on a bracket from top to bottom; the correcting sheet is a glass plate with a micron-sized array circle;
and step 3: the image processing module is connected with an upper computer;
and 4, step 4: the large-visual-field rapid detection system acquires a picture of the correction sheet and transmits the picture to the upper computer;
and 5: the upper computer performs correction steps as follows:
step A: the upper computer processes the acquired picture of the correction sheet, takes the array circle on the correction sheet as a processing object, and obtains the image coordinate value (u) of the center of the array circle of the correction sheet in the picturei,vj) Setting (x)i,yj) A measurement of the world coordinate system as the center of the circle of the correction chip array, f (x)i,yj) To approximate the function, set (x)True i,yTrue j) For correcting the actual value of the world coordinate system of the center of the array circle of the chip, the upper computer calculates the deviation and derivation of all the array centers according to the following formula to make the error value approximate to the required precision, thereby calculating (x)i,yj):
Wherein
For the required precision, i and j are respectively the row number and the column number of the array circle;
and B: the upper computer calculates a binomial multi-order coefficient A according to the following formula:
wherein n and m are orders and integers, n is more than or equal to 1 and less than or equal to 5, and m is less than n;
step 6: the upper computer judges whether the correction is the first correction: if yes, executing step 7; if not, executing step 8;
and 7: using an approximation function f (x)i,yj)Step 5, performing correction calculation according to the method instep 5 to obtain a correction result, that is, calculating a binomial multi-order coefficient a, and performing step 9;
and 8: increasing the approximation function f (x)i,yj) Increasing the value of n, performing correction calculation according to the method in thestep 5 to obtain a correction result, namely calculating a binomial multi-order coefficient A, and executing a step 9;
and step 9: and judging a correction result: meeting less than required precision
Performing step 10; precision less than required
Performing
step 6;
step 10: the upper computer corrects the image of the large-visual-field rapid detection system according to the position coordinates of the correction sheet:
firstly, a large-visual-field rapid detection system collects an image, an upper computer processes the collected image, and then the coordinate of any point on the collected image is set as (a)
i,b
j) The upper computer calculates the measurement coordinate (q) of the point according to the following formula
i,q
j):
Wherein i and j are the row number and the column number of the array circle respectively;
step 11: and the upper computer generates a correction document according to the method from the step 4 to the step 10 and stores the correction document.
The camera is a 2900W pixel CCD camera; the telecentric lens is a field lens of 192mm multiplied by 168 mm; the parallel backlight is a 172mm by 172mm parallel backlight.
Accuracy of the demand
Is a set precision.
The image processing module is an ARM9 controller.
The correction method of the large-visual-field rapid detection system solves the technical problem of breadth correction of images in the large-visual-field rapid detection system; the invention can finish the correction of the error of the single hardware of the whole system and the error in the combination process at one time through one-time correction, thereby avoiding the complexity of multiple corrections, and the correction precision can be approximated by adjusting the order of the correction algorithm according to the actual requirement; the invention can save the correction coefficient, and the correction is not needed again as long as the charge-coupled device of the system imaging component and the lens are relatively unchanged; the invention can ensure the precision of each area in the visual field to reach the expected level.
Drawings
FIG. 1 is a schematic structural diagram of a calibration mode of the large-field rapid detection system according to the present invention;
FIG. 2 is a flow chart of the present invention;
in the figure:camera 1,telecentric lens 2,correction piece 3, tool platform module 4,parallel backlight 5,support 6.
Detailed Description
The calibration method of the large-field-of-view rapid detection system shown in fig. 1-2 is characterized in that: the method comprises the following steps:
step 1: establishing a large-visual-field rapid detection system, wherein the large-visual-field rapid detection system comprises an ultrahigh-resolution camera 1 for product imaging, a large-visual-fieldtelecentric lens 2, acorrection sheet 3, a jig platform module 4, asupport 6, aparallel backlight source 5 for increasing light intensity and an image processing module for communicating with an upper computer; thesupport 6 is a column and base module installation module.
The large-visual-field rapid detection system is full-size detection equipment of an LPA series.
Step 2: thecamera 1, thetelecentric lens 2, the correctingsheet 3, the jig platform module 4 and theparallel backlight source 5 are sequentially arranged on thebracket 6 from top to bottom; thecorrection sheet 3 is a glass plate with a micron-sized array circle;
and step 3: the image processing module is connected with an upper computer;
and 4, step 4: the large-visual-field rapid detection system acquires a picture of thecorrection sheet 3 and transmits the picture to the upper computer;
and 5: the upper computer performs correction steps as follows:
step A: the upper computer processes the acquired picture of thecorrection sheet 3, takes the array circle on thecorrection sheet 3 as a processing object, and obtains the image coordinate value (u) of the center of the array circle of thecorrection sheet 3 in the picturei,vj) Setting (x)i,yj) A measurement value f (x) of a world coordinate system which is the center of the array circle of thecorrection sheet 3i,yj) To approximate the function, set (x)True i,yTrue j) For the actual value of the world coordinate system of the center of the array circle of thecorrection sheet 3, the upper computer calculates the deviation and derivation of all the array centers according to the following formula to make the error value approximate to the required precision, thereby calculating (x)i,yj):
Wherein
For the required precision, i and j are respectively the row number and the column number of the array circle;
and B: the upper computer calculates a binomial multi-order coefficient A according to the following formula:
wherein n and m are orders and integers, n is more than or equal to 1 and less than or equal to 5, and m is less than n;
step 6: the upper computer judges whether the correction is the first correction: if yes, executing step 7; if not, executing step 8;
and 7: using an approximation function f (x)i,yj)Step 5, performing correction calculation according to the method instep 5 to obtain a correction result, that is, calculating a binomial multi-order coefficient a, and performing step 9;
and 8: increasing the approximation function f (x)i,yj) Increasing the value of n, performing correction calculation according to the method in thestep 5 to obtain a correction result, namely calculating a binomial multi-order coefficient A, and executing a step 9;
and step 9: and judging a correction result: meeting less than required precision
Performing step 10; precision less than required
Performing
step 6;
step 10: the upper computer corrects the image of the large-view rapid detection system according to the position coordinates of the correction sheet 3:
firstly, a large-visual-field rapid detection system collects an image, an upper computer processes the collected image, and then the coordinate of any point on the collected image is set as (a)
i,b
j) The upper computer calculates the measurement coordinate (q) of the point according to the following formula
i,p
j):
Wherein i and j are the row number and the column number of the array circle respectively;
step 11: and the upper computer generates a correction document according to the method from the step 4 to the step 10 and stores the correction document.
Thecamera 1 is a 2900W pixel CCD camera; thetelecentric lens 2 is a field lens of 192mm multiplied by 168 mm; theparallel backlight 5 is a 172mm by 172mmparallel backlight 5.
Accuracy of the demand
Is a set precision.
The image processing module is an ARM9 controller.
The correction method of the large-visual-field rapid detection system solves the technical problem of breadth correction of images in the large-visual-field rapid detection system; the invention can finish the correction of the error of the single hardware of the whole system and the error in the combination process at one time through one-time correction, thereby avoiding the complexity of multiple corrections, and the correction precision can be approximated by adjusting the order of the correction algorithm according to the actual requirement; the invention can save the correction coefficient, and the correction is not needed again as long as the charge-coupled device of the system imaging component and the lens are relatively unchanged; the invention can ensure the precision of each area in the visual field to reach the expected level.