Update app.py
Browse files
app.py
CHANGED
@@ -47,7 +47,7 @@ def video_frame_callback(frame):
|
|
47 |
output_text = process_video_frame(frame, detector, segmentor, imgList, indexImg, keys, st.session_state)
|
48 |
# Put the processed output text into the queue
|
49 |
result_queue.put(output_text)
|
50 |
-
return
|
51 |
|
52 |
webrtc_ctx = webrtc_streamer(
|
53 |
key="keyboard-demo",
|
|
|
47 |
output_text = process_video_frame(frame, detector, segmentor, imgList, indexImg, keys, st.session_state)
|
48 |
# Put the processed output text into the queue
|
49 |
result_queue.put(output_text)
|
50 |
+
return av.VideoFrame.from_ndarray(flipped, format="bgr24")
|
51 |
|
52 |
webrtc_ctx = webrtc_streamer(
|
53 |
key="keyboard-demo",
|