Cameras dic

Added settings folder, and creating dictionary from the cameras and pipelines
This commit is contained in:
Sagi Frimer
2019-03-31 01:27:17 +03:00
parent 3d5a326e0b
commit 557f6a109f
8 changed files with 62 additions and 36 deletions

View File

@@ -6,8 +6,5 @@ class ChameleonCamera:
def __init__(self, dic):
self.pipelines = {}
for pipeline_id in dic["pipelines"]:
self.pipelines[pipeline_id] = ChameleonPipeline(dic[pipeline_id])
def change_value(self, pipline_id, key, value):
self.pipelines[pipline_id][key] = value
for pipeline_id in dic:
self.pipelines[pipeline_id] = ChameleonPipeline(dic[pipeline_id])