Python Forum
Shapes over video in tkinter
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shapes over video in tkinter
#1
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?
"Only Boring People Get Bored"
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  How can I design shapes on a curve in python? mervea 2 823 Sep-14-2023, 01:04 PM
Last Post: Pedroski55
  x and y must have same first dimension, but have shapes (1,) and (50,) asja2010 5 2,634 Jan-12-2023, 07:24 PM
Last Post: deanhystad
  Shapes in Video finndude 0 669 Oct-07-2022, 03:30 PM
Last Post: finndude
  Tkinter Drawing/Annotating on live video KDog 4 2,793 Jan-24-2022, 03:18 PM
Last Post: Minimaxer
  operands could not be broadcast together with shapes (337,451) (225,301) kevinabbot 0 1,572 Dec-14-2021, 04:02 PM
Last Post: kevinabbot
  ValueError: x and y must have same first dimension, but have shapes (11,) and (15406, hobbyist 17 150,754 Mar-22-2021, 10:27 AM
Last Post: hobbyist
  Python + OpenCV + Tkinter playing video help Hanban 1 18,010 May-08-2017, 01:25 AM
Last Post: Joseph_f2
  Unwanted random generation of scripted Shapes in GASP diemildefreude 3 5,183 Oct-23-2016, 03:11 PM
Last Post: snippsat

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020