I am building a small portable application in python (based on PyQt) that will load some processed images into a portable imageJ. I have these image files placed inside a local folder and the values of scales for each of these images were recognized using an OCR tool. Now I want to open these files in the local ImageJ executable and run dynamically generated macros with changing fields of ‘location’, ‘x’ and ‘y’ values.
run(“Set Scale…”, “distance=“x” known=“y” unit=microns”);
I need to operate the imageJ application remotely in a traditional UI mode since the user wants to do further adjustments to the file. The biggest limitation in my case is that I cannot install Java or Visual Studio in my workstation and therefore cannot use the existing imagej libraries that directly connect python script and my application. Therefore, I was hoping for some creative solutions.
So far, I can open the application from python and can generate macro codes for each file/folder. Is it currently possible to load this generated macro into a running ImageJ application using a bash script or python code? This can eliminate the need for the user to select the macro and run them for each image.