Update app.py
Browse files
app.py
CHANGED
|
@@ -3,7 +3,7 @@ import numpy as np
|
|
| 3 |
import streamlit as st
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
-
st.title("
|
| 7 |
|
| 8 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
|
| 9 |
|
|
@@ -18,7 +18,7 @@ if uploaded_file is not None:
|
|
| 18 |
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
|
| 19 |
|
| 20 |
# Display the image using OpenCV (cv2.imshow does not work in Streamlit)
|
| 21 |
-
st.image(
|
| 22 |
mp_hands = mp.solutions.hands
|
| 23 |
|
| 24 |
# Now second step is to set the hands function which will hold the landmarks points
|
|
|
|
| 3 |
import streamlit as st
|
| 4 |
from PIL import Image
|
| 5 |
|
| 6 |
+
st.title("Custom_Hand_Gesture_Recognition_using_Mediapipe")
|
| 7 |
|
| 8 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
|
| 9 |
|
|
|
|
| 18 |
img = cv2.cvtColor(img, cv2.COLOR_RGB2BGR)
|
| 19 |
|
| 20 |
# Display the image using OpenCV (cv2.imshow does not work in Streamlit)
|
| 21 |
+
st.image(img, channels="BGR")
|
| 22 |
mp_hands = mp.solutions.hands
|
| 23 |
|
| 24 |
# Now second step is to set the hands function which will hold the landmarks points
|