OCR身份证的云调用,使用scan模式怎么传入图片的Buffer?
官方示例代码如下:
// cloud = require('wx-server-sdk')
// ...
// 方法返回 Promisecloud.openapi.ocr.idcard({type: 'photo', img: { contentType: 'image/png', value: Buffer }})
请问,value值Buffer是怎样得到的呢?
官方示例代码如下:
// cloud = require('wx-server-sdk')
// ...
// 方法返回 Promisecloud.openapi.ocr.idcard({type: 'photo', img: { contentType: 'image/png', value: Buffer }})
请问,value值Buffer是怎样得到的呢?