Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

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
Appearance settings

Development Server

Vladimir Mandic edited this pageNov 18, 2022 ·9 revisions

Development Server

Dev Server

To use dev server, you must have an SSL certificate since browsers enforcehttps for webcam access

You can use a provided ones self-signed certificate or configure your own

Self-signed test certificate was generated using:

openssl req -x509 -newkey rsa:4096 -nodes -keyout https.key -out https.crt -days 365 -subj"/C=US/ST=Florida/L=Miami/O=@vladmandic"

If you want to use your own certificate, editbuild.json:

By default, secure http2 web server will run on port10031 and unsecure http server will run on port10030 which is configurable inbuild.json

Development environment is started by runningnpm run dev

2021-09-1021:03:37INFO:  @vladmandic/humanversion2.1.52021-09-1021:03:37INFO:User:vlado Platform: linuxArch:x64 Node:v16.5.02021-09-1021:03:37INFO:Application:{name:'@vladmandic/human',version:'2.1.5'}2021-09-1021:03:37INFO:Environment:{profile:'development',config:'build.json',tsconfig:true,eslintrc:true,git:true}2021-09-1021:03:37INFO:Toolchain:{build:'0.3.4',esbuild:'0.12.26',typescript:'4.4.3',typedoc:'0.21.9',eslint:'7.32.0'}2021-09-1021:03:37STATE:WebServer:{ssl:false,port:10030,root:'.'}2021-09-1021:03:37STATE:WebServer:{ssl:true,port:10031,root:'.',sslKey:'node_modules/@vladmandic/build/cert/https.key',sslCrt:'node_modules/@vladmandic/build/cert/https.crt'}2021-09-1021:03:37STATE:Watch:{locations:['test/src/**','src/**','tfjs/*',[length]:3]}2021-09-1021:03:37STATE:Watch:{locations:['test/src/**','src/**','tfjs/*',[length]:3]}2021-09-1021:03:37STATE:Watch:{locations:['test/src/**','src/**','tfjs/*',[length]:3]}2021-09-1021:07:48INFO:Watch:{event:'modify',input:'src/human.ts'}2021-09-1021:07:48STATE:Build:{name:'tfjs for browser esm bundle',type:'development',format:'esm',platform:'browser',input:'tfjs/tf-browser.ts',output:'dist/tfjs.esm.js',files:7,inputBytes:2168,outputBytes:2343946}2021-09-1021:07:49STATE:Build:{name:'human for browser esm bundle',type:'development',format:'esm',platform:'browser',input:'src/human.ts',output:'dist/human.esm.js',files:47,inputBytes:2799374,outputBytes:2583497}2021-09-1021:07:31DATA:GET/1.1200text/html;charset=utf-86435/ ::ffff:192.168.0.2002021-09-1021:07:31DATA:GET/1.1200text/css; charset=utf-8107884/icons.css ::ffff:192.168.0.2002021-09-1021:07:31DATA:GET/1.1200text/javascript; charset=utf-844675/index.js ::ffff:192.168.0.2002021-09-1021:07:31DATA:GET/1.1200text/javascript;charset=utf-82583497/dist/human.esm.js ::ffff:192.168.0.200...

Human as a Daemon

If you want to runHuman as asystemd service onLinux,
take a look at included samplehuman.service file:

  • modify NodeJS path inExecStart
  • modify path to@vladmandic/build inExecStart
  • set your working folder inWorkingDirectory
  • ser your user inUser
[Unit]Description=humanAfter=network.target network-online.target[Service]Type=simpleEnvironment="NODE_ENV=production"ExecStart=/home/vlado/.nvm/versions/node/v16.5.0/bin/node /home/vlado/dev/human/node_modules/@vladmandic/build/src/build.js --profile developmentWorkingDirectory=/home/vlado/dev/humanStandardOutput=inheritStandardError=inheritRestart=alwaysRestartSec=300User=vladoStandardOutput=null[Install]WantedBy=multi-user.target

To activate service:

  • copy the content to your/etc/systemd/system folder
  • reload service configuration:sudo systemctl daemon-reload
  • start service with:sudo systemctl start human
  • stop service with:sudo systemctl stop human
  • check status with:sudo systemctl status human
  • to run service on system startup:sudo systemctl enable human
  • to disable running service on system startup:sudo systemctl disable human

Human Library Wiki Pages
3D Face Detection, Body Pose, Hand & Finger Tracking, Iris Tracking, Age & Gender Prediction, Emotion Prediction & Gesture Recognition

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp