import com.baidubce.http.ApiExplorerClient; import com.baidubce.http.AppSigner; import com.baidubce.http.HttpMethodName; import com.baidubce.model.ApiExplorerRequest; import com.baidubce.model.ApiExplorerResponse; // 获取识别类型 Java示例代码 public class RequestDemo { public static void main(String[] args) { String path = "http://gwgp-dxc9hdj2ifs.n.bdcloudapi.com/idcardrecognition/type"; ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path); request.setCredentials("您的 access key", "您的 secret key"); request.addHeaderParameter("Content-Type", "application/json;charset=UTF-8"); ApiExplorerClient client = new ApiExplorerClient(new AppSigner()); try { ApiExplorerResponse response = client.sendRequest(request); // 返回结果格式为Json字符串 System.out.println(response.getResult()); } catch (Exception e) { e.printStackTrace(); } } }
点击复制代码
{
"status": 0,
"msg": "ok",
"result": [
{
"typeid": "1",
"typename": "一代身份证"
},
{
"typeid": "2",
"typename": "二代身份证正面"
},
{
"typeid": "3",
"typename": "二代身份证证背面"
},
{
"typeid": "4",
"typename": "临时身份证"
},
{
"typeid": "5",
"typename": "驾照"
},
{
"typeid": "6",
"typename": "行驶证"
},
{
"typeid": "7",
"typename": "军官证"
},
{
"typeid": "9",
"typename": "中华人民共和国往来港澳通行证(机读证件 护照幅面)"
},
{
"typeid": "10",
"typename": "台湾居民往来大陆通行证(机读证件 护照幅面)"
},
{
"typeid": "11",
"typename": "大陆居民往来台湾通行证(机读证件 护照幅面)"
},
{
"typeid": "12",
"typename": "签证(机读证件 护照幅面)"
},
{
"typeid": "13",
"typename": "护照(机读证件 护照幅面)"
},
{
"typeid": "14",
"typename": "港澳居民来往内地通行证正面(机读证件 卡幅面)"
},
{
"typeid": "15",
"typename": "港澳居民来往内地通行证背面(机读证件 卡幅面)"
},
{
"typeid": "16",
"typename": "户口本"
},
{
"typeid": "1000",
"typename": "居住证"
},
{
"typeid": "1001",
"typename": "香港永久性居民身份证"
},
{
"typeid": "1002",
"typename": "登机牌(拍照设备目前不支持登机牌的识别)"
},
{
"typeid": "1003",
"typename": "边民证(A)(照片页)"
},
{
"typeid": "1004",
"typename": "边民证(B)(个人信息页)"
},
{
"typeid": "1005",
"typename": "澳门身份证"
},
{
"typeid": "1006",
"typename": "领取凭证(AVA6支持) "
},
{
"typeid": "1007",
"typename": "律师证(A) (信息页)"
},
{
"typeid": "1008",
"typename": "律师证(B) (照片页)"
},
{
"typeid": "1030",
"typename": "全民健康保险卡 "
},
{
"typeid": "1031",
"typename": "台湾身份证正面"
},
{
"typeid": "1032",
"typename": "台湾身份证背面"
}
]
}
退款规则:
退款时仅退还实付金额,已使用的代金券不退还。
已经开具完发票的,退款时需要您退回发票。
订单支付完成后7天内为交易担保期,可免费申请退款。
超过7天的订单需退款的请先联系客服退款。需收取资源包余量的15%作为财务成本支出,退余量的85%。
如对退款有疑问,请先联系客服进行咨询。详情参考云市场退款规则:
https://cloud.baidu.com/doc/Market/s/zjwvytb6s
可以识别二代身份证、驾照、行驶证、军官证、中华人民共和国往来港澳通行证、台湾居民往来大陆通行证、大陆居民往来台湾通行证、签证、护照、户口本、居住证等证件。