Giter VIP home page Giter VIP logo

termcolor's Introduction

TermColor

Build Status Codacy Badge License

TermColor-preview

YouTube link

About

Effortlessly generate color-schemes for terminal emulators by a drop of a picture, powered by modern C++17, Qt5 framework, and OpenCV library. Notable features:

  • Uses the K-means clustering algorithm to accurately identify dominant colors in an image
  • Takes mere seconds for a color-scheme to appear in the terminal emulator

Supported terminal emulators

  • Konsole (KDE)
  • Xfce4 Terminal (Xfce4)
  • LXTerminal (LXDE)
  • JSON (save the color-scheme to a file)

Status

Dependencies

  • OpenCV >= 3.2.0 (recommended: 3.4.2)
  • Qt5 >= 5.9.5
  • CMake >= 3.13
  • g++ (preferably version 9.2.1)

For Debian (stable/testing/sid), the following packages should be enough:

qt5-default
zlib1g-dev
cmake
g++

Obtaining OpenCV

Building from source

Copy-paste the following commands as root:

# Required packages
apt install unzip wget cmake g++

# Download OpenCV (you can as well execute wget from your ~/Downloads foler)
wget https://github.com/opencv/opencv/archive/3.4.2.zip -O opencv-3.4.2.zip

# Extract archive
unzip opencv-3.4.2.zip && rm opencv-3.4.2.zip
cd opencv-3.4.2 && mkdir build && cd build

# Build OpenCV
cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local ..
make -j$(nproc)
make install

Ubuntu

The project builds successfully on Ubuntu 19.04, however, for the g++ (the C++ compiler), install the package g++-9. See the Issue #9 for a detailed workaround

Arch Linux

As one person has pointed out, you need opencv3-opt from the AUR in order to build TermColor properly

Building

git clone https://github.com/belijzajac/TermColor.git
cd TermColor
git submodule update --init --recursive
mkdir build && cd build
cmake ..
make -j$(nproc) TermColor

Running

cd src
./TermColor

License

This project is available under the MIT License. See the LICENSE file for more info.

termcolor's People

Contributors

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