|
|
@@ -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
|
}
|