-
Notifications
You must be signed in to change notification settings - Fork 48
image processing
KimJeongChul edited this page Apr 24, 2019
·
9 revisions
Library : boto3, time, uuid, Pillow
- aws : build your deployment package
aws-build-deployment-package -> pillow
Tried the commands and install package
sudo yum install -y libjpeg-devel zlib-devel- google : requirements.txt
pillow
google-cloud-storage
- azure : requirements.txt
az==0.1.0.dev1
azure-functions==1.0.0b3
azure-functions-worker==1.0.0b3
grpcio==1.14.2
grpcio-tools==1.14.2
protobuf==3.6.1
six==1.12.0
azure_storage_blob==1.0.0
azure-storage-file==1.0.0
cryptography==2.0
numpy
pillow
Input(test-event) example:
{
"input_bucket": [INPUT_BUCKET_NAME],
"key": [IMAGE_FILE_NAME],
"output_bucket": [OUTPUT_BUCKET_NAME],
}or Storage service trigger example(AWS S3):
for record in event['Records']:
bucket = record['s3']['bucket']['name']
key = record['s3']['object']['key']Output : latency