Skip to content

MicroPasts/photomasking

Repository files navigation

PyBossa photo masking application

DOI

This application has three files:

  • createTasks.py: for creating the application in PyBossa, and fill it with some tasks.
  • template.html: the view for every task and deal with the data of the answers.
  • tutorial.html: a simple tutorial for the volunteers.

alt screenshot

Testing the application

You need to install the pybossa-client first (use a virtualenv):

    $ pip install -r requirements.txt
    $ cp s3_settings.py.tmpl s3_settings.py

Then, you can follow the next steps:

  • Edit the s3_settings.py file with your S3 credentials
  • Create an account in PyBossa
  • Copy under your account profile your API-KEY
  • Run python createTasks.py -u http://crowdcrafting.org -k API-KEY
  • Open with your browser the Applications section and choose the FlickrPerson app. This will open the presenter for this demo application.

Documentation

We recommend that you read the section: Build with PyBossa and follow the step by step tutorial.

Adding pictures from a folder in an S3 bucket

This application supports public S3 buckets. Adding pictures/photos from a folder in a S3 bucket is as simple as running the following command:

    $ python createTasks.py -s server -k api-key -x -b "folder/in/s3/"

If the application had already some tasks, the previous command will add pictures in the S3 folder to the app, so you can easily add more tasks when they are completed in your PyBossa application.

By default this application only supports PNG and JPG pictures, but you can add more extensions if you want by editing the s3_settings.py

NOTE: This application uses the pybossa-client in order to simplify the development of the application and its usage. Check the documentation.

LICENSE

Please, see the COPYING file.