update demos

pull/293/head
Vladimir Mandic 2021-05-17 09:35:41 -04:00
parent c295588cf7
commit 9c015670e5
4 changed files with 18 additions and 5 deletions

View File

@ -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

View File

@ -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

View File

@ -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;

2
wiki

@ -1 +1 @@
Subproject commit 981e14523d86586926d9d1141b04e652decafe5f
Subproject commit 3030450d4a177092285d73d313a3efc7c5d8a966