mirror of https://github.com/opencv/opencv.git
Open Source Computer Vision Library
https://opencv.org/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
289 B
13 lines
289 B
15 years ago
|
#! /usr/bin/env python
|
||
|
|
||
|
import cv
|
||
|
|
||
|
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)
|