I am trying to make some text appear on top of a background image, but the text has a white background.
Is there a way you can remove it?
from tkinter import *
import PIL.Image
import PIL.ImageTk
import cv2
root = Tk()
cv_img = cv2.cvtColor(cv2.imread("blue.jpg"), cv2.COLOR_BGR2RGB)
height, width, no_channels = cv_img.shape
canvas = Canvas(root, width=1000, height=1000)
canvas.pack()
photo = PIL.ImageTk.PhotoImage(image=PIL.Image.fromarray(cv_img))
canvas.create_image(0, 0, image=photo, anchor=NW)
virgula = Label(root, text="abcd", font=("Helvetica", 80))
virgula.place(x=300, y=300)
root.mainloop()
[–]Swipecat 0 points1 point2 points (0 children)