FormX.ai
  1. 在 HEADER 中指定参数
FormX.ai
  • 入门
  • 在 HEADER 中指定参数
    • 从图像中检测文档
      POST
    • 从图像中检测个人身份信息 (PII)
      POST
    • 文档提取
      POST
    • 文档提取至工作区
      POST
  • 在 FORMDATA 中指定参数
    • 从图像中检测文档
      POST
    • 从图像中检测个人身份信息 (PII)
      POST
    • 文档提取
      POST
    • 文档提取至工作区
      POST
  1. 在 HEADER 中指定参数

从图像中检测文档

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/detect-documents
FormX 将从上传的图像中检测身份证和收据等文件。它将返回每个检测到的文档的边界框和类型。
图像文件可以通过请求正文或X-WORKER-IMAGE-URL上传,文件大小限制为 10MB,尺寸限制为 10,000x10,000 像素。
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://dev-cn.your-api-server.com/detect-documents' \
--header 'API Key;' \
--header 'content-type: image/*'
响应示例响应示例
200 - 成功示例
{
  "documents": [
    {
      "type": "string",
      "bbox": [
        0
      ],
      "bbox_score": 0,
      "type_score": 0
    }
  ],
  "status": "ok"
}

请求参数

Header 参数
content-type
string 
必需
示例值:
image/*
API Key
string 
必需

返回响应

🟢200成功
application/json
Body
documents
array [object {4}] 
必需
type
string 
检测到的文档类型
可选
bbox
array[integer]
可选
检测到的文档的边界框在[左,上,右,下]
bbox_score
integer 
可选
检测到的边界框的置信度得分
type_score
integer 
可选
检测到的类型的置信度得分
status
string 
必需
🟠400请求有误
修改于 2024-05-23 08:17:46
上一页
入门
下一页
从图像中检测个人身份信息 (PII)
Built with