Coder Social home page Coder Social logo

aart's Introduction

Aart

Love ascii-art? Me too! This utility converts images and video to beautiful and colorful ascii art. No explanations, just look at the example. I used default 16-color palette from cmd.exe

Image Image

It's simple but beautiful. You can convert even videofiles. This is sample video converted with custom palette (not the best one).

Here is command-line syntax

Usage: aart.exe [params]

        -?, -h, --help, --usage (value:true)
                print this message
        --charmap, --chr (value:charmap.png)
                charmap
        --cie94 (value:true)
                use more precise but more expensive algorithm
        --clr, --colormap (value:colormap.png)
                colormap
        --colors (value:16)
                number of colors in palette mode
        -i
                input file
        --mode (value:image)
                render mode [image,video,ansi,palette]
        -o
                output file
        --quantization (value:dominant)
                color quantization algorithm [kmean,dominant]
        --use_cuda (value:false)
                use cuda backend if possible

Aart includes sample palette and mediafiles that were used for testing.

Recommendations and known problems

When working with videofiles, there can be problems with video encoders/decoders. Aart uses OpenCV as a backend. In my machine OpenCV writes some random codec-related errors. Nevertheless, conversion is successful.

Build

Aart depends on OpenCV. You can provide headers and .libs by yourself or use vcpkg. If using vcpkg, then type the following commad: vcpkg install opencv4[contrib,cuda,dnn,ffmpeg,jpeg,opengl,png,tiff,webp]:x64-windows

Aart works currently on Windows only. But you can easily port it to any platform that supports OpenCV - just create CMake project or build VS solution with linux as target OS.

aart's People

Contributors

joshuajakowlew 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.