Giter Club home page Giter Club logo

photocorner's Introduction

How it works

  1. Create a folder in your Google Drive and create a sharing link with edit permissions.
  2. Share this link with people on the event (e.g. print a QR code)
  3. Everyone can take a photo on their own phone and upload it to the shared folder.
  4. The script downloads photos from the shared folder and shows them in a slideshow in random order.
  5. It keeps checking the folder and when a new picture is uploaded to the shared folder, it's downloaded locally and shown for 20 seconds. Then the slideshow continues.

Using Google Forms

Uploading photos directly to the shared Google Drive folder has the following drawbacks:

  • By default, uploading to Google Drive may be restricted to WiFi connection. When people have just mobile internet, they have to force the upload.
  • Anyone can remove any photo in the shared folder.

You can create a Google Form with just a single "File upload" question. You can restrict the file type to "Images". There's a "View folder" link in the form editor which redirects you to the Google Drive folder which id you need to set to the folder_id variable in the photo_corner.py script.

This way, users can only upload their photos and it works well also on a mobile internet.

Setup

  1. Install python libs: pip install google-api-python-client google-auth-httplib2 google-auth-oauthlib pillow schedule
  2. Edit the script and change the folder_id = 'YOUR_GOOGLE_DRIVE_FOLDER_ID'
  3. Log into your Google Cloud console, create a service with OAuth and download the credentials json into credentials.json

photocorner's People

Contributors

michalfapso avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.