Lets assume that I have a video playing in canvas and I want to do some basic analysis on that video like edge detection, motion detection and general motion direction. How should I approach this problem? Can you point me in the right direction to some simple algorithms and general ideas on how to implement them?
I'm assuming that those kinds of things aren't often coded in JS, so I'm not hoping for anything working out of the box.
Any ideas?