|
def | __init__ (self, cameraView, videoFilename, startTime, duration, dataFilename='', durationUnit='s', configurationFilename='', translationX=0.0, translationY=0.0, rotation=0.0) |
|
def | getVideoSequenceFilename (self, relativeToSiteFilename=True) |
|
Definition at line 158 of file metadata.py.
◆ __init__()
def lib.metadata.VideoSequence.__init__ |
( |
|
self, |
|
|
|
cameraView, |
|
|
|
videoFilename, |
|
|
|
startTime, |
|
|
|
duration, |
|
|
|
dataFilename = '' , |
|
|
|
durationUnit = 's' , |
|
|
|
configurationFilename = '' , |
|
|
|
translationX = 0.0 , |
|
|
|
translationY = 0.0 , |
|
|
|
rotation = 0.0 |
|
) |
| |
startTime is passed as string in utils.datetimeFormat, e.g.
2011-06-22 10:00:39. startTime can also be passed as a
datetimeFormat (e.g. %Y%m%d-%H%M) to be read directly off of the
video file instead.
Definition at line 174 of file metadata.py.
174 def __init__(self, cameraView, videoFilename, startTime, duration, dataFilename='', durationUnit='s', configurationFilename='', translationX=0.0, translationY=0.0, rotation=0.0):
175 ''' startTime is passed as string in utils.datetimeFormat, e.g. 176 2011-06-22 10:00:39. startTime can also be passed as a 177 datetimeFormat (e.g. %Y%m%d-%H%M) to be read directly off of the 180 self.cameraView = cameraView
181 self.videoFilename = videoFilename
182 if(
type(startTime) == str):
183 try: self.startTime = datetime.strptime(startTime, datetimeFormat)
184 except: self.startTime = datetime.strptime(os.path.splitext(videoFilename)[0], startTime)
185 else: self.startTime = startTime
186 self.duration = duration
187 if(
not dataFilename): self.dataFilename = os.path.splitext(videoFilename)[0]+
'.sqlite' 188 else: self.dataFilename = dataFilename
189 self.durationUnit = durationUnit
190 self.configurationFilename = configurationFilename
191 self.translationX = translationX
192 self.translationY = translationY
193 self.rotation = rotation
◆ getVideoSequenceFilename()
def lib.metadata.VideoSequence.getVideoSequenceFilename |
( |
|
self, |
|
|
|
relativeToSiteFilename = True |
|
) |
| |
Definition at line 195 of file metadata.py.
195 def getVideoSequenceFilename(self, relativeToSiteFilename = True):
196 if(relativeToSiteFilename):
return self.site.getFilename()+os.path.sep+self.name
197 else:
return self.name
◆ cameraView
lib.metadata.VideoSequence.cameraView = relationship('CameraView', backref=backref('video_sequences', order_by = idx)) |
|
static |
◆ cameraViewId
lib.metadata.VideoSequence.cameraViewId = Column(Integer, ForeignKey('camera_views.idx')) |
|
static |
◆ configurationFilename
lib.metadata.VideoSequence.configurationFilename = Column(String) |
|
static |
◆ dataFilename
lib.metadata.VideoSequence.dataFilename = Column(String) |
|
static |
◆ duration
lib.metadata.VideoSequence.duration = Column(Float) |
|
static |
◆ durationUnit
lib.metadata.VideoSequence.durationUnit = Column(String, default = 's') |
|
static |
◆ idx
lib.metadata.VideoSequence.idx = Column(Integer, primary_key=True) |
|
static |
◆ rotation
lib.metadata.VideoSequence.rotation = Column(Float, default = 0.0) |
|
static |
◆ startTime
lib.metadata.VideoSequence.startTime = Column(DateTime) |
|
static |
◆ translationX
lib.metadata.VideoSequence.translationX = Column(Float, default = 0.0) |
|
static |
◆ translationY
lib.metadata.VideoSequence.translationY = Column(Float, default = 0.0) |
|
static |
◆ videoFilename
lib.metadata.VideoSequence.videoFilename = Column(String) |
|
static |
The documentation for this class was generated from the following file: