×

INDI Library v2.0.6 is Released (02 Feb 2024)

Bi-monthly release with minor bug fixes and improvements

How to catch stream from indiserver with openCV

  • Posts: 11
  • Thank you received: 0
I would like to catch a live stream from a ZWO ASI camera with openCV.
I kind of figured out how to use indiserver to connect to the camera and I found the stream option.
However, I have no idea where the stream is going or how to catch the stream, since there seems to be no object like /dev/video created by Indi_setprop "... STREAM=On".
Has anyone figured that out?
3 years 7 months ago #57742

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

You need to get the BLOB from CCD1 property and then process it.
The following user(s) said Thank You: Stefan Baar
3 years 7 months ago #57824

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

  • Posts: 11
  • Thank you received: 0
Thank you for the quick response.

My CCD is the ZWO CCD ASI130MM.
I would set the BLOB mode to the following.
indiclient.setBLOBMode(EMPTY, 'ZWO CCD ASI130MM', "CCD1")
What do I set for the EMPTY argument? 1 or PyIndi.B_ALSO or ?


Following the tutorial indilib.org/develop/indi-python-bindings.html:

I get the following error when taking an exposure:
read message ZWO CCD ASI130MM '[ERROR] Exposure failed after 3 attempts
'
2020-08-08T03:37:59: Client 0: queuing <message device='ZWO CCD ASI130MM' name=''>
2020-08-08T03:37:59: Driver indi_asi_ccd: read setNumberVector ZWO CCD ASI130MM CCD_EXPOSURE Alert
CCD_EXPOSURE_VALUE='0.098330020904541015625'
2020-08-08T03:37:59: Client 0: queuing <setNumberVector device='ZWO CCD ASI130MM' name='CCD_EXPOSURE'>
2020-08-08T03:37:59: Client 0: sending msg copy 1 nq 2:
<message device="ZWO CCD ASI130MM" timestamp="2020-08-08T03:37:59" message="[ERROR] Exposure failed after 3 attempts."/>

2020-08-08T03:37:59: Client 0: sending msg copy 1 nq 1:
<setNumberVector device="ZWO CCD ASI130MM" name="CCD_EXPOSURE" state="Alert" timeout="60" timestamp="2020-08-08T03:37:59">
<oneNumber name="CCD_EXPOSURE_VALUE">
0.098330020904541015625
</oneNumber>
</setNumberVector>
Last edit: 3 years 7 months ago by Stefan Baar.
3 years 7 months ago #57904

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

  • Posts: 11
  • Thank you received: 0
Ok, never mind.
The error mentioned in my last post is not related to PyClient but appears to be a driver or firmware issue as mentioned with similar cameras here www.indilib.org/forum/ccds-dslrs/1861-he...ed-0.html?start=%1$d

I also found a script that does pretty much what I want it to do:
github.com/GuLinux/indi-lite-tools/blob/...ence-shell/README.md
3 years 7 months ago #57905

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

Time to create page: 0.669 seconds