How altvizz-sih26/altvizz works
DepthWizard turns a single aerial or satellite image into relative depth, then—when georeferencing or an elevation reference is available—calibrated elevations and a terrain mesh. The main workflow runs from the React upload interface through FastAPI job handling and the depth pipeline; results are then presented or downloaded in the frontend. Documented capabilities also include before/after comparison and an interactive 3D viewer. The sampled excerpts establish core pipeline calls, but not every router-to-service or result-serialization detail, so those links are kept at the documented workflow level.
Main entry points: depth_pipeline.py Depth pipeline · pipelineService.js Pipeline client · main.py FastAPI app · jobs.py Job routes
Components 19
User interface
- Web app
src/App.jsx - Pipeline client
src/services/pipelineService.js - 3D viewer
src/main.js
API and jobs
- FastAPI app
app/main.py - Upload routes
app/routers/upload.py - Job routes
app/routers/jobs.py - Job database
app/database.py
Elevation processing
- Depth pipeline
app/services/depth_pipeline.py - Depth Anything
depth_anything_v2/dpt.py - Terrain classifier
terrain_classifier/terrain_classifier.py - SRTM alignment
process_new_image.py - Elevation calibration
person2_elevation/elevation_pipeline.py - Change analysis
person2_elevation/run_before_during_pipeline.py - Terrain mesh
person3_3d_reconstruction/create_terrain.py
Results and viewing
- Generated results
app/services/depth_pipeline.py - Result file service
app/main.py
Other components
- User
- GeoTIFF input
- SRTM data
Connections 24
- User → Web app: uploads image
- Web app → Pipeline client: starts upload
- Pipeline client → Upload routes: POST image
- FastAPI app → Upload routes: mounts routes
- FastAPI app → Job routes: mounts routes
- Upload routes → Job database: records job
- Job routes → Job database: reads job
- Job routes → Depth pipeline: runs job
- Pipeline client → Job routes: polls status
- Depth pipeline → Depth Anything: infers depth
- Depth pipeline → Terrain classifier: classifies image
- Depth pipeline → SRTM alignment: fetches reference
- GeoTIFF input → SRTM alignment: provides georeferencing
- SRTM data → SRTM alignment: provides tiles
- Depth pipeline → Elevation calibration: calibrates heights
- SRTM alignment → Elevation calibration: supplies aligned data
- Depth pipeline → Terrain mesh: generates mesh
- Depth pipeline → Generated results: writes outputs
- FastAPI app → Result file service: serves results
- Pipeline client → FastAPI app: fetches results
- Web app → 3D viewer: opens viewer
- Pipeline client → 3D viewer: provides result links
- User → Change analysis: requests comparison
- Change analysis → Generated results: produces change grids