/Stencil_Generator

Small project for converting images to stencils for art

Primary LanguagePythonGNU General Public License v3.0GPL-3.0

Stencil Generator

python3 program that coverts an image file into 3 stencils, by cranking up the contrast and isolating different tones.

Input Image Stencil Version

Usage

The program will automatically greyscale the inputted image, you can use the argument contrast_factor to increase the contrast of the image, the higher the contrast the fewer unique tones the image will contiain. The arguments hi_lim,lo_lim are for isolating and grouping the remaining tones into 3 stencils (A,B,C). 0 = black and 256 = white, therefore you can adjust the paramaters to best isolate the different layers for a given input image. The program will save the 3 stencils A,B,C to the same dir as the python script.\

Input:

make_stencils(image_name="test_image.jpg",contrast_factor=5,hi_lim=200,lo_lim=10)

Output:

making stencils from test_image.jpg
contrast config = 5
53 different shades
stencil config hi_lim = 200, load = 10, 3 stencil
Stencil A (Darks) Stencil B (Mids) Stencil C (Lights)

Setup

git clone https://github.com/Shellywell123/Stencil_Generator.git