每日博客

身份证识别

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));

 

posted @ 2021-10-20 19:21  谦寻  阅读(50)  评论(0编辑  收藏  举报