Skip to content

fsvreddit/image-moderator

Repository files navigation

A Dev Platform app for detecting AI or other unwanted content in images.

This app uses the Sightengine API to analyse image posts. Detections supported:

  • AI-generated images
  • Deepfake images
  • Minors in images
  • Poor quality (blurry) images
  • Offensive content (Nazi, white supremacist or terrorist imagery)
  • Spammy QR codes or text on an image
  • Drug imagery

To use, you need to sign up to Sightengine's platform and obtain an API user ID and key. You must set the API User in the app settings, and the API key via the subreddit context menu.

For many use cases, Sightengine's free tier will be adequate, permitting 500 "operations" per day up to 2,000/month. AI and Deepfake checks use 5 "operations" each, while other checks use 1 each. For higher usage needs, Sightengine offer paid plans.

Checking images

Click on the post context menu for any post and choose "Check image for AI Content". If the post is an image post, it will be checked against Sightengine's API key and the likelihood of the post being AI generated will be shown as a popup.

Example video of usage.

If this is run on a gallery submission, the first image on the gallery will be checked only.

Proactive checking

You can also set the app up to proactively check new posts, or posts approved out of the modqueue. However, this can use a lot of API resource, particularly on busier subreddits.

Consider setting a suitable account age and karma threshold to restrict this feature to accounts who are more likely to break rules. Posts from moderators will never be checked, and by default content from approved users will not be checked (but this can be changed).

You can configure the app to either report the post (the default option) or remove with an optional removal reason.

By default, a report will be made:

screenshot

Change History

v1.2

  • Added ability to remove posts if a match occurs, with an optional removal message

v1.1.2

  • Add additional detection types

v1.0

  • Initial Release

About this app

This app is open source under the BSD 3-Clause licence. The source code can be found here.

Interested in detections for things not yet supported? Get in touch by messaging /u/fsv! The list of possibilities can be seen in Sightengine's documentation here. It would be really useful if you could outline the kind of content you're looking to avoid on your subreddit.

About

An AI Image detector for Reddit, written on the Dev Platform

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published