Jun-02-2021, 09:42 PM
The problem is when i go to save/snapshot an image it doesn't save the overlay on top of the video frame.
Also once i click save on the file dialog a new file dialog appears.
Here are my efforts at PIL:
This is in the update function where I attempt to convert the latest frame to PIL image
Also once i click save on the file dialog a new file dialog appears.
Here are my efforts at PIL:
This is in the update function where I attempt to convert the latest frame to PIL image
self.photo = ImageTk.PhotoImage(image=PIL.Image.fromarray(frame))This is in the snapshot function where I attempt to paste the overlay onto the latest frame
filename = self.photo.paste(self.pil_overlay_img, (0,0))