Script execution

This commit is contained in:
2022-08-24 15:47:34 +02:00
parent bd69a87d9c
commit ecd05741ce

View File

@@ -14,17 +14,12 @@ viewer.show_stream("tcp://localhost:" + str(OUTPUT_PORT))
pipeline_config = PipelineConfig("test_pipeline", parameters={"camera_name": "simulation", "function":"transparent"})
source = None
def send():
global source
print ("Startint pipeline on port: ", OUTPUT_PORT)
try:
processing_pipeline(stop_event, statistics, parameter_queue, camera_client, pipeline_config, OUTPUT_PORT, MockBackgroundManager())
except:
traceback.print_exc()
finally:
print ("Source -> " , source)
thread = Thread(target=send)
thread.start()