mirror of https://github.com/vladmandic/human
update demos
parent
a99b969989
commit
e7069aed2d
|
@ -9,7 +9,10 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
|
|||
|
||||
## Changelog
|
||||
|
||||
### **HEAD -> main** 2021/05/16 mandic00@live.com
|
||||
### **HEAD -> main** 2021/05/17 mandic00@live.com
|
||||
|
||||
|
||||
### **origin/main** 2021/05/16 mandic00@live.com
|
||||
|
||||
- add node-webcam demo
|
||||
- fix node build and update model signatures
|
||||
|
|
|
@ -1,4 +1,6 @@
|
|||
/*
|
||||
Unsupported sample of using external utility ffmpeg to capture to decode video input and process it using Human
|
||||
|
||||
uses ffmpeg to process video input and output stream of motion jpeg images which are then parsed for frame start/end markers by pipe2jpeg
|
||||
each frame triggers an event with jpeg buffer that then can be decoded and passed to human for processing
|
||||
if you want process at specific intervals, set output fps to some value
|
||||
|
@ -7,9 +9,12 @@
|
|||
|
||||
const spawn = require('child_process').spawn;
|
||||
const log = require('@vladmandic/pilogger');
|
||||
const tf = require('@tensorflow/tfjs-node');
|
||||
const Pipe2Jpeg = require('pipe2jpeg');
|
||||
const Human = require('@vladmandic/human').default;
|
||||
// for NodeJS, `tfjs-node` or `tfjs-node-gpu` should be loaded before using Human
|
||||
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
||||
const tf = require('@tensorflow/tfjs-node'); // or const tf = require('@tensorflow/tfjs-node-gpu');
|
||||
// load specific version of Human library that matches TensorFlow mode
|
||||
const Human = require('../dist/human.node.js').default; // or const Human = require('../dist/human.node-gpu.js').default;
|
||||
|
||||
let count = 0; // counter
|
||||
let busy = false; // busy flag
|
||||
|
|
|
@ -1,8 +1,13 @@
|
|||
/*
|
||||
Unsupported sample of using external utility fswebcam to capture screenshot from attached webcam in regular intervals and process it using Human
|
||||
*/
|
||||
|
||||
const util = require('util');
|
||||
const log = require('@vladmandic/pilogger');
|
||||
const nodeWebCam = require('node-webcam');
|
||||
// for NodeJS, `tfjs-node` or `tfjs-node-gpu` should be loaded before using Human
|
||||
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
||||
const tf = require('@tensorflow/tfjs-node');
|
||||
const tf = require('@tensorflow/tfjs-node'); // or const tf = require('@tensorflow/tfjs-node-gpu');
|
||||
// load specific version of Human library that matches TensorFlow mode
|
||||
const Human = require('../dist/human.node.js').default; // or const Human = require('../dist/human.node-gpu.js').default;
|
||||
|
||||
|
|
|
@ -49,3 +49,20 @@
|
|||
2021-05-17 08:56:19 [36mINFO: [39m Generate types: ["src/human.ts"]
|
||||
2021-05-17 08:56:24 [36mINFO: [39m Update Change log: ["/home/vlado/dev/human/CHANGELOG.md"]
|
||||
2021-05-17 08:56:24 [36mINFO: [39m Generate TypeDocs: ["src/human.ts"]
|
||||
2021-05-17 09:34:53 [36mINFO: [39m @vladmandic/human version 1.8.4
|
||||
2021-05-17 09:34:53 [36mINFO: [39m User: vlado Platform: linux Arch: x64 Node: v16.0.0
|
||||
2021-05-17 09:34:53 [36mINFO: [39m Build: file startup all type: production config: {"minifyWhitespace":true,"minifyIdentifiers":true,"minifySyntax":true}
|
||||
2021-05-17 09:34:53 [35mSTATE:[39m Build for: node type: tfjs: {"imports":1,"importBytes":39,"outputBytes":1284,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-05-17 09:34:53 [35mSTATE:[39m Build for: node type: node: {"imports":35,"importBytes":413594,"outputBytes":372832,"outputFiles":"dist/human.node.js"}
|
||||
2021-05-17 09:34:53 [35mSTATE:[39m Build for: nodeGPU type: tfjs: {"imports":1,"importBytes":43,"outputBytes":1292,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-05-17 09:34:53 [35mSTATE:[39m Build for: nodeGPU type: node: {"imports":35,"importBytes":413602,"outputBytes":372836,"outputFiles":"dist/human.node-gpu.js"}
|
||||
2021-05-17 09:34:53 [35mSTATE:[39m Build for: nodeWASM type: tfjs: {"imports":1,"importBytes":81,"outputBytes":1359,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-05-17 09:34:53 [35mSTATE:[39m Build for: nodeWASM type: node: {"imports":35,"importBytes":413669,"outputBytes":372908,"outputFiles":"dist/human.node-wasm.js"}
|
||||
2021-05-17 09:34:53 [35mSTATE:[39m Build for: browserNoBundle type: tfjs: {"imports":1,"importBytes":2488,"outputBytes":1394,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-05-17 09:34:53 [35mSTATE:[39m Build for: browserNoBundle type: esm: {"imports":35,"importBytes":413704,"outputBytes":229716,"outputFiles":"dist/human.esm-nobundle.js"}
|
||||
2021-05-17 09:34:54 [35mSTATE:[39m Build for: browserBundle type: tfjs: {"modules":1274,"moduleBytes":4114813,"imports":7,"importBytes":2488,"outputBytes":1111318,"outputFiles":"dist/tfjs.esm.js"}
|
||||
2021-05-17 09:34:54 [35mSTATE:[39m Build for: browserBundle type: iife: {"imports":35,"importBytes":1523628,"outputBytes":1337370,"outputFiles":"dist/human.js"}
|
||||
2021-05-17 09:34:55 [35mSTATE:[39m Build for: browserBundle type: esm: {"imports":35,"importBytes":1523628,"outputBytes":1337362,"outputFiles":"dist/human.esm.js"}
|
||||
2021-05-17 09:34:55 [36mINFO: [39m Generate types: ["src/human.ts"]
|
||||
2021-05-17 09:34:59 [36mINFO: [39m Update Change log: ["/home/vlado/dev/human/CHANGELOG.md"]
|
||||
2021-05-17 09:34:59 [36mINFO: [39m Generate TypeDocs: ["src/human.ts"]
|
||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
|||
Subproject commit 981e14523d86586926d9d1141b04e652decafe5f
|
||||
Subproject commit 3030450d4a177092285d73d313a3efc7c5d8a966
|
Loading…
Reference in New Issue