Update app.py
Browse files
app.py
CHANGED
|
@@ -18,6 +18,8 @@ if uploaded_file is not None:
|
|
| 18 |
# Convert the image from RGB to BGR (OpenCV uses BGR format)
|
| 19 |
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
|
| 20 |
|
|
|
|
|
|
|
| 21 |
# Display the image using OpenCV (cv2.imshow does not work in Streamlit)
|
| 22 |
st.image(img, channels="BGR")
|
| 23 |
mp_hands = mp.solutions.hands
|
|
|
|
| 18 |
# Convert the image from RGB to BGR (OpenCV uses BGR format)
|
| 19 |
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
|
| 20 |
|
| 21 |
+
img = cv2.resize(img,(256,256))
|
| 22 |
+
|
| 23 |
# Display the image using OpenCV (cv2.imshow does not work in Streamlit)
|
| 24 |
st.image(img, channels="BGR")
|
| 25 |
mp_hands = mp.solutions.hands
|