CrowdSourced Labeling 1 — Text to Image

To label our text-formed posts, we will use platform to offer a survey workflow. ‘Zooniverse’ is a popular platform for crowd-sourced image classification tasks in various scientific research.

This will be a non-profit task which relies on the public’s attention to Eating Disorders and willingness to voluntarily answer a series of related questions. A quick look of our classification interface:

classification workflow graphical interface on Zooniverse

To classify text data on this platform, I used the Image, ImageDraw, and ImageFont modules from PIL package in python.

By reformatting our post — manually insert a line ending every 11 word, and setting parameters for the image — text pixel position in an image, the background color in RGB, text font and size, and margin width of text box, the result of our ‘text-content’ images looks like this:

a text_to_image example

The code and results can be found and downloaded here:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: