Coder Social home page Coder Social logo

demo-humanjs-capturing's Introduction

Human: Demo with TypeScript/ReactJS/NextJS

Project uses Human library with full TypeScript (including strict TypeChecking) support with NextJS framework and ReactJS front-end library

Project creates two self-enclosed class components:

  • components/InitWebCam.tsx
    • initializes WebCam using specified HTMLVideoElement
  • components/RunHuman.tsx
    • lazy-loads Human library
    • loads required models
    • warms up models
    • uses ready state change to trigger detection
    • uses frame state change to trigger rendering
      using specified input HTMLVideoElement and output HTMLCanvasElement

Note: configuration in next.config.js is defined for deployment on gitpages


Run

Development

Production

  • run npm build

    info  - Checking validity of types
    info  - Creating an optimized production build
    info  - Compiled successfully
    info  - Collecting page data
    info  - Generating static pages (3/3)
    info  - Finalizing page optimization
    
  • run npm export

    info  - using build directory: /home/vlado/dev/human-next/.next
    info  - Copying "static build" directory
    info  - Launching 11 workers
    info  - Copying "public" directory
    info  - Exporting (3/3)
    Export successful. Files written to /home/vlado/dev/human-next/out
    

demo-humanjs-capturing's People

Contributors

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