Created
August 28, 2011 20:46
-
-
Save ethanrublee/1177206 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import ecto | |
from ecto_X import Sink | |
from ecto_opencv.highgui import imshow, FPSDrawer | |
video = Sink(url='localhost', port=2932) | |
fps = FPSDrawer() | |
video_display = imshow(name='video_cap', waitKey=2) | |
plasm = ecto.Plasm() | |
plasm.connect(video[:] >> fps['image'], | |
fps['image'] >> video_display['input'], | |
) | |
if __name__ == '__main__': | |
from ecto.opts import doit | |
doit(plasm, description='Capture a video from the device and display it.') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment