Update app.py
Browse files
app.py
CHANGED
@@ -100,6 +100,7 @@ canvas_result = st_canvas(
|
|
100 |
# Do something interesting with the image data and paths
|
101 |
if canvas_result.image_data is not None:
|
102 |
#st.image(canvas_result.image_data)
|
|
|
103 |
image1 = image.copy()
|
104 |
image1 = image1.astype('float32') # Convert to float32
|
105 |
image1 = cv2.cvtColor(image1, cv2.COLOR_BGR2GRAY)
|
|
|
100 |
# Do something interesting with the image data and paths
|
101 |
if canvas_result.image_data is not None:
|
102 |
#st.image(canvas_result.image_data)
|
103 |
+
image = canvas_result.image_data
|
104 |
image1 = image.copy()
|
105 |
image1 = image1.astype('float32') # Convert to float32
|
106 |
image1 = cv2.cvtColor(image1, cv2.COLOR_BGR2GRAY)
|