//CRS配置
config: {
token: "XXXXXXXXXXXXfAXk1EuG8pOox/U1o6Yus+h2/01Ek402D3C+0TtPQKW/Cy5JysXk61BtjGyPo3oKA==",
cloudKey: "XXXXXXXXee0325aa6277aca",
clientHost: 'https://cn1-crs.easyar.com:8443', //服务器一般不变
jpegQuality: 0.7, //JPEG压缩质量,建议不低于70%
minInterval: 1000, //最短的两次CRS请求间隔
},
//识别到这个数组中的ID就触发内容
targetIds: [
"7872172d-8c01-4fb2-90b2-86d308a4a453",
"8d92a44b-438b-4d7d-a0f2-5c1904403104",
],
报错:
VM13:2 (in promise) MiniProgramError
Cannot read property 'createView' of undefined
TypeError: Cannot read property 'createView' of undefined
at t.value (eval at n.call.document (http://127.0.0.1:22227/remote-debug/runtime.js?devtools_ignore=true:1:12851), <anonymous>:2:2214583)
下载小程序DEMO,按照官方文档的步骤,在真机调试和微信小程序工具上都无法实现识别图片,真机调试还会报错,求助。