NaNoGenMo / 2021

National Novel Generation Month, 2021 edition.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Strivriven

nervousdata opened this issue · comments

This is my first time taking part in NaNoGenMo. I’m handling pictures of text here and estimated the number of words by doing OCR on the output. The ‘words’ detected are often quite long.

Strivriven

Diffusing a sentence. Let it expand and propagate in a somehow ‘electrical’ way.

Preview:
strivriven_p3_resize

  • ImageMagick 7 and Bash/Shell scripting.
  • The program crops a portion of an image of a sentence ~60.000 times. The size of each piece is 1/12 of the sentence.
  • After every cut the position where the ‘punch’ is put, moves left or right (on x-axis). The movement follows a sine wave. There is some frequency modulation going on.
  • Placing the snippets: 10 per row, 30 rows per page. The order follows the time of cutting.
  • Input: A sentence taken from the introduction to Heinrich Hertz’ book on Electric Waves from 1893.

To better visualize what is going on I took a gradient (white->black, left->right) as a sample. The more black the more on the right the punch is positioned.
strivriven_grad_resize

The book (PDF, 202 pages, 37 MB).
The codeThe repository (Gitlab)

Really cool look and texture on the final result! Congrats.
I'm curious what would happen if the white part of the snippets was transparent, allowing for more visible overlap, and if the text could oscillate in more directions.