Amazon’s Rekognition Service, which falls under their Artificial Intelligence tier, makes it easy to add image analysis to your applications.
Today we will use Rekognition to analyze an image, to determine the percentage of detection that the service analyzes. We will be using the Python SDK to do this.
Getting a Random Image:
So, I got this drunk guy on the couch, which I thought we could use to analyze.
Image Used: - http://imgur.com/a/CHnSu
Our Python Code:
Our code will use boto3 to use rekognition from Amazon Web Services, detects the image, and prints out the values.
Note that I am not specifying any credentials, as my credentials is configured in my local credential provider, where boto will pick it up from.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Running the App:
Running our Python App, will result in the following:
1 2 3 4 5 6 7 8 9 10 11