public class OCRAPI
extends java.lang.Object
Constructor and Description |
---|
OCRAPI() |
Modifier and Type | Method and Description |
---|---|
static OCRResponse |
RecognizeFromContent(java.io.File f,
Language language) |
static OCRResponse |
RecognizeFromStorage(java.lang.String fileName,
java.lang.String folder,
java.lang.String storage,
Language language) |
static OCRResponse |
RecognizeFromUrl(java.lang.String fileWebUrl,
Language language)
Recognize image text from some url if provided or from the request body content
|
static OCRResponse |
RecognizeRegionsFromContent(OCRRequestData ocrRequestData,
java.io.File f) |
static OCRResponse |
RecognizeRegionsFromStorage(OCRRequestDataStorage ocrRequestData) |
static OCRResponse |
RecognizeRegionsFromUrl(OCRRequestData ocrRequestData,
java.lang.String fileWebUrl) |
public static OCRResponse RecognizeFromUrl(java.lang.String fileWebUrl, Language language) throws java.io.IOException
fileWebUrl
- The image file urllanguage
- Recognition Languagejava.io.IOException
- .public static OCRResponse RecognizeFromContent(java.io.File f, Language language) throws java.io.IOException
f
- File to uploadlanguage
- Recognition Languagejava.io.IOException
- .public static OCRResponse RecognizeFromStorage(java.lang.String fileName, java.lang.String folder, java.lang.String storage, Language language) throws java.io.IOException
fileName
- Filename that you have already put in Aspose Storage. *Requiredfolder
- Folder name in Aspose Storage. *Null for root folderstorage
- Storage name in Aspose Storage. Null for DefaultStoragelanguage
- Recognition Languagejava.io.IOException
- .public static OCRResponse RecognizeRegionsFromUrl(OCRRequestData ocrRequestData, java.lang.String fileWebUrl) throws java.io.IOException
ocrRequestData
- Request data to recognize specific regions on image.fileWebUrl
- The image file urljava.io.IOException
- .public static OCRResponse RecognizeRegionsFromContent(OCRRequestData ocrRequestData, java.io.File f) throws java.io.IOException
ocrRequestData
- Request data to recognize specific regions on image.f
- File to recognizejava.io.IOException
- .public static OCRResponse RecognizeRegionsFromStorage(OCRRequestDataStorage ocrRequestData) throws java.io.IOException
ocrRequestData
- Request data to recognize specific regions on image.java.io.IOException
- .