"atomic bomb" commit. Reorganized OpenCV directory structure
This commit is contained in:
12
samples/python/minidemo.py
Executable file
12
samples/python/minidemo.py
Executable file
@@ -0,0 +1,12 @@
|
||||
#! /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)
|
Reference in New Issue
Block a user