From e0d7e553d63addfa7ec82082fa9bc34fc6d4b084 Mon Sep 17 00:00:00 2001 From: Vladimir Mandic Date: Fri, 5 Mar 2021 14:40:44 -0500 Subject: [PATCH] update readme --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index c2a4100a..1526092c 100644 --- a/README.md +++ b/README.md @@ -111,7 +111,7 @@ draw output on screen using internal draw helper functions import Human from '@vladmandic/human'; // create instance of human with simple configuration using default values -const config = { backend: 'wasm' }; +const config = { backend: 'webgl' }; const human = new Human(config); function detectVideo() { @@ -120,8 +120,9 @@ function detectVideo() { const outputCanvas = document.getElementById('canvas-id'); // perform processing using default configuration human.detect(inputVideo).then((result) => { - // result object will contain detected details as well as the processed canvas itself - // first draw processed frame on canvas + // result object will contain detected details + // as well as the processed canvas itself + // so lets first draw processed frame on canvas human.draw.canvas(result.canvas, outputCanvas); // then draw results on the same canvas human.draw.face(outputCanvas, result.face);