Update to 2.0.0 tree from current Fremantle build
[opencv] / samples / swig_python / minidemo.py
diff --git a/samples/swig_python/minidemo.py b/samples/swig_python/minidemo.py
new file mode 100755 (executable)
index 0000000..589997d
--- /dev/null
@@ -0,0 +1,14 @@
+#! /usr/bin/env python
+
+import opencv
+from opencv import highgui
+
+cap = highgui.cvCreateFileCapture("../c/tree.avi")
+img = highgui.cvQueryFrame(cap)
+print "Got frame of dimensions (", img.width, " x ", img.height, " )"
+
+highgui.cvNamedWindow("win", highgui.CV_WINDOW_AUTOSIZE)
+highgui.cvShowImage("win", img)
+highgui.cvMoveWindow("win", 200, 200)
+highgui.cvWaitKey(0)
+