You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello. I have a script that, after recognition and detection based on yolo, should output the final video to a web application.
I was able to do this on streamlit, and now I’m trying to transfer it to flask (I still need all the statistics next to these videos)
The problem is that I can’t display the flow display in Flask.
I have code for streamlit that works:
video_placeholders = [st.empty() for _ in range(3)]
for i, result in enumerate(results):
image = result.orig_img
detection_results = model(image)[0]
detections = sv.Detections.from_ultralytics(detection_results)
detections = tracker.update_with_detections(detections)
annotated_frame = process_frame(image)
resized_image = cv2.resize(annotated_frame, (1024, 768))
video_placeholders[i % 3].image(resized_image, channels="BGR", use_column_width=True, caption=f"Video {i + 1}")
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello. I have a script that, after recognition and detection based on yolo, should output the final video to a web application.
I was able to do this on streamlit, and now I’m trying to transfer it to flask (I still need all the statistics next to these videos)
The problem is that I can’t display the flow display in Flask.
I have code for streamlit that works:
How to convert it for flask?
Beta Was this translation helpful? Give feedback.
All reactions