Update app.py
Browse files
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 |
|