Search found 10 matches

by Matthew Cottrell
Wed Sep 29, 2021 8:41 pm
Forum: Miscellaneous
Topic: Install opencv-contrib
Replies: 6
Views: 330

Re: Install opencv-contrib

I found that the best way for me to satisfy my need to use OpenCV together with Zen Blue was to use the Xojo (xojo.com) rapid application development tool to build the user interface that communicates with python scripts that call Zen Blue macro functions and OpenCV functions. Xojo has the ability t...
by Matthew Cottrell
Sun Aug 29, 2021 3:50 pm
Forum: Instrument Control
Topic: ZenHardwareSetting in Python Script
Replies: 5
Views: 265

Re: ZenHardwareSetting in Python Script

I can't say that I figured this out, but I did find the solution. Examining the Load method in the Object Model browser in the macro environment revealed that Load can take two arguments. After a little trial and error I found success by passing the setting file name and 0 (zero) as the first and se...
by Matthew Cottrell
Sat Aug 28, 2021 3:55 pm
Forum: Instrument Control
Topic: ZenHardwareSetting in Python Script
Replies: 5
Views: 265

Re: ZenHardwareSetting in Python Script

I edited the ObjectFactory line that was: hardwareSetting = Zen.ObjectFactory.Create("ZenHardwareSetting") to now read: hardwareSetting = Zen.ObjectFactory.Create("Zeiss.Micro.Scripting.ZenHardwareSetting") That seems to help, but it's not the complete answer because the error is...
by Matthew Cottrell
Fri Aug 27, 2021 7:21 pm
Forum: Instrument Control
Topic: ZenHardwareSetting in Python Script
Replies: 5
Views: 265

Re: ZenHardwareSetting in Python Script

The explanation of accessing variables in Zen versus my application is very helpful. I can see how ObjectFactory might bridge the gap. However, I can't seem to make it work. The script below generates this error: C:\Users\Cottrell\Documents\MicrobeCounter>py.exe C:\Users\Cottrell\Documents\MicrobeCo...
by Matthew Cottrell
Tue Aug 24, 2021 11:20 pm
Forum: Instrument Control
Topic: ZenHardwareSetting in Python Script
Replies: 5
Views: 265

ZenHardwareSetting in Python Script

How do I access the ZenHardwareSetting type in a python script. I can record and run a macro that uses ZenHardwareSetting like this: hardwareSetting = ZenHardwareSetting() hardwareSetting.Load("40X Objective") Zen.Devices.ApplyHardwareSetting(hardwareSetting) camerasetting = Zen.Acquisitio...
by Matthew Cottrell
Sun Aug 08, 2021 1:04 am
Forum: Image Acquisition
Topic: VB .NET Show Live Image
Replies: 1
Views: 152

VB .NET Show Live Image

What is the .NET syntax for showing a live image in the Zen blue application that is equivalent to the macro command: ## Show live image live = Zen.Acquisition.StartLive() I've added a reference to Zeiss.Micro.Scripting.dll to my VB .NET project. Is there a different .dll that I should reference?
by Matthew Cottrell
Wed Jul 28, 2021 5:10 pm
Forum: Miscellaneous
Topic: Install opencv-contrib
Replies: 6
Views: 330

Re: Install opencv-contrib

I'm making good progress with the OpenCV libraries for IronPython, but I need a little help with one of the libraries. The NumpyDotNet.dll and OpenCvSharp.dll appear to load successfully. But I get an error about OpenCvShaprExtern.dll saying: The module was expected to contain an assembly manifest. ...
by Matthew Cottrell
Mon Jul 26, 2021 10:28 pm
Forum: Miscellaneous
Topic: Install opencv-contrib
Replies: 6
Views: 330

Install opencv-contrib

I would like to install opencv-contrib and use those functions in Zen macros. Normally, I would install it using pip, but that does not seem to be the way it's done with the python installed with Zen blue. Is it possible to install OpenCV-contrib using anaconda? There appears to be at least some ana...
by Matthew Cottrell
Mon Jul 26, 2021 5:41 pm
Forum: Image Processing
Topic: Image Processing Functions (Sobel)
Replies: 3
Views: 229

Re: Image Processing Functions (Sobel)

Okay, I now see the Sobel edge detector in the macro environment as Zen.Processing.Filter.Edges.Sobel(...). However, it's still absent from the Processing tab and typing "Sobel" in the search box returns no results. I'm writing a macro, so I've found what I need now. Still, it's strange th...
by Matthew Cottrell
Sat Jul 24, 2021 4:19 pm
Forum: Image Processing
Topic: Image Processing Functions (Sobel)
Replies: 3
Views: 229

Image Processing Functions (Sobel)

Where can I find the image processing functions for edges, for example the Sobel function? On the Processing tab I see a search box. But typing "Sobel" returns no results. I'm running Zen Blue version 3.3 with the following modules: Image analysis Macro environment Are the edge functions f...