Beasto commited on
Commit
55173b7
·
verified ·
1 Parent(s): 2d47703

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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("OpenCV Image Input with Streamlit")
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(opencv_image, 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
 
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