SortBot
This repository only contains the code for the prototype of the image recognition part of SortBot, where the aim is to categorise images of recyclables commonly found on the Imperial College Campus into paper
, plastic
, can
or uncategorised
.
Development
Assuming that you have a Google Cloud Developer account with proper authorizations.
-
Install the Google Cloud Vision library by running the following command:
pip install --upgrade google-cloud-vision
-
Install the requirements for the project by running
pip install -r requirements.txt
-
Run the following code in the Google Cloud SDK:
gcloud beta auth application-default login
-
Run the script
sortbot.py
in the Google Cloud SDK. Images used in testing are to be stored in theresources\
folder and named asinputx.jpg
, wherex
is an integer and the answer required by the script when prompted for the image,