nt pipline listener with ui integration

maybe socket bug fixed
This commit is contained in:
ori
2019-08-11 12:03:31 -07:00
parent f8e846dda0
commit 7cd7f4e57f
6 changed files with 36 additions and 24 deletions

View File

@@ -14,6 +14,7 @@ class SettingsManager(metaclass=Singleton):
usb_cameras_info = {}
general_settings = {}
cams_port = {}
cams_curr_pipeline = {}
default_pipeline = {
"exposure": 50,
@@ -217,7 +218,8 @@ class SettingsManager(metaclass=Singleton):
def create_new_cam(self, cam_name):
self.cams[cam_name] = {}
self.cams[cam_name]["pipelines"] = {}
self.create_new_pipeline(cam_name=cam_name)
for i in range(10):
self.create_new_pipeline(cam_name=cam_name)
self.cams[cam_name]["path"] = self.usb_cameras_info[cam_name].otherPaths[0] if len(
self.usb_cameras_info[cam_name].otherPaths) == 1 else self.usb_cameras_info[cam_name].otherPaths[1]