Last active
November 10, 2017 04:22
-
-
Save jacoyutorius/0fbfd1b3cac749da91f6c20a84ea8bf1 to your computer and use it in GitHub Desktop.
aws-sdk-rekognition-client_sample
This file contains hidden or 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
| 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