Ace-OCR
收藏Ace-OCR API 数据集概述
基本信息
- 名称: Ace-OCR
- 类别: Visual Recognition
- 提供商: Ace Visions
- 订阅者数量: 1
- 状态: Freemium
- 流行度: 9.1
- 服务等级: 93%
- 延迟: 5469ms
- 测试通过率: 100%
定价计划
- BASIC: $0.00 / 月
- PRO: $15.00 / 月
- ULTRA: $25.00 / 月
- MEGA: $39.00 / 月
功能描述
该API旨在将杂乱的文档(如发票、收据、表格和其他商业文档)在几秒钟内转换为可用于自动化的数据,消除手动重新键入和数据输入错误,并提供集成就绪的输出,包括原始文本、元数据丰富的Markdown、提取的JSON字段、关键字-值对和基于关键字的列表项。
核心功能
- 打印文本提取
- 关键字/值提取(例如,“Invoice #: 101987”)
- 提取关键字下的枚举列表(例如,项目符号、编号项目)
- 将提取的文本转换为Markdown文件
适用文档类型
专为商业文档设计,如发票、收据、账户对账单和文章。
端点
- POST /texts: 从图像中提取所有文本。
- POST /texts/{keyword}: 提取预定义关键字的值。
- POST /texts/{keyword}/list: 提取关键字下的枚举列表项。
- POST /texts/markdown: 将文本提取为Markdown并下载.md文件。
- POST /texts/fields: 自动提取关键字和值。
特殊字符编码
对于“:”、“#”或“ ”(空格)等特殊字符,需使用等效的URL编码字符作为{keyword}。
- 示例:关键字“invoice #:”应写为“invoice%20%23%3A”
- 编码参考:
- 空格 = %20
-
= %23
- : = %3A
- / = %2F
- ? = %3F
- & = %26
- = = %3D
-
- = %2B
- % = %25
- @ = %40
- , = %2C
- ; = %3B
- " = %22
- = %27
- < = %3C
-
= %3E
- = %5C
- | = %7C
- { = %7B
- } = %7D
- [ = %5B
- ] = %5D
- ^ = %5E
- ` = %60
使用示例
1. 发票提取
-
端点:
POST /texts/{keyword} -
示例请求: shell curl --request POST --url https://ace-ocr4.p.rapidapi.com/texts/invoice%20%23 --header Content-Type: multipart/form-data --header x-rapidapi-host: ***************************** --header x-rapidapi-key: ******************************* --form file=@invoiceA.png
-
示例响应: json { "keyword": "invoice #", "found": true, "value": "123456789" }
2. 文章/报告提取
-
端点:
POST /texts -
示例请求: shell curl --request POST --url https://ace-ocr4.p.rapidapi.com/texts --header Content-Type: multipart/form-data --header x-rapidapi-host: ***************************** --header x-rapidapi-key: ******************************* --form file=@article.png
-
示例响应: json { "text": "the quick brown fox jumps over the lazy dog" }
3. 从会议记录中提取项目符号列表
-
端点:
POST /texts/{keyword}/list -
示例请求: shell curl --request POST --url https://ace-ocr4.p.rapidapi.com/texts/Items%3A/list --header Content-Type: multipart/form-data --header x-rapidapi-host: ******************************** --header x-rapidapi-key: ********************************* --form file=notes.png
-
示例响应: json { "keyword": "Items: ", "found": true, "count": 4, "items": [ " Finalize Q2 budget", "Schedule client review", "Update project roadmap", "Prepare training materials" ] }
4. 提取文本为格式化Markdown
- 端点:
POST /texts/markdown - 示例请求: shell curl --request POST --url https://ace-ocr4.p.rapidapi.com/texts/markdown --header Content-Type: multipart/form-data --header x-rapidapi-host: ******************************** --header x-rapidapi-key: ********************************* --form file=notes.png --output result.md
5. 自动提取关键字和值
-
端点:
POST /texts/fields -
示例请求: shell curl --request POST --url https://ace-ocr4.p.rapidapi.com/texts/fields --header Content-Type: multipart/form-data --header x-rapidapi-host: ******************************** --header x-rapidapi-key: ********************************* --form file=receipt.png
-
示例响应: json { "document_type": "invoice", "line_count": 13, "extraction_source": "rule_based", "fields": { "document_type": "invoice", "source": "rule_based", "line_items": [ { "description": "1 Americano", "amount": "$8.17" }, { "description": "1 Almond Scone", "amount": "$2.17" }, { "description": "Subtotal", "amount": "$817" }, { "description": "Tax", "amount": "$055" }, { "description": "Total", "amount": "$8.70" } ], "sentences": [ "‘Thank you for your visit! Come back soon for more cozy", "moments and great coffee." ] }, "raw_text_preview": "AROMA CAFE 1211 Green Street New York NY 10005 12/07/2025 08:26 PM QTY | DESC | AMT" }
技术要求与限制
- 文本不应倾斜/扭曲/旋转,且应相对清晰(不能太模糊或分辨率过低)。
- API将尝试裁剪到文本区域,但如果文本非常小或模糊,可能效果不佳。



