VirtualBackgroundProcessor

class VirtualBackgroundProcessor(var config: VirtualBackgroundProcessingConfig = VirtualBackgroundProcessingConfig(), context: Context? = null) : TextureVideoProcessor

仮想背景の映像処理を提供する VideoProcessor 実装です。

GPU 処理と MediaPipe セグメンテーションを使用します。

Constructors

Link copied to clipboard
constructor(config: VirtualBackgroundProcessingConfig = VirtualBackgroundProcessingConfig(), context: Context? = null)

Properties

Link copied to clipboard

背景として合成する画像。config.backgroundImage のショートカット。

Link copied to clipboard

仮想背景処理の設定

Link copied to clipboard

境界の滑らかさ([0f..1f])。config.edgeSoftness のショートカット。

Link copied to clipboard

前景判定しきい値([0f..1f])。config.foregroundThreshold のショートカット。

Link copied to clipboard

仮想背景処理の有効/無効。config.isActive のショートカット。

Link copied to clipboard

セグメンテーション実行フレーム間隔([1..100])。config.segmentationIntervalFrames のショートカット。

Functions

Link copied to clipboard
fun dispose()

保持しているリソースを解放します。