So am am trying to develop an app/website which accesses the phone's camera and detects motion. But I have simply no idea how I would do this efficient and accurate. The timing is important so can not have huge above (1-20ms). The info I get will be sent to a Node.js server and compared to another camera with motion tracking.
So in short. What would be an efficient way to detect motion from a mobile camera in javascript then trigger a function?
:) Sorry if it is kind of messy, no idea how to formulate the question. So just leave a comment and I will see if I can clear up :P