Move the sources to trunk
[opencv] / samples / python / minidemo.py
1 import opencv
2 from opencv import highgui
3
4 highgui.cvNamedWindow("win", highgui.CV_WINDOW_AUTOSIZE)
5 cap = highgui.cvCaptureFromFile("/home/asbach/Source/ObjectDetection/older/avi/table.avi")
6 img = highgui.cvQueryFrame(cap)
7
8 print img
9 print "Got frame of dimensions (", img.width, " x ", img.height, " )"
10
11 highgui.cvShowImage("win", img)
12 highgui.cvMoveWindow("win", 200, 200)
13 highgui.cvWaitKey(0)
14
15 pilimg = opencv.Ipl2PIL(img)
16 print pilimg
17