Skip to content

Instantly share code, notes, and snippets.

@reisjr
Created September 23, 2017 01:42
Show Gist options
  • Save reisjr/95a470d7087e06b38802d50f81deb4f9 to your computer and use it in GitHub Desktop.
Save reisjr/95a470d7087e06b38802d50f81deb4f9 to your computer and use it in GitHub Desktop.
Copy file to S3 and execute rekognition
#!/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