Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/MacLeek/ascii-art
work-in-progress structure-based ascii art
https://github.com/MacLeek/ascii-art
Last synced: 3 months ago
JSON representation
work-in-progress structure-based ascii art
- Host: GitHub
- URL: https://github.com/MacLeek/ascii-art
- Owner: MacLeek
- License: mit
- Created: 2016-12-14T07:59:36.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-03-06T03:14:28.000Z (over 7 years ago)
- Last Synced: 2024-07-16T14:08:46.311Z (4 months ago)
- Language: Python
- Homepage:
- Size: 1.14 MB
- Stars: 31
- Watchers: 3
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: readme.md
- License: LICENSE
Awesome Lists containing this project
README
# ASCII-ART
Turn a simple image to text with ascii characters!
Currently the code works a little, I'm still working on it!## Usage
Install the requirements:
```
pip install numpy scipy scikit-image
```
Compile with cython:
```
python setup.py build_ext --i
```
Note: add -I /usr/local/lib/python2.7/site-packages/numpy/core/include(your numpy include path) if needed.In python:
```python
import ascii
ascii.image_to_ascii('monk_1.bmp', 0.3, Rw=48)
```## Results:
![](https://raw.githubusercontent.com/MacLeek/ascii-art/master/monk_1.bmp)
![](https://raw.githubusercontent.com/MacLeek/ascii-art/master/1.jpeg)
![](https://raw.githubusercontent.com/MacLeek/ascii-art/master/queen.gif)
![](https://raw.githubusercontent.com/MacLeek/ascii-art/master/2.jpeg)## Reference
[Structure-based ASCII Art](http://www.cse.cuhk.edu.hk/~ttwong/papers/asciiart/asciiart.html)