Abstract
This paper presents a fully automatic framework for extracting editable 3D objects directly from a single photograph. Unlike previous methods which recover either depth maps, point clouds, or mesh surfaces, we aim to recover 3D objects with semantic parts and can be directly edited. We base our work on the assumption that most human-made objects are constituted by parts and these parts can be well represented by generalized primitives. Our work makes an attempt towards recovering two types of primitive-shaped objects, namely, generalized cuboids and generalized cylinders. To this end, we build a novel instance-aware segmentation network for accurate part separation. Our GeoNet outputs a set of smooth part-level masks labeled as profiles and bodies. Then in a key stage, we simultaneously identify profile-body relations and recover 3D parts by sweeping the recognized profile along their body contour and jointly optimize the geometry to align with the recovered masks. Qualitative and quantitative experiments show that our algorithm can recover high quality 3D models and outperforms existing methods in both instance segmentation and 3D reconstruction.
Introduction
Recovering 3D geometry from a single 2D image is a fundamental challenge in computer vision. While deep learning has enabled the estimation of 3D shapes, existing methods often produce "blobby" volumetric representations (voxels) or disorganized point clouds. These outputs lack the clean, semantic structure required for professional applications in CAD, e-commerce, or AR/VR.
AutoSweep addresses this by decomposing objects into "generalized primitives"—specifically generalized cuboids and generalized cylinders (GC-GCs). By assuming that man-made objects follow geometric rules, the framework bridges the gap between raw image pixels and structured, editable CAD-like models.
Methodology
The AutoSweep pipeline consists of three main stages designed to transform a 2D image into a parametric 3D representation.
1. Instance-Aware Segmentation (GeoNet)
Standard segmentation masks from networks like Mask R-CNN are often too coarse for high-fidelity 3D reconstruction. AutoSweep introduces GeoNet, which utilizes a Deformable Convolutional Network (DCN). By incorporating edge maps and contour maps as inputs, GeoNet produces highly accurate, smooth masks labeled as "profiles" (the ends of a shape) and "bodies" (the swept volume).
2. Profile Fitting and Trajectory Extraction
The system identifies the relationship between profiles and bodies. It fits a 3D primitive (such as a circle or rectangle) to the 2D profile mask. Simultaneously, a "thinning" algorithm extracts a 1D skeleton from the body mask, which serves as the trajectory axis for the sweep.
3. Volume Sweeping and Optimization
The final 3D shape is generated by "sweeping" the 3D profile along the trajectory axis. A joint optimization process adjusts camera pose, profile scale, and axis curvature to ensure the resulting 3D model aligns precisely with the 2D masks in the original photograph.
Data and Evaluation
The framework was trained and evaluated using a combination of synthetic and real-world datasets:
- Synthetic Data: 10,000 images rendered from ShapeNet models provided ground truth for pre-training.
- Real-World Data: A collection of 11,657 images of common objects (mugs, bottles, taps, furniture) sourced from ImageNet and web scraping.
- Benchmarks: Performance was compared against the SUN primitive dataset for cuboid detection and reconstruction.
Results and Discussion
AutoSweep demonstrates significant improvements in both segmentation accuracy and reconstruction quality.
Key Insights
- Primitives as a Prior: Using geometric constraints acts as a powerful regularizer, preventing the noisy geometry typical of voxel-based methods.
- Boundary Precision: GeoNet outperformed standard Mask R-CNN, improving mean Average Precision (mAP) by 7.51% at a high IoU threshold (0.9).
- Semantic Editability: Unlike point clouds, the output is a mathematical description (profile + path), allowing users to easily modify parameters like radius or curvature in 3D tools.
Performance
The process is highly efficient, taking approximately 1 second for segmentation and less than 1 second for 3D reconstruction, making it suitable for interactive use.
Conclusion and Future Work
AutoSweep successfully recovers high-quality, editable 3D models from single photographs. However, it is currently limited to objects representable as generalized cylinders or cuboids and assumes planar trajectories. Future work will focus on expanding the shape vocabulary to include complex 3D paths (e.g., spirals) and enforcing global semantic relations, such as symmetry and parallelism across multiple parts.
Summary updated