Computer Vision News - April 2018

Now you can return to the AWS Console and press Test to see the results of running your function. It will look something like this: 6. Linking the code to an application or it’s automatic execution Now the code is properly set up and uploaded to the Cloud. We will want it to run automatically, for instance whenever a new file is uploaded to the S3 Services (uploaded by our mobile application, for example). img_name = event['Records'][0]['s3']['object']['key'] 16 Tool Computer Vision News Computer Vision on Amazon Cloud This can be done by selecting an S3 bucket, and creating a trigger so that whenever a new file is posted into the bucket, the lambda function we select is invoked. We go into the Properties tab of a specific bucket, then scroll down to select Events , and create the trigger as shown in the image on the right: Now, when your lambda function is running, you can get the file name via

RkJQdWJsaXNoZXIy NTc3NzU=