Qiniuyun calls the OCR ID identification API, Authorization: Qiniu < AccessKey >: < Sign > generation method.

Qiniuyun calls OCR ID identification API, Authorization: Qiniu < AccessKey >: < Sign > Generation method

Auth auth = Auth.create(acKey, scKey);
        String signature = auth.signRequestV2("http://ai.qiniuapi.com/v1/ocr/idcard?uri=http://img3.redocn.com/20120528/Redocn_2012052817213559.jpg",
                "POST", null, "application/json");
        String QiniuToken = "Qiniu " + signature;
        Map<String, String> headers = new HashMap<>();
        headers.put("Authorization", QiniuToken);
        String result = HttpKit.post("http://ai.qiniuapi.com/v1/ocr/idcard?uri=http://img3.redocn.com/20120528/Redocn_2012052817213559.jpg", null, "UTF-8", headers);
        System.out.println(result);`

clipboard.png

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e6111d-458ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e6111d-458ff.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?