Pratyush101 commited on
Commit
18aa83e
·
verified ·
1 Parent(s): 1ef6e19

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -0
app.py CHANGED
@@ -266,6 +266,8 @@ def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
266
  cv2.putText(img, 'OpenCV', (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 2, (255, 255, 255), 1, cv2.LINE_AA)
267
 
268
  result_queue.put(hands)
 
 
269
 
270
  # def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
271
  # global indexImg, output_text
 
266
  cv2.putText(img, 'OpenCV', (50, 50), cv2.FONT_HERSHEY_SIMPLEX, 2, (255, 255, 255), 1, cv2.LINE_AA)
267
 
268
  result_queue.put(hands)
269
+
270
+ return av.VideoFrame.from_ndarray(img, format="bgr24")
271
 
272
  # def video_frame_callback(frame: av.VideoFrame) -> av.VideoFrame:
273
  # global indexImg, output_text