Viewing results

In this example, we don't have a custom user interface to view results, so the DynamoDB console will have to do. As we can see in the following screenshot, I'm storing image URLs along with any embedded hashtags from the original tweet as well as the detected labels and scores from the Rekognition query:

Using the DynamoDB API, let's take a look at one of the records in detail using Python's boto3 library from Amazon:

>> import boto3>>> url = 'https://pbs.twimg.com/media/DSQYcgMWAAAwfXf.jpg'>>> dynamo = boto3.resource('dynamodb')>>> table = dynamo.Table('devTweetClassifierResults')>>> table.get_item(Key={'url': url}){u'hashtags': ...

Get Serverless Design Patterns and Best Practices now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.