fix broken build

pull/280/head
Vladimir Mandic 2021-03-14 13:49:01 -04:00
parent 6c6f2bebac
commit 6294882ea8
4 changed files with 12 additions and 11 deletions

View File

@ -1,6 +1,6 @@
# @vladmandic/human
Version: **1.1.2**
Version: **1.1.3**
Description: **Human: AI-powered 3D Face Detection, Face Embedding & Recognition, Body Pose Tracking, Hand & Finger Tracking, Iris Analysis, Age & Gender & Emotion Prediction & Gesture Recognition**
Author: **Vladimir Mandic <mandic00@live.com>**
@ -9,8 +9,9 @@ Repository: **<git+https://github.com/vladmandic/human.git>**
## Changelog
### **HEAD -> main** 2021/03/13 mandic00@live.com
### **1.1.3** 2021/03/14 mandic00@live.com
- added api specs
- add typedocs and types
- strong typings

View File

@ -431,13 +431,13 @@ function setupMenu() {
setupCamera();
});
menu.display.addHTML('<hr style="border-style: inset; border-color: dimgray">');
menu.display.addBool('use 3D depth', human.draw.options, 'useDepth');
menu.display.addBool('draw with curves', human.draw.options, 'useCurves');
menu.display.addBool('print labels', human.draw.options, 'drawLabels');
menu.display.addBool('draw points', human.draw.options, 'drawPoints');
menu.display.addBool('draw boxes', human.draw.options, 'drawBoxes');
menu.display.addBool('draw polygons', human.draw.options, 'drawPolygons');
menu.display.addBool('fill polygons', human.draw.options, 'fillPolygons');
menu.display.addBool('use 3D depth', human.draw.drawOptions, 'useDepth');
menu.display.addBool('draw with curves', human.draw.drawOptions, 'useCurves');
menu.display.addBool('print labels', human.draw.drawOptions, 'drawLabels');
menu.display.addBool('draw points', human.draw.drawOptions, 'drawPoints');
menu.display.addBool('draw boxes', human.draw.drawOptions, 'drawBoxes');
menu.display.addBool('draw polygons', human.draw.drawOptions, 'drawPolygons');
menu.display.addBool('fill polygons', human.draw.drawOptions, 'fillPolygons');
menu.image = new Menu(document.body, '', { top: `${document.getElementById('menubar').offsetHeight}px`, left: x[1] });
menu.image.addBool('enabled', human.config.filter, 'enabled', (val) => human.config.filter.enabled = val);

View File

@ -88,7 +88,7 @@ export class Human {
image: { tensor: Tensor, canvas: OffscreenCanvas | HTMLCanvasElement };
// classes
tf: typeof tf;
draw: { options?: typeof draw.drawOptions, gesture: Function, face: Function, body: Function, hand: Function, canvas: Function, all: Function };
draw: { drawOptions?: typeof draw.drawOptions, gesture: Function, face: Function, body: Function, hand: Function, canvas: Function, all: Function };
// models
models: {
face: facemesh.MediaPipeFaceMesh | null,

2
wiki

@ -1 +1 @@
Subproject commit 607ddfe8b52f0be7b34ef27e1f8cbd3b7cbe3b98
Subproject commit 97d0de349c04f31a6f2cdfa7410abfa15bdc1504