Particle Contour Analysis with a 3D Depth Camera on Conveyor Belts
Model, calibration, and field validation steps for part contour, counting, dimension, and volume measurement with a 3D depth camera on a conveyor.
Counting and sizing stones, aggregates, or irregular pieces on a conveyor cannot be solved by a single camera looking at the belt. Dust, variable lighting, overlapping, and touching pieces blur the boundaries in the RGB image. A 2D/3D profile sensor, on the other hand, directly measures surface height, producing a depth map that is less affected by lighting. Still, reliable contour extraction, due to missing depth points, speckle noise, and small height differences, requires the sensor, belt movement, image processing, and geometric calibration to be designed together.
1. Why is a depth map used?
Each pixel in a depth image D(x,y), represents the distance between the sensor and the measured surface. If the tape plane is known, the local height of the part is approximately:
\[ h(x,y)=D_{bant}(x,y)-D(x,y) \]It appears in this form. This representation is based on geometry rather than color and texture. However, if the height difference between two contacting stones is weak or the laser reflection disappears, the boundary can still be fragmented. Therefore, raw depth is evaluated not alone, but together with gradient and Laplacian information that show the change in depth.
2. Geometric priors and SegFormer approach
The HybridMiT architecture in the source study uses normalized depth, Sobel gradient magnitude, and absolute Laplacian response as three input channels. The gradient is approximately:
\[ G(x,y)=\sqrt{(S_x*D)^2+(S_y*D)^2} \]It is calculated with. The Laplacian, on the other hand, emphasizes narrow and sudden geometric changes with second derivative behavior. While the MiT-B0-based SegFormer branch learns broad context, the lightweight local CNN branch preserves fine discontinuities. Edge-aware gating combines two information flows; full-resolution residual refinement corrects the coarse contour at the pixel level.
3. How is contour success measured?
Small marking shifts in one-pixel contour labels can have serious effects. Therefore, the study reported a one-pixel tolerance match in addition to the pixel-perfect match. Precision and sensitivity:
\[ Precision=\frac{TP}{TP+FP},\qquad Recall=\frac{TP}{TP+FN} \]and the threshold F1 value:
\[ BF1=\frac{2\,Precision\,Recall}{Precision+Recall} \]is calculated. ODS represents the F1 at the best threshold for the entire dataset, OIS represents the average of the best F1 for each image, and AP summarizes the precision-recall behavior over the threshold sweep. The tolerant result is not the system's physical measurement error; it only accepts a small pixel shift between the label and the prediction.
| Test | ODS | OIS | AP | Note |
|---|---|---|---|---|
| AGG_FULLDATA, tol=1 | 0,9607 | 0,9716 | 0,9683 | Main test |
| AGG_FULLDATA, tol=0 | 0,6476 | 0,6679 | 0,5735 | Pixel-perfect |
| External130, tol=1 | 0,9580 | 0,9734 | 0,9683 | Same sensor, different session |
4. Data set and discrimination discipline
The main dataset consists of 1200 training, 200 validation, and 200 test images. External130 is 130 images used only for testing; model selection was not performed on this data. This distinction is important. If consecutive scan frames of the same part are randomly distributed between training and testing, the model may memorize the object and appear to perform better than it actually does in real-world conditions. In practice, the separation should be done based on time, batch, shift, or physical sample.
In the source setup, the camera is approximately 0.5 m high, the bandwidth in the main session is about 0.21 m/s, and the measurement rate is 200 Hz. In the external session, these were approximately 0.26 m/s and 250 Hz. Since the two variables changed together, it cannot be determined separately which factor affected the result.
5. Correct reading of real-time performance
HybridMiT was measured on an NVIDIA RTX 4060 at a resolution of 832 × 576 for single image FP32 inference with 48.9 FPS, 20.45 ms latency, 3.71 million parameters, and 0.27 GB peak allocated VRAM. These values do not include the camera driver, data transfer, preprocessing, part matching, and PLC communication. Line cycle time:
\[ T_{toplam}=T_{alma}+T_{ön}+T_{model}+T_{son}+T_{haberleşme} \]It should be measured end-to-end. 48.9 FPS does not mean the same speed will be achieved at every facility; re-benchmarking is required as hardware, resolution, and software chain change.
6. Measurement from pixel to millimeter
Finding the contour does not directly give the physical dimension. The sensor's x-y scale, the band plane, and the lens/sensor geometry must be calibrated. Local pixel area s_xs_y projection area:
\[ A\approx N_p\,s_xs_y \]can be calculated. For volume, the heights within the contour are summed:
\[ V\approx\sum_{(x,y)\in R} h(x,y)\,s_xs_y \]This approach relies on the visible top surface; it does not measure the hidden geometry of overlapping or touching parts. The empty tape reference should be regularly updated for belt oscillation and inclination.
7. Field commissioning check
- The sensor must be attached to a rigid carrier; it should not mix with the vibration band profile.
- The laser window should be protected from dust, and the cleaning period should be monitored.
- The empty tape plane should be measured at different speeds and loads.
- The scanning trigger should be synchronized with the encoder; the longitudinal pixel spacing should not change rapidly.
- The missing depth ratio and confidence score should be alarm variables.
- Different grain size, moisture, dust, and bulk density should be tested separately.
- The count and size distribution should be verified with manual sieve/measurement results.
- The model version, calibration, and acceptance data should be archived together.
8. Limitations of the source study
The external test of the study is not a different device, but a different session with the same sensor family. Dust, humidity, and mechanical vibration were not tested separately in a controlled manner. The entire dataset is not publicly available. In the external set, DexiNed performed slightly better in some ODS/AP measures; therefore, a claim of universal superiority for the method cannot be made. High-frequency Sobel and Laplacian priors may be sensitive to surface noise. Data collection and validation need to be repeated for other sensors, materials, and facilities.
Result
The 3D depth camera provides a powerful measurement layer to extract the contours of irregular parts on the conveyor more independently of illumination. A reliable system relies on sensor mounting, trigger synchronization, empty belt calibration, data separation, and end-to-end latency measurement as much as it does on geometry-based models. Even if contour accuracy is high, physical dimension and volume results should undergo a separate metrological acceptance process.
Technical basis: J. Shen and colleagues, Real-Time Edge-Prior Guided SegFormer for Robust Contour Extraction of Aggregate Particles in Conveyor-Belt Depth Maps, Sensors 2026, 26, 3196, DOI: 10.3390/s26103196. This article explains the source results in the context of industrial measurement and commissioning without directly using them as a product performance claim.
