update cdn links

pull/134/head
Vladimir Mandic 2021-04-08 18:37:58 -04:00
parent d75608c895
commit 21491bf304
2 changed files with 22 additions and 4 deletions

View File

@ -114,12 +114,30 @@ As presented in the demo application...
<br><hr><br> <br><hr><br>
## Quick Start
Simply load `Human` directly from a CDN in your HTML file:
```html
<script src="https://cdn.jsdelivr.net/npm/@vladmandic/human/dist/human.js"></script>
```
or
```html
<script src="https://unpkg.dev/@vladmandic/human/dist/human.js"></script>
```
For details, including how to use `Browser ESM` version or `NodeJS` version of `Human`, see [**Installation**](https://github.com/vladmandic/human/wiki/Install)
<br>
## Example
Example simple app that uses Human to process video input and Example simple app that uses Human to process video input and
draw output on screen using internal draw helper functions draw output on screen using internal draw helper functions
```js ```js
import Human from '@vladmandic/human';
// create instance of human with simple configuration using default values // create instance of human with simple configuration using default values
const config = { backend: 'webgl' }; const config = { backend: 'webgl' };
const human = new Human(config); const human = new Human(config);
@ -139,7 +157,7 @@ function detectVideo() {
human.draw.body(outputCanvas, result.body); human.draw.body(outputCanvas, result.body);
human.draw.hand(outputCanvas, result.hand); human.draw.hand(outputCanvas, result.hand);
human.draw.gesture(outputCanvas, result.gesture); human.draw.gesture(outputCanvas, result.gesture);
// loop immediate to next frame // and loop immediate to next frame
requestAnimationFrame(detectVideo); requestAnimationFrame(detectVideo);
}); });
} }

2
wiki

@ -1 +1 @@
Subproject commit eaf77ad8c8a91df6e63bee662062ff59a0ce987a Subproject commit f5850bc4ed575a9973854d3d35242d181d7f4b65