Using the PersonTracking API
Amazon Rekognition Video can track the paths of people in a video stored in an Amazon S3 bucket. You initiate this operation using the StartPersonTracking
API, which requires the location of the S3 object and notification channel.
The following diagram illustrates the process for a production system.
Figure 5.7: The person-tracking process
- An actor uploads the video into an Amazon S3 bucket.
- An actor calls the
StartPersonTracking
API. - Amazon Rekognition notifies an Amazon SNS topic of progress.
- The Amazon SNS topic forwards the notification:
- It invokes an AWS Lambda function to handle the callback.
- It copies the message for offline troubleshooting.
- An AWS Lambda function fetches the results using the
GetPersonTracking
API.
Uploading the video to Amazon S3
This chapter’s repository includes a couple of test videos under the tracking
folder. Upload those files into the Amazon S3 bucket if...