Git Product home page Git Product logo

halloween-fun's Introduction

Halloween fun

A simple web app I built to scare the people in my dorm! This is kind of a 5-minute hack together, not my best code.

What it does

It uses the camera to detect movement, and when movement is detected it playes one of the scary sounds! I built a pumpking, placed a speaker inside, and attached the camera to the peek-hole in the door. After that, the fun could begin!

Features

It uses the camera web api to takes pictures, and then compares the pictures pixels using the HTML canvas.

What we learned

Cameras are not that accurate, so to detect a difference in an image you could not just compare the color values directly. I had to make sure the delta (difference) between the two frames were big enough.

Built With

HTML, JS, Canvas, Camera. As base, diff-cam-engine (Copyright (c) 2016 Will Boyd) was used.

halloween-fun's People

Contributors

iontea avatar

Watchers

James Cloos 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.