Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An image is worth a thousand words #69

Open
StreetWanderer opened this issue Nov 6, 2014 · 7 comments
Open

An image is worth a thousand words #69

StreetWanderer opened this issue Nov 6, 2014 · 7 comments

Comments

@StreetWanderer
Copy link

Or at least that's what they say.
Let see where I can go with converting an image to a novel.

@StreetWanderer
Copy link
Author

Just a funny snippet of a bogus result I got :
"Nays nays nays."
(Note that I'm working with a Nyan Cat image for now)

Does any of you have a Python-friendly spellchecker ? I'm using PyEnchant but it feel kind of dumb.

@StreetWanderer
Copy link
Author

Well.
I'm 1 day late for posting but here is all I got :
The Novel

The Code

@hugovk
Copy link
Collaborator

hugovk commented Dec 2, 2014

Aaa maya. Aaa maya say nay. Nay nada.

Nay a maya nay a nay nays nays. Yancy.

@MichaelPaulukonis
Copy link

Could you explain your method a bit more?

@StreetWanderer
Copy link
Author

Yes! Sorry I pushed all of that in the middle of a rush.

Basically the script takes an image file, extract CMYK color for each pixel and convert that into words using a dictionary.

I also updated the Readme with more details.

@MichaelPaulukonis
Copy link

Okay, I get it know. It was making me think of strung-out DNA words.

I like the end result. This is an unusual sourcing strategy. Not one that can be well-adapted for coherence, but that's not a concern.

Although I wonder if it would be possible to steganographically encode an image that this algo could then turn into a coherent text.....

@StreetWanderer
Copy link
Author

Thinking about your steganography idea I did a quick and dirty thing that take a text file and create an image file with it.
I also added the function to get the text back from the image.
https://github.com/StreetWanderer/LazyStegano

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants