redo segmentation

master
Vladimir Mandic 2021-09-22 15:16:04 -04:00
parent b24eafa265
commit d293f4a20b
1 changed files with 5 additions and 3 deletions

@ -86,10 +86,12 @@ For details, see [embedding documentation](https://github.com/vladmandic/human/w
`Human` library can attempt to detect outlines of people in provided input and either remove background from input
or replace it with a user-provided background image
For details on parameters and return values see [API Documentation](https://vladmandic.github.io/human/typedoc/classes/Human.html#segmentation)
```js
const inputCanvas = document.getElementById('my-canvas);
const replacementBackground = document.getElementById('my-background);
human.segmentation(inputCanvas, replacementBackground);
const input = document.getElementById('my-canvas);
const background = document.getElementById('my-background);
human.segmentation(input, background);
```
## Draw Functions