POST api/User/OCR

通过OCR 查询身份号码

Request Information

URI Parameters

None.

Body Parameters

Base64Img
NameDescriptionTypeAdditional information
ImgBase64

图片base64

string

None.

Request Formats

application/json, text/json

Sample:
{
  "ImgBase64": "sample string 1"
}

application/xml, text/xml

Sample:
<Base64Img xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ViewModel.Api">
  <ImgBase64>sample string 1</ImgBase64>
</Base64Img>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ResponseOfIDCardInfo
NameDescriptionTypeAdditional information
data

IDCardInfo

None.

errcode

错误码,默认为成功:SUCCESS

string

None.

errmsg

错误信息,默认为:成功

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "Name": "sample string 1",
    "IDCardNo": "sample string 2"
  },
  "errcode": "sample string 1",
  "errmsg": "sample string 2"
}

application/xml, text/xml

Sample:
<ResponseOfIDCardInfoOAt7sKUT xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Infrastructure.WebApi">
  <errcode>sample string 1</errcode>
  <errmsg>sample string 2</errmsg>
  <data xmlns:d2p1="http://schemas.datacontract.org/2004/07/Infrastructure.OCR.Baidu">
    <d2p1:IDCardNo>sample string 2</d2p1:IDCardNo>
    <d2p1:Name>sample string 1</d2p1:Name>
  </data>
</ResponseOfIDCardInfoOAt7sKUT>