Now, let's write our first Python application that will detect the objects in the images that are stored in an S3 bucket. To do this, we will leverage boto3 to interact with both the Amazon S3 service and the Amazon Rekognition service:
You can use any text editor, or your favorite Python Integrated Development Environment (IDE), to create the Python source files. If you don't have a preference, we recommend that you check out JetBrains PyCharm, https://www.jetbrains.com/pycharm/, a cross-platform Python IDE that provides code editing, code analysis, a graphical debugger, an integrated unit tester, and integration with a version control system.
- The first source file that we will create is storage_service.py. Create this source file in the ObjectDetectionDemo directory. The following is the Python code for storage_service.py:
import boto3...