Welcome, Guest
Username: Password: Remember me
08 Apr 2018
INDI development team is happy to announce the release of INDI Library v1.7.0. This new exciting release builds on the maturity of INDI Library and comes with many new supported devices and fixes for existing drivers.
Read More...
  • Page:
  • 1

TOPIC: Accessing image stream from PyIndi - developping an autofocus.

Accessing image stream from PyIndi - developping an autofocus. 4 months 4 days ago #23490

Dear all,

I always like to start by thanking all developers of Indi. This tools changed the way I do amateur astronomy for ever :)
Since I discovered Indi, I decided to write my own sequencer in python, despite the fact that Ekos looks awesome, and that I am probably going to use it from time to time because of its robustness and ease of use.

For my current project, I use of course PyIndi, and although it was not an easy tool for me to start with, I now consider that this API is really awesome, I especially like the fact that one can leverage very powerful tools from the python community such as astropy.

I hope it will remain maintained in the future, and I'll try to give support to people new to pyindi on the forum if I can help (don't hesistate to contact me by inmails).

Anyway, after this long introduction, here is what I would like to ask:

Is it possible to get the image stream coming from a DSLR/CCD/CMos camera through PyIndi, so that one can for instance open it through open CV ?
(I already know from the tutorial, how to get the fits blob asynchronously)
Second question (more open this one), how would one implement a reasonably fast autofocuser using pyindi/indi ?

I can eventually write some c++ code if this is really needed (I'll make my own python binding later)

Thank you very much for giving this awesome tool to the world :)

Please Log in or Create an account to join the conversation.

Last Edit: by dolguldur.

Accessing image stream from PyIndi - developping an autofocus. 4 months 4 days ago #23502

Hello! Thank you for your work!

1. So if you know how to get a FITS blob, what you do with it is up to you. The image blob is sent via CCD1 property.
2. That really depends. You can check open source programs out there that already have this functionality like Ekos. There is no "one way" to do it, but the overall principle is pretty much the same.

Please Log in or Create an account to join the conversation.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info

Accessing image stream from PyIndi - developping an autofocus. 4 months 4 days ago #23509

Thank you Jasem for your answer.
I found this from the documentation:
indilib.org/develop/developer-manual/101...es.html#h5-streaming

I now understand what you meant, ie the same blob from ccd1 is used to get a handle to the images.
However, I wonder if the blob can be deserialized as a fits file also in this case or if it is sent as a raw buffer ?

Please Log in or Create an account to join the conversation.

Accessing image stream from PyIndi - developping an autofocus. 4 months 4 days ago #23511

When using CCD_EXPOSURE, it's sent completely as a FITS file (or PNG, JPG, depending on the driver). When using streaming, it is sent as a raw format. Only 2 raw formats are supported now. 8bit gray scale and 24bit (RGB) color buffer. By check the length of the blob in streaming mode, you can know whether the image is gray scale or color.
The following user(s) said Thank You: dolguldur

Please Log in or Create an account to join the conversation.

Jasem Mutlaq
Support INDI & Ekos; Get StellarMate Astrophotography Gadget.
How to Submit Logs when you have problems?
Add your observatory info
  • Page:
  • 1
Time to create page: 0.120 seconds

Login



3rd Party

Choose from the numerous 3rd party INDI drivers to suit your needs!

Got Problem?

Check out the FAQ, the forum, and the bug tracking system to resolve any issues you might have!
You can also subscribe to INDI newsletter and development mailing lists to get the latest updates on INDI!


Gallery

Replica

Why INDI

Replica