Image Converter library

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:

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

Card properties

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

MORE OPTIONS properties

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

Card properties

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

  1. In the [Output] OutputBitmap field, enter the variable to store the specified image.

  2. In the InputPath field, enter the path and name of the target image file.

Card properties

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

[Output] OutputBitmap

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

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file

SaveImage

SaveImage

Overview

This activity card saves the converted image data in variables as image files.

Application procedures

  1. In the [Input] InputBitmap field, enter the variable to store the result of image conversion.

  2. Set the Encoding property to select the image encoding type.

  3. In the SavePath field, enter the path and file name to save the converted image file.

Card properties

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

[Input] InputBitmap

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

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file

Convert2GrayImage

Convert2GrayImage

Overview

This activity card converts the specified image into an 8-bit grayscale image.

Application procedures

  1. In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.

  2. In the [Input] InputBitmap field, enter the variable that stores the image to convert.

Card properties

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

Bitmap

Variables

-

-

-

Common property of the Image Converter library.

Y

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file

ApplyAdaptiveThreshold

ApplyAdaptiveThreshold

Overview

This activity card converts the specified image with automatically adjusted threshold values for noise reduction.

Application procedures

  1. In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.

  2. In the [Input] InputBitmap field, enter the variable that stores the image to convert.

Card properties

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

Bitmap

Variables

-

-

-

Common property of the Image Converter library.

Y

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file

AdjustGammaValue

AdjustGammaValue

Overview

This activity card adjusts the gamma values of the specified image to change the brightness.

Application procedures

  1. In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.

  2. In the [Input] InputBitmap field, enter the variable that stores the image to convert.

  3. In the GammaValue field, enter the desired gamma value.

Card properties

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

Bitmap

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

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file

RotateImage

RotateImage

Overview

This activity card rotates the specified image by 90, 180, or 270 degrees.

Application procedures

  1. In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.

  2. In the [Input] InputBitmap field, enter the variable that stores the image to convert.

  3. Set the RotateValue property to select the rotation angle.

Card properties

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

Bitmap

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

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file

ResizeImage

ResizeImage

Overview

This activity card resizes the specified image.

Application procedures

  1. In the [Output] OutputBitmap field, enter the variable to store the result of the conversion.

  2. In the [Input] InputBitmap field, enter the variable that stores the image to convert.

  3. Set the ScaleMethod property to select the resizing method.

  4. In the ScalePercent field, enter the scale for the resizing in a percentage value (%).

Card properties

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

Bitmap

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

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file

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

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

[Output] OutputBitmap

Variables

-

-

-

Common property of the Image Converter library.

Y

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file

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

Card properties

Common

Properties

Type

Required

Unit

Auto-setting

Description

Y

[Input] InputBitmap

Variables

-

-

-

Common property of the Image Converter library.

Y

MORE OPTIONS

-

-

-

-

Common property of the Image Converter library.

Y

DESCRIPTION

-

-

-

-

Common property of the Image Converter library.

Sample file