每日博客
身份证识别
HashMap<String, String> options = new HashMap<String, String>();
options.put("detect_direction", "true");
options.put("detect_risk", "false");
String idCardSide = "back";
String image = "图片地址";
JSONObject res = client.idcard(image, idCardSide, options);
System.out.println(res.toString(2)
车牌识别
HashMap<String, String> options = new HashMap<String, String>();
options.put("detect_direction", "true");
String im = "C:\\Users\\Lenovo\\Desktop\\校\\作业\\软件构造\\实验\\2\\车牌.jpeg";
JSONObject re = client.plateLicense(im, options);
System.out.println(re.toString(2));