Startup
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
#Fri Sep 06 10:49:02 CEST 2019
|
||||
FileSequentialNumber=9
|
||||
#Thu Sep 12 14:23:17 CEST 2019
|
||||
FileSequentialNumber=11
|
||||
|
||||
11
script/UserFunction.py
Normal file
11
script/UserFunction.py
Normal file
@@ -0,0 +1,11 @@
|
||||
import json
|
||||
from logging import getLogger
|
||||
import numpy
|
||||
from cam_server.pipeline.data_processing import functions, processor
|
||||
_logger = getLogger(__name__)
|
||||
|
||||
|
||||
def process_image(image, timestamp, x_axis, y_axis, parameters, image_background_array=None):
|
||||
ret = processor.process_image(image, timestamp, x_axis, y_axis, parameters, image_background_array)
|
||||
ret["average_value"] = float(ret ["intensity"] ) / len(ret ["x_axis"])/ len(ret ["y_axis"])
|
||||
return ret
|
||||
Reference in New Issue
Block a user