TL;DR
This paper introduces 3D Counting (3DC), a novel framework for quantifying identical objects in dense, irregular stacks where most items are hidden from view. By decomposing the problem into estimating the total volume of the stack and the "occupancy ratio" (the fraction of volume actually filled by objects), the authors achieve counting accuracy that significantly outperforms both traditional 2D computer vision methods and human participants.
What Problem Does This Paper Address?
Counting visible objects—like cars on a road or cells under a microscope—is a well-studied task. However, counting objects in a stack (e.g., fruit in a crate, products on a pallet, or a bowl of corn) is much harder because the vast majority of items are occluded.
Traditional 2D counting methods rely on seeing at least a piece of every object. When objects are piled deep, these methods fail completely. Humans also struggle with this; we tend to estimate by counting along axes and multiplying, a heuristic that fails when arrangements are irregular. The authors aim to fill this gap by treating counting as a 3D geometric problem rather than a 2D detection problem.
Methods
The core innovation is the decomposition of the count $N$ into three variables: $$N = \frac{\gamma V}{v}$$ Where $V$ is the total volume of the stack, $\gamma$ is the occupancy ratio, and $v$ is the volume of a single unit.
The 3DC pipeline consists of two main branches:
- Volume Estimation ($V$): The system takes multi-view images of the stack. It uses SAM2 to segment the objects and container, then employs 3D Gaussian Splatting (3DGS) to reconstruct the scene's geometry. A voxel carving algorithm then calculates the precise volume of the reconstructed stack, accounting for container thickness.
- Occupancy Ratio Estimation ($\gamma$): This is the "secret sauce." The authors found that the fraction of space occupied by objects can be inferred from a single "key view" (typically top-down). They use a monocular depth estimator (Depth Anything V2) to generate a depth map, which is then fed into an encoder-decoder network (with a DinoV2 backbone) to regress the occupancy ratio.
By using depth maps instead of raw RGB images for the occupancy network, the authors successfully bridged the "domain gap," allowing a model trained on synthetic data to generalize to real-world objects like chickpeas and beads.
Datasets
The authors introduced two significant new benchmarks:
- 3DC-Synthetic: A massive dataset of 400,000 images from 14,000 physically simulated scenes. It uses CAD models from the ABC dataset, dropped into containers using a physics engine to create realistic, irregular stacks.
- 3DC-Real: A validation set of 2,381 images across 45 real-world scenes (e.g., pasta, corn, beads, chocolates) with manually verified ground-truth counts.
Key Insights and Ideas
- Depth is the Universal Language: Training the occupancy network on depth maps rather than color images is crucial. Depth maps capture the "gaps" and surface textures that indicate how tightly objects are packed, regardless of whether the objects are plastic toys or real corn kernels.
- Humans are Bad at This: The researchers ran a contest with 33 participants. The "Human" baseline had a Symmetric Mean Absolute Percentage Error (sMAPE) of 76.85% on real scenes, while the 3DC model achieved 53.31%.
- Uniformity Assumption: A key insight is that while local density in a stack might vary, the average occupancy ratio ($\gamma$) remains remarkably consistent across a large enough container, making the global estimate robust.
Key Results
The 3DC method outperformed all baselines, including state-of-the-art 2D counters and even large vision-language models like Llama 3.2-11B (which failed the task entirely).
- Synthetic Accuracy: On 100 unseen synthetic shapes, 3DC achieved a Mean Absolute Error (MAE) of 79.48, compared to 320.50 for BMNet+ (a standard counting baseline).
- Real-World Generalization: On the 45 real-world scenes, 3DC achieved an sMAPE of 53.31%. While this sounds high, it is significantly better than the human average and the "Human-Vote" (average of all human guesses), which sat at 57.91%.
- Ablation: The study showed that using estimated depth maps during training actually performed better than using ground-truth depth, likely because the model learned to be robust to the slight smoothing artifacts present in real-world depth estimation.
Limitations and Future Work
- Geometric Complexity: The model's performance degrades as the shapes become more complex (e.g., highly concave objects). The authors propose adding a curvature complexity term to future iterations.
- Uniformity: The current method assumes objects are approximately identical and stacked in bulk. It might struggle with "mixed" stacks of different object types.
- Interpretability: Unlike detection-based methods, this approach doesn't "point" to every object. Future work could involve integrating visible instance localization to provide more interpretable results.
Summary updated