-
Notifications
You must be signed in to change notification settings - Fork 290
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(debug): Allow blurring video background during calls [WPB-724] #17326
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #17326 +/- ##
==========================================
- Coverage 46.29% 46.13% -0.17%
==========================================
Files 758 760 +2
Lines 24904 25016 +112
Branches 5714 5721 +7
==========================================
+ Hits 11530 11541 +11
- Misses 11931 12033 +102
+ Partials 1443 1442 -1 |
package.json
Outdated
@@ -49,10 +50,12 @@ | |||
"redux-logdown": "1.0.4", | |||
"redux-thunk": "3.1.0", | |||
"speakingurl": "14.0.1", | |||
"stackblur-canvas": "^2.7.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can go
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this can go
.husky/post-checkout
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for LFS without the large file
.husky/post-commit
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for LFS without the large file
.husky/post-merge
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for LFS without the large file
.husky/pre-push
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for LFS without the large file
.gitattributes
Outdated
@@ -13,3 +11,4 @@ | |||
*.ttf binary | |||
*.woff binary | |||
*.woff2 binary | |||
*.tflite filter=lfs diff=lfs merge=lfs -text |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need for LFS without the large file
Quality Gate passedIssues Measures |
Description
This is a first MVP for the blurred background.
It enabled blurring the self background using a debug util
wire.debug.enableCameraBlur()
.Next iteration:
Performances
Currently the performances are not quite there yet. The blurring is quite costly.
This is a typical example of the computation of a single frame of the video feed
We can see that the segmentation is taking very little time (some 2-3ms) but blurring takes 20ms+. Since we are supposed to have a budget of 16ms, this is not really our target performance.
It's also quite intense on the main thread and leaves very little resources for the user. Those issues will need to be tackled.
Attempted optimizations
Using webWorker to compute the blur:
Using webgl to compute blurring on the GPU