Created
February 25, 2018 17:21
-
-
Save elliotforbes/493ac1eb01252c7b74842807a5404b77 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 | |
>>> rekognition = boto3.client('rekognition', 'eu-west-1') | |
>>> response = rekognition.detect_labels(Image={"S3Object":{"Bucket":"imgur-serverless-v2", "Name": "dogs.jpg" }}) | |
>>> response | |
{'Labels': [{'Name': 'Animal', 'Confidence': 92.09390258789062}, {'Name': 'Canine', 'Confidence': 92.09390258789062}, {'Name': 'Collie', 'Confidence': 92.09390258789062}, {'Name': 'Dog', 'Confidence': 92.09390258789062}, {'Name': 'Mammal', 'Confidence': 92.09390258789062}, {'Name': 'Pet', 'Confidence': 92.09390258789062}, {'Name': 'Husky', 'Confidence': 53.51436233520508}, {'Name': 'Eskimo Dog', 'Confidence': 51.68663787841797}],'OrientationCorrection': 'ROTATE_0', 'ResponseMetadata': {'RequestId': '3826c201-1a50-11e8-9262-597ffc9fcbba', 'HTTPStatusCode': 200, 'HTTPHeaders': {'content-type': 'application/x-amz-json-1.1', 'date': 'Sun, 25 Feb2018 17:20:47 GMT', 'x-amzn-requestid': '3826c201-1a50-11e8-9262-597ffc9fcbba', 'content-length': '436', 'connection': 'keep-alive'}, 'RetryAttempts': 0}} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment