Coders Packet

pencil sketch of an image using Python and openCV


Convert the original image to a pencil sketch and a copy of the pencil sketch is stored in the disk using OpenCV Python module.


In this Python code snippet, We have to upload an original image and this program makes the pencil sketch of the image and save the pencil sketch image in the same folder

Packages Used

The package that we are using in this code are cv2, easygui

Command used to install this package is

pip install opencv-python
pip install easygui


' easygui ' package is used to upload the image file for which we want to make the pencil sketch

opencv package is used to perform operations on an image

Download Complete Code


No comments yet