Pratyush101 commited on
Commit
8083389
·
verified ·
1 Parent(s): 1f8af51

Update app.py

Browse files

Starting the build of virtual keyboard

Files changed (1) hide show
  1. app.py +29 -1
app.py CHANGED
@@ -1,3 +1,31 @@
1
- import streamlit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
  st.write("hi")
 
1
+ import logging
2
+ import queue
3
+ from pathlib import Path
4
+ from typing import List, NamedTuple
5
+ import mediapipe as mp
6
+ import av
7
+ import cv2
8
+ import numpy as np
9
+ import streamlit as st
10
+ from streamlit_webrtc import WebRtcMode, webrtc_streamer
11
+ from sample_utils.download import download_file
12
+ from sample_utils.turn import get_ice_servers
13
+ from cvzone.HandTrackingModule import HandDetector
14
+ from cvzone.SelfiSegmentationModule import SelfiSegmentation
15
+ import os
16
+ import time
17
+
18
+ logger = logging.getLogger(_name_)
19
+
20
+ # Streamlit settings
21
+ st.set_page_config(page_title="Virtual Keyboard", layout="wide")
22
+ st.title("Interactive Virtual Keyboard")
23
+ st.subheader('''Turn on the webcam and use hand gestures to interact with the virtual keyboard.
24
+ Use 'a' and 'd' from the keyboard to change the background.''')
25
+
26
+
27
+
28
+ # Logging setup
29
+ logger = logging.getLogger(__name__)
30
 
31
  st.write("hi")