Skip to content

Instantly share code, notes, and snippets.

@jacoyutorius
Last active November 10, 2017 04:22
Show Gist options
  • Select an option

  • Save jacoyutorius/0fbfd1b3cac749da91f6c20a84ea8bf1 to your computer and use it in GitHub Desktop.

Select an option

Save jacoyutorius/0fbfd1b3cac749da91f6c20a84ea8bf1 to your computer and use it in GitHub Desktop.
aws-sdk-rekognition-client_sample
require "aws-sdk"
require "pp"
cred = Aws::Credentials.new("#{aws_access_key_id}", "#{aws_secret_access_key}")
rekognition = Aws::Rekognition::Client.new(credentials: cred, region: 'us-east-1')
ret = rekognition.detect_labels({
image: {
s3_object: {
bucket: "yutoogi.images",
name: "folder_1/IMG_5608.JPG"
},
},
max_labels: 123,
min_confidence: 60,
})
pp ret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment