23年了,还是老样子
start:fail onCameraFrame is not supported on youriphone12真机测试调用相机返回不支持 faceRec(e) { wx.initFaceDetect({ success: (res) => { console.log(res) this.startFace() }, fail: (err) => { console.log(err) } }) }, startFace() { const context = wx.createCameraContext() const listener = context.onCameraFrame((res) => { console.log('>>>>>') }); if (wx.canIUse('CameraFrameListener.start')) { console.log('哈哈哈') listener.start({ success: () => { console.log('success') }, fail: (msg) => { console.log('fail>>>', msg) }, complete: () => { console.log('complete') } }) } else { console.log('嘤嘤嘤') } } [图片]
2023-01-11