이준호 전자조정시스템 커밋
- ocr 수정 중
This commit is contained in:
parent
62ba86c3a4
commit
1b60ce788a
@ -204,7 +204,8 @@ public class TextSenseController {
|
||||
|
||||
//TextSense API 요청 처리
|
||||
TextSenseVO apiTextSenseVO = new TextSenseVO();
|
||||
String outputFileNm = "ePapy_" + EgovStringUtil.getTimeStamp() + "_OCR.json";
|
||||
String outputFileExt = "text";
|
||||
String outputFileNm = "ePapy_" + EgovStringUtil.getTimeStamp() + "_OCR." + outputFileExt;
|
||||
String apiUrl = textSenseApiUrl + "/textsense/api/job/build";
|
||||
String taskName = textSenseVO.getTaskName();
|
||||
|
||||
@ -220,7 +221,7 @@ public class TextSenseController {
|
||||
//apiTextSenseVO.setReqOption("{}"); //기본값으로 빈값을 넣어준다.
|
||||
//apiTextSenseVO.setOutputType("json"); //지원하는 output type은 pdf, json, excel, text, text-split 입니다
|
||||
// 2023-10-23 김상훈 본부장님 에게 text로 하기로 협의 되었다고 전달받음
|
||||
apiTextSenseVO.setOutputType("json"); //지원하는 output type은 pdf, json, excel, text, text-split 입니다
|
||||
apiTextSenseVO.setOutputType(outputFileExt); //지원하는 output type은 pdf, json, excel, text, text-split 입니다
|
||||
apiTextSenseVO.setType("textSense"); //고정값으로 변경 불가
|
||||
|
||||
JSONObject resultJson = TextSenseAPIComm.getTextSenseRequest(apiTextSenseVO);
|
||||
@ -322,7 +323,7 @@ public class TextSenseController {
|
||||
textSenseVO.setCompletedat(completedAt);
|
||||
textSenseVO.setUpdatedat(updatedAt);
|
||||
textSenseVO.setMaxRetryCount(maxRetryCount);
|
||||
textSenseVO.setMaxRetryCount(maxRetryCount);
|
||||
textSenseVO.setRetryCount(retryCount);
|
||||
textSenseVO.setCollectedby(collectedBy);
|
||||
textSenseVO.setCallbackUri(callbackUri);
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user