Skip to content

Instantly share code, notes, and snippets.

@ethanrublee
Created August 28, 2011 20:46
Show Gist options
  • Save ethanrublee/1177206 to your computer and use it in GitHub Desktop.
Save ethanrublee/1177206 to your computer and use it in GitHub Desktop.
#!/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