Skip to content

Commit f542650

Browse files
authored
Merge pull request larymak#256 from adityajai25/main
Image to Pencil Sketch.
2 parents 1399e62 + 13e9134 commit f542650

File tree

3 files changed

+214
-0
lines changed

3 files changed

+214
-0
lines changed

MachineLearning Projects/Image to Sketch/Image_to_pencil_sketch.ipynb

Lines changed: 194 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
# Image to Pencil Sketch using python
2+
3+
👉 The mission here is to convert the Image into pencil sketch.
4+
5+
![dog](https://user-images.githubusercontent.com/82924828/191065579-f0f29b4f-dda3-44f1-985d-042e11086e49.jpg)
6+
7+
👉 First, convert the RGB image into grayscale.
8+
9+
![download](https://user-images.githubusercontent.com/82924828/191065626-8caf751d-5480-452a-81a5-78d6cd21ab5f.png)
10+
11+
👉 Then convert the grayscale into negative imaging which is inverting the grayscale image.
12+
13+
![dog_sketch](https://user-images.githubusercontent.com/82924828/191066033-04489ba7-1c13-4f0d-ae7c-60e82c12f2a7.jpg)
14+
15+
👉 This can be done by dividing the grayscale image by the inverted blurry image.
16+
17+
18+
![dog_sketch2](https://user-images.githubusercontent.com/82924828/191066150-a770a274-546a-47eb-ad4b-24fdcdd8fdfe.jpg)
19+
20+
👉 These things can be done using cv2 library.
19.4 KB
Loading

0 commit comments

Comments
 (0)