Avatar Creation


An avatar creation cloud function is required for Use Case 2 (Dress Me Up). It is the interface between the eTryOn systems and the Metail Scanatar Service.


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


A Google Cloud Storage Notification


  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


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.