optic flow test

Опубликовано: 15 Июль 2026
на канале: troutinator
5,423
4

I've been playing around with video processing for a project and been messing with a technique called optic flow. Here's an example of what it looks like. The white lines (vectors) represent the movement apparent in the video from one frame to the next, i.e. optic flow. The boxes are moved around by looking the optic flow inside of them. The red and green one by the average direction and magnitude and the blue one by the direction with the maximum magnitude.

This is done in C# using Emgu CV (a C# binding around OpenCV) on a Core 2 Duo at 3.2Ghz, the video is quite accurate as to the speed at which things are processed, its quite smooth.