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.
- Camera Access: Grant camera access when prompted.
- Live Video: The left/top canvas shows the live feed.
- Capture Frame: Click the "Capture Frame" button in the GUI to capture a still frame (right/bottom canvas).
- Observe Motion: White lines on the left canvas show pixel movement.
- 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.
- Download Data: Click "Download Displacements" to get an Excel file with the raw displacement values.