Skip to content

Instantly share code, notes, and snippets.

@gusdelact
Created July 25, 2023 02:22
Show Gist options
  • Save gusdelact/99f91fe5d115cf64f161dc583b2dd5a1 to your computer and use it in GitHub Desktop.
Save gusdelact/99f91fe5d115cf64f161dc583b2dd5a1 to your computer and use it in GitHub Desktop.
import boto3
client = boto3.client('rekognition')
censurado = 'img/tedcannabis.jpg'
with open(censurado,"rb") as desnudo :
imagen = desnudo.read()
response=client.detect_moderation_labels(Image = {'Bytes':imagen} )
print(response['ModerationLabels'])
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment