Computer Vision · Advanced level

Advanced level · Module 8: Introduction to SLAM and Robotics Vision · Lesson 2 of 3

Visual Odometry

Learners estimate how a camera moved between frames by matching ORB features, computing the essential matrix and recovering rotation and translation.

In this lesson you will

  • Estimate relative camera motion between frames
  • Explain scale ambiguity and drift

Key concepts

feature matchingessential matrixcv2.findEssentialMat with RANSACcv2.recoverPosedrift and scale ambiguity

The lesson

Visual odometry estimates a camera's motion from images. Match ORB features between consecutive frames (as in the Beginner level), estimate the essential matrix with cv2.findEssentialMat using RANSAC to reject wrong matches, and recover rotation and translation with cv2.recoverPose.

With one camera, translation is known only up to scale: the camera can tell the direction it moved, not how far. Small errors accumulate over time (drift), so the estimated path slowly diverges from the true one.

Plotting the estimated path for a short walking video around a building shows both the method and its drift.

Step by step

  1. Record a short video walking slowly around a building.
  2. Match ORB features between consecutive frames.
  3. Estimate and chain the relative poses.
  4. Plot the estimated path and describe the drift.

Practice activity

Produce a visual odometry path for a short video and explain its errors.

Expected result: A plotted path with a correct explanation of scale ambiguity and drift.

Check your understanding

  1. Why can a single camera not recover absolute scale?

    Show answer

    Images show directions, not distances, without extra information.

  2. What is drift?

    Show answer

    Accumulated small errors that make the estimated path diverge over time.

Further learning

Taught live by an instructor — online or in person. Free course lessons are for self-study and do not lead to a certificate — see registration options.