A 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.
The spec defines the assets that will be used for adding background filter to a frame
This method will detect the environment in which it is being used and determine if background replacement can be used.
The BackgroundFilterSpec spec that will be used to initialize assets
options such as logger and imagePath
a boolean promise that will resolve to true if supported and false if not
Based 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
Based on the spec that is passed in set defaults for spec
the spec that was passed in
An updated spec with defaults set
Generated using TypeDoc
BackgroundReplacementVideoFrameProcessor Creates a background replacement processor which identifies the foreground person and replaces the background.