It’s also worth taking a look at this thread: DSW Vision 2 'Flow alpha' (currently macOS only)
The plugin was based on the openCV library (where CV stands for Computer Vision in this case) and even if it had no further development - afaik - after the Mac alpha-release for VCVRack 0.6, it’s a nice example of possible implementations.