Overview
Overview
You can convert images using the features provided by the Image Converter library.
Pre-processing of images can greatly enhance the accuracy when applying the OCR feature to process automation. The Image Converter features may be used to pre-process images.
The features provided by the Image Converter library are as follows:
Reading/Writing of image files: LoadImage, SaveImage
Reading/Writing of image files on the clipboard: Image2Clipboard, Clipboard2Image
Conversion to 8-bit grayscale images: Convert2GrayImage
Gamma adjustment: AdjustGammaValue
Automatic application of threshold for conversion: ApplyAdaptiveThreshold
Image modification (resizing/rotation): ResizeImage, RotateImage
Use Designer or File Explorer to refer to the samples of the Image Converter library.
• On Designer: > Help > Sample > Sample > ImageConverter
• On File Explorer: C:\Users\user\AppData\Roaming\Brity RPA Designer\samples\ImageConverter
Common Properties
Common Properties
Bitmap
Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|
[Output] OutputBitmap | Bitmap | Y | - | Y | Enter the variable to store the converted image as the result. |
[Input] InputBitmap | Bitmap | Y | - | N | Enter the variable that stores the target image to convert. |
MORE OPTIONS
Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|
On Error | Combination box | N | - | N | Specify an action to carry out when an error occurs at the time of execution. - If not specified: Output errors and exit the task. - --Ignore--: Ignore the error. - --Retry--: Try the activity one more time. - --Goto--: Try the scenario for the specified time if the activity fails. - _Event: Select an event created within the project. |
DESCRIPTION
Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|
DESCRIPTION | Text | N | - | N | Enter the description for the activity card. The description entered in the DESCRIPTION field is used as the description of the activity. A representative value will be displayed in the absence of the DESCRIPTION input. |
LoadImage
LoadImage
Overview
This activity card stores the specified images for conversion in a variable.
Application procedures
In the [Output] OutputBitmap field, enter the variable to store the specified image.
In the InputPath field, enter the path and name of the target image file.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
N | InputPath | Path | Y | - | N | Specify the file path of the target image for conversion. Only “.png,” “.jpg,” and “.bmp” file formats can be used. |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_Load_Save_Image_Test
SaveImage
SaveImage
Overview
This activity card saves the converted image data in variables as image files.
Application procedures
In the [Input] InputBitmap field, enter the variable to store the result of image conversion.
Set the Encoding property to select the image encoding type.
In the SavePath field, enter the path and file name to save the converted image file.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
N | Encoding | Combination box | Y | - | N | Select the encoding type to use when saving the file. Only “.png,” “.jpg,” and “.bmp” file formats can be used. |
N | SavePath | Path | Y | - | N | Specify the file path to save the image file. |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_Load_Save_Image_Test
Convert2GrayImage
Convert2GrayImage
Overview
This activity card converts the specified image into an 8-bit grayscale image.
Application procedures
In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.
In the [Input] InputBitmap field, enter the variable that stores the image to convert.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_Convert2Gray_Image_Test
ApplyAdaptiveThreshold
ApplyAdaptiveThreshold
Overview
This activity card converts the specified image with automatically adjusted threshold values for noise reduction.
Application procedures
In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.
In the [Input] InputBitmap field, enter the variable that stores the image to convert.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_ApplyAdaptiveImage_Test
AdjustGammaValue
AdjustGammaValue
Overview
This activity card adjusts the gamma values of the specified image to change the brightness.
Application procedures
In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.
In the [Input] InputBitmap field, enter the variable that stores the image to convert.
In the GammaValue field, enter the desired gamma value.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
N | GammaValue | Number | Y | - | N | Enter a gamma value to apply. The image becomes brighter when the gamma value is larger than 1 and becomes darker when it is smaller than 1. |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_AdjustGammaImage_Test
RotateImage
RotateImage
Overview
This activity card rotates the specified image by 90, 180, or 270 degrees.
Application procedures
In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.
In the [Input] InputBitmap field, enter the variable that stores the image to convert.
Set the RotateValue property to select the rotation angle.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
N | RotateValue | Combination box | Y | - | N | Specify the rotation angle. Select one from 90, 180, or 270 degrees. |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_RotateImage_Test
ResizeImage
ResizeImage
Overview
This activity card resizes the specified image.
Application procedures
In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.
In the [Input] InputBitmap field, enter the variable that stores the image to convert.
Set the ScaleMethod property to select the resizing method.
In the ScalePercent field, enter the scale for the resizing in a percentage value (%).
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
N | ScaleMethod | Combination box | Y | - | Y | Select the resizing method. Select Percent or Pixel. |
N | ScalePercent | Number | Y | % | Y | Specify the resizing scale in a percentage (%) if Percent is selected for the ScaleMethod property. |
N | ScaleWidth | Number | Y | - | N | Specify the image width if Pixel is selected for the ScaleMethod property. |
N | ScaleHeight | Number | Y | - | N | Specify the image height if Pixel is selected for the ScaleMethod property. |
N | KeepImageRatio | Toggle button | Y | - | Y | Select whether to maintain the image proportion when resizing the image if Pixel is selected for the ScaleMethod property. |
N | UseWidth | Toggle button | Y | - | Y | Select whether to maintain the ratio to width(true) or height. |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_ResizeImage_Test
Clipboard2Image
Clipboard2Image
Overview
This activity card stores the image on the clipboard in a variable.
Application procedures
In the [Output] OutputBitmap field, enter the variable to store the image on the clipboard.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_Clipboard2Image_Test
Image2Clipboard
Image2Clipboard
Overview
This activity card copies the converted image data stored in a variable to the clipboard.
Application procedures
In the [Input] InputBitmap field, enter the variable that stores the image to copy to the clipboard.
Card properties
Common | Properties | Type | Required | Unit | Auto-setting | Description |
---|---|---|---|---|---|---|
Y | Variables | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. | |
Y | - | - | - | - | Common property of the Image Converter library. |
Sample file
Menu > Help > Sample > Sample > Image Converter > ImageConverter_Sample > P_Image2Clipboard_Test