Skip to content

Latest commit

 

History

History
29 lines (18 loc) · 985 Bytes

File metadata and controls

29 lines (18 loc) · 985 Bytes

Google Cloud NodeJS

Ourvoice automatic pixelation

  • This function will detect faces on uploaded images, obfuscate them, and save the resulting output to a google bucket.

Deployment

The following command can be run to deploy on cloud functions:

gcloud functions deploy pixelateTrigger --runtime nodejs18 --trigger-resource transform_ov_walk_files --trigger-event google.storage.object.finalize --max-instances 20 --memory 512MB --timeout 120s --env-vars-file .env.yaml --docker-registry=artifact-registry

Note that an .env.yaml file will need to be present with the following format:

    projectId: <PROJECTID>
    finalBucketName: <BUCKETNAME>

Before This is an image

After This is an image