Created
July 25, 2023 02:22
-
-
Save gusdelact/99f91fe5d115cf64f161dc583b2dd5a1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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