Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
This repository was archived by the owner on Jun 4, 2024. It is now read-only.
/human-nextPublic archive

Using Human library with TypeScript / ReactJS / NextJS

License

NotificationsYou must be signed in to change notification settings

vladmandic/human-next

Repository files navigation

Project usesHuman library with fullTypeScript (including strict TypeChecking) support withNextJS framework andReactJS front-end library

Project creates two self-enclosed class components:

  • components/InitWebCam.tsx
    • initializes WebCam using specifiedHTMLVideoElement
  • components/RunHuman.tsx
    • lazy-loadsHuman library
    • loads requiredmodels
    • warms up models
    • usesready state change to trigger detection
    • usesframe state change to trigger rendering
      using specified inputHTMLVideoElement and outputHTMLCanvasElement

Note: configuration innext.config.js is defined for deployment ongitpages


Run

Development

Production

  • runnpm build

    info  - Checking validity of typesinfo  - Creating an optimized production buildinfo  - Compiled successfullyinfo  - Collecting page datainfo  - Generating static pages (3/3)info  - Finalizing page optimization
  • runnpm export

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

About

Using Human library with TypeScript / ReactJS / NextJS

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp