Ejemplo n.º 1
0
    def __init__(self, manifest, json, img_fp, heatmap_fp):
        super().__init__()
        self.manifest = manifest
        self.json = json

        interval_sec = json[self.INTERVAL]
        self.interval = timedelta(seconds=interval_sec)

        self.img = ImageData.create(manifest, img_fp)
        self.hm = Heatmap.load(heatmap_fp)
Ejemplo n.º 2
0
 def _period(self, filename):
     img_data = ImageData.create(self.manifest, filename)
     end_time = img_data.time_taken()
     start_time = end_time - self._delta()
     return heatmap.TimePeriod(start_time, end_time)
Ejemplo n.º 3
0
def images():
    return [ImageData.create(None, x) for x in filepaths()]