In this repository The 'main.py' file receives an image as input and process it to produce an ascii-text
Below is a demo in which the main.py file receives an image, OutputTextSize, outputTextfilePath as commandline argument which produces the ascii-art in output.txt as shown |
---|
just like demo 1 here the main.py file receives another image, outputTextSize, outputTextfilePath as commandline argument which produces the ascii-art in output.txt as shown |
---|
- Download the Project files
- Extract the downloaded zip file
- go to the extracted directory
After setup go to the base firectory of main.py
run that python file through terminal in that directory
python main.py
To run a image file run you can run below command
python main.py <relative/image/path> <output-TextSize> <relative/OutputText/filepath>
for example : python main.py "Imgs/anyaImage.png" 40 "output.txt"
After running the "main.py" you will get the output ascii-art at <relative/OutputText/filepath> or at "output.txt"
you may need to zom out the outputText file inorder to get the image
- You can run the "main.py" without passing any argument at runtime
- just change the top contents inside "main.py" file and run it