文档中心
API调试

功能描述

房产证识别

请求URL

https://api.textin.com/robot/v1.0/api/property_certificate

HTTP请求方法(Method)

HTTP POST

请求头说明(Request Headers)

请在HTTP请求中添加以下自定义标头(Header)。

header 名
x-ti-app-id 请登录后前往 “工作台-账号设置-开发者信息” 查看 x-ti-app-id
x-ti-secret-code 请登录后前往 “工作台-账号设置-开发者信息” 查看 x-ti-secret-code

请求体说明(Request Body)

Content-Type: application/octet-stream

要上传的图片,目前支持jpg, png, bmp, pdf, tiff, 单帧gif等大部分格式.

请注意,请求体的数据格式为文件的二进制流,非 FormData 或其他格式。文件大小不超过 10M,图像宽高须介于 20 和 10000(像素)之间。

响应体说明(Response)

Content-Type: application/json

JSON结构说明如下:

字段名 类型 描述
code integer 错误码,详见“错误码说明”
message string

错误信息

version string

推理镜像版本号

duration integer

推理时间(ms)

result object
+ rotated_image_width integer

正方向时图片的宽

+ rotated_image_height integer

正方向时图片高

+ image_angle integer

图片角度,指原图需要经过顺时针旋转多少度,才能得到正方向的图片

+ type string

当前识别证件类型,当为other的时候,代表无法识别的图片

  • house_property_owner_ship:房产证
  • other:其他
+ item_list array
   ++ value string

识别的字段的值

   ++ description string

识别的字段中文描述

   ++ position array

识别的value在原图中的坐标, 是个长度为8的数组 [0,1,2,3,4,5,6,7]

  • (0, 1) 左上角坐标
  • (2, 3) 右上角坐标
  • (4, 5) 左下角坐标
  • (6, 7) 右下角坐标
   ++ confidence number

字段置信度

   ++ key string

识别的字段名

  • ownership_number: 权属编号
  • building_number: 幢号
  • locate_location: 房地坐落
  • land_plots_code: 宗地号
  • house_structure: 结构
  • house_total_floors: 总层数
  • house_owner: 房屋所有权人
  • period_of_use: 使用年限
  • house_layers: 层数
  • construction_area: 建筑面积
  • ownership_nature: 所有权性质
  • use: 用途
  • total_condition: 共有情况
  • registration_date: 登记日期
  • right_to_use: 使用权取得方式
  • oblige: 权利人
  • attribute_quality: 权属性质
  • usage_type: 使用权类型
  • land_use: 土地用途
  • expiry_date: 终止日期
  • cover_area: 套内建筑面积
  • building_area: 合计建筑面积
  • type: 证件类型

JSON结构示例

{
    "version": "v0.3.9",
    "duration": 28,
    "result": {
        "rotated_image_width": 1000,
        "rotated_image_height": 2000,
        "image_angle": 90,
        "type": "house_property_owner_ship",
        "item_list": [
            {
                "value": "abc",
                "description": "权属编号",
                "position": [
                    100,
                    200,
                    200,
                    200,
                    300,
                    200,
                    100,
                    300
                ],
                "confidence": 0.999,
                "key": "ownership_number"
            }
        ]
    }
}

错误码说明

错误码 描述
40101 x-ti-app-id 或 x-ti-secret-code 为空
40102 x-ti-app-id 或 x-ti-secret-code 无效,验证失败
40103 客户端IP不在白名单
40003 余额不足,请充值后再使用
40004 参数错误,请查看技术文档,检查传参
40007 机器人不存在或未发布
40008 机器人未开通,请至市场开通后重试
40301 图片类型不支持
40302 上传文件大小不符,文件大小不超过 10M
40303 文件类型不支持
40304 图片尺寸不符,图像宽高须介于 20 和 10000(像素)之间
40305 识别文件未上传
30203 基础服务故障,请稍后重试
500 服务器内部错误
官方社群
体验中心

联系我们