js/imageAnalysis.js
// Checks if motion has occured in image
Checks if motion has occured in image
Checks if motion has occured in image
function checkMotion(pixelData, refImg) {
  return new Promise(function(resolve, reject) {
    var result = motion.detect(pixelData, refImg);
    console.log('motion:', result);
    resolve(result);
  });
}
function checkMotion ( pixelData , refImg ) { return new Promise ( function ( resolve , reject ) { var result = motion . detect ( pixelData , refImg ) ; console . log ( 'motion:' , result ) ; resolve ( result ) ; } ) ; }
Checks if motion has occured in image
Checks if motion has occured in image