Javascript Motion Detection

I'm looking for a Javascript plugin / library that can detect motion in a video stream from a webcam.

It should have some sort of callback like:

Motion.onMotion(function(){
   // Do Something Here
});

      

That's literally all I need to do this.

+3


source to share


1 answer


There's a library called Reallygood for javascript motion detection. Please check it out. The movement can be detected with this code, which is probably similar to what you are looking for:

$('#one').on('motion', function(){
        console.log('touched one');
    });

      



Here's github .

-1


source







All Articles