mirror of
https://github.com/opencv/opencv.git
synced 2024-11-26 20:20:20 +08:00
13 lines
289 B
Python
13 lines
289 B
Python
|
#! /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)
|