Ejemplo n.º 1
0
 def load_rig_cameras(self) -> Dict[str, pymap.RigCamera]:
     """Return rig models data"""
     all_rig_cameras = rig.default_rig_cameras(self.load_camera_models())
     if not self.io_handler.exists(self._rig_cameras_file()):
         return all_rig_cameras
     with self.io_handler.open_rt(self._rig_cameras_file()) as fin:
         rig_cameras = io.rig_cameras_from_json(json.load(fin))
         for rig_camera_id, rig_camera in rig_cameras.items():
             all_rig_cameras[rig_camera_id] = rig_camera
     return all_rig_cameras
Ejemplo n.º 2
0
 def load_rig_cameras(self) -> Dict[str, pymap.RigCamera]:
     """Return rig models data"""
     if not self.io_handler.exists(self._rig_cameras_file()):
         return {}
     with self.io_handler.open_rt(self._rig_cameras_file()) as fin:
         return io.rig_cameras_from_json(json.load(fin))