Programmable Media

Moderate images with AI (video tutorial)

Last updated: Sep-12-2024

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

Jump to this spot in the video  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

Jump to this spot in the video  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

Jump to this spot in the video  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

Jump to this spot in the video  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

If you like this, you might also like...

Upload Programmatically
Use a Cloudinary SDK to upload media assets
Create Upload Presets
Streamline media uploads using signed upload presets
Auto-Tag Assets
Tag assets automatically during upload with AI in Node.js

 

Cloudinary Academy

 

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.

 

✔️ Feedback sent!

Rate this page: