Hi,
I am new to the macro programing so I am sorry if this is obvious. I do not have any problems with aquiring an image and continue working with it but I wonder what I can do after Zen.Acquisition.StartLive() if I want to keep the live image visible in a window? The target is to have the image aquiring process visible for the user while it is running.
Best regards
Fredrik Olsson
Nubie question - Start LIve camera and have it visible in a window
-
- Posts: 5
- Joined: Thu May 12, 2022 4:34 pm
Re: Nubie question - Start LIve camera and have it visible in a window
Hello,
I have the same problem, so I wonder if the problem has been solved by now. Is it possible to have live image as the script is running ?
thank you
best
Fabian
I have the same problem, so I wonder if the problem has been solved by now. Is it possible to have live image as the script is running ?
thank you
best
Fabian
-
- Posts: 180
- Joined: Wed May 20, 2020 10:10 am
Re: Nubie question - Start LIve camera and have it visible in a window
Hello fabian Rol,
this section treats 'Zen Core Specific Topics'.
Zen Core is mainly a workflow system. It has a FreeMode but the 'strength' is the Job Mode.
In the Job Mode it is possible to build up a 'program' by inserting one task after the other.
When you run the Job then it is like a program.
OAD in Zen Core is 'mainly' meant to 'bridge a gap' when a task is not available.
Or in other words, OAD in Zen Core is not designed to build a 'complete program'.
In Zen blue you can write
which starts the Live-View and then shows the "Hello-Window" while the Live-View continues.
But this is 'only' possible because Zen blue is 'by design' different from Zen Core and offers a Live-Image in the GUI.
I hope this helps ...
this section treats 'Zen Core Specific Topics'.
Zen Core is mainly a workflow system. It has a FreeMode but the 'strength' is the Job Mode.
In the Job Mode it is possible to build up a 'program' by inserting one task after the other.
When you run the Job then it is like a program.
OAD in Zen Core is 'mainly' meant to 'bridge a gap' when a task is not available.
Or in other words, OAD in Zen Core is not designed to build a 'complete program'.
In Zen blue you can write
Code: Select all
Zen.Acquisition.StartLive()
Zen.Application.Pause("Hello")
But this is 'only' possible because Zen blue is 'by design' different from Zen Core and offers a Live-Image in the GUI.
I hope this helps ...
-
- Posts: 5
- Joined: Thu May 12, 2022 4:34 pm
Re: Nubie question - Start LIve camera and have it visible in a window
Thank you very much for your answer
I understand better the difficulties I have with Zen Core
Best regards
Fabian
I understand better the difficulties I have with Zen Core
Best regards
Fabian
Re: Nubie question - Start LIve camera and have it visible in a window
To display the live camera feed in a window while acquiring images using the Zeiss Zen software, you can use the ZenGUI module provided by Zeiss. Here's a general outline of the steps:
Import the necessary modules:
Start the live acquisition:
Create a window to display the live camera feed:
Keep the application running to maintain the live view:
The ZenWindow class creates a window where the live camera feed will be displayed. The show() method displays the window on the screen. The is_open() method checks if the window is still open, and the while loop keeps the application running until the window is closed by the user.
https://toolsregion.com/
Make sure you have the necessary Zen software and its associated modules installed. The exact implementation may vary based on your specific Zen software version and configuration. Refer to the documentation or examples provided by Zeiss for more details on using the ZenGUI module and displaying live camera feeds.
Note that the code provided assumes you are using the Zeiss Zen software and its associated modules. If you are using a different software or library for acquiring images, the steps may differ.
Import the necessary modules:
Code: Select all
from ZenGUI import ZenWindow
Code: Select all
Zen.Acquisition.StartLive()
Code: Select all
window = ZenWindow()
window.show()
Code: Select all
while window.is_open():
pass
https://toolsregion.com/
Make sure you have the necessary Zen software and its associated modules installed. The exact implementation may vary based on your specific Zen software version and configuration. Refer to the documentation or examples provided by Zeiss for more details on using the ZenGUI module and displaying live camera feeds.
Note that the code provided assumes you are using the Zeiss Zen software and its associated modules. If you are using a different software or library for acquiring images, the steps may differ.