Algorithm 1.
Solving the Center Distance and Diameter Errors of Hole Group
Position Degree by a Visual Model Based on Line Structured
Light
|
---|
Input: : Pixel coordinates of
edge points. |
Output: : Center distance of the
hole group obtained by the visual method. |
: Diameter of the hole
group obtained by the visual method. |
: Average deviation of
center distance between hole group measurements obtained
by visual method and coordinate measuring |
machine (CMM)
measurements. |
: Average deviation of the
diameter between hole group measurements obtained by
visual method and coordinate measuring |
machine (CMM)
measurements. |
Algorithm flow: |
1. Obtain the sub-pixel-level
pixel coordinates of edge points by using
Zernike sub-pixel edge detection algorithm. |
2. Calibrate camera internal
parameters. |
3. Calibrate the light plane of
the line structured light. |
4. Calibrate the plane of the
measured hole group. |
5. Measure positions of the hole
group with a visual measurement method. |
6. Convert the obtained
coordinates from a Cartesian coordinate to a polar
coordinate. |
7. Obtain the center distance and diameter of the hole group
position degree. |
8. The measurement values obtained
by the visual method are compared with a coordinate
measuring machine to obtain the average deviation of the center distance
and the average deviation of the diameter. |
Table 1.
Main Equipment Models and Technical Parameters
Camera | Model: MER-125-30UM |
| Light-Sensitive
Chips | Photoreceptor
Cell | Highest
Resolution | High Frame Frequency | Overall
Dimensions |
| 1/3 in. | | | 30 f/s | |
Optical lens | Model: Computer M2514-MP |
| Focal
Length | Aperture | Maximum Diameter to Focal
Length Ratio | Working
Temperature | Interface |
| 25 mm | F1.4-F16C | 1:1.4 | −20°C to 50°C | Type C |
Calibration plate | Model: NANO CBC
75 mm-2.0 |
| Graphics | Precision | Image Dimensional
Accuracy | Grid Size | Overall
Dimensions |
| Checkerboard | Level 1 | | | |
Back light | Model: CCS LFL-200 |
| Power
Supply | Color | Light Emitting
Area | Installation Dimensions | Overall
Dimensions |
| 12 V/9.0 W | Red | | | |
Laser | Model: LH650-80-3 |
| Wavelength | Power | Exit Pupil Aperture | Color | Overall Dimensions |
| 650 mm | 0–50 mW | | Red | |
Table 2.
Calibration Results of Camera Internal Parameters
| | | | | | | | |
---|
6777.683 | 6778.573 | 0.607 | 615.966 | 441.097 | 0.034 | 24.116 | −0.0009 | −0.0006 |
Table 3.
Optimized Internal Parameters of the Camera
| | | | | | | | |
---|
6777.683 | 6778.573 | 0.607 | 615.966 | 441.097 | 0.033 | 24.116 | −0.0022 | −0.0048 |
Table 4.
Center Coordinates and Diameters of Each Hole (mm)
| Center Coordinates | |
---|
Hole Number | | | Diameter |
---|
1# | 53.8626 | −16.6481 | 14.7832 |
2# | 47.6544 | 29.4971 | 14.8323 |
3# | 1.5856 | 23.5321 | 14.9710 |
4# | 7.8251 | −22.4857 | 14.8933 |
5# | 27.8546 | 3.2049 | 19.3462 |
Table 5.
Polar Coordinates of Each Hole Center
Hole Number | /rad | /mm |
---|
1# | −0.6520 | 32.7194 |
2# | 0.9253 | 32.9137 |
3# | 2.4830 | 33.2153 |
4# | −2.2330 | 32.5759 |
Table 6.
Polar Coordinates of Each Hole Center After Rotation
| Tangential Error Calculation/rad | Radial Error Calculation/mm |
---|
Hole Number | Measured Value of | Theoretical Value of | Tangential Error | Measured Value of | Theoretical Value of | Radial Error |
---|
1# | 0 | 0 | 0 | 32.7194 | 32.5 | 0.2194 |
2# | 1.5773 | 1.5708 | 0.0065 | 32.9137 | 32.5 | 0.4137 |
3# | 3.1350 | 3.1416 | −0.0066 | 33.2153 | 32.5 | 0.7153 |
4# | 4.7022 | 4.7124 | −0.0102 | 32.5759 | 32.5 | 0.0759 |
Table 7.
Position Degree Errors
Hole Number | Tangential Error | Radial Error | Position Error |
---|
1# | 0 | 0.2194 | 0.4387 |
2# | 0.2121 | 0.4137 | 0.9298 |
3# | −0.2137 | 0.7153 | 1.4931 |
4# | −0.3320 | 0.0759 | 0.6811 |
Table 8.
Comparison between Measured Values of Center Distance () in This Paper and CMM
Values/mm
Distance between Hole
Centers | Measured Values in This
Paper | CMM Values | |
---|
| 46.5610 | 46.6592 | 0.0982 |
| 46.4534 | 46.3645 | 0.0889 |
| 46.4388 | 46.4375 | 0.0013 |
| 46.4060 | 46.2990 | 0.1070 |
Average | | | 0.0739 |
Standard deviation | | | 0.0489 |
Table 9.
Comparison between Measured Values of Circular Holes’ Diameters
in This Paper and CMM Values/mm
Hole Number | Measured Values in This
Paper | CMM Values | |
---|
1# | 14.7832 | 14.4792 | 0.3040 |
2# | 14.8323 | 14.5044 | 0.3279 |
3# | 14.9710 | 14.4908 | 0.4802 |
4# | 14.8933 | 14.4590 | 0.4343 |
5# | 19.3462 | 19.2428 | 0.1034 |
Average | | | 0.3300 |
Standard deviation | | | 0.1462 |
Table 10.
Comparison of Different Backlight Brightness Detection
Results/mm
Hole Number | Center Coordinates | Image 1 | Image 2 | Image 3 | Image 4 | Image 5 | Standard Deviation |
---|
1# | | 53.8802 | 53.8712 | 53.8626 | 53.8650 | 53.8777 | 0.0077 |
| −16.6438 | −16.6445 | −16.6481 | −16.6525 | −16.6581 | 0.0059 |
2# | | 47.6862 | 47.6695 | 47.6544 | 47.6655 | 47.6782 | 0.0121 |
| 29.5054 | 29.5030 | 29.4971 | 29.4840 | 29.4825 | 0.0106 |
3# | | 1.5933 | 1.5794 | 1.5826 | 1.5893 | 1.5973 | 0.0069 |
| 23.5561 | 23.5416 | 23.5321 | 23.5177 | 23.5082 | 0.0190 |
4# | | 7.8258 | 7.8378 | 7.8251 | 7.8272 | 7.8466 | 0.0094 |
| −22.4643 | −22.4842 | −22.4857 | −22.4910 | −22.4883 | 0.0106 |
5# | | 27.8689 | 27.8605 | 27.8546 | 27.8625 | 27.8707 | 0.0065 |
| 3.2265 | 3.2136 | 3.2049 | 3.1982 | 3.1997 | 0.0117 |
Table 11.
Measuring Time/s
Step Number | Step Name | Elapsed Time |
---|
1 | Calibration of
internal parameter | 7.246428 s |
2 | Calibration of
structural light plane | 0.521826 s |
3 | Calibration of
measured plane | 0.077353 s |
4 | Extraction of edge
points of holes | 0.360029 s |
5 | Obtain the hole group
position degree | 0.078718 s |