GithubHelp home page GithubHelp logo

nodamu / sign-language-recogntion Goto Github PK

View Code? Open in Web Editor NEW
43.0 5.0 5.0 138.64 MB

Cross platform sign language translation with mediapipe

License: Apache License 2.0

Starlark 7.23% Dockerfile 0.06% Python 2.02% C++ 82.23% C 0.87% Makefile 0.01% Java 3.58% Shell 0.11% HTML 0.05% JavaScript 0.07% Objective-C 1.68% Objective-C++ 2.08%
mediapipe hand-gesture-recognition pipelines computer-vision

sign-language-recogntion's Introduction

Build Status

Hand gesture recognition with Mediapipe

MediaPipe is a framework for building multimodal (eg. video, audio, any time series data), cross platform (i.e Android, iOS, web, edge devices) applied ML pipelines. With MediaPipe, a perception pipeline can be built as a graph of modular components, including, for instance, inference models (e.g., TensorFlow, TFLite) and media processing functions.

Installation

  1. To install mediapipe follow these instructions for linux environments(That's what I use, haven't tested on other OS's).
  2. To run the desktop demo via webcam on CPU run
# This compiles and builds the demo
# It should print:
#Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu up-to-date:
# bazel-bin/mediapipe/examples/desktop/hand_tracking/hand_tracking_cpu
#INFO: Build completed successfully, 12517 total actions
$ bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 \
    mediapipe/examples/desktop/hand_tracking:hand_tracking_cpu


# This will open up your webcam as long as it is connected and on
# Any errors is likely due to your webcam being not accessible
$ GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/hand_tracking/hand_tracking_cpu \
    --calculator_graph_config_file=mediapipe/graphs/hand_tracking/hand_tracking_desktop_live.pbtxt
  1. To run on GPU on desktop run
# Video from webcam running on desktop GPU
# This works only for linux currently
$ bazel build -c opt --copt -DMESA_EGL_NO_X11_HEADERS \
    mediapipe/examples/desktop/hand_tracking:hand_tracking_gpu

# It should print:
# Target //mediapipe/examples/desktop/hand_tracking:hand_tracking_gpu up-to-date:
#  bazel-bin/mediapipe/examples/desktop/hand_tracking/hand_tracking_gpu
#INFO: Build completed successfully, 22455 total actions

# This will open up your webcam as long as it is connected and on
# Any errors is likely due to your webcam being not accessible,
# or GPU drivers not setup properly.
$ GLOG_logtostderr=1 bazel-bin/mediapipe/examples/desktop/hand_tracking/hand_tracking_gpu \
    --calculator_graph_config_file=mediapipe/graphs/hand_tracking/hand_tracking_mobile.pbtxt

Custom hand gesture recognition calculator built with mediapipe

  • Gesture Calulator
  • GestureRecognizer calulator
  • It currently uses finger state to detect signs i.e bent, straight relative to thumb
  • Currently working on using weighted matching
  • To view graph in visualizer, upload hand_landmark_cpu.pbtxt to MediaPipe Visualizer.

Android

  • Android build can be found here

Roadmap

  • Implement a robust similarity matching function(Working on a weighted matching function)
  • Hook up Travis CI for remote builds and Continuous integration
  • Sign/Gesture preseting and storage
  • Port to mobile platforms(Android and iOS)

sign-language-recogntion's People

Contributors

nodamu avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

sign-language-recogntion's Issues

Error while buliding multi_hands_tracking_cpu

INFO: Analyzed target //mediapipe/examples/desktop/multi_hand_tracking:multi_hand_tracking_cpu (114 packages loaded, 4134 targets configured).
INFO: Found 1 target...
Target //mediapipe/examples/desktop/multi_hand_tracking:multi_hand_tracking_cpu up-to-date:
bazel-bin/mediapipe/examples/desktop/multi_hand_tracking/multi_hand_tracking_cpu
INFO: Elapsed time: 81.045s, Critical Path: 29.86s
INFO: 1 process: 1 internal.
INFO: Build completed successfully, 1 total action
INFO: Build completed successfully, 1 total action
E20210502 15:34:10.778005 12027 demo_run_graph_main.cc:163] Failed to run the graph: ; Can't find file:

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.