samedi 27 juin 2015

Convert skimage.io to show it with tkinter

I started yesterday with python (to help a friend for her project).

She needs to use skimage for image processing and form detection, so I've tested to make a GUI (for the parameters) but I think skimage.io and PhotoImage from tkinter are incompatible.

img = io.imread("test.png")
canvas = Canvas(window, width=350, height=200)
canvas.create_image(0, 0, anchor=NW, image=img)
canvas.pack()

This doesn't work; how can I convert it?

Aucun commentaire:

Enregistrer un commentaire