registerFaceDetectionObserver abstract method

  1. @Deprecated('Deprecated since v3.50.1 and will be deleted in v3.56.1, use RTCVideoEffect.enableFaceDetection and RTCVideoEffect.disableFaceDetection instead.')
Future<int?> registerFaceDetectionObserver({
  1. RTCFaceDetectionObserver? observer,
  2. int interval = 0,
})

Registers the observer for the result of face detection.

After the observer is registered, the local user will receive RTCFaceDetectionObserver.onFaceDetectResult periodically.

The interval (in ms) must be greater than 0. The actual time interval of receiving callbacks is between interval and the sum of interval and the time slot of a captured video frame.

Implementation

@Deprecated(
    'Deprecated since v3.50.1 and will be deleted in v3.56.1, use RTCVideoEffect.enableFaceDetection and RTCVideoEffect.disableFaceDetection instead.')
Future<int?> registerFaceDetectionObserver({
  RTCFaceDetectionObserver? observer,
  int interval = 0,
});