Avatar Creation

Context

An avatar creation cloud function is required for all three use-cases. It is the interface between the eTryOn systems and the Metail Scanatar Service.

Use Case 1

Use Case 2

Use Case 3

Invocation

The function is triggered by a Cloud Storage notification when a Quantacorp scan (PLY) and metadata (JSON) has been written to the asset store.

Input

A Google Cloud Storage Notification

Actions

  1. Read metadata from asset store and extract subject height and gender
  2. Construct presigned GET URL for scan
  3. Construct presigned PUT URL for the output avatar
  4. Retrieve AWS keys from secret store
  5. Invoke the Avatar Creation Step Function

Output

This function is invoked asynchronously so produces no output. The generated avatar is written to the asset store using the presigned URL passed to the step function invocation.