How m-i-c-h-e-a-l-05/2d_to_3d_human works
This is a Python human-image-to-3D reconstruction application, with a separate multi-angle capture workflow. In the reconstruction path, a source image is cropped around the person, segmented, split into overlapping upper/lower regions, depth-estimated and aligned, then reconstructed and saved as an OBJ. The main script also prepares and displays intermediate results. CaptureManager and PoseDetector support angle-guided frame collection, but the excerpts do not show them wired into main. Edges follow explicit calls in main or component behavior; the segmentation-to-depth-model link is unverified.
Main entry points: main.py Reconstruction Runner · zoe_depth_model.py Zoe Depth Model · human_segmenter.py Human Segmenter · depth_estimator.py Depth Estimator
Components 13
Angle Capture
- Pose Detector
pose_detector.py - Capture Manager
capture_manager.py
Image Preparation
- Reconstruction Runner
main.py - Person Cropper
person_cropper.py - Human Segmenter
human_segmenter.py - Body Splitter
mask_splitter.py
Depth Processing
- Zoe Depth Model
zoe_depth_model.py - Depth Estimator
depth_estimator.py - Depth Aligner
depth_aligner.py
3D Output
- Mesh Reconstructor
obj_reconstructor.py - OBJ File
Other components
- Image Provider
- ZoeDepth Source
Connections 13
- Image Provider → Reconstruction Runner: provides image
main.py - Reconstruction Runner → Person Cropper: calls crop
main.py - Reconstruction Runner → Human Segmenter: calls segmentation
main.py - Reconstruction Runner → Body Splitter: splits body
main.py - Reconstruction Runner → Depth Estimator: estimates depth
main.py - Reconstruction Runner → Depth Aligner: aligns depth
main.py - Reconstruction Runner → Mesh Reconstructor: reconstructs mesh
main.py - Depth Estimator → Zoe Depth Model: requests inference
depth_estimator.py - Zoe Depth Model → ZoeDepth Source: loads model
zoe_depth_model.py - Human Segmenter → Zoe Depth Model: uses depth model
- Mesh Reconstructor → OBJ File: writes OBJ
obj_reconstructor.py - Image Provider → Pose Detector: supplies frames
- Image Provider → Capture Manager: supplies frames