Python Forum
Shapes over video in tkinter - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: Shapes over video in tkinter (/thread-38370.html)



Shapes over video in tkinter - finndude - Oct-04-2022

Hi all,

I wanted to know if there is a way in Tkinter to simply play a video and with a button press, a circle appears on top of the video?


RE: Shapes over video in tkinter - deanhystad - Oct-04-2022

Use a video overlay. There is nothing in tkinter that would know it has to be redrawn because it had been "erased" by a video refresh. If you want to draw a circle over a video you need to make the circle part of the video display. I found several examples, tutorials and videos on how to overlay images on a video (watermark, text, icon) using opencv (cv2 in python). There are also several examples, tutorials and videos about using opencv with tkinter.