CameronDugan.com

Home - Blog - Mirror - Projects

Python Dream Bot

Stats -> The average person can read this 272 word page in 1 minute.


Intentionally Bad Image Manipulation

Python Dream Bot is almost complete. What is the dream bot? I’m glad you asked!

original1

dream1

The Python Dream Bot (patent not pending), is an intentionally bad guessing algorithm based off of the logic used for my jekyll post generator (See the costs bot post).

In short it works like this:

  1. It resizes the original picture to user specification.
  2. It stares at a picture and remember what pixels are near other pixels. original3
  3. It creates a copy of the original picture, but removes large sections of the picture. intermediate3
  4. It looks at whatever pixels exist on the copy and fill in the missing pixels.

original3

dream3

The previous image was exaggerated to better show the process:

original2

dream2