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.
12 lines
289 B
12 lines
289 B
#! /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)
|
|
|