some tricks using opencv and python tkinter interface