Automated Counting of Stacked Objects in Industrial Inspection
Organizations: EPFL, Lausanne, Switzerland. · MBZUAI, Abu Dhabi, United Arab Emirates. · Southern University of Science and Technology, Shenzhen, China. · Stony Brook University, Stony Brook, New York, USA. ·
Abstract
Visual object counting is a fundamental computer vision task in industrial inspection, where accurate, high-throughput inventory tracking and quality assurance are critical. Moreover, manufactured parts are often too light to reliably deduce their count from their weight, or too heavy to move the stack on a scale safely and practically, making automated visual counting the more robust solution in many scenarios. However, existing methods struggle with stacked 3D items in containers, pallets, or bins, where most objects are heavily occluded and only a few are directly visible. To address this important yet underexplored challenge, we propose a novel 3D counting approach that decomposes the task into two complementary subproblems: estimating the 3D geometry of the stack and its occupancy ratio from multi-view images. By combining geometric reconstruction with deep learning-based depth analysis, our method can accurately count identical manufactured parts inside containers, even when they are irregularly stacked and partially hidden. We validate our 3D counting pipeline on large-scale synthetic and diverse real-world data with manually verified total counts, demonstrating robust performance under realistic inspection conditions.
Figures & tables
| NAE | SRE | MAE | sMAPE | |
|---|---|---|---|---|
| BMNet+ Shi et al. (2022) | 0.91 | 0.87 | 320.50 | 158.87 |
| SAM+CLIP Kirillov et al. (2023) ; Radford et al. (2021) | 0.73 | 0.61 | 259.22 | 102.77 |
| CNN | 0.66 | 0.48 | 235.74 | 98.44 |
| ViT+H | 0.42 | 0.24 | 149.90 | 47.36 |
| Ours | 0.22 | 0.09 | 79.48 | 27.65 |
| MAE | RMSE | sMAPE | |
|---|---|---|---|
| Convex hull | 0.1847 | 0.2121 | 23.58 |
| -concave hull | 0.4134 | 0.6724 | 54.07 |
| Ours | 0.0455 | 0.0690 | 9.33 |
| NAE | SRE | MAE | sMAPE | |
|---|---|---|---|---|
| ( , ) | 0.22 | 0.09 | 79.48 | 27.65 |
| ( , ) | 0.28 | 0.11 | 100.12 | 30.93 |
| ( , ) | 0.31 | 0.12 | 111.04 | 35.92 |
Appendix figures & tables3 assets
Supplementary material from the paper’s appendix.
Appendix
| NAE | SRE | sMAPE | |
| Visible objects only | |||
| BMNet+ [21] | 0.51 | 0.65 | 51.28 |
| SAM+CLIP [7,16] | 0.57 | 0.81 | 50.84 |
| All objects | |||
| BMNet+ [21] | 0.93 | 0.98 | 131.44 |
| SAM+CLIP [7,16] | 0.94 | 0.99 | 124.31 |
Object Counting
Object counting estimates the number and locations of target instances in images or video, from dense crowds to fine-grained categories.
See all 61 papers