使用 Google Vision API 进行表格识别

Tables recognition using Google Vision API

我使用 Google Vision API 的 OCR 功能(DOCUMENT_TEXT_DETECTION)来处理不同的医疗文件。里面有一些桌子。根据 Google 的文档,表有一个特殊的 BlockType (https://cloud.google.com/vision/docs/reference/rpc/google.cloud.vision.v1#blocktype), however, I can not get this sort of block in a response from Google even in a case when existence of a table is obvious. Does anybody know the reason of such behavior? Do I need to use special options or methods to detect tables using Google Vision API? An example of a table I tried to process:

我在 Google 论坛的 Google Vision API 中发现了你关于表格的问题。简短的回答:现在 (10/21/2021) 不支持表(作为块类型),但是有一个次要优先级的功能请求:Google Vision API Issue Tracker

我建议您使用 Document AI:Document AI。我检查了一下,它返回了有关表格的元信息。