|
|
@ -83,6 +83,11 @@ public class OcrTaskServiceImpl implements OcrTaskService { |
|
|
|
JSONObject res = JSONObject.parseObject(resStr); |
|
|
|
if(res.containsKey(Constants.PDF_FILE_SIZE)) { |
|
|
|
maxpagenum = (int) res.get(Constants.PDF_FILE_SIZE); |
|
|
|
//最大解析15页 |
|
|
|
if (maxpagenum >15) { |
|
|
|
maxpagenum = 15; |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
List<Map<String, Object>> wordsResult = (List<Map<String, Object>>) res.get(Constants.WORDS_RESULT); |
|
|
|
for (Map<String, Object> map : wordsResult) { |
|
|
|