Startup
This commit is contained in:
@@ -10,7 +10,7 @@ import datetime
|
||||
if get_exec_pars().source == CommandSource.ui:
|
||||
camera_name = "SARBD02-DSCR050" # "SLG-LCAM-C041_sp"
|
||||
shared = True
|
||||
images = 1
|
||||
images = 5
|
||||
interval = -1
|
||||
roi = "" #"[540, 200, 430,100]"
|
||||
else:
|
||||
@@ -23,6 +23,8 @@ else:
|
||||
run("Tools/CameraTools")
|
||||
set_exec_pars(name="camera_snapshot")
|
||||
|
||||
root = "/camera1"
|
||||
parallel = True
|
||||
|
||||
cam_server.start(camera_name + "_sp1" if shared else camera_name, shared)
|
||||
|
||||
@@ -37,7 +39,7 @@ if roi is not None and len(roi.strip())>0:
|
||||
else:
|
||||
cam_server.waitNext(10000)
|
||||
|
||||
save_camera_data(cam_server, camera_name, shared, images, interval, parallel=True, pause=True)
|
||||
save_camera_data(cam_server, camera_name, shared, root, images, interval, parallel, pause=True)
|
||||
|
||||
cam_server.stop()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user