Metadata-Version: 2.1
Name: makeasciiart
Version: 0.1
Summary: Convert image to ascii art
Home-page: https://github.com/sss1410002/asciiart
Author: SSS
Author-email: sss1410002@gmail.com
License: MIT
Keywords: opencv,ascii,ascii art
Platform: UNKNOWN
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.2
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Requires-Python: >=3
Description-Content-Type: text/markdown
Requires-Dist: opencv-python
Requires-Dist: numpy

# asciiart
Convert image to ascii art

## Dependency
```
pip install opencv-python
pip install numpy
```

## Usage
```
pip install img2ascii
```

```python
import img2ascii as i2a

import numpy as np
import cv2
```

## img2ascii.py
```python
def img2ascii(filename, color_mode=True, fontsize=5):
return img,newimg # img : original image, newimg : ascii art image
```

## Example 1
```python
filename = 'test.jfif'
origin, newimg = i2a.img2ascii(filename)
if type(newimg) == type(None):
    exit()
cv2.imshow("origin", origin)
cv2.imshow("res", newimg)
cv2.waitKey()
cv2.destroyAllWindows()
```


