Digital Image Correlation

Source Frame
Live Video

Instructions

This interactive demonstration shows Digital Image Correlation (DIC) in action, using your webcam. DIC estimates the motion of pixels between consecutive frames of a video.

  1. Camera Access: Grant camera access when prompted.
  2. Live Video: The right canvas shows the live feed.
  3. Capture Frame: Click the "Capture Frame" button in the GUI to capture a still frame (left canvas).
  4. Observe Motion: Red lines on the right canvas show pixel movement.
  5. Adjust Parameters:
    • Flow Density: Controls how many flow vectors are *displayed* (higher = more lines). This does *not* affect the optical flow calculation itself, only the visualization.
    • Window Size: Adjusts the neighbourhood size for correlation calculation.
    • Incremental: If enabled, compares incremental steps in the video acquisition. If disabled, compares displacements against the static image on the left.
  6. Download Data: Click "Download Displacements" to get an Excel file with the raw displacement values.
Built with opencv by Benjy Marks