MartinHjelmare / leicacam

Control Leica microscopes with python
MIT License
21 stars 4 forks source link

Reading microscope camera feed. #321

Open omayrkhan opened 2 years ago

omayrkhan commented 2 years ago

Hello there - firstly, thanks for developing this API, I was not expecting to find something like this. I would like to ask if there is a way to read the Leica microscope camera feed. A function through which I could extract single frames and then process the extracted frames. Also if it is there is a function that enables you to render the real-time camera feed to the screen. I have gone through the documentation and it seems that the API is designed mostly for sending messages to the microscope, not the other way around. Please let me know if I am missing something here, I would really appreciate your input on this issue.

MartinHjelmare commented 2 years ago

Hi!

This library is only built to talk to the Leica LASAF Computer Aided Microscopy TCP interface. As far as I know the image data is not sent over this socket. It's been a couple of years since I was working actively with Leica Miscroscopes, but I haven't heard that they changed this. We did inquire Leica for that feature in my last job.

To achieve a full feedback loop, the application that controls the microscope via this library needs to get separate input from the image data analysis, either from the image data saved to disk or some other custom image feed.

We do get the relative paths of acquired images as messages from the CAM server, but no image data.

omayrkhan commented 2 years ago

Thank you for the speedy response. I have another question. Is it possible to read the microscope camera feed just like any other webcam feed via USB or HDMI?

MartinHjelmare commented 2 years ago

That depends on the camera you're using. It's not related to this library.