Average captured image flow on p5.js?

I work mostly with Processing Java and Python modes, where I’m used to have OpenCV to calculate average image flow. Is there something that will provide a ready-to-use average image flow vector (like opencv.getAverageFlow()) in p5.js?

I have been looking at VIDA (https://www.tetoki.eu/vida/), and it looks great, but I couldn’t find any easy flow vectors. Am I missing something?