node.js - Google Cloud Vision 文本检测 - 忽略徽标上的文本
问题描述
我正在使用以下代码检测图像上的文本,然后将该结果作为字符串数组获取:
const [result] = await googleapis.textDetection(attachment.url);
const texts = result.fullTextAnnotation;
const parsedText = texts.text.split('\n');
但是,我的图像主要包含文本,但有时也可以包含各种徽标。我知道 Google Cloud Vision 有一个用于检测徽标的 api,所以我想知道是否可以检测到徽标,然后在进行文本检测之前“删除它们”。或者在文本检测中基本上忽略它们。
解决方案
推荐阅读
- crystal-reports - 从 Crystal Reports 和 BI Launch Pad 导出的 excel 文件的单元格高度和宽度被压缩
- php - Laravel 5.6:从下拉列表中获取选定的值以在另一个中使用它
- java - 为什么 Java 没有 EmptyQueueException?
- webstorm - WebStorm 2018.3 Run/Debug 启动直接报错
- java - 多个类的静态引用
- typescript - Angular 6读取XLS文件并将其保存到变量中
- html - 使用 CSS 实现百分点
- sorting - 数据表 - 包含年龄范围/YADCF 累积过滤器的排序列(使用 columnDefs )
- php - 使用完全限定路径名 (FQPN) 请求文件时是否执行任何类型的搜索
- c - 带有循环的 C 程序中的老虎机