Giter VIP home page Giter VIP logo

camorecolourer's Introduction

Seb's Camo Recolourer

Preview Image

Antivirus note:

This program was written in Python and compiled using Nuitka, and therefore the standalone executable bundles the entire Python runtime.

Antivirus programs often falsely detect compiled python executables as a virus, due to this compilation process bundling the runtime.

Running without the executable:

If you don't trust the executable due to this antivirus warning, you can download Python and install the following modules using PIP:

pip install tkinter
pip install Pillow
pip install scikit-learn

Then, run main.py and the program will run identically to the executable.

How to use:

Loading an image

When a camo is loaded , it will be automatically analysed to find the dominant colours of the image. If this automatic analysis has too many or too few colours, you can tweak the detection parameters:

Max colours:

The maximum number of colours the algorithm will detect.

Input colours

You can manually set the input colours if the detection misses important colours

Getting an output

When an image is loaded, the input image will show in its unmodified form on the left, and the resulting output image on the right.

Press on a colour in output list, and select a new colour to see the the result in realtime.

Save using the buttons at the bottom.

'Save' will save the output image to a single file 'Save as layers' will attempt to split the image into layers, separated by colour

Using the colour transposer

The colour transposer attempts to match the colours from a different image (transposed image) to the existing colours in the currently loaded image (input image)

It has two modes to match colours by:

Brightness:

The brightest colour of the transposed image will be matched to the brightest of the input image, the darkest to the darkest etc.

Frequency:

The most frequent colour in the input image will be matched to the most frequent colour in the transposed image, the least frequent to the least frequent etc.

camorecolourer's People

Contributors

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