Photogrammetry: How to quickly build a 3D model of anything with just a laptop and a camera for free

In this article, we’re going to teach you how to build a basic 3D model using just a camera and a laptop. We will use a free piece of software called Vsfm. We won’t go into any details of how this works in this article.

Photogrammetry: Structure from motion

Structure from motion (SfM) is a photogrammetric range imaging technique for estimating three-dimensional structures from a two-dimensional image, It’s a form of computer vision. With that said, let's start!

Overview

Flow chart.png

Setup

We’ll be using a range of free software for this so let’s get started!

  1. Download VSfM http://ccwu.me/vsfm/
  2. Unzip VSfM
  3. Download CMVS-PMVS https://github.com/pmoulon/CMVS-PMVS
  4. Unzip CMVS-PMVS
  5. Open CMVS-PMVS-master/binariesWin-Linux
  6. Open the relevant folder for your system
  7. Copy the contents of the folder you just opened
  8. Open the VSfM folder you unzipped in Step 2
  9. Paste the contents you just copied, you will be asked to replace or skip the files. Click replace
  10. Done!

Generating a model

Now you’ve got everything set up here comes the fun part! Making your first 3D model. So, I’ll guide you through a quick overview process to get you started.

Get some photos

First, we need Photos of whatever it is you want to turn into a 3d model. You want between 20 and 50 photos’ initially. If you’ve got a really good computer then you can get away with more. Make sure you’re using a good camera, keep flash off and try to keep the light and shadows on the object constant.

If it’s a flat surface take the photos in a scanning motion.

flat surface pics.png

Otherwise Take photos about every 20 degrees 360 degrees around the object. Increase the height after one 360 and repeat.

Spiral surface.png

Processing

1, Open Vsfm

open pic.png

Open VSFM, by clicking the VSFM.exe in the folder you unzipped earlier. Two windows will open, the interface and the log window.

2, Load the images

Load pics.png

Wait for the images to load in

2, Click compute missing matches

missing matches.png

Allow the software to complete the missing matches

3, Click compute 3D reconstruction

sparse.png

Allow the software to build the sparse cloud, this may take a little longer

4, Click Run dense cloud reconstruction

dense cloud.png

You will be prompted to Save the file

This process may take a while but it’s the last one to make the model!

5, Once it’s finished Press tab and you should see a point cloud of your model!

part.png

Controls:

You can reload your model at any time by clicking the SFM tab then clicking Load NView match and finding the file you saved earlier for the dense cloud.

Best practices and tips

  • Features! Make sure images you have contain lots of features; the algorithms detect features so the more you have the better the results
An image with no features

An image with no features

An image with many features!

An image with many features!

  • Try to avoid taking photos of shiny surfaces, cover them in Talc powder if need be
  • Keep the object of interest in the centre of the image
  • Try to cover the whole image with the object of interest
  • Try to make sure each image has an overlap of features
  • Practice!

This is only a basic guide on how to do Photogrammetry with some free software, A3L regularly develop and use photogrammetry for advanced scanning applications with an accuracy of less than 1mm. We use photogrammetric applications for building CAD models and Augmented/virtual reality.

 
a3l.jpg
 

A3L are the lead supplier of ProjectionWorks to the UK and Europe. For more information please feel free to contact us:

www.a3l.uk.com

+44 (0) 7984 520549

Mike.Sorbie@a3l.uk.com