Repository for OpenCV's extra modules
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

606 B

Optflow-Demo

@prev_tutorial{v4d_pedestrian} @next_tutorial{v4d_beauty}

Original author Amir Hassan (kallaballa) amir@viel-zu.org
Compatibility OpenCV >= 4.7

Optical flow visualization on top of a video. Uses background subtraction (OpenCV/OpenCL) to isolate areas with motion, detects features to track (OpenCV/OpenCL), calculates the optical flow (OpenCV/OpenCL), uses nanovg for rendering (OpenGL) and post-processes the video (OpenCL). Decodes/encodes on the GPU (VAAPI).

@youtube{uPYTRPZnocw}

@include samples/cpp/optflow/optflow-demo.cpp