- Add your own png or jpg files to images/
- Run
python3 basic_model.py "brain.jpg"
(modify filepath: brain.jpg) - View output txt files written to
image_output/
- The first argument is the filepath within
images/
of the image you want to convert. - The second argument (optional) sets the width of the output text/image to 200.
- The third argument (optional) multiplies the height/width ratio by 2.
python3 basic_model.py "brain.jpg" 200 2
- Set output width to 200 and multiply height/width ratio by 2
- Numpy
- Pillow
- Fonts are stored in json format in the
/fonts/
dir. - Select a font.json file in the
text_to_text.py
script. - Run the script with or without a parameter. The program will ask you for text input.
python .\text_to_text.py TYPESOMETHINGHERE
python .\text_to_text.py
- Output is written to a txt file in
/text_output/
- Filename is determined by first few letters of input.
___ _______ ____ ____ . __ _______ . __ ____
// ) ) // / / // | | // ) ) /| //| | // / / /| //| | // ) )
//___/ / //____ //__| | // / / //| // | | //____ //| // | | // / /
/ ___ ( / ____ / ___ | // / / // | // | | / ____ // | // | | // / /
// | | // // | | // / / // | // | | // ___ // | // | | // / /
// | | //____/ / // | |//____/ / // |// | | //____/ / /__/ // |// | | //____/ /
_|_|_| _|_|_|_| _|_| _|_|_| _| _| _|_|_|_| _| _| _|_|_|
_| _| _| _| _| _| _| _|_| _|_| _| _|_| _|_| _| _|
_|_|_| _|_|_| _|_|_|_| _| _| _| _| _| _|_|_| _| _| _| _| _|
_| _| _| _| _| _| _| _| _| _| _| _| _| _|
_| _| _|_|_|_| _| _| _|_|_| _| _| _|_|_|_| _| _| _| _|_|_|
________ ___ _ __ ________ ________ ___ _ __ ________
/__ ___/ // ) ) \\ / / /_______/ /__ ___/ // ) ) // / / /__ ___/
/ / //___/ / \\ / / / / / / // / / // / / / /
/ / / ___ ( \\/ / / / / / // / / // / / / /
/ / // | | / / __/ /___ / / // / / // / / / /
/ / // | | / / /_______/ / / ((___/ / ((__/ / / /
,o888888o. 8 8888 ,o888888o. b. 8 8 8888888888 . . 8 8888888888
8888 `88. 8 8888 . 8888 `88. 888o. 8 8 8888 ,8. ,8. 8 8888
,8 8888 `8. 8 8888 ,8 8888 `8b Y88888o. 8 8 8888 ,888. ,888. 8 8888
88 8888 8 8888 88 8888 `8b .`Y888888o. 8 8 8888 .`8888. .`8888. 8 8888
88 8888 8 8888 88 8888 88 8o. `Y888888o. 8 8 8888 ,8.`8888. ,8.`8888. 8 8888
88 8888 8 8888 88 8888 88 8`Y8o. `Y88888o8 8 888888888888 ,8'8.`8888,8^8.`8888. 8 888888888888
88 8888 8 8888 88 8888 ,8P 8 `Y8o. `Y8888 8 8888 ,8' `8.`8888' `8.`8888. 8 8888
`8 8888 .8' 8 8888 `8 8888 ,8P 8 `Y8o. `Y8 8 8888 ,8' `8.`88' `8.`8888. 8 8888
8888 ,88' 8 8888 ` 8888 ,88' 8 `Y8o.` 8 8888 ,8' `8.`' `8.`8888. 8 8888
`8888888P' 8 888888888888 `8888888P' 8 `Yo 8 888888888888 ,8' `8 `8.`8888. 8 888888888888
** ***** ** * *** ***** ** ***** ** ***** ** * ***
***** ****** *** * **** * ****** *** ****** **** * ****** **** * * **** *
* *** ** * * ** * * **** ** * * *** ** * * **** ** * * *** * * ****
*** * * * ** * ** ** * * * *** * * * ** * * * * * ** **
* ** * * * * *** * * *** * * * * * ***
* ** ** ** * ** ** ** ** ** ** ** ** ** ** **
* ** ** ** * ** ** ** ** ** ** ** ** ** ** ** ***
* ** ** *** ** ** ** ** ** ** ****** ** ****** ** ** **** *
* ** ** ** *** ** ** ** ** ** ** ***** ** ***** ** ** * ****
********* ** ** *** ** ** ** ** ** ** ** ** ** ** *** **
* ** * ** ** ** ** * ** ** * ** * ** ** ** *
* ** * ** ** * * * * * * ** * *
***** ** **** *** *** * ***** * **** * ***** *** *
* **** ** * * ******** ******* * ********* * *********** * ***** *******
* ** ** * **** *** * **** * ****** * *** ***
* * * * *
** ** ** **