BlurredBackgroundVideoFilter

class BlurredBackgroundVideoFilter(blurIntensity: BlurIntensity = BlurIntensity.MEDIUM, foregroundThreshold: Double = DEFAULT_FOREGROUND_THRESHOLD) : BitmapVideoFilter

Applies a blur effect to the background of a video call.

Parameters

blurIntensity

The intensity of the blur effect. See BlurIntensity for options. Defaults to BlurIntensity.MEDIUM.

foregroundThreshold

The confidence threshold for the foreground. Pixels with a confidence value greater than or equal to this threshold are considered to be in the foreground. Value is coerced between 0 and 1, inclusive.

Constructors

Link copied to clipboard
constructor(blurIntensity: BlurIntensity = BlurIntensity.MEDIUM, foregroundThreshold: Double = DEFAULT_FOREGROUND_THRESHOLD)

Functions

Link copied to clipboard
open override fun applyFilter(videoFrameBitmap: Bitmap)