Hello Matthew Cottrell,
thank you very much for your contribution!
This is apparently one way to go.
Code: Select all
Zen = win32com.client.GetActiveObject("Zeiss.Micro.Scripting.ZenWrapperLM")
it must be clear that this is just for Zen blue and cannot be used in case of Zen Core as COM is not supported!
We will try to supply a solution that is called directly from a Zen macro in the future.
The nuget packages OpenCvSharp4 and OpenCvSharp4.runtime.win are accessible via .Net languages.
IronPython, the macro language of OAD, is also .Net based.
Therefore, it should be possible to accsess OpenCvSharp from the macro directly.
As this has no high priority it may take a while …
We already tried to integrate OpenCvSharp in a c# program in Visual Studio as demonstrated in detail here:
https://www.lostindetails.com/articles/ ... ith-csharp
This worked and showed us, that integrating OpenCvSharp directly into an OAD macro should be possible.
If someone wants to try it in advance the steps I would take are:
* Downloading the two nuget packages (OpenCvSharp4 and OpenCvSharp4.runtime.win)
* Rename the extensions .nupkg by .zip. This enables you to take the dlls from the zip-file to the folder of the Zen.exe.
* Finally import OpenCvSharp in your macro.
Just an idea but maybe it helps someone ...