Code Monkey home page Code Monkey logo

tensorflow-toy's Introduction

TensorFlow Toy

This project is a simple demonstration of using TensorFlow.js's Face landmark detection to acheive simple SnapChat-like filters in the browser, allowing the user to take a snapshot and save the end result.

TODO

This project is a work in progress...

  • Improve this README
  • Refactor and do my best impression of an MVC pattern
  • Manage to get a face landmarker model loaded
  • Extract the menu logic into an overall App class
  • Get webcam stream and display it back to the user
  • Create a simple filter and use it

Installation

To install the project, just run the usual:

npm install

This will install all the necessary dependencies listed in the package.json file. Right now, there are none besides some basic development dependencies. It assumes you have Sass and TypeScript installed globally.

Building

To build the project, run:

npm run build

This will allegedly use Parcel to bundle the project and output the result in the dist directory, although I've never done it myself. I'm considering moving this project to Vite.

Development

To start the development server, run:

npm run dev

This will start a Parcel development server with hot module replacement.

Dependencies

This project uses several dependencies:

  • TensorFlow.js and its CPU and WebGL backends for running the object detection model.
  • The COCO-SSD model for object detection.
  • Parcel for bundling the project.
  • Sass for styling.
  • License:
    • This project is licensed under the MIT license.

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.