StaticcreateA factory method that will call the private constructor to instantiate the processor and asynchronously initialize the worker, wasm, and ML models. Upon completion of the initialization the promise will either be resolved or rejected.
Optionalspec: BackgroundFilterSpecThe spec defines the assets that will be used for adding background blur to a frame
Optionaloptions: BackgroundBlurOptionsBackground blur options including blur strength
StaticisThis method will detect the environment in which it is being used and determine if background blur can be used.
Optionalspec: BackgroundFilterSpecThe BackgroundFilterSpec spec that will be used to initialize assets
Optionaloptions: { logger?: Logger }options such as logger
a boolean promise that will resolve to true if supported and false if not
Protected StaticresolveBased on the options that are passed in set defaults for options
the options that are passed in
An updated set of options with defaults set
Protected StaticresolveBased on the spec that is passed in set defaults for spec
Optionalspec: BackgroundFilterSpecthe spec that was passed in
An updated spec with defaults set
[[BackgroundBlurVideoFrameProcessor]] Creates a background blur processor which identifies the foreground person and blurs the background.