How to make real time text watermark using Tkinter Part -9 || Tkinter Series ||

Опубликовано: 04 Ноябрь 2024
на канале: Concise Coder
44
like

In this video, I will teach you how to make a real time text watermark using Tkinter, a Python GUI framework. A text watermark is a text overlay that appears on top of an image or a video, usually to indicate the ownership or the source of the content. A real time text watermark is a dynamic watermark that changes according to some conditions, such as the current time, the user input, or the video frame.

You will learn how to:

Create a Tkinter window and a canvas widget to display the video.
Use the OpenCV library to read and process the video frames.
Use the PIL library to draw the text watermark on the frames.
Use the threading module to run the video and the watermark in parallel.
Use the keyboard module to capture the user input and change the watermark accordingly.

This video is part of my Tkinter series, where I cover various topics and projects related to Tkinter. If you are interested in learning more about Tkinter, please check out my playlist and subscribe to my channel.

I hope you enjoy this video and find it useful. Please leave a like, comment, and share if you do. Thank you for watching!

Below is the code snippet that I used to create a simple text watermark using Tkinter. You can copy and paste it in your editor and run it to see the result.

```python
How to make watermark

from tkinter import *

root=Tk()
root.geometry("+500+500")
root.attributes("-topmost",1)
root.attributes("-alpha",0.1)
root.overrideredirect(1)

label=Label(root,text='ConciseCoder')
label.pack()

root.mainloop()
```

This code creates a Tkinter window with a label widget that displays the text 'ConciseCoder'. The window is transparent, always on top, and has no border. The window geometry is set to position the window at the top right corner of the screen. You can change the text, the transparency, and the position of the window according to your preference.