Textin测试
    Textin测试
    • Textin文档中心
    • 智能文档抽取服务
      POST

      智能文档抽取服务

      POST
      /ai/service/v1/entity_extraction
      智能文档抽取服务-API文档

      请求参数

      Query 参数

      Header 参数

      Body 参数application/octet-stream
      未设置

      示例代码

      Shell
      JavaScript
      Java
      Swift
      Go
      PHP
      Python
      HTTP
      C
      C#
      Objective-C
      Ruby
      OCaml
      Dart
      R
      请求示例请求示例
      Shell
      JavaScript
      Java
      Swift

      返回响应

      🟢200成功
      application/json
      JSON Data
      Body

      示例
      {
          "version": "v1.6.5",
          "code": 200,
          "message": "success",
          "duration": 2825,
          "result": {
              "category": {
                  "row": "item_list",
                  "property1": "one_to_one",
                  "property2": "one_to_one"
              },
              "rotated_image_width": 1000,
              "rotated_image_height": 2000,
              "page_count": 10,
              "image_angle": 0,
              "details": {
                  "row": [
                      {
                          "property1": {
                              "value": "字段识别结果",
                              "position": [
                                  100,
                                  200,
                                  200,
                                  200,
                                  300,
                                  200,
                                  100,
                                  300
                              ],
                              "description": "字段中文描述",
                              "lines": [
                                  {
                                      "page": 0,
                                      "text": "example",
                                      "pos": [
                                          100,
                                          200,
                                          200,
                                          200,
                                          300,
                                          200,
                                          100,
                                          300
                                      ],
                                      "angle": 90,
                                      "char_pos": [
                                          [
                                              100,
                                              200,
                                              200,
                                              200,
                                              300,
                                              200,
                                              100,
                                              300
                                          ]
                                      ]
                                  }
                              ]
                          },
                          "property2": {
                              "value": "字段识别结果",
                              "position": [
                                  100,
                                  200,
                                  200,
                                  200,
                                  300,
                                  200,
                                  100,
                                  300
                              ],
                              "description": "字段中文描述",
                              "lines": [
                                  {
                                      "page": 0,
                                      "text": "example",
                                      "pos": [
                                          100,
                                          200,
                                          200,
                                          200,
                                          300,
                                          200,
                                          100,
                                          300
                                      ],
                                      "angle": 90,
                                      "char_pos": [
                                          [
                                              100,
                                              200,
                                              200,
                                              200,
                                              300,
                                              200,
                                              100,
                                              300
                                          ]
                                      ]
                                  }
                              ]
                          }
                      }
                  ],
                  "property1": {
                      "value": "字段识别结果",
                      "position": [
                          100,
                          200,
                          200,
                          200,
                          300,
                          200,
                          100,
                          300
                      ],
                      "description": "字段中文描述",
                      "lines": [
                          {
                              "page": 0,
                              "text": "example",
                              "pos": [
                                  100,
                                  200,
                                  200,
                                  200,
                                  300,
                                  200,
                                  100,
                                  300
                              ],
                              "angle": 90,
                              "char_pos": [
                                  [
                                      100,
                                      200,
                                      200,
                                      200,
                                      300,
                                      200,
                                      100,
                                      300
                                  ]
                              ]
                          }
                      ]
                  },
                  "property2": {
                      "value": "字段识别结果",
                      "position": [
                          100,
                          200,
                          200,
                          200,
                          300,
                          200,
                          100,
                          300
                      ],
                      "description": "字段中文描述",
                      "lines": [
                          {
                              "page": 0,
                              "text": "example",
                              "pos": [
                                  100,
                                  200,
                                  200,
                                  200,
                                  300,
                                  200,
                                  100,
                                  300
                              ],
                              "angle": 90,
                              "char_pos": [
                                  [
                                      100,
                                      200,
                                      200,
                                      200,
                                      300,
                                      200,
                                      100,
                                      300
                                  ]
                              ]
                          }
                      ]
                  }
              },
              "detail_structure": [
                  {
                      "doc_type": "string",
                      "page_range": [
                          0
                      ],
                      "tables": [
                          {
                              "position": [
                                  343,
                                  56,
                                  459,
                                  56,
                                  459,
                                  90,
                                  343,
                                  90
                              ],
                              "page_number": 0,
                              "text": "string"
                          }
                      ],
                      "tables_relationship": [
                          {
                              "row_count": 2,
                              "column_count": 2,
                              "cells": [
                                  {
                                      "property1": [
                                          {
                                              "value": "string",
                                              "bounding_regions": [
                                                  {
                                                      "page_number": 0,
                                                      "value": "string",
                                                      "position": [
                                                          343,
                                                          56,
                                                          459,
                                                          56,
                                                          459,
                                                          90,
                                                          343,
                                                          90
                                                      ],
                                                      "char_pos": [
                                                          [
                                                              343,
                                                              56,
                                                              459,
                                                              56,
                                                              459,
                                                              90,
                                                              343,
                                                              90
                                                          ]
                                                      ]
                                                  }
                                              ]
                                          }
                                      ],
                                      "property2": [
                                          {
                                              "value": "string",
                                              "bounding_regions": [
                                                  {
                                                      "page_number": 0,
                                                      "value": "string",
                                                      "position": [
                                                          343,
                                                          56,
                                                          459,
                                                          56,
                                                          459,
                                                          90,
                                                          343,
                                                          90
                                                      ],
                                                      "char_pos": [
                                                          [
                                                              343,
                                                              56,
                                                              459,
                                                              56,
                                                              459,
                                                              90,
                                                              343,
                                                              90
                                                          ]
                                                      ]
                                                  }
                                              ]
                                          }
                                      ]
                                  }
                              ],
                              "title": "row"
                          }
                      ],
                      "category": [
                          "标题",
                          "性别"
                      ],
                      "fields": {
                          "property1": [
                              {
                                  "value": "string",
                                  "bounding_regions": [
                                      {
                                          "page_number": 0,
                                          "value": "string",
                                          "position": [
                                              343,
                                              56,
                                              459,
                                              56,
                                              459,
                                              90,
                                              343,
                                              90
                                          ],
                                          "char_pos": [
                                              [
                                                  343,
                                                  56,
                                                  459,
                                                  56,
                                                  459,
                                                  90,
                                                  343,
                                                  90
                                              ]
                                          ]
                                      }
                                  ]
                              }
                          ],
                          "property2": [
                              {
                                  "value": "string",
                                  "bounding_regions": [
                                      {
                                          "page_number": 0,
                                          "value": "string",
                                          "position": [
                                              343,
                                              56,
                                              459,
                                              56,
                                              459,
                                              90,
                                              343,
                                              90
                                          ],
                                          "char_pos": [
                                              [
                                                  343,
                                                  56,
                                                  459,
                                                  56,
                                                  459,
                                                  90,
                                                  343,
                                                  90
                                              ]
                                          ]
                                      }
                                  ]
                              }
                          ]
                      },
                      "stamps": [
                          {
                              "color": "红色",
                              "position": [
                                  956,
                                  583,
                                  1362,
                                  590,
                                  1355,
                                  990,
                                  950,
                                  983
                              ],
                              "stamp_shape": "圆章",
                              "type": "公章",
                              "value": "string"
                          }
                      ]
                  }
              ],
              "finish_reason": "stop",
              "documents": [
                  [
                      {
                          "page_id": 0,
                          "position": [
                              956,
                              583,
                              1362,
                              590,
                              1355,
                              990,
                              950,
                              983
                          ],
                          "paragraph_id": 0,
                          "type": "paragraph",
                          "text": "string"
                      }
                  ]
              ]
          }
      }
      修改于 2025-07-07 02:53:00
      上一页
      Textin文档中心
      Built with