Skip to content

Instantly share code, notes, and snippets.

@joetannenbaum
Last active June 7, 2017 01:28
Show Gist options
  • Save joetannenbaum/6a13375733506b00a8f38e4d5dd7ce39 to your computer and use it in GitHub Desktop.
Save joetannenbaum/6a13375733506b00a8f38e4d5dd7ce39 to your computer and use it in GitHub Desktop.
<?php
use Aws\Rekognition\RekognitionClient;
$rekognition = new RekognitionClient([
'version' => 'latest',
'region' => 'AWS_REGION',
]);
$params = [
'Attributes' => ['DEFAULT'],
'Image' => [
'S3Object' => [
'Bucket' => 'S3_BUCKET',
'Name' => 'OBJECT_KEY',
],
],
];
$result = $rekognition->detectFaces($params);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment