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

从图像中检测文档

开发环境
http://dev-cn.your-api-server.com
开发环境
http://dev-cn.your-api-server.com
POST
/detect-documents
FormX 将从上传的图像中检测身份证和收据等文件。它将返回每个检测到的文件的边界框和类型。
可以通过图像参数或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;'
响应示例响应示例
200 - 成功示例
{
  "documents": [
    {
      "type": "string",
      "bbox": [
        0
      ],
      "bbox_score": 0,
      "type_score": 0
    }
  ],
  "status": "ok"
}

请求参数

Header 参数
API Key
string 
必需
Body 参数multipart/form-data
object {0}

返回响应

🟢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 09:07:09
上一页
文档提取至工作区
下一页
从图像中检测个人身份信息 (PII)
Built with