mirror of https://github.com/vladmandic/human
update demos
parent
0131b10767
commit
8ad1d98970
|
@ -9,7 +9,10 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
|
||||||
|
|
||||||
## Changelog
|
## 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
|
- add node-webcam demo
|
||||||
- fix node build and update model signatures
|
- 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
|
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
|
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
|
if you want process at specific intervals, set output fps to some value
|
||||||
|
@ -7,9 +9,12 @@
|
||||||
|
|
||||||
const spawn = require('child_process').spawn;
|
const spawn = require('child_process').spawn;
|
||||||
const log = require('@vladmandic/pilogger');
|
const log = require('@vladmandic/pilogger');
|
||||||
const tf = require('@tensorflow/tfjs-node');
|
|
||||||
const Pipe2Jpeg = require('pipe2jpeg');
|
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 count = 0; // counter
|
||||||
let busy = false; // busy flag
|
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 util = require('util');
|
||||||
const log = require('@vladmandic/pilogger');
|
const log = require('@vladmandic/pilogger');
|
||||||
const nodeWebCam = require('node-webcam');
|
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
|
// 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
|
// 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;
|
const Human = require('../dist/human.node.js').default; // or const Human = require('../dist/human.node-gpu.js').default;
|
||||||
|
|
||||||
|
|
2
wiki
2
wiki
|
@ -1 +1 @@
|
||||||
Subproject commit 981e14523d86586926d9d1141b04e652decafe5f
|
Subproject commit 3030450d4a177092285d73d313a3efc7c5d8a966
|
Loading…
Reference in New Issue