1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to AWS Boto in Python

Exercise

Parking sign reader

City planners have millions of images from truck cameras. Since the city does not keep a record of this data, parking regulations would be very valuable for planners to know.

Sam found detect_text() in the boto3 Rekognition documentation. She is going to use it to extract text out of the images City planners provided.

Sam has:

  • Created the Rekognition client.
  • Called .detect_text() and stored the result in response.

Help Sam create a data source for parking regulations in the City. Use Rekognition's .detect_text() method to extract lines and words from images of parking signs.

Instructions 1/2

undefined XP
  • 1

    Iterate over each detected text in response, and append each detected text to words if the text's type is 'WORD'.

  • 2

    Iterate over each detected text in response, and append each detected text to lines if the text's type is 'LINE'.