Null arrays printing on app while showing st.image in a loop

My best guess is that one of the functions that you are calling is returning an array (e.g. cv2.line(…)) and that streamlit magic is then writing that output in the app https://docs.streamlit.io/develop/api-reference/write-magic/magic

If that’s correct, then you can disable magic like this Magic - Streamlit Docs and see if that resolves the issue