4 from opencv import highgui
6 cap = highgui.cvCreateFileCapture("../c/tree.avi")
7 img = highgui.cvQueryFrame(cap)
8 print "Got frame of dimensions (", img.width, " x ", img.height, " )"
10 highgui.cvNamedWindow("win", highgui.CV_WINDOW_AUTOSIZE)
11 highgui.cvShowImage("win", img)
12 highgui.cvMoveWindow("win", 200, 200)