Skip to content

joaocarvalhoopen/Pencil_Draw_Help_Program

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Pencil Draw Help Program

This is a program to help artists who draw with pencil from colored photos (graphite / charcoal / sanguine). The technique used is tone building.

License

MIT open source

Description

  • This program takes a color or gray photo, transforms it into gray.
  • Then expands the dynamic range of the photo to occupy all the 0 to 255 value range.
  • Then asks the user for the number of independent values or tones and subdivide the image into different tones.
  • It then shows them in a cumulative order, so that the user builds value or tone at each cumulative slice.
  • At each image the user knows what regions have the same value or tone.
  • You have the option to overlay a grid to all images and to choose the number of columns/rows.
  • In all the process the program opens the images in windows and save them to files.

Installation

Install Python Anaconda version 3.7 or greater.
Install the Pillow library.

Configuration for each image processing.

Config the following variables:

    # Configurations.
    path_in        = ".//images_in//"
    path_out       = ".//images_out//"
    file_image_in  = "lena-color.jpg"
    num_gray_tones = 8
    grid_on        = True  # True / False
    grid_number    = 4     # Grid num_col = num_row.          

Example of images generated.

Original input image

Expanded dynamic range image

All tones image, discrete value tones

One tone image, discrete tone 0

One tone image, discrete tone 1

One tone image, discrete tone 2

One tone image, discrete tone 3

One tone image, discrete tone 4

One tone image, discrete tone 5

One tone image, discrete tone 6

Tone 0 overlay to the expanded dynamic image

Tone 1 overlay to the expanded dynamic image

Tone 2 overlay to the expanded dynamic image

Tone 3 overlay to the expanded dynamic image

Tone 4 overlay to the expanded dynamic image

Tone 5 overlay to the expanded dynamic image

Tone 6 overlay to the expanded dynamic image


Note: This program was tested on Windows but it should also work on Linux and MAC, but i didn't tested.

Have fun!

About

A program to help artists who draw with pencil from photos.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages