Source code for videomeasureunit
#!/usr/bin/env python
"""
.. module:: videomeasureunit.py
:platform: Unix, Windows
:synopsis: Ulyxes - an open source project to drive total stations and
publish observation results. GPL v2.0 license Copyright (C)
2010- Zoltan Siki <siki.zoltan@epito.bme.hu>.
.. moduleauthor:: Zoltan Siki <siki.zoltan@epito.bme.hu>
"""
from measureunit import MeasureUnit
[docs]class VideoMeasureUnit(MeasureUnit):
""" Video device specific features.
:param name: name of measure unit (str), default 'webcam'
:param typ: type of measure unit (str), default 'video'
"""
def __init__(self, name='webcam', typ='video'):
""" Constructor
"""
super().__init__(name, typ)
[docs] @staticmethod
def GetCapabilities():
""" Get instrument specialities
:returns: list of capabilities
"""
return ['IMAGE']
if __name__ == "__main__":
mu = VideoMeasureUnit()
print (mu.GetName())