An android application to analyze the type of waste by scanning its image.
Waste Analyzer is an android application build to analyse the type of waste by scanning its image.
- Dart Programming Language
- Flutter Framework
- AWS
- AWS Lambda
- AWS S3
- AWS API Gateway
- AWS Rekognition
To run this application firstly you have to setup the AWS environment that includes -
- AWS Lambda
- AWS API Gateway
- AWS S3
- IAM Roles
- AWS Rekognition
After setting up the AWS environment you just have to replace the API Key in the app by your API key.
Create an IAM Role. That will grant access to AWS S3 and AWS Rekognition.
- Open IAM from your AWS console.
- Select Roles in IAM.
- Click on Create Role Button.
- Select Lambda and click on Permission Button.
- Attach these Policies
- AmazonS3FullAccess
- AmazonRekognitionFullAccess
- Click on Tags button. You can add tag as per your choice and click on Review Button
- Give the role name (‘Waste Analyzer’) and write its description. Click on create role.
Just create a AWS S3 bucket with default permission.
Create a lambda function with latest python run time environment. And add the code given in lambda_function directory.
Create a Rest API with the post method. That triggers our Lambda Function when called.
After completing all the pre-requisite. Add your API link to the code and run the app.
flutter run
Shashikant Dwivedi - @thesdk1999 - shashikant@shashikantdwivedi.com