AzureViolin / intelligent_scissors_5421spring2018

1 stars 1 forks source link

Python & OpenCV version #2

Open AzureViolin opened 6 years ago

AzureViolin commented 6 years ago

I'm using Python 3.4.3 and OpenCV 3.4.0, I guess the code should be working on Python 3.6.3 and OpenCV 3.1.0 too.

onlytailei commented 6 years ago

A critical problem is that we have to use decrease-key to update the priority queue. But in python, the built-in priority queue does not support this operation. I find a third-party pkg named heapdict.

Here is the download page. Better try it in your system.

AzureViolin commented 6 years ago

I can use pip3 to install it, and import it. But I don't know how to use it so haven't test it yet.

AzureViolin commented 6 years ago

try the following with python3

import tkinter
tkinter._test()

it should show a simple gui window. if not, let me know. I've installed a bunch of stuff on the way and forgot the details... tkinter should usually come with python though. if not I guess sudo pip3 install tkinter should work.