Skip to content

Omnibus-ai/thousand-words

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Thousand Words

Use as a Python module to turn Text into image pixels.

Usage

Create image pixels from text:

from twords import Twords
tw = Twords()
# encode text to pixels
img=tw.token_words(input_text) #input text string
# returns PIL image

Retrieve text from encoded image:

from twords import Twords
tw = Twords()
# decode text from pixels
txt=tw.decode_im(img) #input image path
# returns formatted text string

About

Turn text into pixels.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages