OpenSfM (originally created by Pau Gargallo, supported across mapping and photogrammetry ecosystems such as OpenDroneMap and WebODM, and released under the BSD-2-Clause open-source license) is an open-source Structure-from-Motion (SfM), dense 3D reconstruction, and georeferenced 2D mapping pipeline for Linux, macOS (Apple Silicon), and Windows. Built for photogrammetry engineers, mapping developers, researchers, and geospatial teams, OpenSfM converts overlapping aerial, terrestrial, or object photos—along with GPS, Ground Control Points (GCPs), and sensor metadata—into camera poses, dense point clouds (`PLY`/`LAS`/`LAZ`), meshes, and georeferenced DSMs and orthophotos (`GeoTIFF`) with automated PDF quality reports.
1. In-Depth Review: Why Photogrammetry & Mapping Teams Use OpenSfM
- Geospatial-Ready SfM, Dense Cloud, DSM & Orthophoto Pipeline: Integrates Ceres-based bundle adjustment, rolling-shutter and multi-camera rig support, dense matching, and TSDF-based DSM/orthophoto generation with GCP/GPS alignment and localized PDF quality reports.
- Scales Across Aerial, Terrestrial, Object & Large Multi-Submodel Scenes: Ships with ready-made workflow presets (`aerial`, `terrestrial`, `object`) plus out-of-core submodel splitting/merging and stochastic solvers for large image sets.
- Scriptable Pipeline & Broad Export Interoperability: Runs end-to-end via `opensfm_run_all` or step-by-step subcommands (`extract_metadata`, `detect_features`, `compute_depthmaps`, etc.) and exports to `LAS`/`LAZ`, `PLY`, `GeoTIFF`, `GeoJSON`, Potree octree tiles, and external formats like `COLMAP` and `OpenMVS`.
2. Key Features & Capabilities
- Incremental Structure-from-Motion & Ceres Bundle Adjustment: Estimates camera poses and sparse 3D structure with support for perspective, Brown, fisheye, spherical/equirectangular, and rig camera models plus rolling-shutter correction.
- GPS, GCP & Sensor Georeferencing: Aligns reconstructions geographically using image GPS, Ground Control Points (GCPs), and checkpoints into target coordinate reference systems.
- Dense Point Clouds, Meshes, DSMs & Orthophotos: Produces dense `PLY`/`LAS`/`LAZ` clouds, `PLY` meshes, Potree octree tiles, and georeferenced `GeoTIFF` DSMs and orthomosaics.
- PDF Quality Reports & Built-In Viewers: Generates multi-language PDF quality reports (GPS/GCP error tables and DSM/ortho previews) alongside a browser-based 3D reconstruction viewer and Potree/Rerun outputs.
- Modular CLI Commands & Workflow Presets: Tune capture profiles using `config.yaml` presets (`aerial`, `terrestrial`, `object`) and execute individual pipeline stages.
- 100% Free & Open-Source (BSD-2-Clause License): Free to build, customize, and run across Linux, macOS (Apple Silicon), and Windows.
- Official Links: Free Trial, Free / Education & Pricing
Always download OpenSfM source code, Conda environments, and documentation directly from official OpenSfM portals:
- Official OpenSfM GitHub Repository: https://github.com/OpenSfM/OpenSfM
- Official OpenSfM Documentation Portal: https://opensfm.org/docs/
- Official OpenSfM Pipeline & Config Reference: https://github.com/OpenSfM/OpenSfM/tree/master/doc
- Official OpenDroneMap Ecosystem Portal: https://www.opendronemap.org/
4. Step-by-Step Installation Guide
- Check OS, Conda & Disk Requirements: Confirm your Linux, macOS (Apple Silicon), or Windows 64-bit workstation has Conda installed and ample SSD space for source images, feature/depth caches, and dense outputs.
- Clone OpenSfM with Submodules: Visit https://github.com/OpenSfM/OpenSfM and clone the repository with its submodules (`git clone --recursive https://github.com/OpenSfM/OpenSfM.git`).
- Create Conda Environment & Build Package: Create the environment from the provided Conda lock file (such as `conda create --name opensfm --file conda-linux-64.lock --yes` or `conda-osx-arm64.lock`), activate it, and install in editable mode (`pip install -e .`) following the official build instructions.
- Verify Pipeline Commands: Activate the `opensfm` Conda environment and run `./bin/opensfm --help` (or `bin\opensfm.bat --help` on Windows) to verify that C++ and Python modules load cleanly.

5. How to Use OpenSfM: Beginner Workflow
- Prepare Dataset Folder & Config Preset: Create a dataset directory containing an `images/` folder with overlapping photos, and copy a preset such as `configs/aerial.yaml` (or `terrestrial.yaml` / `object.yaml`) to `path/to/dataset/config.yaml`.
- Add GCPs / Coordinate Settings if Needed: Place ground control point definitions or coordinate reference settings in your dataset folder when georeferencing aerial or survey captures.
- Run the Reconstruction Pipeline: Activate your `opensfm` Conda environment and run `./bin/opensfm_run_all path/to/dataset` (or `bin\opensfm_run_all.bat path\to\dataset` on Windows).
- Inspect 3D Viewer & PDF Quality Report: View the reconstruction in the built-in browser viewer or Potree/Rerun output and review the generated PDF quality report for alignment and GCP accuracy metrics.
- Export Dense Point Clouds, Orthophotos & DSMs: Retrieve your georeferenced `GeoTIFF` orthophoto/DSM, `LAS`/`LAZ`/`PLY` point clouds or meshes, and `GeoJSON` outputs for QGIS, CloudCompare, or web viewers.
6. Frequently Asked Questions (FAQ)
- Is OpenSfM completely free and open-source?Yes. OpenSfM is free and open-source software licensed under the BSD-2-Clause license.
- How is OpenSfM related to OpenDroneMap and WebODM?OpenSfM provides core Structure-from-Motion and reconstruction capabilities widely used within the OpenDroneMap and WebODM photogrammetry ecosystem, while also usable standalone from the command line or Python.
- Does OpenSfM generate 2D orthophotos and DSMs in addition to 3D point clouds?Yes. OpenSfM includes dense reconstruction (`PLY`, `LAS`/`LAZ`, Potree octree tiles) as well as TSDF-based 2D map generation outputting georeferenced DSM and orthophoto `GeoTIFF` files.