Update app.py
Browse files
app.py
CHANGED
@@ -114,7 +114,7 @@ def sketching():
|
|
114 |
image = cv2.imread(temp_image_path)
|
115 |
image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
|
116 |
image_blur = cv2.GaussianBlur(image,(5,5),0)
|
117 |
-
sketch = cv2.adaptiveThreshold(image_blur, 255, cv2.ADAPTIVE_THRESH_MEAN_C,cv2.
|
118 |
sketch_pil = Image.fromarray(sketch)
|
119 |
return sketch_pil
|
120 |
|
|
|
114 |
image = cv2.imread(temp_image_path)
|
115 |
image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
|
116 |
image_blur = cv2.GaussianBlur(image,(5,5),0)
|
117 |
+
sketch = cv2.adaptiveThreshold(image_blur, 255, cv2.ADAPTIVE_THRESH_MEAN_C,cv2.THRESH_BINARY,11,2)
|
118 |
sketch_pil = Image.fromarray(sketch)
|
119 |
return sketch_pil
|
120 |
|