Giter Site home page Giter Site logo

ringcrl / mediapipe Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prantoran/mediapipe

0.0 0.0 0.0 533.58 MB

Cross-platform, customizable ML solutions for live and streaming media.

Home Page: https://mediapipe.dev

License: Apache License 2.0

Shell 0.17% JavaScript 0.15% C++ 78.69% Python 4.02% C 0.65% Objective-C 1.11% Java 5.72% CSS 0.05% Objective-C++ 1.21% Makefile 0.02% HTML 0.08% Dockerfile 0.02% Starlark 8.09% Batchfile 0.01%

mediapipe's Introduction

MediaPipe

MediaPipe GSOC 2021: Web Video Effects App

  • Built on-top of the MediaPipe project.
  • The Emscripten mapping and the BUILD files for the project are in hello-world.
  • Summary of the work done during GSOC 2021 is here.

How to run the project

  • Clone this repo, which is a fork of MediaPipe set up with Emscripten emsdk import in the WORKSPACE file.
  • Install node modules for the server:
    • cd hello-server && npm i
  • From the root directory of the project, run the command in the terminal:
    • make build && make run
    • The scripts that are executed are in scripts/... and Makefile.
    • make build compiles the WASM binaries:
      • bazel build -c opt //hello-world:hello-world-simple --config=wasm
    • make run copies the required outputs and runs a NodeJS server to run the WASM binaries locally.
      • Output files are copied from bazel-out/wasm-opt/bin/hello-world/...

Notes

  • The files important in hello-server are hello-server/public/{index.html, renderer.js}. The rest of the contents in the hello-server folder are for running the server and serving web app files efficiently.
  • The symbol definition for popen in hello-world/cpp are not required in the WASM runtime but I kept it for debugging purposes.

Live Demo

  • WASM versions of face detection, selfie segmentation and face mesh are demonstated in the following web app.

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.