Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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=
|
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)
|