Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import numpy as np
|
|
| 4 |
import streamlit as st
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
-
st.title("
|
| 8 |
|
| 9 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
|
| 10 |
|
|
@@ -73,8 +73,8 @@ if uploaded_file is not None:
|
|
| 73 |
angle = calculate_angle(first,mid,last)
|
| 74 |
st.write('angle is ',angle)
|
| 75 |
if angle >= 50:
|
| 76 |
-
st.write('
|
| 77 |
elif angle < 50:
|
| 78 |
-
st.write('
|
| 79 |
else:
|
| 80 |
st.write('error')
|
|
|
|
| 4 |
import streamlit as st
|
| 5 |
from PIL import Image
|
| 6 |
|
| 7 |
+
st.title("Custom_Hand_Gesture_Recognition")
|
| 8 |
|
| 9 |
uploaded_file = st.file_uploader("Choose an image...", type=["jpg", "png", "jpeg"])
|
| 10 |
|
|
|
|
| 73 |
angle = calculate_angle(first,mid,last)
|
| 74 |
st.write('angle is ',angle)
|
| 75 |
if angle >= 50:
|
| 76 |
+
st.write('The fingers are opened')
|
| 77 |
elif angle < 50:
|
| 78 |
+
st.write('The fingers are closed')
|
| 79 |
else:
|
| 80 |
st.write('error')
|