🎨 simple-image2ascii - Convert Images & Videos to ASCII Art
simple-image2ascii is a Python library that transforms images and videos into ASCII art using NumPy and OpenCV.
🚀 Installation
Install the library using pip:
pip install simple-image2ascii
🔧 Usage
📷 Convert Image to ASCII
import cv2
import simple_image2ascii
# Load an image
image = cv2.imread("example.jpg")
# Create an ASCIIEngine instance
engine = simple_image2ascii.ASCIIEngine()
# Convert to ASCII
ascii_art = engine.get_ascii(image)
# Print the result
print(ascii_art)
🎥 Convert Video to ASCII (Using OpenCV)
import cv2
import simple_image2ascii
cap = cv2.VideoCapture("video.mp4")
engine = simple_image2ascii.ASCIIEngine()
while cap.isOpened():
ret, frame = cap.read()
if not ret:
break
ascii_frame = engine.get_ascii(frame)
print(ascii_frame)
cap.release()
🛠 Features
✅ Grayscale conversion ✅ Adaptive ASCII mapping ✅ 8×8 pixel block processing ✅ Supports image resizing ✅ Works with both images and videos
📦 Dependencies
numpyopencv-python
To install dependencies manually:
pip install numpy opencv-python
📜 License
This project is licensed under the MIT License.
✉ Contact
🐙 GitHub: AlekseyScorpi
Metadata
Release files for simple-image2ascii 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| simple_image2ascii-0.0.2.tar.gz | 4.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| simple_image2ascii-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 9.0 kB
Release files / simple_image2ascii-0.0.2.tar.gz
| Download URL | simple_image2ascii-0.0.2.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ebc728e4ef75dd1cd88aec0bdb3c9d4e4016a985fc3863fef199db60bc882bf8
|
|
BLAKE2b-256 checksum How to use checksums |
8b01445fe1d36e7c493994588b9e563470a9916e3f5d351d878605c2ddccf528
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.
Transparency logRelease files / simple_image2ascii-0.0.2-py3-none-any.whl
| Download URL | simple_image2ascii-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a94305c475804340ace5a697afbfcdecedd3f2ff172fca8c1112b37273a4f310
|
|
BLAKE2b-256 checksum How to use checksums |
24ed410e5c611ce3a370a0e00e77d03afe4c63455e08f3e36d2f5d7b0b9c71cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.12.9
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 31, 2025.
Transparency log