浏览代码

fix(blur): Decrease the blur amount and improve the accuracy

master
Jaya Allamsetty 5 年前
父节点
当前提交
6fc7456196
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2
    2
      react/features/stream-effects/blur/JitsiStreamBlurEffect.js

+ 2
- 2
react/features/stream-effects/blur/JitsiStreamBlurEffect.js 查看文件

@@ -71,7 +71,7 @@ export default class JitsiStreamBlurEffect {
71 71
     async _renderMask() {
72 72
         this._maskInProgress = true;
73 73
         this._segmentationData = await this._bpModel.segmentPerson(this._inputVideoElement, {
74
-            internalResolution: 'low', // resized to 0.25 times of the original resolution before inference
74
+            internalResolution: 'medium', // resized to 0.5 times of the original resolution before inference
75 75
             maxDetections: 1, // max. number of person poses to detect per image
76 76
             segmentationThreshold: 0.7 // represents probability that a pixel belongs to a person
77 77
         });
@@ -80,7 +80,7 @@ export default class JitsiStreamBlurEffect {
80 80
             this._outputCanvasElement,
81 81
             this._inputVideoElement,
82 82
             this._segmentationData,
83
-            15, // Constant for background blur, integer values between 0-20
83
+            12, // Constant for background blur, integer values between 0-20
84 84
             7 // Constant for edge blur, integer values between 0-20
85 85
         );
86 86
     }

正在加载...
取消
保存