Git Product home page Git Product logo

asciiart's Introduction

AsciiART

Converts an image to a string ASCII string image, or displays the screen as a string image in real time.

Install

Install packages

sudo apt-get install python3-tk
sudo pip3 install -r requirements.txt

Usage

Usage of Ascii art. You can check with python main.py --help.

usage: AsciiART [-h] [--font-path FONT_PATH] [--font-size FONT_SIZE] [--range-start RANGE_START] [--range-end RANGE_END] [--epochs EPOCHS] [--input INPUT] [--output OUTPUT] [--loutput LOUTPUT] [--video-input VIDEO_INPUT] [--video-output VIDEO_OUTPUT] [--end-range END_RANGE]

Ascii Art generator

options:
  -h, --help            show this help message and exit
  --font-path FONT_PATH
  --font-size FONT_SIZE
  --range-start RANGE_START
  --range-end RANGE_END
  --epochs EPOCHS
  --input INPUT
  --output OUTPUT
  --loutput LOUTPUT
  --video-input VIDEO_INPUT
  --video-output VIDEO_OUTPUT
  --end-range END_RANGE
option description
font path font file path
font size font size
range start ascii code range start
range end ascii code range end
epochs learning epochs
input image input file path
output image output path
loutput gray image output path
video input video input file path
video output video output file path
end range video ending percentage range

Convert image to string image

Convert the example.png file to result.png file

python3 main.py --input=example.png --output=result.png

Convert video to string video

Convert the badApple.mp4 file to result.mp4 file

python3 main.py --video-input=badApple.mp4 --video-output=result.mp4 --end-range=10

Show string screen

Convert the screen in real time.

python3 main.py

Example

result.png result.gif

asciiart's People

Contributors

smiilliin avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.