mirror of https://github.com/vladmandic/human
update lint exceptions
parent
c7bc94404a
commit
ea5145df27
|
@ -64,8 +64,11 @@ async function main() {
|
||||||
|
|
||||||
// on worker start first initialize message handler so we don't miss any messages
|
// on worker start first initialize message handler so we don't miss any messages
|
||||||
process.on('message', (msg) => {
|
process.on('message', (msg) => {
|
||||||
|
// @ts-ignore
|
||||||
if (msg.exit && process.exit) process.exit(); // if main told worker to exit
|
if (msg.exit && process.exit) process.exit(); // if main told worker to exit
|
||||||
|
// @ts-ignore
|
||||||
if (msg.test && process.send) process.send({ test: true });
|
if (msg.test && process.send) process.send({ test: true });
|
||||||
|
// @ts-ignore
|
||||||
if (msg.image) detect(msg.image); // if main told worker to process image
|
if (msg.image) detect(msg.image); // if main told worker to process image
|
||||||
log.data('Worker received message:', process.pid, msg); // generic log
|
log.data('Worker received message:', process.pid, msg); // generic log
|
||||||
});
|
});
|
||||||
|
|
|
@ -13,6 +13,7 @@
|
||||||
|
|
||||||
const spawn = require('child_process').spawn;
|
const spawn = require('child_process').spawn;
|
||||||
const log = require('@vladmandic/pilogger');
|
const log = require('@vladmandic/pilogger');
|
||||||
|
// @ts-ignore pipe2jpeg is not installed by default
|
||||||
// eslint-disable-next-line node/no-missing-require
|
// eslint-disable-next-line node/no-missing-require
|
||||||
const Pipe2Jpeg = require('pipe2jpeg');
|
const Pipe2Jpeg = require('pipe2jpeg');
|
||||||
// for NodeJS, `tfjs-node` or `tfjs-node-gpu` should be loaded before using Human
|
// for NodeJS, `tfjs-node` or `tfjs-node-gpu` should be loaded before using Human
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
let initial = true; // remember if this is the first run to print additional details
|
let initial = true; // remember if this is the first run to print additional details
|
||||||
const log = require('@vladmandic/pilogger');
|
const log = require('@vladmandic/pilogger');
|
||||||
|
// @ts-ignore node-webcam is not installed by default
|
||||||
// eslint-disable-next-line node/no-missing-require
|
// eslint-disable-next-line node/no-missing-require
|
||||||
const nodeWebCam = require('node-webcam');
|
const nodeWebCam = require('node-webcam');
|
||||||
// for NodeJS, `tfjs-node` or `tfjs-node-gpu` should be loaded before using Human
|
// for NodeJS, `tfjs-node` or `tfjs-node-gpu` should be loaded before using Human
|
||||||
|
|
Loading…
Reference in New Issue