Now, we are ready to invoke the Google Cloud Vision SafeSearch API and get the likelihood estimate that any given image includes adult content, violence, and so on. This is the core component of this project.
To do this, we will create a new sequence file called SafeSearch.xaml for the project. Use the New | Sequence option from UiPath Studio. Now, within the sequence, do the following:
- We will start by adding two arguments called ClientID and ClientSecret, both with the In direction. We will use these arguments to pass the Google client ID and secret from Main to this workflow.
- Now, let's start configuring the workflow by adding a Try-Catch block for exception handling. Within that block, we'll add a sequence and call it Try Sequence. Your workflow should look like this:
- Next, we will get a list of all the images, one by one, as well as their paths, from the ImageDetails.xlsx file that we populated earlier...