BlurProcessor

class BlurProcessor(var config: BlurProcessingConfig = BlurProcessingConfig(), context: Context? = null) : TextureVideoProcessor

背景ぼかしの映像処理を提供する VideoProcessor 実装です。

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

Constructors

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

Properties

Link copied to clipboard

背景ぼかしの強度([0..100])。config.blurStrength のショートカット。

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()

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