Update app.py
Browse files
app.py
CHANGED
@@ -75,6 +75,7 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
|
|
75 |
score = hand['score']
|
76 |
box = np.array([bbox[0], bbox[1], bbox[0] + bbox[2], bbox[1] + bbox[3]])
|
77 |
detections.append(Detection(label=label, score=score, box=box))
|
|
|
78 |
result_queue.put(detections)
|
79 |
st.session_state["output_text"] = output_text
|
80 |
return av.VideoFrame.from_ndarray(img, format="bgr24")
|
|
|
75 |
score = hand['score']
|
76 |
box = np.array([bbox[0], bbox[1], bbox[0] + bbox[2], bbox[1] + bbox[3]])
|
77 |
detections.append(Detection(label=label, score=score, box=box))
|
78 |
+
cv2.imshow('WebCam with Virtual Keyboard', img)
|
79 |
result_queue.put(detections)
|
80 |
st.session_state["output_text"] = output_text
|
81 |
return av.VideoFrame.from_ndarray(img, format="bgr24")
|