Skip to content

Tarnasa/ascii

Folders and files

NameName
Last commit message
Last commit date

Latest commit

8ef1a03 · Dec 10, 2016

History

26 Commits
Dec 5, 2016
Dec 4, 2016
Dec 4, 2016
Dec 4, 2016
Dec 5, 2016
Dec 9, 2016
Dec 10, 2016
Dec 10, 2016
Dec 4, 2016
Dec 4, 2016
Dec 5, 2016
Dec 10, 2016
Dec 8, 2016
Dec 10, 2016
Dec 4, 2016
Dec 10, 2016
Dec 9, 2016

Repository files navigation

Module Requirements

This project was developed in python2 and requires the following modules:

  • scipy
  • numpy
  • scikit-image
  • scikit-learn

These can be installed using pip install <module> for each respective module.

File Dependencies

In order to run, a set of rendered ASCII characters in the desired font must be present in the out/ directory. These can be generated in different fonts using text.py, and these are used as the training data for the nearest-neighbors and single-sample SVM approaches. Additionally, for the regular SVM to run, the training.dat file must be present in the base directory. This can be found in training.zip, or generated using generate_data.py.

To Run

python convert.py <image name> will convert the image file provided as a command line argument into ASCII art. The output will be directly displayed to the console along with timings using each of our three algorithms.

About

Line-art to ascii-art converter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published