PubNub Integration

Sightengine: Image Moderation and Censoring

Alerts & Notifications

Alerts & Notifications

In-app chat

In-app chat

Last Updated:

2016/09/08

Author:

Devendra

Get API Credentials

Analyze, detect, and censor images for adult content, validation and format

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.

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
    }
}

Feedback & Support

Need help? Contact PubNub Support.


Talk to an expert

Contact Sales