Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,6 @@ canvas_result = st_canvas(
|
|
| 34 |
# Do something interesting with the image data and paths
|
| 35 |
if canvas_result.image_data is not None:
|
| 36 |
st.image(canvas_result.image_data)
|
| 37 |
-
img=cv2.cvtColor(canvas_result.image_data,cv2.
|
| 38 |
st.write(type(img))
|
| 39 |
st.write(img.shape)
|
|
|
|
| 34 |
# Do something interesting with the image data and paths
|
| 35 |
if canvas_result.image_data is not None:
|
| 36 |
st.image(canvas_result.image_data)
|
| 37 |
+
img=cv2.cvtColor(canvas_result.image_data,cv2.COLOR_RGBA2GRAY)
|
| 38 |
st.write(type(img))
|
| 39 |
st.write(img.shape)
|