Skip to content
← All projects
UAV photogrammetry & 3D

3D from a Smartphone

One monocular smartphone video of an arcaded courtyard, run through the complete OpenSfM pipeline: 473 frames in, all 473 cameras recovered, 7.5 million dense points out, with every intermediate stage opened up and inspected.

Background: my dense OpenSfM reconstruction of the arcaded courtyard (May 2026): columns, arches and statues, from a single smartphone video. Downsampled from 5.1 M to about 500k points for the web; drag or swipe to turn it in 3D.

Context

A course project for Vision for Industry and Environment (MSc, May 2026). Instead of treating OpenSfM as a black box, I reconstructed a real outdoor scene from an ordinary phone video and inspected what each stage actually produces: camera metadata, features, verified matches, tracks, camera poses, the sparse cloud, depth maps and the fused dense cloud. Video frames carry almost no camera metadata, so the reconstruction had to rely on image geometry and feature correspondences alone.

What I did

  1. 01

    Implemented a complete Structure-from-Motion pipeline for 3D reconstruction from smartphone video using OpenSfM.

  2. 02

    Generated sparse and dense point clouds through feature matching, bundle adjustment, and Multi-View Stereo reconstruction.

The pipeline

  1. A

    Frames: images extracted from a monocular smartphone video at 1920 × 1080. Unlike a calibrated dataset such as ETH3D, the frames carry almost no camera metadata.

  2. B

    Features: OpenSfM’s default HAHOG detector (Hessian-Affine + Histogram of Oriented Gradients) with 128-dimensional descriptors. The first frame alone yields 5,364 features.

  3. C

    Matching: Lowe’s ratio test, then RANSAC geometric verification. For frame 1, 417 candidate pairs became 147 verified pairs and 24,153 correspondences; its neighbour frame 2 shares 3,037.

  4. D

    Tracks: 651,960 observations grouped into 183,652 tracks across 473 images, seen in 3.55 images on average and up to 107.

  5. E

    Incremental SfM: initial pair, essential-matrix pose, triangulation and repeated bundle adjustment. All 473 cameras were registered under one perspective camera model (normalised focal length 0.863, k₁ 0.060, k₂ −0.059).

  6. F

    Dense MVS: undistortion, per-image depth maps with confidence filtering (raw → clean), then fusion into a single coloured dense cloud (merged.ply), inspected in MeshLab.

Ran on an Apple M5 MacBook Air: a Docker container (Ubuntu 22.04, Python 3.10) with OpenSfM built from source (GCC 11, single-thread build), Rosetta for x86 components, and VS Code Dev Containers + Jupyter for inspecting every intermediate output.

From the report

Smartphone video frame of an arcaded courtyard with statues on plinths
Input: one of the 473 smartphone video frames.
Sparse point cloud with the ring of recovered camera positions around the courtyard
Sparse reconstruction: 143,836 points and the recovered camera path around the courtyard.
Raw and filtered depth maps of the arcade side by side
Multi-View Stereo depth map before and after confidence filtering.
Dense coloured point cloud of the courtyard arcades
Dense fusion: 7,471,241 points.

Key numbers

Input frames
473
Cameras reconstructed
473 / 473
Sparse points
143,836
Dense points
7,471,241
Feature tracks
183,652
Frame resolution
1920 × 1080

From the project report (May 2026). Next steps named there: surface meshing, texture mapping, semantic segmentation and Gaussian Splatting.

Featured 3D work · UAV photogrammetry

Roshdiyeh Tower, 3D model

Tabriz, Iran · 15 Sept 2015

Drone photogrammetry 3D modeling project of Roshdiyeh Tower in Tabriz, flown with a DJI Inspire 1 and FC350 camera.

Roshdiyeh Tower, 3D modelFilm · Tabriz, Iran · Sept 2015 ↗

Drone photogrammetry sample · DJI Inspire 1 · FC350.