All Projects → zhoudaxia233 → PyAscii

zhoudaxia233 / PyAscii

Licence: MIT License
A tool for converting images or videos or webcam feed to ASCII

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to PyAscii

pdf-zip-nes-polyglot
PDF/ZIP/NES polyglot file generator (PoC||GTFO 0x14-style)
Stars: ✭ 19 (+18.75%)
Mutual labels:  ascii-art
puddle.js
An ASCII/Node based fluid simulation library.
Stars: ✭ 102 (+537.5%)
Mutual labels:  ascii-art
tdraw
Draw ASCII art in terminal
Stars: ✭ 121 (+656.25%)
Mutual labels:  ascii-art
txtpic
Generate Unicode art from images
Stars: ✭ 22 (+37.5%)
Mutual labels:  ascii-art
ascii-art-action
GitHub Action for printing out ASCII art text
Stars: ✭ 15 (-6.25%)
Mutual labels:  ascii-art
aart
Convert images and video to ascii art!
Stars: ✭ 18 (+12.5%)
Mutual labels:  ascii-art
asm16 projects
My small projects writen in 16 bit asm (NOTE: those are my practice projects that I wrote when I was 15, I give no warranty for this code!)
Stars: ✭ 20 (+25%)
Mutual labels:  ascii-art
asciisciit
ASCII Art, Video, and Plotting Toolbox
Stars: ✭ 71 (+343.75%)
Mutual labels:  ascii-art
owari
The End Generator
Stars: ✭ 23 (+43.75%)
Mutual labels:  ascii-art
chess
Chess (game)(♟) built in C# and ASCII art.
Stars: ✭ 20 (+25%)
Mutual labels:  ascii-art
ascii-art
Given a image.bmp and a M x N group of pixels, generate a text that represents the image.bmp in ascii characters
Stars: ✭ 16 (+0%)
Mutual labels:  ascii-art
venn.nvim
Draw ASCII diagrams in Neovim
Stars: ✭ 539 (+3268.75%)
Mutual labels:  ascii-art
durdraw
Animated Unicode, ANSI and ASCII Art Editor for Linux/Unix/macOS
Stars: ✭ 55 (+243.75%)
Mutual labels:  ascii-art
Gamut
Create images using text as a mask.
Stars: ✭ 21 (+31.25%)
Mutual labels:  ascii-art
xibalba
A Mayan roguelike
Stars: ✭ 50 (+212.5%)
Mutual labels:  ascii-art
wechit
WeChat in Terminal (微信终端版)
Stars: ✭ 74 (+362.5%)
Mutual labels:  ascii-art
How-to-use-Readline-in-NodeJS
⌨️ How to manipulate the terminal window using NodeJS
Stars: ✭ 20 (+25%)
Mutual labels:  ascii-art
pi-asciicam
A live stream ASCII webcam server for Raspberry Pis using websockets, written in go.
Stars: ✭ 18 (+12.5%)
Mutual labels:  ascii-art
ascii-image
Web Component that displays an image as ASCII art
Stars: ✭ 15 (-6.25%)
Mutual labels:  ascii-art
limnoria-plugins
Limnoria plugins I wrote or forked.
Stars: ✭ 35 (+118.75%)
Mutual labels:  ascii-art

PyAscii

Some Amazing examples

1. A Beautiful Girl drawed by me
2. Famous Yaoming's Face
3. My Avatar


To do list

  • Asciify an image into txt & html
  • Asciify a video
  • Improve ascii video quality (by thresholding???)
  • Asciify webcam feed

Requirements

  1. Python >= 3.6
  2. opencv-python >= 4.0.0 (It will automatically be installed when you install pyascii)

Installation

Install pyascii:

pip install pyascii

Usage

1. Asciify an image

pyascii avatar.png

You can use -s or --scaling_ratio to specify the scaling ratio of the output with respect to the input image. The default value is 0.5.

pyascii avatar.png -s 0.1

You can use -o or --output_format to specify the format of the output file.

0 represents for .txt format
1 represents for .html format
2 represents for both .txt format & .html format

The default value is 1.

pyascii avatar.png -o 0

You can use -lh or --line_height to specify the height of each line of ascii characters in the output file. The default value is 0.65.

Note: It only works for html format output.

pyascii avatar.png -lh 0.65

You can use -fs or --font_size to specify the font size of ascii characters in the output file. The default value is 5.

Note: It only works for html format output.

pyascii avatar.png -fs 8

2. Asciify a video

pyascii demo.mp4

You can use -s or --scaling_ratio to specify the scaling ratio of the output with respect to the input. The default value is 0.5.

pyascii demo.mp4 -s 0.1

3. Asciify your webcam feed

pyascii webcam

You can use -s or --scaling_ratio to specify the scaling ratio of the output with respect to the input. The default value is 0.5.

pyascii webcam -s 0.1
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].