Pratyush101 commited on
Commit
d181aba
·
verified ·
1 Parent(s): 84c826d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -0
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")