setVideoDenoiserOptions abstract method

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

Sets video noise reduction.

Underlit environments and low-end video capture devices can cause video images to contain significant noise, which affects video quality. In real-time interactive scenarios, video noise also consumes bitstream resources and reduces encoding efficiency during encoding. You can call this method to enable the video noise reduction feature and set the options of the video noise reduction effect. Call this method after calling enableVideo. Video noise reduction has certain requirements for equipment performance. If your device overheats after you enable video noise reduction, Agora recommends modifying the video noise reduction options to a less performance-consuming level or disabling video noise reduction entirely. Both this method and setExtensionProperty can turn on video noise reduction function: When you use the SDK to capture video, Agora recommends this method (this method only works for video captured by the SDK). When you use an external video source to implement custom video capture, or send an external video source to the SDK, Agora recommends using setExtensionProperty. This method relies on the image enhancement dynamic library libagora_clear_vision_extension.dll. If the dynamic library is deleted, the function cannot be enabled normally.

  • 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 video source. See MediaSourceType.

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});