mallelapreethi commited on
Commit
9cfefed
·
verified ·
1 Parent(s): a8ce254

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -5,7 +5,7 @@ from PIL import Image
5
  import io
6
 
7
  # Function to convert image to sketch with adjustable outline thickness
8
- def image_to_sketch(image, kernel_size=3):
9
  gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
10
  inverted_image = 255 - gray_image
11
  blurred_image = cv2.GaussianBlur(inverted_image, (31, 31), 0)
 
5
  import io
6
 
7
  # Function to convert image to sketch with adjustable outline thickness
8
+ def image_to_sketch(image, kernel_size=1):
9
  gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
10
  inverted_image = 255 - gray_image
11
  blurred_image = cv2.GaussianBlur(inverted_image, (31, 31), 0)