MLH-Fellowship / class-photo

📷 Discord Bot that downloads, crops photos around everyone's face and creates a collage
MIT License
36 stars 8 forks source link

Class Photo

📷 Discord Bot that downloads and crops photos around everyone's face

Setup

virtualenv .venv
source .venv/bin/activate
pip install -r requirements.txt

Fill out .env with the fields in example.env.

Make sure you have a service account for using the Google Cloud Vision API. Instructions here.

Run

There's 3 stages:

  1. Download photos from Discord
  2. Crop them
  3. Make collage

For downloading only

python -m class_photo --discord

For cropping only

python -m class_photo --crop

For collage only

python -m class_photo --collage

For everything

python -m class_photo --all