Hi
I created an IOC using the build instruction
http://controls.diamond.ac.uk/downloads/support/adPython/0-1/documentation/doxygen/build_instructions_example.html.
On using numpy in adPythonTemplate.py
, it works but same didn’t work with openCV (“Array processed” debug message in console). Also I am not able to run any of the openCV functions inside
adPythonTemplate.py. My st.cmd looks something like this
# Prosilica driver
###########################
prosilicaConfig("$(PREFIX)CAM", $(CAMID), 50, 0)
dbLoadRecords("ADBase.template","P=$(PREFIX),R=cam1:,PORT=$(PREFIX)CAM,ADDR=0,TIMEOUT=1")
dbLoadRecords("NDFile.template","P=$(PREFIX),R=cam1:,PORT=$(PREFIX)CAM,ADDR=0,TIMEOUT=1")
#adPythonPlugin
################################
adPythonPluginConfigure("$(PREFIX)CONTOUR", "/home/malu/adPython_sample/adPythonTemplate.py", "Template", 16, 0, "$(PREFIX)CAM", 0, 50, 0,0,2097152)
dbLoadRecords("NDPluginBase.template","P=$(PREFIX),R=Contour1:, PORT=$(PREFIX)CONTOUR,ADDR=0,TIMEOUT=1,NDARRAY_PORT=$(PREFIX)CAM,NDARRAY_ADDR=0")
dbLoadRecords("$(ADPYTHON)/db/adPythonPlugin.template","P=$(PREFIX),R=Contour1:, PORT=$(PREFIX)CONTOUR, TIMEOUT=1,NDARRAY_PORT=$(PREFIX)CAM")
I am using following configurations
Areadetector - R3-2
ADpython – 1-4
Python-opencv-headless – 3.4.0
Opencv(build from source) – 3.4.0
Ubuntu – 18
Look forward to hear from you at an early date.
Many thanks
Sandeep Malu