Giter Site home page Giter Site logo

mcwics-app's Introduction

McWics-2020

Dance Dance Revolution Mini :)

Demo: https://www.youtube.com/watch?v=V5fuObj5YHY


The goal of our project is to have a Hack McWicks version of Just Dance with the dance moves being recognized through wrnch's SDK via a live webcam. If the dance move is correct, the LED strip outputs a green color, otherwise a red color.

We used an Arduino to power the LED strip and the python library pyserial to send commands from the python script to the arduino to trigger the correct color sequences for the LED strip.


The live camera feed gets processed through wrnch's SDK [which we obtained as part of the hackathon event], compares it to the data of the correct move (from a picture we took and processed). Using vector calculations we can get an estimate of the resemblance of the two dance poses (live webcam feed and saved image). A number between 0 (high similarity) and 2 (low similarity) gets outputed and updated multiple times per second. If this number gets below a certain threshold, the python script sends the command to the arduino to trigger color sequence : orange if below than 1 and green if below than 0.8. Otherwise, red flashes.


To connect Arduino and python code via pyserial:

  • Install pyserial

    • pip install pyserial
  • Configure pyserial

    • go in python file
      • insert the following code at the beginning, COMx being the serial port connecting your computer to Arduino
        • Import serial
        • ser1 = serial.Serial('COM1', 9600)
      • insert the following code to send command to Arduino, replace 'a' by any single character you want
        • ser1.write(โ€™aโ€™.encode())

mcwics-app's People

Contributors

jamesbting avatar jshkrob avatar tasertot avatar zephirl avatar

Stargazers

 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.