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.
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.
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" }
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 } }
Need help? Contact PubNub Support.
Copyright (c) 2018 PubNub
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.