diff --git a/CHANGELOG.md b/CHANGELOG.md index 1e17eced..aabb0e1a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -9,7 +9,12 @@ Repository: **** ## Changelog -### **HEAD -> main** 2021/03/28 mandic00@live.com +### **HEAD -> main** 2021/03/29 mandic00@live.com + +- new icons +- new serve module and demo structure + +### **origin/main** 2021/03/28 mandic00@live.com - minor rotation calculation fix - remove debug output diff --git a/src/human.ts b/src/human.ts index 38f0856c..1daece57 100644 --- a/src/human.ts +++ b/src/human.ts @@ -86,6 +86,8 @@ export class Human { nanodet: typeof nanodet; faceres: typeof faceres; }; + faceTriangulation: typeof facemesh.triangulation; + faceUVMap: typeof facemesh.uvmap; sysinfo: { platform: string, agent: string }; perf: any; #numTensors: number; @@ -134,6 +136,8 @@ export class Human { hand: handpose, nanodet, }; + this.faceTriangulation = facemesh.triangulation; + this.faceUVMap = facemesh.uvmap; // include platform info this.sysinfo = sysinfo.info(); } diff --git a/src/image/image.ts b/src/image/image.ts index 8ae7e3fb..8e6e2d25 100644 --- a/src/image/image.ts +++ b/src/image/image.ts @@ -16,6 +16,7 @@ let fx = null; // input is resized and run through imagefx filter export function process(input, config): { tensor: tf.Tensor, canvas: OffscreenCanvas | HTMLCanvasElement } { let tensor; + if (!input) throw new Error('Human: Input is missing'); if (input instanceof tf.Tensor) { tensor = tf.clone(input); } else {