Update to 2.0.0 tree from current Fremantle build
[opencv] / samples / swig_python / minidemo.py
1 #! /usr/bin/env python
2
3 import opencv
4 from opencv import highgui
5
6 cap = highgui.cvCreateFileCapture("../c/tree.avi")
7 img = highgui.cvQueryFrame(cap)
8 print "Got frame of dimensions (", img.width, " x ", img.height, " )"
9
10 highgui.cvNamedWindow("win", highgui.CV_WINDOW_AUTOSIZE)
11 highgui.cvShowImage("win", img)
12 highgui.cvMoveWindow("win", 200, 200)
13 highgui.cvWaitKey(0)
14