How aihdproduction/samcloud works
SAMcloud is a local photogrammetry and building-modeling application. Users create a project from drone, camera, or 360 imagery; reconstruct and optionally scale or georeference it; classify and refine the resulting point cloud; then review and export LAS, DXF, and indoor IFC outputs, with optional web sharing. The graph follows README-documented workflow stages and preserves major export and review capabilities. Some subsystem relationships are documented rather than verified from source excerpts; those edges cite the README, and unsampled internals are not expanded.
Main entry points: dxf/pipeline.py DXF generation · engine/pipeline.py COLMAP pipeline · application.py Guided interface · project_manager.py Project management
Components 31
Capture and projects
- Application entry
main.py - Guided interface
samcloud/app/application.py - Project management
samcloud/core/project_manager.py - Workspace paths
samcloud/core/paths.py - Panorama preparation
samcloud/acquisition/panorama.py - Video preparation
samcloud/acquisition/video.py - Project storage
samcloud/core/storage.py - Interface languages
samcloud/app/i18n.py - Configuration loader
samcloud/core/configuration.py
Reconstruction and classification
- COLMAP pipeline
samcloud/engine/pipeline.py - Semantic classification
samcloud/classification/service.py - Class profiles
samcloud/classification/profiles.py - Geometric refinement
samcloud/engine/geometry/refine.py - Drone data contracts
samcloud/drone/contracts.py
Review and control
- Scale and control points
samcloud/control_points/repository.py - Cloud review
samcloud/viewer/preview.py - DXF review controls
samcloud/app/dxf_controller.py
Plans and building models
- DXF generation
samcloud/dxf/pipeline.py - Classified cloud input
samcloud/dxf/las_source.py - Orthophoto clean plans
samcloud/ortho/plan.py - Plan symbols
samcloud/ortho/vector/symbols.py - Shared building plan
samcloud/bim/plan_model.py - DXF settings
samcloud/dxf/config.py - DXF progress control
samcloud/dxf/cancel.py - DXF layer mapping
samcloud/dxf/layers.py - DXF result cache
samcloud/dxf/result.py
Export and sharing
- IFC building export
samcloud/bim/export.py - LAS export
samcloud/engine/export_las.py - Web sharing
samcloud/share/ui.py - Cloudflare R2
samcloud/share/providers/cloudflare_r2.py
Other components
- Project user
Connections 30
- Project user → Guided interface: starts workflow
- Application entry → Guided interface: launches
main.py - Guided interface → Project management: creates project
- Project management → Workspace paths: uses workspace
samcloud/core/project_manager.py - Project management → Panorama preparation: prepares capture
- Panorama preparation → Video preparation: uses video frames
samcloud/acquisition/panorama.py - Project user → COLMAP pipeline: submits imagery
- COLMAP pipeline → Scale and control points: applies tag scale or GCP
samcloud/engine/pipeline.py - COLMAP pipeline → Semantic classification: classifies cloud
- Semantic classification → Class profiles: uses class profile
samcloud/classification/service.py - Semantic classification → Geometric refinement: refines classes
- COLMAP pipeline → Project storage: stores project outputs
samcloud/engine/pipeline.py - Project user → Cloud review: reviews cloud
- Guided interface → DXF review controls: opens plan review
samcloud/app/application.py - DXF review controls → DXF generation: requests plan
samcloud/app/dxf_controller.py - DXF generation → Classified cloud input: reads classified cloud
samcloud/dxf/pipeline.py - DXF generation → DXF settings: loads settings
samcloud/dxf/pipeline.py - DXF generation → DXF layer mapping: maps layers
samcloud/dxf/pipeline.py - DXF generation → DXF progress control: checks progress
samcloud/dxf/pipeline.py - DXF generation → DXF result cache: produces results
samcloud/dxf/pipeline.py - Classified cloud input → Orthophoto clean plans: feeds clean plan
samcloud/ortho/plan.py - Orthophoto clean plans → Plan symbols: uses plan symbols
samcloud/ortho/plan.py - Orthophoto clean plans → Shared building plan: persists building model
samcloud/bim/plan_model.py - Shared building plan → IFC building export: exports indoor model
- Project user → LAS export: starts LAS export
- Project user → Web sharing: publishes project
- Web sharing → Cloudflare R2: uploads to bucket
samcloud/share/ui.py - Guided interface → Interface languages: uses translations
samcloud/app/application.py - Project management → Configuration loader: loads defaults
samcloud/core/project_manager.py - COLMAP pipeline → Drone data contracts: uses drone data
samcloud/engine/pipeline.py