12 lines
474 B
Python
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
|