Digital Image Correlation

Live Video
Source Frame

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 left/top canvas shows the live feed.
  3. Capture Frame: Click the "Capture Frame" button in the GUI to capture a still frame (right/bottom canvas).
  4. Observe Motion: White lines on the left 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. Smaller is noisier but picks up finer features. Larger is smoother and more spread out.
    • 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