Abhi5ingh commited on
Commit
d87c251
1 Parent(s): b44d446

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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.THRES_BINARY,11,2)
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