Detector收藏我的收藏
收藏
我的收藏说明
Detector 是用于人脸检测的对象,可以通过接口tt.createFaceDetector创建,开发者可以传入摄像头返回的视频流进行人脸检测。
需要摄像头开启美颜功能
方法
Detector.detectFaces(Video)
接受摄像头返回的视频流对象,返回人脸检测结果 detectData 数组。该方法是一个异步的 promise 方法。
参数
属性名称 | 类型 |
---|
Detector 是用于人脸检测的对象,可以通过接口tt.createFaceDetector创建,开发者可以传入摄像头返回的视频流进行人脸检测。
需要摄像头开启美颜功能
接受摄像头返回的视频流对象,返回人脸检测结果 detectData 数组。该方法是一个异步的 promise 方法。
属性名称 | 类型 |
---|