External APIs

Sightengine: Image Moderation and Censoring

Analyze, detect, and censor images for adult content, validation and format
Back to BLOCKS

About Sightengine: Image Moderation and Censoring

Sightengine's image moderation API allows developers to moderate and filter user-generated photos for adult content, validation, and photo type.

The Sightengine block allows you to execute image moderation on your data streams in-motion. For example, if your app allows users to publish photos, you can analyze and filter them before they are published to end users, ideal for chat apps, user forums, social media aggregators, and more.

Try it Now
Categories:
External APIs External APIs
Bots & AI
Bots & AI
Chat & Social
Chat & Social
Gaming
Gaming
Last Updated:
20160908 at 20:20:53
Author:
Devendra

Walkthrough

Nudity Detection block uses Sightengine API to get image nudity data, and adds it to the message.

For more details on Sightengine and getting your own API credentials, visit https://sightengine.com.

Input

Publish a JSON message containing image url on input channel. Input Channel: nudity-detection-channel
{
    "image" : "http://38.media.tumblr.com/87cae843de33f3177c96fc2f7be17818/tumblr_inline_nfglzlv7971s6lw3t.jpg" 
}

Output

Message with nudity detection data is received on same channel. Output Channel: nudity-detection-channel
{ 
    "image" : "http://38.media.tumblr.com/87cae843de33f3177c96fc2f7be17818/tumblr_inline_nfglzlv7971s6lw3t.jpg",
    "nudity": {
        "result" : false,
        "confidence" : 81
    }
}

Try PubNub Today

Connect up to 100 devices for Free