Skip to content

Instantly share code, notes, and snippets.

@nmolivo
Last active December 4, 2017 03:17
Show Gist options
  • Save nmolivo/aa8beffc6ede59ab0834b48c2d040835 to your computer and use it in GitHub Desktop.
Save nmolivo/aa8beffc6ede59ab0834b48c2d040835 to your computer and use it in GitHub Desktop.
AWS Rekognition: DetectLabels
# http://docs.aws.amazon.com/rekognition/latest/dg/get-started-exercise.html
fileName='img_00001'
bucket='bucket_name'
client=boto3.client('rekognition')
## ^^ we only need to do this code once for the following examples. I include it
## re-instated in case you want to check out different pics.
response = client.detect_labels(Image={'S3Object':{'Bucket':bucket,'Name':fileName}},MinConfidence=75)
response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment