This code can convert your photo to pencil sketched quickly. Just upload your photo, set the pencil shadow or thickness then you can view the sketched image.
In Python, a picture is just a double-dimensional array of integer values. So anyone can do a couple of matrix manipulations using different python libraries in order to get few interesting effects. In order to convert the general image into a pencil sketch, we will modify its true RGB values and assign its RGB values which equal to grey, in this way an input image as a sketch will be generated. A picture is basically an array of numeric values to Python. So we can perform different types of matrix manipulations to get some fascinating results. This code will display how to convert an image into a ‘pencil’ outline view.
Submitted by VARUN SIMHA REDDY (VARUNREDDY099)
Download packets of source code on Coders Packet