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.
- An S3 bucket
- 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.
- IAM permissions should allow:
- Put/Get/List objects within the S3 bucket.
- Access to Rekognition functions
- A server with PHP 5.6+ and ImageMagick
- Clone the repository to a local directory
git clone git@github.com:DataShades/rekognition.git
- Rename 'include/config.sample.php' to 'include/config.php'
- Update the variables as required.
- Ensure that the PHP processes on your server can write to the 'tmp' directory.
- Make sure ImageMagick is installed and the 'convert' binary is accessible by PHP.