-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
5048cab
commit edd4e3d
Showing
3 changed files
with
30,449 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Virtual Background Demo | ||
|
||
## Setup | ||
|
||
Go to `${PROJECT_ROOT}/examples` and run `npm install`. It will install the dependencies and run the application server. | ||
|
||
## Running the Demo | ||
|
||
Open `http://localhost:3000` in a Chrome tab. The app captures your camera upon loading and plays it in a `<video>` element. You can choose to enable, disable or update the background settings using the controls on the page. Additionally, you can specify the following url parameters: | ||
|
||
- `blurFilterRadius` - Radius of the background blur filter (default: 15) | ||
- `capFramerate` - Choose video capture frame rate (default: 30) | ||
- `capResolution=wxh` - Choose video capture resolution (default: 1280x720) | ||
- `deferInputFrameDownscale=true|false` - **(Chrome only)** Whether to calculate the person mask without waiting for the input frame to be downscaled (default: false) | ||
- `maskBlurRadius` - Radius of the mask blur filter (default: 8) | ||
- `stats=advanced|hide|show` - Show performance benchmarks (default: show) | ||
- `useWebWorker=true|false` - **(Chrome only)** Whether to use a web worker for background replacement (default: true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.