Code Monkey home page Code Monkey logo

gesture-control's Introduction


Gesture Control โœ‹๐Ÿ’ก

Manage Philips Hue Lights with Hand Gestures

demo

Table of Contents
  1. Note for Non-Linux Systems
  2. About The Project
  3. Getting Started
  4. Run The Application

Note for Non-Linux Systems

The instructions provided in this README are tailored for Linux systems. If you are using a different operating system, such as macOS or Windows, please be aware that some commands may not work as-is.

About The Project

Gesture Control is a project that empowers you to control your Philips Hue lights using hand gestures.

Built With

Getting Started

To get a local copy up and running follow these simple example steps.

Installation

  1. Clone the repo
    git clone https://github.com/iammatthi/gesture-control.git
  2. Move into the newly created folder
    cd gesture-control
  3. Configure the application
    • Use automatic configuration (recommended)
      chmod +x configure.sh
      ./configure.sh
    • Use manual configuration
      1. Create virtual environment
      python3 -m venv venv
      1. Activate virtual environment
      source venv/bin/activate
      1. Install dependencies
      pip install -r requirements.txt
      1. Download gesture recognition model
        mkdir models
        wget -q https://storage.googleapis.com/mediapipe-models/gesture_recognizer/gesture_recognizer/float16/1/gesture_recognizer.task -O models/gesture_recognizer.task
      2. Create and edit config.yml file (see config.yml.example for an example)
        • Follow this guide to get all information needed for the config file

Run The Application

Make sure you have a virtual environment activated (source venv/bin/activate). Then run the following command:

python main.py

Now you can control your lights with hand gestures. The following gestures are supported:

  • โœŠ: Turn lights on
  • โœ‹: Turn lights off
  • ๐Ÿ‘: Increase brightness
  • ๐Ÿ‘Ž: Decrease brightness

gesture-control's People

Contributors

iammatthi avatar

Watchers

 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.