File tree 1 file changed +20
-0
lines changed
MachineLearning Projects/Image to Sketch
1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments