How to draw polygons on video

Hello, I want to draw polygons, boxes, etc. on the image using streamlit and display the drawn values ​​(coordinate values).
I tried to do it using the streamlit_drawable_canvas component, but when I put the image as the background image, it flickers every time I read it, so I am asking for advice from seniors.

  1. Is there a different way to draw on the image in streamlit_drawable_canvas?
  2. Is there a different way to draw on the image?

Thank you in advance.