# Average captured image flow on p5.js?

**URL:** <https://discourse.processing.org/t/average-captured-image-flow-on-p5-js/24222>\
**Category:** Libraries\
**Created:** [September 29, 2020, 2:16pm UTC](https://discourse.processing.org/t/average-captured-image-flow-on-p5-js/24222 "2020-09-29T14:16:15Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![villares](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/villares/32/3166_2.png) [@villares](https://discourse.processing.org/u/villares)\
**Post date:** [September 29, 2020, 2:16pm UTC](https://discourse.processing.org/t/average-captured-image-flow-on-p5-js/24222/1 "2020-09-29T14:16:15Z")

</div>

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/](https://www.tetoki.eu/vida/)), and it looks great, but I couldn’t find any easy flow vectors. Am I missing something?

![](https://abav.lugaralgum.com/sketch-a-day/2020/sketch_2020_07_31a/sketch_2020_07_31a.gif)
