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)
请求参数(Path) 请求示例 javapythongocurlphpnodejs
示例代码使用, 需要使用Maven加入依赖 <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;
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);
System.out.println(response.getResult());
} catch (Exception e) {
e.printStackTrace();
}
}
}
点击复制代码
正常返回示例
{
"jobid": "ZT20210128191309556692577",
"responsetime": "20210128191311019",
"errcode": "R0000",
"errmsg": "处理成功",
"result": {},
"encresult": {
"traction_mass": "",
"address": "广东省深圳市罗湖区中兴路117号202",
"inspection_record": "",
"vehicle_type": "小型轿车",
"register_date": "2011-05-12",
"file_no": "",
"gross_mass": "",
"approved_load": "",
"number": "粤BK62Y2",
"engine_no": "05237685",
"issue_date": "2014-07-30",
"approved_passengers": "",
"use_character": "非营运",
"name": "杨X",
"unladen_mass": "",
"vin": "LBVFP1909BSE17557",
"model": "宝马牌BMW7251LL(BMW520",
"dimension": "",
"remarks": "",
"code_number": ""
}
}
R0000:处理成功
R0001:处理失败
P0027:图像信息不标准
00061:请求次数超限
21005:该产品暂时无法使用
910RE:系统交易超时
91096:系统其他错误
失败返回示例
{
"jobid": "ZT20201230164545238130741",
"responsetime": "20201230164545557",
"errcode": "P0027",
"errmsg": "图像信息不标准",
"result": {},
"encresult": ""
}
错误码定义