接口:wx.faceDetect
某些机型会闪退,有的会很卡
init() {
let that = this;
wx.initFaceDetect()
const context = wx.createCameraContext()
this.listener = context.onCameraFrame((frame) => {
wx.faceDetect({
frameBuffer: frame.data,
width: frame.width,
height: frame.height,
enablePoint: true,
enableConf: true,
enableAngle: true,
enableMultiFace: true,
success: (faceData) => {
},
fail: (err) => {
}
})
})
this.listener.start()
},
微信直接闪退了,有解决办法吗?
决绝了吗?我手机也是一直闪退