Last updated: Dec-11-2024
On this page:
Overview
Moderate images automatically during upload by applying AI using Cloudinary and Amazon Rekognition, in Node.js.
Video tutorial
Tutorial contents
This tutorial presents the following topics. Click a timestamp to jump to that part of the video.
Automatic image moderation
0:00 | When you have thousands of images being uploaded to your site, moderating them manually isn't feasible. Instead, you can moderate them automatically using AI. |
Manual image moderation
0:14 | When using the Node.js SDK upload call to upload an image, you can set the moderation parameter to manual (as shown below). This sets the moderation status to pending in the upload response. You can find assets pending manual moderation in the Cloudinary Console, in the Moderation page of the Media Library, with Manual selected. There, you can manually approve or reject the assets. |
Image moderation using Amazon Rekognition
1:13 | To moderate images automatically using Amazon Rekognition, first subscribe to the Amazon Rekognition AI Moderation add-on, then set moderation to aws_rek . There are various moderation categories that you can set thresholds for in the upload call. Images are approved or rejected automatically based on the confidence threshold of the detected content. They are set to a 0.5 threshold by default. |
Set automatic moderation in an upload preset
2:15 | You can use an upload preset to configure automatic moderation. In the Upload settings of your product environment, you can create an upload preset with Amazon Rekognition set and you can fine tune the category thresholds to suit your needs. |
Keep learning
Related topics
- Read all about the Amazon Rekognition AI Moderation addon.
- Read this blog post for more insights on using Amazon Rekognition to moderate images.
- Take a look at the User-generated content guide to see all the features you can take advantage of when uploading images and videos to display on your site.
- Watch more Dev Hints videos on the Cloudinary YouTube channel.
If you like this, you might also like...
Upload Programmatically
Use a Cloudinary SDK to upload media assetsCreate Upload Presets
Streamline media uploads using signed upload presetsAuto-Tag Assets
Tag assets automatically during upload with AI in Node.js
Check out the Cloudinary Academy for free self-paced Cloudinary courses on a variety of developer or DAM topics, or register for formal instructor-led courses, either virtual or on-site.
✖️