接入技术服务

营业执照识别

功能描述

营业执照识别

请求URL

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

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)

支持以下两种请求格式

1. Content-Type: application/octet-stream

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

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

2. Content-Type: text/plain

请求体的数据格式为文本,内容为在线文件的URL链接(支持http以及https协议)。在线文件大小不超过 10M,图像宽高须介于 20 和 10000(像素)之间。

响应体说明 (Response)

Content-Type: application/json

JSON结构说明如下:

说明:所有接口响应中均包含字段 x_request_id(string类型),作为请求的唯一标识。

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

错误信息

result object
+ type string
  • other: 其他
  • business_license: 营业执照
+ image_angle integer

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

+ rotated_image_width integer

正方向时图片的宽

+ rotated_image_height integer

正方向时图片高

+ item_list array
   ++ key string

识别的字段名

  • BizLicenseIsCopy: 是否为副本
    • False 否
    • True 是
  • BizLicenseIsElectronic: 是否为电子营业执照
    • False 否
    • True 是
  • BizLicenseCreditCode: 统一社会信用代码
  • BizLicenseRegistrationCode: 注册号
  • BizLicenseSerialNumber: 证照编号
  • BizLicenseCompanyName: 名称
  • BizLicenseCompanyType: 类型
  • BizLicenseAddress: 经营场所
  • BizLicenseComposingForm: 组成形式
  • BizLicenseOwnerName: 经营者
  • BizLicenseRegCapital: 注册资本
  • BizLicensePaidInCapital: 实收资本
  • BizLicenseStartTime: 注册日期
  • BizLicenseOperatingPeriod: 营业期限
  • BizLicenseScope: 经营范围
  • BizLicenseRegistrationDate: 登记日期
  • BizLicenseRegistrationAuthority: 登记机关
   ++ value string

识别的字段值

   ++ position array

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

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

识别字段中文描述

技术交流群
技术交流群

联系我们