-
Notifications
You must be signed in to change notification settings - Fork 43
video face detection
KimJeongChul edited this page Apr 25, 2019
·
4 revisions
Library : (boto3 / azure.functions, azure.storage.file / google.cloud.storage), time, uuid, cv2
- aws : build your deployment package
aws-build-deployment-package -> opencv-python
- google : requirements.txt
opencv-python
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
opencv-python
Workload Input: Video
Workload Output: Video
Lambda payload(test-event) example:
model_object_key : haarcascade_frontalface_default.xml
{
"input_bucket": [INPUT_BUCKET_NAME],
"key": [VIDEO_FILE_NAME],
"output_bucket": [OUTPUT_BUCKET_NAME],
"model_bucket": [MODEL_BUCKET_NAME],
"model_object_key": [MODEL_OBJECT_KEY]
}
or Storage service trigger example(AWS S3):
for record in event['Records']:
bucket = record['s3']['bucket']['name']
key = record['s3']['object']['key']
Lambda Output : latency