Using Tkinter to make a file chooser GUI to display both input and output file Using Tkinter to make a file chooser GUI to display both input and output file tkinter tkinter

Using Tkinter to make a file chooser GUI to display both input and output file


Your code works as intended, but both the images are probably not displaying due to the size of image. I would suggest a resize on the image.

edged = cv2.resize(edged, dsize=(500, 600), interpolation=cv2.INTER_CUBIC)


The reason both images may not be displayed is due to the size of the images. I would recommend using the resize function to ensure the images display regardless of the input image size.

I have provided a code snippet of how it should look below.

        edged = cv2.resize(edged, dsize=(500, 600), interpolation=cv2.INTER_CUBIC)