获取我们在 Firebase 峰会上发布的所有信息,了解 Firebase 可如何帮助您加快应用开发速度并满怀信心地运行应用。了解详情
使用集合让一切井井有条 根据您的偏好保存内容并对其进行分类。

文本识别

使用 ML Kit 的文本识别 API,您可以识别任何基于拉丁语的文本(以及更多基于云的文本识别)。

文本识别可以自动输入信用卡、收据和名片的繁琐数据。借助基于云的 API,您还可以从文档图片中提取文本,以提高可访问性或翻译文档。应用程序甚至可以跟踪现实世界中的物体,例如通过阅读火车上的数字。

iOS安卓

如果您是 Flutter 开发人员,您可能会对FlutterFire感兴趣,它包含一个用于 Firebase 的 ML Vision API 的插件。

在设备端 API 和云 API 之间进行选择

设备上
价钱自由的

每月前 1000 次免费使用此功能:请参阅定价

理想用例实时处理——适用于相机或视频源
识别图像中的稀疏文本
高精度文本识别
识别图像中的稀疏文本
识别文档图片中的密集文本

请参阅Cloud Vision API 演示

语言支持识别拉丁字符识别和识别范围广泛的语言和特殊字符

示例结果

稀疏文本

照片: Dietmar Rabich / Wikimedia Commons / “Düsseldorf, Wege der parlamentarischen Demokratie -- 2015 -- 8123” / CC BY-SA 4.0
识别文本
文本Wege
der parlamentarischen
Demokratie
(1块)
块 0
文本Wege der parlamentarischen Demokratie
框架(117.0, 258.0, 190.0, 83.0)
角点(117, 270), (301.64, 258.49), (306.05, 329.36), (121.41, 340.86)
识别的语言代码
线条(3 行)
第 0 行
文本Wege der
框架(167.0, 261.0, 91.0, 28.0)
角点(167, 267), (255.82, 261.46), (257.19, 283.42), (168.36, 288.95)
识别的语言代码
元素(2个元素)
元素 0
文本Wege
框架(167.0、263.0、59.0、26.0)
角点(167, 267), (223.88, 263.45), (225.25, 285.41), (168.36, 288.95)

文档文本

识别文本
文本DR. SEWARD'S DIARY 361
Professor. He had evidently expected some such call, for
I found him dressed in his room. His door was ajar, so that
he could hear the opening of the door of our room. He
came at once; as he passed into the room, he asked Mina
if the others might come, too.
"No," she said quite simply, "it will not be necessary.
You can tell them just as well. I must go with you on your
journey."
Dr. Van Helsing was as startled as I was. After a mo-
ment's pause he asked:
"But why?"

...

(全文)

(1块)
块 0
文本

DR . SEWARD ' S DIARY 361 Professor . He had evidently expected some such call , for I found him dressed in his room . His door was ajar , so that he could hear the opening of the door of our room . He came at once ; as he passed into the room , he asked Mina if the others might come , too .

" No , " she said quite simply , " it will not be necessary . You can tell them just as well . I must go with you on your journey . "

Dr . Van Helsing was as startled as I was . After a mo ment ' s pause he asked :

...

(全文)

信心0.98
框架(25.0, 21.0, 359.0, 583.0)
识别的语言代码zh
段落(10段)
第 1 段
文本" No , " she said quite simply , " it will not be necessary . You can tell them just as well . I must go with you on your journey . "
信心0.98
框架(29.0, 110.0, 355.0, 44.0)
识别的语言代码zh
(34 个字)
字 7
文本simply
信心0.99
框架(179.0、110.0、37.0、15.0)
识别的语言代码zh
符号(6 个符号)
符号 0
文本s
信心1.00
框架(179.0、110.0、3.0、15.0)
识别的语言代码zh