Giter Club home page Giter Club logo

ninja-lantern's Introduction

[English/Japanese]

Ninja Lantern

Ninja Lantern

ninja-lantern-small.mp4

The Ninja Lantern is an interactive Turkish lamp that changes colors in response to hand seals, just like those used by ninjas. It uses Python and machine learning to recognize the seals and adjust the lamp's color accordingly.

Features

  • Real-time recognition of ninja hand seals using a camera
  • Displays the color corresponding to the hand seal using an RGB LED
  • Infinite possibilities and combinations of colors

Required Hardware

  • Raspberry Pi (with a USB Camera)
  • Turkish lamp
  • RGB LED(Neopixel)
  • Appropriate wiring

Setup

  1. Gather the necessary hardware and connect it to the Raspberry Pi.
  2. Install the necessary Python libraries on the Raspberry Pi's OS.

Setup Edge AI CV libraries

$ sudo apt-get update
$ cd && git clone https://github.com/karaage0703/edge-ai-cv
$ cd ~/edge-ai-cv/setup
$ ./install_opencv.sh
$ sudo pip3 install onnxruntime

Setup LED control libraries

$ sudo apt-get install scons
$ cd && git clone https://github.com/jgarff/rpi_ws281x.git
$ cd rpi_ws281x
$ sudo scons
$ sudo pip3 install rpi_ws281x
  1. Clone or download this repository.
$ git clone https://github.com/karaage0703/ninja-lantern.git
  1. Move into the ninja-lantern directory.
$ cd ninja-lantern
  1. Download and copy AI model and utility files of NARUTO-HandSignDetection
$ cd && git clone https://github.com/Kazuhito00/NARUTO-HandSignDetection
$ cd ~/ninja-lantern
$ cp -r ~/NARUTO-HandSignDetection/model ./
$ cp -r ~/NARUTO-HandSignDetection/utils ./
$ cp -r ~/NARUTO-HandSignDetection/setting ./
  1. Run the script to start the Ninja Lantern.

Single process version

$ sudo python3 ninja_lantern.py

Multi process version and full screen

$ sudo python3 ninja_lantern_mp.py --full_screen True

Usage

Simply bring your hand seal in front of the camera and enjoy as the lamp changes color accordingly.

Contributions

Feedback and pull requests are always welcome.

License

MIT License

Special Thanks

References

ninja-lantern's People

Contributors

karaage0703 avatar

Stargazers

 avatar  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.