Publications / 2024 / Gap measurement method based on projection lines and convex analysis of 3D point clouds

Gap measurement method based on projection lines and convex analysis of 3D point clouds

Wei Pan, B Jiang, W Tang, F Wu, S Li
Measurement Science and Technology, 35(10):105024

In one sentenceA relay’s gap to the ground (the base it stands on) must stay under 0.07 mm. A fast backlit 2D check screens every relay, then a 3D point-cloud model finds the surface the relay rests on and measures the gap to it.

The problem

The gap between the lower surface of a relay and the ground (the base the relay stands on) is a critical factor in relay quality: it affects the relay’s conductivity and reliability, and for a qualified relay it must be less than 0.07 mm in the working state. Common displacement sensors each have drawbacks: eddy-current sensors must be customised to the measured part and are relatively costly, inductive sensors are disturbed by temperature, humidity and electromagnetic interference, capacitive sensors need a high-voltage supply and have large nonlinear error, and photoelectric sensors cope poorly with ambient light.

Optical measurement avoids contact, but each kind has a limit. Two earlier vision methods for measuring levitation gaps, Pixel Area and SelfConvNet, trade speed against accuracy: Pixel Area is fast but less accurate, SelfConvNet more accurate but slow. 2D methods also lose depth, including in occluded areas, which limits their accuracy. 3D point clouds keep that information, but their disorder and sparsity make the measurement time-consuming. On top of this, metal surfaces are prone to defects such as pits and burrs because of the limits of machining.

Three panels: a photo of a small black relay with metal terminals on top; a grey 3D model of a box-shaped relay standing on a flat base; a side-view sketch of the relay above the base with the gap G marked between line l0 at the relay's lower edge and line l1 at the base.
The relay (a), its 3D model in the working position (b), and the gap G between the relay’s lower edge l0 and the base edge l1 (c). Fig. 1 of the paper.

How it works

The method combines two measurement models. A 2D projection-line model measures the gap from a backlit image of it; a 3D surface point-cloud model locates the support surface between the relay and the ground and measures the gap against it. In inspection, the fast 2D model runs first and the 3D model checks the relays that pass.

  1. Backlit projection image. A highly directional backlight shines through the gap; it suppresses the diffraction of the illuminating light so that the edges image clearly. The camera sees the relay’s lower edge l0 and the base edge l1 as two clear straight lines with a bright gap between them.
  2. Projection lines. After guided filtering, which smooths noise while preserving edges, vertical search lines cross the region of interest, and on each line the two points with the largest Sobel gradient mark the edges. A line-deviation index discards points that differ from both neighbours by more than a threshold, which removes the noise points caused by burrs. Least-squares lines are fitted to the remaining points, and the pixel distance d between them is converted to millimetres with D = k·d, where the coefficient k is averaged over measurements of known gaps.
  3. Point-cloud clean-up. A line-laser profiler captures the relay’s lower surface as a 3D point cloud. A point is treated as an outlier when too many of its neighbours lie farther than a distance threshold. Connected-component segmentation then splits the surface into separate regions.
  4. Convex hull and centroid. Fitting a surface to the point cloud is complex, and its efficiency and accuracy are hard to guarantee together. Instead, the method builds the convex hull of the surface points with a fast convex-hull algorithm and computes the relay’s centroid, weighting each material part by its density. An object comes to rest when the resultant force and moment on it are zero, so the hull face that the centroid, projected along gravity, falls on is the support surface. The gap is the vertical distance from the points of the lower surface to this plane.
  5. Two-stage inspection. The projection-line model is the coarse stage and screens every relay. Relays that pass go to the point-cloud model, the fine stage, for a second measurement.
Six colour-coded point-cloud panels: the raw cloud of the relay's lower surface, the cleaned cloud, five segmented modules numbered 1 to 5, the cloud with its convex hull in purple, the cloud with a purple reference plane, and a side view with the supporting surface labelled.
The 3D processing steps: (a) the point cloud captured by the sensor, (b) the cleaned point cloud, (c) the main modules after segmentation, (d) the convex hull, (e) the reference plane, and (f) a side view showing the supporting surface. Fig. 12 of the paper.
Flowchart: Start, 2D projection, surface line model calculates the clearance distance, Qualified? If no, output unqualified; if yes, the line scan camera collects point clouds and the surface point cloud model calculates the gap distance, Qualified? again; if yes, export qualified and calculate the gap mean, finish.
The inspection flow that chains the 2D model (first dashed box) and the 3D model (second dashed box). Fig. 14 of the paper.

Results

The experiments use a 4000 × 3000 camera with a highly directional backlight for the 2D images and an OPT-LPE50 3D laser profiler for the point clouds. The models are compared with Pixel Area and SelfConvNet. For accuracy, gaps from 0 to 0.1 mm at equal steps were set on a single relay. Pixel Area had the largest errors (maximum 0.047 mm, average 0.038 mm), followed by the projection-line model (0.021 and 0.016 mm), SelfConvNet (0.02 and 0.0095 mm) and the point-cloud model (0.015 and 0.0087 mm). In the linearity test, the point-cloud model followed the true gap more closely than Pixel Area and SelfConvNet, and the combined model was the most linear.

In the factory inspection test, 11,931 relays were measured, 9,247 good and 2,684 defective. The projection-line model was both more accurate and faster than Pixel Area (6.6%, 48.5 ms), and the point-cloud model beat SelfConvNet (2.6%, 510 ms) on both counts. The combined model had the lowest false-drop rate (the share of relays misjudged) and was faster than both the point-cloud model and SelfConvNet, meeting the requirements of real-time on-site inspection. Manual inspection of mis-detected relays showed surface defects of varying degree, particularly pits and burrs. At a pit, edge occlusion makes the projection image show the lower surface at line b rather than at the pit bottom, line a, so Pixel Area, SelfConvNet and the projection-line model, which all work from projection images, lose accuracy there. The point-cloud model measures the distance between the entire surface and the support surface, which makes it less susceptible to pits. The authors sum up the trade-off: 2D methods are simple and fast but limited by the missing dimension and more prone to errors from surface defects, while 3D methods are more accurate and reliable at the cost of longer processing time.

Top: line plot of error value in mm against real gap distance from 0 to 0.1 mm for five models; the green Pixel Area curve swings most, the black 2D+3D curve stays closest to zero. Bottom: bar chart of maximum and average error; Pixel Area 0.047 and 0.038, Projection Line 0.021 and 0.016, SelfConvNet 0.02 and 0.0095, Surface PointCloud 0.015 and 0.0087, 2D+3D 0.009 and 0.0054.
Measurement errors of the five models for gaps from 0 to 0.1 mm (top), and their maximum and average errors in mm (bottom). “Surface Line” in the top legend is the projection-line model. Fig. 17 of the paper.
Left: a sketch of a relay foot with a pit cut into its lower face above a pink base; distance a runs from the bottom of the pit to the base, the shorter distance b from the visible lower edge to the base. Right: a green 3D block with a curved pit, with blue arrows pointing down onto the pit surface.
The surface defect model. The depth at the bottom of the pit corresponds to line a, but because of edge occlusion the lower surface appears as line b in the projection image. Fig. 18 of the paper.

Cite

@article{pan2024gap,
  title={Gap measurement method based on projection lines and convex analysis of 3D points cloud},
  author={Pan, Wei and Jiang, Bin-feng and Tang, Wen-ming and Wu, Fu-pei and Li, Sheng-ping},
  journal={Measurement Science and Technology},
  volume={35},
  number={10},
  pages={105024},
  year={2024},
  publisher={IOP Publishing},
  doi={10.1088/1361-6501/ad63c3}
}
Type
Article Journal
Topic
Industrial Inspection
Venue
Measurement Science and Technology, 35(10):105024
Year
2024
DOI