Created
September 23, 2017 01:42
-
-
Save reisjr/95a470d7087e06b38802d50f81deb4f9 to your computer and use it in GitHub Desktop.
Copy file to S3 and execute rekognition
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
BUCKET="s3-temp-folder" | |
FILENAME=`basename $1` | |
aws s3 cp $1 s3://$BUCKET/ | |
aws rekognition detect-labels --image "{ \"S3Object\" : { \"Bucket\" : \"$BUCKET\", \"Name\": \"$FILENAME\" } }" --min-confidence 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment