@virtualscenery/greenscreenstream
Version:
Genereate new MediaStreams or Canvas elements based on MediaStreams (webcam) with any background image/video. Greenscreen your webcam and enable virtual backgrounds in your web applications.
16 lines (15 loc) • 708 B
text/typescript
import { IBodyPixConfig } from './bodypix-config.interface';
import { BodyPixMode } from './enums/bodypixmode.enum';
import { IMaskSettings } from './masksettings.interface';
/**
* Represents the configuration options for the green screen feature.
*
* @property {IMaskSettings} [maskSettings] - Optional settings for the mask applied to the green screen.
* @property {BodyPixMode} [bodyPixMode] - Optional mode for the BodyPix segmentation algorithm.
* @property {IBodyPixConfig} [bodyPixConfig] - Optional configuration for the BodyPix model.
*/
export interface IGreenScreenConfig {
maskSettings?: IMaskSettings,
bodyPixMode?: BodyPixMode,
bodyPixConfig?: IBodyPixConfig
}