NaNoGenMo 2016 entry #2
Python
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
images Title capture Nov 22, 2016
.gitignore Initial code Nov 6, 2016
README.md README updates Nov 22, 2016
UNLICENSE Create UNLICENSE Nov 26, 2016
app.py Added samples Nov 22, 2016
requirements.txt Initial code Nov 6, 2016

README.md

█ Blackout █

For NaNoGenMo 2016.

Blackout generates pages of text from book or newspaper scans in the style of Newspaper Blackout Poetry, popularized by Austin Kleon (related to work like A Humument by Tom Phillips).

Blackout does the following:

  1. Take, as input, an image of text, from a newspaper or book.
  2. Run OCR against the image, identifying the words and their bounding boxes.
  3. Feed the extracted text into a natural language parser, categorizing each part of speech.
  4. Given one of many randomly selected Tracery grammars, select words from the current page that match the parts of speech of that grammar.
  5. Draw around those words and "scribble" out all other text on the page image.
  6. Output the final page as a new image.

Pen width, line length, line direction, number of strokes, and stroke opacity are all randomly fuzzed. The pen color is always black, except in rare cases it is blood red.

Blackout has produced one creative work:

"The Days Left Forebodings and Water"

The source material is A Vindication of the Rights of Women by Mary Wollstonecraft (1792).

Read The Days Left Forebodings and Water. 45 pages long, consists of entries that were generated randomly, but hand-picked and ordered on November 9, 2016.

(The full NaNoGenMo entry of ~50,000 words is a 9.3GB PDF of nearly 10,000 pages. You almost certainly do not want to download it.)