semvec/pypi-packages huggingface dataset:
makeasciiart 0.2
Convert image to ascii art
License: MIT
Requires Python: >=3
Keywords: opencv,ascii,ascii art

# makeasciiart
Let's make ascii art

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

## Usage
```
pip install makeasciiart
```

```python
import makeasciiart

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
## Display
filename = 'test.jfif'
origin, newimg = makeasciiart.img2ascii(filename)
if type(newimg) == type(None):
    exit()
cv2.imshow("origin", origin)
cv2.imshow("res", newimg)
cv2.waitKey()
cv2.destroyAllWindows()
```