Python скрипт для детектирования движения на видео с веб-камеры.
sudo apt-get install libopencv-dev python-opencv
sudo apt-get install python-setuptools
https://bitbucket.org/pyglet/pyglet/downloads/pyglet-1.2.3.tar.gz
sudo python setup.py install
http://robot-develop.org/archives/2328
http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_imgproc/py_morphological_ops/py_morphological_ops.html
http://opencv-python-tutroals.readthedocs.org/en/latest/py_tutorials/py_imgproc/py_filtering/py_filtering.html