I appreciate I am probably jumping the gun here, but I have only limited time to demonstrate this. I have uploaded an image and performed a calculation on it - feels like a hack but is this the way to go?
- Create a file upload test called 'Image' with macro name 'image'. Include a calculation procedure:
import numpy as np image=np.fromfile(FILE).shape
- This test doesn't display the required data since the green upload bar covers it. Therefore create a composite test called 'Image Shape' and assign this to image data
image_shape = image
I could perform a bunch of calculations in the upload macro and export the results as a dict. However I am guessing the image is available as a numpy array, rather than file object?
UPDATE: I see this is your method in http://randlet.com/qatrack/admin/qa/testlist/15/