This project converts any image into ASCII art and displays it visually using OpenCV.
Example 1:
| orignal | Coloured ASCII | Binary ASCII |
|---|---|---|
![]() |
![]() |
![]() |
| Image from Brooke Balentine |
Example 2:
| orignal | Coloured ASCII | Binary ASCII |
|---|---|---|
![]() |
![]() |
![]() |
| Image from Gian D |
- for colour ascii art : use colourImage(<image_array>, <quality_factor>)
- for binary ascii art : use monoChrome(<image_array>, <quality_factor>)
- Converts images to grayscale
- Resizes image to fit ASCII proportions
- Maps brightness to ASCII characters
- Renders ASCII art on a graphical window using OpenCV
- Adjust the fac value till you find a good value
- Python 3.x
- NumPy
- OpenCV (
cv2)
pip install numpy opencv-python




