Stream pipeline example
This commit is contained in:
@@ -16,9 +16,18 @@ def get_roi_x_profile(image, roi):
|
||||
|
||||
return roi_image.sum(0)
|
||||
|
||||
|
||||
#_logger.warning("----- START ---- ")
|
||||
#pid = None
|
||||
#sent=None
|
||||
def process_image(image, pulse_id, timestamp, x_axis, y_axis, parameters, image_background_array=None):
|
||||
|
||||
#global pid, sent
|
||||
#if pid is not None:
|
||||
# if pid != sent:
|
||||
# _logger.warning("ERROR sending %s PID: %d" % (parameters["camera_name"], pid,))
|
||||
# if (pid+1) != pulse_id:
|
||||
# _logger.warning("ERROR %s PID: waiting %d - received %d" % (parameters["camera_name"], pid+1,pulse_id))
|
||||
#pid = pulse_id
|
||||
|
||||
processed_data = dict()
|
||||
|
||||
image_property_name = parameters["camera_name"]
|
||||
@@ -34,6 +43,6 @@ def process_image(image, pulse_id, timestamp, x_axis, y_axis, parameters, image_
|
||||
|
||||
if roi_background:
|
||||
processed_data[image_property_name + ".roi_background_x_profile"] = get_roi_x_profile(image, roi_background)
|
||||
|
||||
#sent = pid
|
||||
return processed_data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user