Last active
December 4, 2017 03:17
-
-
Save nmolivo/aa8beffc6ede59ab0834b48c2d040835 to your computer and use it in GitHub Desktop.
AWS Rekognition: DetectLabels
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
# 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