GithubHelp home page GithubHelp logo

jdm / js-motion-detection Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reallygood/js-motion-detection

0.0 3.0 2.0 9.25 MB

A basic starting point for motion-detection apps using WebRTC & Canvas, refactored out of the Magic Xylophone by @soundstep

Home Page: http://reallygood.co.il/plugins/motion/

JavaScript 100.00%

js-motion-detection's Introduction

JS Motion Detection

This project tries to provide a basis for other motion-detection apps, by separating the framework and its consumption.

The app uses WebRTC, HTML5 Canvas and some math, and is refactored out of the Magic Xylophone by soundstep. You can learn more about the process fom Romuald himself on Adobe Developer Connection and his blog post.

Usage

Any child element you add inside <div id="hotSpots"></div> will automagically work as a hotSpot, which means it will fire motion events on itself with extra data upon motion detection.

You could control its appearance & position with CSS, and hook to the motion events with jQuery / plain JS.

Sample Usage & DEMO

  • See some examples in sample.js
  • Open up the demo here. Hit Allow, check the console.

Tested in Chrome Canary, might not yet work in your browser

js-motion-detection's People

Contributors

jdm avatar ronnyo avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.