the unique customer identifier provided by SDK vendor.
Unique customer identifier provided by SDK vendor.
Clear output stream.
Disable background effect. As a background will be shown original video.
Disable blur of the background.
Ability to configure sdk execution environment
configuration object
Disable beautification effect.
Disable color-corrector effect.
Disable Frame Skipping - segmentation will be running on every video frame. FrameSkipping disabled by default.
Disable smart-zoom effect.
Enable beautification effect.
Enable color-correction effect.
Enable Frame Skipping - segmentation will be running on every second frame, this will increase FPS but brings some motion trail
Enable smart-zoom effect.
Get Customer ID provided by vendor.
Return current active segmentation mode.
Get the output MediaStream object for further processing.
Hide fps on the stream.
Run the processing of frames.
Set media source of the background. Video sources will be played automatically from the beginning.
the link to image/video of the server or one of the following objects: MediaStream, MediaStreamTrack, HTMLVideoElement.
Set the background color for background 'color' mode.
in hexadecimal format.
Control background fit/fill mode. Default value is fill mode.
the background fit mode, can be fit of fill
Control face beautification level.
could be from 0 to 1. Higher number -> more visible effect of beautification.
Enable blur of the background and set the power of blur.
of the blur, can be a number from 0 to 1. Higher number -> better blur. This value could affect the performance (CPU/GPU, FPS)
Control segmentation boundaries area.
of area, could be from -5 to 5. Higher number -> bigger area outside the segmentation object.
Control boundary mode smooth or strong. Default value is strong mode.
the boundary mode, can be smooth or strong
Set period in ms for cc-model working.
can be a number from 0 to 5000 (default 1000)
Set power of color correction.
can be a number from 0 to 1 (default 1)
Set the face-area proportion. Used by the smart-zoom effect to calculate frame scale value
can be a number from 0.01 to 1 (default = 0.1)
Set the face detector accuracy.
can be a number from 0.2 to 1 (default 0.75)
Set filter part for the color correction (dev feature).
can be a number from 0 to 1 (default 1)
Show fps on the stream.
Set the layout mode. Useful for presentations.
could be the one of the following: center, left-bottom, right-bottom
Set the segmentation mode. Segmentation mode allow to choose combination of quality and speed of segmentation. Balanced mode is enabled by default.
in string format. The values could be quality, balanced, speed, lightning.
Set period in ms for face detector reaction.
can be a number from 0 to 1000 (default 100)
Set sensitivity for the smart-zoom rection. The set value means the difference between the new and old face-params for the smartzoom reaction
can be a number from 0 to 1 (default 0.05)
Set count of the smart-zoom smoothing. The more steps, the higher the smoothing
can be a number from 0.01 to 1 (default 0.2)
Show fps on the stream.
Stop the processing of frames.
Switch face-square-drawing mode.
is a boolean argument (default false)
Switch preface-square-drawing mode. Draw face square before processing
is a boolean argument (default false)
Set the canvas where will be rendered the processed frames.
the HTMLCanvasElement object.
Set the MediaStream object which will be the source of the video frames for processing.
the source MediaStream object.
Generated using TypeDoc
Initiation of main SDK instance.