Coder Social home page Coder Social logo

sladuca / whiteboard-pal Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 2.0 293.34 MB

License: Apache License 2.0

C++ 81.29% Shell 0.21% Python 3.64% Starlark 8.08% Java 3.40% Dockerfile 0.02% HTML 0.04% JavaScript 0.06% Objective-C 1.22% Objective-C++ 1.41% C 0.64%

whiteboard-pal's Introduction

Setup

Prerequisites

install bazelisk. Easiest way is to have node installed (do yourself a favor and use nvm) and do npm i -g @bazel/bazelisk. install boost using sudo apt install libboost-all-dev.

No CUDA or Opencv necessary, as this runs entirely on CPU and is already configured to build a local version of OpenCV. No worries if you already have either installed, it shouldn't interfere with everything.

Also need to install ncurses by doing sudo apt-get install libncurses5-dev libncursesw5-dev.

Repo setup (should only need to do this once)

setup opencv: ./setup_opencv

python3 -m venv env source ./env/bin/activate (run this every time you start a new shell, otherwise you'll get a weird python: command not found error when trying to build)

Init loopback device (do every time you reboot)

run ./init_device.

Build

bazel build -c opt --define MEDIAPIPE_DISABLE_GPU=1 src:whiteboard_pal

Run

GLOG_logtostderr=1 ./bazel-bin/src/whiteboard_pal --calculator_graph_config_file=mediapipe/graphs/whiteboard_pal/whiteboard_pal.pbtxt

Currently, there are three different modes for Whiteboard Pal: free drawing mode, line mode, and eraser mode. To toggle between the different modes, simply press "m" on the keyboard when not making the drawing gesture.

To "deposit ink" when drawing, you will need to form the gesture of making an L shape with your fingers (think of "L on your forehead" from All Star by Smash Mouth). Otherwise, to "lift the pen" and not draw, simply close your thumb inwards and only have your index finger pointing.

Note: To use Whiteboard Pal on Zoom, you will have to run the application BEFORE opening up Zoom on Linux, otherwise Zoom will not recognize Whiteboard Pal as an input device.

whiteboard-pal's People

Contributors

jennyyu73 avatar sladuca avatar zacchaeuswilliams 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.