Read Images

You are currently viewing the documentation for a pre-release version (2.2.0). To access documentation for other versions, click the "Switch Version" button located in the upper-right corner of the page.

■ If you're unsure about the version of the product you are using, please contact Mech-Mind Technical Support for assistance.

Function

This Step can read 2D images from files or folders.

Usage Scenario

This Step is a general image reading Step. No fixed usage scenarios.

Input and Output

Input

This Step has no input ports.

Output

Output ports Data type Description

Color Image

Image/Color

The image that is read.

Image Folder

String

The folder from which the images are read. This port is displayed when Image Source is set to Directory.

Parameter Description

This Step provides two image reading methods for setting the source path of images:

The following sections introduce the parameters for the two reading methods above.

File: Read one image from file

Parameter Description

Image File Path

Description: This parameter is used to select the file path of the image to be read. It supports mutual conversion between absolute and relative paths.
Instruction: Click the “folder” icon and select the file you need.

Image Name Type

Description: This parameter is used to select the type of the output image name.

Value list:

  • Complete Path: The absolute path to the file, e.g., "D:/image_data/sample.jpg".

  • Full Name: The full name of the file, including extension, e.g., "sample.jpg".

  • Base Name: The base name consists of all characters in the file up to (but not including) the first '.' character, e.g., "sample".

Default value: Complete Path

Directory: Read multiple images in a folder

Parameter Description

Image Folder Path

Parameter description: This parameter is used to select the directory path of the image to be read. It supports mutual conversion between absolute and relative paths.
Instruction: Click the "folder" icon and select the folder you need.

Image Format

Parameter description: This parameter is used to select the file format of the image to be read.
Value list: PNG, JPG, BMP
Default value: JPG

Read All

Parameter description: This parameter is used to determine whether to read all images in the Image Folder Path at once.
Default value: Not selected
Instruction: If selected, all images will be read and output together. In this case, Play Back Mode and Image Name Type will be disabled. If unselected, images will be read one by one and output separately. In this case, you need to set both Play Back Mode and Image Name Type.

Play Back Mode

Description: When Read All is not selected, this parameter is used to manage the way to load images from folder.

Value list:

  • Sequential: Reads the images in the folder in the order of the file name and stops after the last one is read.

  • Repeat one: repeats reading the current image.

  • Repeat all: reads images in the folder in the order of file names in a loop that does not end.

  • Random: reads the images in the folder randomly.

Default value: Sequential

Image Name Type

Description: This parameter is used to select the type of the output image name.

Value list:

  • Complete Path: The absolute path to the file, e.g., "D:/image_data/sample.jpg".

  • Full Name: The full name of the file, including extension, e.g., "sample.jpg".

  • Base Name: The base name consists of all characters in the file up to (but not including) the first '.' character, e.g., "sample".

Default value: Complete Path

Is this page helpful?

You can give a feedback in any of the following ways:

We Value Your Privacy

We use cookies to provide you with the best possible experience on our website. By continuing to use the site, you acknowledge that you agree to the use of cookies. If you decline, a single cookie will be used to ensure you're not tracked or remembered when you visit this website.