Image to Sketch using Python OpenCV & Matplotlib

Published: 22 September 2021
on channel: Arit Ganguly
10
0

TASK 2 - Image to Pencil Sketch with Python

We need to read the image in RBG format and then convert it to a grayscale image. This will turn an image into a classic black and white photo. Then the next thing to do is invert the grayscale image also called negative image, this will be our inverted grayscale image. Inversion can be used to enhance details. Then we can finally create the pencil sketch by mixing the grayscale image with the inverted blurry image. This can be done by dividing the grayscale image by the inverted blurry image. Since images are just arrays, we can easily do this programmatically using the divide function from the cv2 library in Python


On this page of the site you can watch the video online Image to Sketch using Python OpenCV & Matplotlib with a duration of hours minute second in good quality, which was uploaded by the user Arit Ganguly 22 September 2021, share the link with friends and acquaintances, this video has already been watched 10 times on youtube and it was liked by 0 viewers. Enjoy your viewing!