Package com.workfusion.rpa.helpers
Class Ocr
java.lang.Object
com.workfusion.rpa.helpers.Ocr
This class adds methods for work with ocr.
- Sample
proccessImage(apiBaseUrl, image)
Driver Type: Desktop
-
Method Summary
Modifier and TypeMethodDescriptionstatic StringproccessImage(String apiBaseUrl, byte[] image) Proccess image and return text from image as string.static StringproccessImage(String apiBaseUrl, int x, int y, int width, int height) Proccess image and return text from image as string.static StringproccessImage(String apiBaseUrl, String language, byte[] image) Proccess image and return text from image as string.static StringproccessImage(String apiBaseUrl, String language, int x, int y, int width, int height) Proccess image and return text from image as string.static StringproccessImage(String jwtSecret, String jwtIssue, String apiBaseUrl, byte[] image) Proccess image and return text from image as string.static StringproccessImage(String jwtSecret, String jwtIssue, String apiBaseUrl, int x, int y, int width, int height) Get image by coordinates and process image and return text from image as string.static StringproccessImage(String jwtSecret, String jwtIssue, String apiBaseUrl, String language, byte[] image) Proccess image and return text from image as string.static StringproccessImage(String jwtSecret, String jwtIssue, String apiBaseUrl, String language, int x, int y, int width, int height) Get image by coordinates and process image and return text from image as string.
-
Method Details
-
proccessImage
Proccess image and return text from image as string.Driver Type: Desktop
- Parameters:
apiBaseUrl- string representation url to ocr serviceimage- byte array representation image- Returns:
- string representation text from image.
-
proccessImage
Proccess image and return text from image as string.Driver Type: Desktop
- Parameters:
apiBaseUrl- string representation url to ocr servicelanguage- string representation language to ocr serviceimage- byte array representation image- Returns:
- string representation text from image.
-
proccessImage
public static String proccessImage(String jwtSecret, String jwtIssue, String apiBaseUrl, byte[] image) Proccess image and return text from image as string.Driver Type: Desktop
- Parameters:
jwtSecret- string representation of secret key for authorization to Ocr servicejwtIssue- string representation of claim name for authorization to Ocr serviceapiBaseUrl- string representation url to ocr serviceimage- byte array representation image- Returns:
- string representation text from image.
-
proccessImage
public static String proccessImage(String apiBaseUrl, int x, int y, int width, int height) throws IOException, AWTException Proccess image and return text from image as string.Driver Type: Desktop
- Parameters:
apiBaseUrl- string representation url to ocr servicex- integer representation left upper conner of regiony- integer representation left upper conner of regionwidth- integer representation width of regionheight- integer representation height of region- Returns:
- string representation text from image.
- Throws:
IOExceptionAWTException
-
proccessImage
public static String proccessImage(String apiBaseUrl, String language, int x, int y, int width, int height) throws IOException, AWTException Proccess image and return text from image as string.Driver Type: Desktop
- Parameters:
apiBaseUrl- string representation url to ocr servicelanguage- string representation language to ocr servicex- integer representation left upper conner of regiony- integer representation left upper conner of regionwidth- integer representation width of regionheight- integer representation height of region- Returns:
- string representation text from image.
- Throws:
IOExceptionAWTException
-
proccessImage
public static String proccessImage(String jwtSecret, String jwtIssue, String apiBaseUrl, int x, int y, int width, int height) throws IOException, AWTException Get image by coordinates and process image and return text from image as string.Driver Type: Desktop
- Parameters:
jwtSecret- string representation of secret key for authorization to Ocr servicejwtIssue- string representation of claim name for authorization to Ocr serviceapiBaseUrl- string representation url to ocr servicex- integer representation left upper conner of regiony- integer representation left upper conner of regionwidth- integer representation width of regionheight- integer representation height of region- Returns:
- string representation text from image.
- Throws:
IOExceptionAWTException
-
proccessImage
public static String proccessImage(String jwtSecret, String jwtIssue, String apiBaseUrl, String language, byte[] image) Proccess image and return text from image as string.Driver Type: Desktop
- Parameters:
jwtSecret- string representation of secret key for authorization to Ocr servicejwtIssue- string representation of claim name for authorization to Ocr serviceapiBaseUrl- string representation url to ocr servicelanguage- string representation language to ocr serviceimage- byte array representation image- Returns:
- string representation text from image.
-
proccessImage
public static String proccessImage(String jwtSecret, String jwtIssue, String apiBaseUrl, String language, int x, int y, int width, int height) throws IOException, AWTException Get image by coordinates and process image and return text from image as string.Driver Type: Desktop
- Parameters:
jwtSecret- string representation of secret key for authorization to Ocr servicejwtIssue- string representation of claim name for authorization to Ocr serviceapiBaseUrl- string representation url to ocr servicelanguage- string representation language to ocr servicex- integer representation left upper conner of regiony- integer representation left upper conner of regionwidth- integer representation width of regionheight- integer representation height of region- Returns:
- string representation text from image.
- Throws:
IOExceptionAWTException
-