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