Sha256: 30fe39302d78aafa24071ecd41b3af38bda7ea8d52b4fadc54200c7c051e69c0
Contents?: true
Size: 464 Bytes
Versions: 1
Compression:
Stored size: 464 Bytes
Contents
require 'aws-sdk' require 'pp' class FaceCropper class AwsRekognitionFaceDetector def initialize(bucket:, image_key:) @bucket = bucket @imaget_key = image_key end def dcetect! rekognition = Aws::Rekognition::Client.new(region: 'us-east-1') rekognition.detect_faces( image: { s3_object: { bucket: @from_bucket, name: @image_key } } ) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
face_cropper-0.2.0 | lib/face_cropper/aws_rekognition_face_detector.rb |