Create collection

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”
Figure 7.22

In response to the create-collection command, we receive a JSON object, which contains CollecetionARn,a version of the Rekognition service, and status code.

Get Internet of Things with Raspberry Pi 3 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.