产品详情
API参数 云鉴_行驶证图像识别_行驶证OCR识别_行驶证图片识别_行驶证信息识别 调用地址: http,https://ocrxszv1.api.bdymkt.com/yjxszocr 请求方式: POST 支持格式: application/x-www-form-urlencoded 调用工具: 去调试 请求参数(Headers) 请求参数(Query) 请求参数(Body)
- 名称
- 类型
- 是否必须
- 示例值
- 描述
- photo
- string
- true
- /9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAgGBgcGBQgH
- 行驶证照片(Base64字符串:不含img标签信息"data:image/jpg;base64,")格式为jpg或png,图片大小不能超过200kb)
<dependency>
<groupId>com.baidubce</groupId>
<artifactId>api-explorer-sdk</artifactId>
<version>1.0.0</version>
</dependency>
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;
// 云鉴_行驶证图像识别_行驶证OCR识别_行驶证图片识别_行驶证信息识别 Java示例代码
public class RequestDemo {
public static void main(String[] args) {
String path = "//yjxszocr";
ApiExplorerRequest request = new ApiExplorerRequest(HttpMethodName.POST, path);
request.setCredentials("您的 access key", "您的 secret key");
request.addHeaderParameter("Content-Type", "application/x-www-form-urlencoded");
ApiExplorerClient client = new ApiExplorerClient(new AppSigner());
try {
ApiExplorerResponse response = client.sendRequest(request);
// 返回结果格式为Json字符串
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例 {
"jobid": "ZT20210128191309556692577",//系统流水号
"responsetime": "20210128191311019",//响应发起时间yyyyMMddHHmmssSSS
"errcode": "R0000",//返回码
"errmsg": "处理成功",//返回码描述信息
"result": {},//保留字段,暂未使用
"encresult": {//行驶证识别结果集
"traction_mass": "",//准牵引总质量
"address": "广东省深圳市罗湖区中兴路117号202",//住址
"inspection_record": "",//检验记录
"vehicle_type": "小型轿车",//车辆类型
"register_date": "2011-05-12",//注册日期 例如:2011-05-12
"file_no": "",//档案编号
"gross_mass": "",//总质量
"approved_load": "",//核定载质量
"number": "粤BK62Y2",//号牌号码
"engine_no": "05237685",//发动机号码
"issue_date": "2014-07-30",//发证日期 例如:2020-03-24
"approved_passengers": "",//核定载人数
"use_character": "非营运",//使用性质
"name": "杨X",//所有人
"unladen_mass": "",//整备质量
"vin": "LBVFP1909BSE17557",//车辆识别代码
"model": "宝马牌BMW7251LL(BMW520",//品牌型号
"dimension": "",//外廓尺寸
"remarks": "",//备注
"code_number": ""//条码号
}
}
//errcode返码释义
R0000:处理成功
R0001:处理失败
P0027:图像信息不标准
00061:请求次数超限
21005:该产品暂时无法使用
910RE:系统交易超时
91096:系统其他错误
失败返回示例 {
"jobid": "ZT20201230164545238130741",
"responsetime": "20201230164545557",
"errcode": "P0027",
"errmsg": "图像信息不标准",
"result": {},
"encresult": ""
}
错误码定义
