2010-05-11 19:44:00 +02:00
|
|
|
#! /usr/bin/env python
|
|
|
|
|
2011-07-12 14:56:03 +02:00
|
|
|
import cv2.cv as cv
|
2010-05-11 19:44:00 +02:00
|
|
|
|
|
|
|
cap = cv.CreateFileCapture("../c/tree.avi")
|
|
|
|
img = cv.QueryFrame(cap)
|
|
|
|
print "Got frame of dimensions (", img.width, " x ", img.height, ")"
|
|
|
|
|
|
|
|
cv.NamedWindow("win", cv.CV_WINDOW_AUTOSIZE)
|
|
|
|
cv.ShowImage("win", img)
|
|
|
|
cv.MoveWindow("win", 200, 200)
|
|
|
|
cv.WaitKey(0)
|
2012-03-19 00:07:39 +01:00
|
|
|
cv.DestroyAllWindows()
|