Skip to content
Simple code to use the AWS Rekognition service
PHP
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Aws
GuzzleHttp
JmesPath
Psr/Http/Message
include
tmp
LICENSE.md First commit Dec 5, 2016
README.md README formatting addition. Nov 26, 2017
aws-autoloader.php
index.php Adding code to include labels in the processed image for easier sharing Dec 8, 2016
upload-exec.php
upload-form.php

README.md

AWS Rekognition Test

This repository provides a simple example to call the AWS Rekognition service and describe the labels within an image you upload.

The scripts utilise AWS Rekognition and S3, most can be done within the free tier.

What you'll need

  1. An S3 bucket
  2. An instance with IAM permissions:
    • Either via an IAM role attached to the instance (the simplest option), or;
    • Access/Secret keys in environment variables or saved within an AWS credentials file in your HOME directory
    • For more information, see the PHP SDK documentation.
  3. IAM permissions should allow:
    • Put/Get/List objects within the S3 bucket.
    • Access to Rekognition functions
  4. A server with PHP 5.6+ and ImageMagick

How to use

  1. Clone the repository to a local directory
    • git clone git@github.com:DataShades/rekognition.git
  2. Rename 'include/config.sample.php' to 'include/config.php'
  3. Update the variables as required.
  4. Ensure that the PHP processes on your server can write to the 'tmp' directory.
  5. Make sure ImageMagick is installed and the 'convert' binary is accessible by PHP.
You can’t perform that action at this time.