【发布时间】:2019-07-17 08:35:27
【问题描述】:
有没有办法按块对 Google 的 Document Text Detection API 的文本响应进行分组?如果有提供的解决方案,我可能在文档中忽略了它。我目前正在使用 node.js 从用户提供的图像中获取文本。这是我的代码:
const vision = require('@google-cloud/vision');
const client = new vision.ImageAnnotatorClient({
keyFilename: 'APIKey.json'
});
client
.documentTextDetection('image.jpg')
.then(results => {
res.send(results);
})
.catch(err => {
res.send(err);
});
提前致谢。
【问题讨论】:
标签: node.js express google-vision