This is the backend server for the Parcelbox project. The backend receives an image upload from the native Android app, forwards the image to the Google Cloud SDK for facial recognition and then sends an update to the Parcelbox using Pubnub.
Made with lots of love at propTech{hacks} 2017
- Clone this repository on your local device
- Make sure you have Python 3.3 (or newer) and pip installed
- Install the Google Cloud SDK for image recognition and set it up with your Google Account
- Install Google Cloud Python SDK:
sudo pip install --upgrade google-cloud
- Install Flask:
sudo pip install Flask
- Install Pubnub:
sudo pip install 'pubnub>=4.0.13'
- Run with:
export FLASK_APP=flask_api.py && flask run --host=0.0.0.0
- Google Cloud SDK for facial recognition
- Flask for an easy REST server
- Pubnub for real-time communication with the Parcelbox