How to open all the images in folder one by one

Hi guys,

I have set of image files in a specified folder i want to open all the images in a gallery viewer one by one for extracting some data using computer vision from those images and loop should break at the last image.

Can anyone tell me how to do this ,
Share logic
Thanks in advance,

Regards,
Sriram

1 Like

Hi @Sriram07,

You can do that using the assign activity as in the screenshot:

Then you can loop through the string array to get each image.
Hope this helps :slight_smile:

1 Like

yeah understood !
After that how to open that image in a screen

1 Like

Load Image activity will help you to load the image to a variable or

If you want to open a image, then use Process.start method as in the screenshot:

image .

This will open the image

1 Like

i don’t want open one image as you gave as path for specified image . i need to open all images in the folder.
Then how can i use this start process for all images in one by one in a loop.
please will you share the workflow or screenshot for that .

1 Like

Here is the workflow, but make a note of all the variable types i have used :slight_smile:

GetFilesInADir.xaml (5.7 KB)

Hope this helps

As per recent UiPath community discussions, we are not supposed to provide the workflows… :slight_smile:

2 Likes

@Sriram07

As @HareeshMR mentioned in the first, in that way we have to read all images in particular folder and will give you output as String array. Then use For Each loop to iterate that array and inside it use Start Process activity and pass file argument as ‘item’. Then it will open one by one image in that folder.

2 Likes

yeah bro
Did same as u mentioned !
But it opening only 1 st image and it was throwing error with
Message : Application could not be opened
Source : Start process !
Correct me what went wrong !!!

1 Like

Can you post the screenshot of the issue and confirm whether the path contains only images ?

1 Like

@Sriram07

If possible could you share your Workflow and need to check once.

1 Like

Any update on this post ?

what need to be done for an image that is inverted ?