IFaceDetectionObserver class
@detail callback
@author wangjunlin.3182
@brief 人脸检测结果回调观察者
注意:回调函数是在 SDK 内部线程(非 UI 线程)同步抛出来的,请不要做耗时操作或直接操作 UI,否则可能导致 app 崩溃。
Constructors
-
IFaceDetectionObserver({FutureOr<
void> onFaceDetectResult(FaceDetectionResult result)?, FutureOr<void> onExpressionDetectResult(ExpressionDetectResult result)?})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onExpressionDetectResult
↔ FutureOr<
void> Function(ExpressionDetectResult result)? -
@hidden for internal use only
@detail callback
@author zhushufan.ref
@brief 特效 SDK 进行人像属性检测结果的回调。
调用 registerFaceDetectionObserver 注册了 IFaceDetectionObserver{@link #IFaceDetectionObserver},并调用 setVideoEffectExpressionDetect{@link #IVideoEffect#setVideoEffectExpressionDetect} 设置开启人像属性检测后,你会收到此回调。 @param result 人像属性检测结果, 参看 ExpressionDetectResult{@link #ExpressionDetectResult}。getter/setter pair -
onFaceDetectResult
↔ FutureOr<
void> Function(FaceDetectionResult result)? -
@detail callback
@author wangjunlin.3182
@brief 特效 SDK 进行人脸检测结果的回调。
调用 enableFaceDetection{@link #IVideoEffect#enableFaceDetection} 注册了 IFaceDetectionObserver{@link #IFaceDetectionObserver},并使用 RTC SDK 中包含的特效 SDK 进行视频特效处理时,你会收到此回调。 @param result 人脸检测结果, 参看 FaceDetectionResult{@link #FaceDetectionResult}。getter/setter pair - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited