setVideoDenoiserOptions abstract method

Future<void> setVideoDenoiserOptions({
  1. required bool enabled,
  2. required VideoDenoiserOptions options,
  3. MediaSourceType type = MediaSourceType.primaryCameraSource,
})

Sets video noise reduction.

You can call this method to enable the video noise reduction feature and set the options of the video noise reduction effect. If the noise reduction implemented by this method does not meet your needs, Agora recommends that you call the setBeautyEffectOptions method to enable the beauty and skin smoothing function to achieve better video noise reduction effects. The recommended BeautyOptions settings for intense noise reduction effect are as follows: lighteningContrastLevel lighteningContrastNormal lighteningLevel : 0.0 smoothnessLevel : 0.5 rednessLevel : 0.0 sharpnessLevel : 0.1

  • enabled Whether to enable video noise reduction: true : Enable video noise reduction. false : (Default) Disable video noise reduction.
  • options The video noise reduction options. See VideoDenoiserOptions.
  • type The type of the media source to which the filter effect is applied. See MediaSourceType. In this method, this parameter supports only the following two settings: Use the default value primaryCameraSource if you use camera to capture local video. Set this parameter to customVideoSource if you use custom video source.

Returns When the method call succeeds, there is no return value; when fails, the AgoraRtcException exception is thrown. You need to catch the exception and handle it accordingly.

Implementation

Future<void> setVideoDenoiserOptions(
    {required bool enabled,
    required VideoDenoiserOptions options,
    MediaSourceType type = MediaSourceType.primaryCameraSource});