pycharmers.cli.cvPencilSketch module

pycharmers.cli.cvPencilSketch.cvPencilSketch(argv=['-M', 'html', '.', '_build'])[source]

Convert the image like a pencil drawing.

  1. Convert to Gray Scale.

  2. Blur (Using Median Blur cv2.medianBlur )

  3. Laplacian ( cv2.Laplacian )

  4. Binarization.

  5. Morphological Transformations.

Parameters

path (str) – Path to image.

Note

When you run from the command line, execute as follows:

$ cv-pencil-sketch --path path/to/sample.png

Sample

_images/cli.cvPencilSketch.gif