Generate ASCII from images
Project description
Introduction
Here is my python source code for ASCII generator. With my code:
- Given input image, we could generate ASCII art stored under text format in different languages (.txt)
- Given input image, we could generate ASCII art stored under image formats in different languages (.png, .jpg, ...). In each format, there are 2 options: Black background and white characters, or vice versa
- Given input video, we could generate ASCII art stored under video formats in different languages (.avi, .mp4, ...)
- Video/image outputs could be in grayscale or color format. It is totally up to you
Multiple Language Conversion
We could generate ASCII art with different alphabets (english, german, french, korean, chinese, japanese, ...). Below are example output:
English
Japanese (Dragon Ball)
German
Korean (Dae Jang-geum)
French
Chinese (Actress)
Spanish
Russian
Video to video
By running the sript video2video_color.py or video2video.py with different values for background and mode, we will have different outputs, for example:
Colored complex-character ASCII output
White-background simple-character ASCII output
Image to text
By running the sript img2txt.py with different values for mode, we will have following outputs:
Input image
Simple character ASCII output
Complex character ASCII output
Image to image
By running the sript img2img_color.py or img2img.py with different values for background and mode, we will have following outputs:
Input image
Colored complex-character ASCII output
White-background simple-character ASCII output
Black-background simple-character ASCII output
White-background complex-character ASCII output
Black-background complex-character ASCII output
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file genascii-0.0.1.tar.gz.
File metadata
- Download URL: genascii-0.0.1.tar.gz
- Upload date:
- Size: 8.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5cb17633dcd8d7d5de498aa7e715596c0ddbf50eb49807b6530f31b0964f187f
|
|
| MD5 |
2d4c2bdc2340cf037404294bea92cb4d
|
|
| BLAKE2b-256 |
31ff22d4b2dd1594864a7e5633377924d88ad5a5d489c47c82d498e5dcde2b40
|
File details
Details for the file genascii-0.0.1-py3-none-any.whl.
File metadata
- Download URL: genascii-0.0.1-py3-none-any.whl
- Upload date:
- Size: 12.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a43411d00e2f6aad4c4d57a13d41ee436460e0b2379913629cb22dde25b19848
|
|
| MD5 |
084a8c9266cc457228cadd3b77b82374
|
|
| BLAKE2b-256 |
73c5fb94f37fc769282f50657a8ef1d798e53a988d90c191a55e19592bb5c366
|