This course will become read-only in the near future. Tell us at community.p2pu.org if that is a problem.

Cloning the PyBossa demo applications


Cloning the image classification demo application for PyBossa

PyBossa provides two demo applications that can be used as templates for other projects.

Flickr Person Finder shows how you can use the Flickr photo community to classify images of any type, while Urban Parks show how you can use web mapping tools for geo-coding tasks.

PyBossa embraces the idea of using external services like Flickr via APIs in order to simplify the development and deployment of new applications. For example, Flickr is one of the biggest Internet communities around photography so it is possible to find any type of subject within the archives.

Services like Flickr provide a very well documented API that can be used to refine searches within their data sets. Thus, looking for specific photos or tags is simple and easy.

Flickr Person Finder shows the most basic example that can be used with Flickr, which is getting the latest 20 uploaded photos to their service. The demo application uses a script to grab those photo links, and create in PyBossa 20 tasks where the users will answer a simple question: do you see a human in this photo?

As Flickr Person is getting the latest 20 published photos, some of them will have humans in it, and some of them will have dogs, cars, sunsets, etc. giving enough "randomnes" to show why people will be good at answering the question.

In both demo applications, PyBossa stores the Task structure as a JSON object. PyBossa uses JSON because it is very popular nowadays in web development and because within JavaScript you can use it directly very easily.

A PyBossa task is a free form task: the creator or owner of the tasks will be in charge in defining the fields that each task should have, as well as which answers is he expecting for every task. For example, for Flickr Person Finder the task is very simple: Answer the question: do you see a human in this photo? so the Task should include a link to a photo, and show the photo to the user so he can answer it.

As we want to learn how to create a PyBossa application, the goal of this task will be to clone or fork the Flickr Person Finder demo appllication, so you can work with it and modify it to create a new application for image classification. Thus, once you have forked the application to your Github account, post here the link so we can see the changes.

If you know GIT and GitHub you will be able to achieve this task, if you are not, do not worry, we are here to learn, check the Social Coding and Let's Git together courses in P2PU so you can learn how to clone or fork a project.

Task Discussion