public interface ICRInterface
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
icr(java.lang.String fileName,
byte[] fileBytes,
java.util.List<java.lang.String> categories,
int timeoutInSec)
Performs file ICR by sending BASE64 encoded file directly to ICR provider
|
java.util.Map<java.lang.String,java.lang.Object> |
icrS3(java.lang.String fileName,
byte[] fileBytes,
java.util.List<java.lang.String> categories,
int timeoutInSec)
Performs file ICR by uploading binary file to Amazon AWS bucket and then requesting ICR from ICR provider
|
java.util.Map<java.lang.String,java.lang.Object> icr(java.lang.String fileName, byte[] fileBytes, java.util.List<java.lang.String> categories, int timeoutInSec) throws DEException
fileName
- - name of the filefileBytes
- - binary file contentcategories
- - list of categories, categories are used by ICR AI to learn better recognition - Not RequiredtimeoutInSec
- - time out - if ICR is not completed in requested time, method will throw DEException. 0 means no limitDEException
java.util.Map<java.lang.String,java.lang.Object> icrS3(java.lang.String fileName, byte[] fileBytes, java.util.List<java.lang.String> categories, int timeoutInSec) throws DEException
fileName
- - name of the filefileBytes
- - binary file contentcategories
- - list of categories, categories are used by ICR AI to learn better recognition - Not RequiredtimeoutInSec
- - time out - if ICR is not completed in requested time, method will throw DEException. 0 means no limitDEException