Skill level: Intermediate
Time required: 4 minutes
This article demonstrates the identification of explicit content (sexual, adult, spoofy, or violent) using Google Cloud Vision.
Prerequisites
- A Quickwork account and and familiarity with the platform's GUI.
Encoding the image content into Base64
Images available on the internet or stored locally can be analyzed for explicit content by converting their data into a Base64 string format and using the Google Cloud Vision API.
1. Encoding web images:
- Use the Utilities by Quickwork app’s Convert file content action.
- Follow this guide for detailed instructions.
2. Encoding locally stored images:
- Visit https://www.base64encode.org/.
- Scroll to the Encode files to Base64 format section.
- Select the image file from your device and click Encode.
- Once encoded, download the Base64 content as a text file.
Note:
Ensure you use the Base64 content of the image, not the Base64 URL of the image.
Step-by-step guide
Configuring the trigger
-
Under the Event section, choose the Scheduler by Quickwork app from the drop-down menu in the Apps field.
- Select the trigger event, New scheduled event, from the drop-down menu in the Triggers field.
- Set the Interval as per your choice based on how often you need to run the journey.
- Set the date and time of your choice in the Start at field and keep the Custom payload field empty.
Configuring Google Cloud Vision action
- Under the Steps section, click on the Simple Action button and choose the Google Cloud Vision app from the drop-down menu in the Apps field.
- Select the Detect explicit content from base64 content of image action from the drop-down menu in the Actions field.
- Select an existing connection or create a new connection with your Google Cloud Vision account to use the required action.
-
Once connected, paste the base64 content received in the downloaded text file into the Image Base64 Content field.
Executing the journey
- Save the journey by clicking the Save & Start button.
- Navigate to the History tab to view the journey execution records.
- Select the recently executed record and expand the Google Cloud Vision action bar in the Steps section.
- Check the Output block for the analysis results.
The image content has been successfully checked and verified for the presence of any kind of explicit content.
Comments
0 comments
Please sign in to leave a comment.