diff python/storage.py @ 664:455f9b93819c

added capability to set a videofilename to movingobject and interaction, renames interactiontype to collision in interaction
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 20 May 2015 12:04:22 +0200
parents 994dd644f6ab
children 15e244d2a1b5
line wrap: on
line diff
--- a/python/storage.py	Tue May 19 16:58:26 2015 +0200
+++ b/python/storage.py	Wed May 20 12:04:22 2015 +0200
@@ -867,7 +867,14 @@
 # Utils to read .ini type text files for configuration, meta data...
 #########################
 
-class ProcessParameters:
+class VideoFilenameAddable:
+    'Base class with the capability to attach a video filename'
+
+    def setVideoFilename(self, videoFilename):
+        self.videoFilename = videoFilename
+
+
+class ProcessParameters(VideoFilenameAddable):
     '''Class for all parameters controlling data processing: input,
     method parameters, etc. for tracking, classification and safety
 
@@ -952,7 +959,6 @@
         return configDict
 
 
-
 if __name__ == "__main__":
     import doctest
     import unittest