Project groundwork

We will create the image folders for the bot to pick up and place the processed images. We will also create an Excel configuration file that the administrator can use to specify the parameters to be used by the bot. Let's get started:

  1. First, we need to create two folders in the UiPath project folder:
    • Input: This folder will hold social media images to be moderated. Place a few image files here that you would like to detect explicit content for.
    • Output: The bot will place the file with the image likelihood results in this folder. Create an Excel file called ImageDetails.xlsx with five columns called ImagePath, Adult, Violence, Racy, and Medical, as shown in the following screenshot:

  1. Next, let's prepare the configuration file. To store the configuration parameters, we'll create an Excel file called Config.xlsx. We will place it in the same UiPath project folder we placed the Input and Output folders, as shown in the following screenshot:

  1. Open the Config.xlsx file and rename Sheet1 to Constants. In the sheet, add the following content shown in the following table and save it:

The Description column values are optional.

We are using a configuration file to avoid hardcoding values through automation. This also allows users to update the parameters without opening UiPath Studio. 

Now that we have completed the groundwork, let's get back to the main sequence and read the configuration file we just added. 

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.149.239.100