Files
camserver_sf/configuration/user_scripts/pprm_simple.py
2023-03-07 15:27:37 +01:00

12 lines
474 B
Python

from collections import OrderedDict
from cam_server.pipeline.data_processing import functions, processor
def process_image(image, pulse_id, timestamp, x_axis, y_axis, parameters, bsdata):
r = processor.process_image(image, pulse_id, timestamp, x_axis, y_axis, parameters, bsdata)
ret = OrderedDict()
channels = ["x_center_of_mass","y_center_of_mass"]
prefix = parameters["camera_name"]
for c in channels:
ret[prefix+":"+c] = r[c]
return ret