mirror of
https://github.com/opencv/opencv.git
synced 2024-12-05 01:39:13 +08:00
14 lines
322 B
Python
Executable File
14 lines
322 B
Python
Executable File
#! /usr/bin/env python
|
|
|
|
import cv2.cv as 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)
|
|
cv.DestroyAllWindows()
|