Skip to main content

Convert image to ascii art

Project description


Let's make ascii art


pip install opencv-python
pip install numpy


pip install makeasciiart
import makeasciiart

import numpy as np
import cv2

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

Example 1

## Display
filename = 'test.jfif'
origin, newimg = makeasciiart.img2ascii(filename)
if type(newimg) == type(None):
cv2.imshow("origin", origin)
cv2.imshow("res", newimg)

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Built Distribution

makeasciiart-0.2-py3-none-any.whl (4.9 kB view hashes)

Uploaded py3

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page