tvaLib
Public Member Functions | Static Public Attributes | List of all members
lib.metadata.CameraView Class Reference
Inheritance diagram for lib.metadata.CameraView:

Public Member Functions

def __init__ (self, site, camera, name, homographyFilename='homography.txt', homographyDistanceUnit='m', homography='', cameraCalibrationFilename='', configurationFilename='', mask='', maskFilename='mask.png', camOrigin='[0.0, camHeight=10.0)
 
def __getitem__ (self, i)
 
def getHomographyFilename (self, relativeToSiteFilename=True)
 

Static Public Attributes

 idx = Column(Integer, primary_key=True)
 
 name = Column(String)
 
 homographyFilename = Column(String)
 
 homographyDistanceUnit = Column(String, default = 'm')
 
 homography = Column(String)
 
 cameraCalibrationFilename = Column(String)
 
 configurationFilename = Column(String)
 
 mask = Column(String)
 
 maskFilename = Column(String)
 
 camOrigin = Column(String, default = '[0.0,0.0]')
 
 camHeight = Column(Float, default = 10.0)
 
 siteId = Column(Integer, ForeignKey('sites.idx'))
 
 site = relationship('Site', backref=backref('camera_views', order_by = idx))
 
 cameraId = Column(Integer, ForeignKey('camera_types.idx'))
 
 camera = relationship('CamType', backref=backref('camera_views', order_by = idx))
 

Detailed Description

Definition at line 117 of file metadata.py.

Constructor & Destructor Documentation

◆ __init__()

def lib.metadata.CameraView.__init__ (   self,
  site,
  camera,
  name,
  homographyFilename = 'homography.txt',
  homographyDistanceUnit = 'm',
  homography = '',
  cameraCalibrationFilename = '',
  configurationFilename = '',
  mask = '',
  maskFilename = 'mask.png',
  camOrigin = '[0.0,
  camHeight = 10.0 
)

Definition at line 136 of file metadata.py.

136  def __init__(self, site, camera, name, homographyFilename='homography.txt', homographyDistanceUnit='m', homography='', cameraCalibrationFilename='', configurationFilename='', mask='', maskFilename='mask.png', camOrigin='[0.0,0.0]', camHeight=10.0):
137  self.site = site
138  self.camera = camera
139  self.name = name
140  self.homographyFilename = homographyFilename
141  self.homographyDistanceUnit = homographyDistanceUnit
142  self.homography = homography
143  self.cameraCalibrationFilename = cameraCalibrationFilename
144  self.configurationFilename = configurationFilename
145  self.mask = mask
146  self.maskFilename = maskFilename
147  self.camOrigin = camOrigin
148  self.camHeight = camHeight
149 
150 

Member Function Documentation

◆ __getitem__()

def lib.metadata.CameraView.__getitem__ (   self,
  i 
)

Definition at line 151 of file metadata.py.

151  def __getitem__(self, i): return self.video_sequences[i]
152 

◆ getHomographyFilename()

def lib.metadata.CameraView.getHomographyFilename (   self,
  relativeToSiteFilename = True 
)

Definition at line 153 of file metadata.py.

153  def getHomographyFilename(self, relativeToSiteFilename = True):
154  if(relativeToSiteFilename): return self.site.getFilename()+os.path.sep+self.homographyFilename
155  else: return self.homographyFilename
156 
157 

Member Data Documentation

◆ camera

lib.metadata.CameraView.camera = relationship('CamType', backref=backref('camera_views', order_by = idx))
static

Definition at line 134 of file metadata.py.

◆ cameraCalibrationFilename

lib.metadata.CameraView.cameraCalibrationFilename = Column(String)
static

Definition at line 124 of file metadata.py.

◆ cameraId

lib.metadata.CameraView.cameraId = Column(Integer, ForeignKey('camera_types.idx'))
static

Definition at line 133 of file metadata.py.

◆ camHeight

lib.metadata.CameraView.camHeight = Column(Float, default = 10.0)
static

Definition at line 129 of file metadata.py.

◆ camOrigin

lib.metadata.CameraView.camOrigin = Column(String, default = '[0.0,0.0]')
static

Definition at line 128 of file metadata.py.

◆ configurationFilename

lib.metadata.CameraView.configurationFilename = Column(String)
static

Definition at line 125 of file metadata.py.

◆ homography

lib.metadata.CameraView.homography = Column(String)
static

Definition at line 123 of file metadata.py.

◆ homographyDistanceUnit

lib.metadata.CameraView.homographyDistanceUnit = Column(String, default = 'm')
static

Definition at line 122 of file metadata.py.

◆ homographyFilename

lib.metadata.CameraView.homographyFilename = Column(String)
static

Definition at line 121 of file metadata.py.

◆ idx

lib.metadata.CameraView.idx = Column(Integer, primary_key=True)
static

Definition at line 119 of file metadata.py.

◆ mask

lib.metadata.CameraView.mask = Column(String)
static

Definition at line 126 of file metadata.py.

◆ maskFilename

lib.metadata.CameraView.maskFilename = Column(String)
static

Definition at line 127 of file metadata.py.

◆ name

lib.metadata.CameraView.name = Column(String)
static

Definition at line 120 of file metadata.py.

◆ site

lib.metadata.CameraView.site = relationship('Site', backref=backref('camera_views', order_by = idx))
static

Definition at line 132 of file metadata.py.

◆ siteId

lib.metadata.CameraView.siteId = Column(Integer, ForeignKey('sites.idx'))
static

Definition at line 131 of file metadata.py.


The documentation for this class was generated from the following file: