mirror of
https://github.com/opencv/opencv.git
synced 2024-12-18 11:28:02 +08:00
15 lines
369 B
Python
15 lines
369 B
Python
|
#! /usr/bin/env python
|
||
|
|
||
|
import opencv
|
||
|
from opencv import highgui
|
||
|
|
||
|
cap = highgui.cvCreateFileCapture("../c/tree.avi")
|
||
|
img = highgui.cvQueryFrame(cap)
|
||
|
print "Got frame of dimensions (", img.width, " x ", img.height, " )"
|
||
|
|
||
|
highgui.cvNamedWindow("win", highgui.CV_WINDOW_AUTOSIZE)
|
||
|
highgui.cvShowImage("win", img)
|
||
|
highgui.cvMoveWindow("win", 200, 200)
|
||
|
highgui.cvWaitKey(0)
|
||
|
|