mirror of https://github.com/vladmandic/human
redo segmentation
parent
b24eafa265
commit
d293f4a20b
8
Usage.md
8
Usage.md
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue