From 6294882ea8222acdf3bb04117e1fbf0c422208db Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Sun, 14 Mar 2021 13:49:01 -0400 Subject: [PATCH] fix broken build --- CHANGELOG.md | 5 +++-- demo/browser.js | 14 +++++++------- src/human.ts | 2 +- wiki | 2 +- 4 files changed, 12 insertions(+), 11 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a8b675ec..574a6693 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 ** @@ -9,8 +9,9 @@ Repository: **** ## 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 diff --git a/demo/browser.js b/demo/browser.js index ec81806f..30670100 100644 --- a/demo/browser.js +++ b/demo/browser.js @@ -431,13 +431,13 @@ function setupMenu() { setupCamera(); }); menu.display.addHTML('
'); - 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); diff --git a/src/human.ts b/src/human.ts index 0125d934..613e100a 100644 --- a/src/human.ts +++ b/src/human.ts @@ -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, diff --git a/wiki b/wiki index 607ddfe8..97d0de34 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit 607ddfe8b52f0be7b34ef27e1f8cbd3b7cbe3b98 +Subproject commit 97d0de349c04f31a6f2cdfa7410abfa15bdc1504