Computer VisionRecognition & Detection

Optical Flow

Overview

Direct Answer

Optical flow is the computational estimation of pixel-level motion vectors between consecutive video frames, representing the apparent displacement of intensity patterns caused by object movement or camera motion. It quantifies 2D motion by measuring how brightness patterns shift across time.

How It Works

The technique assumes brightness constancy—that pixel intensities remain constant as objects move—and solves for velocity fields by analysing spatial and temporal intensity gradients. Methods range from gradient-based approaches (Lucas-Kanade, Horn-Schunck) that impose smoothness constraints to modern learning-based models using convolutional neural networks trained on synthetic or annotated datasets.

Why It Matters

Optical flow enables real-time motion understanding without explicit object detection or tracking, reducing computational overhead in bandwidth-constrained systems. It underpins video compression, autonomous vehicle perception, and robotic navigation where temporal consistency and sub-frame accuracy directly impact safety and system efficiency.

Common Applications

Applications include video stabilisation and frame interpolation in consumer cameras, motion estimation in medical imaging (cardiac and pulmonary analysis), autonomous driving for ego-motion compensation, and robotics for obstacle avoidance. Surveillance systems use optical flow for anomaly detection by identifying unexpected motion patterns.

Key Considerations

Occlusions, motion boundaries, and large displacements challenge traditional methods; performance degrades significantly in low-texture regions where gradient information is insufficient. Real-time deployment requires careful selection between lightweight classical algorithms and computationally intensive deep learning models.

More in Computer Vision