The collection will store information about all the reference faces. With these reference faces, we will compare the input faces. To create a collection, we will use the CLI tool. Open Command Prompt and run the following command, shown in Figure 7.22. We need to provide a collection ID as a parameter while executing the command:
aws rekognition create-collection –collection-id “piCollection”
In response to the create-collection command, we receive a JSON object, which contains CollecetionARn,a version of the Rekognition service, and status code.