Update app.py
Browse files
app.py
CHANGED
@@ -109,7 +109,8 @@ def sketching():
|
|
109 |
|
110 |
with tempfile.TemporaryDirectory() as temp_dir:
|
111 |
temp_image_path = os.path.join(temp_dir, "uploaded_image.jpg")
|
112 |
-
|
|
|
113 |
image = cv2.imread(temp_image_path)
|
114 |
image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
|
115 |
image_blur = cv2.GaussianBlur(image,(5,5),0)
|
|
|
109 |
|
110 |
with tempfile.TemporaryDirectory() as temp_dir:
|
111 |
temp_image_path = os.path.join(temp_dir, "uploaded_image.jpg")
|
112 |
+
image.save(temp_image_path)
|
113 |
+
|
114 |
image = cv2.imread(temp_image_path)
|
115 |
image = cv2.cvtColor(image,cv2.COLOR_BGR2GRAY)
|
116 |
image_blur = cv2.GaussianBlur(image,(5,5),0)
|