NSFW Image Detector

  • babak/nsfw-image-detector
  • Modified
  • Users 10
  • Runs 179
  • Created by Author's avatarVladyslav Korzh

This NSFW image detector is a fast and easy JPEG, PNG, BMP, and GIF nude checker, and content moderation tool. It marks indecent content from hundreds of image URLs in seconds. Let your users view 馃憴 porn, 馃帉 hentai, and 馃槏 sexy content only when they want to!

Free trial for 3 days

Then $10.00/month

No credit card required now

NSFW Image Detector

Free trial for 3 days

Then $10.00/month

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

from apify_client import ApifyClient

# Initialize the ApifyClient with your API token
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "imgUrl": "https://apify-image-uploads-prod.s3.amazonaws.com/Nbvb2ZAX96yhhtJQy/EQ2R5dkeB3Kizko6x-IMG_6685.png",
    "directLinks": [],
    "directLinksFile": [],
}

# Run the Actor and wait for it to finish
run = client.actor("babak/nsfw-image-detector").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)