Pratyush101 commited on
Commit
262ce30
·
verified ·
1 Parent(s): 012a141

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -13,7 +13,7 @@ st.info("Use your webcam to interact with the virtual keyboard via hand gestures
13
 
14
  detector = HandDetector(maxHands=1, detectionCon=0.8)
15
 
16
- def video_frame_callback(frame):
17
  img = frame.to_ndarray(format="bgr24")
18
  hands, img = detector.findHands(img, flipType=False)
19
 
 
13
 
14
  detector = HandDetector(maxHands=1, detectionCon=0.8)
15
 
16
+ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
17
  img = frame.to_ndarray(format="bgr24")
18
  hands, img = detector.findHands(img, flipType=False)
19