项目作者: ZENALC

项目描述 :
Project that coverts images to ASCII text
高级语言: Python
项目地址: git://github.com/ZENALC/ascii-art.git
创建时间: 2020-05-19T01:04:47Z
项目社区:https://github.com/ZENALC/ascii-art

开源协议:MIT License

下载


Python program that converts an image file into its equivalent ASCII text file.

Installation

pip install -r requirements.txt

Usage

To run, use: python run.py [path/to/image]

Optional Arguments

To get a list of all optional arguments: python run.py -h \
To copy generated ASCII text to clipboard: python run.py [path/to/image] --copy \
To print generated ASCII text: python run.py [path/to/image] --print [optional_color] \
To write generated ASCII text to a text file: python run.py [path/to/image] --write [optional_filename] \
To change algorithm used to generate ASCII text: python run.py [path/to/image] --choice [choice_name] \
To invert generated ASCII text python run.py [path/to/image] --inverted \
To change height of generated ASCII text python run.py [path/to/image] --height HEIGHT \
To change width of generated ASCII text python run.py [path/to/image] --width WIDTH

Example